@uniweb/semantic-parser 1.11.0 → 1.12.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/README.md CHANGED
@@ -222,8 +222,8 @@ parser builds — a `<` someone typed shows as `<`. Marks become tags:
222
222
  ```
223
223
 
224
224
  A link is drawn only when its URL may be followed — relative, or `http:`,
225
- `https:`, `mailto:`, `tel:`, `page:` or `topic:`. Any other, such as
226
- `javascript:`, leaves its text unlinked. A `button` mark is a link whose `role`
225
+ `https:`, `mailto:`, `tel:` or `page:`. Any other, such as `javascript:`,
226
+ leaves its text unlinked. A `button` mark is a link whose `role`
227
227
  is `button`.
228
228
 
229
229
  ### Span Marks
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniweb/semantic-parser",
3
- "version": "1.11.0",
3
+ "version": "1.12.0",
4
4
  "description": "Semantic parser for ProseMirror/TipTap content structures",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
package/src/sanitize.js CHANGED
@@ -172,10 +172,9 @@ function cleanStyle(value) {
172
172
 
173
173
  /**
174
174
  * The schemes a link may use: the web, mail and phone, and the framework's own
175
- * references to a page (`page:`, and the older `topic:`), which kit resolves to
176
- * a route at render.
175
+ * reference to a page, `page:`, which kit resolves to a route at render.
177
176
  */
178
- const LINK_SCHEMES = new Set(["http", "https", "mailto", "tel", "page", "topic"]);
177
+ const LINK_SCHEMES = new Set(["http", "https", "mailto", "tel", "page"]);
179
178
 
180
179
  /** A link a document may follow: relative, or one of LINK_SCHEMES. */
181
180
  function isSafeUrl(value) {
@@ -473,7 +472,7 @@ export function inspectSVG(svg) {
473
472
 
474
473
  /**
475
474
  * Whether a link may be followed: a relative URL, or `http:`, `https:`,
476
- * `mailto:`, `tel:`, or the framework's `page:` / `topic:` references. Control
475
+ * `mailto:`, `tel:`, or the framework's `page:` reference. Control
477
476
  * characters and spaces are ignored when reading the scheme, as a browser
478
477
  * ignores them, so `java\tscript:` is read as `javascript:`.
479
478
  *