I am using showdown.js that can be downloaded from https://github.com/showdownjs/showdown/
and the question is I am trying to allow only certain formatting? E.g. only bold formattings are allowed, the rest is not converted and is formatting discarded for example
If I am writing the text which is a Markdown Expression below
"Text attributes _italic_, *italic*, __bold__, **bold**, `monospace`."
the output of the above would be below
<p>Text attributes <em>italic</em>, <em>italic</em>, <strong>bold</strong>, <strong>bold</strong>, <code>monospace</code>.
after conversion. Now what I want is when converting, it should convert the bold expression only rest of the expressions it should discard.
I am using the below code to convert the markdown expression into a normal text below
var converter = new showdown.Converter(),
//Converting the response received in to html format
html = converter.makeHtml("Text attributes _italic_, *italic*, __bold__, **bold**, `monospace`.");
Thank you!
`) to be included or excluded? You only mention inline syntax/tags, and make no mention of block level tags. The correct answer depends on what you want.
– Waylan Jun 08 '16 at 12:51tag as well.
– Pradeep Gaba Jun 08 '16 at 13:08