A simple library to convert Markdown syntax to Unicode characters.
npm install markdown-to-unicode
const convertMarkdownToUnicode = require('markdown-to-unicode');
const unicodeText = convertMarkdownToUnicode("**Hello** *World* and ~~Universe~~");
console.log(unicodeText); // Output the unicode equivalent
Output:
𝐇𝐞𝐥𝐥𝐨 𝑊𝑜𝑟𝑙𝑑 and U̶n̶i̶v̶e̶r̶s̶e̶
<script src="https://cdn.jsdelivr.net/gh/cstayyab/markdown-to-unicode@main/dist/markdown-to-unicode.js"></script>
<script>
const result = MarkdownToUnicode("**Hello** *World* and ~~Universe~~");
console.log(result);
</script>
✅ Bold
✅ Italic
✅ Strikethrough
❎ Blockquote
❎ Unordered List
❎ Horizontal Line
❎ TypeScript Support
✅ Web Browser Support
❎ Additional Options Support (e.g. Font) for uniform formatting