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
This commit is contained in:
Linux编程科普 2024-10-20 13:19:38 +08:00 committed by GitHub
parent 4359a622fb
commit 17ca80ca27
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)| | 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 ## The `parse` function
```js ```js