Skip to content

Instantly share code, notes, and snippets.

@patridge
Created April 3, 2020 20:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save patridge/a1762c5e250fc0fb754035c890884912 to your computer and use it in GitHub Desktop.
Save patridge/a1762c5e250fc0fb754035c890884912 to your computer and use it in GitHub Desktop.
Microsoft Docs/Learn Markdown snippets
{
"Microsoft Docs image": {
"prefix": [ "image", "img" ],
"body": [
":::image source=\"$1\" alt-text=\"$0\":::"
],
"description": "Microsoft Docs-style image syntax (':::image …:::')."
},
"Microsoft Docs decorative/icon image": {
"prefix": [ "image", "img" ],
"body": [
":::image type=\"icon\" border=\"false\" source=\"$0\":::"
],
"description": "Microsoft Docs-style decorative image syntax (':::image type=\"icon\" …:::')."
},
"Microsoft Docs complex image": {
"prefix": [ "image", "img" ],
"body": [
":::image type=\"complex\" source=\"$1\" alt-text=\"$2\":::",
" $0",
":::image-end::: "
],
"description": "Microsoft Docs-style complex image syntax with a long description that users with screen readers can optionally choose to read(':::image type=\"complex\" …:::')."
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment