Fossil SCM

fossil-scm / src / wiki-rules.txt
Blame History Raw 126 lines
1
<h2>Wiki Formatting Rule Summary</h2>
2
3
<ol>
4
<li> Blank lines are paragraph breaks
5
<li> Bullets are "*" surrounded by two spaces at the beginning of a line
6
<li> Enumeration items are "#" or a digit and a "." surrounded by two
7
spaces at the beginning of a line
8
<li> Indented paragraphs begin with a tab or two spaces
9
<li> Hyperlinks in square brackets:
10
"<b>[</b><i>target</i><b>]</b>"
11
or "<b>[</b><i>target</i><b>|</b><i>label</i><b>]</b>"
12
or "<b>&lt;</b><i>URL</i><b>&gt;</b>"
13
+<li> Hyperlinks in angle brackets: "<b>&lt;</b><i>URL</i><b>&gt;</b>"
14
+<li> Markdown-style hyperlinks:
15
+ "<b>&#91;</b><i>label</i><b>&#93;(</b><i>target</i><b>)</b>"
16
<li> Most ordinary HTML works
17
+<li> Fonts: "<b>*</b><i>italic</i><b>*</b>",
18
+ "<b>**</b><i>bold</i><b>**</b>",
19
+ "<b>`</b><i>teletype</i><b>`</b>".
20
+<li> Backslash escapes: <b>\&lt;&ensp;\&#91&ensp;\*&ensp;\_&ensp;
21
+ \&gt;&ensp;\\</b>&ensp;<i>and so forth....</i>
22
<li> &lt;verbatim&gt; and &lt;nowiki&gt;
23
</ol>
24
25
<h2>Formatting Rule Details</h2>
26
27
<ol>
28
<li> <p><b>Paragraphs.</b>
29
Any sequence of one or more blank lines forms a paragraph break.
30
Centered or right-justified paragraphs are not supported by wiki markup,
31
but you can do these things if you need them using HTML.
32
33
<li> <p><b>Bullet Lists.</b>
34
A bullet list item is a line that begins with a single "*" character
35
surrounded on both sides by two or more spaces or by a tab.
36
Only a single level of bullet list is supported by wiki.
37
For nested lists, use HTML.
38
39
<li> <p><b>Enumeration Lists.</b>
40
An enumeration list item is a line that begins with a single "#"
41
character surrounded on both sides by two or more spaces or by a tab.
42
Or it can be a number and a "." (ex: "5.") surrounded on both sides
43
by two spaces or a tab.
44
Only a single level of enumeration list is supported by wiki.
45
For nested lists or for enumerations that count using letters or
46
roman numerals, use HTML.
47
48
<li> <p><b>Indented Paragraphs.</b>
49
Any paragraph that begins with two or more spaces or a tab and which
50
is not a bullet or enumeration list item is rendered indented.
51
Only a single level of indentation is supported by wiki.
52
Use HTML for deeper indentation.
53
54
<li> <p><b>Hyperlinks.</b>
55
Text within square brackets ("[...]") becomes a
56
hyperlink. The target can be a wiki page name, the artifact ID of
57
a check-in or ticket, the name of an image, a URL, or an
58
[#intermap|interwiki link] of the form
59
"<i>Tag</i><b>:</b><i>PageName</i>".
60
By default, the target is displayed as the text of the hyperlink.
61
But you can specify alternative text after the target name
62
separated by a "|" character.
63
You can also link to internal anchor names using
64
[#anchor-name], providing you have added the necessary
65
"&lt;a name='anchor-name'&gt;&lt;/a&gt;" tag to your wiki page.
66
67
+<li> <p><b>Auto-links</b>
68
+ A URL that begins with "http://" or "https://" and that is
69
+ enclosed in &lt;...&gt; functions as a hyperlink.
70
+
71
+
72
+<li> <p><b>Markdown-style hyperlinks</b>
73
+ Links of the form
74
+ "<b>[</b><i>display-text</i><b>](</b><i>target</i><b>)</b>"
75
+ show "<i>display-text</i>" on screen and make it a hyperlin
76
+ to "<i>target</i>".
77
78
<li> <p><b>HTML.</b>
79
The following standard HTML elements may be used:
80
&lt;a&gt; &lt;address&gt; &lt;article&gt; &lt;aside&gt; &lt;b&gt;
81
&lt;big&gt; &lt;blockquote&gt; &lt;br&gt; &lt;center&gt; &lt;cite&gt;
82
&lt;code&gt; &lt;col&gt; &lt;colgroup&gt; &lt;dd&gt;
83
&lt;del&gt; &lt;dfn&gt;
84
&lt;div&gt; &lt;dl&gt; &lt;dt&gt; &lt;em&gt; &lt;font&gt; &lt;footer&gt;
85
&lt;ins&gt;
86
&lt;h1&gt; &lt;h2&gt; &lt;h3&gt; &lt;h4&gt; &lt;h5&gt; &lt;h6&gt;
87
&lt;header&gt; &lt;hr&gt; &lt;i&gt; &lt;img&gt; &lt;kbd&gt; &lt;li&gt;
88
&lt;nav&gt; &lt;nobr&gt; &lt;nowiki&gt; &lt;ol&gt; &lt;p&gt; &lt;pre&gt;
89
&lt;s&gt; &lt;samp&gt; &lt;section&gt; &lt;small&gt; &lt;span&gt;
90
&lt;strike&gt; &lt;strong&gt; &lt;sub&gt; &lt;sup&gt; &lt;table&gt;
91
&lt;tbody&gt; &lt;td&gt; &lt;tfoot&gt; &lt;th&gt; &lt;thead&gt;
92
&lt;title&gt; &lt;tr&gt; &lt;tt&gt; &lt;u&gt; &lt;ul&gt; &lt;var&gt;
93
&lt;verbatim&gt;. There are two non-standard elements available:
94
&lt;verbatim&gt; and &lt;nowiki&gt;. No other elements are allowed.
95
All attributes are checked and only a few benign attributes are
96
allowed on each element. In particular, any attributes that specify
97
javascript or CSS are elided.
98
99
+<li> <p><b>Font Markup.</b>
100
+ Text enclosed within "<tt>*...*</tt>" or "<tt>_..._</tt>" is
101
+ emphasized (italic font). Text within "<tt>**...**</tt>" or
102
+ "<tt>__...__</tt>" gets strong emphasis (bold font).
103
+ Text within "<tt>`...`</tt>" is rendered literally using a
104
+ constant-width font. Special characters (ex: "&lt" or "[") within
105
+ "<tt>`...`</tt>" lose their special meaning and are rendered
106
+ literally.
107
+
108
+<li> <p><b>Backslash escapes.</b>
109
+ A backslash followed by any other character is rendered as just
110
+ the other character. The character that follows the backslash
111
+ loses any special meaning it might have had otherwise. This is
112
+ useful for escaping markup for literal display.
113
114
<li> <p><b>Special Markup.</b>
115
The &lt;nowiki&gt; tag disables all wiki formatting rules through
116
the matching &lt;/nowiki&gt; element. The &lt;verbatim&gt; tag works
117
like &lt;pre&gt; with the addition that it also disables all wiki
118
and HTML markup through the matching &lt;/verbatim&gt;.
119
Text within
120
<tt>&lt;verbatim&nbsp;type="pikchr"&gt;...&lt;/verbatim&gt;</tt>
121
is formatted using <a href="https://pikchr.org/home">Pikchr</a>.
122
</ol>
123
124
<a name="intermap"></a>
125
<h2>Interwiki Tag [/intermap|Map]</h2>
126

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button