Skip to content

Commit

Permalink
Adding more snippets for markdown via vsnip.
Browse files Browse the repository at this point in the history
  • Loading branch information
codetalker7 committed Jul 6, 2024
1 parent 3d26fb8 commit 48bec69
Showing 1 changed file with 43 additions and 1 deletion.
44 changes: 43 additions & 1 deletion .vsnip/markdown.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
{
"Inline math": {
"prefix": ["$"],
"body": [
"\\$$1\\$"
],
"description": "Inline math."
},
"Math aligned block": {
"prefix": ["$", "$$"],
"prefix": ["$$"],
"body": [
"\\$\\$",
"\t\\begin{aligned}",
Expand All @@ -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"
}
}

0 comments on commit 48bec69

Please sign in to comment.