From 48bec699067f3bd525a3a066176909955e5f1de4 Mon Sep 17 00:00:00 2001 From: Siddhant Chaudhary Date: Sun, 7 Jul 2024 03:25:26 +0530 Subject: [PATCH] Adding more snippets for markdown via vsnip. --- .vsnip/markdown.json | 44 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/.vsnip/markdown.json b/.vsnip/markdown.json index 38f5d0f..9929b83 100644 --- a/.vsnip/markdown.json +++ b/.vsnip/markdown.json @@ -1,6 +1,13 @@ { + "Inline math": { + "prefix": ["$"], + "body": [ + "\\$$1\\$" + ], + "description": "Inline math." + }, "Math aligned block": { - "prefix": ["$", "$$"], + "prefix": ["$$"], "body": [ "\\$\\$", "\t\\begin{aligned}", @@ -16,5 +23,40 @@ "\\frac{$1}{$2}" ], "description": "Fractions." + }, + "Subscripts": { + "prefix": ["_"], + "body": [ + "_{$1}" + ], + "description": "Subscripts." + }, + "Superscripts": { + "prefix": ["^"], + "body": [ + "^{$1}" + ], + "description": "Superscripts." + }, + "Square brackets": { + "prefix": ["["], + "body": [ + "\\left\\[$1\\right\\]" + ], + "description": "Square braces" + }, + "Braces": { + "prefix": ["{"], + "body": [ + "\\left{$1\\right}" + ], + "description": "Square braces" + }, + "Round brackets": { + "prefix": ["("], + "body": [ + "\\left($1\\right)" + ], + "description": "Square braces" } }