Skip to content

Hexo & pandoc parsing differences for code blocks in lists #766

Discussion options

You must be logged in to vote

Yes, I think this is a bug in Hexo. Hexo pre-processes code blocks with regular expressions and performs code highlighting before pandoc processing (instead of using pandoc's default code blocks). The regular expression used by Hexo fails to handle your case correctly. However, I believe this bug might be difficult to fix. You could try to work around this issue, for example, by adding extra blank lines.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@TripleCamera
Comment options

Answer selected by TripleCamera
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants