@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.cjs
CHANGED
|
@@ -1271,7 +1271,7 @@ function a(el, forApp, parentDomain = "ecency.com", seoContext, renderOptions) {
|
|
|
1271
1271
|
}
|
|
1272
1272
|
}
|
|
1273
1273
|
el.setAttribute("class", "markdown-external-link");
|
|
1274
|
-
if (!/^((#)|(mailto:)|(\/(?!\/))|(((steem|hive|esteem|ecency|https?):)?\/\/))
|
|
1274
|
+
if (!/^((#)|(mailto:)|(\/(?!\/))|(((steem|hive|esteem|ecency|https?):)?\/\/))/i.test(href)) {
|
|
1275
1275
|
href = `https://${href}`;
|
|
1276
1276
|
}
|
|
1277
1277
|
if (forApp) {
|
|
@@ -2077,6 +2077,7 @@ function getPostBodySummary(obj, length, platform) {
|
|
|
2077
2077
|
return res;
|
|
2078
2078
|
}
|
|
2079
2079
|
|
|
2080
|
+
exports.IMAGE_SIZES = IMAGE_SIZES;
|
|
2080
2081
|
exports.SECTION_LIST = SECTION_LIST;
|
|
2081
2082
|
exports.buildSrcSet = buildSrcSet;
|
|
2082
2083
|
exports.catchPostImage = catchPostImage;
|