kostya / lexbor

Fast HTML5 Parser with CSS selectors. This is successor of myhtml and expected to be faster and use less memory.
MIT License
95 stars 14 forks source link

The doc of 'Node' generated with the 'crystal docs' command is broken. #25

Closed yamada-masahiro closed 1 year ago

yamada-masahiro commented 1 year ago

All the other pages have no issues, but only 'node' is unreadable as is seen below.

My compiler version is: Crystal 1.6.1 (2022-10-21) LLVM: 14.0.6 Default target: aarch64-apple-darwin21.6.0

screenshot
kostya commented 1 year ago

if you know how to fix it, please push pr.

yamada-masahiro commented 1 year ago

If I could fix it, I did. Sorry.

When I compared the source of the 'Node' page with the 'parser', I didn't find anything wrong.

nobodywasishere commented 1 year ago

The issue is due to the </div> here. Replacing with a \</div> fixes the issue, though the crystal doc generator should really be escaping HTML in doc comments.