Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code block in html div #567

Closed
imabot2 opened this issue Mar 10, 2018 · 1 comment
Closed

Code block in html div #567

imabot2 opened this issue Mar 10, 2018 · 1 comment
Milestone

Comments

@imabot2
Copy link

imabot2 commented Mar 10, 2018

I tryed to insert a code block in a <div> markup :

<div>
` ` ` python
a = 6
` ` `
</div>

The code block is not parsed, I don't think it is a bug, but it is still an issue for me. Is there an option for solving this problem.

By the way, an escape syntax for escaping a block of lines or a part of the markdown source file would really be welcome, and could probably solved many problems (like MathJax equations for example #554).

@aidantwoods
Copy link
Collaborator

This will be fixed in the next release :)

One thing to note though, you'll need to put a single newline in-between <div> and the markdown for the code block to get the result you want, the per CommonMark spec.

You can take a look at #514 if you're interested in looking at the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants