ronn-ng 0.8.1.beta.1 → 0.10.0.pre.SNAPSHOT
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES +29 -2
- data/INSTALLING.md +2 -2
- data/LICENSE.txt +1 -1
- data/README.md +2 -3
- data/Rakefile +4 -4
- data/bin/ronn +23 -11
- data/lib/ronn.rb +3 -8
- data/lib/ronn/document.rb +23 -12
- data/lib/ronn/index.rb +2 -4
- data/lib/ronn/roff.rb +14 -8
- data/lib/ronn/template.rb +1 -0
- data/man/ronn-format.7 +4 -4
- data/man/ronn.1 +9 -5
- data/man/ronn.1.ronn +10 -7
- data/ronn-ng.gemspec +13 -13
- data/test/angle_bracket_syntax.html +11 -1
- data/test/angle_bracket_syntax.ronn +10 -0
- data/test/{code_blocks.7.ronn → code_blocks.ronn} +0 -0
- data/test/definition_list_syntax.html +2 -2
- data/test/definition_list_syntax.roff +1 -1
- data/test/dots_at_line_start_test.roff +3 -3
- data/test/ellipses.roff +2 -2
- data/test/entity_encoding_test.html +20 -12
- data/test/entity_encoding_test.roff +26 -15
- data/test/entity_encoding_test.ronn +9 -0
- data/test/markdown_syntax.html +8 -10
- data/test/markdown_syntax.roff +49 -49
- data/test/middle_paragraph.roff +1 -1
- data/test/missing_spaces.roff +1 -1
- data/test/nested_list_with_code.html +6 -7
- data/test/nested_list_with_code.roff +4 -4
- data/test/ordered_list.html +8 -10
- data/test/ordered_list.roff +1 -1
- data/test/pre_block_with_quotes.roff +1 -1
- data/test/section_reference_links.roff +2 -2
- data/test/test_ronn.rb +1 -1
- data/test/underline_spacing_test.roff +1 -1
- metadata +60 -59
- data/test/url_formatting.ronn +0 -3
data/lib/ronn/template.rb
CHANGED
data/man/ronn-format.7
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
.\" generated with Ronn-NG/v0.
|
2
|
-
.\" http://github.com/apjanke/ronn-ng/tree/0.
|
3
|
-
.TH "RONN\-FORMAT" "7" "December 2018" "Ronn-NG 0.
|
1
|
+
.\" generated with Ronn-NG/v0.9.1
|
2
|
+
.\" http://github.com/apjanke/ronn-ng/tree/0.9.1
|
3
|
+
.TH "RONN\-FORMAT" "7" "December 2018" "Ronn-NG 0.9.1" "Ronn Manual"
|
4
4
|
.SH "NAME"
|
5
5
|
\fBronn\-format\fR \- manual authoring format based on Markdown
|
6
6
|
.SH "SYNOPSIS"
|
@@ -85,7 +85,7 @@ Section headings should be all uppercase and may not contain inline markup\.
|
|
85
85
|
.SH "INLINE MARKUP"
|
86
86
|
Manpages have a limited set of text formatting capabilities\. There\'s basically \fBboldface\fR and \fIitalics\fR (often displayed using \fIunderline\fR)\. Ronn uses the following bits of markdown(7) to accomplish this:
|
87
87
|
.TP
|
88
|
-
\fB`backticks`\fR (markdown compatible)
|
88
|
+
\fB\e`backticks\e`\fR (markdown compatible)
|
89
89
|
Code, flags, commands, and noun\-like things; typically displayed in in \fBboldface\fR\. All text included within \fBbackticks\fR is displayed literally; other inline markup is not processed\. HTML output: \fB<code>\fR\.
|
90
90
|
.TP
|
91
91
|
\fB**double\-stars**\fR (markdown compatible)
|
data/man/ronn.1
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
.\" generated with Ronn-NG/v0.
|
2
|
-
.\" http://github.com/apjanke/ronn-ng/tree/0.
|
3
|
-
.TH "RONN" "1" "
|
1
|
+
.\" generated with Ronn-NG/v0.9.1
|
2
|
+
.\" http://github.com/apjanke/ronn-ng/tree/0.9.1
|
3
|
+
.TH "RONN" "1" "January 2020" "Ronn-NG 0.9.1" "Ronn Manual"
|
4
4
|
.SH "NAME"
|
5
5
|
\fBronn\fR \- convert markdown files to manpages
|
6
6
|
.SH "SYNOPSIS"
|
@@ -13,6 +13,8 @@
|
|
13
13
|
\fBronn\fR \fB\-\-pipe\fR \fIfile\fR
|
14
14
|
.br
|
15
15
|
\fBronn\fR < \fIfile\fR
|
16
|
+
.br
|
17
|
+
\fBronn\fR \fB\-E\fR|\fB\-\-encoding\fR \fIencoding\fR \|\.\|\.\|\.
|
16
18
|
.SH "DESCRIPTION"
|
17
19
|
\fBRonn\fR converts textfiles to standard roff\-formatted Unix manpages or HTML\. ronn\-format(7) is based on markdown(7) but includes additional rules and syntax geared toward authoring manuals\.
|
18
20
|
.P
|
@@ -24,6 +26,8 @@ With no \fIfile\fR arguments, \fBronn\fR acts as simple filter\. Ronn source tex
|
|
24
26
|
.SH "FILES"
|
25
27
|
The \fBronn\fR command expects input to be valid ronn\-format(7) text\. Source files are typically named \fIname\fR\.\fIsection\fR\.ronn (e\.g\., \fBexample\.1\.ronn\fR)\. The \fIname\fR and \fIsection\fR should match the name and section defined in the \fIfile\fR\'s heading\.
|
26
28
|
.P
|
29
|
+
Source files must be in UTF\-8 encoding, or the encoding specified by the \fB\-E\fR/\fB\-\-encoding\fR option, regardless of the locale that \fBronn\fR is running under\.
|
30
|
+
.P
|
27
31
|
When building roff or HTML output files, destination filenames are determined by taking the basename of the input \fIfile\fR and adding the appropriate file extension (or removing the file extension in the case of roff output)\. For example, executing \fBronn example\.1\.ronn\fR generates \fBexample\.1\fR with roff output and \fBexample\.1\.html\fR with HTML output\.
|
28
32
|
.SH "OPTIONS"
|
29
33
|
These options control whether output is written to file(s), standard output, or directly to a man pager\.
|
@@ -41,6 +45,8 @@ The server respects the \fB\-\-style\fR and document attribute options (\fB\-\-m
|
|
41
45
|
\fB\-\-pipe\fR: Don\'t generate files, write generated output to standard output\. This is the default behavior when ronn source text is piped in on standard input and no \fIfile\fR arguments are provided\.
|
42
46
|
.IP "\[ci]" 4
|
43
47
|
\fB\-o\fR=\fIdirectory\fR, \fB\-\-output\-dir\fR=\fIdirectory\fR: Write generated files to the specified directory instead of the default location\.
|
48
|
+
.IP "\[ci]" 4
|
49
|
+
\fB\-E\fR=\fIencoding\fR, \fB\-\-encoding\fR=<encoding: Specify the encoding that input files are in\. Default is UTF\-8, regardless of user\'s locale settings\. Input sent to STDIN is always treated as UTF\-8, regardless of whether \fB\-E\fR is passed\.
|
44
50
|
.IP "" 0
|
45
51
|
.P
|
46
52
|
Format options control the files \fBronn\fR generates, or the output format when the \fB\-\-pipe\fR argument is specified\. When no format options are given, both \fB\-\-roff\fR and \fB\-\-html\fR are assumed\.
|
@@ -215,8 +221,6 @@ The paging program used for man pages\. This is typically set to something like
|
|
215
221
|
.TP
|
216
222
|
\fBPAGER\fR
|
217
223
|
Used instead of \fBMANPAGER\fR when \fBMANPAGER\fR is not defined\.
|
218
|
-
.SH "BUGS"
|
219
|
-
\fBRonn\fR is written in Ruby and depends on hpricot and rdiscount, extension libraries that are non\-trivial to install on some systems\. A more portable version of this program would be welcome\.
|
220
224
|
.SH "COPYRIGHT"
|
221
225
|
Ronn\-NG is Copyright (C) 2009 Ryan Tomayko \fIhttp://tomayko\.com/about\fR and (C) 2018 Andrew Janke \fIhttps://apjanke\.net\fR
|
222
226
|
.SH "SEE ALSO"
|
data/man/ronn.1.ronn
CHANGED
@@ -7,7 +7,8 @@ ronn(1) -- convert markdown files to manpages
|
|
7
7
|
`ronn` `-m`|`--man` <file>...<br>
|
8
8
|
`ronn` `-S`|`--server` <file>...<br>
|
9
9
|
`ronn` `--pipe` <file><br>
|
10
|
-
`ronn` < <file>
|
10
|
+
`ronn` < <file><br>
|
11
|
+
`ronn` `-E`|`--encoding` <encoding> ...
|
11
12
|
|
12
13
|
## DESCRIPTION
|
13
14
|
|
@@ -35,6 +36,9 @@ The `ronn` command expects input to be valid ronn-format(7) text. Source files
|
|
35
36
|
are typically named <name>.<section>.ronn (e.g., `example.1.ronn`). The <name>
|
36
37
|
and <section> should match the name and section defined in the <file>'s heading.
|
37
38
|
|
39
|
+
Source files must be in UTF-8 encoding, or the encoding specified by the
|
40
|
+
`-E`/`--encoding` option, regardless of the locale that `ronn` is running under.
|
41
|
+
|
38
42
|
When building roff or HTML output files, destination filenames are determined by
|
39
43
|
taking the basename of the input <file> and adding the appropriate file
|
40
44
|
extension (or removing the file extension in the case of roff output). For
|
@@ -78,6 +82,11 @@ directly to a man pager.
|
|
78
82
|
* `-o`=<directory>, `--output-dir`=<directory>:
|
79
83
|
Write generated files to the specified directory instead of the default
|
80
84
|
location.
|
85
|
+
|
86
|
+
* `-E`=<encoding>, `--encoding`=<encoding:
|
87
|
+
Specify the encoding that input files are in. Default is UTF-8, regardless
|
88
|
+
of user's locale settings. Input sent to STDIN is always treated as UTF-8,
|
89
|
+
regardless of whether `-E` is passed.
|
81
90
|
|
82
91
|
Format options control the files `ronn` generates, or the output format when the
|
83
92
|
`--pipe` argument is specified. When no format options are given, both `--roff`
|
@@ -298,12 +307,6 @@ under a `man/` directory:
|
|
298
307
|
* `PAGER`:
|
299
308
|
Used instead of `MANPAGER` when `MANPAGER` is not defined.
|
300
309
|
|
301
|
-
## BUGS
|
302
|
-
|
303
|
-
**Ronn** is written in Ruby and depends on hpricot and rdiscount, extension
|
304
|
-
libraries that are non-trivial to install on some systems. A more portable
|
305
|
-
version of this program would be welcome.
|
306
|
-
|
307
310
|
## COPYRIGHT
|
308
311
|
|
309
312
|
Ronn-NG is Copyright (C) 2009 Ryan Tomayko <http://tomayko.com/about> and
|
data/ronn-ng.gemspec
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'ronn-ng'
|
3
|
-
s.version = '0.
|
4
|
-
s.date = '
|
3
|
+
s.version = '0.10.0-SNAPSHOT'
|
4
|
+
s.date = '2020-10-22'
|
5
|
+
s.required_ruby_version = '>= 2.4'
|
5
6
|
|
6
7
|
s.summary = 'Builds man pages from Markdown'
|
7
8
|
s.description = 'Ronn-NG builds manuals in HTML and Unix man page format from Markdown.'
|
@@ -59,7 +60,7 @@ Gem::Specification.new do |s|
|
|
59
60
|
test/basic_document.html
|
60
61
|
test/basic_document.ronn
|
61
62
|
test/circumflexes.ronn
|
62
|
-
test/code_blocks.
|
63
|
+
test/code_blocks.ronn
|
63
64
|
test/contest.rb
|
64
65
|
test/custom_title_document.html
|
65
66
|
test/custom_title_document.ronn
|
@@ -103,7 +104,6 @@ Gem::Specification.new do |s|
|
|
103
104
|
test/titleless_document.ronn
|
104
105
|
test/underline_spacing_test.roff
|
105
106
|
test/underline_spacing_test.ronn
|
106
|
-
test/url_formatting.ronn
|
107
107
|
]
|
108
108
|
# = MANIFEST =
|
109
109
|
|
@@ -111,16 +111,16 @@ Gem::Specification.new do |s|
|
|
111
111
|
s.test_files = s.files.select { |path| path =~ /^test\/.*_test.rb/ }
|
112
112
|
|
113
113
|
s.extra_rdoc_files = %w[LICENSE.txt AUTHORS]
|
114
|
-
s.add_dependency '
|
115
|
-
s.add_dependency '
|
116
|
-
s.add_dependency '
|
117
|
-
s.
|
118
|
-
s.add_development_dependency '
|
119
|
-
s.add_development_dependency '
|
120
|
-
s.add_development_dependency '
|
121
|
-
s.add_development_dependency '
|
114
|
+
s.add_dependency 'kramdown', '~> 2.1'
|
115
|
+
s.add_dependency 'kramdown-parser-gfm', '~> 1.0.1'
|
116
|
+
s.add_dependency 'mustache', '~> 1.0'
|
117
|
+
s.add_dependency 'nokogiri', '~> 1.9', '>= 1.9.0'
|
118
|
+
s.add_development_dependency 'rack', '~> 2.2', '>= 2.2.3'
|
119
|
+
s.add_development_dependency 'rake', '~> 12.3', '>= 12.3.3'
|
120
|
+
s.add_development_dependency 'rubocop', '~> 0.88', '>= 0.88.0'
|
121
|
+
s.add_development_dependency 'sinatra', '~> 2.0', '>= 2.0.8'
|
122
|
+
s.add_development_dependency 'test-unit', '~> 3.3', '>= 3.3.6'
|
122
123
|
|
123
124
|
s.rdoc_options = ['--line-numbers', '--inline-source', '--title', 'Ronn']
|
124
125
|
s.require_paths = %w[lib]
|
125
|
-
s.rubygems_version = '1.1.1'
|
126
126
|
end
|
@@ -13,5 +13,15 @@ code block,
|
|
13
13
|
|
14
14
|
<p>or when <code><WORD></code> is enclosed in backticks.</p>
|
15
15
|
|
16
|
-
<p>or when <var>WORD</var> has a
|
16
|
+
<p>or when <var>WORD</var> has a <dot.> or <colon>.</colon></dot.></p>
|
17
|
+
|
18
|
+
<h2 id="Escaping-angle-brackets">Escaping angle brackets</h2>
|
19
|
+
|
20
|
+
<p>You can escape <angle> <brackets> with backslashes, since we're using GitHub Flavored Markdown.</p>
|
21
|
+
|
22
|
+
<p>Example:</p>
|
23
|
+
|
24
|
+
<p><code>pxzgrep</code> [<code>-p</code><n>] [<code>-V</code>] [<xzgrep options>] <pattern> <file1> <file2> [<more files>]</p>
|
25
|
+
|
26
|
+
<p>(Though really you should just put that in a fenced code block.)</p>
|
17
27
|
</div>
|
@@ -10,3 +10,13 @@ A <WORD> in angle brackets is converted to <var>WORD</var>,
|
|
10
10
|
or when `<WORD>` is enclosed in backticks.
|
11
11
|
|
12
12
|
or when <WORD> has a <dot.> or <foo:colon>.
|
13
|
+
|
14
|
+
## Escaping angle brackets
|
15
|
+
|
16
|
+
You can escape \<angle\> \<brackets\> with backslashes, since we're using GitHub Flavored Markdown.
|
17
|
+
|
18
|
+
Example:
|
19
|
+
|
20
|
+
`pxzgrep` [`-p`\<n\>] [`-V`] [\<xzgrep options\>] \<pattern\> \<file1\> \<file2\> [\<more files\>]
|
21
|
+
|
22
|
+
(Though really you should just put that in a fenced code block.)
|
File without changes
|
@@ -1,10 +1,10 @@
|
|
1
|
-
.TH "DOTS_AT_LINE_START_TEST" "" "January 1979" ""
|
1
|
+
.TH "DOTS_AT_LINE_START_TEST" "" "January 1979" ""
|
2
2
|
.SH "NAME"
|
3
3
|
\fBdots_at_line_start_test\fR
|
4
4
|
.P
|
5
|
-
There
|
5
|
+
There's a weird issue where dots at the beginning of a line generate troff warnings due to escaping\.
|
6
6
|
.P
|
7
|
-
\&\.\. let
|
7
|
+
\&\.\. let's see what happens\.
|
8
8
|
.IP "" 4
|
9
9
|
.nf
|
10
10
|
\&\. A dot on an indented line
|
data/test/ellipses.roff
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
.TH "ELLIPSES" "7" "January 1979" ""
|
1
|
+
.TH "ELLIPSES" "7" "January 1979" ""
|
2
2
|
.SH "NAME"
|
3
3
|
\fBellipses\fR \- testing ellipses
|
4
4
|
.P
|
5
5
|
Ellipses should be replaced\|\.\|\.\|\.
|
6
6
|
.P
|
7
|
-
\|\.\|\.\|\.also, they shouldn
|
7
|
+
\|\.\|\.\|\.also, they shouldn't interfere with regular dots at the beginning of a line\.
|
@@ -15,20 +15,28 @@
|
|
15
15
|
<p>Here's some special entities:</p>
|
16
16
|
|
17
17
|
<ul>
|
18
|
-
<li>&bull; •</li>
|
19
|
-
<li>&nbsp; </li>
|
20
|
-
<li>&copy; ©</li>
|
21
|
-
<li>&rdquo; ”</li>
|
22
|
-
<li>&mdash; —</li>
|
23
|
-
<li>&reg; ®</li>
|
24
|
-
<li>&sect; §</li>
|
25
|
-
<li>&ge; ≥</li>
|
26
|
-
<li>&le; ≤</li>
|
27
|
-
<li>&ne; ≠</li>
|
28
|
-
<li>&equiv; ≡</li>
|
18
|
+
<li>&bull; •</li>
|
19
|
+
<li>&nbsp; </li>
|
20
|
+
<li>&copy; ©</li>
|
21
|
+
<li>&rdquo; ”</li>
|
22
|
+
<li>&mdash; —</li>
|
23
|
+
<li>&reg; ®</li>
|
24
|
+
<li>&sect; §</li>
|
25
|
+
<li>&ge; ≥</li>
|
26
|
+
<li>&le; ≤</li>
|
27
|
+
<li>&ne; ≠</li>
|
28
|
+
<li>&equiv; ≡</li>
|
29
29
|
</ul>
|
30
30
|
|
31
|
-
|
32
31
|
<p>Here's a line that uses non-breaking spaces to force the
|
33
32
|
last few words to wrap together.</p>
|
33
|
+
|
34
|
+
<p>And stuff like this:</p>
|
35
|
+
|
36
|
+
<p>git bulk [-g] ([-a]|[-w <ws-name>]) <git command> </git></ws-name><br>
|
37
|
+
git bulk --addworkspace <ws-name> <ws-root-directory> (--from <url or file>) </url></ws-root-directory></ws-name><br>
|
38
|
+
git bulk --removeworkspace <ws-name> <br></p>
|
39
|
+
|
40
|
+
<p>Should have the <code>&lt;</code>/<code>&gt;</code> entities stay as <code>&lt;</code>/<code>&gt;</code> in HTML, but be
|
41
|
+
turned into literal brackets in the ROFF.</p>
|
34
42
|
</div>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
.TH "HELLO" "1" "January 1979" ""
|
1
|
+
.TH "HELLO" "1" "January 1979" ""
|
2
2
|
.SH "NAME"
|
3
3
|
\fBhello\fR \- hello world
|
4
4
|
.P
|
@@ -12,29 +12,40 @@ Your output <i>might</i> look like this:
|
|
12
12
|
.fi
|
13
13
|
.IP "" 0
|
14
14
|
.P
|
15
|
-
Here
|
16
|
-
.IP "\
|
17
|
-
• \
|
18
|
-
.IP "\
|
15
|
+
Here's some special entities:
|
16
|
+
.IP "\(bu" 4
|
17
|
+
• \(bu
|
18
|
+
.IP "\(bu" 4
|
19
19
|
\~
|
20
|
-
.IP "\
|
20
|
+
.IP "\(bu" 4
|
21
21
|
© \(co
|
22
|
-
.IP "\
|
22
|
+
.IP "\(bu" 4
|
23
23
|
” \(rs
|
24
|
-
.IP "\
|
24
|
+
.IP "\(bu" 4
|
25
25
|
— \(em
|
26
|
-
.IP "\
|
26
|
+
.IP "\(bu" 4
|
27
27
|
® \(rg
|
28
|
-
.IP "\
|
28
|
+
.IP "\(bu" 4
|
29
29
|
§ \(sc
|
30
|
-
.IP "\
|
30
|
+
.IP "\(bu" 4
|
31
31
|
≥ \(>=
|
32
|
-
.IP "\
|
32
|
+
.IP "\(bu" 4
|
33
33
|
≤ \(<=
|
34
|
-
.IP "\
|
34
|
+
.IP "\(bu" 4
|
35
35
|
≠ \(!=
|
36
|
-
.IP "\
|
36
|
+
.IP "\(bu" 4
|
37
37
|
≡ \(==
|
38
38
|
.IP "" 0
|
39
39
|
.P
|
40
|
-
Here
|
40
|
+
Here's a line that uses non\-breaking spaces to force the last\~few\~words\~to\~wrap\~together\.
|
41
|
+
.P
|
42
|
+
And stuff like this:
|
43
|
+
.P
|
44
|
+
git bulk [\-g] ([\-a]|[\-w
|
45
|
+
.br
|
46
|
+
git bulk \-\-addworkspace
|
47
|
+
.br
|
48
|
+
git bulk \-\-removeworkspace <ws\-name>
|
49
|
+
.br
|
50
|
+
.P
|
51
|
+
Should have the \fB<\fR/\fB>\fR entities stay as \fB<\fR/\fB>\fR in HTML, but be turned into literal brackets in the ROFF\.
|
@@ -23,3 +23,12 @@ Here's some special entities:
|
|
23
23
|
|
24
24
|
Here's a line that uses non-breaking spaces to force the
|
25
25
|
last few words to wrap together.
|
26
|
+
|
27
|
+
And stuff like this:
|
28
|
+
|
29
|
+
git bulk [-g] ([-a]|[-w <ws-name>]) <git command> <br/>
|
30
|
+
git bulk --addworkspace <ws-name> <ws-root-directory> (--from <URL or file>) <br/>
|
31
|
+
git bulk --removeworkspace <ws-name> <br/>
|
32
|
+
|
33
|
+
Should have the `<`/`>` entities stay as `<`/`>` in HTML, but be
|
34
|
+
turned into literal brackets in the ROFF.
|
data/test/markdown_syntax.html
CHANGED
@@ -602,16 +602,15 @@ on a line by itself:</p>
|
|
602
602
|
<p>That is:</p>
|
603
603
|
|
604
604
|
<ul>
|
605
|
-
<li>Square brackets containing the link identifier (optionally
|
605
|
+
<li>Square brackets containing the link identifier (optionally
|
606
606
|
indented from the left margin using up to three spaces);</li>
|
607
|
-
<li>followed by a colon;</li>
|
608
|
-
<li>followed by one or more spaces (or tabs);</li>
|
609
|
-
<li>followed by the URL for the link;</li>
|
610
|
-
<li>optionally followed by a title attribute for the link, enclosed
|
607
|
+
<li>followed by a colon;</li>
|
608
|
+
<li>followed by one or more spaces (or tabs);</li>
|
609
|
+
<li>followed by the URL for the link;</li>
|
610
|
+
<li>optionally followed by a title attribute for the link, enclosed
|
611
611
|
in double or single quotes, or enclosed in parentheses.</li>
|
612
612
|
</ul>
|
613
613
|
|
614
|
-
|
615
614
|
<p>The following three link definitions are equivalent:</p>
|
616
615
|
|
617
616
|
<pre><code>[foo]: http://example.com/ "Optional Title Here"
|
@@ -853,15 +852,14 @@ for links, allowing for two styles: <em>inline</em> and <em>reference</em>.</p>
|
|
853
852
|
<p>That is:</p>
|
854
853
|
|
855
854
|
<ul>
|
856
|
-
<li>An exclamation mark: <code>!</code>;</li>
|
857
|
-
<li>followed by a set of square brackets, containing the <code>alt</code>
|
855
|
+
<li>An exclamation mark: <code>!</code>;</li>
|
856
|
+
<li>followed by a set of square brackets, containing the <code>alt</code>
|
858
857
|
attribute text for the image;</li>
|
859
|
-
<li>followed by a set of parentheses, containing the URL or path to
|
858
|
+
<li>followed by a set of parentheses, containing the URL or path to
|
860
859
|
the image, and an optional <code>title</code> attribute enclosed in double
|
861
860
|
or single quotes.</li>
|
862
861
|
</ul>
|
863
862
|
|
864
|
-
|
865
863
|
<p>Reference-style image syntax looks like this:</p>
|
866
864
|
|
867
865
|
<pre><code>![Alt text][id]
|
data/test/markdown_syntax.roff
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
.TH "MARKDOWN" "5" "January 1979" ""
|
1
|
+
.TH "MARKDOWN" "5" "January 1979" ""
|
2
2
|
.SH "NAME"
|
3
3
|
\fBmarkdown\fR \- humane markup syntax
|
4
4
|
.SH "SYNOPSIS"
|
@@ -37,15 +37,15 @@ Inline markup like _italics_, **bold**, and `code()`\.
|
|
37
37
|
.SS "Philosophy"
|
38
38
|
Markdown is intended to be as easy\-to\-read and easy\-to\-write as is feasible\.
|
39
39
|
.P
|
40
|
-
Readability, however, is emphasized above all else\. A Markdown\-formatted document should be publishable as\-is, as plain text, without looking like it
|
40
|
+
Readability, however, is emphasized above all else\. A Markdown\-formatted document should be publishable as\-is, as plain text, without looking like it's been marked up with tags or formatting instructions\. While Markdown's syntax has been influenced by several existing text\-to\-HTML filters \-\- including Setext \fIhttp://docutils\.sourceforge\.net/mirror/setext\.html\fR, atx \fIhttp://www\.aaronsw\.com/2002/atx/\fR, Textile \fIhttp://textism\.com/tools/textile/\fR, reStructuredText \fIhttp://docutils\.sourceforge\.net/rst\.html\fR, Grutatext \fIhttp://www\.triptico\.com/software/grutatxt\.html\fR, and EtText \fIhttp://ettext\.taint\.org/doc/\fR \-\- the single biggest source of inspiration for Markdown's syntax is the format of plain text email\.
|
41
41
|
.P
|
42
|
-
To this end, Markdown
|
42
|
+
To this end, Markdown's syntax is comprised entirely of punctuation characters, which punctuation characters have been carefully chosen so as to look like what they mean\. E\.g\., asterisks around a word actually look like *emphasis*\. Markdown lists look like, well, lists\. Even blockquotes look like quoted passages of text, assuming you've ever used email\.
|
43
43
|
.SS "Inline HTML"
|
44
|
-
Markdown
|
44
|
+
Markdown's syntax is intended for one purpose: to be used as a format for \fIwriting\fR for the web\.
|
45
45
|
.P
|
46
|
-
Markdown is not a replacement for HTML, or even close to it\. Its syntax is very small, corresponding only to a very small subset of HTML tags\. The idea is \fInot\fR to create a syntax that makes it easier to insert HTML tags\. In my opinion, HTML tags are already easy to insert\. The idea for Markdown is to make it easy to read, write, and edit prose\. HTML is a \fIpublishing\fR format; Markdown is a \fIwriting\fR format\. Thus, Markdown
|
46
|
+
Markdown is not a replacement for HTML, or even close to it\. Its syntax is very small, corresponding only to a very small subset of HTML tags\. The idea is \fInot\fR to create a syntax that makes it easier to insert HTML tags\. In my opinion, HTML tags are already easy to insert\. The idea for Markdown is to make it easy to read, write, and edit prose\. HTML is a \fIpublishing\fR format; Markdown is a \fIwriting\fR format\. Thus, Markdown's formatting syntax only addresses issues that can be conveyed in plain text\.
|
47
47
|
.P
|
48
|
-
For any markup that is not covered by Markdown
|
48
|
+
For any markup that is not covered by Markdown's syntax, you simply use HTML itself\. There's no need to preface it or delimit it to indicate that you're switching from Markdown to HTML; you just use the tags\.
|
49
49
|
.P
|
50
50
|
The only restrictions are that block\-level HTML elements \-\- e\.g\. \fB<div>\fR, \fB<table>\fR, \fB<pre>\fR, \fB<p>\fR, etc\. \-\- must be separated from surrounding content by blank lines, and the start and end tags of the block should not be indented with tabs or spaces\. Markdown is smart enough not to add extra (unwanted) \fB<p>\fR tags around HTML block\-level tags\.
|
51
51
|
.P
|
@@ -64,15 +64,15 @@ This is another regular paragraph\.
|
|
64
64
|
.fi
|
65
65
|
.IP "" 0
|
66
66
|
.P
|
67
|
-
Note that Markdown formatting syntax is not processed within block\-level HTML tags\. E\.g\., you can
|
67
|
+
Note that Markdown formatting syntax is not processed within block\-level HTML tags\. E\.g\., you can't use Markdown\-style \fB*emphasis*\fR inside an HTML block\.
|
68
68
|
.P
|
69
|
-
Span\-level HTML tags \-\- e\.g\. \fB<span>\fR, \fB<cite>\fR, or \fB<del>\fR \-\- can be used anywhere in a Markdown paragraph, list item, or header\. If you want, you can even use HTML tags instead of Markdown formatting; e\.g\. if you
|
69
|
+
Span\-level HTML tags \-\- e\.g\. \fB<span>\fR, \fB<cite>\fR, or \fB<del>\fR \-\- can be used anywhere in a Markdown paragraph, list item, or header\. If you want, you can even use HTML tags instead of Markdown formatting; e\.g\. if you'd prefer to use HTML \fB<a>\fR or \fB<img>\fR tags instead of Markdown's link or image syntax, go right ahead\.
|
70
70
|
.P
|
71
71
|
Unlike block\-level HTML tags, Markdown syntax \fIis\fR processed within span\-level tags\.
|
72
72
|
.SS "Automatic Escaping for Special Characters"
|
73
73
|
In HTML, there are two characters that demand special treatment: \fB<\fR and \fB&\fR\. Left angle brackets are used to start tags; ampersands are used to denote HTML entities\. If you want to use them as literal characters, you must escape them as entities, e\.g\. \fB<\fR, and \fB&\fR\.
|
74
74
|
.P
|
75
|
-
Ampersands in particular are bedeviling for web writers\. If you want to write about
|
75
|
+
Ampersands in particular are bedeviling for web writers\. If you want to write about 'AT&T', you need to write '\fBAT&T\fR'\. You even need to escape ampersands within URLs\. Thus, if you want to link to:
|
76
76
|
.IP "" 4
|
77
77
|
.nf
|
78
78
|
http://images\.google\.com/images?num=30&q=larry+bird
|
@@ -111,7 +111,7 @@ AT&T
|
|
111
111
|
.fi
|
112
112
|
.IP "" 0
|
113
113
|
.P
|
114
|
-
Similarly, because Markdown supports \
|
114
|
+
Similarly, because Markdown supports \fIinline HTML\fR, if you use angle brackets as delimiters for HTML tags, Markdown will treat them as such\. But if you write:
|
115
115
|
.IP "" 4
|
116
116
|
.nf
|
117
117
|
4 < 5
|
@@ -130,13 +130,13 @@ However, inside Markdown code spans and blocks, angle brackets and ampersands ar
|
|
130
130
|
.SS "Paragraphs and Line Breaks"
|
131
131
|
A paragraph is simply one or more consecutive lines of text, separated by one or more blank lines\. (A blank line is any line that looks like a blank line \-\- a line containing nothing but spaces or tabs is considered blank\.) Normal paragraphs should not be indented with spaces or tabs\.
|
132
132
|
.P
|
133
|
-
The implication of the "one or more consecutive lines of text" rule is that Markdown supports "hard\-wrapped" text paragraphs\. This differs significantly from most other text\-to\-HTML formatters (including Movable Type
|
133
|
+
The implication of the "one or more consecutive lines of text" rule is that Markdown supports "hard\-wrapped" text paragraphs\. This differs significantly from most other text\-to\-HTML formatters (including Movable Type's "Convert Line Breaks" option) which translate every line break character in a paragraph into a \fB<br />\fR tag\.
|
134
134
|
.P
|
135
135
|
When you \fIdo\fR want to insert a \fB<br />\fR break tag using Markdown, you end a line with two or more spaces, then type return\.
|
136
136
|
.P
|
137
|
-
Yes, this takes a tad more effort to create a \fB<br />\fR, but a simplistic "every line break is a \fB<br />\fR" rule wouldn
|
137
|
+
Yes, this takes a tad more effort to create a \fB<br />\fR, but a simplistic "every line break is a \fB<br />\fR" rule wouldn't work for Markdown\. Markdown's email\-style \fIblockquoting\fR and multi\-paragraph \fIlist items\fR work best \-\- and look better \-\- when you format them with hard breaks\.
|
138
138
|
.SS "Headers"
|
139
|
-
Markdown supports two styles of headers, Setext \
|
139
|
+
Markdown supports two styles of headers, Setext \fIhttp://docutils\.sourceforge\.net/mirror/setext\.html\fR and atx \fIhttp://www\.aaronsw\.com/2002/atx/\fR\.
|
140
140
|
.P
|
141
141
|
Setext\-style headers are "underlined" using equal signs (for first\-level headers) and dashes (for second\-level headers)\. For example:
|
142
142
|
.IP "" 4
|
@@ -149,7 +149,7 @@ This is an H2
|
|
149
149
|
.fi
|
150
150
|
.IP "" 0
|
151
151
|
.P
|
152
|
-
Any number of underlining \fB=\fR
|
152
|
+
Any number of underlining \fB=\fR's or \fB\-\fR's will work\.
|
153
153
|
.P
|
154
154
|
Atx\-style headers use 1\-6 hash characters at the start of the line, corresponding to header levels 1\-6\. For example:
|
155
155
|
.IP "" 4
|
@@ -162,7 +162,7 @@ Atx\-style headers use 1\-6 hash characters at the start of the line, correspond
|
|
162
162
|
.fi
|
163
163
|
.IP "" 0
|
164
164
|
.P
|
165
|
-
Optionally, you may "close" atx\-style headers\. This is purely cosmetic \-\- you can use this if you think it looks better\. The closing hashes don
|
165
|
+
Optionally, you may "close" atx\-style headers\. This is purely cosmetic \-\- you can use this if you think it looks better\. The closing hashes don't even need to match the number of hashes used to open the header\. (The number of opening hashes determines the header level\.) :
|
166
166
|
.IP "" 4
|
167
167
|
.nf
|
168
168
|
# This is an H1 #
|
@@ -173,7 +173,7 @@ Optionally, you may "close" atx\-style headers\. This is purely cosmetic \-\- yo
|
|
173
173
|
.fi
|
174
174
|
.IP "" 0
|
175
175
|
.SS "Blockquotes"
|
176
|
-
Markdown uses email\-style \fB>\fR characters for blockquoting\. If you
|
176
|
+
Markdown uses email\-style \fB>\fR characters for blockquoting\. If you're familiar with quoting passages of text in an email message, then you know how to create a blockquote in Markdown\. It looks best if you hard wrap the text and put a \fB>\fR before every line:
|
177
177
|
.IP "" 4
|
178
178
|
.nf
|
179
179
|
> This is a blockquote with two paragraphs\. Lorem ipsum dolor sit amet,
|
@@ -216,7 +216,7 @@ Blockquotes can contain other Markdown elements, including headers, lists, and c
|
|
216
216
|
> 1\. This is the first list item\.
|
217
217
|
> 2\. This is the second list item\.
|
218
218
|
>
|
219
|
-
> Here
|
219
|
+
> Here's some example code:
|
220
220
|
>
|
221
221
|
> return shell_exec("echo $input | $markdown_script");
|
222
222
|
.fi
|
@@ -262,7 +262,7 @@ Ordered lists use numbers followed by periods:
|
|
262
262
|
.fi
|
263
263
|
.IP "" 0
|
264
264
|
.P
|
265
|
-
It
|
265
|
+
It's important to note that the actual numbers you use to mark the list have no effect on the HTML output Markdown produces\. The HTML Markdown produces from the above list is:
|
266
266
|
.IP "" 4
|
267
267
|
.nf
|
268
268
|
<ol>
|
@@ -291,7 +291,7 @@ or even:
|
|
291
291
|
.fi
|
292
292
|
.IP "" 0
|
293
293
|
.P
|
294
|
-
you
|
294
|
+
you'd get the exact same HTML output\. The point is, if you want to, you can use ordinal numbers in your ordered Markdown lists, so that the numbers in your source match the numbers in your published HTML\. But if you want to be lazy, you don't have to\.
|
295
295
|
.P
|
296
296
|
If you do use lazy list numbering, however, you should still start the list with the number 1\. At some point in the future, Markdown may support starting ordered lists at an arbitrary number\.
|
297
297
|
.P
|
@@ -308,7 +308,7 @@ To make lists look nice, you can wrap items with hanging indents:
|
|
308
308
|
.fi
|
309
309
|
.IP "" 0
|
310
310
|
.P
|
311
|
-
But if you want to be lazy, you don
|
311
|
+
But if you want to be lazy, you don't have to:
|
312
312
|
.IP "" 4
|
313
313
|
.nf
|
314
314
|
* Lorem ipsum dolor sit amet, consectetuer adipiscing elit\.
|
@@ -376,7 +376,7 @@ It looks nice if you indent every line of the subsequent paragraphs, but here ag
|
|
376
376
|
.nf
|
377
377
|
* This is a list item with two paragraphs\.
|
378
378
|
|
379
|
-
This is the second paragraph in the list item\. You
|
379
|
+
This is the second paragraph in the list item\. You're
|
380
380
|
only required to indent the first line\. Lorem ipsum dolor
|
381
381
|
sit amet, consectetuer adipiscing elit\.
|
382
382
|
|
@@ -384,7 +384,7 @@ sit amet, consectetuer adipiscing elit\.
|
|
384
384
|
.fi
|
385
385
|
.IP "" 0
|
386
386
|
.P
|
387
|
-
To put a blockquote within a list item, the blockquote
|
387
|
+
To put a blockquote within a list item, the blockquote's \fB>\fR delimiters need to be indented:
|
388
388
|
.IP "" 4
|
389
389
|
.nf
|
390
390
|
* A list item with a blockquote:
|
@@ -403,7 +403,7 @@ To put a code block within a list item, the code block needs to be indented \fIt
|
|
403
403
|
.fi
|
404
404
|
.IP "" 0
|
405
405
|
.P
|
406
|
-
It
|
406
|
+
It's worth noting that it's possible to trigger an ordered list by accident, by writing something like this:
|
407
407
|
.IP "" 4
|
408
408
|
.nf
|
409
409
|
1986\. What a great season\.
|
@@ -482,7 +482,7 @@ will turn into:
|
|
482
482
|
.fi
|
483
483
|
.IP "" 0
|
484
484
|
.P
|
485
|
-
Regular Markdown syntax is not processed within code blocks\. E\.g\., asterisks are just literal asterisks within a code block\. This means it
|
485
|
+
Regular Markdown syntax is not processed within code blocks\. E\.g\., asterisks are just literal asterisks within a code block\. This means it's also easy to use Markdown to write about Markdown's own syntax\.
|
486
486
|
.SS "Horizontal Rules"
|
487
487
|
You can produce a horizontal rule tag (\fB<hr />\fR) by placing three or more hyphens, asterisks, or underscores on a line by themselves\. If you wish, you may use spaces between the hyphens or asterisks\. Each of the following lines will produce a horizontal rule:
|
488
488
|
.IP "" 4
|
@@ -504,7 +504,7 @@ Markdown supports two style of links: \fIinline\fR and \fIreference\fR\.
|
|
504
504
|
.P
|
505
505
|
In both styles, the link text is delimited by [square brackets]\.
|
506
506
|
.P
|
507
|
-
To create an inline link, use a set of regular parentheses immediately after the link text
|
507
|
+
To create an inline link, use a set of regular parentheses immediately after the link text's closing square bracket\. Inside the parentheses, put the URL where you want the link to point, along with an \fIoptional\fR title for the link, surrounded in quotes\. For example:
|
508
508
|
.IP "" 4
|
509
509
|
.nf
|
510
510
|
This is [an example](http://example\.com/ "Title") inline link\.
|
@@ -524,7 +524,7 @@ title attribute\.</p>
|
|
524
524
|
.fi
|
525
525
|
.IP "" 0
|
526
526
|
.P
|
527
|
-
If you
|
527
|
+
If you're referring to a local resource on the same server, you can use relative paths:
|
528
528
|
.IP "" 4
|
529
529
|
.nf
|
530
530
|
See my [About](/about/) page for details\.
|
@@ -553,15 +553,15 @@ Then, anywhere in the document, you define your link label like this, on a line
|
|
553
553
|
.IP "" 0
|
554
554
|
.P
|
555
555
|
That is:
|
556
|
-
.IP "\
|
556
|
+
.IP "\(bu" 4
|
557
557
|
Square brackets containing the link identifier (optionally indented from the left margin using up to three spaces);
|
558
|
-
.IP "\
|
558
|
+
.IP "\(bu" 4
|
559
559
|
followed by a colon;
|
560
|
-
.IP "\
|
560
|
+
.IP "\(bu" 4
|
561
561
|
followed by one or more spaces (or tabs);
|
562
|
-
.IP "\
|
562
|
+
.IP "\(bu" 4
|
563
563
|
followed by the URL for the link;
|
564
|
-
.IP "\
|
564
|
+
.IP "\(bu" 4
|
565
565
|
optionally followed by a title attribute for the link, enclosed in double or single quotes, or enclosed in parentheses\.
|
566
566
|
.IP "" 0
|
567
567
|
.P
|
@@ -569,7 +569,7 @@ The following three link definitions are equivalent:
|
|
569
569
|
.IP "" 4
|
570
570
|
.nf
|
571
571
|
[foo]: http://example\.com/ "Optional Title Here"
|
572
|
-
[foo]: http://example\.com/
|
572
|
+
[foo]: http://example\.com/ 'Optional Title Here'
|
573
573
|
[foo]: http://example\.com/ (Optional Title Here)
|
574
574
|
.fi
|
575
575
|
.IP "" 0
|
@@ -631,9 +631,9 @@ And then define the link:
|
|
631
631
|
.fi
|
632
632
|
.IP "" 0
|
633
633
|
.P
|
634
|
-
Link definitions can be placed anywhere in your Markdown document\. I tend to put them immediately after each paragraph in which they
|
634
|
+
Link definitions can be placed anywhere in your Markdown document\. I tend to put them immediately after each paragraph in which they're used, but if you want, you can put them all at the end of your document, sort of like footnotes\.
|
635
635
|
.P
|
636
|
-
Here
|
636
|
+
Here's an example of reference links in action:
|
637
637
|
.IP "" 4
|
638
638
|
.nf
|
639
639
|
I get 10 times more traffic from [Google] [1] than from
|
@@ -667,7 +667,7 @@ or <a href="http://search\.msn\.com/" title="MSN Search">MSN</a>\.</p>
|
|
667
667
|
.fi
|
668
668
|
.IP "" 0
|
669
669
|
.P
|
670
|
-
For comparison, here is the same paragraph written using Markdown
|
670
|
+
For comparison, here is the same paragraph written using Markdown's inline link style:
|
671
671
|
.IP "" 4
|
672
672
|
.nf
|
673
673
|
I get 10 times more traffic from [Google](http://google\.com/ "Google")
|
@@ -676,11 +676,11 @@ than from [Yahoo](http://search\.yahoo\.com/ "Yahoo Search") or
|
|
676
676
|
.fi
|
677
677
|
.IP "" 0
|
678
678
|
.P
|
679
|
-
The point of reference\-style links is not that they
|
679
|
+
The point of reference\-style links is not that they're easier to write\. The point is that with reference\-style links, your document source is vastly more readable\. Compare the above examples: using reference\-style links, the paragraph itself is only 81 characters long; with inline\-style links, it's 176 characters; and as raw HTML, it's 234 characters\. In the raw HTML, there's more markup than there is text\.
|
680
680
|
.P
|
681
|
-
With Markdown
|
681
|
+
With Markdown's reference\-style links, a source document much more closely resembles the final output, as rendered in a browser\. By allowing you to move the markup\-related metadata out of the paragraph, you can add links without interrupting the narrative flow of your prose\.
|
682
682
|
.SS "Emphasis"
|
683
|
-
Markdown treats asterisks (\fB*\fR) and underscores (\fB_\fR) as indicators of emphasis\. Text wrapped with one \fB*\fR or \fB_\fR will be wrapped with an HTML \fB<em>\fR tag; double \fB*\fR
|
683
|
+
Markdown treats asterisks (\fB*\fR) and underscores (\fB_\fR) as indicators of emphasis\. Text wrapped with one \fB*\fR or \fB_\fR will be wrapped with an HTML \fB<em>\fR tag; double \fB*\fR's or \fB_\fR's will be wrapped with an HTML \fB<strong>\fR tag\. E\.g\., this input:
|
684
684
|
.IP "" 4
|
685
685
|
.nf
|
686
686
|
*single asterisks*
|
@@ -715,7 +715,7 @@ un*frigging*believable
|
|
715
715
|
.fi
|
716
716
|
.IP "" 0
|
717
717
|
.P
|
718
|
-
But if you surround an \fB*\fR or \fB_\fR with spaces, it
|
718
|
+
But if you surround an \fB*\fR or \fB_\fR with spaces, it'll be treated as a literal asterisk or underscore\.
|
719
719
|
.P
|
720
720
|
To produce a literal asterisk or underscore at a position where it would otherwise be used as an emphasis delimiter, you can backslash escape it:
|
721
721
|
.IP "" 4
|
@@ -773,14 +773,14 @@ will produce:
|
|
773
773
|
With a code span, ampersands and angle brackets are encoded as HTML entities automatically, which makes it easy to include example HTML tags\. Markdown will turn this:
|
774
774
|
.IP "" 4
|
775
775
|
.nf
|
776
|
-
Please don
|
776
|
+
Please don't use any `<blink>` tags\.
|
777
777
|
.fi
|
778
778
|
.IP "" 0
|
779
779
|
.P
|
780
780
|
into:
|
781
781
|
.IP "" 4
|
782
782
|
.nf
|
783
|
-
<p>Please don
|
783
|
+
<p>Please don't use any <code><blink></code> tags\.</p>
|
784
784
|
.fi
|
785
785
|
.IP "" 0
|
786
786
|
.P
|
@@ -799,7 +799,7 @@ equivalent of <code>&mdash;</code>\.</p>
|
|
799
799
|
.fi
|
800
800
|
.IP "" 0
|
801
801
|
.SS "Images"
|
802
|
-
Admittedly, it
|
802
|
+
Admittedly, it's fairly difficult to devise a "natural" syntax for placing images into a plain text document format\.
|
803
803
|
.P
|
804
804
|
Markdown uses an image syntax that is intended to resemble the syntax for links, allowing for two styles: \fIinline\fR and \fIreference\fR\.
|
805
805
|
.P
|
@@ -813,11 +813,11 @@ Inline image syntax looks like this:
|
|
813
813
|
.IP "" 0
|
814
814
|
.P
|
815
815
|
That is:
|
816
|
-
.IP "\
|
816
|
+
.IP "\(bu" 4
|
817
817
|
An exclamation mark: \fB!\fR;
|
818
|
-
.IP "\
|
818
|
+
.IP "\(bu" 4
|
819
819
|
followed by a set of square brackets, containing the \fBalt\fR attribute text for the image;
|
820
|
-
.IP "\
|
820
|
+
.IP "\(bu" 4
|
821
821
|
followed by a set of parentheses, containing the URL or path to the image, and an optional \fBtitle\fR attribute enclosed in double or single quotes\.
|
822
822
|
.IP "" 0
|
823
823
|
.P
|
@@ -871,9 +871,9 @@ into something like this:
|
|
871
871
|
.P
|
872
872
|
which will render in a browser as a clickable link to "address@example\.com"\.
|
873
873
|
.P
|
874
|
-
(This sort of entity\-encoding trick will indeed fool many, if not most, address\-harvesting bots, but it definitely won
|
874
|
+
(This sort of entity\-encoding trick will indeed fool many, if not most, address\-harvesting bots, but it definitely won't fool all of them\. It's better than nothing, but an address published in this way will probably eventually start receiving spam\.)
|
875
875
|
.SS "Backslash Escapes"
|
876
|
-
Markdown allows you to use backslash escapes to generate literal characters which would otherwise have special meaning in Markdown
|
876
|
+
Markdown allows you to use backslash escapes to generate literal characters which would otherwise have special meaning in Markdown's formatting syntax\. For example, if you wanted to surround a word with literal asterisks (instead of an HTML \fB<em>\fR tag), you can use backslashes before the asterisks, like this:
|
877
877
|
.IP "" 4
|
878
878
|
.nf
|
879
879
|
\e*literal asterisks\e*
|
@@ -900,8 +900,8 @@ _ underscore
|
|
900
900
|
.SH "AUTHOR"
|
901
901
|
Markdown was created by John Gruber\.
|
902
902
|
.P
|
903
|
-
Manual page by Ryan Tomayko\. It
|
903
|
+
Manual page by Ryan Tomayko\. It's pretty much a direct copy of the Markdown Syntax Reference \fIhttp://daringfireball\.net/projects/markdown/syntax\fR, also by John Gruber\.
|
904
904
|
.SH "SEE ALSO"
|
905
905
|
ronn(5)
|
906
906
|
.br
|
907
|
-
\
|
907
|
+
\fIhttp://daringfireball\.net/projects/markdown/\fR
|