lukas-reineke / headlines.nvim

This plugin adds horizontal highlights for text filetypes, like markdown, orgmode, and neorg.
MIT License
687 stars 28 forks source link

Fix regex that matches fenced code blocks #2

Closed delphinus closed 2 years ago

delphinus commented 3 years ago

Without this, it does not match blocks below.

<!-- ` x 4 or over -->
<!-- and have spaces on the head -->
   ````lua
   print'Hello World!'
lukas-reineke commented 3 years ago

` x 4 or over

Thats a good point :+1:

But leading spaces is not correct. If something is indented by 4 spaces, markdown interprets this as a codeblock.

lukas-reineke commented 2 years ago

Sorry, this PR is not relevant anymore