Using Node.js To use Turndown as a Node. Output may be to stdout or to your default browser. For a safe solution, add rehype-sanitize right before rehype-stringify. Turndown is a customizable HTML to Markdown converter written in vanilla JavaScript. Command-line utility to convert Github Flavored Markdown to HTML. This solution is not safe: content you don’t trust can cause XSS vulnerabilities.īut because we now have a complete HTML syntax tree, we can sanitize that tree. Use the toggle above to add the plugin.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |