Writing pages
The Markdown that ringdoc understands.
The head of a page#
A page may start with a block between --- lines:
---
title: Guide
lead: A first program.
---title is the heading of the page and lead is the sentence under it.
What is supported#
- headings
##and###(each gets an anchor and goes into the table of contents on the right); - paragraphs, bold, italic,
inline codeand links; - bullet and numbered lists;
- tables with a header row;
- quotes and notes:
> [!NOTE] text(alsoTIPandWARNING); - fenced code blocks with a language:
ring,csharp,html, or none.
Code blocks#
A fenced block with the language ring is highlighted:
func greet cName
return "Hello, " + cNameNotes#
Note
A note is a box with a title.
Tip
A tip is a green box.
Warning
A warning is a yellow box.
Tables#
| Name | What |
|---|---|
a | the first |
b | the second |
Links#
A link to another page is [Directives](directives.html), to a heading of a page is directives.html#files.