From 1553a3258c7c9da62dcb42dd6ecb367b9d7a1cb2 Mon Sep 17 00:00:00 2001 From: Yagami <976204163@qq.com> Date: Wed, 11 Dec 2019 17:14:47 +0800 Subject: [PATCH] * Finish task #6689. --- module/doc/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/doc/model.php b/module/doc/model.php index c8f8b1807f..c313eb58f4 100644 --- a/module/doc/model.php +++ b/module/doc/model.php @@ -574,7 +574,7 @@ class docModel extends model $doc->content = isset($docContent->content) ? $docContent->content : ''; $doc->contentType = isset($docContent->type) ? $docContent->type : ''; - if($doc->type != 'url') $doc = $this->loadModel('file')->replaceImgURL($doc, 'content'); + if($doc->type != 'url' and $doc->contentType != 'markdown') $doc = $this->loadModel('file')->replaceImgURL($doc, 'content'); if($setImgSize) $doc->content = $this->file->setImgSize($doc->content); $doc->files = $docFiles;