CotEditor icon indicating copy to clipboard operation
CotEditor copied to clipboard

[highlight] `#` in code block in markdowns are incorrectly inferred as an h1 section in the outline menu / inspector

Open yangvz opened this issue 6 years ago • 2 comments

Environment

  • CotEditor: 3.4.1 (253)
  • System: macOS Version 10.13.4 (Build 17E202)
  • Language: English

Short Description

# in code block in markdowns are incorrectly inferred as an h1 section in the outline menu / inspector

Steps to Reproduce the Issue

  • change syntax to markdown
  • add a code block such as
# a comment

Expected Result

in the outline menu, or in the outline inspector, there should not be an h1 section titled "a comment".

yangvz avatar Jun 01 '18 04:06 yangvz

Unfortunately, I have to say it is currently by design. Sorry.

To fix this behavior, CotEditor needs first to change syntax parsing algorithms. I know I need to do it at some time point in the future, but it's still under consideration.

1024jp avatar Jun 18 '18 20:06 1024jp

Please implement this feature.

diethardsteiner avatar Mar 07 '19 22:03 diethardsteiner