dotfiles/.config/nvim/snippets/languages/markdown.json
2024-01-05 10:55:47 +01:00

37 lines
1.8 KiB
JSON

{
"image": {
"body": "<img src=\"${1:image_path}\" alt=\"${2:alt text}\" width=\"${3:50%}\">",
"description": "HTML syntax for images used to display images with reduced size",
"prefix": "image"
},
"details & summary": {
"body": ["<details>", "<summary>${1:Text}</summary>", "$0", "</details>"],
"description": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details",
"prefix": ["toggle / fold", "details & summary"]
},
"caution (callout)": {
"body": ["> [!CAUTION]", "> $0"],
"description": "https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#alerts",
"prefix": "caution (callout)"
},
"important (callout)": {
"body": ["> [!IMPORTANT]", "> $0"],
"description": "https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#alerts",
"prefix": "important (callout)"
},
"note (callout)": {
"body": ["> [!NOTE]", "> $0"],
"description": "https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#alerts",
"prefix": ["info (callout)", "note (callout)"]
},
"tip (callout)": {
"body": ["> [!TIP]", "> $0"],
"description": "https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#alerts",
"prefix": "tip (callout)"
},
"warning (callout)": {
"body": ["> [!WARNING]", "> $0"],
"description": "https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#alerts",
"prefix": "warning (callout)"
}
}