msmid / markdown2docbook

Conversion tool for transforming markdown text files to DocBook/HTML documents. Project is based on XSLT 2.0 technology.
MIT License
21 stars 6 forks source link

Escaping special characters #36

Closed msmid closed 10 years ago

msmid commented 10 years ago

We need to handle markdown special characters like

\   backslash
`   backtick
*   asterisk
_   underscore
{}  curly braces
[]  square brackets
()  parentheses
#   hash mark
+   plus sign
-   minus sign (hyphen)
.   dot
!   exclamation mark

also handle html significant characters < and &

msmid commented 10 years ago

it is part of inline parsing step now. After codespans are resolved, escaped special characters are done.

html significant characters are escaped to entities by default behavior of xsl