We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d69d01 commit d51d7d6Copy full SHA for d51d7d6
src/TextFormatting.js
@@ -5,7 +5,7 @@ function textFormatting(str) {
5
if (str === undefined) return "";
6
if (typeof str != 'string') return "";
7
8
- const regTop = /(\*\*?|__?|~~|[<>\r\n])|\[([^[]*)\]\(([^(]*)\)|!\[([^[]*)\]\(([^(]*)\)|`([^`]+)`|```([^`]+)```|(#{1,6})\ (.*)/g;
+ const regTop = /(\*\*?|__?|~~|[<>\r\n])|\[([^[]*)\]\(([^(]*)\)|!\[([^[]*)\]\(([^(]*)\)|`([^`]+)`|```((?:.|\n)*)```|(#{1,6})\ (.*)/g;
9
10
const closeTag = {};
11
const renderTag = tag => {
0 commit comments