Attach the code-span padding rule to the text it pads
CI / gate (push) Successful in 4s

This commit is contained in:
2026-08-24 10:34:14 +02:00
parent 13686b01c6
commit 94c0274f0e
+6 -6
View File
@@ -24,9 +24,9 @@ normalizes to it through the round-trip.
- ATX headings (`#``######`); setext input normalizes to ATX. - ATX headings (`#``######`); setext input normalizes to ATX.
- Code fences ``` with the node's language as info string, the fence lengthened past any backtick - Code fences ``` with the node's language as info string, the fence lengthened past any backtick
run in the content; indented-code input normalizes to fences. run in the content; indented-code input normalizes to fences.
- Code spans: a backtick string one longer than the longest backtick run in the text, padded with - Code spans: a backtick string one longer than the longest backtick run in the text, the text
one space on each side where the text begins or ends with a backtick, or begins and ends with a padded with one space on each side where it begins or ends with a backtick, or begins and ends
space without being all spaces. with a space without being all spaces.
- Thematic break `---`. - Thematic break `---`.
- Hard break: backslash at end of line (survives editors that trim trailing spaces). Where - Hard break: backslash at end of line (survives editors that trim trailing spaces). Where
CommonMark admits no spelling — the end of a block, inside a heading — it is `:hardBreak{}`. CommonMark admits no spelling — the end of a block, inside a heading — it is `:hardBreak{}`.
@@ -191,9 +191,9 @@ The moon, at night.
**The CommonMark image.** A paragraph whose entire inline content is one image `![alt](url)` is **The CommonMark image.** A paragraph whose entire inline content is one image `![alt](url)` is
a `mediaSingle` with attrs exactly `{"layout":"center"}` holding an `external` `media``url` a `mediaSingle` with attrs exactly `{"layout":"center"}` holding an `external` `media``url`
from the destination, `alt` the description's plain-text content when non-empty. `adfToMarkdown` from the destination, `alt` the description's plain-text content when non-empty. `adfToMarkdown`
emits the image form for exactly that shape — those attrs and no others, no marks, no caption. An emits the image form for exactly that shape — those attrs and no others, no marks, no caption.
image amid other text, or one carrying a title, is a named error: `mediaInline` carries a media An image amid other text, or one carrying a title, is a named error: `mediaInline` carries a
`collection` + `id`, never a URL, and no media node carries a title. media `collection` + `id`, never a URL, and no media node carries a title.
### Tables ### Tables