3 unstable releases
0.2.1 | Aug 16, 2024 |
---|---|
0.2.0 | Jul 23, 2024 |
0.1.0 | Aug 19, 2023 |
#1280 in Text processing
20KB
157 lines
About
Rust port of USBashka's markdown2unicode.
Converts simple Markdown text to Unicode
-
*Emphasis*
=> 𝘌𝘮𝘱𝘩𝘢𝘴𝘪𝘴 -
**Strong**
=> 𝐒𝐭𝐫𝐨𝐧𝐠 -
***Emphasis***
=> 𝑬𝒎𝒑𝒉𝒂𝒔𝒊𝒔 𝒔𝒕𝒓𝒐𝒏𝒈 -
`Code span`
=> 𝙲𝚘𝚍𝚎 𝚜𝚙𝚊𝚗
NOTE: This crate is superceded by unidown
.
Please use it instead of this one.
Usage
$ markdown2unicode -h
Converter from markdown notation to unicode characters
Usage: markdown2unicode [OPTIONS] [STRING]...
Arguments:
[STRING]... Markdown string(s)
Options:
-i <PATH> Input file(s)
-h, --help Print help
-V, --version Print version
$ markdown2unicode -V
markdown2unicode 0.2.0
Examples
$ markdown2unicode 'Here is some *emphasis*, **strong**, ***strong emphasis***, ~~strike~~, and `code` text.'
Here is some 𝘦𝘮𝘱𝘩𝘢𝘴𝘪𝘴, 𝐬𝐭𝐫𝐨𝐧𝐠, 𝒔𝒕𝒓𝒐𝒏𝒈 𝒆𝒎𝒑𝒉𝒂𝒔𝒊𝒔, ~~strike~~, and 𝚌𝚘𝚍𝚎 text.
Dependencies
~3–11MB
~141K SLoC