Last active
January 21, 2022 03:41
-
-
Save threecifanggen/bbd1a9ee71938a3f322649400bd10a25 to your computer and use it in GitHub Desktop.
[MyST的Snippet] 我的VSCODE中的MyST MD的Code Snippet #markdown #myst-markdown #vscode #code-snippet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| // Place your snippets for markdown here. Each snippet is defined under a snippet name and has a prefix, body and | |
| // description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
| // $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the | |
| // same ids are connected. | |
| // Example: | |
| // "Print to console": { | |
| // "prefix": "log", | |
| // "body": [ | |
| // "console.log('$1');", | |
| // "$2" | |
| // ], | |
| // "description": "Log output to console" | |
| // } | |
| "Figure": { | |
| "prefix": "fig", | |
| "body": [ | |
| "```{figure} $1", | |
| "---", | |
| "name: $2", | |
| "---", | |
| "", | |
| "$3", | |
| "```" | |
| ], | |
| "description": "Myst的图片导入" | |
| }, | |
| "Toc Tree" : { | |
| "prefix": "toctree1", | |
| "body": [ | |
| "```{toctree}", | |
| "---", | |
| "maxdepth: 1", | |
| "---", | |
| "", | |
| "$1", | |
| "```" | |
| ], | |
| "description": "Myst的toc tree" | |
| }, | |
| "Myst Medicine Meta Head": { | |
| "prefix": "meta_med", | |
| "body": [ | |
| "---", | |
| "html_meta:", | |
| " \"description\": \"$1\"", | |
| " \"author\": \"黄宝臣, 3gee, threecifanggen\"", | |
| " \"keywords\": \"$TM_FILENAME, 3gee, threecifanggen, 医学百科, 黄宝臣\"", | |
| " \"property=og:locale\": \"zh_CN\"", | |
| "---" | |
| ] | |
| }, | |
| "Myst Work Wiki Meta Head": { | |
| "prefix": "meta_work", | |
| "body": [ | |
| "---", | |
| "html_meta:", | |
| " \"description\": \"$1\"", | |
| " \"author\": \"黄宝臣, 3gee, threecifanggen\"", | |
| " \"keywords\": \"$TM_FILENAME, 3gee, threecifanggen, 工作百科, 数据科学, 计算机科学, 黄宝臣\"", | |
| " \"property=og:locale\": \"zh_CN\"", | |
| "---" | |
| ] | |
| }, | |
| "Myst Philosophy Meta Head": { | |
| "prefix": "meta_phi", | |
| "body": [ | |
| "---", | |
| "html_meta:", | |
| " \"description\": \"$1\"", | |
| " \"author\": \"黄宝臣, 3gee, threecifanggen\"", | |
| " \"keywords\": \"$TM_FILENAME, 3gee, threecifanggen, 哲学百科, 黄宝臣, 哲学史, 宗教, 宗教史, 科学哲学, 科学史\"", | |
| " \"property=og:locale\": \"zh_CN\"", | |
| "---" | |
| ] | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment