The phone learns to read whole blocks — CardBodyView renders BodyMarkup's full tree, and the title falls in line
The read view's inline-only AttributedString shim gives way to a real block renderer over BodyMarkup — the same parse the Mac Preview trusts, whose swift-markdown dependency project.yml said was already riding along for exactly this surface. Headings, nested lists with static task checkboxes, quotes, GFM tables with per-column alignment and clamped colspans, sideways-scrolling code blocks, literal HTML, dividers, and tappable absolute links (relative ones stay prose — no folder to resolve against). The title block sheds its inner padding so its leading edge sits flush with the body; the tint now grows outward via a negative background inset instead of pushing the text in. One rich fixture card body enriched to exercise every block kind; Mac fixture round-trip suites verified green against it. Claude-Session: https://claude.ai/code/session_01SR4XGjmBE16ZUYWpfFHXwY
This commit is contained in:
+18
-1
@@ -6,4 +6,21 @@ background: {color: coral}
|
||||
icon: flag.fill
|
||||
iconColor: orange
|
||||
---
|
||||
Plain, unquoted title this time — mixing styles on purpose.
|
||||
## Stray tolerance
|
||||
|
||||
Plain, unquoted title this time — mixing styles on purpose, and a body rich enough to exercise
|
||||
every block the mobile Preview renders.
|
||||
|
||||
- [x] Skip `.DS_Store` and other dotfiles
|
||||
- [ ] Warn on non-UUID folder names
|
||||
|
||||
> Any folder that isn't a UUID is treated as an opaque stray, never parsed as an item.
|
||||
|
||||
| Case | Behavior |
|
||||
| --- | --- |
|
||||
| Dotfile | Skipped silently |
|
||||
| Non-UUID folder | Treated as a stray |
|
||||
|
||||
```swift
|
||||
let isUUID = UUID(uuidString: name) != nil
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user