We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e89c88b commit ca62b86Copy full SHA for ca62b86
1 file changed
readme.md
@@ -120,16 +120,12 @@ import {remark} from 'remark'
120
import remarkGfm from 'remark-gfm'
121
import remarkGithub from 'remark-github'
122
123
-main()
+const file = await remark()
124
+ .use(remarkGfm)
125
+ .use(remarkGithub)
126
+ .process(await read('example.md'))
127
-async function main() {
- const file = await remark()
- .use(remarkGfm)
128
- .use(remarkGithub)
129
- .process(await read('example.md'))
130
-
131
- console.log(String(file))
132
-}
+console.log(String(file))
133
```
134
135
Now, running `node example` yields:
0 commit comments