@yozora/tokenizer-html-inline 2.0.2-alpha.0 → 2.0.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/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  <header>
4
4
  <h1 align="center">
5
- <a href="https://github.com/yozorajs/yozora/tree/main/tokenizers/html-inline#readme">@yozora/tokenizer-html-inline</a>
5
+ <a href="https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/html-inline#readme">@yozora/tokenizer-html-inline</a>
6
6
  </h1>
7
7
  <div align="center">
8
8
  <a href="https://www.npmjs.com/package/@yozora/tokenizer-html-inline">
@@ -188,53 +188,53 @@ Name | Type | Required | Default
188
188
 
189
189
  [live-examples]: https://yozora.guanghechen.com/docs/package/tokenizer-html-inline#live-examples
190
190
  [docpage]: https://yozora.guanghechen.com/docs/package/tokenizer-html-inline
191
- [homepage]: https://github.com/yozorajs/yozora/tree/main/tokenizers/html-inline#readme
191
+ [homepage]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/html-inline#readme
192
192
  [gfm-spec]: https://github.github.com/gfm
193
193
  [mdast-homepage]: https://github.com/syntax-tree/mdast
194
194
 
195
- [@yozora/ast]: https://github.com/yozorajs/yozora/tree/main/packages/ast#readme
196
- [@yozora/ast-util]: https://github.com/yozorajs/yozora/tree/main/packages/ast-util#readme
197
- [@yozora/character]: https://github.com/yozorajs/yozora/tree/main/packages/character#readme
198
- [@yozora/eslint-config]: https://github.com/yozorajs/yozora/tree/main/packages/eslint-config#readme
199
- [@yozora/core-parser]: https://github.com/yozorajs/yozora/tree/main/packages/core-parser#readme
200
- [@yozora/core-tokenizer]: https://github.com/yozorajs/yozora/tree/main/packages/core-tokenizer#readme
201
- [@yozora/invariant]: https://github.com/yozorajs/yozora/tree/main/packages/invariant#readme
202
- [@yozora/jest-for-tokenizer]: https://github.com/yozorajs/yozora/tree/main/packages/jest-for-tokenizer#readme
203
- [@yozora/parser]: https://github.com/yozorajs/yozora/tree/main/packages/parser#readme
204
- [@yozora/parser-gfm]: https://github.com/yozorajs/yozora/tree/main/packages/parser-gfm#readme
205
- [@yozora/parser-gfm-ex]: https://github.com/yozorajs/yozora/tree/main/packages/parser-gfm-ex#readme
206
- [@yozora/template-tokenizer]: https://github.com/yozorajs/yozora/tree/main/packages/template-tokenizer#readme
207
- [@yozora/tokenizer-admonition]: https://github.com/yozorajs/yozora/tree/main/tokenizers/admonition#readme
208
- [@yozora/tokenizer-autolink]: https://github.com/yozorajs/yozora/tree/main/tokenizers/autolink#readme
209
- [@yozora/tokenizer-autolink-extension]: https://github.com/yozorajs/yozora/tree/main/tokenizers/autolink-extension#readme
210
- [@yozora/tokenizer-blockquote]: https://github.com/yozorajs/yozora/tree/main/tokenizers/blockquote#readme
211
- [@yozora/tokenizer-break]: https://github.com/yozorajs/yozora/tree/main/tokenizers/break#readme
212
- [@yozora/tokenizer-definition]: https://github.com/yozorajs/yozora/tree/main/tokenizers/definition#readme
213
- [@yozora/tokenizer-delete]: https://github.com/yozorajs/yozora/tree/main/tokenizers/delete#readme
214
- [@yozora/tokenizer-ecma-import]: https://github.com/yozorajs/yozora/tree/main/tokenizers/ecma-import#readme
215
- [@yozora/tokenizer-emphasis]: https://github.com/yozorajs/yozora/tree/main/tokenizers/emphasis#readme
216
- [@yozora/tokenizer-fenced-block]: https://github.com/yozorajs/yozora/tree/main/tokenizers/fenced-block#readme
217
- [@yozora/tokenizer-fenced-code]: https://github.com/yozorajs/yozora/tree/main/tokenizers/fenced-code#readme
218
- [@yozora/tokenizer-footnote]: https://github.com/yozorajs/yozora/tree/main/tokenizers/footnote#readme
219
- [@yozora/tokenizer-footnote-definition]: https://github.com/yozorajs/yozora/tree/main/tokenizers/footnote-definition#readme
220
- [@yozora/tokenizer-footnote-reference]: https://github.com/yozorajs/yozora/tree/main/tokenizers/footnote-reference#readme
221
- [@yozora/tokenizer-heading]: https://github.com/yozorajs/yozora/tree/main/tokenizers/heading#readme
222
- [@yozora/tokenizer-html-block]: https://github.com/yozorajs/yozora/tree/main/tokenizers/html-block#readme
223
- [@yozora/tokenizer-html-inline]: https://github.com/yozorajs/yozora/tree/main/tokenizers/html-inline#readme
224
- [@yozora/tokenizer-image]: https://github.com/yozorajs/yozora/tree/main/tokenizers/image#readme
225
- [@yozora/tokenizer-image-reference]: https://github.com/yozorajs/yozora/tree/main/tokenizers/image-reference#readme
226
- [@yozora/tokenizer-indented-code]: https://github.com/yozorajs/yozora/tree/main/tokenizers/indented-code#readme
227
- [@yozora/tokenizer-inline-code]: https://github.com/yozorajs/yozora/tree/main/tokenizers/inline-code#readme
228
- [@yozora/tokenizer-inline-math]: https://github.com/yozorajs/yozora/tree/main/tokenizers/inline-math#readme
229
- [@yozora/tokenizer-link]: https://github.com/yozorajs/yozora/tree/main/tokenizers/link#readme
230
- [@yozora/tokenizer-link-reference]: https://github.com/yozorajs/yozora/tree/main/tokenizers/link-reference#readme
231
- [@yozora/tokenizer-list]: https://github.com/yozorajs/yozora/tree/main/tokenizers/list#readme
232
- [@yozora/tokenizer-math]: https://github.com/yozorajs/yozora/tree/main/tokenizers/math#readme
233
- [@yozora/tokenizer-paragraph]: https://github.com/yozorajs/yozora/tree/main/tokenizers/paragraph#readme
234
- [@yozora/tokenizer-setext-heading]: https://github.com/yozorajs/yozora/tree/main/tokenizers/setext-heading#readme
235
- [@yozora/tokenizer-table]: https://github.com/yozorajs/yozora/tree/main/tokenizers/table#readme
236
- [@yozora/tokenizer-text]: https://github.com/yozorajs/yozora/tree/main/tokenizers/text#readme
237
- [@yozora/tokenizer-thematic-break]: https://github.com/yozorajs/yozora/tree/main/tokenizers/thematic-break#readme
195
+ [@yozora/ast]: https://github.com/yozorajs/yozora/tree/release-2.x.x/packages/ast#readme
196
+ [@yozora/ast-util]: https://github.com/yozorajs/yozora/tree/release-2.x.x/packages/ast-util#readme
197
+ [@yozora/character]: https://github.com/yozorajs/yozora/tree/release-2.x.x/packages/character#readme
198
+ [@yozora/eslint-config]: https://github.com/yozorajs/yozora/tree/release-2.x.x/packages/eslint-config#readme
199
+ [@yozora/core-parser]: https://github.com/yozorajs/yozora/tree/release-2.x.x/packages/core-parser#readme
200
+ [@yozora/core-tokenizer]: https://github.com/yozorajs/yozora/tree/release-2.x.x/packages/core-tokenizer#readme
201
+ [@yozora/invariant]: https://github.com/yozorajs/yozora/tree/release-2.x.x/packages/invariant#readme
202
+ [@yozora/jest-for-tokenizer]: https://github.com/yozorajs/yozora/tree/release-2.x.x/packages/jest-for-tokenizer#readme
203
+ [@yozora/parser]: https://github.com/yozorajs/yozora/tree/release-2.x.x/packages/parser#readme
204
+ [@yozora/parser-gfm]: https://github.com/yozorajs/yozora/tree/release-2.x.x/packages/parser-gfm#readme
205
+ [@yozora/parser-gfm-ex]: https://github.com/yozorajs/yozora/tree/release-2.x.x/packages/parser-gfm-ex#readme
206
+ [@yozora/template-tokenizer]: https://github.com/yozorajs/yozora/tree/release-2.x.x/packages/template-tokenizer#readme
207
+ [@yozora/tokenizer-admonition]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/admonition#readme
208
+ [@yozora/tokenizer-autolink]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/autolink#readme
209
+ [@yozora/tokenizer-autolink-extension]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/autolink-extension#readme
210
+ [@yozora/tokenizer-blockquote]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/blockquote#readme
211
+ [@yozora/tokenizer-break]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/break#readme
212
+ [@yozora/tokenizer-definition]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/definition#readme
213
+ [@yozora/tokenizer-delete]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/delete#readme
214
+ [@yozora/tokenizer-ecma-import]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/ecma-import#readme
215
+ [@yozora/tokenizer-emphasis]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/emphasis#readme
216
+ [@yozora/tokenizer-fenced-block]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/fenced-block#readme
217
+ [@yozora/tokenizer-fenced-code]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/fenced-code#readme
218
+ [@yozora/tokenizer-footnote]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/footnote#readme
219
+ [@yozora/tokenizer-footnote-definition]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/footnote-definition#readme
220
+ [@yozora/tokenizer-footnote-reference]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/footnote-reference#readme
221
+ [@yozora/tokenizer-heading]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/heading#readme
222
+ [@yozora/tokenizer-html-block]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/html-block#readme
223
+ [@yozora/tokenizer-html-inline]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/html-inline#readme
224
+ [@yozora/tokenizer-image]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/image#readme
225
+ [@yozora/tokenizer-image-reference]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/image-reference#readme
226
+ [@yozora/tokenizer-indented-code]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/indented-code#readme
227
+ [@yozora/tokenizer-inline-code]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/inline-code#readme
228
+ [@yozora/tokenizer-inline-math]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/inline-math#readme
229
+ [@yozora/tokenizer-link]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/link#readme
230
+ [@yozora/tokenizer-link-reference]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/link-reference#readme
231
+ [@yozora/tokenizer-list]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/list#readme
232
+ [@yozora/tokenizer-math]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/math#readme
233
+ [@yozora/tokenizer-paragraph]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/paragraph#readme
234
+ [@yozora/tokenizer-setext-heading]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/setext-heading#readme
235
+ [@yozora/tokenizer-table]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/table#readme
236
+ [@yozora/tokenizer-text]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/text#readme
237
+ [@yozora/tokenizer-thematic-break]: https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/thematic-break#readme
238
238
 
