spenserblack / steamdown

Convert Markdown to Steam's text format
steamdown.vercel.app
MIT License
23 stars 3 forks source link

Underlines break nested inline syntax #224

Open ilyvion opened 1 month ago

ilyvion commented 1 month ago

If you write ***t***, you get [i][b]t[/b][/i], if you write __t__, you get [u]t[/u], but if you write ***__t__***, you get [i][b]__t__[/b][/i] and if you write __***t***__ you get [u]***t***[/u]. In both cases, I'd expect all three of [i], [b] and [u] to be present, not just whichever is outermost.

spenserblack commented 1 month ago

Oof, thanks for the report. I'm currently focusing on writing my own parser instead of using marked.js and extending/overriding its behavior. Once that custom parser is done this should be fixed.

This bug is most likely caused by my naive attempt to insert underline support.