remons-render-markdown 1.0.14 → 1.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "remons-render-markdown",
3
- "version": "1.0.14",
3
+ "version": "1.0.16",
4
4
  "description": "一个基于 React 的 Markdown 渲染组件,支持 GFM(GitHub Flavored Markdown)、代码高亮、Mermaid 图表、Tabs 渲染等功能。",
5
5
  "type": "module",
6
6
  "main": "./dist/index.mjs",
package/readme.md CHANGED
@@ -177,9 +177,9 @@ graph TD
177
177
  ```tsx
178
178
  import { markdownFormat } from 'remons-render-markdown';
179
179
 
180
- function TableOfContents() {
180
+ async function TableOfContents() {
181
181
  const content = '# 标题1\n## 标题1.1\n## 标题1.2\n# 标题2';
182
- const { anchor, info } = markdownFormat(content);
182
+ const { anchor, info } = await markdownFormat(content);
183
183
 
184
184
  console.log(anchor);
185
185
  // [