Skip to content

The output for nested italic and bold is incorrect. #113

Open

Description

@0smr

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>.

Activity

  1. 0smr commented on Aug 24, 2023

    @0smr
    Author

    @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.

  2. vimhead commented on Jul 29, 2024

    @vimhead

    @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.

  3. 0smr commented on Jul 29, 2024

    @0smr
    Author

    @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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions