@ckeditor/ckeditor5-markdown-gfm 48.2.0 → 48.3.0-alpha.1
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/dist/augmentation.d.ts +9 -9
- package/dist/gfmdataprocessor.d.ts +65 -65
- package/dist/html2markdown/html2markdown.d.ts +13 -13
- package/dist/index-content.css +1 -0
- package/dist/index-editor.css +1 -0
- package/dist/index.css +0 -2
- package/dist/index.d.ts +11 -11
- package/dist/index.js +415 -412
- package/dist/index.js.map +1 -1
- package/dist/markdown.d.ts +22 -22
- package/dist/markdown2html/markdown2html.d.ts +27 -27
- package/dist/pastefrommarkdownexperimental.d.ts +73 -73
- package/package.json +4 -4
- package/dist/index.css.map +0 -1
|
@@ -1,78 +1,78 @@
|
|
|
1
1
|
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import { Plugin, type Editor } from
|
|
9
|
-
import { ClipboardPipeline } from
|
|
6
|
+
* @module markdown-gfm/pastefrommarkdownexperimental
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin, type Editor, type PluginDependenciesOf } from "@ckeditor/ckeditor5-core";
|
|
9
|
+
import { ClipboardPipeline } from "@ckeditor/ckeditor5-clipboard";
|
|
10
10
|
/**
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
* The GitHub Flavored Markdown (GFM) paste plugin.
|
|
12
|
+
*
|
|
13
|
+
* For a detailed overview, check the {@glink features/pasting/paste-markdown Paste Markdown feature} guide.
|
|
14
|
+
*/
|
|
15
15
|
export declare class PasteFromMarkdownExperimental extends Plugin {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
16
|
+
/**
|
|
17
|
+
* @internal
|
|
18
|
+
*/
|
|
19
|
+
private _gfmDataProcessor;
|
|
20
|
+
/**
|
|
21
|
+
* @inheritDoc
|
|
22
|
+
*/
|
|
23
|
+
constructor(editor: Editor);
|
|
24
|
+
/**
|
|
25
|
+
* @inheritDoc
|
|
26
|
+
*/
|
|
27
|
+
static get pluginName(): "PasteFromMarkdownExperimental";
|
|
28
|
+
/**
|
|
29
|
+
* @inheritDoc
|
|
30
|
+
*/
|
|
31
|
+
static override get isOfficialPlugin(): true;
|
|
32
|
+
/**
|
|
33
|
+
* @inheritDoc
|
|
34
|
+
*/
|
|
35
|
+
static get requires(): PluginDependenciesOf<[ClipboardPipeline]>;
|
|
36
|
+
/**
|
|
37
|
+
* @inheritDoc
|
|
38
|
+
*/
|
|
39
|
+
init(): void;
|
|
40
|
+
/**
|
|
41
|
+
* Determines if the code copied from a website in the `text/html` type can be parsed as Markdown.
|
|
42
|
+
* It removes any OS-specific HTML tags, for example, <meta> on macOS and <!--StartFragment--> on Windows.
|
|
43
|
+
* Then removes a single wrapper HTML tag or wrappers for sibling tags, and if there are no more tags left,
|
|
44
|
+
* returns the remaining text. Returns null if there are any remaining HTML tags detected.
|
|
45
|
+
*
|
|
46
|
+
* @param htmlString Clipboard content in the `text/html` type format.
|
|
47
|
+
*/
|
|
48
|
+
private _parseMarkdownFromHtml;
|
|
49
|
+
/**
|
|
50
|
+
* Removes OS-specific tags.
|
|
51
|
+
*
|
|
52
|
+
* @param htmlString Clipboard content in the `text/html` type format.
|
|
53
|
+
*/
|
|
54
|
+
private _removeOsSpecificTags;
|
|
55
|
+
/**
|
|
56
|
+
* If the input HTML string contains any first-level formatting tags
|
|
57
|
+
* like <b>, <strong>, or <i>, we should not treat it as Markdown.
|
|
58
|
+
*
|
|
59
|
+
* @param htmlString Clipboard content.
|
|
60
|
+
*/
|
|
61
|
+
private _containsOnlyAllowedFirstLevelTags;
|
|
62
|
+
/**
|
|
63
|
+
* Removes multiple HTML wrapper tags from a list of sibling HTML tags.
|
|
64
|
+
*
|
|
65
|
+
* @param htmlString Clipboard content without any OS-specific tags.
|
|
66
|
+
*/
|
|
67
|
+
private _removeFirstLevelWrapperTagsAndBrs;
|
|
68
|
+
/**
|
|
69
|
+
* Determines if a string contains any HTML tags.
|
|
70
|
+
*/
|
|
71
|
+
private _containsAnyRemainingHtmlTags;
|
|
72
|
+
/**
|
|
73
|
+
* Replaces the reserved HTML entities with the actual characters.
|
|
74
|
+
*
|
|
75
|
+
* @param htmlString Clipboard content without any tags.
|
|
76
|
+
*/
|
|
77
|
+
private _replaceHtmlReservedEntitiesWithCharacters;
|
|
78
78
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-markdown-gfm",
|
|
3
|
-
"version": "48.
|
|
3
|
+
"version": "48.3.0-alpha.1",
|
|
4
4
|
"description": "GitHub Flavored Markdown data processor for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
"dist/translations/*.umd.js"
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@ckeditor/ckeditor5-clipboard": "48.
|
|
34
|
-
"@ckeditor/ckeditor5-core": "48.
|
|
35
|
-
"@ckeditor/ckeditor5-engine": "48.
|
|
33
|
+
"@ckeditor/ckeditor5-clipboard": "48.3.0-alpha.1",
|
|
34
|
+
"@ckeditor/ckeditor5-core": "48.3.0-alpha.1",
|
|
35
|
+
"@ckeditor/ckeditor5-engine": "48.3.0-alpha.1",
|
|
36
36
|
"@types/hast": "3.0.4",
|
|
37
37
|
"hast-util-from-dom": "5.0.1",
|
|
38
38
|
"hast-util-to-html": "9.0.5",
|
package/dist/index.css.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["index.css"],"names":[],"mappings":";;;;;;AAEA,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC","file":"index.css.map","sourcesContent":["\n\n/*# sourceMappingURL=index.css.map */"]}
|