Skip to content

SevenMarkA wiki markup language

Parse, format, and render SevenMark with Rust

Quick Start ​

This example defines a release variable, uses utility macros, and repeats a named footnote:

sevenmark
{{{#let release = "8.0.0"}}}

[anchor(release-notes)]
# SevenMark [var(release)]

Today: [date]
Updated at: [datetime]
Days until launch: [dday(2026-12-31)]

{{{#table #caption="Release overview" #sortable
    [[#head [[Feature]] [[Value]]]]
    [[[[Current release]] [[[var(release)]]]]]
    [[[[Document pages]] [[[pagecount(Document)]]]]]
}}}

See note{{{#fn #name="release-note" A named footnote can be referenced more than once. }}}.
Repeat the same note{{{#fn #name="release-note" Later named references point back to the first definition. }}}.

[[Guide#installation | Jump to installation]]

[fn]

Key Features ​

Text Styling ​

  • **bold**, *italic*, __underline__, ~~strikethrough~~
  • ^^superscript^^, ,,subscript,,
  • Headings: # ## ### #### ##### ######
  • Collapsible headings: ##! Header (exclamation after #)

Block Elements ​

  • Tables: {{{#table #caption="..." #sortable #wrapper-align="right" ...}}}
  • Lists: {{{#list #type="numeric" [[Item]] }}}
  • Code: fenced block opened and closed by matching backtick runs
  • Math: inline $...$ or block $$...$$
  • CSS: raw block opened by {{{#css and closed by matching triple-brace depth
  • Quotes: {{{#quote content }}}
  • Folds: {{{#fold [[summary]] [[details]] }}}
  • NamuMark headings: = Header =, =# Folded header #=
  • NamuMark tables: || Cell 1 || Cell 2 ||
  • NamuMark wiki blocks: {{{#!wiki style="..." ... }}}
  • Images: [[file:image.png | Alt text]]
  • NamuMark images: [[파일:image.png|width=120&height=80]]
  • Linked images: [[#url="https://example.com" || file:image.png | Alt text]]
  • External links: [[https://example.com | Link text]]
  • Wiki pages: [[PageName | Link text]]
  • Stable document IDs: [[id:019a0000-0000-7000-8000-000000000001 | Link text]]
  • Named child scopes: [[name:document:019a0000-0000-7000-8000-000000000002:PageName]]
  • Fragment links: [[PageName#section-id | Jump]] or [[#section-id | Jump]]
  • Theme-aware media: [[#theme="dark" || file:logo.svg | Dark logo]]

Wiki Features ​

  • Include: {{{#include PageName }}} or {{{#include #namespace="Document" PageName }}}
  • Category: {{{#category Category Name }}}
  • NamuMark category: [[분류:Category Name]]
  • Redirect: {{{#redirect TargetPage }}}

Bare titles refer to the root scope. A parent scope defines identity; it does not grant inherited access. The host supplies current authorization decisions for links, includes, redirects, categories, and File media.

Advanced Features ​

  • Comments: /* multiline */
  • Macros: [toc], [now], [date], [datetime], [dday(1990-01-01)], [pagecount], [pagecount(Document)], [anchor(name)], [age(1990-01-01)], [var(name)], [br], [clear], [fn]
  • NamuMark input forms (parsed into the canonical AST): [각주], [footnote], [clearfix], [math(...)], [include(...)], [ruby(...)], [youtube(...)], [vimeo(...)], [nicovideo(...)], [spotify(...)]
  • Variables: {{{#let key = "val"}}} + {{{#expr key}}}
  • Footnotes: {{{#fn #display="*" Note}}} and reusable named footnotes with {{{#fn #name="api" Note}}}
  • Template inputs: {{{#param title: String = "Item"}}}
  • Conditions: {{{#if x == "value" :: content }}} and {{{#else :: alternative }}}
  • Iteration: {{{#for item in items :: content }}}
  • Expressions: checked arithmetic, Decimal values, Lists, Records, Bool operators, null coalescing, and conditional values
  • Styling parameters: #style, #color, #size, #dark-color, #dark-bgcolor, #caption, #sortable, #wrapper-align, #wrapper-width, #wrapper-style, #theme, #x, #y
  • Escaping: \*literal\*, \{\{\{not-element\}\}\}

Reference documentation ​