---
title: "MarkdownOptions"
version: "0.9.0"
url: "https://docs.laminapdf.com/reference/sdk/interfaces/markdownoptions/"
---

# MarkdownOptions

Defined in: [packages/sdk/src/builder.ts:266](https://github.com/laudebugs/laminapdf/blob/v0.9.0/packages/sdk/src/builder.ts#L266)

Options of [Builder.markdown](/reference/sdk/classes/builder.md#markdown).

## Since

0.2.0

## Properties

### contents?

```ts
readonly contents?: number;
```

Defined in: [packages/sdk/src/builder.ts:274](https://github.com/laudebugs/laminapdf/blob/v0.9.0/packages/sdk/src/builder.ts#L274)

A contents page listing headings of levels 1 to `contents`, at the start.

***

### fonts?

```ts
readonly fonts?: MarkdownFonts;
```

Defined in: [packages/sdk/src/builder.ts:268](https://github.com/laudebugs/laminapdf/blob/v0.9.0/packages/sdk/src/builder.ts#L268)

The fonts by role; without them, Helvetica and Courier: Latin only, which PDF/UA-1 refuses (`font-not-embedded`).

***

### images?

```ts
readonly images?: Readonly<Record<string, Image>>;
```

Defined in: [packages/sdk/src/builder.ts:270](https://github.com/laudebugs/laminapdf/blob/v0.9.0/packages/sdk/src/builder.ts#L270)

The images the Markdown shows, by the target it writes (`![…](photo.jpg)` → `"photo.jpg"`). Nothing is fetched.

***

### page?

```ts
readonly page?: PageTemplate;
```

Defined in: [packages/sdk/src/builder.ts:276](https://github.com/laudebugs/laminapdf/blob/v0.9.0/packages/sdk/src/builder.ts#L276)

The pages (default A4, 56-point margins, "Page {page} of {pages}" in the footer).

***

### size?

```ts
readonly size?: number;
```

Defined in: [packages/sdk/src/builder.ts:272](https://github.com/laudebugs/laminapdf/blob/v0.9.0/packages/sdk/src/builder.ts#L272)

The body text's size in points (default 10.5); headings scale from it.
