soasme / nim-markdown

A Beautiful Markdown Parser in the Nim World.

Home Page:https://www.soasme.com/nim-markdown/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Inline markdown with unmodified normal text

volodymyrprokopyuk opened this issue · comments

Hi,

The blow code

let doc = "*Italic* **bold** normal"
echo markdown(doc, root = Paragraph())
echo markdown(doc, root = Inline())

gives the following output

<p><em>Italic</em> <strong>bold</strong> normal</p>

<em>Italic</em>
<strong>bold</strong>
n
o
r
m
a
l

I need the first (Paragraph) output, but without the <p> tag and with the normal word as a single line as shown below

<em>Italic</em> <strong>bold</strong> normal

How the above output can be achieved?

Thank you,
Vlad