A plugin for Markdown-it to add bidi support
npm install markdown-it-bidiThis is a plugin for Markdown-it to add bidi (bidirectinal text) support to
its Markdown to HTML parser.
Install dependencies
``shell`
npm i markdown-it
npm i markdown-it-bidi
Use the package to add bidi support. For example:
`js
const markdownit = require('markdown-it')
const mdBidi = require('markdown-it-bidi')
const md = markdownit().use(mdBidi)
const inputText =
Some text
in two lines!
- unordered list 1
- unordered list 2
1. ordered list 1
1. ordered list 2
> first paragraph
>
> second paragraph;
const result = md.render(inputText)
console.log(result)
`
Output:
` Some text first paragraph second paragraphhtml``Heading 1
Heading 2
in two lines!