0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-07 05:32:41 +00:00

Add justification token testing

This commit is contained in:
David Bolack
2024-11-22 20:39:31 -06:00
parent 929469d0c0
commit 440ad516df
2 changed files with 31 additions and 4 deletions

View File

@@ -372,9 +372,9 @@ const superSubScripts = {
const justifiedParagraphClasses = [];
justifiedParagraphClasses[2] = 'mdParagraphJiustifyLeft';
justifiedParagraphClasses[4] = 'mdParagraphJiustifyRight';
justifiedParagraphClasses[6] = 'mdParagraphJiustifyCenter';
justifiedParagraphClasses[2] = 'mdParagraphJustifyLeft';
justifiedParagraphClasses[4] = 'mdParagraphJustifyRight';
justifiedParagraphClasses[6] = 'mdParagraphJustifyCenter';
const justifiedParagraphs = {
name : 'justifiedParagraphs',
@@ -384,7 +384,7 @@ const justifiedParagraphs = {
}, // Hint to Marked.js to stop and check for a match
tokenizer(src, tokens) {
const regex = /^((:- ).*)|((-: ).*)|((:-:) .*)(?:\n|$)/ym;
const regex = /^((:- ).*)|((-: ).*)|((:-: ).*)(?:\n|$)/ym;
const match = regex.exec(src);
if(match?.length) {
let whichJustify;