: A wiki group can be set to draw its pages with the markdown engine instead of the mediawiki-style engine. This page describes the markdown a group drawn with that engine understands. The flavor is close to the markdown used on GitHub. If your group instead uses the mediawiki-style engine, see the [[Syntax|Yioop Wiki Syntax]] page.
: A group's engine is chosen with the render engine dropdown in the group's settings. The two engines share the same tools for adding search boxes, resources, forms, and a table of contents, so the last sections below apply to both; only the everyday text formatting differs.
one sign per level:
<pre> <nowiki>
</nowiki> </pre>
: The two top levels can also be written by underlining a line of text. A row of equals signs makes a level 1 heading and a row of hyphens makes a level 2 heading:
</nowiki> </pre>
: Each heading is given an id built from its text, so it can be linked to and picked up by the table of contents.
inside a paragraph is treated as an ordinary space, so a paragraph can be wrapped over several lines in the editor and still read as one paragraph. To force a line break without starting a new paragraph, end a line with two spaces:
<pre>
<nowiki>
first line
second line
</nowiki>
</pre>
<pre>
<nowiki>
italic or italic
bold or bold
bold and italic
struck through
</nowiki>
</pre>
: A single star or underscore around a run of text makes it italic, a pair makes it bold, and three makes it both. A pair of tildes strikes text through.
front of several lines in a row quotes them as one block:
<pre> <nowiki> > a quoted line > and another </nowiki> </pre>
draws a horizontal rule:
</nowiki> </pre>
a plus sign. A numbered list is written by starting each item with a number and a period. A list is nested inside another by indenting its items:
===Bulleted Lists=== <pre> <nowiki>
</nowiki> </pre>
===Numbered Lists=== <pre> <nowiki>
</nowiki> </pre>
of its meanings beneath it after a colon. A term may carry more than one meaning:
<pre> <nowiki>
</nowiki> </pre>
line, since the line after it begins something new. Where you want a list, or a second paragraph, inside one, the same-unit mark says that the lines it holds are all the content of the thing being written, however many there are. What is inside is read as ordinary markup, so it may hold lists, paragraphs and further marks.
<pre> <nowiki>
Whether members may vote on a post.
A vote counts once per member per post.
</nowiki> </pre>
: Reading stops where the braces balance rather than at the end of a line, so the mark may run over as many lines as you need. Leave a blank line before a paragraph that is to stand on its own; without one, a line following a list item continues that item instead.
The same notation is used for a short piece of mathematics, which is drawn with MathJax:
<pre>
<nowiki>
the call printf() prints text, and x^2 + y^2 is a sum of squares
</nowiki>
</pre>
: A whole block of code is written in one of two ways. The first is to fence it between two lines of three backticks; a word after the opening fence names the language for coloring:
<pre> <nowiki>
$total = 0;
foreach ($items as $item) {
$total += $item;
}
</nowiki> </pre>
: The second is to indent every line of the block by four spaces:
<pre>
<nowiki>
total = 0;
foreach (items as item) {
total += $item;
}
</nowiki>
</pre>
address right after it in parentheses. An optional title in quotes inside the parentheses becomes the link's hover text:
<pre> <nowiki> Yioop Yioop </nowiki> </pre>
: A web address written on its own between angle brackets becomes a link to itself:
<pre> <nowiki> <https://www.seekquarry.com/> </nowiki> </pre>
: When the same address is used more than once, it can be named once and referred to by name. The name is written in a second set of square brackets after the link text, and the address is given on its own line anywhere on the page:
<pre> <nowiki> See the Yioop site and the downloads there.
</nowiki> </pre>
: To link to another wiki page in the same group, or to a page in a different group, use the address of that page as the link's address.
bracketed text becomes the image's alternative text, shown when the image cannot be drawn:
<pre>
<nowiki>
</nowiki>
</pre>
: To show an image that has been uploaded to the page as a resource, use the resource notation described in the "Adding Resources" section below.
in square brackets is placed where the note should be referred to, and the note's text is given on its own line, starting with the same marker and a colon. The notes are gathered and drawn at the foot of the page:
<pre> <nowiki> Yioop is a search engine1 you can host yourself.
</nowiki> </pre>
row is the heading row, and the row under it, made of hyphens, marks where the heading ends and sets each column's alignment. A colon on the left of a column's hyphens aligns it left, a colon on the right aligns it right, and a colon on both sides centers it:
<pre> <nowiki>
| Name | Score | Note |
|---|---|---|
| Ann | 90 | pass |
| Bob | 5 | retake |
</nowiki> </pre>
a backslash in front of it. For example, to show a star without starting italics:
<pre> <nowiki> *not italic* </nowiki> </pre>
html through to the page; angle brackets typed into the text are shown as the characters themselves. Use the markdown above, or the templates below, to format a page.
adds one to a markdown page, built from the level 2 and level 3 headings. The setting is the table of contents checkbox in the page's settings, reached from the gear link next to the page name in edit mode.
used on a mediawiki page:
<pre> <nowiki>
</nowiki> </pre>: The tag has three parts separated by vertical bars. The first part names the search index to use; default means the site's default index, and a timestamp or the word mix can be used instead. The second part sets the size of the box: small, medium, or large. The third part sets the grayed-out text shown in the empty box.
in both engines: by dragging them into the edit area, or with the select resource link in the gray box under the edit area. Doing so adds a resource tag to the page:
<pre> <nowiki> ((resource:myphoto.jpg|A description of the photo)) </nowiki> </pre>
: The full set of resource notations -- thumbnails, links to a resource's own page, comma separated value files drawn as tables or charts, and QR codes -- work the same as on a mediawiki page. See the "Adding Resources to a Page" section of the [[Syntax|Yioop Wiki Syntax]] page for the complete list.
toggle links that show and hide a block of text, the alignment and style templates, and the full set of wiki form fields -- text fields, text areas, checkboxes, radio buttons, dropdowns, captchas, and secret ballots. The page settings and page types -- standard, page alias, media list, presentation, share wall, url shortener, and template pages -- are also shared. Because these do not use markdown's everyday text formatting, they are documented once, on the [[Syntax|Yioop Wiki Syntax]] page, and apply without change to a markdown page.