Closed numinit closed 2 years ago
Kramdown::Parser::Html.parse('&') # => [<kd:root options={:encoding=>#<Encoding:UTF-8>, :location=>1, :options=>{}, :abbrev_defs=>{}, :abbrev_attr=>{}} children=[<kd:text value="&\n" options={:location=>1}>]>, []] Kramdown::Parser::Html.parse('<p>&</p>') # => [<kd:root options={:encoding=>#<Encoding:UTF-8>, :location=>1, :options=>{}, :abbrev_defs=>{}, :abbrev_attr=>{}} children=[<kd:p children=[<kd:text value="">, <kd:entity value=#<struct Kramdown::Utils::Entities::Entity code_point=38, name="amp"> options={:original=>"&"}>]>]>, []]
Thanks - this is fixed for the upcoming release!
Awesome! I can get rid of my terrible hack of manually enclosing everything in a <p>!
<p>