Lines started with #
in code block being recognized as markdown title
#1490
Labels
#
in code block being recognized as markdown title
#1490
Description
When using markdown syntax, lines started with
#
in code block unexpectedly get recognized as markdown titles.This affect the most when writing bash script snippet in markdown:
The above text snippet contains two lines that start with
#
:The latter one is not a markdown title, but unexpectedly be recognized as one, as visualize in the following screenshot (highlighted with red arrow):
To Reproduce
Create a new document.
Set syntax style to Markdown.
Paste the following text:
See error in outline.
Expected behavior
Lines started with
#
in code block should not be recognized as markdown title.CotEditor version
4.5.5 (569)
macOS version
macOS Version 12.6.5 (Build 21G531)
Additional context
No response
The text was updated successfully, but these errors were encountered: