btford/angular-markdown-directive

Example in README.md doesn't work.

tobiaspatton-s4 opened this issue · 0 comments

The example given:

<btf-markdown>
  #Markdown directive
  *It works!*
</btf-markdown>

renders as HTML:

<pre><code>#Markdown directive
*It works!*
</code></pre>

But, I believe the intention is that it should render as:

<h1 id="markdowndirectiveitworks">Markdown directive<em>It works!</em></h1>

The reason that it renders as <pre><code>...</pre></code> is because the lines inside the HTML element are prefixed with four spaces.

The example should read:

<btf-markdown>#Markdown directive  *It works!*</btf-markdown>