Skip to content

Latest commit

 

History

History
47 lines (33 loc) · 1.39 KB

README.md

File metadata and controls

47 lines (33 loc) · 1.39 KB

Markdown to Unicode Converter

NPM Package jsDelivr hits (GitHub)

A simple library to convert Markdown syntax to Unicode characters.

Installation

npm install markdown-to-unicode

Usage

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̶

Browser Usage

<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>

Roadmap

Bold
Italic
Strikethrough
❎ Blockquote
❎ Unordered List
❎ Horizontal Line
❎ TypeScript Support
✅ Web Browser Support
❎ Additional Options Support (e.g. Font) for uniform formatting