0

In my rails view I use

<%= Asciidoctor.render '*This* is http://asciidoc.org[AsciiDoc]!' %>

I expected to get

<div class="paragraph"> <p><strong>This</strong> is 
<a href="http://asciidoc.org">AsciiDoc</a>!</p> </div>

but instead of that I get (in page source code)

&lt;div class=&quot;paragraph&quot;&gt;
&lt;p&gt;&lt;strong&gt;This&lt;/strong&gt; is &lt;a href=&
quot;http://asciidoc.org&quot;&gt;AsciiDoc&lt;/a&gt;!&lt;/p&gt;
&lt;/div&gt;

What am I doing wrong? How to display asciidoc converted to html not literally with all <tags> as now?

user4230877
  • 109
  • 6

0 Answers0