---
description: Basic qmd generation helpers (experimental)
order: 15
output-file: qmd.html
title: qmd

---
<!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->

---

[source](https://github.com/AnswerDotAI/nbdev/blob/main/nbdev/qmd.py#L17)

### meta

```python
def meta(
    md, # Markdown to add meta to
    classes=None, # List of CSS classes to add
    style=None, # Dict of CSS styles to add
    **kwargs
):
```

*A metadata section for qmd div in `{}`*

---

[source](https://github.com/AnswerDotAI/nbdev/blob/main/nbdev/qmd.py#L34)

### div

```python
def div(
    txt, # Markdown to add meta to
    classes=None, # List of CSS classes to add
    style=None, # Dict of CSS styles to add
    **kwargs
):
```

*A qmd div with optional metadata section*

---

[source](https://github.com/AnswerDotAI/nbdev/blob/main/nbdev/qmd.py#L44)

### img

```python
def img(
    fname, # Image to link to
    classes=None, # List of CSS classes to add
    style=None, # Dict of CSS styles to add
    height=None, # Height attribute
    relative=None, # Tuple of (position,px)
    link:bool=False, # Hyperlink to this image
    **kwargs
):
```

*A qmd image*

---

[source](https://github.com/AnswerDotAI/nbdev/blob/main/nbdev/qmd.py#L64)

### btn

```python
def btn(
    txt, # Button text
    link, # Button link URL
    classes=None, # List of CSS classes to add
    style=None, # Dict of CSS styles to add
    **kwargs
):
```

*A qmd button*

---

[source](https://github.com/AnswerDotAI/nbdev/blob/main/nbdev/qmd.py#L75)

### tbl\_row

```python
def tbl_row(
    cols:list, # Auto-stringified columns to show in the row
):
```

*Create a markdown table row from `cols`*

---

[source](https://github.com/AnswerDotAI/nbdev/blob/main/nbdev/qmd.py#L82)

### tbl\_sep

```python
def tbl_sep(
    sizes:int | list=3, # List of column sizes, or single `int` if all sizes the same
):
```

*Create a markdown table separator with relative column size `sizes`*
