Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disabling concealing of code blocks also disables concealing of inline code #657

Open
qadzek opened this issue May 25, 2024 · 1 comment

Comments

@qadzek
Copy link

qadzek commented May 25, 2024

The following settings should only disable concealing for code blocks (triple backticks), but for inline code (single backticks) it's disabled as well.

let g:vim_markdown_conceal = 1
let g:vim_markdown_conceal_code_blocks = 0

Is there a workaround to only conceal inline code?

@qadzek
Copy link
Author

qadzek commented May 27, 2024

I have added the following to ~/.vim/after/syntax/markdown.vim as a workaround:

syntax region String matchgroup=@string start=/\v(^|[^`])\zs`\ze[^`]/  end=/\v`|$/  concealends containedin=ALL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant