Skip to content

Commit f081644

Browse files
committed
feat: taptip 初步成型
1 parent e4e8b45 commit f081644

16 files changed

Lines changed: 1621 additions & 339 deletions

app/components/paper/WritingStudio.vue

Lines changed: 505 additions & 7 deletions
Large diffs are not rendered by default.

app/composables/usePaperEditor.ts

Lines changed: 0 additions & 329 deletions
This file was deleted.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { Markdown } from '@tiptap/markdown'
2+
3+
export const useMarkdownExtension = () => {
4+
return Markdown.configure({
5+
markedOptions: {
6+
gfm: true, // 启用 GitHub Flavored Markdown (GFM) 支持
7+
breaks: true, // 启用换行符转换为 <br> 标签
8+
pedantic: false, // 允许一些不严格的 Markdown 语法
9+
}
10+
})
11+
}

0 commit comments

Comments
 (0)