@ecency/render-helper 2.5.16 → 2.5.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1729,7 +1729,7 @@ function linkify(content, forApp, renderOptions) {
1729
1729
  if (userLower.indexOf("/") === -1 && isValidUsername(user)) {
1730
1730
  if (!forApp) {
1731
1731
  const avatarSrc = `${getProxyBase()}/u/${userLower}/avatar/small`;
1732
- const html = `${preceedings}<a class="er-author er-author-link" href="/@${userLower}"><img class="er-author-link-image" src="${avatarSrc}" alt="${userLower}"/><span class="er-author-link-content"><span class="er-author-link-label">Hive account</span><span>@${userLower}</span></span></a>`;
1732
+ const html = `${preceedings}<a class="er-author er-author-link" href="/@${userLower}"><img class="er-author-link-image" src="${avatarSrc}" alt="${userLower}"/>@${userLower}</a>`;
1733
1733
  const placeholder = `\u200C${authorPlaceholders.length}\u200C`;
1734
1734
  authorPlaceholders.push({ placeholder, html });
1735
1735
  return placeholder;
@@ -2117,10 +2117,10 @@ var BACKTICK_FENCE_RE = /```[\s\S]*?```/g;
2117
2117
  var TILDE_FENCE_RE = /~~~[\s\S]*?~~~/g;
2118
2118
  var INLINE_CODE_RE = /`[^`\n]*`/g;
2119
2119
  var INDENTED_CODE_RE = /^(?: {4}|\t).+$/gm;
2120
- var MD_IMAGE_RE = /!\[[^\]]*\]\(\s*([^)\s]+)(?:\s+["'][^"']*["'])?\s*\)/;
2120
+ var MD_IMAGE_RE = /!\[[^[\]]*\]\(\s*([^)\s[]+)(?:\s+["'][^"']*["'])?\s*\)/;
2121
2121
  var HTML_IMAGE_RE = /<img\b[^>]*?\bsrc\s*=\s*["']([^"']+)["']/i;
2122
2122
  var BARE_IMAGE_RE = /(^|\s)(https?:\/\/[^\s<>"'()[\]]+\.(?:tiff?|jpe?g|gif|png|svg|ico|heic|webp|arw)(?:[?#][^\s<>"'()[\]]*)?)/im;
2123
- var MD_LINK_RE = /\[([^\]]*)\]\(\s*([^)\s]+)(?:\s+["'][^"']*["'])?\s*\)/g;
2123
+ var MD_LINK_RE = /\[([^[\]]*)\]\(\s*([^)\s[]+)(?:\s+["'][^"']*["'])?\s*\)/g;
2124
2124
  var IMG_HREF_RE = /https?:\/\/.*\.(?:tiff?|jpe?g|gif|png|svg|ico|heic|webp|arw)/i;
2125
2125
  var SAFE_URL_RE = /^https?:\/\//i;
2126
2126
  function findFirstImageUrl(body, includeBareUrls = false) {