ITADN

Markdow syntax does not properly handle inline code in tables.

#4513Openfacelessuser 创建于 2026-04-11
C: Syntax
F
facelessusercommented
### Description of the bug Markdown syntax highlighter gets confused with inline code within tables ### Steps to reproduce 1. Use the following syntax: ```md Column 1 | Column 2 --------- | --------- `Row 1` | `a`, `b`, `c` ``` 2. Set syntax to Markdown The image below demonstrates the highlighting using the built-in Mariana color scheme. Inline code is not terminated when the closing character is found, causing broken highlighting. <img width="221" height="90" alt="Image" src="https://github.com/user-attachments/assets/b12d2ad1-0495-4963-ad6e-82556fdf6e73" /> Interestingly, using a code block that contains more than 1 character allows it to properly see the closing character. This may or may not help highlight the root cause. <img width="238" height="91" alt="Image" src="https://github.com/user-attachments/assets/f11067c3-87fa-48e2-9945-15367dddca60" /> ### Expected behavior Inline code should properly terminate when the end character is encountered. ### Actual behavior Inline code blocks with single-character content within tables do not properly terminate in some cases. ### Sublime Text build number 4203 (but may exist in earlier versions). ### Operating system & version macOS (but may exist in other OS) ### (Linux) Desktop environment and/or window manager _No response_ ### Additional information _No response_ ### OpenGL context information ```plain ```
0 条评论