mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-05 10:12:41 +00:00
Shift alignment assignment from CSS to HTML
This commit is contained in:
@@ -372,9 +372,9 @@ const superSubScripts = {
|
|||||||
|
|
||||||
|
|
||||||
const justifiedParagraphClasses = [];
|
const justifiedParagraphClasses = [];
|
||||||
justifiedParagraphClasses[2] = 'mdParagraphJustifyLeft';
|
justifiedParagraphClasses[2] = 'Left';
|
||||||
justifiedParagraphClasses[4] = 'mdParagraphJustifyRight';
|
justifiedParagraphClasses[4] = 'Right';
|
||||||
justifiedParagraphClasses[6] = 'mdParagraphJustifyCenter';
|
justifiedParagraphClasses[6] = 'Center';
|
||||||
|
|
||||||
const justifiedParagraphs = {
|
const justifiedParagraphs = {
|
||||||
name : 'justifiedParagraphs',
|
name : 'justifiedParagraphs',
|
||||||
@@ -402,7 +402,7 @@ const justifiedParagraphs = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
renderer(token) {
|
renderer(token) {
|
||||||
return `<p class="${token.class}">${this.parser.parseInline(token.tokens)}</p>`;
|
return `<p align="${token.class}">${this.parser.parseInline(token.tokens)}</p>`;
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -36,14 +36,5 @@
|
|||||||
"baseSnippets": "5ePHB",
|
"baseSnippets": "5ePHB",
|
||||||
"path": "Journal"
|
"path": "Journal"
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"V4": {
|
|
||||||
"Blank": {
|
|
||||||
"name": "Blank",
|
|
||||||
"renderer": "V3",
|
|
||||||
"baseTheme": false,
|
|
||||||
"baseSnippets": false,
|
|
||||||
"path": "Blank"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user