From 47b08371aa82524d94195a011f279540e09bcb1b Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sat, 29 Aug 2026 15:00:18 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20MdWidget/MarkdownViewer=E5=A4=96?= =?UTF-8?q?=E9=93=BE=E6=96=B0=E7=AA=97=E5=8F=A3=E6=89=93=E5=BC=80(?= =?UTF-8?q?=E9=9D=9E=E5=90=8C=E6=BA=90=E9=93=BE=E6=8E=A5=E4=B8=8D=E5=86=8D?= =?UTF-8?q?=E8=A2=AB=E6=8B=A6=E6=88=AA=E6=88=90=E7=AB=99=E5=86=85=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bricks/markdown_viewer.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/bricks/markdown_viewer.js b/bricks/markdown_viewer.js index 1efd9c7..35ccfea 100644 --- a/bricks/markdown_viewer.js +++ b/bricks/markdown_viewer.js @@ -51,8 +51,17 @@ bricks.MdWidget = class extends bricks.JsWidget { this.dom_element.innerHTML = marked.parse(this.md_content); /* change links in markdown to a bricks action */ var links = this.dom_element.getElementsByTagName('a'); + var host = location.origin; for (var i=0; i