tg-md-sanitizer
Sanitizes incorrect markdown tags for telegram
Usage
const sanitizeTGMD = ; const str = '[lol](link://krab_*) *l_l*` *test\* *test 2* \*test 3_*' const sanitized = ;
Input
[lol](link://krab_*) *l_l*` *test\* *test 2* \*test 3_*
Output
[lol](link://krab_*) *l_l*\` *test\* *test 2* \*test 3\_\*
For more examples take a look on tests.