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

[Bug] does not work well in the codeblock of markdown file #189

Open
draftman9 opened this issue Aug 26, 2023 · 6 comments
Open

[Bug] does not work well in the codeblock of markdown file #189

draftman9 opened this issue Aug 26, 2023 · 6 comments

Comments

@draftman9
Copy link

Describe the bug

I code some python codes in the codeblock of markdown. But the rainbow plugin did not work in the area.

To Reproduce

  1. create a test.md
  2. code some python codes in the codeblock

File: test.md`, filetype=markdown

a=1
b=[1,2,[2,3]]
print(a,b(2))

Expected behavior

The ( and [ should be different colors.

Screenshots

image

Additional context

And I found the math environment has the same problem.
image

@luochen1990
Copy link
Owner

Are you using some 3rd party plugin for markdown highlighting?

@draftman9
Copy link
Author

Are you using some 3rd party plugin for markdown highlighting?

Maybe. I filtered some plugins( does not work well when I install these plugins):

call plug#begin('~/vimfiles/plugged')

Plug 'godlygeek/tabular'
Plug 'iamcco/markdown-preview.nvim', { 'do': 'cd app && yarn install'  }
Plug 'lervag/vimtex'
Plug 'KeitaNakamura/tex-conceal.vim'
Plug 'sheerun/vim-polyglot'
Plug 'luochen1990/rainbow'

call plug#end()

@luochen1990
Copy link
Owner

Seems like 'iamcco/markdown-preview.nvim' did some trick to markdown syntax, maybe you can check it out via the troubleshooting tools in README

@draftman9
Copy link
Author

Seems like 'iamcco/markdown-preview.nvim' did some trick to markdown syntax, maybe you can check it out via the troubleshooting tools in README

I do not know what is troubleshooting. And I only installed the Rainbow plugin by commenting other all plugins. But it still does not work in the .md file.

@luochen1990
Copy link
Owner

Have you tried :RainbowToggleOn ?

@draftman9
Copy link
Author

Have you tried :RainbowToggleOn ?

image

Yes I tried when I only installed the Rainbow plugin.

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

2 participants