woshishazi

This commit is contained in:
Augists
2022-02-11 11:36:30 +08:00
parent 2733498933
commit 7de992adb0
2 changed files with 9 additions and 8 deletions

View File

@@ -1007,6 +1007,7 @@ func (book *Book) ImportWordBook(docxPath string, lang string) error {
if doc.Markdown, err := util.Docx2md(docxPath, false); err != nil {
logs.Error("导入doc项目转换异常 => ", err)
exit(1)
}
doc.Content = string(blackfriday.Run([]byte(doc.Markdown)))