Skip to content

Commit

Permalink
docs: Marked extension template docs (#3523)
Browse files Browse the repository at this point in the history
* docs: add information about marked extension template

* add note
  • Loading branch information
UziTech authored Nov 7, 2024
1 parent 035af38 commit a73f85e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/USING_PRO.md
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,8 @@ The renderer function has access to the parser in the `this` object, which can b
<dd>An array of strings that match the names of any token parameters that should be traversed by the <code>walkTokens</code> functions. For instance, if you want to use a second custom parameter to contain child tokens in addition to <code>tokens</code>, it could be listed here. If <code>childTokens</code> is provided, the <code>tokens</code> array will not be walked by default unless it is also included in the <code>childTokens</code> array.</dd>
</dl>

> Note: If you would like to release an extension as an npm package you may use the [Marked Extension Template](https://github.com/markedjs/marked-extension-template) which includes all of the things you need to get started. Feel free to create an issue in that [repo](https://github.com/markedjs/marked-extension-template) if you need help.
**Example:** <a name="custom-extensions-example"></a>Add a custom syntax to generate `<dl>` description lists.

``` js
Expand Down

0 comments on commit a73f85e

Please sign in to comment.