Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.

Commit 3649a52

Browse files
committed
docs: document the extendMarkdownComponent hook
1 parent d04adad commit 3649a52

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

website/docs/plugin-api.md

+6
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ Process HTML.
2323

2424
You can use `fn` to modify the [marked renderer](https://marked.js.org/#/USING_PRO.md#renderer) we use.
2525

26+
## api.extendMarkdownComponent(fn)
27+
28+
- `fn`: `(Component: VueComponentOptions) => void`
29+
30+
You can use this hook the modify the compiled markdown component.
31+
2632
## api.onContentUpdated(fn)
2733

2834
- `fn`: `(vm: Vue) => void`

website/docs/zh/plugin-api.md

+6
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@
1111

1212
处理 markdown。
1313

14+
## api.extendMarkdownComponent(fn)
15+
16+
- `fn`: `(Component: VueComponentOptions) => void`
17+
18+
修改编译后的 Markdown 组件。
19+
1420
## api.processHTML(fn)
1521

1622
- `fn``(html: string) => string`

0 commit comments

Comments
 (0)