Skip to content

Commit 9f60a6d

Browse files
authored
add ES6 import
add description : how to import markdown-js with ES6
1 parent 9b8aa65 commit 9f60a6d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,13 @@ var markdown = require( "markdown" ).markdown;
6363
console.log( markdown.toHTML( "Hello *World*!" ) );
6464
```
6565

66+
### ES6
67+
68+
```js
69+
import {markdown} from 'markdown';
70+
console.log( markdown.toHTML( "Hello *World*!" ) );
71+
```
72+
6673
#### Older versions of node
6774

6875
We only officially support node >= 0.10 as the libraries we use for building

0 commit comments

Comments
 (0)