mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-08 09:37:47 +03:00
23 lines
390 B
TypeScript
23 lines
390 B
TypeScript
declare module "commonmark" {
|
|
export class Parser {
|
|
parse(input: string): unknown
|
|
}
|
|
|
|
export class HtmlRenderer {
|
|
render(ast: unknown): string
|
|
}
|
|
}
|
|
|
|
declare module "commonmark-spec" {
|
|
export interface SpecTest {
|
|
markdown: string
|
|
html: string
|
|
example: number
|
|
start_line: number
|
|
end_line: number
|
|
section: string
|
|
}
|
|
|
|
export const tests: SpecTest[]
|
|
}
|