@october/slate-md-serializer
Advanced tools
Comparing version 1.0.14 to 1.0.15
@@ -49,3 +49,3 @@ "use strict"; | ||
if (obj.kind === "string") { | ||
return children; | ||
return ("" + children).replace("@", "\\@"); | ||
} | ||
@@ -158,2 +158,5 @@ } | ||
return "`" + children + "`"; | ||
case "mention": | ||
var username = (0, _urls.encode)(obj.getIn(["data", "username"]) || ""); | ||
return username && "@" + username; | ||
} | ||
@@ -160,0 +163,0 @@ } |
{ | ||
"name": "@october/slate-md-serializer", | ||
"version": "1.0.14", | ||
"version": "1.0.15", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/renderer.js", |
@@ -37,3 +37,3 @@ import parser from "./parser"; | ||
if (obj.kind === "string") { | ||
return children; | ||
return `${children}`.replace("@", "\\@"); | ||
} | ||
@@ -146,2 +146,5 @@ } | ||
return `\`${children}\``; | ||
case "mention": | ||
const username = encode(obj.getIn(["data", "username"]) || ""); | ||
return username && `@${username}`; | ||
} | ||
@@ -148,0 +151,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
251252
2782