Skip to content

Commit c1a86f0

Browse files
authored
Add Node.js usage example to README (#3983)
1 parent 763f729 commit c1a86f0

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,14 @@ $ cat hello.html
7272
$ marked --help
7373
```
7474

75+
**Node.js**
76+
77+
```js
78+
import { marked } from 'marked';
79+
const html = marked.parse('# Marked in Node.js');
80+
console.log(html);
81+
```
82+
7583
**Browser**
7684

7785
```html

0 commit comments

Comments
 (0)