41 - a callout title keeps its link targets, decided #145

Merged
lilleman merged 1 commits from 41-decision into main 2026-09-29 11:13:50 +02:00
3 changed files with 12 additions and 4 deletions
+1
View File
@@ -20,6 +20,7 @@ In `docs/decisions.md`:
- Links - Links
- Ids stay site-local - Ids stay site-local
- Plain task ids come from position - Plain task ids come from position
- A callout title keeps its link targets
- The plain flavour's spellings - The plain flavour's spellings
- The HTML dialect - The HTML dialect
- No runtime dependencies - No runtime dependencies
+8
View File
@@ -135,6 +135,14 @@ position in document order, unique within the document and minted with no host A
rejecting a missing `localId` takes the document and the same markdown reads to the same ids every rejecting a missing `localId` takes the document and the same markdown reads to the same ids every
run. run.
## A callout title keeps its link targets
2026-09-29, the maintainer. Goal 5. Valid while an expand's `title` is a string. Lands with
`todo.md` 41.
`plainMarkdownToAdf` writes a link in a folded callout's title as its text and its target in
parentheses: `> [!faq]- See [x](http://y)` reads to the title `See x (http://y)`.
## The plain flavour's spellings ## The plain flavour's spellings
2026-09-14, panels 2026-09-25, the maintainer. Goal 5. Valid while GitHub's renderer is the one the 2026-09-14, panels 2026-09-25, the maintainer. Goal 5. Valid while GitHub's renderer is the one the
+3 -4
View File
@@ -18,10 +18,9 @@
- **10f — Give task nodes read from plain markdown position ids.** Per `docs/decisions.md` §Plain - **10f — Give task nodes read from plain markdown position ids.** Per `docs/decisions.md` §Plain
task ids come from position, README §Plain markdown's `localId` bullet saying so. The id spelling task ids come from position, README §Plain markdown's `localId` bullet saying so. The id spelling
is part of the chunk. is part of the chunk.
- **41 — Keep a link's target when `plainMarkdownToAdf` reads a callout title.** Per Goal 5 a link - **41 — Keep a link's target when `plainMarkdownToAdf` reads a callout title.** Per
target is content, but `> [!faq]- See [x](http://y)` reads to an expand titled `See x`, the `docs/decisions.md` §A callout title keeps its link targets; today `> [!faq]- See [x](http://y)`
target gone. Where the target goes is a gap in `docs/decisions.md`; candidate: the title keeps reads to an expand titled `See x`, the target gone.
it as text, `See x (http://y)`.
- **40 — Make `markdownToAdf(adfToMarkdown(doc))` deep-equal `doc` for every document it takes.** - **40 — Make `markdownToAdf(adfToMarkdown(doc))` deep-equal `doc` for every document it takes.**
Today it holds for editor-normal documents only: two adjacent text nodes with the same marks Today it holds for editor-normal documents only: two adjacent text nodes with the same marks
merge, an empty `attrs`, `marks` or `content` drops, and `-0` reads back `0` — shapes pipelines merge, an empty `attrs`, `marks` or `content` drops, and `-0` reads back `0` — shapes pipelines