Using raw HTML in AsciiDoc

Now that I’m using HubPress for my blog, I have to work with AsciiDoc. Coming form MarkDown, I was used to just putting raw HTML in a paragraph whenever I wanted to. This doesn’t work in AsciiDoc; entities are being converted. But, as it turns out the solution is straightforward, wrapping code in four plus signs,

++++
<p style="color:red">This is red</p>
++++

will result in:

This is red

Sweet, easy enough!

comments powered by Disqus