239
239
  [@yozora/react-admonition]: https://github.com/yozorajs/yozora-react/tree/main/packages/admonition#readme
240
240
  [@yozora/react-blockquote]: https://github.com/yozorajs/yozora-react/tree/main/packages/blockquote#readme
@@ -1,11 +1,196 @@
1
- export * from './util/cdata';
2
- export * from './util/closing';
3
- export * from './util/comment';
4
- export * from './util/declaration';
5
- export * from './util/instruction';
6
- export * from './util/open';
7
- export { match as htmlInlineMatch } from './match';
8
- export { parse as htmlInlineParse } from './parse';
9
- export { HtmlInlineTokenizer, HtmlInlineTokenizer as default } from './tokenizer';
10
- export { uniqueName as HtmlInlineTokenizerName } from './types';
11
- export type { IThis as IHtmlInlineHookContext, IToken as IHtmlInlineToken, ITokenizerProps as IHtmlInlineTokenizerProps, } from './types';
1
+ import { INodePoint, INodeInterval } from '@yozora/character';
2
+ import { IYastTokenDelimiter, IPartialYastInlineToken, ITokenizer, IBaseInlineTokenizerProps, IMatchInlineHookCreator, IParseInlineHookCreator, BaseInlineTokenizer, IInlineTokenizer } from '@yozora/core-tokenizer';
3
+ import { RawHTMLAttribute } from '@yozora/tokenizer-html-block';
4
+ import { HtmlType, Html } from '@yozora/ast';
5
+
6
+ interface IHtmlInlineCDataData {
7
+ htmlType: 'cdata';
8
+ }
9
+ interface IHtmlInlineCDataTokenData {
10
+ htmlType: 'cdata';
11
+ }
12
+ interface IHtmlInlineCDataDelimiter extends IYastTokenDelimiter, IHtmlInlineCDataTokenData {
13
+ type: 'full';
14
+ }
15
+ /**
16
+ * A CDATA section consists of the string `<![CDATA[`, a string of characters
17
+ * not including the string `]]>`, and the string `]]>`.
18
+ *
19
+ * @param nodePoints
20
+ * @param startIndex
21
+ * @param endIndex
22
+ * @see https://github.github.com/gfm/#cdata-section
23
+ */
24
+ declare function eatHtmlInlineCDataDelimiter(nodePoints: ReadonlyArray<INodePoint>, startIndex: number, endIndex: number): IHtmlInlineCDataDelimiter | null;
25
+
26
+ interface IHtmlInlineClosingTagData {
27
+ htmlType: 'closing';
28
+ tagName: string;
29
+ }
30
+ interface IHtmlInlineClosingTokenData {
31
+ htmlType: 'closing';
32
+ tagName: INodeInterval;
33
+ }
34
+ interface IHtmlInlineClosingDelimiter extends IYastTokenDelimiter, IHtmlInlineClosingTokenData {
35
+ type: 'full';
36
+ }
37
+ /**
38
+ * A closing tag consists of the string '</', a tag name, optional whitespace,
39
+ * and the character '>'.
40
+ *
41
+ * @param nodePoints
42
+ * @param startIndex
43
+ * @param endIndex
44
+ * @see https://github.github.com/gfm/#closing-tag
45
+ */
46
+ declare function eatHtmlInlineClosingDelimiter(nodePoints: ReadonlyArray<INodePoint>, startIndex: number, endIndex: number): IHtmlInlineClosingDelimiter | null;
47
+
48
+ interface IHtmlInlineCommentData {
49
+ htmlType: 'comment';
50
+ }
51
+ interface IHtmlInlineCommentTokenData {
52
+ htmlType: 'comment';
53
+ }
54
+ interface IHtmlInlineCommentDelimiter extends IYastTokenDelimiter, IHtmlInlineCommentTokenData {
55
+ type: 'full';
56
+ }
57
+ /**
58
+ * An HTML comment consists of `<!--` + text + `-->`, where text does not start
59
+ * with `>` or `->`, does not end with `-`, and does not contain `--`.
60
+ *
61
+ * @param nodePoints
62
+ * @param startIndex
63
+ * @param endIndex
64
+ * @see https://github.github.com/gfm/#html-comment
65
+ */
66
+ declare function eatHtmlInlineCommentDelimiter(nodePoints: ReadonlyArray<INodePoint>, startIndex: number, endIndex: number): IHtmlInlineCommentDelimiter | null;
67
+
68
+ interface IHtmlInlineDeclarationData {
69
+ htmlType: 'declaration';
70
+ }
71
+ interface IHtmlInlineDeclarationTokenData {
72
+ htmlType: 'declaration';
73
+ tagName: INodeInterval;
74
+ }
75
+ interface IHtmlInlineDeclarationDelimiter extends IYastTokenDelimiter, IHtmlInlineDeclarationTokenData {
76
+ type: 'full';
77
+ }
78
+ /**
79
+ * A declaration consists of the string `<!`, a name consisting of one or more
80
+ * uppercase ASCII letters, whitespace, a string of characters not including
81
+ * the character `>`, and the character `>`.
82
+ *
83
+ * @param nodePoints
84
+ * @param startIndex
85
+ * @param endIndex
86
+ * @see https://github.github.com/gfm/#declaration
87
+ */
88
+ declare function eatHtmlInlineDeclarationDelimiter(nodePoints: ReadonlyArray<INodePoint>, startIndex: number, endIndex: number): IHtmlInlineDeclarationDelimiter | null;
89
+
90
+ /**
91
+ *
92
+ * @see https://github.github.com/gfm/#processing-instruction
93
+ */
94
+ interface IHtmlInlineInstructionData {
95
+ htmlType: 'instruction';
96
+ }
97
+ interface IHtmlInlineInstructionTokenData {
98
+ htmlType: 'instruction';
99
+ }
100
+ interface IHtmlInlineInstructionDelimiter extends IYastTokenDelimiter, IHtmlInlineInstructionTokenData {
101
+ type: 'full';
102
+ }
103
+ /**
104
+ * A processing instruction consists of the string `<?`, a string of characters
105
+ * not including the string `?>`, and the string `?>`.
106
+ *
107
+ * @param nodePoints
108
+ * @param startIndex
109
+ * @param endIndex
110
+ * @see https://github.github.com/gfm/#processing-instruction
111
+ */
112
+ declare function eatHtmlInlineInstructionDelimiter(nodePoints: ReadonlyArray<INodePoint>, startIndex: number, endIndex: number): IHtmlInlineInstructionDelimiter | null;
113
+
114
+ interface IHtmlInlineOpenTagData {
115
+ htmlType: 'open';
116
+ /**
117
+ * HTML tag name.
118
+ */
119
+ tagName: string;
120
+ /**
121
+ * HTML attributes.
122
+ */
123
+ attributes: Array<{
124
+ name: string;
125
+ value?: string;
126
+ }>;
127
+ /**
128
+ * Whether if a html tag is self closed.
129
+ */
130
+ selfClosed: boolean;
131
+ }
132
+ interface IHtmlInlineOpenTokenData {
133
+ htmlType: 'open';
134
+ tagName: INodeInterval;
135
+ attributes: RawHTMLAttribute[];
136
+ selfClosed: boolean;
137
+ }
138
+ interface IHtmlInlineOpenDelimiter extends IYastTokenDelimiter, IHtmlInlineOpenTokenData {
139
+ type: 'full';
140
+ }
141
+ /**
142
+ * An open tag consists of a '<' character, a tag name, zero or more attributes,
143
+ * optional whitespace, an optional '/' character, and a '>' character.
144
+ *
145
+ * @param nodePoints
146
+ * @param startIndex
147
+ * @param endIndex
148
+ * @see https://github.github.com/gfm/#open-tag
149
+ */
150
+ declare function eatHtmlInlineTokenOpenDelimiter(nodePoints: ReadonlyArray<INodePoint>, startIndex: number, endIndex: number): IHtmlInlineOpenDelimiter | null;
151
+
152
+ declare type T = HtmlType;
153
+ declare type INode = Html;
154
+ declare const uniqueName = "@yozora/tokenizer-html-inline";
155
+ /**
156
+ * Text between '<' and '>' that looks like an HTML tag is parsed as a raw
157
+ * HTML tag and will be rendered in HTML without escaping. Tag and attribute
158
+ * names are not limited to current HTML tags, so custom tags (and even, say,
159
+ * DocBook tags) may be used.
160
+ *
161
+ * @see https://github.github.com/gfm/#raw-html
162
+ */
163
+ declare type IToken = IPartialYastInlineToken<T> & (IHtmlInlineOpenTokenData | IHtmlInlineClosingTokenData | IHtmlInlineCommentTokenData | IHtmlInlineInstructionTokenData | IHtmlInlineDeclarationTokenData | IHtmlInlineCDataTokenData);
164
+ declare type IDelimiter = IHtmlInlineOpenDelimiter | IHtmlInlineClosingDelimiter | IHtmlInlineCommentDelimiter | IHtmlInlineInstructionDelimiter | IHtmlInlineDeclarationDelimiter | IHtmlInlineCDataDelimiter;
165
+ declare type IThis = ITokenizer;
166
+ declare type ITokenizerProps = Partial<IBaseInlineTokenizerProps>;
167
+
168
+ /**
169
+ * Text between '<' and '>' that looks like an HTML tag is parsed as a raw HTML
170
+ * tag and will be rendered in HTML without escaping. Tag and attribute names
171
+ * are not limited to current HTML tags, so custom tags (and even, say, DocBook
172
+ * tags) may be used.
173
+ *
174
+ * @see https://github.github.com/gfm/#raw-html
175
+ */
176
+ declare const match: IMatchInlineHookCreator<T, IDelimiter, IToken, IThis>;
177
+
178
+ declare const parse: IParseInlineHookCreator<T, IToken, INode, IThis>;
179
+
180
+ /**
181
+ * Lexical Analyzer for HtmlInline.
182
+ *
183
+ * Text between '<' and '>' that looks like an HTML tag is parsed as a raw HTML
184
+ * tag and will be rendered in HTML without escaping. Tag and attribute names
185
+ * are not limited to current HTML tags, so custom tags (and even, say, DocBook
186
+ * tags) may be used.
187
+ *
188
+ * @see https://github.github.com/gfm/#raw-html
189
+ */
190
+ declare class HtmlInlineTokenizer extends BaseInlineTokenizer<T, IDelimiter, IToken, INode, IThis> implements IInlineTokenizer<T, IDelimiter, IToken, INode, IThis> {
191
+ constructor(props?: ITokenizerProps);
192
+ readonly match: IMatchInlineHookCreator<T, IDelimiter, IToken, IThis>;
193
+ readonly parse: IParseInlineHookCreator<T, IToken, INode, IThis>;
194
+ }
195
+
196
+ export { HtmlInlineTokenizer, uniqueName as HtmlInlineTokenizerName, IHtmlInlineCDataData, IHtmlInlineCDataDelimiter, IHtmlInlineCDataTokenData, IHtmlInlineClosingDelimiter, IHtmlInlineClosingTagData, IHtmlInlineClosingTokenData, IHtmlInlineCommentData, IHtmlInlineCommentDelimiter, IHtmlInlineCommentTokenData, IHtmlInlineDeclarationData, IHtmlInlineDeclarationDelimiter, IHtmlInlineDeclarationTokenData, IThis as IHtmlInlineHookContext, IHtmlInlineInstructionData, IHtmlInlineInstructionDelimiter, IHtmlInlineInstructionTokenData, IHtmlInlineOpenDelimiter, IHtmlInlineOpenTagData, IHtmlInlineOpenTokenData, IToken as IHtmlInlineToken, ITokenizerProps as IHtmlInlineTokenizerProps, HtmlInlineTokenizer as default, eatHtmlInlineCDataDelimiter, eatHtmlInlineClosingDelimiter, eatHtmlInlineCommentDelimiter, eatHtmlInlineDeclarationDelimiter, eatHtmlInlineInstructionDelimiter, eatHtmlInlineTokenOpenDelimiter, match as htmlInlineMatch, parse as htmlInlineParse };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yozora/tokenizer-html-inline",
3
- "version": "2.0.2-alpha.0",
3
+ "version": "2.0.2",
4
4
  "author": {
5
5
  "name": "guanghechen",
6
6
  "url": "https://github.com/guanghechen/"
@@ -10,14 +10,14 @@
10
10
  "url": "https://github.com/yozorajs/yozora.git",
11
11
  "directory": "tokenizers/html-inline"
12
12
  },
