You've already forked obsidian-visualiser
Mass updates
This commit is contained in:
@@ -9,19 +9,20 @@ export const tag: MarkdownConfig = {
|
||||
],
|
||||
parseInline: [{
|
||||
name: 'Tag',
|
||||
after: 'Wikilink',
|
||||
parse(cx, next, pos)
|
||||
{
|
||||
//35 == '#'
|
||||
if (cx.slice(pos, pos + 1).charCodeAt(0) !== 35 || String.fromCharCode(next).trim() === '') return -1;
|
||||
if(pos !== 0 && cx.slice(pos - 1, pos).match(/\w/)) return -1;
|
||||
|
||||
const end = cx.slice(pos, cx.end).search(/\s/);
|
||||
return cx.addElement(cx.elt('Tag', pos, end === -1 ? cx.end : pos + end, [ cx.elt('TagMeta', pos, pos + 1) ]));
|
||||
return cx.addElement(cx.elt('Tag', pos, end === -1 ? cx.end : pos + end));
|
||||
},
|
||||
}],
|
||||
props: [
|
||||
styleTags({
|
||||
'Tag': tagTag,
|
||||
'TagMeta': tags.meta,
|
||||
})
|
||||
]
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user