Newlines inside code blocks are output as <br> #62

rmccue opened this Issue Jan 11, 2017 · 0 comments


None yet

1 participant

rmccue commented Jan 11, 2017

Code blocks that contain \n have them replaced in encodeContent() with <br>\n, however this isn't necessary for preformatted content.

encodeContent() is called just before the code block check in renderBlockContent(). Not sure whether it'd be better to a) split the newline replacement into a new method, b) move the encoding to after the code block check, or c) undo the replacement for code blocks. Happy to PR one of these!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment