From 5b29107d082e8792f78a5a5120a2830d699ce4cf Mon Sep 17 00:00:00 2001 From: saltrafael Date: Fri, 8 Oct 2021 09:34:36 -0300 Subject: [PATCH] Fix mentions and timestamps not parsed in bullet lists --- ui/util/remark-lbry.js | 8 ++++---- ui/util/remark-timestamp.js | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ui/util/remark-lbry.js b/ui/util/remark-lbry.js index 7f3d9460e..99c1601cb 100644 --- a/ui/util/remark-lbry.js +++ b/ui/util/remark-lbry.js @@ -108,15 +108,15 @@ function tokenizeURI(eat, value, silent) { // Configure tokenizer for lbry urls tokenizeURI.locator = locateURI; -tokenizeURI.notInList = true; +tokenizeURI.notInList = false; tokenizeURI.notInLink = true; -tokenizeURI.notInBlock = true; +tokenizeURI.notInBlock = false; // Configure tokenizer for lbry channels tokenizeMention.locator = locateMention; -tokenizeMention.notInList = true; +tokenizeMention.notInList = false; tokenizeMention.notInLink = true; -tokenizeMention.notInBlock = true; +tokenizeMention.notInBlock = false; const visitor = (node, index, parent) => { if (node.type === 'link' && parent && parent.type === 'paragraph') { diff --git a/ui/util/remark-timestamp.js b/ui/util/remark-timestamp.js index 288047667..0f410619e 100644 --- a/ui/util/remark-timestamp.js +++ b/ui/util/remark-timestamp.js @@ -108,9 +108,9 @@ function tokenizeTimestamp(eat, value, silent) { } tokenizeTimestamp.locator = locateTimestamp; -tokenizeTimestamp.notInList = true; // Flag doesn't work? It'll always tokenizes in List and never in Bullet. +tokenizeTimestamp.notInList = false; // Flag doesn't work? It'll always tokenizes in List and never in Bullet. tokenizeTimestamp.notInLink = true; -tokenizeTimestamp.notInBlock = true; +tokenizeTimestamp.notInBlock = false; export function inlineTimestamp() { const Parser = this.Parser;