You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to get -- and --- concealed as en (–) and em dash (—). AFAIU I need to use document.conceal.char_patterns, but it doesn't work... I tried this:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to get
--and---concealed as en (–) and em dash (—). AFAIU I need to usedocument.conceal.char_patterns, but it doesn't work... I tried this:{'MeanderingProgrammer/render-markdown.nvim', dependencies = {'nvim-treesitter/nvim-treesitter', 'nvim-tree/nvim-web-devicons'}, ---@module 'render-markdown' ---@type render.md.UserConfig opts = { completions = {lsp = {enabled = true}}, heading = {sign = false, width = 'block', left_pad = 1, right_pad = 1}, document = { conceal = { char_patterns = { ['---'] = '—', -- em dash ['--'] = '–', -- en dash }, }, }, }, },...but it returns error, apparently that's not how
char_patternsare supposed to look.The thematic division is rendered correctly, but en dashes remain

--:[edit] I found this project TODO item so it seems it's not supported yet?
If it's planned, I'd strongly suggest implementing all the typical typography:
“,”,‘, and’–,—…Beta Was this translation helpful? Give feedback.
All reactions