From 831ca5a6d6d9ac20a75ad58538cdc2ed0a3c5ae1 Mon Sep 17 00:00:00 2001 From: zmister Date: Mon, 14 Nov 2022 08:36:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0card=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E5=9D=97=E9=A2=9C=E8=89=B2=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/editor.md/editormd.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/static/editor.md/editormd.js b/static/editor.md/editormd.js index 9ddb222..c9ff995 100644 --- a/static/editor.md/editormd.js +++ b/static/editor.md/editormd.js @@ -3996,8 +3996,10 @@ return hr; } else if(/^card/i.test(lang)){ // 卡片面板 - var color = lang.split(' ')[1]; - var ccolor = custom_color(color); + var color1 = lang.split(' ')[1]; + var ccolor = custom_color(color1); + var color2 = lang.split(' ')[2]; + var dcolor = custom_color(color2); var card = '
' // console.log(code) var card_code = code.split(/[(\r\n)\r\n]+/); @@ -4008,13 +4010,13 @@ card += '
' card += item.replace('# ','') card += '
' - card += '
' + card += '
' }else{ card += marked(item) } }) - card += '
' + card += '

' return card; } else