@kenchan0130/markdown-to-atlassian-wiki-markup
Version:
Convert markdown to atlassian wiki markup
45 lines (44 loc) • 1.84 kB
TypeScript
import { Renderer, Slugger } from "marked";
import { AtlassianSupportLanguage } from "./language";
export declare const CodeBlockTheme: {
readonly DJango: "DJango";
readonly Emacs: "Emacs";
readonly FadeToGrey: "FadeToGrey";
readonly Midnight: "Midnight";
readonly RDark: "RDark";
readonly Eclipse: "Eclipse";
readonly Confluence: "Confluence";
};
export type CodeBlockTheme = typeof CodeBlockTheme[keyof typeof CodeBlockTheme];
export type MarkdownToAtlassianWikiMarkupOptions = {
codeBlock?: {
theme?: CodeBlockTheme;
showLineNumbers?: boolean | ((code: string, lang: AtlassianSupportLanguage) => boolean);
collapse?: boolean | ((code: string, lang: AtlassianSupportLanguage) => boolean);
};
};
export declare class AtlassianWikiMarkupRenderer extends Renderer {
private rendererOptions?;
constructor(rendererOptions?: MarkdownToAtlassianWikiMarkupOptions);
paragraph(text: string): string;
heading(text: string, level: number, _raw: string, _slugger: Slugger): string;
strong(text: string): string;
em(text: string): string;
del(text: string): string;
codespan(text: string): string;
blockquote(quote: string): string;
br(): string;
hr(): string;
link(href: string, title: string | null, text: string): string;
list(body: string, ordered: boolean, _start: number | ""): string;
listitem(body: string): string;
checkbox(_checked: boolean): string;
image(href: string, title: string | null, text: string): string;
table(header: string, body: string): string;
tablerow(content: string): string;
tablecell(content: string, flags: {
header: boolean;
align: "center" | "left" | "right" | null;
}): string;
code(code: string, language: string | undefined, _isEscaped: boolean): string;
}