@yozora/tokenizer-admonition 2.0.0-alpha.2 → 2.0.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/README.md +3 -3
- package/lib/types/types.d.ts +2 -2
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -180,7 +180,7 @@ Name | Type | Required | Default
|
|
|
180
180
|
### Node Type
|
|
181
181
|
|
|
182
182
|
```typescript
|
|
183
|
-
export interface Admonition extends
|
|
183
|
+
export interface Admonition extends Parent<'admonition'> {
|
|
184
184
|
type: 'admonition'
|
|
185
185
|
/**
|
|
186
186
|
* Keyword of an admonition.
|
|
@@ -189,11 +189,11 @@ export interface Admonition extends YastParent<'admonition'> {
|
|
|
189
189
|
/**
|
|
190
190
|
* Admonition title.
|
|
191
191
|
*/
|
|
192
|
-
title:
|
|
192
|
+
title: Node[]
|
|
193
193
|
/**
|
|
194
194
|
* Admonition body.
|
|
195
195
|
*/
|
|
196
|
-
children:
|
|
196
|
+
children: Node[]
|
|
197
197
|
}
|
|
198
198
|
```
|
|
199
199
|
|
package/lib/types/types.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Admonition, AdmonitionType } from '@yozora/ast';
|
|
2
2
|
import type { IBaseBlockTokenizerProps, IYastBlockToken } from '@yozora/core-tokenizer';
|
|
3
3
|
import type { IFencedBlockHookContext, IFencedBlockToken } from '@yozora/tokenizer-fenced-block';
|
|
4
4
|
export declare type T = AdmonitionType;
|
|
5
|
-
export declare type INode =
|
|
5
|
+
export declare type INode = Admonition;
|
|
6
6
|
export declare const uniqueName = "@yozora/tokenizer-admonition";
|
|
7
7
|
export interface IToken extends IFencedBlockToken<T> {
|
|
8
8
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yozora/tokenizer-admonition",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "Tokenizer for processing admonitions",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "guanghechen",
|
|
@@ -42,10 +42,10 @@
|
|
|
42
42
|
"test": "cross-env TS_NODE_FILES=true jest --config ../../jest.config.js --rootDir ."
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@yozora/ast": "^2.0.
|
|
46
|
-
"@yozora/character": "^2.0.
|
|
47
|
-
"@yozora/core-tokenizer": "^2.0.
|
|
48
|
-
"@yozora/tokenizer-fenced-block": "^2.0.
|
|
45
|
+
"@yozora/ast": "^2.0.1",
|
|
46
|
+
"@yozora/character": "^2.0.1",
|
|
47
|
+
"@yozora/core-tokenizer": "^2.0.1",
|
|
48
|
+
"@yozora/tokenizer-fenced-block": "^2.0.1"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "3aea33091e402bd6c7754d91d549e8d648475073"
|
|
51
51
|
}
|