remark-utf8

1.1.0 • Public • Published

remark-utf8

Remark plugin to transform basic markdown into utf8 special characters. Useful for when your output is going into plaintext, not HTML.

Basic Usage

$ yarn add remark-utf8
// or
$ npm install remark-utf8
import remark from "remark";
import utf8 from "remark-utf8";

const markdownString = `
    Just open sourced **remark-utf8** as a standalone plugin. Use _emphasis_, \`monospace fonts\` and **bolds** wherever. Careful about those screen readers tho ✌️

    https://github.com/Swizec/remark-utf8
`;

remark()
    .use(utf8)
    .process(markdownString, function(err, output) {
        console.log(output.contents);
    });

Outputs something like:

Just open sourced 𝗿𝗲𝗺𝗮𝗿𝗸-𝘂𝘁𝗳𝟴 as a standalone plugin. Use 𝘦𝘮𝘱𝘩𝘢𝘴𝘪𝘴, 𝚖𝚘𝚗𝚘𝚜𝚙𝚊𝚌𝚎 𝚏𝚘𝚗𝚝𝚜 and 𝗯𝗼𝗹𝗱𝘀 wherever. Careful about those screen readers tho ✌️

https://github.com/Swizec/remark-utf8

Use responsibly.

Warning

This messes with screen readers. Make sure you are okay with inaccessible text before using this. ✌️

Readme

Keywords

none

Package Sidebar

Install

npm i remark-utf8

Weekly Downloads

1

Version

1.1.0

License

MIT

Unpacked Size

19.7 kB

Total Files

7

Last publish

Collaborators

  • swizec