1MARKDOWN(1)           User Contributed Perl Documentation          MARKDOWN(1)
2
3
4

NAME

6       Markdown.pl - Convert Markdown syntax to (X)HTML
7

DESCRIPTION

9       This program is distributed as part of Perl's Text::Markdown module,
10       illustrating sample usage.
11
12       Markdown can be invoked on any file containing Markdown-syntax, and
13       will produce the corresponding (X)HTML on STDOUT:
14
15           $ cat file.txt
16           This is a *test*.
17
18           Absolutely _nothing_ to see here. _Just a **test**_!
19
20           * test
21           * Yup, test.
22           $ Markdown.pl file.txt
23           <p>This is a <em>test</em>.</p>
24
25           <p>Absolutely <em>nothing</em> to see here. <em>Just a <strong>test</strong></em>!</p>
26
27           <ul>
28           <li>test</li>
29           <li>Yup, test.</li>
30           </ul>
31
32       If no file is specified, it will expect its input from STDIN:
33
34           $ echo "A **simple** test" | markdown
35           <p>A <strong>simple</strong> test</p>
36

OPTIONS

38       version
39           Shows the full information for this version
40
41       shortversion
42           Shows only the version number
43
44       html4tags
45           Produce HTML 4-style tags instead of XHTML - XHTML requires
46           elements that do not wrap a block (i.e. the "hr" tag) to state they
47           will not be closed, by closing with "/>". HTML 4-style will plainly
48           output the tag as it comes:
49
50               $ echo '---' | markdown
51               <hr />
52               $ echo '---' | markdown --html4tags
53               <hr>
54
55       help
56           Shows this documentation
57

AUTHOR

59       Copyright 2004 John Gruber
60
61       Copyright 2008 Tomas Doran
62
63       The manpage was written by Gunnar Wolf <gwolf@debian.org> for its use
64       in Debian systems, but can be freely used elsewhere.
65
66       For full licensing information, please refer to Text::Markdown.pm's
67       full documentation.
68

SEE ALSO

70       Text::Markdown, <http://daringfireball.net/projects/markdown/>
71
72
73
74perl v5.36.0                      2022-07-22                       MARKDOWN(1)
Impressum