karmi-markout 0.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +20 -0
- data/README.rdoc +23 -0
- data/VERSION.yml +4 -0
- data/bin/markout +56 -0
- data/lib/markout.rb +9 -0
- data/lib/markout/document.rb +20 -0
- data/lib/markout/formatter.rb +25 -0
- data/lib/markout/formatters/html/html.rb +59 -0
- data/lib/markout/formatters/html/templates/default/content.rhtml +27 -0
- data/lib/markout/formatters/html/templates/default/print.css +34 -0
- data/lib/markout/formatters/html/templates/default/screen.css +102 -0
- data/lib/markout/formatters/pdf/pdf.rb +27 -0
- data/lib/markout/output.rb +49 -0
- data/test/fixtures/markdown.html +467 -0
- data/test/fixtures/markdown.txt +235 -0
- data/test/fixtures/mt_textformat_menu.png +0 -0
- data/test/markout_document_test.rb +33 -0
- data/test/markout_formatter_test.rb +13 -0
- data/test/markout_html_test.rb +34 -0
- data/test/markout_output_test.rb +29 -0
- data/test/markout_test.rb +5 -0
- data/test/test_helper.rb +17 -0
- metadata +85 -0
@@ -0,0 +1,467 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
3
|
+
|
4
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
5
|
+
<head>
|
6
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
7
|
+
|
8
|
+
<title>Markdown</title>
|
9
|
+
|
10
|
+
<style type="text/css" media="screen">
|
11
|
+
/*
|
12
|
+
= COLORS =
|
13
|
+
|
14
|
+
Steel blue #d8dde3
|
15
|
+
Black blue #172533
|
16
|
+
Dark grey #525c66
|
17
|
+
Ash grey #dfe2e5
|
18
|
+
Live blue #1177DD
|
19
|
+
Pale green face #b9cbdd
|
20
|
+
|
21
|
+
*/
|
22
|
+
|
23
|
+
body {
|
24
|
+
color: #222;
|
25
|
+
background: #fafafa;
|
26
|
+
font-family: Helvetica, sans-serif;
|
27
|
+
font-size: 85%;
|
28
|
+
line-height: 155%;
|
29
|
+
margin: 0;
|
30
|
+
padding: 0 5em;
|
31
|
+
}
|
32
|
+
|
33
|
+
.cleaner
|
34
|
+
{ clear: both; height: 0; line-height: 0; width: 0; border: 0; font-size: 1px; }
|
35
|
+
|
36
|
+
#content {
|
37
|
+
color: #172533;
|
38
|
+
font-size: 1.1em;
|
39
|
+
max-width: 55em;
|
40
|
+
padding-bottom: 4em;
|
41
|
+
margin: 7px auto;
|
42
|
+
margin-bottom: 4em;
|
43
|
+
border-top: 4px solid #172533;
|
44
|
+
border-bottom: 4px solid #b9cbdd;
|
45
|
+
}
|
46
|
+
|
47
|
+
h1, h2, h3, h4, h5, h6 {
|
48
|
+
color: #222;
|
49
|
+
}
|
50
|
+
h1, h2 {
|
51
|
+
color: #172533;
|
52
|
+
font-weight: normal;
|
53
|
+
}
|
54
|
+
h1 a, h2 a { color: #172533; }
|
55
|
+
|
56
|
+
h1 {
|
57
|
+
font-size: 2.25em;
|
58
|
+
letter-spacing: -1px;
|
59
|
+
margin-bottom: 0.5em;
|
60
|
+
}
|
61
|
+
|
62
|
+
h2 {
|
63
|
+
font-size: 1.5em;
|
64
|
+
letter-spacing: -1px;
|
65
|
+
padding: 1.15em 0 0 0;
|
66
|
+
margin: 1.25em 0 0.25em 0;
|
67
|
+
border-top: 4px solid #d8dde3;
|
68
|
+
}
|
69
|
+
|
70
|
+
h3 {
|
71
|
+
color: #172533;
|
72
|
+
font-size: 1.1em;
|
73
|
+
font-weight:bold;
|
74
|
+
margin: 1.8em 0 0.25em 0;
|
75
|
+
letter-spacing:-1px;
|
76
|
+
}
|
77
|
+
|
78
|
+
h3 a {
|
79
|
+
text-decoration:underline;
|
80
|
+
}
|
81
|
+
|
82
|
+
p {
|
83
|
+
margin: 0 0 0.8em 0;
|
84
|
+
}
|
85
|
+
|
86
|
+
a {
|
87
|
+
color: #172533;
|
88
|
+
text-decoration:underline;
|
89
|
+
}
|
90
|
+
a:hover {
|
91
|
+
color: #1177DD;
|
92
|
+
text-decoration:underline;
|
93
|
+
}
|
94
|
+
a img {
|
95
|
+
border:none;
|
96
|
+
}
|
97
|
+
|
98
|
+
code, pre, textarea, tt {
|
99
|
+
font-family: "Monaco", "lucida console", "bitstream vera sans mono", monospace;
|
100
|
+
font-size: 100%;
|
101
|
+
}
|
102
|
+
pre {
|
103
|
+
color: #172533;
|
104
|
+
background: #f5f9fc;
|
105
|
+
font-size: 100%;
|
106
|
+
line-height: 155%;
|
107
|
+
border: 4px solid #dfe2e5;
|
108
|
+
padding: 0.5em;
|
109
|
+
white-space: pre-wrap; white-space: -moz-pre-wrap !important;
|
110
|
+
}
|
111
|
+
|
112
|
+
hr { display: none; }
|
113
|
+
|
114
|
+
</style>
|
115
|
+
|
116
|
+
<style type="text/css" media="print">
|
117
|
+
body
|
118
|
+
{ color: #000;
|
119
|
+
background: #fff;
|
120
|
+
font-size: 85%;
|
121
|
+
font-family: Helvetica, sans-serif;
|
122
|
+
margin: 0.5cm; }
|
123
|
+
|
124
|
+
a
|
125
|
+
{ color: #000;
|
126
|
+
text-decoration: underline; }
|
127
|
+
|
128
|
+
a img
|
129
|
+
{ border: none; }
|
130
|
+
|
131
|
+
h2 {
|
132
|
+
font-size: 1.5em;
|
133
|
+
letter-spacing: -0.05em;
|
134
|
+
padding: 1.15em 0 0 0;
|
135
|
+
margin: 1.25em 0 0.25em 0;
|
136
|
+
border-top: 1mm solid #999;
|
137
|
+
}
|
138
|
+
|
139
|
+
h3 {
|
140
|
+
font-size: 1.1em;
|
141
|
+
font-weight:bold;
|
142
|
+
margin: 1.8em 0 0.25em 0;
|
143
|
+
letter-spacing: -0.05em;
|
144
|
+
}
|
145
|
+
|
146
|
+
pre {
|
147
|
+
border: 1pt solid #ccc;
|
148
|
+
padding: 0.5em;
|
149
|
+
white-space: pre-wrap; white-space: -moz-pre-wrap !important;
|
150
|
+
}
|
151
|
+
|
152
|
+
</style>
|
153
|
+
|
154
|
+
</head>
|
155
|
+
|
156
|
+
<body>
|
157
|
+
|
158
|
+
<div id="content">
|
159
|
+
<h1>Markdown</h1>
|
160
|
+
|
161
|
+
<h2>Download</h2>
|
162
|
+
|
163
|
+
<p><a href="http://daringfireball.net/projects/downloads/Markdown_1.0.1.zip">Markdown 1.0.1</a> (18 KB) -- 17 Dec 2004</p>
|
164
|
+
|
165
|
+
<h2>Introduction</h2>
|
166
|
+
|
167
|
+
<p>Markdown is a text-to-HTML conversion tool for web writers. Markdown
|
168
|
+
allows you to write using an easy-to-read, easy-to-write plain text
|
169
|
+
format, then convert it to structurally valid XHTML (or HTML).</p>
|
170
|
+
|
171
|
+
<p>Thus, "Markdown" is two things: (1) a plain text formatting syntax;
|
172
|
+
and (2) a software tool, written in Perl, that converts the plain text
|
173
|
+
formatting to HTML. See the <a href="/projects/markdown/syntax">Syntax</a> page for details pertaining to
|
174
|
+
Markdown's formatting syntax. You can try it out, right now, using the
|
175
|
+
online <a href="/projects/markdown/dingus">Dingus</a>.</p>
|
176
|
+
|
177
|
+
<p>The overriding design goal for Markdown's formatting syntax is to make
|
178
|
+
it as readable as possible. The idea is that a Markdown-formatted
|
179
|
+
document should be publishable as-is, as plain text, without looking
|
180
|
+
like it's been marked up with tags or formatting instructions. While
|
181
|
+
Markdown's syntax has been influenced by several existing text-to-HTML
|
182
|
+
filters, the single biggest source of inspiration for Markdown's
|
183
|
+
syntax is the format of plain text email.</p>
|
184
|
+
|
185
|
+
<p>The best way to get a feel for Markdown's formatting syntax is simply
|
186
|
+
to look at a Markdown-formatted document. For example, you can view
|
187
|
+
the Markdown source for the article text on this page here:
|
188
|
+
<a href="http://daringfireball.net/projects/markdown/index.text">http://daringfireball.net/projects/markdown/index.text</a></p>
|
189
|
+
|
190
|
+
<p>(You can use this '.text' suffix trick to view the Markdown source for
|
191
|
+
the content of each of the pages in this section, e.g. the
|
192
|
+
<a href="/projects/markdown/syntax.text">Syntax</a> and <a href="/projects/markdown/license.text">License</a> pages.)</p>
|
193
|
+
|
194
|
+
<p>Markdown is free software, available under a BSD-style open source
|
195
|
+
license. See the <a href="/projects/markdown/license">License</a> page for more information.</p>
|
196
|
+
|
197
|
+
<h2>Discussion List <a id="discussion-list" /></h2>
|
198
|
+
|
199
|
+
<p>I've set up a public <a href="http://six.pairlist.net/mailman/listinfo/markdown-discuss">mailing list for discussion about Markdown</a>.
|
200
|
+
Any topic related to Markdown -- both its formatting syntax and
|
201
|
+
its software -- is fair game for discussion. Anyone who is interested
|
202
|
+
is welcome to join.</p>
|
203
|
+
|
204
|
+
<p>It's my hope that the mailing list will lead to good ideas for future
|
205
|
+
improvements to Markdown.</p>
|
206
|
+
|
207
|
+
<h2>Installation and Requirements <a id="install" /></h2>
|
208
|
+
|
209
|
+
<p>Markdown requires Perl 5.6.0 or later. Welcome to the 21st Century.
|
210
|
+
Markdown also requires the standard Perl library module <a href="http://search.cpan.org/dist/Digest-MD5/MD5.pm">Digest::MD5</a>, which is probably already installed on your server.</p>
|
211
|
+
|
212
|
+
<h3>Movable Type </h3>
|
213
|
+
|
214
|
+
<p>Markdown works with Movable Type version 2.6 or later (including
|
215
|
+
Movable Type 3.0).</p>
|
216
|
+
|
217
|
+
<ol>
|
218
|
+
<li><p>Copy the "Markdown.pl" file into your Movable Type "plugins"
|
219
|
+
directory. The "plugins" directory should be in the same directory
|
220
|
+
as "mt.cgi"; if the "plugins" directory doesn't already exist, use
|
221
|
+
your FTP program to create it. Your installation should look like
|
222
|
+
this:</p>
|
223
|
+
|
224
|
+
<pre><code>(mt home)/plugins/Markdown.pl
|
225
|
+
</code></pre></li>
|
226
|
+
<li><p>Once installed, Markdown will appear as an option in Movable Type's
|
227
|
+
Text Formatting pop-up menu. This is selectable on a per-post basis:</p>
|
228
|
+
|
229
|
+
<p><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAToAAACYCAMAAABDP9U/AAAABGdBTUEAANbY
|
230
|
+
1E9YMgAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1h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|
324
|
+
SFPLY9+UfnKxA7ch3a2sk9mEJ21H9IrUuUHI+pZuutwhFE9e9lo0fqXFNFPd
|
325
|
+
JXKTSnzlW6CLIqtA7kQ6d/Myp9O6uC6wQ86CXUkNv5IjcInciqEGiCW0XLAq
|
326
|
+
y25coROGCtw9jpHwNeS4za0WX3WS7ed/jXLxKNJt1iUm7axbXjxaOn5Cng4l
|
327
|
+
0cm99IVAxp4uSrLcDpBAxqU1btm2g3PfPtyFlXLtddw3riS+W0gc4PX3LREB
|
328
|
+
+SMYuUHHM2daCMUGLaDp6UJL0w4Q6FLbSGFzPxaE3e0/+LO8RGq7su4R0K3Y
|
329
|
+
LS+rKnwEVrDl09Dctmg9xCPxDI+B8MnuuqGvQZ5LK2zuh6ChaIlK+rY3w/gd
|
330
|
+
5w4Q2A12/VVfPlAEBQX6k+xSixFGOk524W70O+jky19kP+WUdANZ7LvfhduG
|
331
|
+
c7e/5WR9VYfW2rvTm9IEw+YJZ4H9K5vg3/oGn3L3gm49J35JPu8f/11co5w7
|
332
|
+
5FUd4/qCGC5k5Y55ZR27x628bw4o/fc415096AUxw/paIppxrc6ff/x+z138
|
333
|
+
9AvdduRZez8mho8OvdtndXZtI27VdQ07AW9Gtndw/t2dx7v1xbTmCNYN6/uw
|
334
|
+
JnlRsHV/1NkTcLe/XrGxrmMH9Hq+8eU+dKcX/zX0OnT+Lz6SmObl5d4j3458
|
335
|
+
5EtOCR5VJ6Eb/64bjsDt//fDjv2drZ4vgP5TcK3fY3B7/9W6fni5F3Qv6H4L
|
336
|
+
dPoF3VXQvdwX3T8BBgCc7Itn/93VjwAAAABJRU5ErkJggg==
|
337
|
+
" alt="Screenshot of Movable Type 'Text Formatting' Menu" />
|
338
|
+
|
339
|
+
<p>Markdown translates your posts to HTML when you publish; the posts
|
340
|
+
themselves are stored in your MT database in Markdown format.</p></li>
|
341
|
+
<li><p>If you also install SmartyPants 1.5 (or later), Markdown will
|
342
|
+
offer a second text formatting option: "Markdown With
|
343
|
+
SmartyPants". This option is the same as the regular "Markdown"
|
344
|
+
formatter, except that it automatically uses SmartyPants to create
|
345
|
+
typographically correct curly quotes, em-dashes, and ellipses. See
|
346
|
+
the <a href="http://daringfireball.net/projects/smartypants/">SmartyPants web page</a> for more information.</p></li>
|
347
|
+
<li><p>To make Markdown (or "Markdown With SmartyPants") your default
|
348
|
+
text formatting option for new posts, go to Weblog Config:
|
349
|
+
Preferences.</p></li>
|
350
|
+
</ol>
|
351
|
+
|
352
|
+
|
353
|
+
<p>Note that by default, Markdown produces XHTML output. To configure
|
354
|
+
Markdown to produce HTML 4 output, see "Configuration", below.</p>
|
355
|
+
|
356
|
+
<h3>Blosxom </h3>
|
357
|
+
|
358
|
+
<p>Markdown works with Blosxom version 2.0 or later.</p>
|
359
|
+
|
360
|
+
<ol>
|
361
|
+
<li><p>Rename the "Markdown.pl" plug-in to "Markdown" (case is
|
362
|
+
important). Movable Type requires plug-ins to have a ".pl"
|
363
|
+
extension; Blosxom forbids it.</p></li>
|
364
|
+
<li><p>Copy the "Markdown" plug-in file to your Blosxom plug-ins folder.
|
365
|
+
If you're not sure where your Blosxom plug-ins folder is, see the
|
366
|
+
Blosxom documentation for information.</p></li>
|
367
|
+
<li><p>That's it. The entries in your weblog will now automatically be
|
368
|
+
processed by Markdown.</p></li>
|
369
|
+
<li><p>If you'd like to apply Markdown formatting only to certain
|
370
|
+
posts, rather than all of them, Markdown can optionally be used in
|
371
|
+
conjunction with Blosxom's <a href="http://www.blosxom.com/plugins/meta/meta.htm">Meta</a> plug-in. First, install the
|
372
|
+
Meta plug-in. Next, open the Markdown plug-in file in a text
|
373
|
+
editor, and set the configuration variable <code>$g_blosxom_use_meta</code>
|
374
|
+
to 1. Then, simply include a "<code>meta-markup: Markdown</code>" header line
|
375
|
+
at the top of each post you compose using Markdown.</p></li>
|
376
|
+
</ol>
|
377
|
+
|
378
|
+
|
379
|
+
<h3>BBEdit </h3>
|
380
|
+
|
381
|
+
<p>Markdown works with BBEdit 6.1 or later on Mac OS X. It also works
|
382
|
+
with BBEdit 5.1 or later and MacPerl 5.6.1 on Mac OS 8.6 or later. If
|
383
|
+
you're running Mac OS X 10.2 (Jaguar), you may need to install the
|
384
|
+
Perl module <a href="http://search.cpan.org/dist/Digest-MD5/MD5.pm">Digest::MD5</a> from CPAN; Digest::MD5 comes
|
385
|
+
pre-installed on Mac OS X 10.3 (Panther).</p>
|
386
|
+
|
387
|
+
<ol>
|
388
|
+
<li><p>Copy the "Markdown.pl" file to appropriate filters folder in your
|
389
|
+
"BBEdit Support" folder. On Mac OS X, this should be:</p>
|
390
|
+
|
391
|
+
<pre><code>BBEdit Support/Unix Support/Unix Filters/
|
392
|
+
</code></pre>
|
393
|
+
|
394
|
+
<p>See the BBEdit documentation for more details on the location of
|
395
|
+
these folders.</p>
|
396
|
+
|
397
|
+
<p>You can rename "Markdown.pl" to whatever you wish.</p></li>
|
398
|
+
<li><p>That's it. To use Markdown, select some text in a BBEdit document,
|
399
|
+
then choose Markdown from the Filters sub-menu in the "#!" menu, or
|
400
|
+
the Filters floating palette</p></li>
|
401
|
+
</ol>
|
402
|
+
|
403
|
+
|
404
|
+
<h2>Configuration <a id="configuration"></a></h2>
|
405
|
+
|
406
|
+
<p>By default, Markdown produces XHTML output for tags with empty elements.
|
407
|
+
E.g.:</p>
|
408
|
+
|
409
|
+
<pre><code><br />
|
410
|
+
</code></pre>
|
411
|
+
|
412
|
+
<p>Markdown can be configured to produce HTML-style tags; e.g.:</p>
|
413
|
+
|
414
|
+
<pre><code><br>
|
415
|
+
</code></pre>
|
416
|
+
|
417
|
+
<h3>Movable Type </h3>
|
418
|
+
|
419
|
+
<p>You need to use a special <code>MTMarkdownOptions</code> container tag in each
|
420
|
+
Movable Type template where you want HTML 4-style output:</p>
|
421
|
+
|
422
|
+
<pre><code><MTMarkdownOptions output='html4'>
|
423
|
+
... put your entry content here ...
|
424
|
+
</MTMarkdownOptions>
|
425
|
+
</code></pre>
|
426
|
+
|
427
|
+
<p>The easiest way to use MTMarkdownOptions is probably to put the
|
428
|
+
opening tag right after your <code><body></code> tag, and the closing tag right
|
429
|
+
before <code></body></code>.</p>
|
430
|
+
|
431
|
+
<p>To suppress Markdown processing in a particular template, i.e. to
|
432
|
+
publish the raw Markdown-formatted text without translation into
|
433
|
+
(X)HTML, set the <code>output</code> attribute to 'raw':</p>
|
434
|
+
|
435
|
+
<pre><code><MTMarkdownOptions output='raw'>
|
436
|
+
... put your entry content here ...
|
437
|
+
</MTMarkdownOptions>
|
438
|
+
</code></pre>
|
439
|
+
|
440
|
+
<h3>Command-Line </h3>
|
441
|
+
|
442
|
+
<p>Use the <code>--html4tags</code> command-line switch to produce HTML output from a
|
443
|
+
Unix-style command line. E.g.:</p>
|
444
|
+
|
445
|
+
<pre><code>% perl Markdown.pl --html4tags foo.text
|
446
|
+
</code></pre>
|
447
|
+
|
448
|
+
<p>Type <code>perldoc Markdown.pl</code>, or read the POD documentation within the
|
449
|
+
Markdown.pl source code for more information.</p>
|
450
|
+
|
451
|
+
<h2>Acknowledgements <a id="acknowledgements" /></h2>
|
452
|
+
|
453
|
+
<p><a href="http://www.aaronsw.com/">Aaron Swartz</a> deserves a tremendous amount of credit for helping to
|
454
|
+
design Markdown's formatting syntax. Markdown is <em>much</em> better thanks
|
455
|
+
to Aaron's ideas, feedback, and testing. Also, Aaron's <a href="http://www.aaronsw.com/2002/html2text/">html2text</a>
|
456
|
+
is a very handy (and free) utility for turning HTML into
|
457
|
+
Markdown-formatted plain text.</p>
|
458
|
+
|
459
|
+
<p><a href="http://bumppo.net/">Nathaniel Irons</a>, <a href="http://hivelogic.com/">Dan Benjamin</a>, <a href="http://waferbaby.com/">Daniel Bogan</a>, and <a href="http://pressedpants.com/">Jason Perkins</a>
|
460
|
+
also deserve thanks for their feedback.</p>
|
461
|
+
|
462
|
+
<p><a href="http://www.michelf.com/projects/php-markdown/">Michel Fortin</a> has ported Markdown to PHP; it's a splendid port, and highly recommended for anyone looking for a PHP implementation of Markdown.</p>
|
463
|
+
|
464
|
+
</div>
|
465
|
+
|
466
|
+
</body>
|
467
|
+
</html>
|