Skip to content

Commit 19e46b6

Browse files
authored
fix(docs): fix codepen conversion for QMarkdownTable and tags with multiple lines (quasarframework#8297)
1 parent 547d377 commit 19e46b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/src/components/Codepen.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ export default {
101101
.replace(/([\w]+=")([^"]*?)(")/g, function (match, p1, p2, p3) {
102102
return p1 + p2.replace(/>/g, '___TEMP_REPLACEMENT___') + p3
103103
})
104-
.replace(/<(q-[\w-]+|div)([^>]*?)\s*?([\r\n][\t ]+)?\/>/g, '<$1$2$3></$1>')
105-
.replace(/<(thead|tbody)(.*?)[\n\r]?(\s*)<\/\1>/g, function (match, p1, p2, p3) {
104+
.replace(/<(q-[\w-]+|div)([^>]*?)\s*?([\n\r][\t ]+)?\/>/gs, '<$1$2$3></$1>')
105+
.replace(/<(thead|tbody)(.*?)[\n\r]?(\s*)<\/\1>/gs, function (match, p1, p2, p3) {
106106
return '<template>\n' + p3 + ' <' + p1 + p2.split(/[\n\r]+/g).join('\n ') + '\n' + p3 + ' </' + p1 + '>\n' + p3 + '</template>'
107107
})
108108
.replace(/___TEMP_REPLACEMENT___/g, '>')

0 commit comments

Comments
 (0)