Norg parser decision on line‑initial asterisk without trailing space: attached modifier vs literal vs malformed heading
0 reputation · 19 Mar 2022, 01:17 UTC
When a Neorg document begins a line with an asterisk that is not followed by a space, the parser must decide whether to interpret the character as part of a heading, as an attached bold detached modifier, or as a literal asterisk that should remain visible. This decision sits at the compatibility boundary between the heading syntax (* Heading) and the detached‑modifier syntax (*bold*), and its resolution affects how legacy notes render across different Neorg releases.
Should the parser treat a line‑initial asterisk without a following space as an attached bold modifier, as a literal asterisk, or as a malformed heading? Does treating it as an attached modifier break existing documents that rely on the literal character for list items or emphasis? How should weak detached modifiers that abut punctuation be rendered at sentence boundaries to preserve the strong/weak distinction defined in the specification?