Markwon
Markwon copied to clipboard
Arabic latex support
- Markwon version: {4.6.2}
I am using JLatexMathPlugin
to display math formula it works well in english equation but when i want to display Arabic equation The Arabic letters appears well, but the numbers still appears in English.
FYI: the Arabic number is displayed well in Markwon without latex plugin but when using JLatexMathPlugin
the arabic number doesn't display in Arabic.
Below is the code i used
Markwon.builder(context) // required plugin to support inline parsing
.usePlugin(MarkwonInlineParserPlugin.create())
.usePlugin(HtmlPlugin.create()) // support html
.usePlugin(JLatexMathPlugin.create(textSize) { builder -> // ENABLE inlines
builder.inlinesEnabled(true)
})
.usePlugin(SoftBreakAddsNewLinePlugin.create()) // to add new line
.build()
Screenshot of how it looks like with english equation.
Screenshot of how it looks like with arabic equation.
any solution for this @noties ?