Skip to content
Marcos Caceres edited this page Mar 27, 2026 · 7 revisions

data-format

Applies to: <section> and other block elements

Marks the content of an element as Markdown, overriding the document's default format for that element. Use this to mix Markdown sections in an otherwise HTML document.

Usage

<section data-format="markdown">

## Introduction

This is **Markdown** content inside an HTML document.

- List item one
- List item two

</section>

Notes

  • Only supports "markdown" as a value
  • The content is processed as GitHub Flavored Markdown — headings create nested <section> elements automatically
  • For including external Markdown files, combine with data-include and data-include-format="markdown"
  • See the Markdown guide for detailed usage

Guides

Configuration options

W3C Configuration options

Linting rules

Internal properties

Handled by ReSpec for you.

Special <section> IDs

HTML elements

Custom Elements

HTML attributes

CSS Classes

Special properties

Clone this wiki locally