From 9372c19b00a765345b6434d7fb3ba2ad3798bded Mon Sep 17 00:00:00 2001 From: btzr-io Date: Sun, 9 Jun 2019 01:14:27 -0600 Subject: [PATCH] fix custom link attribute --- src/ui/util/remark-lbry.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ui/util/remark-lbry.js b/src/ui/util/remark-lbry.js index 8411b14a8..14cc9fc16 100644 --- a/src/ui/util/remark-lbry.js +++ b/src/ui/util/remark-lbry.js @@ -8,7 +8,10 @@ const locateMention = (value, fromIndex) => value.indexOf('@', fromIndex); const createURI = (text, uri, autoEmbed = false) => ({ type: 'link', url: (uri.startsWith(protocol) ? '' : protocol) + uri, - data: { hProperties: { dataPreview: autoEmbed } }, + data: { + // Custom attribute + hProperties: { 'data-preview': autoEmbed }, + }, children: [{ type: 'text', value: text }], });