Skip to content
Tartarus

Markdown Reference

Every supported element, rendered.

On this page

Text

Regular paragraph text with bold, italic, inline code, a link , an external link and strikethrough. Footnotes work too.1

A blockquote for quoting sources, spanning more than one line to show the spacing.

Lists

  • First item
  • Second item
    • Nested item
    • Another nested item
  • Third item
  1. Install the dependencies
  2. Run the build
    1. Hugo renders the HTML
    2. Pagefind indexes it
  3. Deploy public/

Table

ComponentRendered byRuntime cost
SidebarHugonone
Table of contentsHugo~1 KB observer
SearchPagefindloaded on first open
TabsAlpinenegligible

Code

javascript
export function initToc() {
  const toc = document.querySelector("[data-toc]");
  if (!toc) return;

  const observer = new IntersectionObserver((entries) => {
    for (const entry of entries) {
      entry.target.dataset.visible = entry.isIntersecting;
    }
  });
}
hugo.toml
[params]
  projectName = "Acme Docs"
  accentColor = "#0ea5e9"
text
No language, no highlighting — still gets a copy button.

Callouts

Try the keyboard

Press K to search, Esc to close.

Tabs

javascript
const docs = await fetch("/api/docs").then((r) => r.json());
typescript
const docs: Doc[] = await fetch("/api/docs").then((r) => r.json());

Headings

Third level

Content under a third-level heading appears in the table of contents.

Fourth level

Fourth-level headings are styled but excluded from the table of contents.


That horizontal rule marks the end of the sample.


  1. Rendered at the bottom of the page with a link back. ↩︎

Searching…

No results for “

Type to search the documentation.