maciejhirsz / logos

Create ridiculously fast Lexers
https://logos.maciej.codes
Apache License 2.0
2.71k stars 105 forks source link

feat(lib): add mermaid diagram debug output + create issue template #395

Open jeertmans opened 1 month ago

jeertmans commented 1 month ago

Currently, the debug features outputs a diagram that it not very easy to visualize.

As demonstrated in #393, GitHub supports mermaid diagrams and I think this would be an excellent feature to add a debug feature that outputs the code for the corresponding mermaid diagram.

Also, this would make sense to create an issue template that asks for users to include to mermaid in the issues, so we can easily visualize what could be wrong!