Using raw HTML in AsciiDoc

Posted by on March 14, 2015 · 1 min read

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!