Witiko / markdown

:notebook_with_decorative_cover: A package for converting and rendering markdown documents in TeX
http://ctan.org/pkg/markdown
LaTeX Project Public License v1.3c
327 stars 31 forks source link

Soft line breaks in citation prenotes and postnotes produce unexpected output #483

Closed Witiko closed 4 weeks ago

Witiko commented 1 month ago

Soft line breaks in citation prenotes and postnotes produce the unexpected output \markdownRendererBackslash{}markdownRendererSoftLineBreak\markdownRendererSoftLineBreak instead of the expected output \markdownRendererNbsp when option citationNbsps is enabled and \markdownRendererSoftLineBreak otherwise:

$ docker run --rm -i witiko/markdown markdown-cli citations=true <<< $'[@foo, bar\nbaz]'
\markdownRendererDocumentBegin
\markdownRendererCite{1}+{}{bar\markdownRendererBackslash{}markdownRendererSoftLineBreak\markdownRendererSoftLineBreak
{}\markdownRendererLeftBrace{}\markdownRendererRightBrace{}baz}{foo}\markdownRendererDocumentEnd

After this issue has been fixed and a new version of the Markdown package released, we should revert commit https://github.com/Witiko/expltools/commit/a31569ad96fd519039807028469732029edb2988.