taoqf / node-html-parser

A very fast HTML parser, generating a simplified DOM, with basic element query support.
MIT License
1.12k stars 112 forks source link

Mermaid diagram in README.md is overflowing the call stack #251

Closed dpilafian closed 1 year ago

dpilafian commented 1 year ago

Viewing the README.md file at: https://github.com/taoqf/node-html-parser

hangs the browser in Safari and displays the following error in Chrome:

Unable to render rich display
Maximum call stack size exceeded

The error appears to be caused by two lines in the Mermaid diagram definition:

https://github.com/taoqf/node-html-parser/blob/6a816da48b9317fde3906e297c5f42c0734e8151/README.md?plain=1#L118

https://github.com/taoqf/node-html-parser/blob/6a816da48b9317fde3906e297c5f42c0734e8151/README.md?plain=1#L146

Commenting out the lines with %% enables the diagram to render without crashing.

taoqf commented 1 year ago

Thank you.