Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

styles mis-matches closing symbols present inside a nested codeblock #637

Open
joseluis opened this issue Jul 27, 2023 · 0 comments
Open

Comments

@joseluis
Copy link

For example, having something* in a codeblock that's inside an opened italic group with * closes that italic group beore the codeblock closes. The same for any other style groups.

In general, the style symbol should not be matched when it's inside a codeblock.

  -  *ABC*     OK italic style
  -  `ABC`     OK colored code
  - *`ABC`*    ±OK italic style but uncolored code
  - *`ABC*`*   ERR` italic group matches the next * and the code block bleeds over next `
  - *`ABC*D`*  ±OK thanks to the alphanumeric ASCII character. But normal style colored code.
  - *`ABC*á`*  ERR` non-ASCII-alphanumeric characters aren't considered
  - _`ABC_€`_  ERR` same with underscores
  - _`ABC*`_   ±OK the only workaround is to use _ or * depending on what's inside
  - *`ABC_`*   ±OK and vicersa
  - **`ABC**`**   ERR` the same happens with bold
  - ~~`ABC~~`~~   ERR` the same happens with strike

imagen

Ideally it would be nice to also have colored code blocks regardless of other styles but that's unrelated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant