rouge-ruby / rouge

A pure Ruby code highlighter that is compatible with Pygments
https://rouge.jneen.net/
Other
3.31k stars 732 forks source link

Fix array being parsed as table header in TOML #1859

Closed tancnle closed 1 year ago

tancnle commented 1 year ago

This ensures the table is pushed up to the root stack and not picked up as a value in the basic mix-in. I have also added a few more examples from the official doc for testing.

Before After
Screen Shot 2022-08-18 at 10 21 04 am Screen Shot 2022-08-18 at 10 21 21 am

Fixes https://github.com/rouge-ruby/rouge/issues/1719

📓 Troubleshooting notes

tancnle commented 1 year ago

👋🏼 @mrexodia could you kindly confirm if this address the reported issue? 🙏🏼

mrexodia commented 1 year ago

Looks good!