wikiparser-node 1.13.1 → 1.13.2
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/bundle/bundle.min.js +37 -0
- package/dist/addon/token.js +2 -2
- package/dist/base.d.ts +0 -1
- package/dist/index.js +5 -0
- package/dist/mixin/singleLine.d.ts +1 -0
- package/dist/mixin/singleLine.js +10 -2
- package/dist/parser/braces.js +5 -5
- package/dist/parser/commentAndExt.js +1 -1
- package/dist/parser/converter.js +4 -2
- package/dist/parser/externalLinks.js +2 -2
- package/dist/parser/hrAndDoubleUnderscore.js +2 -1
- package/dist/parser/links.js +4 -2
- package/dist/parser/magicLinks.js +2 -2
- package/dist/parser/redirect.js +2 -1
- package/dist/src/attributes.d.ts +12 -10
- package/dist/src/gallery.d.ts +8 -6
- package/dist/src/gallery.js +0 -1
- package/dist/src/imagemap.d.ts +8 -6
- package/dist/src/imagemap.js +1 -2
- package/dist/src/imagemapLink.js +1 -1
- package/dist/src/index.d.ts +1 -2
- package/dist/src/index.js +1 -0
- package/dist/src/link/galleryImage.js +1 -1
- package/dist/src/nested.d.ts +10 -9
- package/dist/src/nested.js +28 -23
- package/dist/src/paramTag/index.d.ts +1 -1
- package/dist/src/paramTag/index.js +37 -20
- package/dist/src/paramTag/inputbox.d.ts +1 -1
- package/dist/src/paramTag/inputbox.js +5 -17
- package/dist/src/pre.d.ts +8 -6
- package/dist/src/pre.js +0 -1
- package/dist/src/table/base.js +1 -1
- package/dist/src/table/index.d.ts +1 -0
- package/dist/src/table/index.js +0 -1
- package/dist/src/tagPair/ext.d.ts +2 -1
- package/dist/src/tagPair/ext.js +8 -6
- package/dist/src/transclude.d.ts +8 -6
- package/dist/src/transclude.js +10 -1
- package/extensions/dist/base.js +163 -0
- package/extensions/dist/codejar.js +53 -0
- package/extensions/dist/editor.js +159 -0
- package/extensions/dist/highlight.js +30 -0
- package/extensions/dist/lint.js +72 -0
- package/extensions/editor.css +59 -0
- package/extensions/ui.css +162 -0
- package/package.json +8 -1
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
.wikiparse-container {
|
|
2
|
+
position: relative;
|
|
3
|
+
-webkit-text-size-adjust: none;
|
|
4
|
+
}
|
|
5
|
+
.wikiparser {
|
|
6
|
+
white-space: pre-wrap;
|
|
7
|
+
overflow-wrap: break-word;
|
|
8
|
+
word-break: break-all;
|
|
9
|
+
font-family: monospace;
|
|
10
|
+
border: 1.5px solid #dedede;
|
|
11
|
+
background-color: #fff;
|
|
12
|
+
}
|
|
13
|
+
/* wikiparse.highlight或wikiparse.codejar */
|
|
14
|
+
.wikiparser.wikiparse-container {
|
|
15
|
+
padding: 4px 0;
|
|
16
|
+
overflow-y: auto;
|
|
17
|
+
}
|
|
18
|
+
.wikiparse-container > .wpb-root {
|
|
19
|
+
padding: 0 6px;
|
|
20
|
+
display: block;
|
|
21
|
+
position: relative;
|
|
22
|
+
overflow-y: hidden !important;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.wikiparser-line-numbers {
|
|
26
|
+
position: absolute;
|
|
27
|
+
top: 0;
|
|
28
|
+
left: 0;
|
|
29
|
+
display: inline-block;
|
|
30
|
+
background-color: #f5f5f5;
|
|
31
|
+
color: #6c6c6c;
|
|
32
|
+
border-right: 1px solid #ddd;
|
|
33
|
+
padding: 4px 0;
|
|
34
|
+
}
|
|
35
|
+
.wikiparser-line-numbers > span {
|
|
36
|
+
display: inline-block;
|
|
37
|
+
width: calc(100% - .5ch);
|
|
38
|
+
text-align: right;
|
|
39
|
+
}
|
|
40
|
+
.wikiparser-sizer {
|
|
41
|
+
position: absolute;
|
|
42
|
+
top: 0;
|
|
43
|
+
left: 0;
|
|
44
|
+
right: 0;
|
|
45
|
+
visibility: hidden;
|
|
46
|
+
z-index: -1;
|
|
47
|
+
padding: 0 6px;
|
|
48
|
+
}
|
|
49
|
+
.wpb-root[contenteditable] > .wikiparser-sizer {
|
|
50
|
+
overflow-y: scroll;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.wpb-table-inter {
|
|
54
|
+
color: #d73333;
|
|
55
|
+
font-weight: normal;
|
|
56
|
+
text-decoration: underline wavy 1px;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.wpb-hidden, .wpb-noinclude, .wpb-include, .wpb-comment, .wpb-attr-dirty {
|
|
60
|
+
color: #7b8c8f;
|
|
61
|
+
font-weight: normal;
|
|
62
|
+
font-style: italic;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.wpb-ext, .wpb-html {
|
|
66
|
+
color: #14866d;
|
|
67
|
+
font-weight: bold;
|
|
68
|
+
}
|
|
69
|
+
.wpb-ext-attrs, .wpb-html-attrs {
|
|
70
|
+
font-weight: normal;
|
|
71
|
+
}
|
|
72
|
+
.wpb-ext-attr > .wpb-attr-value, .wpb-html-attr > .wpb-attr-value {
|
|
73
|
+
color: #179b1c;
|
|
74
|
+
}
|
|
75
|
+
.wpb-ext-inner {
|
|
76
|
+
color: initial;
|
|
77
|
+
font-weight: normal;
|
|
78
|
+
background-color: rgba(0, 0, 0, .03);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.wpb-arg {
|
|
82
|
+
color: #ac6600;
|
|
83
|
+
font-weight: bold;
|
|
84
|
+
}
|
|
85
|
+
.wpb-arg-default {
|
|
86
|
+
color: #ad9300;
|
|
87
|
+
font-weight: normal;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.wpb-template {
|
|
91
|
+
color: #80c;
|
|
92
|
+
font-weight: bold;
|
|
93
|
+
background-color: rgba(119, 0, 170, .03);
|
|
94
|
+
}
|
|
95
|
+
.wpb-magic-word {
|
|
96
|
+
color: #a11;
|
|
97
|
+
font-weight: bold;
|
|
98
|
+
background-color: rgba(170, 17, 17, .03);
|
|
99
|
+
}
|
|
100
|
+
.wpb-invoke-module, .wpb-invoke-function {
|
|
101
|
+
color: #bf3e13;
|
|
102
|
+
font-weight: normal;
|
|
103
|
+
}
|
|
104
|
+
.wpb-parameter {
|
|
105
|
+
font-weight: normal;
|
|
106
|
+
}
|
|
107
|
+
.wpb-template > .wpb-parameter,
|
|
108
|
+
.wpb-invoke-function ~ .wpb-parameter {
|
|
109
|
+
color: #b0c;
|
|
110
|
+
}
|
|
111
|
+
.wpb-parameter-value {
|
|
112
|
+
color: initial;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.wpb-heading, .wpb-image-parameter {
|
|
116
|
+
color: #0076dd;
|
|
117
|
+
}
|
|
118
|
+
.wpb-heading-title {
|
|
119
|
+
color: initial;
|
|
120
|
+
font-weight: bold;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.wpb-table, .wpb-tr, .wpb-td {
|
|
124
|
+
color: #d08;
|
|
125
|
+
font-weight: bold;
|
|
126
|
+
}
|
|
127
|
+
.wpb-table-attrs {
|
|
128
|
+
font-weight: normal;
|
|
129
|
+
}
|
|
130
|
+
.wpb-table-attr > .wpb-attr-value {
|
|
131
|
+
color: #f500d4;
|
|
132
|
+
}
|
|
133
|
+
.wpb-td-inner {
|
|
134
|
+
color: initial;
|
|
135
|
+
font-weight: normal;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.wpb-double-underscore, .wpb-hr, .wpb-quote, .wpb-list, .wpb-dd, .wpb-redirect-syntax {
|
|
139
|
+
color: #0076dd;
|
|
140
|
+
font-weight: bold;
|
|
141
|
+
background-color: #eee;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.wpb-link, .wpb-category, .wpb-file, .wpb-gallery-image, .wpb-imagemap-image, .wpb-redirect-target,
|
|
145
|
+
.wpb-ext-link, .wpb-free-ext-link, .wpb-magic-link {
|
|
146
|
+
color: #000aaa;
|
|
147
|
+
background-color: rgba(34, 17, 153, .03);
|
|
148
|
+
}
|
|
149
|
+
.wpb-link-text, .wpb-image-caption, .wpb-ext-link-text {
|
|
150
|
+
color: initial;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.wpb-converter {
|
|
154
|
+
color: #b68;
|
|
155
|
+
font-weight: bold;
|
|
156
|
+
}
|
|
157
|
+
.wpb-converter-rule {
|
|
158
|
+
font-weight: normal;
|
|
159
|
+
}
|
|
160
|
+
.wpb-converter-rule-from, .wpb-converter-rule-to, .wpb-converter-noconvert {
|
|
161
|
+
color: initial;
|
|
162
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wikiparser-node",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.2",
|
|
4
4
|
"description": "A Node.js parser for MediaWiki markup with AST",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mediawiki",
|
|
@@ -16,6 +16,13 @@
|
|
|
16
16
|
"files": [
|
|
17
17
|
"/errors/README",
|
|
18
18
|
"/printed/README",
|
|
19
|
+
"/bundle/bundle.min.js",
|
|
20
|
+
"/extensions/dist/",
|
|
21
|
+
"/extensions/*.css",
|
|
22
|
+
"!/extensions/dist/gh-page.js",
|
|
23
|
+
"!/extensions/gh-page.css",
|
|
24
|
+
"!/extensions/dist/parserTests.js",
|
|
25
|
+
"!/extensions/test-page.css",
|
|
19
26
|
"/config/",
|
|
20
27
|
"/i18n/",
|
|
21
28
|
"/dist/",
|