@vonaffenfels/slate-editor 1.2.15 → 1.2.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vonaffenfels/slate-editor",
3
- "version": "1.2.15",
3
+ "version": "1.2.18",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -72,7 +72,7 @@
72
72
  "cssnano": "^5.0.1",
73
73
  "escape-html": "^1.0.3"
74
74
  },
75
- "gitHead": "704f3fe096d4f2f05348b49d1b46e1fba1745510",
75
+ "gitHead": "17d78c6d835447a438e7e5ae23cc09a2ddb9c61a",
76
76
  "publishConfig": {
77
77
  "access": "public"
78
78
  }
@@ -111,6 +111,10 @@ export const Default = ({
111
111
 
112
112
  const nofollowProp = noFollow || nofollow;
113
113
 
114
+ if (linkAttributes.href?.startsWith("/mailto:") || linkAttributes.href?.startsWith("/tel:")) {
115
+ linkAttributes.href = linkAttributes.href.slice(1);
116
+ }
117
+
114
118
  if (nofollowProp) {
115
119
  relProp += " nofollow";
116
120
  }