0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 18:32:41 +00:00

Shift alignment assignment from CSS to HTML

This commit is contained in:
David Bolack
2024-12-10 23:28:06 -06:00
parent f4c26053c0
commit 89bd082967
2 changed files with 4 additions and 13 deletions

View File

@@ -372,9 +372,9 @@ const superSubScripts = {
const justifiedParagraphClasses = [];
justifiedParagraphClasses[2] = 'mdParagraphJustifyLeft';
justifiedParagraphClasses[4] = 'mdParagraphJustifyRight';
justifiedParagraphClasses[6] = 'mdParagraphJustifyCenter';
justifiedParagraphClasses[2] = 'Left';
justifiedParagraphClasses[4] = 'Right';
justifiedParagraphClasses[6] = 'Center';
const justifiedParagraphs = {
name : 'justifiedParagraphs',
@@ -402,7 +402,7 @@ const justifiedParagraphs = {
}
},
renderer(token) {
return `<p class="${token.class}">${this.parser.parseInline(token.tokens)}</p>`;
return `<p align="${token.class}">${this.parser.parseInline(token.tokens)}</p>`;
}
};

View File

@@ -36,14 +36,5 @@
"baseSnippets": "5ePHB",
"path": "Journal"
}
},
"V4": {
"Blank": {
"name": "Blank",
"renderer": "V3",
"baseTheme": false,
"baseSnippets": false,
"path": "Blank"
}
}
}