Edditoria / markdown-plus-plus

Markdown syntax highlighting for Notepad++, by customized UDL file (user defined language)
MIT License
1.5k stars 277 forks source link

Headings (#) separated by single line aren't highlighted #33

Closed Stevoisiak closed 5 years ago

Stevoisiak commented 6 years ago

Issue

When a file is opened with the Markdown Default Modern style, #-styled headings aren't highlighted properly if they are separated by a single newline.

This means that the following code block:

# Heading 1
## Heading 2
### Heading 3
#### Heading 4

Will render as:

Highlighting missing for headings 2 and 4

Steps to reproduce

  1. Create a new file in Notepad++.
  2. Type 2 or more # styled headings separated by a single newline.
  3. Save as file.md.
  4. Select Language → Markdown.
  5. Right click filename in upper tab bar and select Reload.

System Info

Edditoria commented 5 years ago

Thanks for your information. It seems to be a bug in UDL rendering in Notepad++

Have reported to the NPP project: notepad-plus-plus/notepad-plus-plus#5127

Edditoria commented 5 years ago

Label it as "Status: Idle" and close this issue right now. Will check again in future. But most likely need an update on UDL in Notepad++.