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, ::action and [[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.

ElementSyntaxNotes
Headings# Title to ###### TitleA space is required after the #. All levels share the same size (bold).
Paragraphsconsecutive linesSingle 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 codebackticks
Code blockthree backticks on their own line, the code, three backticksThe language, if any, is ignored.
Bullet list- item, * item or + itemNo nested lists.
Numbered list1. itemNumbering is automatic.
Link[text](https://...)http:// or https:// only.
Image![alt text](https://...)https:// only.
TableGitHub-styleA 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 moves attribute of a diagram.
  • A tag that is not closed is not a tag: it stays plain text.

Next