13
- "homepage": "https://yozora.guanghechen.com/docs/package/tokenizer-html-inline",
13
+ "homepage": "https://github.com/yozorajs/yozora/tree/release-2.x.x/tokenizers/html-inline",
14
14
  "main": "lib/cjs/index.js",
15
15
  "module": "lib/esm/index.js",
16
16
  "types": "lib/types/index.d.ts",
17
17
  "source": "src/index.ts",
18
18
  "license": "MIT",
19
19
  "engines": {
20
- "node": ">= 14.15.0"
20
+ "node": ">= 16.0.0"
21
21
  },
22
22
  "files": [
23
23
  "lib/",
@@ -35,10 +35,10 @@
35
35
  "test": "cross-env TS_NODE_FILES=true jest --config ../../jest.config.js --rootDir ."
36
36
  },
37
37
  "dependencies": {
38
- "@yozora/ast": "^2.0.2-alpha.0",
39
- "@yozora/character": "^2.0.2-alpha.0",
40
- "@yozora/core-tokenizer": "^2.0.2-alpha.0",
41
- "@yozora/tokenizer-html-block": "^2.0.2-alpha.0"
38
+ "@yozora/ast": "^2.0.2",
39
+ "@yozora/character": "^2.0.2",
40
+ "@yozora/core-tokenizer": "^2.0.2",
41
+ "@yozora/tokenizer-html-block": "^2.0.2"
42
42
  },
43
- "gitHead": "430eaabd83f4a1ee29398ee1798aa4511976c38f"
43
+ "gitHead": "6911295e9eacfa29563fe93494704190e50625fd"
44
44
  }