From: Lady Date: Mon, 28 Apr 2025 01:55:06 +0000 (-0400) Subject: Support hgroups with heading continuations X-Git-Tag: 0.5.0^0 X-Git-Url: https://git.ladys.computer/LesML/commitdiff_plain/refs/heads/current?hp=1192f5c276e839eaf6b7bbad5d31b0175a3e52ed Support hgroups with heading continuations These are a bit interesting because continuation paragraphs can be placed _before_ the heading they “continue” (not just after). A block comment can be used to separate them from a preceding list or similar. --- diff --git a/README.markdown b/README.markdown index 1643af2..ac2d0dc 100644 --- a/README.markdown +++ b/README.markdown @@ -173,10 +173,12 @@ After this classification, each ordinary paragraph is further Comments produce X·M·L comment nodes and can be used to break up list items into separate lists. -- If the paragraph begins with `⋯`, it is a continuation paragraph - (``). +- If the paragraph begins with `⋯`, it is a continuation paragraph. Continuation paragraphs may be used to continue a preceding div or list item. + If there is no such preceding div or list item, they will attach to + adjacent heading elements to form heading groups (``). + Otherwise, they will be treated as ordinary paragraphs. - Otherwise, it is an ordinary paragraph. diff --git a/parser.xslt b/parser.xslt index 99ee743..5ba2248 100644 --- a/parser.xslt +++ b/parser.xslt @@ -705,9 +705,7 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one - - continuation - + @@ -783,18 +781,60 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one + @@ -812,10 +852,10 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one - + - + @@ -835,6 +875,7 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one +