UNPKG

jsii-rosetta

Version:

[![Join the chat at https://cdk.Dev](https://img.shields.io/static/v1?label=Slack&message=cdk.dev&color=brightgreen&logo=slack)](https://cdk.dev) [![All Contributors](https://img.shields.io/github/all-contributors/aws/jsii/main?label=%E2%9C%A8%20All%20Con

32 lines 910 B
import * as cm from 'commonmark'; import { CommonMarkVisitor } from './markdown'; import { CodeBlock } from './types'; export type CodeReplacer = (code: CodeBlock, line: number) => CodeBlock; /** * Renderer that replaces code blocks in a MarkDown document */ export declare class ReplaceCodeTransform implements CommonMarkVisitor { private readonly replacer; constructor(replacer: CodeReplacer); code_block(node: cm.Node): void; block_quote(): void; code(): void; text(): void; softbreak(): void; linebreak(): void; emph(): void; strong(): void; html_inline(): void; html_block(): void; link(): void; image(): void; document(): void; paragraph(): void; list(): void; item(): void; heading(): void; thematic_break(): void; custom_block(): void; custom_inline(): void; } //# sourceMappingURL=replace-code-renderer.d.ts.map