0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-28 17:52:38 +00:00

Revert "A better regex for underlining."

This reverts commit a88b256b6c.
This commit is contained in:
David Bolack
2024-01-18 09:51:11 -06:00
parent 8b31966c2b
commit ac9fc720f7

View File

@@ -237,9 +237,9 @@ const superSubScripts = {
const underline = {
name : 'underline',
level : 'inline',
start(src) { return src.match(/\b_(?![_\s])(.*?[^_\s])_\b/m)?.index;},
start(src) { return src.match(/\w_[^_]_/m)?.index;},
tokenizer(src, tokens) {
const uRegex = /^\b_(?![_\s])(.*?[^_\s])_\b/m;
const uRegex = /^_([^_]*)_/m;
const match = uRegex.exec(src);
console.log('Looking');
if(match?.length) {