/** * ⚠️ Security note: `makeHtml()` output is NOT sanitized — raw HTML in the * markdown source passes through. If the markdown can contain user-generated * content, run the result through `sanitizeHtml()` (from utils) before * binding it with v-html. */ /** * Showdown configuration options */ export interface ShowdownOptions { /** Omit the default extra whiteline added to code blocks */ omitExtraWLInCodeBlocks?: boolean; /** Turn on/off generated header id */ noHeaderId?: boolean; /** Add a prefix to the generated header ids */ prefixHeaderId?: boolean | string; /** Prevent showdown from modifying the prefix */ rawPrefixHeaderId?: boolean; /** Generate header ids compatible with github style */ ghCompatibleHeaderId?: boolean; /** Remove only spaces, ' and " from generated header ids */ rawHeaderId?: boolean; /** The header blocks level start */ headerLevelStart?: number; /** Turn on/off image dimension parsing */ parseImgDimensions?: boolean; /** Turn on/off GFM autolink style */ simplifiedAutoLink?: boolean; /** Excludes trailing punctuation from links generated with autoLinking */ excludeTrailingPunctuationFromURLs?: boolean; /** Parse midword underscores as literal underscores */ literalMidWordUnderscores?: boolean; /** Parse midword asterisks as literal asterisks */ literalMidWordAsterisks?: boolean; /** Turn on/off strikethrough support */ strikethrough?: boolean; /** Turn on/off tables support */ tables?: boolean; /** Add an id to table headers */ tablesHeaderId?: boolean; /** Turn on/off GFM fenced code blocks support */ ghCodeBlocks?: boolean; /** Turn on/off GFM tasklist support */ tasklists?: boolean; /** Prevents weird effects in live previews due to incomplete input */ smoothLivePreview?: boolean; /** Try to smartly fix indentation problems */ smartIndentationFix?: boolean; /** Disable the automatic generation of header ids */ disableForced4SpacesIndentedSublists?: boolean; /** Turn on/off support for syntax highlighting of code blocks */ simpleLineBreaks?: boolean; /** Parse line breaks as
like GitHub does */ requireSpaceBeforeHeadingText?: boolean; /** Makes adding a space between # and the header text mandatory */ ghMentions?: boolean; /** Enables github @mentions */ ghMentionsLink?: string; /** Changes the link generated by @mentions */ encodeEmails?: boolean; /** Encode emails with hex entities */ openLinksInNewWindow?: boolean; /** Open all links in new windows */ backslashEscapesHTMLTags?: boolean; /** Support for HTML Tag escaping */ customizedHeaderId?: boolean; /** Enable custom header IDs using {#custom-id} syntax */ tableHeaderId?: boolean; /** Alias for tablesHeaderId */ underline?: boolean; /** Enable support for underline */ completeHTMLDocument?: boolean; /** Outputs a complete html document */ splitAdjacentBlockquotes?: boolean; /** Split adjacent blockquote blocks */ [key: string]: any; } declare const defaultOptions: ShowdownOptions; /** * Internal Showdown Converter interface (simplified) */ export interface ShowdownConverter { makeHtml: (text: string) => string; makeMarkdown: (src: string, HTMLParser?: any) => string; } /** * Internal Showdown object structure (simplified) */ interface ShowdownStatic { Converter: new (options?: ShowdownOptions) => ShowdownConverter; helper: Record; subParser: ((name: string) => any) & ((name: string, func: any) => void); [key: string]: any; } declare const showdown: ShowdownStatic; export { defaultOptions, showdown }; //# sourceMappingURL=showdown.d.ts.map