index.html (template/layout) and a Markdown file. Gotenberg supports MathJax for math in Markdown. Your index.html must include the Go template action where the content should appear: {{ toHTML "file.md" }} (use the actual Markdown filename). See Gotenberg’s Markdown conversion for template details. Gotenberg renders the Markdown into the HTML and then converts or captures.
Convert Markdown to PDF
html and markdown can be a file path string, Buffer, or ReadStream. Add conversion options (e.g. properties, header, footer) to the same object.
Capture Markdown as screenshot
properties for image format and dimensions. See Options.