IceCubesApp/Packages/Models
Nathan Reed 06a8ca67c3
Improve display of HTML ul (bullet list) and ol (numbered list) (#1690)
While SwiftUI's `Text` view won't display these in an `AttributedString` even if they get parsed from Markdown (which would also require the use of the `.full` option instead of the `.inlineOnlyPresrevingWhitespace` option), we can improve the appearance somewhat.
Currently, list elements are clumped together with no spaces between them, and there's no indication whatsoever that the author indicated these to be a list.
Change to insert Markdown list syntax with linebreaks and dashes, so users can at least understand there's a list there.
Similar change for ordered lists.

This will still be broken for nested lists, but it didn't seem worth it to put a lot of effort into this (or other revamps, like making bold/italics/code work properly) because it seems like the current text handling in Ice Cubes is suboptimal and eventually slated for improvement (according to https://github.com/Dimillian/IceCubesApp/issues/1459#issuecomment-1638562657).
So this is more designed to make lists "less broken" in some cases, rather than be a comprehensive fix for all lists in all cases.
2023-11-27 09:15:27 +01:00
..
.swiftpm/xcode/xcshareddata/xcschemes Upgrade to Swift tools version 5.9 + strict Swift concurrency everywhere 2023-09-15 12:46:15 +02:00
Sources/Models Improve display of HTML ul (bullet list) and ol (numbered list) (#1690) 2023-11-27 09:15:27 +01:00
Tests/ModelsTests Swiftformat 2023-09-16 14:15:03 +02:00
.gitignore Split Models from Network package 2022-11-29 09:28:17 +01:00
Package.swift iOS 17+ only support + migrating to Observation framework (#1571) 2023-09-18 07:01:23 +02:00
README.md Split Models from Network package 2022-11-29 09:28:17 +01:00

Models

A description of this package.