@wdprlib/render 1.3.3 → 1.4.0

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/index.cjs CHANGED
@@ -833,7 +833,7 @@ function renderLink(ctx, data) {
833
833
  const attrs = [`href="${escapeAttr(href)}"`];
834
834
  if (data.type === "page" && typeof data.link === "object") {
835
835
  const page = data.link.page;
836
- const isSpecialPage = page.startsWith("//") || page.includes(":") || page.includes("#/");
836
+ const isSpecialPage = page.startsWith("//") || page.includes("#/");
837
837
  if (!isSpecialPage) {
838
838
  const hashIdx = page.indexOf("#");
839
839
  const pageToCheck = hashIdx !== -1 ? page.slice(0, hashIdx) : page;
package/dist/index.js CHANGED
@@ -781,7 +781,7 @@ function renderLink(ctx, data) {
781
781
  const attrs = [`href="${escapeAttr(href)}"`];
782
782
  if (data.type === "page" && typeof data.link === "object") {
783
783
  const page = data.link.page;
784
- const isSpecialPage = page.startsWith("//") || page.includes(":") || page.includes("#/");
784
+ const isSpecialPage = page.startsWith("//") || page.includes("#/");
785
785
  if (!isSpecialPage) {
786
786
  const hashIdx = page.indexOf("#");
787
787
  const pageToCheck = hashIdx !== -1 ? page.slice(0, hashIdx) : page;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wdprlib/render",
3
- "version": "1.3.3",
3
+ "version": "1.4.0",
4
4
  "description": "HTML renderer for Wikidot markup",
5
5
  "keywords": [
6
6
  "html",