mirror of
https://github.com/russross/blackfriday.git
synced 2024-03-22 13:40:34 +08:00
convert test files to unix format, fix a few broken ones
This commit is contained in:
parent
1e40ebaf47
commit
9ffeaf98a8
|
@ -58,10 +58,10 @@ func main() {
|
|||
html_flags |= blackfriday.HTML_SMARTYPANTS_LATEX_DASHES
|
||||
|
||||
// render the data into HTML (comment this out to deselect HTML)
|
||||
renderer := blackfriday.HtmlRenderer(html_flags)
|
||||
renderer := blackfriday.HtmlRenderer(html_flags)
|
||||
|
||||
// render the data into LaTeX (uncomment to select LaTeX)
|
||||
//renderer := blackfriday.LatexRenderer(0)
|
||||
// render the data into LaTeX (uncomment to select LaTeX)
|
||||
//renderer := blackfriday.LatexRenderer(0)
|
||||
|
||||
output := blackfriday.Markdown(input, renderer, extensions)
|
||||
|
||||
|
|
0
upskirtref/Amps and angle encoding_upskirt_ref.html → upskirtref/Amps and angle encoding.html
Executable file → Normal file
0
upskirtref/Amps and angle encoding_upskirt_ref.html → upskirtref/Amps and angle encoding.html
Executable file → Normal file
0
upskirtref/Amps and angle encoding.text
Executable file → Normal file
0
upskirtref/Amps and angle encoding.text
Executable file → Normal file
0
upskirtref/Auto links_upskirt_ref.html → upskirtref/Auto links.html
Executable file → Normal file
0
upskirtref/Auto links_upskirt_ref.html → upskirtref/Auto links.html
Executable file → Normal file
0
upskirtref/Auto links.text
Executable file → Normal file
0
upskirtref/Auto links.text
Executable file → Normal file
0
upskirtref/Backslash escapes_upskirt_ref.html → upskirtref/Backslash escapes.html
Executable file → Normal file
0
upskirtref/Backslash escapes_upskirt_ref.html → upskirtref/Backslash escapes.html
Executable file → Normal file
0
upskirtref/Backslash escapes.text
Executable file → Normal file
0
upskirtref/Backslash escapes.text
Executable file → Normal file
0
upskirtref/Blockquotes with code blocks_upskirt_ref.html → upskirtref/Blockquotes with code blocks.html
Executable file → Normal file
0
upskirtref/Blockquotes with code blocks_upskirt_ref.html → upskirtref/Blockquotes with code blocks.html
Executable file → Normal file
0
upskirtref/Blockquotes with code blocks.text
Executable file → Normal file
0
upskirtref/Blockquotes with code blocks.text
Executable file → Normal file
0
upskirtref/Code Blocks_upskirt_ref.html → upskirtref/Code Blocks.html
Executable file → Normal file
0
upskirtref/Code Blocks_upskirt_ref.html → upskirtref/Code Blocks.html
Executable file → Normal file
0
upskirtref/Code Blocks.text
Executable file → Normal file
0
upskirtref/Code Blocks.text
Executable file → Normal file
0
upskirtref/Code Spans_upskirt_ref.html → upskirtref/Code Spans.html
Executable file → Normal file
0
upskirtref/Code Spans_upskirt_ref.html → upskirtref/Code Spans.html
Executable file → Normal file
0
upskirtref/Code Spans.text
Executable file → Normal file
0
upskirtref/Code Spans.text
Executable file → Normal file
0
upskirtref/Hard-wrapped paragraphs with list-like lines.text
Executable file → Normal file
0
upskirtref/Hard-wrapped paragraphs with list-like lines.text
Executable file → Normal file
0
upskirtref/Horizontal rules_upskirt_ref.html → upskirtref/Horizontal rules.html
Executable file → Normal file
0
upskirtref/Horizontal rules_upskirt_ref.html → upskirtref/Horizontal rules.html
Executable file → Normal file
0
upskirtref/Horizontal rules.text
Executable file → Normal file
0
upskirtref/Horizontal rules.text
Executable file → Normal file
0
upskirtref/Inline HTML (Advanced)_upskirt_ref.html → upskirtref/Inline HTML (Advanced).html
Executable file → Normal file
0
upskirtref/Inline HTML (Advanced)_upskirt_ref.html → upskirtref/Inline HTML (Advanced).html
Executable file → Normal file
0
upskirtref/Inline HTML (Advanced).text
Executable file → Normal file
0
upskirtref/Inline HTML (Advanced).text
Executable file → Normal file
0
upskirtref/Inline HTML (Simple)_upskirt_ref.html → upskirtref/Inline HTML (Simple).html
Executable file → Normal file
0
upskirtref/Inline HTML (Simple)_upskirt_ref.html → upskirtref/Inline HTML (Simple).html
Executable file → Normal file
0
upskirtref/Inline HTML (Simple).text
Executable file → Normal file
0
upskirtref/Inline HTML (Simple).text
Executable file → Normal file
0
upskirtref/Inline HTML comments_upskirt_ref.html → upskirtref/Inline HTML comments.html
Executable file → Normal file
0
upskirtref/Inline HTML comments_upskirt_ref.html → upskirtref/Inline HTML comments.html
Executable file → Normal file
0
upskirtref/Inline HTML comments.text
Executable file → Normal file
0
upskirtref/Inline HTML comments.text
Executable file → Normal file
0
upskirtref/Links, inline style_upskirt_ref.html → upskirtref/Links, inline style.html
Executable file → Normal file
0
upskirtref/Links, inline style_upskirt_ref.html → upskirtref/Links, inline style.html
Executable file → Normal file
0
upskirtref/Links, inline style.text
Executable file → Normal file
0
upskirtref/Links, inline style.text
Executable file → Normal file
0
upskirtref/Links, reference style_upskirt_ref.html → upskirtref/Links, reference style.html
Executable file → Normal file
0
upskirtref/Links, reference style_upskirt_ref.html → upskirtref/Links, reference style.html
Executable file → Normal file
0
upskirtref/Links, reference style.text
Executable file → Normal file
0
upskirtref/Links, reference style.text
Executable file → Normal file
0
upskirtref/Links, shortcut references_upskirt_ref.html → upskirtref/Links, shortcut references.html
Executable file → Normal file
0
upskirtref/Links, shortcut references_upskirt_ref.html → upskirtref/Links, shortcut references.html
Executable file → Normal file
0
upskirtref/Links, shortcut references.text
Executable file → Normal file
0
upskirtref/Links, shortcut references.text
Executable file → Normal file
0
upskirtref/Literal quotes in titles_upskirt_ref.html → upskirtref/Literal quotes in titles.html
Executable file → Normal file
0
upskirtref/Literal quotes in titles_upskirt_ref.html → upskirtref/Literal quotes in titles.html
Executable file → Normal file
0
upskirtref/Literal quotes in titles.text
Executable file → Normal file
0
upskirtref/Literal quotes in titles.text
Executable file → Normal file
0
upskirtref/Markdown Documentation - Basics_upskirt_ref.html → upskirtref/Markdown Documentation - Basics.html
Executable file → Normal file
0
upskirtref/Markdown Documentation - Basics_upskirt_ref.html → upskirtref/Markdown Documentation - Basics.html
Executable file → Normal file
0
upskirtref/Markdown Documentation - Basics.text
Executable file → Normal file
0
upskirtref/Markdown Documentation - Basics.text
Executable file → Normal file
54
upskirtref/Markdown Documentation - Syntax_upskirt_ref.html → upskirtref/Markdown Documentation - Syntax.html
Executable file → Normal file
54
upskirtref/Markdown Documentation - Syntax_upskirt_ref.html → upskirtref/Markdown Documentation - Syntax.html
Executable file → Normal file
|
@ -9,36 +9,36 @@
|
|||
</ul>
|
||||
|
||||
<ul>
|
||||
<li> <a href="#overview">Overview</a>
|
||||
<li><a href="#overview">Overview</a>
|
||||
|
||||
<ul>
|
||||
<li> <a href="#philosophy">Philosophy</a></li>
|
||||
<li> <a href="#html">Inline HTML</a></li>
|
||||
<li> <a href="#autoescape">Automatic Escaping for Special Characters</a></li>
|
||||
<li><a href="#philosophy">Philosophy</a></li>
|
||||
<li><a href="#html">Inline HTML</a></li>
|
||||
<li><a href="#autoescape">Automatic Escaping for Special Characters</a></li>
|
||||
</ul></li>
|
||||
<li> <a href="#block">Block Elements</a>
|
||||
<li><a href="#block">Block Elements</a>
|
||||
|
||||
<ul>
|
||||
<li> <a href="#p">Paragraphs and Line Breaks</a></li>
|
||||
<li> <a href="#header">Headers</a></li>
|
||||
<li> <a href="#blockquote">Blockquotes</a></li>
|
||||
<li> <a href="#list">Lists</a></li>
|
||||
<li> <a href="#precode">Code Blocks</a></li>
|
||||
<li> <a href="#hr">Horizontal Rules</a></li>
|
||||
<li><a href="#p">Paragraphs and Line Breaks</a></li>
|
||||
<li><a href="#header">Headers</a></li>
|
||||
<li><a href="#blockquote">Blockquotes</a></li>
|
||||
<li><a href="#list">Lists</a></li>
|
||||
<li><a href="#precode">Code Blocks</a></li>
|
||||
<li><a href="#hr">Horizontal Rules</a></li>
|
||||
</ul></li>
|
||||
<li> <a href="#span">Span Elements</a>
|
||||
<li><a href="#span">Span Elements</a>
|
||||
|
||||
<ul>
|
||||
<li> <a href="#link">Links</a></li>
|
||||
<li> <a href="#em">Emphasis</a></li>
|
||||
<li> <a href="#code">Code</a></li>
|
||||
<li> <a href="#img">Images</a></li>
|
||||
<li><a href="#link">Links</a></li>
|
||||
<li><a href="#em">Emphasis</a></li>
|
||||
<li><a href="#code">Code</a></li>
|
||||
<li><a href="#img">Images</a></li>
|
||||
</ul></li>
|
||||
<li> <a href="#misc">Miscellaneous</a>
|
||||
<li><a href="#misc">Miscellaneous</a>
|
||||
|
||||
<ul>
|
||||
<li> <a href="#backslash">Backslash Escapes</a></li>
|
||||
<li> <a href="#autolink">Automatic Links</a></li>
|
||||
<li><a href="#backslash">Backslash Escapes</a></li>
|
||||
<li><a href="#autolink">Automatic Links</a></li>
|
||||
</ul></li>
|
||||
</ul>
|
||||
|
||||
|
@ -618,12 +618,12 @@ on a line by itself:</p>
|
|||
<p>That is:</p>
|
||||
|
||||
<ul>
|
||||
<li> Square brackets containing the link identifier (optionally
|
||||
<li>Square brackets containing the link identifier (optionally
|
||||
indented from the left margin using up to three spaces);</li>
|
||||
<li> followed by a colon;</li>
|
||||
<li> followed by one or more spaces (or tabs);</li>
|
||||
<li> followed by the URL for the link;</li>
|
||||
<li> optionally followed by a title attribute for the link, enclosed
|
||||
<li>followed by a colon;</li>
|
||||
<li>followed by one or more spaces (or tabs);</li>
|
||||
<li>followed by the URL for the link;</li>
|
||||
<li>optionally followed by a title attribute for the link, enclosed
|
||||
in double or single quotes.</li>
|
||||
</ul>
|
||||
|
||||
|
@ -856,10 +856,10 @@ for links, allowing for two styles: <em>inline</em> and <em>reference</em>.</p>
|
|||
<p>That is:</p>
|
||||
|
||||
<ul>
|
||||
<li> An exclamation mark: <code>!</code>;</li>
|
||||
<li> followed by a set of square brackets, containing the <code>alt</code>
|
||||
<li>An exclamation mark: <code>!</code>;</li>
|
||||
<li>followed by a set of square brackets, containing the <code>alt</code>
|
||||
attribute text for the image;</li>
|
||||
<li> followed by a set of parentheses, containing the URL or path to
|
||||
<li>followed by a set of parentheses, containing the URL or path to
|
||||
the image, and an optional <code>title</code> attribute enclosed in double
|
||||
or single quotes.</li>
|
||||
</ul>
|
0
upskirtref/Markdown Documentation - Syntax.text
Executable file → Normal file
0
upskirtref/Markdown Documentation - Syntax.text
Executable file → Normal file
0
upskirtref/Nested blockquotes_upskirt_ref.html → upskirtref/Nested blockquotes.html
Executable file → Normal file
0
upskirtref/Nested blockquotes_upskirt_ref.html → upskirtref/Nested blockquotes.html
Executable file → Normal file
0
upskirtref/Nested blockquotes.text
Executable file → Normal file
0
upskirtref/Nested blockquotes.text
Executable file → Normal file
32
upskirtref/Ordered and unordered lists_upskirt_ref.html → upskirtref/Ordered and unordered lists.html
Executable file → Normal file
32
upskirtref/Ordered and unordered lists_upskirt_ref.html → upskirtref/Ordered and unordered lists.html
Executable file → Normal file
|
@ -3,9 +3,9 @@
|
|||
<p>Asterisks tight:</p>
|
||||
|
||||
<ul>
|
||||
<li> asterisk 1</li>
|
||||
<li> asterisk 2</li>
|
||||
<li> asterisk 3</li>
|
||||
<li>asterisk 1</li>
|
||||
<li>asterisk 2</li>
|
||||
<li>asterisk 3</li>
|
||||
</ul>
|
||||
|
||||
<p>Asterisks loose:</p>
|
||||
|
@ -21,9 +21,9 @@
|
|||
<p>Pluses tight:</p>
|
||||
|
||||
<ul>
|
||||
<li> Plus 1</li>
|
||||
<li> Plus 2</li>
|
||||
<li> Plus 3</li>
|
||||
<li>Plus 1</li>
|
||||
<li>Plus 2</li>
|
||||
<li>Plus 3</li>
|
||||
</ul>
|
||||
|
||||
<p>Pluses loose:</p>
|
||||
|
@ -39,9 +39,9 @@
|
|||
<p>Minuses tight:</p>
|
||||
|
||||
<ul>
|
||||
<li> Minus 1</li>
|
||||
<li> Minus 2</li>
|
||||
<li> Minus 3</li>
|
||||
<li>Minus 1</li>
|
||||
<li>Minus 2</li>
|
||||
<li>Minus 3</li>
|
||||
</ul>
|
||||
|
||||
<p>Minuses loose:</p>
|
||||
|
@ -57,9 +57,9 @@
|
|||
<p>Tight:</p>
|
||||
|
||||
<ol>
|
||||
<li> First</li>
|
||||
<li> Second</li>
|
||||
<li> Third</li>
|
||||
<li>First</li>
|
||||
<li>Second</li>
|
||||
<li>Third</li>
|
||||
</ol>
|
||||
|
||||
<p>and:</p>
|
||||
|
@ -100,13 +100,13 @@ back.</p></li>
|
|||
<h2>Nested</h2>
|
||||
|
||||
<ul>
|
||||
<li> Tab
|
||||
<li>Tab
|
||||
|
||||
<ul>
|
||||
<li> Tab
|
||||
<li>Tab
|
||||
|
||||
<ul>
|
||||
<li> Tab</li>
|
||||
<li>Tab</li>
|
||||
</ul></li>
|
||||
</ul></li>
|
||||
</ul>
|
||||
|
@ -145,7 +145,7 @@ back.</p></li>
|
|||
<li><p>this</p>
|
||||
|
||||
<ul>
|
||||
<li> sub</li>
|
||||
<li>sub</li>
|
||||
</ul>
|
||||
|
||||
<p>that</p></li>
|
0
upskirtref/Ordered and unordered lists.text
Executable file → Normal file
0
upskirtref/Ordered and unordered lists.text
Executable file → Normal file
0
upskirtref/Strong and em together_upskirt_ref.html → upskirtref/Strong and em together.html
Executable file → Normal file
0
upskirtref/Strong and em together_upskirt_ref.html → upskirtref/Strong and em together.html
Executable file → Normal file
0
upskirtref/Strong and em together.text
Executable file → Normal file
0
upskirtref/Strong and em together.text
Executable file → Normal file
0
upskirtref/Tabs_upskirt_ref.html → upskirtref/Tabs.html
Executable file → Normal file
0
upskirtref/Tabs_upskirt_ref.html → upskirtref/Tabs.html
Executable file → Normal file
0
upskirtref/Tabs.text
Executable file → Normal file
0
upskirtref/Tabs.text
Executable file → Normal file
0
upskirtref/Tidyness_upskirt_ref.html → upskirtref/Tidyness.html
Executable file → Normal file
0
upskirtref/Tidyness_upskirt_ref.html → upskirtref/Tidyness.html
Executable file → Normal file
0
upskirtref/Tidyness.text
Executable file → Normal file
0
upskirtref/Tidyness.text
Executable file → Normal file
|
@ -35,7 +35,7 @@ func doFileTests(t *testing.T, files []string) {
|
|||
t.Errorf("Couldn't open '%s', error: %v\n", fn, err)
|
||||
continue
|
||||
}
|
||||
fn = filepath.Join("upskirtref", basename+"_upskirt_ref.html")
|
||||
fn = filepath.Join("upskirtref", basename+".html")
|
||||
expecteddata, err := ioutil.ReadFile(fn)
|
||||
if err != nil {
|
||||
t.Errorf("Couldn't open '%s', error: %v\n", fn, err)
|
||||
|
|
Loading…
Reference in New Issue
Block a user