0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-30 04:32:38 +00:00

Add Tests

This commit is contained in:
David Bolack
2024-12-04 21:24:48 -06:00
parent e7f4611a00
commit 596c4ad68d
2 changed files with 51 additions and 2 deletions

View File

@@ -415,9 +415,9 @@ const nonbreakingSpaces = {
const definitionListsSingleLine = {
name : 'definitionListsSingleLine',
level : 'block',
start(src) { return src.match(/\n[^\n]*?::[^\n]*/m)?.index; }, // Hint to Marked.js to stop and check for a match
start(src) { return src.match(/\n[^\n]*?::[^:\n]*/m)?.index; }, // Hint to Marked.js to stop and check for a match
tokenizer(src, tokens) {
const regex = /^([^\n]*?)::([^\n]*)(?:\n|$)/ym;
const regex = /^([^\n]*?)::([^\:\>][^\n]*)(?:\n|$)/ym;
let match;
let endIndex = 0;
const definitions = [];