Metadata Comments

Description

Metadata comments allow you to specify custom ADF attributes that aren't expressible in standard Markdown syntax. They use HTML comment syntax with a specific pattern and provide a way to apply custom styling, behavior, and attributes to any element.

.md markdown syntax

Basic Syntax

<!-- adf:nodeType attributeName="value" -->
Content here

Multiple Attributes

<!-- adf:nodeType attr1="value1" attr2="value2" attr3="value3" -->
Content here

Multiple Metadata Comments

You can apply multiple metadata comments to the same element:

<!-- adf:paragraph textAlign="center" -->
<!-- adf:paragraph backgroundColor="#fff3cd" -->
This paragraph has both center alignment and yellow background.

.adf-schema.json schema

Examples

Text Alignment

Colors and Styling

Layout and Dimensions

Complex Attributes

Last updated