Docs / Course authoring
Course pages - structure and Markdown
A LilyChess course is made of modules, and each module contains pages. The body of a page is a single Markdown text that can also contain special tags (diagrams, resource cards, page links, videos). This page describes what you can write.
General principles
- When a page is displayed, its text is split into segments in writing order: Markdown, diagrams, resource cards and page links.
- The tags
::diagram,::repertoire,::puzzles,::game,::actionand[[page:...]]are recognized anywhere, even in the middle of a line. A tag in the middle of a paragraph splits it into two blocks, so put each tag on its own line, between two paragraphs. ::youtube{...}must always be alone on its line.- Figurine notation
[[fig:Nf3]](♘f3) is written inside the text: it does not split the paragraph (see Resources, page links and video). - A malformed tag never breaks the display (it shows up as plain text), but the server refuses to save the page.
Supported Markdown
The renderer is deliberately restricted. Raw HTML is never interpreted.
| Element | Syntax | Notes |
|---|---|---|
| Headings | # Title to ###### Title | A space is required after the #. All levels share the same size (bold). |
| Paragraphs | consecutive lines | Single line breaks are kept. A blank line separates two paragraphs. |
| Bold | **text** or __text__ | On a single line. |
| Italic | *text* or _text_ | On a single line. |
| Inline code | backticks | |
| Code block | three backticks on their own line, the code, three backticks | The language, if any, is ignored. |
| Bullet list | - item, * item or + item | No nested lists. |
| Numbered list | 1. item | Numbering is automatic. |
| Link | [text](https://...) | http:// or https:// only. |
| Image |  | https:// only. |
| Table | GitHub-style | A header row, a separator row made of dashes, then data rows. Column alignment is not applied. |
Not supported (shown as plain text): block quotes >, horizontal rules ---, strikethrough ~~, nested lists, task lists, footnotes, underlined headings, bare auto-links, backslash escapes, and bold or italic spanning several lines.
Common syntax of ::type{...} tags
::type{key="value" key2="value 2"} - Recognized types:
diagram,repertoire,puzzles,game,action. Any other type stays plain text. - The opening brace follows the type name immediately, with no space.
- Attributes are separated by spaces. Values are in double quotes; inside a value, write
\"for a quote and\\for a backslash. - Braces inside a quoted value do not close the tag. This is what allows PGN comments in the
movesattribute of a diagram. - A tag that is not closed is not a tag: it stays plain text.