File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 44
55<br >
66
7- 🚧 Work in progress
7+ 🚧 * Still a work in progress. Some snippets may be changed or removed, and many more will be added. *
88
9- <br >
10-
11- Currently at ** 180+** snippets
9+ ## Features
10+ - Contains over ** 180** snippets
11+ - Modern JavaScript syntax
12+ - Strategically placed tabstops
13+ - ...
1214
1315<br >
1416
@@ -52,6 +54,7 @@ You can use these snippets along with Prettier/ESLint to have your code automati
5254- Placeholder text will be inserted and selected such that it can be easily changed
5355- Can be nested, like ` ${1:another ${2:placeholder}} `
5456
57+
5558## Snippets
5659### Assignments
5760| Prefix | Description | Body |
@@ -349,7 +352,7 @@ Will be sorted into appropriate categories in the future.
349352
350353``` bash
351354# ensure Deno is installed
352- # https://deno.land/manuk @v1.29.1/getting_started/installation
355+ # https://deno.land/manual @v1.29.1/getting_started/installation
353356
354357# generate .code-snippets
355358npm run generate
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ import { replaceSymbol } from "./general.ts";
55export const code = ( str : string ) => `\`${ str } \`` ;
66
77export const serializeForMarkdown = ( str : string ) => {
8- let clean = str ;
98 if ( str . includes ( "\n" ) ) {
109 return str
1110 . replace ( / ` / , "<code>" )
@@ -14,7 +13,7 @@ export const serializeForMarkdown = (str: string) => {
1413 . replace ( / \t / g, " " )
1514 . replace ( / \| / g, "\\|" ) ;
1615 }
17- // TODO: remove $0 when it'
16+ // TODO: dont remove | when it is in ``
1817 return str . replace ( / \| / g, "\\|" ) ;
1918} ;
2019
You can’t perform that action at this time.
0 commit comments