1 | import { type DocNode, type StringBuilder, type DocLinkTag } from '@microsoft/tsdoc';
|
2 | import { IndentedWriter } from '../utils/IndentedWriter';
|
3 | export interface IMarkdownEmitterOptions {
|
4 | }
|
5 | export interface IMarkdownEmitterContext<TOptions = IMarkdownEmitterOptions> {
|
6 | writer: IndentedWriter;
|
7 | insideTable: boolean;
|
8 | boldRequested: boolean;
|
9 | italicRequested: boolean;
|
10 | writingBold: boolean;
|
11 | writingItalic: boolean;
|
12 | options: TOptions;
|
13 | }
|
14 |
|
15 |
|
16 |
|
17 |
|
18 | export declare class MarkdownEmitter {
|
19 | emit(stringBuilder: StringBuilder, docNode: DocNode, options: IMarkdownEmitterOptions): string;
|
20 | protected getEscapedText(text: string): string;
|
21 | protected getTableEscapedText(text: string): string;
|
22 | |
23 |
|
24 |
|
25 | protected writeNode(docNode: DocNode, context: IMarkdownEmitterContext, docNodeSiblings: boolean): void;
|
26 |
|
27 | protected writeLinkTagWithCodeDestination(docLinkTag: DocLinkTag, context: IMarkdownEmitterContext): void;
|
28 |
|
29 | protected writeLinkTagWithUrlDestination(docLinkTag: DocLinkTag, context: IMarkdownEmitterContext): void;
|
30 | protected writePlainText(text: string, context: IMarkdownEmitterContext): void;
|
31 | protected writeNodes(docNodes: ReadonlyArray<DocNode>, context: IMarkdownEmitterContext): void;
|
32 | }
|
33 |
|
\ | No newline at end of file |