mikitex70 / plantuml-markdown

PlantUML plugin for Python-Markdown
BSD 2-Clause "Simplified" License
198 stars 55 forks source link

Fix progression of parser #57

Closed sgilson closed 3 years ago

sgilson commented 3 years ago

In the current version, the calculation for how far the parser should progress through the content has a bug. In larger documents (and for some reason when using SVGs in particular), the parser will skip over large chunks of the content and leave diagrams un-rendered.

I can't share the source document and I haven't yet been able to create a reasonably sized test case to reproduce the issue. However, I've taken some small steps to confirm the fix:

Let me know if I am missing something, but I think this fix is fairly straightforward.

mikitex70 commented 3 years ago

Hi @sgilson, thanks for your Pull Request. It's now merge in the master as commit 845580e. I've not checked it with big documents, but I'm sure its working fine. Thanks again.