Lines Matching refs:text
17 export type TextToken<Type = TokenType.TEXT> = SimpleToken<Type> & { text: string };
73 export function lexify(text: string): Tokens {
74 const tokens = marked.lexer(text);
91 export function createHeadingToken(text: string, depth: number = 1): HeadingToken {
95 text,
96 tokens: [createTextToken(text)],
103 export function createTextToken(text: string): TextToken {
106 text,
118 export function createListItemToken(text: string, depth: number = 0): ListItemToken {
122 text,
123 tokens: [createTextToken(text)],
209 return this.text(token, ctx);
230 return this.indent(token.depth, '#') + ' ' + token.text + EOL.repeat(2);
263 return this.indent(ctx.indent) + token.text + EOL;
266 text(token: TextToken, ctx: RenderingContext): string { method in MarkdownRenderer
268 return this.indent(ctx.indent) + token.text;
277 const lines = token.text.split(EOL);