Skip to content

Commit

Permalink
docs: add note about marked.use in loops (#3492)
Browse files Browse the repository at this point in the history
* Update USING_PRO.md

* Update USING_PRO.md

* Update USING_ADVANCED.md

* Update USING_ADVANCED.md
  • Loading branch information
linuxbckp authored Oct 20, 2024
1 parent 4359a62 commit 17ca80c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/USING_ADVANCED.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ const marked = new Marked([options, extension, ...]);
|:--------|:-------|:----------------------------------------------------------------------|
| options |`object`|The same arguments that can be passed to [`marked.use`](/using_pro#use)|

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.

## The `parse` function

```js
Expand Down

0 comments on commit 17ca80c

Please sign in to comment.