Closed Titanexx closed 3 years ago
I'm closing this as a duplicate of #56: the solution is to create Document()
inside a with HTMLRenderer() as renderer
block. Or call mistletoe.markdown(fin, HTMLRenderer)
which effectively does the same for you.
But thanks for reporting this, it at least shows that the documentation needs to be updated (before ever changing the API as suggested at the same issue).
Done: f5ea6d66f7084921fd403030f7faebe312935c8d. :)
Thanks for support :)
HTMLBlock isn't parsed unless you add it manually (Test comes from https://spec.commonmark.org/0.28/#example-139)
Test script :
Which produces :
Remediation:
Change the block_token.all var like :