Skip to content

Search the guides, deployment pages, and API reference.

@pitlane/content/satteri

Sätteri plugins that Markdown and MDX entry bodies need: headings collects the heading list render() returns, and rawStyles keeps the CSS inside a <style> element intact. With a Vite build, register both with vite-plugin-satteri; without one, render() applies them itself.

See

Content guide

Functions

  • headings. Collects every heading of a document as { depth, slug, text }, publishes the list as data.headings, and gives each heading an id matching its slug so an anchor link lands on it. A heading's text is the text it shows on the page, as visibleText reads it. On MDX the list is also appended to the tree as export const headings, so the compiled module carries its own table of contents.
  • rawStyles. Hands a <style> element's CSS to Remix as markup rather than as text, so the stylesheet survives being rendered.