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 }], });