You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In #306, we added support for paragraph separators that are inserted between paragraphs and also between block-level element separated by more than one blank line:
\markdownRendererDocumentBegin
First paragraph\markdownRendererParagraphSeparator
Second paragraph\markdownRendererDocumentEnd
However, paragraph separators are not inserted between paragraphs in blockquotes:
$ docker run -i --rm witiko/markdown markdown-cli <<< $'> First paragraph\n>\n> Second paragraph'
\markdownRendererDocumentBegin\markdownRendererBlockQuoteBegin
First paragraph\markdownRendererInterblockSeparator
Second paragraph
\markdownRendererBlockQuoteEnd\markdownRendererDocumentEnd
Furthermore, paragraph separators are also not inserted between paragraphs in fenced divs:
\markdownRendererDocumentBegin\markdownRendererFencedDivAttributeContextBegin\markdownRendererAttributeClassName{class}%
First paragraph\markdownRendererInterblockSeparator
Second paragraph
\markdownRendererFencedDivAttributeContextEnd\markdownRendererDocumentEnd
Lastly, paragraph separators are also not inserted between paragraphs in lists:
$ docker run -i --rm witiko/markdown markdown-cli <<< $'- First paragraph\n\n Second paragraph'
\markdownRendererDocumentBegin\markdownRendererUlBegin\markdownRendererUlItem First paragraph\markdownRendererInterblockSeparator
Second paragraph\markdownRendererUlItemEnd\markdownRendererUlEnd\markdownRendererDocumentEnd
$ docker run -i --rm witiko/markdown markdown-cli <<< $'1. First paragraph\n\n Second paragraph'
\markdownRendererDocumentBegin\markdownRendererOlBegin\markdownRendererOlItemWithNumber{1}First paragraph\markdownRendererInterblockSeparator
Second paragraph\markdownRendererOlItemEnd\markdownRendererOlEnd\markdownRendererDocumentEnd
All four cases should produce paragraph separators instead.
The text was updated successfully, but these errors were encountered:
Witiko
changed the title
Correctly produce paragraph separators in lists
Correctly produce paragraph separators inside block-level elements
Nov 27, 2023
In #306, we added support for paragraph separators that are inserted between paragraphs and also between block-level element separated by more than one blank line:
markdown/markdown.dtx
Lines 28533 to 28570 in 859b8da
Here is an example of two paragraphs that are correctly separated by paragraph separators rather than interblock separators:
However, paragraph separators are not inserted between paragraphs in blockquotes:
Furthermore, paragraph separators are also not inserted between paragraphs in fenced divs:
Lastly, paragraph separators are also not inserted between paragraphs in lists:
All four cases should produce paragraph separators instead.
The text was updated successfully, but these errors were encountered: