statnet / statnetWeb

A graphical user interface for network modeling with the 'statnet' software
GNU General Public License v3.0
29 stars 17 forks source link

latex output in term descriptions not rendering properly #91

Open martinamorris opened 2 months ago

martinamorris commented 2 months ago

@mbojan do you know if there's a simple fix in rShiny for this? Example below.

image

mbojan commented 2 months ago

Was it working before?

As far as I can tell it's not an easy fix because the entire term-searching technology we have drifted away from the objects used for that purpose in base R so existing functions that turn documentation to HTML (including math) are not working. Currently statnetWeb has own rudimentary formatting for this purpose. An elusive hack that comes to my mind is to have StatnetWeb convert the equations to something Shiny/MathJax understand (at this moment they use a different syntax) and render them through Shiny engine as Markdown content. Using tricks from these posts: