@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
Functions
- headings. Collects every heading of a document as
{ depth, slug, text }, publishes the list asdata.headings, and gives each heading anidmatching its slug so an anchor link lands on it. A heading's text is the text it shows on the page, asvisibleTextreads it. On MDX the list is also appended to the tree asexport 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.