@segnavia/markdown-editor 0.48.0 → 0.49.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.
|
@@ -29,9 +29,14 @@ function lockedView(options) {
|
|
|
29
29
|
page.fonts = current.fonts;
|
|
30
30
|
page.alertLabels = current.alertLabels;
|
|
31
31
|
page.page = {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
type: "document",
|
|
33
|
+
kind: "page",
|
|
34
|
+
settings: { scripts: "refuse" },
|
|
35
|
+
style: { fonts: current.fontReferences },
|
|
36
|
+
children: [{
|
|
37
|
+
type: "page",
|
|
38
|
+
body: { markdown: String(node.attrs.source ?? "") }
|
|
39
|
+
}]
|
|
35
40
|
};
|
|
36
41
|
dom.append(page);
|
|
37
42
|
}
|
|
@@ -4,7 +4,7 @@ const RAW_INLINE_NAME = "rawInline";
|
|
|
4
4
|
const RAW_INLINE_ATTRIBUTE = "data-raw-inline";
|
|
5
5
|
const RAW_INLINE_SOURCE_ATTRIBUTE = "data-raw-source";
|
|
6
6
|
const RAW_INLINE_DISPLAY_ATTRIBUTE = "data-raw-display";
|
|
7
|
-
const ASCII_PUNCTUATION = String.raw`[!-/:-@\[-`
|
|
7
|
+
const ASCII_PUNCTUATION = `${String.raw`[!-/:-@\[-`}{-~]`;
|
|
8
8
|
const escapePattern = new RegExp(`^\\\\${ASCII_PUNCTUATION}`);
|
|
9
9
|
const entityPattern = /^&(?:[A-Za-z][A-Za-z0-9]+|#[0-9]+|#[xX][0-9A-Fa-f]+);/;
|
|
10
10
|
const footnotePattern = /^\[\^[^\]\n]+\]/;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@segnavia/markdown-editor",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.49.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@segnavia/format": "0.
|
|
40
|
-
"@segnavia/frame": "0.
|
|
41
|
-
"@segnavia/html": "0.
|
|
39
|
+
"@segnavia/format": "0.49.0",
|
|
40
|
+
"@segnavia/frame": "0.49.0",
|
|
41
|
+
"@segnavia/html": "0.49.0"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"@codemirror/commands": "^6.11.1",
|