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
There is an incorrect syntax highlighting on a case where a code block and inline code are used at the same time.
The text is highlighted as code incorrectly, and the inline code is not highlighted.
To Reproduce
Make a new file.
Select Markdown as a syntax.
Paste the text to the file.
```
code
```
text
`incline code`
Expected behavior
The text should not be highlighted and inline code should be highlighted as code.
CotEditor version
4.8.2
macOS version
14.4.1
Additional context
No response
The text was updated successfully, but these errors were encountered:
mtj0928
changed the title
Incorrect syntax highlighting on a case where a code block and inline code are used at the same time
Incorrect syntax highlighting on Markdown
May 8, 2024
Built-in syntax highlighter for markdown allow many wired things I've never use, say allow double ` for inline code.
I don't know where does these come from, and just defining a simpler highlight rule set for my own use. For example, don't allow any newline for inline code blocks, more strict rules for simple Regex.
Anyway, robust highlight is just an impossible task for Regex, even for languages with such a seemingly straightforward syntax.
Description
There is an incorrect syntax highlighting on a case where a code block and inline code are used at the same time.
The
text
is highlighted as code incorrectly, and theinline code
is not highlighted.To Reproduce
Expected behavior
The
text
should not be highlighted andinline code
should be highlighted as code.CotEditor version
4.8.2
macOS version
14.4.1
Additional context
No response
The text was updated successfully, but these errors were encountered: