Embedding Markdown

You can embed Markdown content within your Typst documents using cmarker. This is particularly useful when incorporating existing Markdown files into your Typst-based website. To render mathematical expressions, use mitex.

#import "../index.typ": template, tufted
#import "@preview/cmarker:0.1.7"
#import "@preview/mitex:0.2.6": mitex
#show: template

#let md-content = read("tufted-titmouse.md")

#let def-dict = (
image: (source, alt: none, format: auto) => figure(image(
source,
alt: alt,
format: format,
)),
)

#cmarker.render(md-content, math: mitex, scope: def-dict)

The content below is rendered from a Markdown file:

The Tufted Titmouse

The Tufted Titmouse (Baeolophus bicolor) is a small, charismatic songbird native to the deciduous forests of eastern North America. Recognizable by their distinctive grey crest, large black eyes, and rust-colored flanks, these birds are acrobatic foragers and frequent visitors to backyard feeders. During winter, they often join mixed flocks with chickadees and nuthatches. Their song is a clear, whistled peter-peter-peter.

Tufted Titmouse

We can model their population dynamics using the logistic growth equation:

where represents the population, is the intrinsic growth rate, and is the carrying capacity of their habitat.