-
|
I am trying to make a custom renderer for the dollarmath plugin, because I need the output to have different classes than what the plugin provides. I then have: If I run What am I doing wrong? Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
It dawned on me that And then explicitly added them as render rules: Now it outputs correctly: I hope this can help someone else trying to do some markdown-it-py customizations. |
Beta Was this translation helpful? Give feedback.
It dawned on me that
render_math_inlineandrender_math_blockwere inside of a function and thus were not going to get overridden that way. I instead just wrote two functions:And then explicitly added them as render rules: