Convert markdown into Telegram-specific markdown
npm install telegramify-markdown-es

!License
Telegramify-Markdown is a Markdown
to Telegram-specific-markdown converter, based
on Unified and Remark.
- Support for ES modules
- Keep dependencies up-to-date (unified, remark, etc.)
``bash`
npm install telegramify-markdown-es
`js
import telegramifyMarkdown from 'telegramify-markdown-es';
const markdown =
* item 1
* item 2
* item 3
And simple text with + some - symbols.;
telegramifyMarkdown(markdown);
/*
Header
Subheader
1\.0\.0
• item 1
• item 2
• item 3
And simple text with \+ some \- symbols\.
*/
`
You can also add unsupported tags strategy as a second argument, which can be one of the following:
- escape - escape unsupported symbols for unsupported tagsremove
- - remove unsupported tagskeep
- - ignore unsupported tags (default)
`js
import telegramifyMarkdown from 'telegramify-markdown-es';
const markdown =
> Blockquote
;telegramifyMarkdown(markdown, 'escape');
/*
Header
\> Blockquote
Text in div
*/telegramifyMarkdown(markdown, 'remove');
/*
Header
*/
``