mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-24 18:50:56 +08:00
优化 Markdown 配置以支持 HTML,确保保留 <u> 标签用于下划线
This commit is contained in:
parent
ec16657cbb
commit
71f0059960
@ -196,8 +196,9 @@ export const useRichEditor = (options: UseRichEditorOptions = {}): UseRichEditor
|
||||
const extensions = useMemo(
|
||||
() => [
|
||||
Markdown.configure({
|
||||
markedOptions: { gfm: true },
|
||||
html: true // Enable HTML support to preserve <u> tags for underline
|
||||
markedOptions: {
|
||||
gfm: true
|
||||
}
|
||||
}),
|
||||
SourceLineAttribute,
|
||||
StarterKit.configure({
|
||||
|
||||
Loading…
Reference in New Issue
Block a user