@yozora/tokenizer-admonition 2.0.2 → 2.0.3
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/LICENSE +1 -1
- package/package.json +7 -7
- package/lib/types/match.d.ts +0 -11
- package/lib/types/parse.d.ts +0 -3
- package/lib/types/tokenizer.d.ts +0 -13
- package/lib/types/types.d.ts +0 -14
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2020-
|
|
3
|
+
Copyright (c) 2020-2022 guanghechen (me.guanghechen@gmail.com)
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yozora/tokenizer-admonition",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3",
|
|
4
4
|
"description": "Tokenizer for processing admonitions",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "guanghechen",
|
|
@@ -37,15 +37,15 @@
|
|
|
37
37
|
],
|
|
38
38
|
"scripts": {
|
|
39
39
|
"build": "cross-env NODE_ENV=production rollup -c ../../rollup.config.js",
|
|
40
|
-
"prebuild": "rimraf lib/
|
|
40
|
+
"prebuild": "rimraf lib/",
|
|
41
41
|
"prepublishOnly": "cross-env ROLLUP_SHOULD_SOURCEMAP=false yarn build",
|
|
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.3",
|
|
46
|
+
"@yozora/character": "^2.0.3",
|
|
47
|
+
"@yozora/core-tokenizer": "^2.0.3",
|
|
48
|
+
"@yozora/tokenizer-fenced-block": "^2.0.3"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "8cc8f95cfebc8d752bc3272cdd24965f540c130b"
|
|
51
51
|
}
|
package/lib/types/match.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { IMatchBlockHookCreator } from '@yozora/core-tokenizer';
|
|
2
|
-
import type { IThis, IToken, T } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* A code fence is a sequence of at least three consecutive backtick characters
|
|
5
|
-
* (`) or tildes (~). (Tildes and backticks cannot be mixed.) A fenced code
|
|
6
|
-
* block begins with a code fence, indented no more than three spaces.
|
|
7
|
-
*
|
|
8
|
-
* @see https://github.com/syntax-tree/mdast#code
|
|
9
|
-
* @see https://github.github.com/gfm/#code-fence
|
|
10
|
-
*/
|
|
11
|
-
export declare const match: IMatchBlockHookCreator<T, IToken, IThis>;
|
package/lib/types/parse.d.ts
DELETED
package/lib/types/tokenizer.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { IBlockTokenizer, IMatchBlockHookCreator, IParseBlockHookCreator } from '@yozora/core-tokenizer';
|
|
2
|
-
import FencedBlockTokenizer from '@yozora/tokenizer-fenced-block';
|
|
3
|
-
import type { INode, IThis, IToken, ITokenizerProps, T } from './types';
|
|
4
|
-
/**
|
|
5
|
-
* Lexical Analyzer for Admonition.
|
|
6
|
-
* @see https://github.com/syntax-tree/mdast#code
|
|
7
|
-
* @see https://github.github.com/gfm/#code-fence
|
|
8
|
-
*/
|
|
9
|
-
export declare class AdmonitionTokenizer extends FencedBlockTokenizer<T, INode, IThis> implements IBlockTokenizer<T, IToken, INode, IThis> {
|
|
10
|
-
constructor(props?: ITokenizerProps);
|
|
11
|
-
readonly match: IMatchBlockHookCreator<T, IToken, IThis>;
|
|
12
|
-
readonly parse: IParseBlockHookCreator<T, IToken, INode, IThis>;
|
|
13
|
-
}
|
package/lib/types/types.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { Admonition, AdmonitionType } from '@yozora/ast';
|
|
2
|
-
import type { IBaseBlockTokenizerProps, IYastBlockToken } from '@yozora/core-tokenizer';
|
|
3
|
-
import type { IFencedBlockHookContext, IFencedBlockToken } from '@yozora/tokenizer-fenced-block';
|
|
4
|
-
export declare type T = AdmonitionType;
|
|
5
|
-
export declare type INode = Admonition;
|
|
6
|
-
export declare const uniqueName = "@yozora/tokenizer-admonition";
|
|
7
|
-
export interface IToken extends IFencedBlockToken<T> {
|
|
8
|
-
/**
|
|
9
|
-
*
|
|
10
|
-
*/
|
|
11
|
-
children?: IYastBlockToken[];
|
|
12
|
-
}
|
|
13
|
-
export declare type IThis = IFencedBlockHookContext<T>;
|
|
14
|
-
export declare type ITokenizerProps = Partial<IBaseBlockTokenizerProps>;
|