Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is significant white space in pandoc/markdown usually regulated?

I'm using pandoc to convert some markdown documents to .html via a custom css file.

Everything is working except one thing. From what I understand the text in backticks `` should be white space significant, since it is usually code inside. In my case, it is not - in other words, it just looks like ordinary other text.

I'm interested in where is that regulated in pandoc, or in a custom css file - what css attribute regulates whether the white space should be significant?

like image 591
Rook Avatar asked Oct 09 '22 10:10

Rook


1 Answers

Pandoc will put text between backticks inside HTML <code> tags. Leading and trailing whitespace are ignored (as in Markdown.pl), but internal spaces are preserved. Newlines are treated as spaces. Check the HTML source to make sure you have the <code> tags. If you don't, then there is probably a problem with your markdown source. Also check to make sure you're not linking to CSS that overrides the default settings for <code> tags.

like image 119
John MacFarlane Avatar answered Oct 13 '22 10:10

John MacFarlane