vim-pandoc-syntax icon indicating copy to clipboard operation
vim-pandoc-syntax copied to clipboard

yaml codeblocks are not displayed correctly

Open joelostblom opened this issue 8 years ago • 2 comments

When I create a codeblock with a yaml snippet, I have noticed that vim-pandoc-syntax hides the first few lines. I need to introduce a blank line either above or below the leading --- to display the entire codeblock in vim. However, this introducing an unnecessary blank line in the rendered code block, so it would be nice if something like the sample below, was displayed correctly.

---
object:
    key: value
    array:
        - null_value:
        - boolean: true
        - integer: 1
---

For me, when I place the this snippet in a .md file with at least one blank line above it, only - integer: 1 is displayed.

joelostblom avatar Aug 14 '17 16:08 joelostblom

I've encountered the same thing. A minimal code block like

```yaml
---
toc: true
...

is displayed as an empty block as soon as I move to the second line below ---. If I remove the --- line, the problem goes away.

This is what it looks like:

Editing a YAML code block

bewuethr avatar Apr 07 '20 18:04 bewuethr

I just came here to say I also have this issue.

zkamvar avatar Apr 29 '21 00:04 zkamvar