Markwon icon indicating copy to clipboard operation
Markwon copied to clipboard

Arabic latex support

Open AzharRagab opened this issue 2 years ago • 0 comments

  • 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. Screen Shot 2022-08-18 at 5 35 49 PM

Screenshot of how it looks like with arabic equation. Screen Shot

any solution for this @noties ?

AzharRagab avatar Aug 18 '22 15:08 AzharRagab