You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/USING_PRO.md
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
## Extending Marked
2
2
3
-
To champion the single-responsibility and open/closed prinicples, we have tried to make it relatively painless to extend marked. If you are looking to add custom functionality, this is the place to start.
3
+
To champion the single-responsibility and open/closed principles, we have tried to make it relatively painless to extend marked. If you are looking to add custom functionality, this is the place to start.
4
4
5
5
<h2id="renderer">The renderer</h2>
6
6
@@ -10,14 +10,14 @@ The renderer is...
10
10
11
11
```js
12
12
// Create reference instance
13
-
var myMarked=require('marked');
13
+
constmarked=require('marked');
14
14
15
15
// Get reference
16
-
var renderer =newmyMarked.Renderer();
16
+
constrenderer=newmarked.Renderer();
17
17
18
18
// Override function
19
19
renderer.heading=function (text, level) {
20
-
var escapedText =text.toLowerCase().replace(/[^\w]+/g, '-');
0 commit comments