mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-10 23:59:45 +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(
|
const extensions = useMemo(
|
||||||
() => [
|
() => [
|
||||||
Markdown.configure({
|
Markdown.configure({
|
||||||
markedOptions: { gfm: true },
|
markedOptions: {
|
||||||
html: true // Enable HTML support to preserve <u> tags for underline
|
gfm: true
|
||||||
|
}
|
||||||
}),
|
}),
|
||||||
SourceLineAttribute,
|
SourceLineAttribute,
|
||||||
StarterKit.configure({
|
StarterKit.configure({
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user