@ecency/render-helper 2.5.2 → 2.5.4
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.
package/dist/node/index.mjs
CHANGED
|
@@ -1242,7 +1242,7 @@ function a(el, forApp, parentDomain = "ecency.com", seoContext, renderOptions) {
|
|
|
1242
1242
|
}
|
|
1243
1243
|
}
|
|
1244
1244
|
el.setAttribute("class", "markdown-external-link");
|
|
1245
|
-
if (!/^((#)|(mailto:)|(\/(?!\/))|(((steem|hive|esteem|ecency|https?):)?\/\/))
|
|
1245
|
+
if (!/^((#)|(mailto:)|(\/(?!\/))|(((steem|hive|esteem|ecency|https?):)?\/\/))/i.test(href)) {
|
|
1246
1246
|
href = `https://${href}`;
|
|
1247
1247
|
}
|
|
1248
1248
|
if (forApp) {
|
|
@@ -2048,6 +2048,6 @@ function getPostBodySummary(obj, length, platform) {
|
|
|
2048
2048
|
return res;
|
|
2049
2049
|
}
|
|
2050
2050
|
|
|
2051
|
-
export { SECTION_LIST, buildSrcSet, catchPostImage, isValidPermlink, getPostBodySummary as postBodySummary, proxifyImageSrc, markdown2Html as renderPostBody, setCacheSize, setProxyBase, setSlowRenderThresholdMs, simpleMarkdownToHTML };
|
|
2051
|
+
export { IMAGE_SIZES, SECTION_LIST, buildSrcSet, catchPostImage, isValidPermlink, getPostBodySummary as postBodySummary, proxifyImageSrc, markdown2Html as renderPostBody, setCacheSize, setProxyBase, setSlowRenderThresholdMs, simpleMarkdownToHTML };
|
|
2052
2052
|
//# sourceMappingURL=index.mjs.map
|
|
2053
2053
|
//# sourceMappingURL=index.mjs.map
|