@data_wise/hyper-markdown 1.2.5 → 1.3.1

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/README.md CHANGED
@@ -521,6 +521,56 @@ console.log('支持代码块');
521
521
 
522
522
  ## 特性
523
523
 
524
+ - ✅ Vue 3 支持
525
+ - ✅ ECharts 图表渲染
526
+ - ✅ Mermaid 流程图支持
527
+ - ✅ KaTeX 数学公式
528
+ - ✅ 数据集表格展示
529
+ - ✅ 可编辑区域
530
+ - ✅ 自定义容器
531
+ - ✅ 响应式设计
532
+ - ✅ TypeScript 支持
533
+ - ✅ 数据源查询功能
534
+ - ✅ SQL 语法支持
535
+ - ✅ 数据缓存机制
536
+ - ✅ **Word 文档导出**(新功能)
537
+
538
+ ## Word 导出功能
539
+
540
+ 支持将 Markdown 内容导出为 Word 文档(.docx 格式):
541
+
542
+ ```vue
543
+ <template>
544
+ <div>
545
+ <button @click="exportToWord">导出 Word</button>
546
+ <MarkdownEditor ref="editor" v-model:content="content" :editable="true" />
547
+ </div>
548
+ </template>
549
+
550
+ <script>
551
+ export default {
552
+ methods: {
553
+ async exportToWord() {
554
+ const result = await this.$refs.editor.exportToWord('我的文档.docx')
555
+ if (result.success) {
556
+ console.log('导出成功!')
557
+ }
558
+ }
559
+ }
560
+ }
561
+ </script>
562
+ ```
563
+
564
+ **支持导出:**
565
+ - 标题、段落、列表、表格
566
+ - 粗体、斜体、代码块
567
+ - **ECharts 图表**(自动转为图片)
568
+ - **Mermaid 流程图**(自动转为图片)
569
+
570
+ **详细文档:** 查看 [EXPORT.md](./EXPORT.md)
571
+
572
+ ## 特性
573
+
524
574
  - ✅ Vue 3 支持
525
575
  - ✅ ECharts 图表渲染
526
576
  - ✅ Mermaid 流程图支持