marked 9.1.6 → 11.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -37,13 +37,13 @@ Also read about:
37
37
 
38
38
  ## Installation
39
39
 
40
- **CLI:**
40
+ **CLI:**
41
41
 
42
- ```sh
42
+ ```sh
43
43
  npm install -g marked
44
44
  ```
45
45
 
46
- **In-browser:**
46
+ **In-browser:**
47
47
 
48
48
  ```sh
49
49
  npm install marked
@@ -92,6 +92,15 @@ $ marked --help
92
92
  </body>
93
93
  </html>
94
94
  ```
95
+ or import esm module
96
+
97
+ ```html
98
+ <script type="module">
99
+ import { marked } from "https://cdn.jsdelivr.net/npm/marked/lib/marked.esm.js";
100
+ document.getElementById('content').innerHTML =
101
+ marked.parse('# Marked in the browser\n\nRendered by **marked**.');
102
+ </script>
103
+ ```
95
104
 
96
105
  ## License
97
106