1
0
mirror of https://github.com/tabler/tabler.git synced 2025-12-21 17:34:25 +04:00

Enhance documentation (#2048)

This commit is contained in:
Paweł Kuna
2025-01-10 22:31:24 +01:00
committed by GitHub
parent 5cca710ac6
commit b0b07b94da
37 changed files with 1402 additions and 435 deletions

View File

@@ -16,17 +16,17 @@ docs.forEach((file, i) => {
// get codeblocks from markdown
const content = oldContent.replace(/(```([a-z0-9]+).*?\n)(.*?)(```)/gs, (m, m1, m2, m3, m4) => {
if (m2 === 'html') {
const m3m = beautifyHtml(m3, {
let m3m = beautifyHtml(m3, {
"indent_size": 2,
"indent_char": " ",
}).trim();
// remove empty lines
m3m = m3m.replace(/^\s*[\r\n]/gm, '');
return m1 + m3m + "\n" + m4;
}
return m
})
if (content !== oldContent) {