Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Not all HTML entities are supported #114
I am using Jekyll with kramdown. While redcrapt supported all the HTML entities I've used, I've found that kramdown doesn't support some of my entities, and instead is just escaping the ampersand character.
I'm using a known and documented entities, which should be supported. I guess that if I'll replace the entity keyword with its numerical location it will work, but it is far less readable for who will read the unparsed document.
--- --- " Hello World π ‏ & & "
<p>" Hello World π &rlm; & & "</p>
<p>" Hello World π ‏ & & "</p>
(or replace &rlm with U+200F which I'm not really fan of…)
I think there are a lot of entities not yet supported.
In these specifications, https://html.spec.whatwg.org/entities.json is referred to
require 'kramdown' text =<<-HTML Ă А 𝔄 Ā ⩓ HTML puts Kramdown::Document.new(text).to_html
<p>Ă А 𝔄 Ā ⩓</p>
<p>&Abreve; &Acy; &Afr; &Amacr; &And;</p>