markdown-preview.nvim icon indicating copy to clipboard operation
markdown-preview.nvim copied to clipboard

Feature: Support Github Flavor notes

Open n-crespo opened this issue 1 year ago • 3 comments

In Github flavored markdown, a note or "alert" can be created with the following syntax:

    > [!Note]
    > *insert note here*

and the note will appear with an icon like so:

[!Note] this is a note

Here is an screenshot:

image

[!Important] and [!Warning] have a similar layout.

This is not supported in markdown preview, and I would love to see it implemented. I understand, however, if the goal of the plugin is to support vanilla markdown, not the GitHub flavor.

n-crespo avatar Dec 31 '23 19:12 n-crespo

Linking the official documentation which has the full list of available options https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#alerts

kiran94 avatar Jan 26 '24 08:01 kiran94

This would require a plugin for markdown-it. I'm unable to find one on npm.

kunring avatar Feb 25 '24 07:02 kunring