mirror of
https://github.com/pipipi-pikachu/PPTist.git
synced 2025-04-15 02:20:00 +08:00
fix: 富文本字体包含特殊字符时异常
This commit is contained in:
parent
1c82303fe1
commit
49a03325e8
@ -132,7 +132,7 @@ const fontname: MarkSpec = {
|
|||||||
toDOM: mark => {
|
toDOM: mark => {
|
||||||
const { fontname } = mark.attrs
|
const { fontname } = mark.attrs
|
||||||
let style = ''
|
let style = ''
|
||||||
if (fontname) style += `font-family: ${fontname};`
|
if (fontname) style += `font-family: "${fontname}";`
|
||||||
return ['span', { style }, 0]
|
return ['span', { style }, 0]
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user