-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Indented code block containing HTML incorrectly parsed as inline HTML #440
Comments
Yeah, with GFM, you do this: https://help.github.com/articles/github-flavored-markdown#syntax-highlighting Note that for html, you need to use That said, it looks like it's escaping it...I am currently looking for a work around though... |
leighquince
pushed a commit
to leighquince/dillinger
that referenced
this issue
Aug 28, 2014
Added it but still doesn;t make a differences might be something to do with this issue in marked markedjs/marked#440
Related to #378 |
+1 |
Indented code blocks cannot interrupt paragraphs. So you need to put an empty line between the first paragraph and the code block:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi! Cool project.
I am trying to create documentation including inline HTML code samples, i expect the inline HTML samples to be formatted as code. However they are being included verbatim.
Repro is as follows:
Produces
Expected
<pre><code>>iframe src=''<>/iframe<</code></pre>
or something similar...Or is there meant to be an alternative way of creating a code block, rather than a four-space indent?
marked@0.3.2
The text was updated successfully, but these errors were encountered: