Skip to Content
Anuma SDKReactPdf ExportexportMarkdownToPdf

exportMarkdownToPdf

exportMarkdownToPdf(markdown: string, options?: PdfExportOptions): Promise<Blob>

Defined in: src/lib/pdf-export.ts:407 

Convert a markdown string to a PDF. No DOM required.

Uses marked to tokenize the markdown and jsPDF to render block-level elements (headings, paragraphs, code blocks, lists, blockquotes, tables, horizontal rules). Inline formatting (bold/italic) within paragraphs is stripped in v1.

Parameters

ParameterType

markdown

string

options?

PdfExportOptions

Returns

Promise<Blob>

Last updated on