Skip to content

Comment yaml block in markdown with different character #15

@joelostblom

Description

@joelostblom

Many markdown implementations allow for a leading yaml configuration block like so:

---
title: "My title"
date: 2023-12-29
---

## Heading

Some markdown text

With the vim commentary plugin, I can setup vim to use html comment strings (<!-- %s --> ) for the markdown file, but I can't figure out how to automatically switch to a leading # when commenting in the yaml code block. I tried this pluging but could not get it to work for this scenario, how do I need to change the settings?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions