SublimeText-Markdown / MarkdownEditing

Powerful Markdown package for Sublime Text with better syntax understanding and good color schemes.
MIT License
3.17k stars 649 forks source link

Update Github Markdown blockquotes snippets #743

Closed 0237h closed 7 months ago

0237h commented 7 months ago

The current snippets ghnote and ghwarn are using a deprecated syntax for rendering blockquotes information.

From the link above (update 14 Nov 2023):

The initial syntax using e.g. Note isn't supported any longer.

The new snippets format should be (e.g. for ghnote):

@@ -1,6 +1,5 @@
 <snippet>
-   <content><![CDATA[> **Note**
->
+   <content><![CDATA[> [!NOTE]
 > ${0:enter text}
 ]]></content>
    <tabTrigger>ghnote</tabTrigger>
    <scope>text.html.markdown - meta.frontmatter - meta.disable-markdown - meta.code-fence - markup.raw</scope>
    <description>Markdown Admonition</description>
</snippet>

Additionally, support for ghtip, ghimportant and ghcaution can be added.

I can try to work on a PR based on the CONTRIBUTING.md guidelines when I have some time later.

deathaxe commented 7 months ago

I'll update them when integrating https://github.com/sublimehq/Packages/pull/3892