Closed shirayuki closed 11 months ago
The style handler in the FileViewer is very limited, it cannot check the character before. A complete rewrite or replace of the FileViewer wold be a big change. The style is set in Externals\ICSharpCode.TextEditor\Project\Resources\Markdown.xshd
The "solution" would be to handle the preview of italics as for bold: disable
The support of markdown is know to be brittle. The idea was to propose something good enough to help the user even if some limitation are known due to how the undocumented syntax highlighting is working (or at least of my --lack of-- knowledge of it when I have added the support of markdown).
I don't see something in https://github.com/gitextensions/ICSharpCode.TextEditor/blob/master/Project/Resources/Mode.xsd that allows us to handle it cleverly.
The only solution is to disable the rule but I'm not sure I want that...
Environment
Issue description
When displaying the source of a markdown file in the Diff pane, sections enclosed in underscores or starting with underscores are incorrectly formatted in italics.
Example:
Steps to reproduce
Did this work in previous version of GitExtensions?
No response
Diagnostics
No response