MDER.PRO

Block Types Reference

Every MDER document is composed of blocks — discrete content units rendered in order. Each block has a type, content, optional props, and an ID. MDER supports 11 block types.

Block Schema

block structurejson
{
  "id": "blk_1",
  "type": "markdown",
  "content": "Your content here",
  "props": {},
  "order": 0
}
ParameterTypeRequiredDescription
idstringRequiredUnique identifier within the document (max 64 chars)
typestringRequiredOne of the 11 supported block types
contentstringRequiredBlock content — format depends on type (max 1MB)
propsobjectOptionalType-specific properties that control rendering
ordernumberOptionalDisplay order (0-based). Blocks without order use array position.

markdown

The most versatile block type. Supports full GitHub Flavored Markdown including tables, task lists, strikethrough, autolinks, and more. If unsure which block to use, use markdown.

Props: None required.

Introduction

This project improves developer experience with a streamlined API.

Key Features

  • Auto-expiring links
  • Password protection
  • View tracking

code

Source code with syntax highlighting, optional line numbers, and file name display. Supports 200+ languages via Prism.js.

ParameterTypeRequiredDescription
languagestringOptional ("text")Language for syntax highlighting (e.g. "python", "typescript")
filenamestringOptionalFile name displayed as a header above the code
line_numbersbooleanOptional (true)Show line numbers
highlight_linesnumber[]OptionalLine numbers to highlight
publish.py
import httpx

client = httpx.Client(
    base_url="https://api.mder.pro",
    headers={"Authorization": f"Bearer {API_KEY}"}
)

response = client.post("/v1/documents", json={
    "title": "My Report",
    "content": "# Hello World"
})

image

Display an image with optional caption and alignment. The image URL must be publicly accessible.

ParameterTypeRequiredDescription
urlstringRequiredImage URL (must be publicly accessible)
altstringOptionalAlt text for accessibility
captionstringOptionalCaption displayed below the image
widthnumberOptionalDisplay width in pixels
heightnumberOptionalDisplay height in pixels
alignmentstringOptional ("center")"left", "center", or "right"
examplejson
{
  "id": "chart",
  "type": "image",
  "content": "Revenue growth chart",
  "props": {
    "url": "https://charts.example.com/revenue-q1.png",
    "caption": "Figure 1: Revenue Growth — Q1 2026",
    "alignment": "center"
  }
}

table

Structured tabular data. Content uses pipe-separated rows. The first row is treated as headers unless the headers prop is specified.

ParameterTypeRequiredDescription
headersstring[]OptionalOverride headers (content starts at data rows)
captionstringOptionalTable caption/title
stripedbooleanOptional (false)Alternate row background colors
alignmentstring[]OptionalPer-column alignment: "left", "center", "right"

Weekly Metrics

MetricThis WeekLast WeekChange
Revenue$52k$48k+8%
Users1,2401,180+5%
Churn1.8%2.1%-14%

heading

Explicit section heading with anchor link support. Use when you need precise control over heading levels and anchor IDs. For simple headings, use # syntax inside markdown blocks.

ParameterTypeRequiredDescription
levelnumberRequiredHeading level: 1-6
anchorstringOptionalCustom anchor ID for linking

Getting Started

callout

Highlighted informational box with type-based styling. Supports markdown content inside.

ParameterTypeRequiredDescription
typestringRequired"info", "warning", "error", "success", "tip", or "note"
titlestringOptionalCallout title/header
collapsiblebooleanOptional (false)Whether the callout can be collapsed

⚠️ Save Your API Key

The API key is only shown once at creation. Store it securely.

Deployment Complete

Deployment completed in 2m 34s.

  • 3 services updated
  • 0 errors

divider

A horizontal rule / section separator. Content can be empty.


quote

A styled block quotation. Supports markdown content.

The best way to predict the future is to invent it.

— Alan Kay

list

Structured list with ordered, unordered, or checklist styles. One item per line. For simple lists, prefer - item syntax in markdown blocks.

ParameterTypeRequiredDescription
stylestringRequired"ordered", "unordered", or "checklist"
startnumberOptional (1)Starting number for ordered lists
  • Set up API key
  • Create first document
  • Configure MCP server
  • Deploy to production
  1. Register at mder.pro
  2. Create an API key
  3. Publish your first document
  4. Share the URL

embed

Embedded external content via iframe. Use for YouTube videos, Figma designs, interactive charts, etc.

ParameterTypeRequiredDescription
urlstringRequiredURL to embed
captionstringOptionalCaption below the embed
widthnumberOptional (800)Width for aspect ratio
heightnumberOptional (450)Height for aspect ratio
providerstringOptionalProvider name (e.g. "youtube", "figma")
examplejson
{
  "id": "video",
  "type": "embed",
  "content": "Product demo video",
  "props": {
    "url": "https://www.youtube.com/embed/dQw4w9WgXcQ",
    "caption": "MDER.PRO Product Demo",
    "provider": "youtube"
  }
}

html

Raw HTML content. Use for custom widgets, badges, or SVG graphics. Sanitized by default.

ParameterTypeRequiredDescription
sanitizebooleanOptional (true)Strip scripts and event handlers

⚠️ Security

HTML blocks with sanitize: true (default) strip <script> tags and event handlers. For untrusted content, always leave sanitization enabled.
v2.1.0Stable

Quick Reference Table

TypeContent FormatKey PropsUse Case
markdownGFM MarkdownGeneral rich text
codeSource codelanguage, filenameCode snippets
imageAlt text / descurl, caption, alignmentScreenshots, diagrams
tablePipe-separated rowsheaders, striped, captionData tables
headingHeading textlevel, anchorSection headers
calloutMarkdowntype, titleNotices, warnings
dividerEmptySection separators
quoteMarkdownBlock quotes
listOne item per linestyleLists, checklists
embedFallback URLurl, width, heightYouTube, Figma
htmlHTML stringsanitizeCustom widgets