whatcanGOwrong
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
This directory contains test data for present's TestTestdata.
|
||||
Each file named *.p or *.md is expected to contain a present
|
||||
article, then a --- line, then the HTML output for that article.
|
||||
|
||||
By convention, testdata files with a .p extension use legacy present
|
||||
syntax, while testdata file with a .md extension use Markdown.
|
||||
This is only a convention: the Markdown syntax must still begi
|
||||
with "# " to be recognized as Markdown by the present parser.
|
||||
|
||||
Other files in this directory are supporting files for the articles.
|
||||
@@ -0,0 +1,24 @@
|
||||
# Title
|
||||
Subtitle
|
||||
|
||||
Name
|
||||
|
||||
## Heading
|
||||
|
||||
Text
|
||||
on two lines.
|
||||
|
||||
More text.
|
||||
|
||||
---
|
||||
<h1>Title</h1>
|
||||
<h2>Subtitle</h2>
|
||||
<author>
|
||||
<p>Name</p>
|
||||
</author>
|
||||
<section>
|
||||
<h2 id="TOC_1.">Heading</h2>
|
||||
<p>Text
|
||||
on two lines.</p>
|
||||
<p>More text.</p>
|
||||
</section>
|
||||
@@ -0,0 +1,24 @@
|
||||
Title
|
||||
Subtitle
|
||||
|
||||
Name
|
||||
|
||||
* Heading
|
||||
|
||||
Text
|
||||
on two lines.
|
||||
|
||||
More text.
|
||||
|
||||
---
|
||||
<h1>Title</h1>
|
||||
<h2>Subtitle</h2>
|
||||
<author>
|
||||
<p>Name</p>
|
||||
</author>
|
||||
<section>
|
||||
<h2 id="TOC_1.">Heading</h2>
|
||||
<p>Text
|
||||
on two lines.</p>
|
||||
<p>More text.</p>
|
||||
</section>
|
||||
@@ -0,0 +1,39 @@
|
||||
# Code
|
||||
|
||||
##
|
||||
|
||||
Code:
|
||||
|
||||
.code testdata/code.txt
|
||||
|
||||
Snippet:
|
||||
|
||||
.code testdata/code.txt /Snippet/
|
||||
|
||||
Highlight:
|
||||
|
||||
.code testdata/code.txt HL1
|
||||
|
||||
---
|
||||
<h1>Code</h1>
|
||||
<section>
|
||||
<p>Code:</p>
|
||||
<div class="code">
|
||||
<pre><span num="1">code file</span>
|
||||
<span num="2">Snippet</span>
|
||||
<span num="3">important</span>
|
||||
</pre>
|
||||
</div>
|
||||
<p>Snippet:</p>
|
||||
<div class="code">
|
||||
<pre><span num="2">Snippet</span>
|
||||
</pre>
|
||||
</div>
|
||||
<p>Highlight:</p>
|
||||
<div class="code">
|
||||
<pre><span num="1">code file</span>
|
||||
<span num="2">Snippet</span>
|
||||
<span num="3"><b>important</b></span>
|
||||
</pre>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,39 @@
|
||||
Code
|
||||
|
||||
*
|
||||
|
||||
Code:
|
||||
|
||||
.code testdata/code.txt
|
||||
|
||||
Snippet:
|
||||
|
||||
.code testdata/code.txt /Snippet/
|
||||
|
||||
Highlight:
|
||||
|
||||
.code testdata/code.txt HL1
|
||||
|
||||
---
|
||||
<h1>Code</h1>
|
||||
<section>
|
||||
<p>Code:</p>
|
||||
<div class="code">
|
||||
<pre><span num="1">code file</span>
|
||||
<span num="2">Snippet</span>
|
||||
<span num="3">important</span>
|
||||
</pre>
|
||||
</div>
|
||||
<p>Snippet:</p>
|
||||
<div class="code">
|
||||
<pre><span num="2">Snippet</span>
|
||||
</pre>
|
||||
</div>
|
||||
<p>Highlight:</p>
|
||||
<div class="code">
|
||||
<pre><span num="1">code file</span>
|
||||
<span num="2">Snippet</span>
|
||||
<span num="3"><b>important</b></span>
|
||||
</pre>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,3 @@
|
||||
code file
|
||||
Snippet
|
||||
important // HL1
|
||||
@@ -0,0 +1,34 @@
|
||||
# List
|
||||
|
||||
##
|
||||
|
||||
- Item 1
|
||||
on two lines.
|
||||
- Item 2.
|
||||
- Item 3.
|
||||
|
||||
- Item 4 in list despite preceding blank line.
|
||||
- Item 5.
|
||||
|
||||
---
|
||||
<h1>List</h1>
|
||||
<section>
|
||||
<ul>
|
||||
<li>
|
||||
<p>Item 1
|
||||
on two lines.</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>Item 2.</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>Item 3.</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>Item 4 in list despite preceding blank line.</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>Item 5.</p>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
@@ -0,0 +1,26 @@
|
||||
List
|
||||
|
||||
*
|
||||
|
||||
- Item 1
|
||||
on two lines.
|
||||
- Item 2.
|
||||
- Item 3.
|
||||
|
||||
- Item 1 in new list.
|
||||
- Item 2.
|
||||
|
||||
---
|
||||
<h1>List</h1>
|
||||
<section>
|
||||
<ul>
|
||||
<li>Item 1
|
||||
on two lines.</li>
|
||||
<li>Item 2.</li>
|
||||
<li>Item 3.</li>
|
||||
</ul>
|
||||
<ul>
|
||||
<li>Item 1 in new list.</li>
|
||||
<li>Item 2.</li>
|
||||
</ul>
|
||||
</section>
|
||||
@@ -0,0 +1 @@
|
||||
<!-- media.html -->
|
||||
@@ -0,0 +1,22 @@
|
||||
# Media
|
||||
|
||||
##
|
||||
|
||||
.image gopher.jpg _ 100
|
||||
.caption A gopher.
|
||||
|
||||
.iframe https://golang.org/
|
||||
|
||||
.link https://golang.org/ The Gopher's home.
|
||||
|
||||
.html testdata/media.html
|
||||
|
||||
---
|
||||
<h1>Media</h1>
|
||||
<section>
|
||||
<img src="gopher.jpg" width="100" alt="">
|
||||
<figcaption>A gopher.</figcaption>
|
||||
<iframe src="https://golang.org/"></iframe>
|
||||
<p class="link"><a href="https://golang.org/">The Gopher's home.</a></p>
|
||||
<!-- media.html -->
|
||||
</section>
|
||||
@@ -0,0 +1,24 @@
|
||||
Media
|
||||
|
||||
*
|
||||
|
||||
The Gopher
|
||||
.image gopher.jpg _ 100
|
||||
.caption A gopher.
|
||||
|
||||
.iframe https://golang.org/
|
||||
|
||||
.link https://golang.org/ The Gopher's home.
|
||||
|
||||
.html testdata/media.html
|
||||
|
||||
---
|
||||
<h1>Media</h1>
|
||||
<section>
|
||||
<p>The Gopher</p>
|
||||
<img src="gopher.jpg" width="100" alt="">
|
||||
<figcaption>A gopher.</figcaption>
|
||||
<iframe src="https://golang.org/"></iframe>
|
||||
<p class="link"><a href="https://golang.org/">The Gopher's home.</a></p>
|
||||
<!-- media.html -->
|
||||
</section>
|
||||
@@ -0,0 +1,39 @@
|
||||
# Pre
|
||||
|
||||
##
|
||||
|
||||
Pre with tab:
|
||||
|
||||
code block
|
||||
on two lines
|
||||
|
||||
Text with space:
|
||||
|
||||
now a text block
|
||||
on two lines
|
||||
|
||||
Pre with blank line:
|
||||
|
||||
before
|
||||
|
||||
after
|
||||
|
||||
EOF
|
||||
|
||||
---
|
||||
<h1>Pre</h1>
|
||||
<section>
|
||||
<p>Pre with tab:</p>
|
||||
<pre><code>code block
|
||||
on two lines
|
||||
</code></pre>
|
||||
<p>Text with space:</p>
|
||||
<p>now a text block
|
||||
on two lines</p>
|
||||
<p>Pre with blank line:</p>
|
||||
<pre><code>before
|
||||
|
||||
after
|
||||
</code></pre>
|
||||
<p>EOF</p>
|
||||
</section>
|
||||
@@ -0,0 +1,37 @@
|
||||
Pre
|
||||
|
||||
*
|
||||
|
||||
Pre with tab:
|
||||
|
||||
code block
|
||||
on two lines
|
||||
|
||||
Pre with space:
|
||||
|
||||
code block
|
||||
on two lines
|
||||
|
||||
Pre with blank line:
|
||||
|
||||
before
|
||||
|
||||
after
|
||||
|
||||
EOF
|
||||
|
||||
---
|
||||
<h1>Pre</h1>
|
||||
<section>
|
||||
<p>Pre with tab:</p>
|
||||
<pre>code block
|
||||
on two lines</pre>
|
||||
<p>Pre with space:</p>
|
||||
<pre>code block
|
||||
on two lines</pre>
|
||||
<p>Pre with blank line:</p>
|
||||
<pre>before
|
||||
|
||||
after</pre>
|
||||
<p>EOF</p>
|
||||
</section>
|
||||
Reference in New Issue
Block a user