rpeg-multimarkdown 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +94 -0
- data/README.markdown +58 -0
- data/Rakefile +171 -0
- data/bin/rpeg-multimarkdown +128 -0
- data/ext/extconf.h +3 -0
- data/ext/extconf.rb +15 -0
- data/ext/markdown.c +88 -0
- data/ext/markdown_lib.c +211 -0
- data/ext/markdown_lib.h +28 -0
- data/ext/markdown_output.c +2704 -0
- data/ext/markdown_parser.c +8275 -0
- data/ext/markdown_peg.h +142 -0
- data/ext/odf.c +179 -0
- data/ext/odf.h +3 -0
- data/ext/parsing_functions.c +182 -0
- data/ext/utility_functions.c +535 -0
- data/lib/multimarkdown.rb +1 -0
- data/lib/peg_multimarkdown.rb +74 -0
- data/test/MultiMarkdownTest/BeamerTests/Beamer-Tables.html +76 -0
- data/test/MultiMarkdownTest/BeamerTests/Beamer-Tables.tex +64 -0
- data/test/MultiMarkdownTest/BeamerTests/Beamer-Tables.text +38 -0
- data/test/MultiMarkdownTest/MarkdownTest.pl +182 -0
- data/test/MultiMarkdownTest/MemoirTests/Automatic Labels.html +42 -0
- data/test/MultiMarkdownTest/MemoirTests/Automatic Labels.tex +47 -0
- data/test/MultiMarkdownTest/MemoirTests/Automatic Labels.text +46 -0
- data/test/MultiMarkdownTest/MemoirTests/Base Header Level.html +20 -0
- data/test/MultiMarkdownTest/MemoirTests/Base Header Level.tex +19 -0
- data/test/MultiMarkdownTest/MemoirTests/Base Header Level.text +16 -0
- data/test/MultiMarkdownTest/MemoirTests/BibTeX.html +17 -0
- data/test/MultiMarkdownTest/MemoirTests/BibTeX.tex +12 -0
- data/test/MultiMarkdownTest/MemoirTests/BibTeX.text +11 -0
- data/test/MultiMarkdownTest/MemoirTests/Citations.html +63 -0
- data/test/MultiMarkdownTest/MemoirTests/Citations.tex +48 -0
- data/test/MultiMarkdownTest/MemoirTests/Citations.text +43 -0
- data/test/MultiMarkdownTest/MemoirTests/Definition Lists.html +61 -0
- data/test/MultiMarkdownTest/MemoirTests/Definition Lists.tex +63 -0
- data/test/MultiMarkdownTest/MemoirTests/Definition Lists.text +40 -0
- data/test/MultiMarkdownTest/MemoirTests/Dutch.html +23 -0
- data/test/MultiMarkdownTest/MemoirTests/Dutch.tex +18 -0
- data/test/MultiMarkdownTest/MemoirTests/Dutch.text +17 -0
- data/test/MultiMarkdownTest/MemoirTests/Email.html +48 -0
- data/test/MultiMarkdownTest/MemoirTests/Email.tex +61 -0
- data/test/MultiMarkdownTest/MemoirTests/Email.text +32 -0
- data/test/MultiMarkdownTest/MemoirTests/English.html +23 -0
- data/test/MultiMarkdownTest/MemoirTests/English.tex +18 -0
- data/test/MultiMarkdownTest/MemoirTests/English.text +17 -0
- data/test/MultiMarkdownTest/MemoirTests/Footnotes.html +47 -0
- data/test/MultiMarkdownTest/MemoirTests/Footnotes.tex +28 -0
- data/test/MultiMarkdownTest/MemoirTests/Footnotes.text +26 -0
- data/test/MultiMarkdownTest/MemoirTests/French.html +23 -0
- data/test/MultiMarkdownTest/MemoirTests/French.tex +18 -0
- data/test/MultiMarkdownTest/MemoirTests/French.text +17 -0
- data/test/MultiMarkdownTest/MemoirTests/German.html +23 -0
- data/test/MultiMarkdownTest/MemoirTests/German.tex +18 -0
- data/test/MultiMarkdownTest/MemoirTests/German.text +17 -0
- data/test/MultiMarkdownTest/MemoirTests/GermanGuillemets.html +23 -0
- data/test/MultiMarkdownTest/MemoirTests/GermanGuillemets.tex +18 -0
- data/test/MultiMarkdownTest/MemoirTests/GermanGuillemets.text +17 -0
- data/test/MultiMarkdownTest/MemoirTests/Glossary.html +47 -0
- data/test/MultiMarkdownTest/MemoirTests/Glossary.tex +30 -0
- data/test/MultiMarkdownTest/MemoirTests/Glossary.text +29 -0
- data/test/MultiMarkdownTest/MemoirTests/Line Breaks.html +21 -0
- data/test/MultiMarkdownTest/MemoirTests/Line Breaks.tex +16 -0
- data/test/MultiMarkdownTest/MemoirTests/Line Breaks.text +16 -0
- data/test/MultiMarkdownTest/MemoirTests/Link Attributes.html +40 -0
- data/test/MultiMarkdownTest/MemoirTests/Link Attributes.tex +61 -0
- data/test/MultiMarkdownTest/MemoirTests/Link Attributes.text +51 -0
- data/test/MultiMarkdownTest/MemoirTests/Math.html +22 -0
- data/test/MultiMarkdownTest/MemoirTests/Math.tex +16 -0
- data/test/MultiMarkdownTest/MemoirTests/Math.text +16 -0
- data/test/MultiMarkdownTest/MemoirTests/Memoir Mode.html +24 -0
- data/test/MultiMarkdownTest/MemoirTests/Memoir Mode.tex +23 -0
- data/test/MultiMarkdownTest/MemoirTests/Memoir Mode.text +20 -0
- data/test/MultiMarkdownTest/MemoirTests/MetaData.html +22 -0
- data/test/MultiMarkdownTest/MemoirTests/MetaData.tex +14 -0
- data/test/MultiMarkdownTest/MemoirTests/MetaData.text +15 -0
- data/test/MultiMarkdownTest/MemoirTests/Sanity.html +100 -0
- data/test/MultiMarkdownTest/MemoirTests/Sanity.tex +101 -0
- data/test/MultiMarkdownTest/MemoirTests/Sanity.text +78 -0
- data/test/MultiMarkdownTest/MemoirTests/SmartQuotes.html +26 -0
- data/test/MultiMarkdownTest/MemoirTests/SmartQuotes.tex +21 -0
- data/test/MultiMarkdownTest/MemoirTests/SmartQuotes.text +19 -0
- data/test/MultiMarkdownTest/MemoirTests/Swedish.html +23 -0
- data/test/MultiMarkdownTest/MemoirTests/Swedish.tex +18 -0
- data/test/MultiMarkdownTest/MemoirTests/Swedish.text +17 -0
- data/test/MultiMarkdownTest/MemoirTests/Tables.html +221 -0
- data/test/MultiMarkdownTest/MemoirTests/Tables.tex +134 -0
- data/test/MultiMarkdownTest/MemoirTests/Tables.text +64 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Automatic Labels.html +41 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Automatic Labels.tex +46 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Automatic Labels.text +45 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Base Header Level.html +20 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Base Header Level.tex +19 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Base Header Level.text +16 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/BibTeX.html +16 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/BibTeX.tex +11 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/BibTex.text +10 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Citations.html +62 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Citations.tex +47 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Citations.text +42 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Definition Lists.html +60 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Definition Lists.tex +62 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Definition Lists.text +39 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Dutch.html +23 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Dutch.tex +18 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Dutch.text +17 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Email.html +47 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Email.tex +54 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Email.text +31 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/English.html +23 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/English.tex +18 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/English.text +17 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Errors.html +16 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Errors.tex +11 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Errors.text +11 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Footnotes.html +46 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Footnotes.tex +24 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Footnotes.text +25 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/French.html +23 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/French.tex +18 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/French.text +17 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/German.html +23 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/German.tex +18 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/German.text +17 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/GermanGuillemets.html +23 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/GermanGuillemets.tex +18 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/GermanGuillemets.text +17 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Glossary.html +46 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Glossary.tex +26 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Glossary.text +28 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Headers.html +46 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Headers.tex +52 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Headers.text +49 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Line Breaks.html +20 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Line Breaks.tex +15 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Line Breaks.text +15 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Link Attributes.html +54 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Link Attributes.tex +60 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Link Attributes.text +50 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/List Parsing.html +20 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/List Parsing.tex +17 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/List Parsing.text +11 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/MarkdownInHTML.html +19 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/MarkdownInHTML.tex +13 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/MarkdownInHTML.text +19 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Math.html +21 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Math.tex +15 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Math.text +15 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/MetaData.html +21 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/MetaData.tex +13 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/MetaData.text +14 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Sanity.html +104 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Sanity.tex +100 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Sanity.text +77 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/SmartQuotes.html +29 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/SmartQuotes.tex +24 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/SmartQuotes.text +22 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Swedish.html +23 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Swedish.tex +18 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Swedish.text +17 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Tables.html +230 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Tables.tex +133 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Tables.text +63 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/bibtex.bib +119 -0
- data/test/MultiMarkdownTest/README.md +58 -0
- data/test/MultiMarkdownTest/Tests/Amps and angle encoding.html +17 -0
- data/test/MultiMarkdownTest/Tests/Amps and angle encoding.text +21 -0
- data/test/MultiMarkdownTest/Tests/Auto links.html +18 -0
- data/test/MultiMarkdownTest/Tests/Auto links.text +13 -0
- data/test/MultiMarkdownTest/Tests/Backslash escapes.html +118 -0
- data/test/MultiMarkdownTest/Tests/Backslash escapes.text +120 -0
- data/test/MultiMarkdownTest/Tests/Blockquotes with code blocks.html +15 -0
- data/test/MultiMarkdownTest/Tests/Blockquotes with code blocks.text +11 -0
- data/test/MultiMarkdownTest/Tests/Code Blocks.html +18 -0
- data/test/MultiMarkdownTest/Tests/Code Blocks.text +14 -0
- data/test/MultiMarkdownTest/Tests/Code Spans.html +6 -0
- data/test/MultiMarkdownTest/Tests/Code Spans.text +6 -0
- data/test/MultiMarkdownTest/Tests/Compatibility.html +5 -0
- data/test/MultiMarkdownTest/Tests/Compatibility.text +9 -0
- data/test/MultiMarkdownTest/Tests/Hard-wrapped paragraphs with list-like lines.html +8 -0
- data/test/MultiMarkdownTest/Tests/Hard-wrapped paragraphs with list-like lines.text +8 -0
- data/test/MultiMarkdownTest/Tests/Horizontal rules.html +71 -0
- data/test/MultiMarkdownTest/Tests/Horizontal rules.text +67 -0
- data/test/MultiMarkdownTest/Tests/Inline HTML (Advanced).html +15 -0
- data/test/MultiMarkdownTest/Tests/Inline HTML (Advanced).text +15 -0
- data/test/MultiMarkdownTest/Tests/Inline HTML (Simple).html +72 -0
- data/test/MultiMarkdownTest/Tests/Inline HTML (Simple).text +69 -0
- data/test/MultiMarkdownTest/Tests/Inline HTML comments.html +13 -0
- data/test/MultiMarkdownTest/Tests/Inline HTML comments.text +13 -0
- data/test/MultiMarkdownTest/Tests/Links, inline style.html +11 -0
- data/test/MultiMarkdownTest/Tests/Links, inline style.text +12 -0
- data/test/MultiMarkdownTest/Tests/Links, reference style.html +52 -0
- data/test/MultiMarkdownTest/Tests/Links, reference style.text +71 -0
- data/test/MultiMarkdownTest/Tests/Links, shortcut references.html +9 -0
- data/test/MultiMarkdownTest/Tests/Links, shortcut references.text +20 -0
- data/test/MultiMarkdownTest/Tests/Literal quotes in titles.html +3 -0
- data/test/MultiMarkdownTest/Tests/Literal quotes in titles.text +7 -0
- data/test/MultiMarkdownTest/Tests/Markdown Documentation - Basics.html +314 -0
- data/test/MultiMarkdownTest/Tests/Markdown Documentation - Basics.text +306 -0
- data/test/MultiMarkdownTest/Tests/Markdown Documentation - Syntax.html +942 -0
- data/test/MultiMarkdownTest/Tests/Markdown Documentation - Syntax.text +888 -0
- data/test/MultiMarkdownTest/Tests/Nested blockquotes.html +9 -0
- data/test/MultiMarkdownTest/Tests/Nested blockquotes.text +5 -0
- data/test/MultiMarkdownTest/Tests/Ordered and unordered lists.html +148 -0
- data/test/MultiMarkdownTest/Tests/Ordered and unordered lists.text +131 -0
- data/test/MultiMarkdownTest/Tests/Strong and em together.html +7 -0
- data/test/MultiMarkdownTest/Tests/Strong and em together.text +7 -0
- data/test/MultiMarkdownTest/Tests/Tabs.html +25 -0
- data/test/MultiMarkdownTest/Tests/Tabs.text +21 -0
- data/test/MultiMarkdownTest/Tests/Tidyness.html +8 -0
- data/test/MultiMarkdownTest/Tests/Tidyness.text +5 -0
- data/test/benchmark.rb +49 -0
- data/test/multimarkdown_test.rb +89 -0
- metadata +280 -0
@@ -0,0 +1,52 @@
|
|
1
|
+
\input{mmd-article-header}
|
2
|
+
\def\mytitle{MultiMarkdown Headers Test}
|
3
|
+
\def\latexmode{memoir}
|
4
|
+
\input{mmd-article-begin-doc}
|
5
|
+
\section{Normal Header}
|
6
|
+
\label{normalheader}
|
7
|
+
|
8
|
+
plain text
|
9
|
+
|
10
|
+
\section{Normal Header with trailing space}
|
11
|
+
\label{normalheaderwithtrailingspace}
|
12
|
+
|
13
|
+
\chapter{Normal Header with trailing space}
|
14
|
+
\label{normalheaderwithtrailingspace}
|
15
|
+
|
16
|
+
plain text
|
17
|
+
|
18
|
+
\section{Header with \href{http://www.google.com}{Link}}
|
19
|
+
\label{headerwithlink}
|
20
|
+
|
21
|
+
plain text
|
22
|
+
|
23
|
+
\section{Header with \href{http://www.google.com}{Link}}
|
24
|
+
\label{headerwithlink}
|
25
|
+
|
26
|
+
and more plain text
|
27
|
+
|
28
|
+
\section{Header with \href{http://www.google.com}{Link} and space}
|
29
|
+
\label{headerwithlinkandspace}
|
30
|
+
|
31
|
+
and more plain text
|
32
|
+
|
33
|
+
The following should still be detected as headers:
|
34
|
+
|
35
|
+
\chapter{Broken label [ text [}
|
36
|
+
\label{brokenlabeltext}
|
37
|
+
|
38
|
+
\section{Test Header 2 and}
|
39
|
+
\label{label}
|
40
|
+
|
41
|
+
\section{Broken Reference Link [label][label2]}
|
42
|
+
\label{brokenreferencelinklabellabel2}
|
43
|
+
|
44
|
+
\section{Reference link not label \href{http://example.com/}{label}}
|
45
|
+
\label{referencelinknotlabellabel}
|
46
|
+
|
47
|
+
\section{Link \href{http://example.net/}{not label}}
|
48
|
+
\label{linknotlabel}
|
49
|
+
|
50
|
+
\input{mmd-memoir-footer}
|
51
|
+
|
52
|
+
\end{document}
|
@@ -0,0 +1,49 @@
|
|
1
|
+
latex input: mmd-article-header
|
2
|
+
Title: MultiMarkdown Headers Test
|
3
|
+
latex mode: memoir
|
4
|
+
Base Header Level: 2
|
5
|
+
latex input: mmd-article-begin-doc
|
6
|
+
latex footer: mmd-memoir-footer
|
7
|
+
|
8
|
+
## Normal Header ##
|
9
|
+
|
10
|
+
|
11
|
+
plain text
|
12
|
+
|
13
|
+
Normal Header with trailing space
|
14
|
+
---------------------------------
|
15
|
+
|
16
|
+
Normal Header with trailing space
|
17
|
+
=================================
|
18
|
+
|
19
|
+
plain text
|
20
|
+
|
21
|
+
## Header with [Link](http://www.google.com) ##
|
22
|
+
|
23
|
+
plain text
|
24
|
+
|
25
|
+
|
26
|
+
Header with [Link](http://www.google.com)
|
27
|
+
-----------------------------------------
|
28
|
+
|
29
|
+
and more plain text
|
30
|
+
|
31
|
+
Header with [Link](http://www.google.com) and space
|
32
|
+
---------------------------------------------------
|
33
|
+
|
34
|
+
and more plain text
|
35
|
+
|
36
|
+
|
37
|
+
The following should still be detected as headers:
|
38
|
+
|
39
|
+
# Broken label [ text [ #
|
40
|
+
|
41
|
+
## Test Header 2 and [label] ##
|
42
|
+
|
43
|
+
## Broken Reference Link [label] [label2] ##
|
44
|
+
|
45
|
+
## Reference link not label [label] [label1] ##
|
46
|
+
|
47
|
+
## Link [not label](http://example.net/) ##
|
48
|
+
|
49
|
+
[label1]: http://example.com/
|
@@ -0,0 +1,20 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
|
2
|
+
<!DOCTYPE html>
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml">
|
4
|
+
<head>
|
5
|
+
<meta name="latexinput" content="mmd-article-header"/>
|
6
|
+
<title>Line Break Test</title>
|
7
|
+
<meta name="latexinput" content="mmd-article-begin-doc"/>
|
8
|
+
<meta name="latexfooter" content="mmd-memoir-footer"/>
|
9
|
+
</head>
|
10
|
+
<body>
|
11
|
+
<p>This is a paragraph.
|
12
|
+
This is the same paragraph.</p>
|
13
|
+
|
14
|
+
<p>New paragraph.<br/>
|
15
|
+
Second line in same paragraph.</p>
|
16
|
+
|
17
|
+
<p>New paragraph.<br/>
|
18
|
+
Second line in same paragraph with linebreak at end. </p>
|
19
|
+
</body>
|
20
|
+
</html>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
\input{mmd-article-header}
|
2
|
+
\def\mytitle{Line Break Test}
|
3
|
+
\input{mmd-article-begin-doc}
|
4
|
+
This is a paragraph.
|
5
|
+
This is the same paragraph.
|
6
|
+
|
7
|
+
New paragraph.\\
|
8
|
+
Second line in same paragraph.
|
9
|
+
|
10
|
+
New paragraph.\\
|
11
|
+
Second line in same paragraph with linebreak at end.
|
12
|
+
|
13
|
+
\input{mmd-memoir-footer}
|
14
|
+
|
15
|
+
\end{document}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
latex input: mmd-article-header
|
2
|
+
Title: Line Break Test
|
3
|
+
latex input: mmd-article-begin-doc
|
4
|
+
latex footer: mmd-memoir-footer
|
5
|
+
|
6
|
+
|
7
|
+
This is a paragraph.
|
8
|
+
This is the same paragraph.
|
9
|
+
|
10
|
+
New paragraph.
|
11
|
+
Second line in same paragraph.
|
12
|
+
|
13
|
+
New paragraph.
|
14
|
+
Second line in same paragraph with linebreak at end.
|
15
|
+
|
@@ -0,0 +1,54 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
|
2
|
+
<!DOCTYPE html>
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml">
|
4
|
+
<head>
|
5
|
+
<meta name="latexinput" content="mmd-article-header"/>
|
6
|
+
<title>Link Attributes Test</title>
|
7
|
+
<meta name="latexinput" content="mmd-article-begin-doc"/>
|
8
|
+
<meta name="latexfooter" content="mmd-memoir-footer"/>
|
9
|
+
</head>
|
10
|
+
<body>
|
11
|
+
<p>This is a formatted <img src="http://path.to/image" alt="image" id="image" title="Image title" style="height:400px;width:40px;" /> and a <a href="http://path.to/link.html" title="Some Link" class="external" style="border: solid black 1px;">link</a> with attributes.</p>
|
12
|
+
|
13
|
+
<figure>
|
14
|
+
<img src="http://path.to/image" alt="image2" id="image2" title="Image title" style="height:400px;" />
|
15
|
+
<figcaption>image2</figcaption></figure>
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
<figure>
|
20
|
+
<img src="http://path.to/image" alt="image3" id="image3" title="Image title" style="width:40px;" />
|
21
|
+
<figcaption>image3</figcaption></figure>
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
|
26
|
+
<figure>
|
27
|
+
<img src="http://path.to/image" alt="image4" id="image4" title="Image title" />
|
28
|
+
<figcaption>image4</figcaption></figure>
|
29
|
+
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
|
34
|
+
<p>And <a href="http://path.to/link.html" title="Some Link" class="external" style="border: solid black 1px;">the link</a>, <a href="http://path.to/link.html" title="Some Link" class="external" style="border: solid black 1px;">link</a> , and <a href="http://path.to/link.html" title="Some Link" class="external" style="border: solid black 1px;"></a> again.</p>
|
35
|
+
|
36
|
+
<p><a href="http://path.to/link.html" title="Some Link" class="external" style="border: solid black 1px;">link</a></p>
|
37
|
+
|
38
|
+
<p><a href="http://path.to/link.html" title="Some Link" class="external" style="border: solid black 1px;">the link</a></p>
|
39
|
+
|
40
|
+
<p>Test various identifiers:</p>
|
41
|
+
|
42
|
+
<p><a href="http://path.to/link-a.html">link-a</a></p>
|
43
|
+
|
44
|
+
<p><a href="http://path.to/link-1.html">link–1</a></p>
|
45
|
+
|
46
|
+
<p><a href="http://path.to/link--2.html">link–2</a></p>
|
47
|
+
|
48
|
+
<p><a href="http://path.to/link--a.html">link–a</a></p>
|
49
|
+
|
50
|
+
<p><a href="http://path.to/link---1.html">link—1</a></p>
|
51
|
+
|
52
|
+
<p>Test link and markup <img src="http://path.to/image" alt="and this but not that" id="image-attr" title="Test *this* and **this**" /></p>
|
53
|
+
</body>
|
54
|
+
</html>
|
@@ -0,0 +1,60 @@
|
|
1
|
+
\input{mmd-article-header}
|
2
|
+
\def\mytitle{Link Attributes Test}
|
3
|
+
\input{mmd-article-begin-doc}
|
4
|
+
This is a formatted \includegraphics[width=40pt,height=400pt]{http://path.to/image}
|
5
|
+
and a \href{http://path.to/link.html}{link}\footnote{\href{http://path.to/link.html}{http:/\slash path.to\slash link.html}} with attributes.
|
6
|
+
|
7
|
+
\begin{figure}[htbp]
|
8
|
+
\centering
|
9
|
+
\includegraphics[keepaspectratio,width=\textwidth,height=400pt]{http://path.to/image}
|
10
|
+
\caption{image2}
|
11
|
+
\label{image2}
|
12
|
+
\end{figure}
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
\begin{figure}[htbp]
|
17
|
+
\centering
|
18
|
+
\includegraphics[keepaspectratio,width=40pt,height=0.75\textheight]{http://path.to/image}
|
19
|
+
\caption{image3}
|
20
|
+
\label{image3}
|
21
|
+
\end{figure}
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
|
26
|
+
\begin{figure}[htbp]
|
27
|
+
\centering
|
28
|
+
\includegraphics[keepaspectratio,width=\textwidth,height=0.75\textheight]{http://path.to/image}
|
29
|
+
\caption{image4}
|
30
|
+
\label{image4}
|
31
|
+
\end{figure}
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
And \href{http://path.to/link.html}{the link}\footnote{\href{http://path.to/link.html}{http:/\slash path.to\slash link.html}}, \href{http://path.to/link.html}{link}\footnote{\href{http://path.to/link.html}{http:/\slash path.to\slash link.html}} , and \href{http://path.to/link.html}{}\footnote{\href{http://path.to/link.html}{http:/\slash path.to\slash link.html}} again.
|
38
|
+
|
39
|
+
\href{http://path.to/link.html}{link}\footnote{\href{http://path.to/link.html}{http:/\slash path.to\slash link.html}}
|
40
|
+
|
41
|
+
\href{http://path.to/link.html}{the link}\footnote{\href{http://path.to/link.html}{http:/\slash path.to\slash link.html}}
|
42
|
+
|
43
|
+
Test various identifiers:
|
44
|
+
|
45
|
+
\href{http://path.to/link-a.html}{link-a}\footnote{\href{http://path.to/link-a.html}{http:/\slash path.to\slash link-a.html}}
|
46
|
+
|
47
|
+
\href{http://path.to/link-1.html}{link--1}\footnote{\href{http://path.to/link-1.html}{http:/\slash path.to\slash link-1.html}}
|
48
|
+
|
49
|
+
\href{http://path.to/link--2.html}{link--2}\footnote{\href{http://path.to/link--2.html}{http:/\slash path.to\slash link--2.html}}
|
50
|
+
|
51
|
+
\href{http://path.to/link--a.html}{link--a}\footnote{\href{http://path.to/link--a.html}{http:/\slash path.to\slash link--a.html}}
|
52
|
+
|
53
|
+
\href{http://path.to/link---1.html}{link---1}\footnote{\href{http://path.to/link---1.html}{http:/\slash path.to\slash link---1.html}}
|
54
|
+
|
55
|
+
Test link and markup \includegraphics[keepaspectratio,width=\textwidth,height=0.75\textheight]{http://path.to/image}
|
56
|
+
|
57
|
+
|
58
|
+
\input{mmd-memoir-footer}
|
59
|
+
|
60
|
+
\end{document}
|
@@ -0,0 +1,50 @@
|
|
1
|
+
latex input: mmd-article-header
|
2
|
+
Title: Link Attributes Test
|
3
|
+
latex input: mmd-article-begin-doc
|
4
|
+
latex footer: mmd-memoir-footer
|
5
|
+
|
6
|
+
This is a formatted ![image][] and a [link][] with attributes.
|
7
|
+
|
8
|
+
![image2]
|
9
|
+
|
10
|
+
![image3]
|
11
|
+
|
12
|
+
![image4]
|
13
|
+
|
14
|
+
And [the link][link], [link] , and [][link] again.
|
15
|
+
|
16
|
+
[link]
|
17
|
+
|
18
|
+
[the link][link]
|
19
|
+
|
20
|
+
[image]: http://path.to/image "Image title" width="40px" height="400px"
|
21
|
+
[image2]: http://path.to/image "Image title" height="400px"
|
22
|
+
[image3]: http://path.to/image "Image title" width="40px"
|
23
|
+
[image4]: http://path.to/image "Image title"
|
24
|
+
[link]: http://path.to/link.html "Some Link" class=external
|
25
|
+
style="border: solid black 1px;"
|
26
|
+
|
27
|
+
|
28
|
+
Test various identifiers:
|
29
|
+
|
30
|
+
[link-a]
|
31
|
+
|
32
|
+
[link-1]
|
33
|
+
|
34
|
+
[link--2]
|
35
|
+
|
36
|
+
[link--a]
|
37
|
+
|
38
|
+
[link---1]
|
39
|
+
|
40
|
+
|
41
|
+
[link-a]: http://path.to/link-a.html
|
42
|
+
[link-1]: http://path.to/link-1.html
|
43
|
+
[link--a]: http://path.to/link--a.html
|
44
|
+
[link--2]: http://path.to/link--2.html
|
45
|
+
[link---1]: http://path.to/link---1.html
|
46
|
+
|
47
|
+
|
48
|
+
Test link and markup ![and *this* but not **that**][image-attr]
|
49
|
+
|
50
|
+
[image-attr]: http://path.to/image "Test *this* and **this**"
|
@@ -0,0 +1,20 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
|
2
|
+
<!DOCTYPE html>
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml">
|
4
|
+
<head>
|
5
|
+
<meta name="latexinput" content="mmd-article-header"/>
|
6
|
+
<title>MMD List Parsing Test</title>
|
7
|
+
<meta name="latexinput" content="mmd-article-begin-doc"/>
|
8
|
+
<meta name="latexfooter" content="mmd-memoir-footer"/>
|
9
|
+
</head>
|
10
|
+
<body>
|
11
|
+
<ul>
|
12
|
+
<li><p>Item 1</p>
|
13
|
+
|
14
|
+
<p>Second paragraph of item 1.
|
15
|
+
The following blank line has 4 spaces.</p></li>
|
16
|
+
</ul>
|
17
|
+
|
18
|
+
<p>Paragraph following the list that shouldn’t be part of the list item.</p>
|
19
|
+
</body>
|
20
|
+
</html>
|
@@ -0,0 +1,17 @@
|
|
1
|
+
\input{mmd-article-header}
|
2
|
+
\def\mytitle{MMD List Parsing Test}
|
3
|
+
\input{mmd-article-begin-doc}
|
4
|
+
|
5
|
+
\begin{itemize}
|
6
|
+
\item Item 1
|
7
|
+
|
8
|
+
Second paragraph of item 1.
|
9
|
+
The following blank line has 4 spaces.
|
10
|
+
|
11
|
+
\end{itemize}
|
12
|
+
|
13
|
+
Paragraph following the list that shouldn't be part of the list item.
|
14
|
+
|
15
|
+
\input{mmd-memoir-footer}
|
16
|
+
|
17
|
+
\end{document}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
latex input: mmd-article-header
|
2
|
+
Title: MMD List Parsing Test
|
3
|
+
latex input: mmd-article-begin-doc
|
4
|
+
latex footer: mmd-memoir-footer
|
5
|
+
|
6
|
+
- Item 1
|
7
|
+
|
8
|
+
Second paragraph of item 1.
|
9
|
+
The following blank line has 4 spaces.
|
10
|
+
|
11
|
+
Paragraph following the list that shouldn't be part of the list item.
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
|
2
|
+
<!DOCTYPE html>
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml">
|
4
|
+
<head>
|
5
|
+
<meta name="latexinput" content="mmd-article-header"/>
|
6
|
+
<title>Markdown in HTML Test</title>
|
7
|
+
<meta name="latexmode" content="memoir"/>
|
8
|
+
<meta name="latexinput" content="mmd-article-begin-doc"/>
|
9
|
+
<meta name="latexfooter" content="mmd-memoir-footer"/>
|
10
|
+
</head>
|
11
|
+
<body>
|
12
|
+
<div>This is *not* Markdown **encoded**.</div>
|
13
|
+
<div>This <em>is</em> Markdown <strong>encoded</strong>.</div>
|
14
|
+
<div>This <em>is</em> Markdown <strong>encoded</strong>.</div>
|
15
|
+
<div>This <em>is</em> Markdown <strong>encoded</strong>.</div>
|
16
|
+
<div>This <em>is</em> Markdown <strong>encoded</strong>.</div>
|
17
|
+
<div>This <em>is</em> Markdown <strong>encoded</strong>.</div>
|
18
|
+
</body>
|
19
|
+
</html>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
\input{mmd-article-header}
|
2
|
+
\def\mytitle{Markdown in HTML Test}
|
3
|
+
\def\latexmode{memoir}
|
4
|
+
\input{mmd-article-begin-doc}
|
5
|
+
This \emph{is} Markdown \textbf{encoded}.
|
6
|
+
This \emph{is} Markdown \textbf{encoded}.
|
7
|
+
This \emph{is} Markdown \textbf{encoded}.
|
8
|
+
This \emph{is} Markdown \textbf{encoded}.
|
9
|
+
This \emph{is} Markdown \textbf{encoded}.
|
10
|
+
|
11
|
+
\input{mmd-memoir-footer}
|
12
|
+
|
13
|
+
\end{document}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
latex input: mmd-article-header
|
2
|
+
Title: Markdown in HTML Test
|
3
|
+
latex mode: memoir
|
4
|
+
Base Header Level: 2
|
5
|
+
latex input: mmd-article-begin-doc
|
6
|
+
latex footer: mmd-memoir-footer
|
7
|
+
|
8
|
+
<div>This is *not* Markdown **encoded**.</div>
|
9
|
+
|
10
|
+
<div markdown=1>This *is* Markdown **encoded**.</div>
|
11
|
+
|
12
|
+
<div markdown="1">This *is* Markdown **encoded**.</div>
|
13
|
+
|
14
|
+
<div markdown = 1>This *is* Markdown **encoded**.</div>
|
15
|
+
|
16
|
+
<div markdown = "1">This *is* Markdown **encoded**.</div>
|
17
|
+
|
18
|
+
|
19
|
+
<div markdown = " 1 " >This *is* Markdown **encoded**.</div>
|
@@ -0,0 +1,21 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
|
2
|
+
<!DOCTYPE html>
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml">
|
4
|
+
<head>
|
5
|
+
<meta name="latexinput" content="mmd-article-header"/>
|
6
|
+
<title>MultiMarkdown Math Example</title>
|
7
|
+
<meta name="latexinput" content="mmd-article-begin-doc"/>
|
8
|
+
<meta name="latexfooter" content="mmd-memoir-footer"/>
|
9
|
+
<script type="text/javascript" src="http://localhost/~fletcher/math/mathjax/MathJax.js"></script>
|
10
|
+
</head>
|
11
|
+
<body>
|
12
|
+
<p>An example of math within a paragraph — <span class="math">\({e}^{i\pi }+1=0\)</span> — easy
|
13
|
+
enough.</p>
|
14
|
+
|
15
|
+
<p>And an equation on it’s own:</p>
|
16
|
+
|
17
|
+
<p><span class="math">\[ {x}_{1,2}=\frac{-b\pm \sqrt{{b}^{2}-4ac}}{2a} \]</span></p>
|
18
|
+
|
19
|
+
<p>That’s it.</p>
|
20
|
+
</body>
|
21
|
+
</html>
|