mikitex70 / redmine_drawio

Macro plugin to embed draw.io diagrams into Redmine wiki pages
MIT License
125 stars 51 forks source link

Drawio enables math mode #125

Closed ksingvo closed 1 week ago

ksingvo commented 1 year ago

When Plugin redmine_drawio is enabled, I see unwanted math formated symbols:

The description contains this text:

Cable-precheck Test:
> 1. `c.generic_test_check.get_names() #Display all test names`

and leads to this: image

mikitex70 commented 1 year ago

Hi @ksingvo, I've done some check and yes, the plugin loads the MathJax library used by DrawIO. But the library is optional (and usually disabled), simply disable its loading in the plugin configuration panel (Adminitrations -> Plugins -> Redmine Drawio plugin -> Configuration.

mikitex70 commented 1 year ago

I've found a way that can be used to disable the Mathjax rendering, enclose the text in a div with class no-mathjax. Your example become:

Cable-precheck Test:<div class="no-mathjax">
> 1. `c.generic_test_check.get_names() #Display all test names`
</div>

Not elegant but can be used to disable Mathjax as required.

ksingvo commented 1 year ago

Yes, wow. Never hat such a solution in mind.

That's a good working solution for me. --> Issue can be closed with solution given.

Thank you.