Goldmark Extensions
Tables (GFM-style)
| Column A | Column B | Column C |
|---|---|---|
| cell | cell | cell |
| cell | cell | cell |
Strikethrough
deleted text
Footnotes
Some text with a footnote.1
Definition List
- Term 1
- Definition for term 1.
- Term 2
- Definition for term 2.
Typographer (smart punctuation)
- “double quotes” → “double quotes”
- ‘single quotes’ → ‘single quotes’
- – → en-dash
- — → em-dash
- … → ellipsis
Auto-linkify
https://example.com gets converted to a clickable link automatically.
Raw HTML (requires markup.goldmark.renderer.unsafe = true)
Raw HTML block passed through to output.
Inline HTML also works.
Render Hooks
Override default rendering by placing templates in layouts/_default/_markup/:
render-link.html— custom link renderingrender-image.html— custom image renderingrender-heading.html— custom heading renderingrender-codeblock.html— custom code block rendering
Example use: adding target="_blank" to external links, or wrapping images in a lightbox.
Standard Markdown (CommonMark)
Headings
H1
H2
H3
H4
Emphasis
bold italic bold italic
Code
Inline code and fenced blocks:
echo "Hello World"
Blockquote
Quoted text here.
Continues on next line.
Lists
- unordered item
- unordered item
- nested item
- ordered item
- ordered item
- nested ordered
Links and Images
Horizontal Rule
Task List (GFM)
- completed task
- incomplete task
-
This is the footnote content. ↩︎
Comments