I got the following situation:
- I turned on the Whitespaces highlighter
- I set the face to be quite dim
- In a markdown file, the whitespaces are highlighted together with the “list” symbol
Instead, I would like to highlight the list symbol, e.g. -
or *
, but not the whitespaces surrounding it. Currently, the markdown filetype regex to identify lists includes the spaces (and has to). The same issue appears, of course, with headers and so on.
In the screenshot below, I want the light blue whitespaces to be as dim as the other ones.
Is there a way I can make this work? Maybe with a regex capturing group (sub group) for the highlighting?
Thanks!