Skip to content

Commit 4458646

Browse files
committed
Update readme
1 parent 3365585 commit 4458646

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@
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
355358
npm run generate

src/utils/markdown.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { replaceSymbol } from "./general.ts";
55
export const code = (str: string) => `\`${str}\``;
66

77
export 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, "&nbsp;&nbsp;")
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

0 commit comments

Comments
 (0)