mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-09-24 21:23:35 +08:00
优化图片导出
This commit is contained in:
@@ -394,7 +394,7 @@ func (m *BookResult) Converter(sessionId string) (ConvertBookResult, error) {
|
||||
}
|
||||
}
|
||||
if encodeString != "" {
|
||||
src = "data:image/" + strings.TrimSuffix(filepath.Ext(src),".") + ";base64," + encodeString
|
||||
src = "data:image/" + strings.TrimPrefix(filepath.Ext(src),".") + ";base64," + encodeString
|
||||
|
||||
contentSelection.SetAttr("src", src)
|
||||
}
|
||||
|
Reference in New Issue
Block a user