qmd

Basic qmd generation helpers (experimental)

source

meta

 meta (md, classes=None, style=None, **kwargs)

A metadata section for qmd div in {}

Type Default Details
md Markdown to add meta to
classes NoneType None List of CSS classes to add
style NoneType None Dict of CSS styles to add
kwargs

source

div

 div (txt, classes=None, style=None, **kwargs)

A qmd div with optional metadata section

Type Default Details
txt Markdown to add meta to
classes NoneType None List of CSS classes to add
style NoneType None Dict of CSS styles to add
kwargs

source

img

 img (fname, classes=None, style=None, height=None, relative=None,
      link=False, **kwargs)

A qmd image

Type Default Details
fname Image to link to
classes NoneType None List of CSS classes to add
style NoneType None Dict of CSS styles to add
height NoneType None Height attribute
relative NoneType None Tuple of (position,px)
link bool False Hyperlink to this image
kwargs

source

btn

 btn (txt, link, classes=None, style=None, **kwargs)

A qmd button

Type Default Details
txt Button text
link Button link URL
classes NoneType None List of CSS classes to add
style NoneType None Dict of CSS styles to add
kwargs

source

tbl_row

 tbl_row (cols:list)

Create a markdown table row from cols

Type Details
cols list Auto-stringified columns to show in the row

source

tbl_sep

 tbl_sep (sizes:int|list=3)

Create a markdown table separator with relative column size sizes

Type Default Details
sizes int | list 3 List of column sizes, or single int if all sizes the same