iamcco / markdown-preview.nvim

markdown preview plugin for (neo)vim
MIT License
6.76k stars 280 forks source link

Tags in code blocks are not visible #251

Closed Snaptags closed 4 years ago

Snaptags commented 4 years ago

Describe the bug If I have HTML tags in code blocks marked by three backticks ``` they do not show up in the rendered result. The renderer adds additional closing tags for them instead.

To Reproduce Steps to reproduce the behavior:

  1. create a md file containing

    Code:
    ``` `
    describe("Basic tests", () => {
    it("Renders the current count", () => {
      render(<Basic />);
      screen.debug();
    });
    });
    ``` `
  2. Remove the extra backtick leaving only three of them to indicate a code block

  3. Run :MarkdownPreview

  4. See error: image and note the weird extra-closing tag added: image

Expected behavior Render unmodified code: image

Desktop (please complete the following information):

Log:

Snaptags commented 4 years ago

Works in the online version of your formatter: https://markdown-it.github.io/ Probably a bug already fixed in a newer version?

Snaptags commented 3 years ago

Thanks a lot for fixing this so quickly, I really appreciate that.