瀏覽代碼

Поправка отображения картинок внутри title

Book Pauk 6 年之前
父節點
當前提交
9d0bbec4b3
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      client/components/Reader/share/BookParser.js

+ 1 - 1
client/components/Reader/share/BookParser.js

@@ -188,7 +188,7 @@ export default class BookParser {
                 if (attrs.href && attrs.href.value) {
                     const href = attrs.href.value;
                     if (href[0] == '#') {//local
-                        if (inPara && !this.showInlineImagesInCenter)
+                        if (inPara && !this.showInlineImagesInCenter && !center)
                             growParagraph(`<image-inline href="${href}"></image-inline>`, 0);
                         else
                             newParagraph(`<image href="${href}">${' '.repeat(maxImageLineCount)}</image>`, maxImageLineCount);