Looks like a bug in Markdown.pl. Pretty much all the other implementations of Markdown handle this correctly. So you can use another Markdown parser, or alternatively you can write the whole blockquote in HTML as a workaround. I think you can add spaces to all the lines too (so it looks better in the text document). Or you take some time to fix Markdown.pl.
> Le 14 août 2017 à 9:03, Bram Mertens <mertensb.ma...@gmail.com> a écrit : > > Hi, > > In a document I'm writing I wanted to include an extract from an email > message as a blockquote. > The message contains a code extract which contains both a piece of ascii art > (output from banner) as well as some lines that start with spaces. > > After converting the markdown to XHTML I noticed that the ascii art does not > look as expected and some lines that start with spaces are displayed > left-aligned. (Meaning the leading spaces are removed). > > The problem occurs only when the blocquote (> ) and code (4spaces) are > combined. > Adding two more spaces somehow resolves the problem as well but that > obviously makes the Markdown text look different. > > I've created a small sample and uploaded it to pastebin at > https://pastebin.com/iCb3ESYZ. > It has the original text, the same text without blockquote and the version > with the additional spaces added. > Converting that in dingus > (https://daringfireball.net/projects/markdown/dingus) demonstrates the > problem. > > Is this by design? > Is there another way to avoid this? > > Thanks in advance > > Bram > _______________________________________________ > Markdown-Discuss mailing list > Markdown-Discuss@six.pairlist.net > https://pairlist6.pair.net/mailman/listinfo/markdown-discuss -- Michel Fortin https://michelf.ca _______________________________________________ Markdown-Discuss mailing list Markdown-Discuss@six.pairlist.net https://pairlist6.pair.net/mailman/listinfo/markdown-discuss