Shift alignment assignment from CSS to HTML
This commit is contained in:
1 parent
f4c26053c0
commit
89bd082967
2 files changed
+4
-13
No files matched your search
@@ -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>`;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user