#unicode-characters #markdown #notation #converter #convert #bold #mono

bin+lib markdown2unicode

Converter from markdown notation to unicode characters

1 unstable release

0.1.0 Aug 19, 2023

#1848 in Text processing

GPL-3.0-only

19KB
146 lines

About

Rust port of USBashka's markdown2unicode.

Converts simple Markdown text to Unicode

  • *Emphasis* => 𝘌𝘮𝘱𝘩𝘢𝘴𝘪𝘴
  • **Strong** => 𝐒𝐭𝐫𝐨𝐧𝐠
  • ***Emphasis*** => 𝑬𝒎𝒑𝒉𝒂𝒔𝒊𝒔 𝒔𝒕𝒓𝒐𝒏𝒈
  • `Code span` => 𝙲𝚘𝚍𝚎 𝚜𝚙𝚊𝚗

Usage

$ markdown2unicode -h
Converter from markdown notation to unicode characters

Usage: markdown2unicode [FILES]...

Arguments:
  [FILES]...  

Options:
  -h, --help     Print help
  -V, --version  Print version

$ markdown2unicode -V
markdown2unicode 0.1.0

Example

$ cat input
Here is some *emphasis* **bold** ***bold emphasis*** and `mono` text.

$ markdown2unicode input.txt
Here is some 𝘦𝘮𝘱𝘩𝘢𝘴𝘪𝘴 𝐛𝐨𝐥𝐝 𝒃𝒐𝒍𝒅 𝒆𝒎𝒑𝒉𝒂𝒔𝒊𝒔 and 𝚖𝚘𝚗𝚘 text.

Dependencies

~3–12MB
~140K SLoC