mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-03 17:02:40 +00:00
@@ -241,7 +241,10 @@ const underline = {
|
|||||||
tokenizer(src, tokens) {
|
tokenizer(src, tokens) {
|
||||||
const uRegex = /^\b_(?![_\s])(.*?[^_\s])_\b/m;
|
const uRegex = /^\b_(?![_\s])(.*?[^_\s])_\b/m;
|
||||||
const match = uRegex.exec(src);
|
const match = uRegex.exec(src);
|
||||||
|
console.log('Looking');
|
||||||
if(match?.length) {
|
if(match?.length) {
|
||||||
|
console.log('found!');
|
||||||
|
console.log(match);
|
||||||
return {
|
return {
|
||||||
type : 'underline',
|
type : 'underline',
|
||||||
raw : match[0],
|
raw : match[0],
|
||||||
@@ -250,6 +253,7 @@ const underline = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
renderer(token) {
|
renderer(token) {
|
||||||
|
console.log()
|
||||||
return `<u>${this.parser.parseInline(token.tokens)}</u>`;
|
return `<u>${this.parser.parseInline(token.tokens)}</u>`;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user