|
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! |
Answered by
bitstein
Jan 2, 2024
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. |
0 replies
Answer selected by
bitstein
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: