wikiparser-node 0.7.1-b → 0.8.0-m

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.
Files changed (78) hide show
  1. package/config/default.json +832 -0
  2. package/config/llwiki.json +630 -0
  3. package/config/minimum.json +142 -0
  4. package/config/moegirl.json +728 -0
  5. package/config/zhwiki.json +1269 -0
  6. package/index.js +79 -0
  7. package/lib/element.js +137 -0
  8. package/lib/node.js +226 -0
  9. package/lib/text.js +123 -0
  10. package/lib/title.js +60 -0
  11. package/mixin/hidden.js +18 -0
  12. package/package.json +9 -11
  13. package/parser/brackets.js +119 -0
  14. package/parser/commentAndExt.js +61 -0
  15. package/parser/converter.js +45 -0
  16. package/parser/externalLinks.js +32 -0
  17. package/parser/hrAndDoubleUnderscore.js +37 -0
  18. package/parser/html.js +41 -0
  19. package/parser/links.js +93 -0
  20. package/parser/list.js +58 -0
  21. package/parser/magicLinks.js +40 -0
  22. package/parser/quotes.js +63 -0
  23. package/parser/table.js +113 -0
  24. package/src/arg.js +89 -0
  25. package/src/atom/hidden.js +11 -0
  26. package/src/atom/index.js +26 -0
  27. package/src/attribute.js +277 -0
  28. package/src/attributes.js +150 -0
  29. package/src/converter.js +70 -0
  30. package/src/converterFlags.js +97 -0
  31. package/src/converterRule.js +75 -0
  32. package/src/extLink.js +60 -0
  33. package/src/gallery.js +101 -0
  34. package/src/hasNowiki/index.js +32 -0
  35. package/src/hasNowiki/pre.js +28 -0
  36. package/src/heading.js +83 -0
  37. package/src/html.js +133 -0
  38. package/src/imageParameter.js +106 -0
  39. package/src/imagemap.js +140 -0
  40. package/src/imagemapLink.js +29 -0
  41. package/src/index.js +407 -0
  42. package/src/link/category.js +13 -0
  43. package/src/link/file.js +125 -0
  44. package/src/link/galleryImage.js +62 -0
  45. package/src/link/index.js +125 -0
  46. package/src/magicLink.js +68 -0
  47. package/src/nested/choose.js +23 -0
  48. package/src/nested/combobox.js +22 -0
  49. package/src/nested/index.js +69 -0
  50. package/src/nested/references.js +22 -0
  51. package/src/nowiki/comment.js +47 -0
  52. package/src/nowiki/dd.js +13 -0
  53. package/src/nowiki/doubleUnderscore.js +26 -0
  54. package/src/nowiki/hr.js +22 -0
  55. package/src/nowiki/index.js +34 -0
  56. package/src/nowiki/list.js +13 -0
  57. package/src/nowiki/noinclude.js +14 -0
  58. package/src/nowiki/quote.js +55 -0
  59. package/src/onlyinclude.js +39 -0
  60. package/src/paramTag/index.js +66 -0
  61. package/src/paramTag/inputbox.js +32 -0
  62. package/src/parameter.js +97 -0
  63. package/src/syntax.js +23 -0
  64. package/src/table/index.js +46 -0
  65. package/src/table/td.js +119 -0
  66. package/src/table/tr.js +74 -0
  67. package/src/tagPair/ext.js +121 -0
  68. package/src/tagPair/include.js +26 -0
  69. package/src/tagPair/index.js +77 -0
  70. package/src/transclude.js +323 -0
  71. package/util/base.js +17 -0
  72. package/util/diff.js +76 -0
  73. package/util/lint.js +54 -0
  74. package/util/string.js +60 -0
  75. package/bundle/bundle.min.js +0 -40
  76. package/extensions/editor.css +0 -60
  77. package/extensions/editor.js +0 -324
  78. package/extensions/ui.css +0 -119
package/extensions/ui.css DELETED
@@ -1,119 +0,0 @@
1
- .wikiparser {
2
- white-space: pre-wrap;
3
- overflow-wrap: break-word;
4
- font-family: monospace;
5
- }
6
-
7
- .wpb-error {
8
- text-decoration: underline wavy #f00 1px;
9
- }
10
- .wpb-hidden, .wpb-table-inter, .wpb-table-inter span {
11
- color: #f00;
12
- font-weight: normal;
13
- text-decoration: underline wavy 1px;
14
- }
15
-
16
- .wpb-noinclude, .wpb-include, .wpb-comment {
17
- color: #72777d;
18
- font-weight: normal;
19
- }
20
- .wpb-comment {
21
- font-style: italic;
22
- }
23
-
24
- .wpb-ext, .wpb-html {
25
- color: #14866d;
26
- font-weight: bold;
27
- }
28
- .wpb-ext-attrs, .wpb-html-attrs {
29
- font-weight: normal;
30
- }
31
- .wpb-ext-attr > .wpb-attr-value, .wpb-html-attr > .wpb-attr-value {
32
- color: #179b1c;
33
- }
34
- .wpb-ext-inner {
35
- color: initial;
36
- font-weight: normal;
37
- background-color: rgba(0, 0, 0, .03);
38
- }
39
-
40
- .wpb-arg {
41
- color: #ac6600;
42
- font-weight: bold;
43
- }
44
- .wpb-arg-default {
45
- color: #ad9300;
46
- font-weight: normal;
47
- }
48
-
49
- .wpb-template {
50
- color: #80c;
51
- font-weight: bold;
52
- background-color: rgba(119, 0, 170, .03);
53
- }
54
- .wpb-magic-word {
55
- color: #d33;
56
- font-weight: bold;
57
- background-color: rgba(170, 17, 17, .03);
58
- }
59
- .wpb-invoke-module, .wpb-invoke-function {
60
- color: #dd5d33;
61
- font-weight: normal;
62
- }
63
- .wpb-parameter {
64
- color: initial;
65
- font-weight: normal;
66
- }
67
- .wpb-template > .wpb-parameter > .wpb-parameter-key,
68
- .wpb-invoke-function ~ .wpb-parameter > .wpb-parameter-key {
69
- color: #b0c;
70
- }
71
-
72
- .wpb-heading, .wpb-image-parameter {
73
- color: #0076dd;
74
- }
75
- .wpb-heading-title {
76
- color: initial;
77
- font-weight: bold;
78
- }
79
-
80
- .wpb-table, .wpb-tr, .wpb-td {
81
- color: #d08;
82
- font-weight: bold;
83
- }
84
- .wpb-table-attrs {
85
- font-weight: normal;
86
- }
87
- .wpb-table-attr > .wpb-attr-value {
88
- color: #f500d4;
89
- }
90
- .wpb-td-inner {
91
- color: initial;
92
- font-weight: normal;
93
- }
94
-
95
- .wpb-double-underscore, .wpb-hr, .wpb-quote, .wpb-list, .wpb-dd {
96
- color: #0076dd;
97
- font-weight: bold;
98
- background-color: #eee;
99
- }
100
-
101
- .wpb-link, .wpb-category, .wpb-file, .wpb-gallery-image, .wpb-imagemap-image,
102
- .wpb-ext-link, .wpb-free-ext-link {
103
- color: #000aaa;
104
- background-color: rgba(34, 17, 153, .03);
105
- }
106
- .wpb-link-text, .wpb-image-caption, .wpb-ext-link-text {
107
- color: initial;
108
- }
109
-
110
- .wpb-converter {
111
- color: #b68;
112
- font-weight: bold;
113
- }
114
- .wpb-converter-rule {
115
- font-weight: normal;
116
- }
117
- .wpb-converter-rule-from, .wpb-converter-rule-to, .wpb-converter-noconvert {
118
- color: initial;
119
- }