执行过npm install命令的vue-element-admin源码
康凯
2022-05-20 aa4c235a8ca67ea8b731f90c951a465e92c0a865
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import MarkdownIt = require("..");
import State = require("../rules_core/state_core");
import Token = require("../token");
 
export = StateInline;
 
declare class StateInline extends State {
    /**
     * Stores `{ start: end }` pairs. Useful for backtrack
     * optimization of pairs parse (emphasis, strikes).
     */
    cache: { [start: number]: number };
 
    /** Emphasis-like delimiters */
    delimiters: MarkdownIt.Delimiter[];
 
    pending: string;
    pendingLevel: number;
 
    /** Index of the first character of this token. */
    pos: number;
 
    /** Index of the last character that can be used (for example the one before the end of this line). */
    posMax: number;
 
    /**
     * Push new token to "stream".
     * If pending text exists, flush it as text token.
     */
    push(type: string, tag: string, nesting: number): Token;
 
    /** Flush pending text */
    pushPending(): Token;
 
    /**
     * Scan a sequence of emphasis-like markers and determine whether
     * it can start an emphasis sequence or end an emphasis sequence.
     * @param start - position to scan from (it should point to a valid marker)
     * @param canSplitWord - determine if these markers can be found inside a word
     */
    scanDelims(start: number, canSplitWord: boolean): {
        can_open: boolean,
        can_close: boolean,
        length: number
    };
}