We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7e2760d + 016f359 commit 452ac26Copy full SHA for 452ac26
README.md
@@ -41,6 +41,19 @@ download the version you want (minified or not).
41
42
## Usage
43
44
+The basic interface is:
45
+```js
46
+md_content = "Hello.\n\n* This is markdown.\n* It is fun\n* Love it or leave it."
47
+html_content = markdown.toHTML( md_content );
48
+```
49
+
50
+toHTML also accepts a dialect argument:
51
52
53
+md_content = "Vessel | Captain\n-----------|-------------\nNCC-1701 | James T Kirk\nNCC-1701 A | James T Kirk\nNCC-1701 D | Picard";
54
+html_content = markdown.toHTML( md_content, 'Maruku');
55
56
57
### Node
58
59
The simple way to use it with Node is:
0 commit comments