rpeg-multimarkdown 0.1.1 → 0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/README.markdown +7 -4
- data/Rakefile +3 -3
- data/bin/rpeg-multimarkdown +7 -7
- data/ext/extconf.rb +2 -2
- data/ext/markdown.c +14 -0
- data/ext/markdown_lib.c +72 -18
- data/ext/markdown_lib.h +18 -8
- data/ext/markdown_output.c +187 -58
- data/ext/markdown_parser.c +8315 -6224
- data/ext/markdown_peg.h +5 -4
- data/ext/odf.c +7 -1
- data/ext/odf.h +8 -0
- data/ext/parsing_functions.c +42 -2
- data/ext/parsing_functions.h +17 -0
- data/ext/utility_functions.c +60 -56
- data/ext/utility_functions.h +93 -0
- data/lib/peg_multimarkdown.rb +16 -16
- data/test/MultiMarkdownTest/BeamerTests/Beamer-Tables.tex +2 -2
- data/test/MultiMarkdownTest/CompatibilityTests/Automatic Labels.html +35 -0
- data/test/MultiMarkdownTest/CompatibilityTests/Automatic Labels.text +45 -0
- data/test/MultiMarkdownTest/CompatibilityTests/Base Header Level.html +14 -0
- data/test/MultiMarkdownTest/CompatibilityTests/Base Header Level.text +16 -0
- data/test/MultiMarkdownTest/CompatibilityTests/BibTeX.html +9 -0
- data/test/MultiMarkdownTest/CompatibilityTests/BibTeX.text +10 -0
- data/test/MultiMarkdownTest/CompatibilityTests/Citations.html +40 -0
- data/test/MultiMarkdownTest/CompatibilityTests/Citations.text +42 -0
- data/test/MultiMarkdownTest/CompatibilityTests/Definition Lists.html +40 -0
- data/test/MultiMarkdownTest/CompatibilityTests/Definition Lists.text +39 -0
- data/test/MultiMarkdownTest/CompatibilityTests/Dutch.html +17 -0
- data/test/MultiMarkdownTest/CompatibilityTests/Dutch.text +17 -0
- data/test/MultiMarkdownTest/CompatibilityTests/Email.html +40 -0
- data/test/MultiMarkdownTest/CompatibilityTests/Email.text +31 -0
- data/test/MultiMarkdownTest/CompatibilityTests/English.html +17 -0
- data/test/MultiMarkdownTest/CompatibilityTests/English.text +17 -0
- data/test/MultiMarkdownTest/CompatibilityTests/Errors.html +9 -0
- data/test/MultiMarkdownTest/CompatibilityTests/Errors.text +11 -0
- data/test/MultiMarkdownTest/CompatibilityTests/Footnotes.html +23 -0
- data/test/MultiMarkdownTest/CompatibilityTests/Footnotes.text +25 -0
- data/test/MultiMarkdownTest/CompatibilityTests/French.html +17 -0
- data/test/MultiMarkdownTest/CompatibilityTests/French.text +17 -0
- data/test/MultiMarkdownTest/CompatibilityTests/German.html +17 -0
- data/test/MultiMarkdownTest/CompatibilityTests/German.text +17 -0
- data/test/MultiMarkdownTest/CompatibilityTests/GermanGuillemets.html +17 -0
- data/test/MultiMarkdownTest/CompatibilityTests/GermanGuillemets.text +17 -0
- data/test/MultiMarkdownTest/CompatibilityTests/Glossary.html +29 -0
- data/test/MultiMarkdownTest/CompatibilityTests/Glossary.text +28 -0
- data/test/MultiMarkdownTest/CompatibilityTests/Headers.html +42 -0
- data/test/MultiMarkdownTest/CompatibilityTests/Headers.text +51 -0
- data/test/MultiMarkdownTest/CompatibilityTests/Line Breaks.html +13 -0
- data/test/MultiMarkdownTest/CompatibilityTests/Line Breaks.text +15 -0
- data/test/MultiMarkdownTest/CompatibilityTests/Link Attributes.html +35 -0
- data/test/MultiMarkdownTest/CompatibilityTests/Link Attributes.text +51 -0
- data/test/MultiMarkdownTest/CompatibilityTests/List Parsing.html +13 -0
- data/test/MultiMarkdownTest/CompatibilityTests/List Parsing.text +11 -0
- data/test/MultiMarkdownTest/CompatibilityTests/MarkdownInHTML.html +13 -0
- data/test/MultiMarkdownTest/CompatibilityTests/MarkdownInHTML.text +19 -0
- data/test/MultiMarkdownTest/CompatibilityTests/Math.html +14 -0
- data/test/MultiMarkdownTest/CompatibilityTests/Math.text +15 -0
- data/test/MultiMarkdownTest/CompatibilityTests/MetaData.html +14 -0
- data/test/MultiMarkdownTest/CompatibilityTests/MetaData.text +14 -0
- data/test/MultiMarkdownTest/CompatibilityTests/NotMetaData.html +3 -0
- data/test/MultiMarkdownTest/CompatibilityTests/NotMetaData.text +4 -0
- data/test/MultiMarkdownTest/CompatibilityTests/Sanity.html +77 -0
- data/test/MultiMarkdownTest/CompatibilityTests/Sanity.text +77 -0
- data/test/MultiMarkdownTest/CompatibilityTests/SmartQuotes.html +22 -0
- data/test/MultiMarkdownTest/CompatibilityTests/SmartQuotes.text +22 -0
- data/test/MultiMarkdownTest/CompatibilityTests/Swedish.html +17 -0
- data/test/MultiMarkdownTest/CompatibilityTests/Swedish.text +17 -0
- data/test/MultiMarkdownTest/CompatibilityTests/Tables.html +65 -0
- data/test/MultiMarkdownTest/CompatibilityTests/Tables.text +71 -0
- data/test/MultiMarkdownTest/MemoirTests/Definition Lists.tex +5 -10
- data/test/MultiMarkdownTest/MemoirTests/Sanity.tex +2 -2
- data/test/MultiMarkdownTest/MemoirTests/Tables.tex +10 -10
- data/test/MultiMarkdownTest/MultiMarkdownTests/Automatic Labels.html +4 -2
- data/test/MultiMarkdownTest/MultiMarkdownTests/Base Header Level.html +4 -2
- data/test/MultiMarkdownTest/MultiMarkdownTests/BibTeX.html +4 -2
- data/test/MultiMarkdownTest/MultiMarkdownTests/Citations.html +6 -4
- data/test/MultiMarkdownTest/MultiMarkdownTests/Definition Lists.html +9 -12
- data/test/MultiMarkdownTest/MultiMarkdownTests/Definition Lists.tex +5 -10
- data/test/MultiMarkdownTest/MultiMarkdownTests/Dutch.html +4 -2
- data/test/MultiMarkdownTest/MultiMarkdownTests/Email.html +4 -2
- data/test/MultiMarkdownTest/MultiMarkdownTests/English.html +4 -2
- data/test/MultiMarkdownTest/MultiMarkdownTests/Errors.html +4 -2
- data/test/MultiMarkdownTest/MultiMarkdownTests/Footnotes.html +7 -5
- data/test/MultiMarkdownTest/MultiMarkdownTests/French.html +4 -2
- data/test/MultiMarkdownTest/MultiMarkdownTests/German.html +4 -2
- data/test/MultiMarkdownTest/MultiMarkdownTests/GermanGuillemets.html +4 -2
- data/test/MultiMarkdownTest/MultiMarkdownTests/Glossary.html +6 -4
- data/test/MultiMarkdownTest/MultiMarkdownTests/Headers.html +6 -2
- data/test/MultiMarkdownTest/MultiMarkdownTests/Headers.tex +2 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Headers.text +2 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Line Breaks.html +4 -2
- data/test/MultiMarkdownTest/MultiMarkdownTests/Link Attributes.html +4 -2
- data/test/MultiMarkdownTest/MultiMarkdownTests/List Parsing.html +4 -2
- data/test/MultiMarkdownTest/MultiMarkdownTests/MarkdownInHTML.html +4 -2
- data/test/MultiMarkdownTest/MultiMarkdownTests/Math.html +4 -2
- data/test/MultiMarkdownTest/MultiMarkdownTests/MetaData.html +4 -2
- data/test/MultiMarkdownTest/MultiMarkdownTests/NotMetaData.html +3 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/NotMetaData.tex +3 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/NotMetaData.text +4 -0
- data/test/MultiMarkdownTest/MultiMarkdownTests/Sanity.html +4 -2
- data/test/MultiMarkdownTest/MultiMarkdownTests/Sanity.tex +2 -2
- data/test/MultiMarkdownTest/MultiMarkdownTests/SmartQuotes.html +4 -2
- data/test/MultiMarkdownTest/MultiMarkdownTests/Swedish.html +4 -2
- data/test/MultiMarkdownTest/MultiMarkdownTests/Tables.html +45 -2
- data/test/MultiMarkdownTest/MultiMarkdownTests/Tables.tex +32 -10
- data/test/MultiMarkdownTest/MultiMarkdownTests/Tables.text +8 -0
- data/test/multimarkdown_test.rb +5 -5
- metadata +92 -50
@@ -0,0 +1,31 @@
|
|
1
|
+
latex input: mmd-article-header
|
2
|
+
Title: Email Test
|
3
|
+
latex input: mmd-article-begin-doc
|
4
|
+
latex footer: mmd-memoir-footer
|
5
|
+
|
6
|
+
Link: <user67@example.com>.
|
7
|
+
|
8
|
+
* In a list?
|
9
|
+
* <user67@example.com>
|
10
|
+
* It should.
|
11
|
+
|
12
|
+
> Blockquoted: <user67@example.com>
|
13
|
+
|
14
|
+
Auto-links should not occur here: `<user67@example.com>`
|
15
|
+
|
16
|
+
or here: <user67@example.com>
|
17
|
+
|
18
|
+
|
19
|
+
And with the mailto bit:
|
20
|
+
|
21
|
+
Link: <mailto:user67@example.com>.
|
22
|
+
|
23
|
+
* In a list?
|
24
|
+
* <mailto:user67@example.com>
|
25
|
+
* It should.
|
26
|
+
|
27
|
+
> Blockquoted: <mailto:user67@example.com>
|
28
|
+
|
29
|
+
Auto-links should not occur here: `<mailto:user67@example.com>`
|
30
|
+
|
31
|
+
or here: <mailto:user67@example.com>
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<p>latex input: mmd-article-header<br/>
|
2
|
+
Title: MultiMarkdown English Test<br/>
|
3
|
+
quoteslanguage: english<br/>
|
4
|
+
latex input: mmd-article-begin-doc<br/>
|
5
|
+
latex footer: mmd-memoir-footer </p>
|
6
|
+
|
7
|
+
<p>'this is a single quote'</p>
|
8
|
+
|
9
|
+
<p>"this is a double quote"</p>
|
10
|
+
|
11
|
+
<p>this isn't an apostrophe.</p>
|
12
|
+
|
13
|
+
<p>this is an em --- dash</p>
|
14
|
+
|
15
|
+
<p>this is an en -- dash</p>
|
16
|
+
|
17
|
+
<p>and an ellipsis...</p>
|
@@ -0,0 +1,17 @@
|
|
1
|
+
latex input: mmd-article-header
|
2
|
+
Title: MultiMarkdown English Test
|
3
|
+
quoteslanguage: english
|
4
|
+
latex input: mmd-article-begin-doc
|
5
|
+
latex footer: mmd-memoir-footer
|
6
|
+
|
7
|
+
'this is a single quote'
|
8
|
+
|
9
|
+
"this is a double quote"
|
10
|
+
|
11
|
+
this isn't an apostrophe.
|
12
|
+
|
13
|
+
this is an em --- dash
|
14
|
+
|
15
|
+
this is an en -- dash
|
16
|
+
|
17
|
+
and an ellipsis...
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<p>latex input: mmd-article-header<br/>
|
2
|
+
Title: MultiMarkdown Error Test<br/>
|
3
|
+
latex input: mmd-article-begin-doc<br/>
|
4
|
+
latex footer: mmd-memoir-footer </p>
|
5
|
+
|
6
|
+
<p>This document contains "errors" - the output shouldn't match what was
|
7
|
+
intended, but it shouldn't crash MMD.</p>
|
8
|
+
|
9
|
+
<p>This is a missing link reference [some text][missing] and ![missing image][missing2].</p>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
latex input: mmd-article-header
|
2
|
+
Title: MultiMarkdown Error Test
|
3
|
+
latex input: mmd-article-begin-doc
|
4
|
+
latex footer: mmd-memoir-footer
|
5
|
+
|
6
|
+
This document contains "errors" - the output shouldn't match what was
|
7
|
+
intended, but it shouldn't crash MMD.
|
8
|
+
|
9
|
+
|
10
|
+
This is a missing link reference [some text][missing] and ![missing image][missing2].
|
11
|
+
|
@@ -0,0 +1,23 @@
|
|
1
|
+
<p>latex input: mmd-article-header<br/>
|
2
|
+
Title: MultiMarkdown Footer Test<br/>
|
3
|
+
latex input: mmd-article-begin-doc<br/>
|
4
|
+
latex footer: mmd-memoir-footer </p>
|
5
|
+
|
6
|
+
<p>Here is some text containing a footnote.[^somesamplefootnote]</p>
|
7
|
+
|
8
|
+
<blockquote>
|
9
|
+
<p>And here is a footnote within a blockquote, should be labelled #2.[^secondnote]</p>
|
10
|
+
</blockquote>
|
11
|
+
|
12
|
+
<p>And this is a codeblock, that should not be a footnote:</p>
|
13
|
+
|
14
|
+
<pre><code>This is code.[^somesamplefootnote]
|
15
|
+
</code></pre>
|
16
|
+
|
17
|
+
<p>And this is a short footnote for testing.<a href="Finis">^shortnote</a></p>
|
18
|
+
|
19
|
+
<p>And now, reuse a footnote.<a href="Finis">^shortnote</a></p>
|
20
|
+
|
21
|
+
<p>[^somesamplefootnote]: Here is the text of the footnote itself. It also has a <a href="http://somelink.com">link</a>.</p>
|
22
|
+
|
23
|
+
<p>[^secondnote]: Note # 2.</p>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
latex input: mmd-article-header
|
2
|
+
Title: MultiMarkdown Footer Test
|
3
|
+
latex input: mmd-article-begin-doc
|
4
|
+
latex footer: mmd-memoir-footer
|
5
|
+
|
6
|
+
Here is some text containing a footnote.[^somesamplefootnote]
|
7
|
+
|
8
|
+
|
9
|
+
> And here is a footnote within a blockquote, should be labelled #2.[^secondnote]
|
10
|
+
|
11
|
+
And this is a codeblock, that should not be a footnote:
|
12
|
+
|
13
|
+
This is code.[^somesamplefootnote]
|
14
|
+
|
15
|
+
And this is a short footnote for testing.[^shortnote]
|
16
|
+
|
17
|
+
And now, reuse a footnote.[^shortnote]
|
18
|
+
|
19
|
+
[^somesamplefootnote]: Here is the text of the footnote itself. It also has a [link][somesamplefootnote].
|
20
|
+
|
21
|
+
[somesamplefootnote]:http://somelink.com
|
22
|
+
|
23
|
+
[^secondnote]: Note # 2.
|
24
|
+
|
25
|
+
[^shortnote]: Finis
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<p>latex input: mmd-article-header<br/>
|
2
|
+
Title: MultiMarkdown French Test<br/>
|
3
|
+
quoteslanguage: french<br/>
|
4
|
+
latex input: mmd-article-begin-doc<br/>
|
5
|
+
latex footer: mmd-memoir-footer </p>
|
6
|
+
|
7
|
+
<p>'this is a single quote'</p>
|
8
|
+
|
9
|
+
<p>"this is a double quote"</p>
|
10
|
+
|
11
|
+
<p>this isn't an apostrophe.</p>
|
12
|
+
|
13
|
+
<p>this is an em --- dash</p>
|
14
|
+
|
15
|
+
<p>this is an en -- dash</p>
|
16
|
+
|
17
|
+
<p>and an ellipsis...</p>
|
@@ -0,0 +1,17 @@
|
|
1
|
+
latex input: mmd-article-header
|
2
|
+
Title: MultiMarkdown French Test
|
3
|
+
quoteslanguage: french
|
4
|
+
latex input: mmd-article-begin-doc
|
5
|
+
latex footer: mmd-memoir-footer
|
6
|
+
|
7
|
+
'this is a single quote'
|
8
|
+
|
9
|
+
"this is a double quote"
|
10
|
+
|
11
|
+
this isn't an apostrophe.
|
12
|
+
|
13
|
+
this is an em --- dash
|
14
|
+
|
15
|
+
this is an en -- dash
|
16
|
+
|
17
|
+
and an ellipsis...
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<p>latex input: mmd-article-header<br/>
|
2
|
+
Title: MultiMarkdown German Test<br/>
|
3
|
+
quoteslanguage: german<br/>
|
4
|
+
latex input: mmd-article-begin-doc<br/>
|
5
|
+
latex footer: mmd-memoir-footer </p>
|
6
|
+
|
7
|
+
<p>'this is a single quote'</p>
|
8
|
+
|
9
|
+
<p>"this is a double quote"</p>
|
10
|
+
|
11
|
+
<p>this isn't an apostrophe.</p>
|
12
|
+
|
13
|
+
<p>this is an em --- dash</p>
|
14
|
+
|
15
|
+
<p>this is an en -- dash</p>
|
16
|
+
|
17
|
+
<p>and an ellipsis...</p>
|
@@ -0,0 +1,17 @@
|
|
1
|
+
latex input: mmd-article-header
|
2
|
+
Title: MultiMarkdown German Test
|
3
|
+
quoteslanguage: german
|
4
|
+
latex input: mmd-article-begin-doc
|
5
|
+
latex footer: mmd-memoir-footer
|
6
|
+
|
7
|
+
'this is a single quote'
|
8
|
+
|
9
|
+
"this is a double quote"
|
10
|
+
|
11
|
+
this isn't an apostrophe.
|
12
|
+
|
13
|
+
this is an em --- dash
|
14
|
+
|
15
|
+
this is an en -- dash
|
16
|
+
|
17
|
+
and an ellipsis...
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<p>latex input: mmd-article-header<br/>
|
2
|
+
Title: MultiMarkdown German Guillemets Test<br/>
|
3
|
+
quoteslanguage: germanguillemets<br/>
|
4
|
+
latex input: mmd-article-begin-doc<br/>
|
5
|
+
latex footer: mmd-memoir-footer </p>
|
6
|
+
|
7
|
+
<p>'this is a single quote'</p>
|
8
|
+
|
9
|
+
<p>"this is a double quote"</p>
|
10
|
+
|
11
|
+
<p>this isn't an apostrophe.</p>
|
12
|
+
|
13
|
+
<p>this is an em --- dash</p>
|
14
|
+
|
15
|
+
<p>this is an en -- dash</p>
|
16
|
+
|
17
|
+
<p>and an ellipsis...</p>
|
@@ -0,0 +1,17 @@
|
|
1
|
+
latex input: mmd-article-header
|
2
|
+
Title: MultiMarkdown German Guillemets Test
|
3
|
+
quoteslanguage: germanguillemets
|
4
|
+
latex input: mmd-article-begin-doc
|
5
|
+
latex footer: mmd-memoir-footer
|
6
|
+
|
7
|
+
'this is a single quote'
|
8
|
+
|
9
|
+
"this is a double quote"
|
10
|
+
|
11
|
+
this isn't an apostrophe.
|
12
|
+
|
13
|
+
this is an em --- dash
|
14
|
+
|
15
|
+
this is an en -- dash
|
16
|
+
|
17
|
+
and an ellipsis...
|
@@ -0,0 +1,29 @@
|
|
1
|
+
<p>latex input: mmd-article-header
|
2
|
+
Title: MultiMarkdown Glossary Test<br/>
|
3
|
+
CSS: http://fletcherpenney.net/css/document.css<br/>
|
4
|
+
latex input: mmd-article-begin-doc
|
5
|
+
latex footer: mmd-memoir-footer</p>
|
6
|
+
|
7
|
+
<p>MultiMarkdown has a special format for footnotes that should represent
|
8
|
+
glossary terms. This doesn't make much difference in XHTML (because there is
|
9
|
+
no such thing as a glossary in XHTML), but can be used to generate a glossary
|
10
|
+
within LaTeX documents.</p>
|
11
|
+
|
12
|
+
<p>For example, let's have an entry for <code>glossary</code>.[^glossary] And what about
|
13
|
+
ampersands?[^amp]</p>
|
14
|
+
|
15
|
+
<p>Since we want the ampersand entry to be sorted with the a's, and not with
|
16
|
+
symbols, we put in the optional sort key <code>ampersand</code> to control sorting.</p>
|
17
|
+
|
18
|
+
<pre><code>[^glossary]: glossary: Glossary
|
19
|
+
A section at the end ...
|
20
|
+
|
21
|
+
[^amp]: glossary: & (ampersand)
|
22
|
+
A punctuation mark ...
|
23
|
+
</code></pre>
|
24
|
+
|
25
|
+
<p>[^glossary]: glossary: Glossary
|
26
|
+
A section at the end ...</p>
|
27
|
+
|
28
|
+
<p>[^amp]: glossary: & (ampersand)
|
29
|
+
A punctuation mark ...</p>
|
@@ -0,0 +1,28 @@
|
|
1
|
+
latex input: mmd-article-header
|
2
|
+
Title: MultiMarkdown Glossary Test
|
3
|
+
CSS: http://fletcherpenney.net/css/document.css
|
4
|
+
latex input: mmd-article-begin-doc
|
5
|
+
latex footer: mmd-memoir-footer
|
6
|
+
|
7
|
+
MultiMarkdown has a special format for footnotes that should represent
|
8
|
+
glossary terms. This doesn't make much difference in XHTML (because there is
|
9
|
+
no such thing as a glossary in XHTML), but can be used to generate a glossary
|
10
|
+
within LaTeX documents.
|
11
|
+
|
12
|
+
For example, let's have an entry for `glossary`.[^glossary] And what about
|
13
|
+
ampersands?[^amp]
|
14
|
+
|
15
|
+
Since we want the ampersand entry to be sorted with the a's, and not with
|
16
|
+
symbols, we put in the optional sort key `ampersand` to control sorting.
|
17
|
+
|
18
|
+
[^glossary]: glossary: Glossary
|
19
|
+
A section at the end ...
|
20
|
+
|
21
|
+
[^amp]: glossary: & (ampersand)
|
22
|
+
A punctuation mark ...
|
23
|
+
|
24
|
+
[^glossary]: glossary: Glossary
|
25
|
+
A section at the end ...
|
26
|
+
|
27
|
+
[^amp]: glossary: & (ampersand)
|
28
|
+
A punctuation mark ...
|
@@ -0,0 +1,42 @@
|
|
1
|
+
<p>latex input: mmd-article-header<br/>
|
2
|
+
Title: MultiMarkdown Headers Test<br/>
|
3
|
+
latex mode: memoir<br/>
|
4
|
+
Base Header Level: 2<br/>
|
5
|
+
latex input: mmd-article-begin-doc<br/>
|
6
|
+
latex footer: mmd-memoir-footer </p>
|
7
|
+
|
8
|
+
<h2>Normal Header</h2>
|
9
|
+
|
10
|
+
<p>plain text</p>
|
11
|
+
|
12
|
+
<h2>Normal Header with trailing space</h2>
|
13
|
+
|
14
|
+
<h1>Normal Header with trailing space</h1>
|
15
|
+
|
16
|
+
<p>plain text</p>
|
17
|
+
|
18
|
+
<h2>Header with <a href="http://www.google.com">Link</a></h2>
|
19
|
+
|
20
|
+
<p>plain text</p>
|
21
|
+
|
22
|
+
<h2>Header with <a href="http://www.google.com">Link</a></h2>
|
23
|
+
|
24
|
+
<p>and more plain text</p>
|
25
|
+
|
26
|
+
<h2>Header with <a href="http://www.google.com">Link</a> and space</h2>
|
27
|
+
|
28
|
+
<p>and more plain text</p>
|
29
|
+
|
30
|
+
<p>The following should still be detected as headers:</p>
|
31
|
+
|
32
|
+
<h1>Broken label [ text [</h1>
|
33
|
+
|
34
|
+
<h2>Test Header 2 and [label]</h2>
|
35
|
+
|
36
|
+
<h2>Broken Reference Link [label][label2]</h2>
|
37
|
+
|
38
|
+
<h2>Reference link not label <a href="http://example.com/">label</a></h2>
|
39
|
+
|
40
|
+
<h2>Link <a href="http://example.net/">not label</a></h2>
|
41
|
+
|
42
|
+
<p>And link to [label2] and <a href="http://example.com/">label1</a> and [label].</p>
|
@@ -0,0 +1,51 @@
|
|
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/
|
50
|
+
|
51
|
+
And link to [label2] and [label1] and [label].
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<p>latex input: mmd-article-header<br/>
|
2
|
+
Title: Line Break Test<br/>
|
3
|
+
latex input: mmd-article-begin-doc<br/>
|
4
|
+
latex footer: mmd-memoir-footer </p>
|
5
|
+
|
6
|
+
<p>This is a paragraph.
|
7
|
+
This is the same paragraph.</p>
|
8
|
+
|
9
|
+
<p>New paragraph.<br/>
|
10
|
+
Second line in same paragraph.</p>
|
11
|
+
|
12
|
+
<p>New paragraph.<br/>
|
13
|
+
Second line in same paragraph with linebreak at end. </p>
|
@@ -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
|
+
|