Feature
Markdown
A GFM Markdown engine with tables, footnotes, alerts and pluggable shortcodes.
Everything between the markdown tags is converted with md_to_html() after PHP runs. Common leading indentation is stripped first, so it sits neatly inside indented layout markup.
GFM essentials
| Surface | Call | Alignment |
|---|---|---|
| Tag | <markdown> block |
right |
| Data file | @content _page.md |
center |
| PHP | md_to_html($string) |
left |
Task lists, strikethrough and autolinks all work:
- ATX + Setext headings with an auto
id - Footnotes1
-
A build server
NOTE
Alerts — [!NOTE], [!TIP], [!WARNING] — render as styled callouts.
Shortcode plugins
Registered once in _lib/functions.php, then usable anywhere Markdown is parsed — a markdown block, a .md data file, or a raw md_to_html() call.
The callout shortcode
Wrapped text becomes a styled box, with an optional bold title.
Wrapped text becomes a styled box, with an optional bold title.
Ship checklist
This project also registers its own badge shortcode:
New Stable Draft-
The parser is a single ~1200-line zero-dependency PHP class.
↩