utils/node_modules/@microsoft/tsdoc/lib/parser/ParagraphSplitter.d.ts

24 lines
1.1 KiB
TypeScript
Raw Normal View History

2024-02-07 01:33:07 -05:00
import { DocSection, DocNode } from '../nodes';
/**
* The ParagraphSplitter is a secondary stage that runs after the NodeParser has constructed
* the DocComment. It splits DocParagraph nodes into multiple paragraphs by looking for
* paragraph delimiters. Following CommonMark conventions, paragraphs are delimited by
* one or more blank lines. (These lines end with SoftBreak nodes.) The blank lines are
* not discarded. Instead, they are attached to the preceding paragraph. If the DocParagraph
* starts with blank lines, they are preserved to avoid creating a paragraph containing only
* whitespace.
*/
export declare class ParagraphSplitter {
private static readonly _whitespaceRegExp;
/**
* Split all paragraphs belonging to the provided subtree.
*/
static splitParagraphs(node: DocNode): void;
/**
* Split all paragraphs belonging to the provided DocSection.
*/
static splitParagraphsForSection(docSection: DocSection): void;
private static _splitParagraph;
private static _isWhitespace;
}
//# sourceMappingURL=ParagraphSplitter.d.ts.map