react-native-markdown-renderer
Version:
Markdown renderer for react-native, with CommonMark spec support + adds syntax extensions & sugar (URL autolinking, typographer).
14 lines (12 loc) • 329 B
text/typescript
export default class Token {
type: string;
nesting: number;
children: Token[] | null;
block: boolean;
constructor(type: string, nesting: number = 0, children: Token[] | null = null, block: boolean = false) {
this.type = type;
this.nesting = nesting;
this.children = children;
this.block = block;
}
}