Bold/italic emphasis syntax is not rendered in headlines
ourigen opened this issue · 5 comments
Describe the bug
Emphasis syntax such as *bold*
, /italic/
, _underlined_
, etc. don't seem to render in headlines. I take notes in bullets so I make use of bolded/italicized words in headlines often.
With the top level headline I can understand why bolding doesn't show since the entire headline is bolded. But italicizing doesn't work for all headlines and bolding doesn't work for subheadlines
Steps to reproduce
This is what I used in my example text
* This is a test: *bold* /italic/ _underlined_
** This is a test: *bold* /italic/ _underlined_
*** This is a test: *bold* /italic/ _underlined_
This is a test: *bold* /italic/ _underlined_
Expected behavior
For *bold*
, /italic/
, and _underlined_
, I expected each word to render in the right face and be concealed (if the setting is set to true) even in headlines. The syntax properly shows and is concealed in normal text.
Emacs functionality
No response
Screenshots and recordings
OS / Distro
Arch Linux
Neovim version/commit
v0.6.0-dev
Additional context
No response
This is currently really hard to achieve without defining bunch of new syntax hl groups to handle each headline level for specific headline color, which I want to avoid for now. If i would enable it, this is what it would look like:
Once treesitter support is added, this should be an easily solvable issue.
@ourigen partial support for this is added on tree-sitter branch. Here's how above content looks now:
Bold is still a bit problematic because headlines start with *
and it messes up the highlights.
Good to hear about the tree-sitter support! I'll help to test the branch when I have time
@ourigen this should be working more less ok at this moment. Bold issue should also be fixed. Let me know.
@kristijanhusak Works well enough for me. Thanks for the great work!