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/a9b41749898d494d22a613ead737a8eb89c7abceb415f8cd863910c36237ab74?hp=5532d05f05ad455dd406b4ea8b63eb2250f41c5bb238928f74cb1f02bbd0ca39 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 32a54ec..ff26450 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 5e2b54f..734b3c0 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 +