Skip to content

Commit

Permalink
Updates package to include md support
Browse files Browse the repository at this point in the history
  • Loading branch information
stordahl committed Nov 25, 2021
1 parent cd8f67e commit 6cd1373
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 12 deletions.
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,12 @@
{
"language": "html",
"path": "./snippets/snippets.code-snippets"
},
{
"language": "markdown",
"path": "./snippets/snippets.code-snippets"
}

]
}
}
24 changes: 12 additions & 12 deletions snippets/snippets.code-snippets
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"Svelte Component": {
"prefix": "kitComp",
"scope": "svelte, md",
"scope": "svelte, markdown",
"description": "Scaffold a Svelte component",
"body": [
"<script>",
Expand All @@ -15,7 +15,7 @@
},
"Svelte TypeScript Component": {
"prefix": "kitCompTs",
"scope": "svelte, md",
"scope": "svelte, markdown",
"description": "Scaffold a TypeScript Svelte component",
"body": [
"<script lang=ts>",
Expand All @@ -29,7 +29,7 @@
},
"SvelteKit Module Component": {
"prefix": "kitModule",
"scope": "svelte, md",
"scope": "svelte, markdown",
"description": "Scaffold a SvelteKit module component for a page",
"body": [
"<script context=module>",
Expand All @@ -46,7 +46,7 @@
},
"SvelteKit TypeScript Module Component": {
"prefix": "kitModuleTs",
"scope": "svelte, md",
"scope": "svelte, markdown",
"description": "Scaffold a SvelteKit module component for a page",
"body": [
"<script lang=ts context=module>",
Expand All @@ -63,7 +63,7 @@
},
"SvelteKit Layout Component": {
"prefix": "kitLayout",
"scope": "svelte, md",
"scope": "svelte, markdown",
"description": "Scaffold a SvelteKit layout component",
"body": [
"<script>",
Expand All @@ -81,7 +81,7 @@
},
"Svelte Prefetch": {
"prefix": "kitPrefetch",
"scope": "svelte, html, md",
"scope": "svelte, html, markdown",
"description": "Create sveltekit:prefetch anchor tag",
"body": ["<a sveltekit:prefetch href='${1:url}'>${2:text}</a>"]
},
Expand All @@ -97,7 +97,7 @@
},
"Svelte If Block": {
"prefix": "kitIf",
"scope": "svelte, md",
"scope": "svelte, markdown",
"description": "Create a Svelte #if block",
"body": [
"{#if ${1:condition} }",
Expand All @@ -107,7 +107,7 @@
},
"Svelte Await Block": {
"prefix": "kitAwait",
"scope": "svelte, md",
"scope": "svelte, markdown",
"description": "Create a Svelte #await block",
"body": [
"{#await ${1:expression} }",
Expand All @@ -121,7 +121,7 @@
},
"Svelte Key Block": {
"prefix": "kitKey",
"scope": "svelte, md",
"scope": "svelte, markdown",
"description": "Create a Svelte #key block",
"body": [
"{#key ${1:expression} }",
Expand All @@ -131,7 +131,7 @@
},
"Svelte Page Title": {
"prefix": "kitTitle",
"scope": "svelte, md",
"scope": "svelte, markdown",
"description": "Create a title element in the document head",
"body": [
"<svelte:head>",
Expand All @@ -141,7 +141,7 @@
},
"SvelteKit Load Function": {
"prefix": "kitLoad",
"scope": "javascript, md",
"scope": "javascript, markdown",
"description": "Create a SvelteKit Load function",
"body": [
"/**",
Expand All @@ -168,7 +168,7 @@
},
"SvelteKit Endpoint": {
"prefix": "kitEndpoint",
"scope": "javascript, md",
"scope": "javascript, markdown",
"description": "Create a SvelteKit Endpoint",
"body": [
"/**",
Expand Down

0 comments on commit 6cd1373

Please sign in to comment.