Skip to content

Commit 17ca80c

Browse files
authored
docs: add note about marked.use in loops (#3492)
* Update USING_PRO.md * Update USING_PRO.md * Update USING_ADVANCED.md * Update USING_ADVANCED.md
1 parent 4359a62 commit 17ca80c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/USING_ADVANCED.md

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ const marked = new Marked([options, extension, ...]);
1313
|:--------|:-------|:----------------------------------------------------------------------|
1414
| options |`object`|The same arguments that can be passed to [`marked.use`](/using_pro#use)|
1515

16+
Be careful: marked.use(...) should not be used in a loop or function. It should only be used directly after new Marked is created or marked is imported.
17+
1618
## The `parse` function
1719

1820
```js

0 commit comments

Comments
 (0)