You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it be possible to extend the namedCodesToUnicode constant with custom html codes to display them correctly.
Therefore a new options.namedCodesToUnicode object could integrated to extend the existing constant list while keeping the list in this repository as small/clean as it is at the moment.
The documentation could also be extended and the new options could work like this:
options.namedCodesToUnicode
By default only a couple of named html codes are converted to unicode characters.
& (&)
' (')
> (>)
< (<)
( )
" (")
Some projects require to extend this map of named codes and unicode characters. To customize this list with additional html codes pass the option namedCodesToUnicode as object with the code names needed as in the example below:
<Markdownoptions={{namedCodesToUnicode: {le: '\u2264',ge: '\u2265',}}}>This text is ≤ than this text.</Markdown>;// orcompiler('This text is ≤ than this text.',namedCodesToUnicode: {le: '\u2264',ge: '\u2265',});// renders:<p>This text is ≤ than this text.</p>
The text was updated successfully, but these errors were encountered:
Would it be possible to extend the
namedCodesToUnicode
constant with custom html codes to display them correctly.Therefore a new
options.namedCodesToUnicode
object could integrated to extend the existing constant list while keeping the list in this repository as small/clean as it is at the moment.The documentation could also be extended and the new options could work like this:
options.namedCodesToUnicode
By default only a couple of named html codes are converted to unicode characters.
&
(&
)'
('
)>
(>
)<
(<
)
)"
("
)Some projects require to extend this map of named codes and unicode characters. To customize this list with additional html codes pass the option
namedCodesToUnicode
as object with the code names needed as in the example below:The text was updated successfully, but these errors were encountered: