From 14de3dd9e537f339f18f79ddcd8e058697e56223 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Fri, 9 Feb 2024 02:05:49 +0000 Subject: [PATCH] Linkify better? git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4834 ed5197a5-7fde-0310-b194-c3ffbd925b24 --- apps/ssb.json | 2 +- apps/ssb/commonmark-hashtag.js | 2 +- apps/ssb/tf-utils.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/ssb.json b/apps/ssb.json index f6ca62be..997239a1 100644 --- a/apps/ssb.json +++ b/apps/ssb.json @@ -1,5 +1,5 @@ { "type": "tildefriends-app", "emoji": "🐌", - "previous": "&h+PXCrnUHtHHfKyUaLW+Y1dP/JpWwG9cbRNjxOCVqw0=.sha256" + "previous": "&n2SUkcUV+XP2Idz+bMaU8WrfN7+m63zUoe6nebkHI+M=.sha256" } \ No newline at end of file diff --git a/apps/ssb/commonmark-hashtag.js b/apps/ssb/commonmark-hashtag.js index 02662fce..824cbb7a 100644 --- a/apps/ssb/commonmark-hashtag.js +++ b/apps/ssb/commonmark-hashtag.js @@ -39,7 +39,7 @@ function splitMatches(text, regexp) { return result; } -const regex = new RegExp("(? n.literal).join(""); diff --git a/apps/ssb/tf-utils.js b/apps/ssb/tf-utils.js index c9cc7ac2..855f2cc9 100644 --- a/apps/ssb/tf-utils.js +++ b/apps/ssb/tf-utils.js @@ -50,8 +50,8 @@ export function markdown(md) { let writer = new commonmark.HtmlRenderer(); writer.image = image; let parsed = reader.parse(md || ''); - parsed = linkify.transform(parsed); parsed = hashtagify.transform(parsed); + parsed = linkify.transform(parsed); let walker = parsed.walker(); let event, node; while ((event = walker.next())) {