Explorar o código

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

Book Pauk %!s(int64=6) %!d(string=hai) anos
pai
achega
9d0bbec4b3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);