-
-
Notifications
You must be signed in to change notification settings - Fork 419
markdown
Marcos Caceres edited this page Mar 27, 2026
·
24 revisions
ReSpec supports GitHub Flavored Markdown (GFM) for writing specification content.
var respecConfig = {
format: "markdown",
};With format: "markdown", the entire <body> is treated as Markdown. Keep all content flushed to the left — whitespace is significant in Markdown.
<section data-include="my-section.md"
data-include-format="markdown"></section>Markdown headings create nested <section> elements automatically:
## Introduction
Some text.
### Background
More text.## My Heading {#my-custom-id}An image with a title becomes a <figure> with <figcaption>:
Use triple-backtick fences with a language hint:
```js
async function fetchData() {
return await fetch("/api/data.json");
}
```For WebIDL blocks:
```webidl
[Exposed=Window]
interface Example {
undefined doThing();
};
```HTML elements and Markdown can be mixed, but require a blank line between the tag and the content:
<div class="note">
This is **Markdown** inside an HTML element.
</div>- Markdown is interpreted as GFM — standard Markdown plus tables, strikethrough, and task lists
- All ReSpec HTML features (xref, dfn panels, WebIDL, lint rules) work inside Markdown content
- To prevent auto-linking of URLs in code blocks, add
class="nolinks"to the<pre>element - Whitespace matters — keep Markdown content aligned to the left margin
💖 Support ReSpec by becoming a sponsor via Open Collective. 💖
✨ View rendered version of this documentation at https://respec.org/docs/ ✨
- Getting Started
- How Do I…
- Spec Editor's Guide
- Writing Algorithms
- WebIDL Guide
- Configuring ReSpec
- Developers Guide
- Shorthands
- addSectionLinks
- authors
- caniuse
- edDraftURI
- editors
- format (markdown)
- formerEditors
- github
- highlightVars
- isPreview
- license
- lint
- localBiblio
- logos
- maxTocLevel
- mdn
- modificationDate
- monetization
- noTOC
- otherLinks
- pluralize
- postProcess
- preProcess
- previousDiffURI
- previousMaturity
- previousPublishDate
- prevRecShortname
- prevRecURI
-
processVersion(Removed) - publishDate
- shortName
- specStatus
- subjectPrefix
- subtitle
- testSuiteURI
- xref
- additionalCopyrightHolders
-
addPatentNote(Removed) - alternateFormats
- canonicalURI
- charterDisclosureURI
- copyrightStart
- crEnd
- dark mode
- doJsonLd
- errata
- group
- implementationReportURI
- level
- noRecTrack
- prevED
- prEnd
- submissionCommentNumber
-
wg(Deprecated — usegroup) -
wgId(Deprecated — usegroup) -
wgPatentURI(Deprecated — usegroup) -
wgPublicList(Deprecated — usegroup) -
wgURI(Deprecated — usegroup)
a11ycheck-charsetcheck-internal-slotscheck-punctuationinformative-dfnlocal-refs-existno-captionless-tablesno-headingless-sectionsno-http-propsno-link-warningsno-unused-dfnsno-unused-varsprivsec-sectionwpt-tests-exist
Handled by ReSpec for you.
- conformance
- idl-index
- index
- issue-summary
- references
- tof (Table of Figures)
- data-abbr
- data-cite
- data-dfn-for
- data-dfn-type
- data-export
- data-format
- data-include
- data-include-format
- data-include-replace
- data-link-for
- data-link-type
- data-local-lt
- data-lt
- data-lt-no-plural
- data-lt-noDefault
- data-max-toc
- data-number
- data-oninclude
- data-sort
- data-tests
-
data-transform(Deprecated) - data-type
- dir
- lang