Skip to content

Commit fdef839

Browse files
author
LOU Xun
committed
Regex away details blocks
1 parent 50afeb5 commit fdef839

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ showdown.setFlavor('github');
66

77
try {
88
const markdownText = core.getInput('text');
9+
let re = /<details>[\s\S]*?<\/details>/
910
const converter = new showdown.Converter();
10-
const html = converter.makeHtml(markdownText);
11+
const html = converter.makeHtml(markdownText.replace(re, ""));
1112

1213
core.setOutput("html", html);
1314

0 commit comments

Comments
 (0)