hugoblox.com/blocks/markdown
Markdown block preview
ContentFree · MITHugo

Markdown block

Drop in long-form prose with polished typography — the escape hatch for anything the structured blocks don't cover.

Add it to any Hugo page's sections list — no build step.

v1.0.0Version
2Options
MITLicense

Quick start

Add the Markdown block

Drop this into your page's front matter, under the sections list. Edit the values, and HugoBlox renders the block — no build step.

Add to your page's sections
- block: markdown
  content:
    title: Why Hugo Blox?
    text: Hugo Blox ships **Preact blocks**, Tailwind 4, and fast Hugo rendering. Mix Markdown, data-driven content, and components without build grief.

Overview

About the Markdown block

Beautiful typography for your content

Transform your written content into beautifully formatted, readable sections with the Markdown block - a clean, minimalist component that puts your words front and center with professional typography and perfect readability.

✨ Key Features

  • Prose Optimization: Beautiful typography with the prose class for optimal readability
  • Dark Mode Support: Automatic dark mode styling with prose-invert
  • Responsive Typography: Scales from base to large (lg:prose-xl) on bigger screens
  • Markdown Rich: Full Markdown support including links, formatting, lists, and more
  • Optional Titles: Add section headers with consistent styling
  • Center-Aligned: Content centered with optimal line length for reading
  • Emoji Support: Built-in emoji rendering for expressive content

🎯 Perfect For

  • About Pages: Tell your story with beautifully formatted text
  • Blog Content: Create rich, readable blog post sections
  • Documentation: Present technical content with professional formatting
  • Company Information: Share detailed company background and mission
  • Policy Pages: Format terms, privacy policies, and legal content
  • Long-Form Content: Any substantial text content that deserves beautiful presentation

🚀 Why Choose Markdown Block?

Reading Experience: Optimized typography that makes long-form content a pleasure to read

Flexible Content: Support for all Markdown features including links, emphasis, lists, and code

Consistent Styling: Professional typography that matches your site's design system

Accessibility First: Semantic HTML structure with proper heading hierarchy and contrast

📊 Content Benefits

  • Improved Readability: Optimal line length and spacing reduce eye strain
  • Better Engagement: Beautiful typography encourages visitors to read more
  • SEO Friendly: Clean, semantic HTML structure helps search engines understand content
  • Mobile Optimized: Responsive text sizing ensures readability on all devices

💡 Typography Science

  • Optimal Line Length: Content width designed for comfortable reading speed
  • Proper Contrast: Light and dark mode support ensures accessibility
  • Hierarchical Structure: Clear visual hierarchy guides readers through content
  • Breathing Room: Generous spacing prevents information overload

🎨 Use Cases

  • Storytelling: Share your journey, mission, or company history
  • Educational Content: Present tutorials, guides, or learning materials
  • Announcements: Communicate important updates or changes
  • Content Marketing: Create engaging blog posts and articles
  • Documentation: Technical guides, API docs, or user manuals

Perfect for bloggers, businesses, educators, and anyone who values beautiful, readable content presentation. Make your words shine with typography that respects both your message and your readers.

Reference

Configuration

Every option the Markdown block accepts, generated from its schema.

Content options

Properties set under the block's content key.

PropertyTypeDefaultDescription
titlestringSection heading (supports Markdown)
textrequiredstringMarkdown body content

Compose

Works well with

Blocks that pair naturally with Markdown on the same page.

Frequently asked

Markdown block FAQ

  • Add a "block: markdown" entry to the sections list in your page's front matter, then fill in the content fields. HugoBlox renders it automatically — copy the example config above as a starting point.

Ready to build with the Markdown block?