mirror of
https://github.com/showdownjs/showdown.git
synced 2024-03-22 13:30:55 +08:00
Merge branch 'develop' into hotfix/issue_142
This commit is contained in:
commit
00db9d1c09
|
@ -95,6 +95,15 @@ module.exports = function (grunt) {
|
|||
reporter: 'spec'
|
||||
}
|
||||
},
|
||||
karlcow: {
|
||||
src: 'test/node/testsuite.karlcow.js',
|
||||
options: {
|
||||
globals: ['should'],
|
||||
timeout: 3000,
|
||||
ignoreLeaks: false,
|
||||
reporter: 'spec'
|
||||
}
|
||||
},
|
||||
browser: {
|
||||
src: 'test/browser/**/*.js',
|
||||
options: {
|
||||
|
|
BIN
dist/showdown.js
vendored
BIN
dist/showdown.js
vendored
Binary file not shown.
BIN
dist/showdown.js.map
vendored
BIN
dist/showdown.js.map
vendored
Binary file not shown.
BIN
dist/showdown.min.js
vendored
BIN
dist/showdown.min.js
vendored
Binary file not shown.
BIN
dist/showdown.min.js.map
vendored
BIN
dist/showdown.min.js.map
vendored
Binary file not shown.
|
@ -45,6 +45,7 @@
|
|||
"grunt-conventional-changelog": "^1.1.0",
|
||||
"grunt-jscs": "^1.2.0",
|
||||
"grunt-simple-mocha": "^0.4.0",
|
||||
"js-beautify": "^1.5.6",
|
||||
"jscs": "^1.10.0",
|
||||
"load-grunt-tasks": "^3.2.0",
|
||||
"mocha": "*",
|
||||
|
|
|
@ -24,7 +24,8 @@ showdown.Converter = function (converterOptions) {
|
|||
*/
|
||||
options = {
|
||||
omitExtraWLInCodeBlocks: false,
|
||||
prefixHeaderId: false
|
||||
prefixHeaderId: false,
|
||||
noHeaderId: false
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
|
@ -8,7 +8,8 @@ var showdown = {},
|
|||
extensions = {},
|
||||
defaultOptions = {
|
||||
omitExtraWLInCodeBlocks: false,
|
||||
prefixHeaderId: false
|
||||
prefixHeaderId: false,
|
||||
noHeaderId: false
|
||||
},
|
||||
globalOptions = JSON.parse(JSON.stringify(defaultOptions)); //clone default options out of laziness =P
|
||||
|
||||
|
|
|
@ -11,14 +11,17 @@ showdown.subParser('headers', function (text, options, globals) {
|
|||
// --------
|
||||
//
|
||||
text = text.replace(/^(.+)[ \t]*\n=+[ \t]*\n+/gm, function (wholeMatch, m1) {
|
||||
|
||||
var spanGamut = showdown.subParser('spanGamut')(m1, options, globals),
|
||||
hashBlock = '<h1 id="' + headerId(m1) + '">' + spanGamut + '</h1>';
|
||||
hID = (options.noHeaderId) ? '' : ' id="' + headerId(m1) + '"',
|
||||
hashBlock = '<h1' + hID + '>' + spanGamut + '</h1>';
|
||||
return showdown.subParser('hashBlock')(hashBlock, options, globals);
|
||||
});
|
||||
|
||||
text = text.replace(/^(.+)[ \t]*\n-+[ \t]*\n+/gm, function (matchFound, m1) {
|
||||
var spanGamut = showdown.subParser('spanGamut')(m1, options, globals),
|
||||
hashBlock = '<h2 id="' + headerId(m1) + '">' + spanGamut + '</h2>';
|
||||
hID = (options.noHeaderId) ? '' : ' id="' + headerId(m1) + '"',
|
||||
hashBlock = '<h2' + hID + '>' + spanGamut + '</h2>';
|
||||
return showdown.subParser('hashBlock')(hashBlock, options, globals);
|
||||
});
|
||||
|
||||
|
@ -41,9 +44,10 @@ showdown.subParser('headers', function (text, options, globals) {
|
|||
/gm, function() {...});
|
||||
*/
|
||||
|
||||
text = text.replace(/^(\#{1,6})[ \t]*(.+?)[ \t]*\#*\n+/gm, function (wholeMatch, m1, m2) {
|
||||
text = text.replace(/^(#{1,6})[ \t]*(.+?)[ \t]*#*\n+/gm, function (wholeMatch, m1, m2) {
|
||||
var span = showdown.subParser('spanGamut')(m2, options, globals),
|
||||
header = '<h' + m1.length + ' id="' + headerId(m2) + '">' + span + '</h' + m1.length + '>';
|
||||
hID = (options.noHeaderId) ? '' : ' id="' + headerId(m2) + '"',
|
||||
header = '<h' + m1.length + hID + '>' + span + '</h' + m1.length + '>';
|
||||
|
||||
return showdown.subParser('hashBlock')(header, options, globals);
|
||||
});
|
||||
|
|
|
@ -39,14 +39,11 @@ showdown.subParser('images', function (text, options, globals) {
|
|||
url = showdown.helper.escapeCharacters(url, '*_', false);
|
||||
var result = '<img src="' + url + '" alt="' + altText + '"';
|
||||
|
||||
// attacklab: Markdown.pl adds empty title attributes to images.
|
||||
// Replicate this bug.
|
||||
|
||||
//if (title != "") {
|
||||
title = title.replace(/"/g, '"');
|
||||
title = showdown.helper.escapeCharacters(title, '*_', false);
|
||||
result += ' title="' + title + '"';
|
||||
//}
|
||||
if (title) {
|
||||
title = title.replace(/"/g, '"');
|
||||
title = showdown.helper.escapeCharacters(title, '*_', false);
|
||||
result += ' title="' + title + '"';
|
||||
}
|
||||
|
||||
result += ' />';
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
showdown.subParser('stripLinkDefinitions', function (text, options, globals) {
|
||||
'use strict';
|
||||
|
||||
var regex = /^[ ]{0,3}\[(.+)]:[ \t]*\n?[ \t]*<?(\S+?)>?[ \t]*\n?[ \t]*(?:(\n*)["(](.+?)[")][ \t]*)?(?:\n+|(?=~0))/gm;
|
||||
var regex = /^[ ]{0,3}\[(.+)]:[ \t]*\n?[ \t]*<?(\S+?)>?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n+|(?=~0))/gm;
|
||||
|
||||
// attacklab: sentinel workarounds for lack of \A and \Z, safari\khtml bug
|
||||
text += '~0';
|
||||
|
@ -40,7 +40,7 @@ showdown.subParser('stripLinkDefinitions', function (text, options, globals) {
|
|||
return m3 + m4;
|
||||
|
||||
} else if (m4) {
|
||||
globals.gTitles[m1] = m4.replace(/"/g, '"');
|
||||
globals.gTitles[m1] = m4.replace(/"|'/g, '"');
|
||||
}
|
||||
|
||||
// Completely remove the definition from the text
|
||||
|
|
89
test/bootstrap.js
vendored
Normal file
89
test/bootstrap.js
vendored
Normal file
|
@ -0,0 +1,89 @@
|
|||
/**
|
||||
* Created by Estevao on 08-06-2015.
|
||||
*/
|
||||
|
||||
//jscs:disable requireCamelCaseOrUpperCaseIdentifiers
|
||||
require('source-map-support').install();
|
||||
require('chai').should();
|
||||
var fs = require('fs'),
|
||||
os = require('os'),
|
||||
beautify = require('js-beautify').html_beautify,
|
||||
beauOptions = {
|
||||
eol: os.EOL,
|
||||
indent_size: 2,
|
||||
preserve_newlines: false
|
||||
};
|
||||
|
||||
function getTestSuite(dir) {
|
||||
return fs.readdirSync(dir)
|
||||
.filter(filter())
|
||||
.map(map(dir));
|
||||
}
|
||||
|
||||
function filter() {
|
||||
return function (file) {
|
||||
var ext = file.slice(-3);
|
||||
return (ext === '.md');
|
||||
};
|
||||
}
|
||||
|
||||
function map(dir) {
|
||||
return function (file) {
|
||||
var name = file.replace('.md', ''),
|
||||
htmlPath = dir + name + '.html',
|
||||
html = fs.readFileSync(htmlPath, 'utf8'),
|
||||
mdPath = dir + name + '.md',
|
||||
md = fs.readFileSync(mdPath, 'utf8');
|
||||
|
||||
return {
|
||||
name: name,
|
||||
input: md,
|
||||
expected: html
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
function assertion(testCase, converter) {
|
||||
return function () {
|
||||
testCase.actual = converter.makeHtml(testCase.input);
|
||||
testCase = normalize(testCase);
|
||||
|
||||
// Compare
|
||||
testCase.actual.should.equal(testCase.expected);
|
||||
};
|
||||
}
|
||||
|
||||
//Normalize input/output
|
||||
function normalize(testCase) {
|
||||
|
||||
// Normalize line returns
|
||||
testCase.expected = testCase.expected.replace(/(\r\n)|\n|\r/g, '\n');
|
||||
testCase.actual = testCase.actual.replace(/(\r\n)|\n|\r/g, '\n');
|
||||
|
||||
// Ignore all leading/trailing whitespace
|
||||
testCase.expected = testCase.expected.split('\n').map(function (x) {
|
||||
return x.trim();
|
||||
}).join('\n');
|
||||
testCase.actual = testCase.actual.split('\n').map(function (x) {
|
||||
return x.trim();
|
||||
}).join('\n');
|
||||
|
||||
// Remove extra lines
|
||||
testCase.expected = testCase.expected.trim();
|
||||
testCase.actual = testCase.actual.trim();
|
||||
|
||||
//Beautify
|
||||
testCase.expected = beautify(testCase.expected, beauOptions);
|
||||
testCase.actual = beautify(testCase.actual, beauOptions);
|
||||
|
||||
// Normalize line returns
|
||||
testCase.expected = testCase.expected.replace(/(\r\n)|\n|\r/g, os.EOL);
|
||||
testCase.actual = testCase.actual.replace(/(\r\n)|\n|\r/g, os.EOL);
|
||||
|
||||
return testCase;
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
getTestSuite: getTestSuite,
|
||||
assertion: assertion
|
||||
};
|
|
@ -1,4 +1,4 @@
|
|||
<p><img src="/path/to/img.jpg" alt="Alt text" title="" /></p>
|
||||
<p><img src="/path/to/img.jpg" alt="Alt text" /></p>
|
||||
|
||||
<p><img src="/path/to/img.jpg" alt="Alt text" title="Optional title" /></p>
|
||||
|
||||
|
|
5
test/karlcow/2-paragraphs-hard-return-spaces.html
Normal file
5
test/karlcow/2-paragraphs-hard-return-spaces.html
Normal file
|
@ -0,0 +1,5 @@
|
|||
<p>This is a first paragraph,
|
||||
on multiple lines.</p>
|
||||
|
||||
<p>This is a second paragraph.
|
||||
There are spaces in between the two.</p>
|
5
test/karlcow/2-paragraphs-hard-return-spaces.md
Normal file
5
test/karlcow/2-paragraphs-hard-return-spaces.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
This is a first paragraph,
|
||||
on multiple lines.
|
||||
|
||||
This is a second paragraph.
|
||||
There are spaces in between the two.
|
5
test/karlcow/2-paragraphs-hard-return.html
Normal file
5
test/karlcow/2-paragraphs-hard-return.html
Normal file
|
@ -0,0 +1,5 @@
|
|||
<p>This is a first paragraph,
|
||||
on multiple lines.</p>
|
||||
|
||||
<p>This is a second paragraph
|
||||
which has multiple lines too.</p>
|
5
test/karlcow/2-paragraphs-hard-return.md
Normal file
5
test/karlcow/2-paragraphs-hard-return.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
This is a first paragraph,
|
||||
on multiple lines.
|
||||
|
||||
This is a second paragraph
|
||||
which has multiple lines too.
|
3
test/karlcow/2-paragraphs-line-returns.html
Normal file
3
test/karlcow/2-paragraphs-line-returns.html
Normal file
|
@ -0,0 +1,3 @@
|
|||
<p>A first paragraph.</p>
|
||||
|
||||
<p>A second paragraph after 3 CR (carriage return).</p>
|
5
test/karlcow/2-paragraphs-line-returns.md
Normal file
5
test/karlcow/2-paragraphs-line-returns.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
A first paragraph.
|
||||
|
||||
|
||||
|
||||
A second paragraph after 3 CR (carriage return).
|
3
test/karlcow/2-paragraphs-line-spaces.html
Normal file
3
test/karlcow/2-paragraphs-line-spaces.html
Normal file
|
@ -0,0 +1,3 @@
|
|||
<p>This a very long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long paragraph on 1 line.</p>
|
||||
|
||||
<p>A few spaces and a new long long long long long long long long long long long long long long long long paragraph on 1 line.</p>
|
3
test/karlcow/2-paragraphs-line-spaces.md
Normal file
3
test/karlcow/2-paragraphs-line-spaces.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
This a very long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long paragraph on 1 line.
|
||||
|
||||
A few spaces and a new long long long long long long long long long long long long long long long long paragraph on 1 line.
|
3
test/karlcow/2-paragraphs-line-tab.html
Normal file
3
test/karlcow/2-paragraphs-line-tab.html
Normal file
|
@ -0,0 +1,3 @@
|
|||
<p>This a very long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long paragraph on 1 line.</p>
|
||||
|
||||
<p>1 tab to separate them and a new long long long long long long long long long long long long long long long long paragraph on 1 line.</p>
|
3
test/karlcow/2-paragraphs-line-tab.md
Normal file
3
test/karlcow/2-paragraphs-line-tab.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
This a very long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long paragraph on 1 line.
|
||||
|
||||
1 tab to separate them and a new long long long long long long long long long long long long long long long long paragraph on 1 line.
|
3
test/karlcow/2-paragraphs-line.html
Normal file
3
test/karlcow/2-paragraphs-line.html
Normal file
|
@ -0,0 +1,3 @@
|
|||
<p>This a very long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long paragraph on 1 line.</p>
|
||||
|
||||
<p>A new long long long long long long long long long long long long long long long long paragraph on 1 line.</p>
|
3
test/karlcow/2-paragraphs-line.md
Normal file
3
test/karlcow/2-paragraphs-line.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
This a very long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long paragraph on 1 line.
|
||||
|
||||
A new long long long long long long long long long long long long long long long long paragraph on 1 line.
|
5
test/karlcow/EOL-CR+LF.html
Normal file
5
test/karlcow/EOL-CR+LF.html
Normal file
|
@ -0,0 +1,5 @@
|
|||
<p>These lines all end with end of line (EOL) sequences.</p>
|
||||
|
||||
<p>Seriously, they really do.</p>
|
||||
|
||||
<p>If you don't believe me: HEX EDIT!</p>
|
6
test/karlcow/EOL-CR+LF.md
Normal file
6
test/karlcow/EOL-CR+LF.md
Normal file
|
@ -0,0 +1,6 @@
|
|||
These lines all end with end of line (EOL) sequences.
|
||||
|
||||
Seriously, they really do.
|
||||
|
||||
If you don't believe me: HEX EDIT!
|
||||
|
1
test/karlcow/EOL-CR.html
Normal file
1
test/karlcow/EOL-CR.html
Normal file
|
@ -0,0 +1 @@
|
|||
<p>These lines all end with end of line (EOL) sequences.</p>
<p>Seriously, they really do.</p>
<p>If you don't believe me: HEX EDIT!</p>
|
1
test/karlcow/EOL-CR.md
Normal file
1
test/karlcow/EOL-CR.md
Normal file
|
@ -0,0 +1 @@
|
|||
These lines all end with end of line (EOL) sequences.
Seriously, they really do.
If you don't believe me: HEX EDIT!
|
5
test/karlcow/EOL-LF.html
Normal file
5
test/karlcow/EOL-LF.html
Normal file
|
@ -0,0 +1,5 @@
|
|||
<p>These lines all end with end of line (EOL) sequences.</p>
|
||||
|
||||
<p>Seriously, they really do.</p>
|
||||
|
||||
<p>If you don't believe me: HEX EDIT!</p>
|
6
test/karlcow/EOL-LF.md
Normal file
6
test/karlcow/EOL-LF.md
Normal file
|
@ -0,0 +1,6 @@
|
|||
These lines all end with end of line (EOL) sequences.
|
||||
|
||||
Seriously, they really do.
|
||||
|
||||
If you don't believe me: HEX EDIT!
|
||||
|
1
test/karlcow/ampersand-text-flow.html
Normal file
1
test/karlcow/ampersand-text-flow.html
Normal file
|
@ -0,0 +1 @@
|
|||
<p>An ampersand & in the text flow is escaped as an html entity.</p>
|
1
test/karlcow/ampersand-text-flow.md
Normal file
1
test/karlcow/ampersand-text-flow.md
Normal file
|
@ -0,0 +1 @@
|
|||
An ampersand & in the text flow is escaped as an html entity.
|
1
test/karlcow/ampersand-uri.html
Normal file
1
test/karlcow/ampersand-uri.html
Normal file
|
@ -0,0 +1 @@
|
|||
<p>There is an <a href="http://validator.w3.org/check?uri=http://www.w3.org/&verbose=1">ampersand</a> in the URI.</p>
|
1
test/karlcow/ampersand-uri.md
Normal file
1
test/karlcow/ampersand-uri.md
Normal file
|
@ -0,0 +1 @@
|
|||
There is an [ampersand](http://validator.w3.org/check?uri=http://www.w3.org/&verbose=1) in the URI.
|
1
test/karlcow/asterisk-near-text.html
Normal file
1
test/karlcow/asterisk-near-text.html
Normal file
|
@ -0,0 +1 @@
|
|||
<p>This is *an asterisk which should stay as is.</p>
|
1
test/karlcow/asterisk-near-text.md
Normal file
1
test/karlcow/asterisk-near-text.md
Normal file
|
@ -0,0 +1 @@
|
|||
This is \*an asterisk which should stay as is.
|
1
test/karlcow/asterisk.html
Normal file
1
test/karlcow/asterisk.html
Normal file
|
@ -0,0 +1 @@
|
|||
<p>This is * an asterisk which should stay as is.</p>
|
1
test/karlcow/asterisk.md
Normal file
1
test/karlcow/asterisk.md
Normal file
|
@ -0,0 +1 @@
|
|||
This is * an asterisk which should stay as is.
|
12
test/karlcow/backslash-escape.html
Normal file
12
test/karlcow/backslash-escape.html
Normal file
|
@ -0,0 +1,12 @@
|
|||
<p>\ backslash
|
||||
` backtick
|
||||
* asterisk
|
||||
_ underscore
|
||||
{} curly braces
|
||||
[] square brackets
|
||||
() parentheses
|
||||
# hash mark
|
||||
+ plus sign
|
||||
- minus sign (hyphen)
|
||||
. dot
|
||||
! exclamation mark</p>
|
12
test/karlcow/backslash-escape.md
Normal file
12
test/karlcow/backslash-escape.md
Normal file
|
@ -0,0 +1,12 @@
|
|||
\\ backslash
|
||||
\` backtick
|
||||
\* asterisk
|
||||
\_ underscore
|
||||
\{\} curly braces
|
||||
\[\] square brackets
|
||||
\(\) parentheses
|
||||
\# hash mark
|
||||
\+ plus sign
|
||||
\- minus sign (hyphen)
|
||||
\. dot
|
||||
\! exclamation mark
|
5
test/karlcow/blockquote-added-markup.html
Normal file
5
test/karlcow/blockquote-added-markup.html
Normal file
|
@ -0,0 +1,5 @@
|
|||
<blockquote>
|
||||
<h1>heading level 1</h1>
|
||||
|
||||
<p>paragraph</p>
|
||||
</blockquote>
|
3
test/karlcow/blockquote-added-markup.md
Normal file
3
test/karlcow/blockquote-added-markup.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
> # heading level 1
|
||||
>
|
||||
> paragraph
|
5
test/karlcow/blockquote-line-2-paragraphs.html
Normal file
5
test/karlcow/blockquote-line-2-paragraphs.html
Normal file
|
@ -0,0 +1,5 @@
|
|||
<blockquote>
|
||||
<p>A blockquote with a very long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long line.</p>
|
||||
|
||||
<p>and a second very long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long line.</p>
|
||||
</blockquote>
|
3
test/karlcow/blockquote-line-2-paragraphs.md
Normal file
3
test/karlcow/blockquote-line-2-paragraphs.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
>A blockquote with a very long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long line.
|
||||
|
||||
>and a second very long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long line.
|
3
test/karlcow/blockquote-line.html
Normal file
3
test/karlcow/blockquote-line.html
Normal file
|
@ -0,0 +1,3 @@
|
|||
<blockquote>
|
||||
<p>This a very long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long paragraph in a blockquote.</p>
|
||||
</blockquote>
|
1
test/karlcow/blockquote-line.md
Normal file
1
test/karlcow/blockquote-line.md
Normal file
|
@ -0,0 +1 @@
|
|||
>This a very long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long long paragraph in a blockquote.
|
5
test/karlcow/blockquote-multiline-1-space-begin.html
Normal file
5
test/karlcow/blockquote-multiline-1-space-begin.html
Normal file
|
@ -0,0 +1,5 @@
|
|||
<blockquote>
|
||||
<p>A blockquote
|
||||
on multiple lines
|
||||
like this.</p>
|
||||
</blockquote>
|
3
test/karlcow/blockquote-multiline-1-space-begin.md
Normal file
3
test/karlcow/blockquote-multiline-1-space-begin.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
> A blockquote
|
||||
> on multiple lines
|
||||
> like this.
|
5
test/karlcow/blockquote-multiline-1-space-end.html
Normal file
5
test/karlcow/blockquote-multiline-1-space-end.html
Normal file
|
@ -0,0 +1,5 @@
|
|||
<blockquote>
|
||||
<p>A blockquote
|
||||
on multiple lines
|
||||
like this. </p>
|
||||
</blockquote>
|
3
test/karlcow/blockquote-multiline-1-space-end.md
Normal file
3
test/karlcow/blockquote-multiline-1-space-end.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
>A blockquote
|
||||
>on multiple lines
|
||||
>like this.
|
8
test/karlcow/blockquote-multiline-2-paragraphs.html
Normal file
8
test/karlcow/blockquote-multiline-2-paragraphs.html
Normal file
|
@ -0,0 +1,8 @@
|
|||
<blockquote>
|
||||
<p>A blockquote
|
||||
on multiple lines
|
||||
like this.</p>
|
||||
|
||||
<p>But it has
|
||||
two paragraphs.</p>
|
||||
</blockquote>
|
6
test/karlcow/blockquote-multiline-2-paragraphs.md
Normal file
6
test/karlcow/blockquote-multiline-2-paragraphs.md
Normal file
|
@ -0,0 +1,6 @@
|
|||
>A blockquote
|
||||
>on multiple lines
|
||||
>like this.
|
||||
>
|
||||
>But it has
|
||||
>two paragraphs.
|
5
test/karlcow/blockquote-multiline.html
Normal file
5
test/karlcow/blockquote-multiline.html
Normal file
|
@ -0,0 +1,5 @@
|
|||
<blockquote>
|
||||
<p>A blockquote
|
||||
on multiple lines
|
||||
like this</p>
|
||||
</blockquote>
|
3
test/karlcow/blockquote-multiline.md
Normal file
3
test/karlcow/blockquote-multiline.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
>A blockquote
|
||||
>on multiple lines
|
||||
>like this
|
|
@ -0,0 +1,9 @@
|
|||
<blockquote>
|
||||
<p>This is the first level of quoting.</p>
|
||||
|
||||
<blockquote>
|
||||
<p>This is nested blockquote.</p>
|
||||
</blockquote>
|
||||
|
||||
<p>Back to the first level.</p>
|
||||
</blockquote>
|
5
test/karlcow/blockquote-nested-multiplereturn-level1.md
Normal file
5
test/karlcow/blockquote-nested-multiplereturn-level1.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
> This is the first level of quoting.
|
||||
>
|
||||
> > This is nested blockquote.
|
||||
>
|
||||
> Back to the first level.
|
7
test/karlcow/blockquote-nested-multiplereturn.html
Normal file
7
test/karlcow/blockquote-nested-multiplereturn.html
Normal file
|
@ -0,0 +1,7 @@
|
|||
<blockquote>
|
||||
<p>This is the first level of quoting.</p>
|
||||
|
||||
<blockquote>
|
||||
<p>This is nested blockquote.</p>
|
||||
</blockquote>
|
||||
</blockquote>
|
3
test/karlcow/blockquote-nested-multiplereturn.md
Normal file
3
test/karlcow/blockquote-nested-multiplereturn.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
> This is the first level of quoting.
|
||||
>
|
||||
> > This is nested blockquote.
|
8
test/karlcow/blockquote-nested-return-level1.html
Normal file
8
test/karlcow/blockquote-nested-return-level1.html
Normal file
|
@ -0,0 +1,8 @@
|
|||
<blockquote>
|
||||
<p>This is the first level of quoting.</p>
|
||||
|
||||
<blockquote>
|
||||
<p>This is nested blockquote.
|
||||
Back to the first level.</p>
|
||||
</blockquote>
|
||||
</blockquote>
|
3
test/karlcow/blockquote-nested-return-level1.md
Normal file
3
test/karlcow/blockquote-nested-return-level1.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
> This is the first level of quoting.
|
||||
> > This is nested blockquote.
|
||||
> Back to the first level.
|
7
test/karlcow/blockquote-nested.html
Normal file
7
test/karlcow/blockquote-nested.html
Normal file
|
@ -0,0 +1,7 @@
|
|||
<blockquote>
|
||||
<p>This is the first level of quoting.</p>
|
||||
|
||||
<blockquote>
|
||||
<p>This is nested blockquote.</p>
|
||||
</blockquote>
|
||||
</blockquote>
|
2
test/karlcow/blockquote-nested.md
Normal file
2
test/karlcow/blockquote-nested.md
Normal file
|
@ -0,0 +1,2 @@
|
|||
> This is the first level of quoting.
|
||||
> > This is nested blockquote.
|
3
test/karlcow/code-1-tab.html
Normal file
3
test/karlcow/code-1-tab.html
Normal file
|
@ -0,0 +1,3 @@
|
|||
<pre><code>10 PRINT HELLO INFINITE
|
||||
20 GOTO 10
|
||||
</code></pre>
|
2
test/karlcow/code-1-tab.md
Normal file
2
test/karlcow/code-1-tab.md
Normal file
|
@ -0,0 +1,2 @@
|
|||
10 PRINT HELLO INFINITE
|
||||
20 GOTO 10
|
3
test/karlcow/code-4-spaces-escaping.html
Normal file
3
test/karlcow/code-4-spaces-escaping.html
Normal file
|
@ -0,0 +1,3 @@
|
|||
<pre><code>10 PRINT < > &
|
||||
20 GOTO 10
|
||||
</code></pre>
|
2
test/karlcow/code-4-spaces-escaping.md
Normal file
2
test/karlcow/code-4-spaces-escaping.md
Normal file
|
@ -0,0 +1,2 @@
|
|||
10 PRINT < > &
|
||||
20 GOTO 10
|
3
test/karlcow/code-4-spaces.html
Normal file
3
test/karlcow/code-4-spaces.html
Normal file
|
@ -0,0 +1,3 @@
|
|||
<pre><code>10 PRINT HELLO INFINITE
|
||||
20 GOTO 10
|
||||
</code></pre>
|
2
test/karlcow/code-4-spaces.md
Normal file
2
test/karlcow/code-4-spaces.md
Normal file
|
@ -0,0 +1,2 @@
|
|||
10 PRINT HELLO INFINITE
|
||||
20 GOTO 10
|
1
test/karlcow/em-middle-word.html
Normal file
1
test/karlcow/em-middle-word.html
Normal file
|
@ -0,0 +1 @@
|
|||
<p>as<em>te</em>risks</p>
|
1
test/karlcow/em-middle-word.md
Normal file
1
test/karlcow/em-middle-word.md
Normal file
|
@ -0,0 +1 @@
|
|||
as*te*risks
|
1
test/karlcow/em-star.html
Normal file
1
test/karlcow/em-star.html
Normal file
|
@ -0,0 +1 @@
|
|||
<p><em>single asterisks</em></p>
|
1
test/karlcow/em-star.md
Normal file
1
test/karlcow/em-star.md
Normal file
|
@ -0,0 +1 @@
|
|||
*single asterisks*
|
1
test/karlcow/em-underscore.html
Normal file
1
test/karlcow/em-underscore.html
Normal file
|
@ -0,0 +1 @@
|
|||
<p><em>single underscores</em></p>
|
1
test/karlcow/em-underscore.md
Normal file
1
test/karlcow/em-underscore.md
Normal file
|
@ -0,0 +1 @@
|
|||
_single underscores_
|
1
test/karlcow/entities-text-flow.html
Normal file
1
test/karlcow/entities-text-flow.html
Normal file
|
@ -0,0 +1 @@
|
|||
<p>HTML entities are written using ampersand notation: ©</p>
|
1
test/karlcow/entities-text-flow.md
Normal file
1
test/karlcow/entities-text-flow.md
Normal file
|
@ -0,0 +1 @@
|
|||
HTML entities are written using ampersand notation: ©
|
1
test/karlcow/header-level1-equal-underlined.html
Normal file
1
test/karlcow/header-level1-equal-underlined.html
Normal file
|
@ -0,0 +1 @@
|
|||
<h1>This is an H1</h1>
|
2
test/karlcow/header-level1-equal-underlined.md
Normal file
2
test/karlcow/header-level1-equal-underlined.md
Normal file
|
@ -0,0 +1,2 @@
|
|||
This is an H1
|
||||
=============
|
1
test/karlcow/header-level1-hash-sign-closed.html
Normal file
1
test/karlcow/header-level1-hash-sign-closed.html
Normal file
|
@ -0,0 +1 @@
|
|||
<h1>This is an H1</h1>
|
1
test/karlcow/header-level1-hash-sign-closed.md
Normal file
1
test/karlcow/header-level1-hash-sign-closed.md
Normal file
|
@ -0,0 +1 @@
|
|||
# This is an H1 #
|
|
@ -0,0 +1 @@
|
|||
<p># This is an H1</p>
|
1
test/karlcow/header-level1-hash-sign-trailing-1-space.md
Normal file
1
test/karlcow/header-level1-hash-sign-trailing-1-space.md
Normal file
|
@ -0,0 +1 @@
|
|||
# This is an H1
|
|
@ -0,0 +1,3 @@
|
|||
<h1>this is an h1 with two trailing spaces</h1>
|
||||
|
||||
<p>A new paragraph.</p>
|
|
@ -0,0 +1,2 @@
|
|||
# this is an h1 with two trailing spaces
|
||||
A new paragraph.
|
1
test/karlcow/header-level1-hash-sign.html
Normal file
1
test/karlcow/header-level1-hash-sign.html
Normal file
|
@ -0,0 +1 @@
|
|||
<h1>This is an H1</h1>
|
1
test/karlcow/header-level1-hash-sign.md
Normal file
1
test/karlcow/header-level1-hash-sign.md
Normal file
|
@ -0,0 +1 @@
|
|||
# This is an H1
|
1
test/karlcow/header-level2-dash-underlined.html
Normal file
1
test/karlcow/header-level2-dash-underlined.html
Normal file
|
@ -0,0 +1 @@
|
|||
<h2>This is an H2</h2>
|
2
test/karlcow/header-level2-dash-underlined.md
Normal file
2
test/karlcow/header-level2-dash-underlined.md
Normal file
|
@ -0,0 +1,2 @@
|
|||
This is an H2
|
||||
-------------
|
1
test/karlcow/header-level2-hash-sign-closed.html
Normal file
1
test/karlcow/header-level2-hash-sign-closed.html
Normal file
|
@ -0,0 +1 @@
|
|||
<h2>This is an H2</h2>
|
1
test/karlcow/header-level2-hash-sign-closed.md
Normal file
1
test/karlcow/header-level2-hash-sign-closed.md
Normal file
|
@ -0,0 +1 @@
|
|||
## This is an H2 ##
|
1
test/karlcow/header-level2-hash-sign.html
Normal file
1
test/karlcow/header-level2-hash-sign.html
Normal file
|
@ -0,0 +1 @@
|
|||
<h2>This is an H2</h2>
|
1
test/karlcow/header-level2-hash-sign.md
Normal file
1
test/karlcow/header-level2-hash-sign.md
Normal file
|
@ -0,0 +1 @@
|
|||
## This is an H2
|
1
test/karlcow/header-level3-hash-sign-closed.html
Normal file
1
test/karlcow/header-level3-hash-sign-closed.html
Normal file
|
@ -0,0 +1 @@
|
|||
<h3>This is an H3</h3>
|
1
test/karlcow/header-level3-hash-sign-closed.md
Normal file
1
test/karlcow/header-level3-hash-sign-closed.md
Normal file
|
@ -0,0 +1 @@
|
|||
### This is an H3 ###
|
1
test/karlcow/header-level3-hash-sign.html
Normal file
1
test/karlcow/header-level3-hash-sign.html
Normal file
|
@ -0,0 +1 @@
|
|||
<h3>This is an H3</h3>
|
1
test/karlcow/header-level3-hash-sign.md
Normal file
1
test/karlcow/header-level3-hash-sign.md
Normal file
|
@ -0,0 +1 @@
|
|||
### This is an H3
|
1
test/karlcow/header-level4-hash-sign-closed.html
Normal file
1
test/karlcow/header-level4-hash-sign-closed.html
Normal file
|
@ -0,0 +1 @@
|
|||
<h4>This is an H4</h4>
|
1
test/karlcow/header-level4-hash-sign-closed.md
Normal file
1
test/karlcow/header-level4-hash-sign-closed.md
Normal file
|
@ -0,0 +1 @@
|
|||
#### This is an H4 ####
|
1
test/karlcow/header-level4-hash-sign.html
Normal file
1
test/karlcow/header-level4-hash-sign.html
Normal file
|
@ -0,0 +1 @@
|
|||
<h4>This is an H4</h4>
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user