karlb / smu

Simple MarkUp - markdown/commonmark like syntax
http://karlb.github.io/smu/
MIT License
55 stars 5 forks source link

no support for html entities #13

Open apprehensions opened 1 year ago

apprehensions commented 1 year ago

https://www.w3schools.com/html/html_entities.asp

it will be interpreted as · -> ·

karlb commented 1 year ago

I can confirm that HTML that this happens and is contrary to CommonMark, see https://spec.commonmark.org/0.30/#entity-and-numeric-character-references.

What do you mean with "HTML codes"? Using HTML tags is possible, e.g.

$ echo '<b>foo</b>' | smu
<p><b>foo</b></p>
apprehensions commented 1 year ago

what do you mean by both if what you said? I would simply want to use &middot; along with html code &#361; (example)

karlb commented 1 year ago

Understood, it is all about HTML entities, both named (&middot;) and numeric (&#361;)