@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 +2 -2
- package/package.json +1 -1
- package/src/sanitize.js +3 -4
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
|
|
226
|
-
|
|
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
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
|
-
*
|
|
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"
|
|
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:`
|
|
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
|
*
|