You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The output for nested italic and bold is incorrect. #113
Hi, it seems the output for ***text*** or ___text___ is incorrect. The correct output should be either <em><strong>text</strong></em> or <strong><em>text</em></strong>. Currently, it is <strong><em>text<strong><em></em></strong></em></strong>.
@NguyenHoangHieu22GIT2 Actually, it's impressive considering its tiny source size, but as it consists solely of a single regular expression, fixing any issues is almost impossible.
@0smr AFAIK any lexer can be rewritten into regular expression, if it operates on a language with regular grammar.
I believe, fixing issues is hard due to parser being embedded into the lexing process - it basically does everything in a single run.
@AlexanderFarkas I understand that. I just opened the issue so that the maintainer would be aware of it, and any other developer who sees this. However, I didn't wait for any fixes since I was sure that this wouldn't get fixed in the near future.
Activity
0smr commentedon Aug 24, 2023
@NguyenHoangHieu22GIT2 Actually, it's impressive considering its tiny source size, but as it consists solely of a single regular expression, fixing any issues is almost impossible.
vimhead commentedon Jul 29, 2024
@0smr AFAIK any lexer can be rewritten into regular expression, if it operates on a language with regular grammar.
I believe, fixing issues is hard due to parser being embedded into the lexing process - it basically does everything in a single run.
0smr commentedon Jul 29, 2024
@AlexanderFarkas I understand that. I just opened the issue so that the maintainer would be aware of it, and any other developer who sees this. However, I didn't wait for any fixes since I was sure that this wouldn't get fixed in the near future.