-
-
Notifications
You must be signed in to change notification settings - Fork 967
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
Inline HTML not passed through #326
Comments
It's not a bug in pandoc it's actually expected behavior! This is because pandoc allows markdown in HTML, and when you indent 4 spaces that's actually considered a markdown code block. The solution is to use one of the workarounds described by Winston or to just generate HTML without the indentation. |
It's not clear that this is desired behaviour in pandoc. One of the example in the manual (under <table>
<tr>
<td>*one*</td>
<td>[a link](http://google.com)</td>
</tr>
</table> I don't think the expectation is that this is transformed into <table>
<pre>
<tr>
<td>*one*</td>
<td>[a link](http://google.com)</td>
</tr>
<pre>
</table> |
That said, if I run that block of html through pandoc I get: <table>
<pre><code><tr>
<td>*one*</td>
<td>[a link](http://google.com)</td>
</tr></code></pre>
</table> So it's either a bug in the implementation or the documentation. Might be worth a post to the pandoc mailing list |
Right, that example is at: http://rmarkdown.rstudio.com/authoring_pandoc_markdown.html#raw-html |
@hadley I'm running into this issue as well. Is there a way to tell rmarkdown to use the |
You can now use the |
The example on the rmarkdown website seems to have been fixed. There isn't much we can do on rmarkdown's side. For this issue, we are at the mercy of Pandoc... |
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary. |
When raw HTML is added to a Rmd document, any tags that are indented four or more spaces get treated as code instead of raw HTML. @hadley and @jmcphers pointed me to some workarounds, shown below:
I suspect this is actually a bug in Pandoc. I'm using 1.13.1 with RStudio 0.99.97.
The text was updated successfully, but these errors were encountered: