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 4
4
5
5
<br >
6
6
7
- 🚧 Work in progress
7
+ 🚧 * Still a work in progress. Some snippets may be changed or removed, and many more will be added. *
8
8
9
- <br >
10
-
11
- Currently at ** 180+** snippets
9
+ ## Features
10
+ - Contains over ** 180** snippets
11
+ - Modern JavaScript syntax
12
+ - Strategically placed tabstops
13
+ - ...
12
14
13
15
<br >
14
16
@@ -52,6 +54,7 @@ You can use these snippets along with Prettier/ESLint to have your code automati
52
54
- Placeholder text will be inserted and selected such that it can be easily changed
53
55
- Can be nested, like ` ${1:another ${2:placeholder}} `
54
56
57
+
55
58
## Snippets
56
59
### Assignments
57
60
| Prefix | Description | Body |
@@ -349,7 +352,7 @@ Will be sorted into appropriate categories in the future.
349
352
350
353
``` bash
351
354
# 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
353
356
354
357
# generate .code-snippets
355
358
npm run generate
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ import { replaceSymbol } from "./general.ts";
5
5
export const code = ( str : string ) => `\`${ str } \`` ;
6
6
7
7
export const serializeForMarkdown = ( str : string ) => {
8
- let clean = str ;
9
8
if ( str . includes ( "\n" ) ) {
10
9
return str
11
10
. replace ( / ` / , "<code>" )
@@ -14,7 +13,7 @@ export const serializeForMarkdown = (str: string) => {
14
13
. replace ( / \t / g, " " )
15
14
. replace ( / \| / g, "\\|" ) ;
16
15
}
17
- // TODO: remove $0 when it'
16
+ // TODO: dont remove | when it is in ``
18
17
return str . replace ( / \| / g, "\\|" ) ;
19
18
} ;
20
19
You can’t perform that action at this time.
0 commit comments