@yozora/tokenizer-blockquote 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 +6 -6
- package/lib/types/match.d.ts +0 -27
- package/lib/types/parse.d.ts +0 -3
- package/lib/types/tokenizer.d.ts +0 -13
- package/lib/types/types.d.ts +0 -13
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-blockquote",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "guanghechen",
|
|
6
6
|
"url": "https://github.com/guanghechen/"
|
|
@@ -30,14 +30,14 @@
|
|
|
30
30
|
],
|
|
31
31
|
"scripts": {
|
|
32
32
|
"build": "cross-env NODE_ENV=production rollup -c ../../rollup.config.js",
|
|
33
|
-
"prebuild": "rimraf lib/
|
|
33
|
+
"prebuild": "rimraf lib/",
|
|
34
34
|
"prepublishOnly": "cross-env ROLLUP_SHOULD_SOURCEMAP=false yarn build",
|
|
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.
|
|
39
|
-
"@yozora/character": "^2.0.
|
|
40
|
-
"@yozora/core-tokenizer": "^2.0.
|
|
38
|
+
"@yozora/ast": "^2.0.3",
|
|
39
|
+
"@yozora/character": "^2.0.3",
|
|
40
|
+
"@yozora/core-tokenizer": "^2.0.3"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "8cc8f95cfebc8d752bc3272cdd24965f540c130b"
|
|
43
43
|
}
|
package/lib/types/match.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { IMatchBlockHookCreator } from '@yozora/core-tokenizer';
|
|
2
|
-
import type { IThis, IToken, T } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* A block quote marker consists of 0-3 spaces of initial indent, plus
|
|
5
|
-
* (a) the character > together with a following space, or
|
|
6
|
-
* (b) a single character > not followed by a space.
|
|
7
|
-
*
|
|
8
|
-
* The following rules define block quotes:
|
|
9
|
-
* - Basic case. If a string of lines Ls constitute a sequence of blocks Bs,
|
|
10
|
-
* then the result of prepending a block quote marker to the beginning of
|
|
11
|
-
* each line in Ls is a block quote containing Bs.
|
|
12
|
-
*
|
|
13
|
-
* - Laziness. If a string of lines Ls constitute a block quote with contents
|
|
14
|
-
* Bs, then the result of deleting the initial block quote marker from one
|
|
15
|
-
* or more lines in which the next non-whitespace character after the block
|
|
16
|
-
* quote marker is paragraph continuation text is a block quote with Bs as
|
|
17
|
-
* its content. Paragraph continuation text is text that will be parsed as
|
|
18
|
-
* part of the content of a paragraph, but does not occur at the beginning
|
|
19
|
-
* of the paragraph.
|
|
20
|
-
*
|
|
21
|
-
* - Consecutiveness. A document cannot contain two block quotes in a row
|
|
22
|
-
* unless there is a blank line between them.
|
|
23
|
-
*
|
|
24
|
-
* @see https://github.com/syntax-tree/mdast#blockquote
|
|
25
|
-
* @see https://github.github.com/gfm/#block-quotes
|
|
26
|
-
*/
|
|
27
|
-
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 { BaseBlockTokenizer } from '@yozora/core-tokenizer';
|
|
3
|
-
import type { INode, IThis, IToken, ITokenizerProps, T } from './types';
|
|
4
|
-
/**
|
|
5
|
-
* Lexical Analyzer for Blockquote.
|
|
6
|
-
* @see https://github.com/syntax-tree/mdast#blockquote
|
|
7
|
-
* @see https://github.github.com/gfm/#block-quotes
|
|
8
|
-
*/
|
|
9
|
-
export declare class BlockquoteTokenizer extends BaseBlockTokenizer<T, IToken, 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,13 +0,0 @@
|
|
|
1
|
-
import type { Blockquote, BlockquoteType } from '@yozora/ast';
|
|
2
|
-
import type { IBaseBlockTokenizerProps, IPartialYastBlockToken, ITokenizer, IYastBlockToken } from '@yozora/core-tokenizer';
|
|
3
|
-
export declare type T = BlockquoteType;
|
|
4
|
-
export declare type INode = Blockquote;
|
|
5
|
-
export declare const uniqueName = "@yozora/tokenizer-blockquote";
|
|
6
|
-
export interface IToken extends IPartialYastBlockToken<T> {
|
|
7
|
-
/**
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
children: IYastBlockToken[];
|
|
11
|
-
}
|
|
12
|
-
export declare type IThis = ITokenizer;
|
|
13
|
-
export declare type ITokenizerProps = Partial<IBaseBlockTokenizerProps>;
|