nim-markdown icon indicating copy to clipboard operation
nim-markdown copied to clipboard

Inline markdown with unmodified normal text

Open volodymyrprokopyuk opened this issue 2 years ago • 0 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

volodymyrprokopyuk avatar Apr 10 '22 20:04 volodymyrprokopyuk