You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
dollarmath_plugin renderer parameter does not work correctly in 0.3.4 #68
The dollarmath_plugin's renderer parameter does not work after upgrading to 0.3.4. Instead of using the given renderer function to parse the LaTeX, it just returns the name of the renderer function. Here's a simple example for repro:
In <=0.3.3
frommarkdown_itimportMarkdownItmd=MarkdownIt().use(dollarmath_plugin, renderer=lambdax,y:x).enable("table")
md.render("# Let's learn about $x$")
would produce:
<h1>Let\'s learn about <spanclass="math inline">x</span></h1>
In 0.3.4
it produces
<h1>Let's learn about <spanclass="math inline"><function<lambda> at 0x7fd79cb4d940></span></h1>
Reproduce the bug
See above
List your environment
Python 3.9
Windows, Linux
More context
We use the wonderful markdown-it-py and mdit-py-plugins packages in the open-source Gradio library, where we use it to render LaTeX in machine learning demos. We'd love to continue being able to do so, so hoping this bug gets fixed. Thanks!
Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗
If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.
If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).
Activity
welcome commentedon Feb 19, 2023
Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗
If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.
If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).
Welcome to the EBP community! 🎉
chrisjsewell commentedon Feb 19, 2023
oops, thanks for pointing out @abidlabs