diff --git a/.gitignore b/.gitignore index 98cb31e5b..47d8f5c78 100644 --- a/.gitignore +++ b/.gitignore @@ -6,8 +6,7 @@ packages/remark-parse/lib/*.d.ts packages/remark-parse/test.d.ts packages/remark-stringify/lib/*.d.ts packages/remark-stringify/test.d.ts -script/**/*.d.ts -test/**/*.d.ts +test.d.ts .DS_Store *.log yarn.lock diff --git a/package.json b/package.json index 6492553de..3178437dc 100644 --- a/package.json +++ b/package.json @@ -20,9 +20,6 @@ "@types/mdast": "^4.0.0", "@types/node": "^20.0.0", "c8": "^8.0.0", - "camelcase": "^8.0.0", - "execa": "^8.0.0", - "mdast-util-assert": "^5.0.0", "mdast-util-gfm": "^3.0.0", "micromark-extension-gfm": "^3.0.0", "prettier": "^3.0.0", @@ -39,7 +36,7 @@ "format": "prettier . --log-level warn --write && xo --fix", "prepack": "npm run build && npm run format", "test": "npm run build && npm run format && npm run test-coverage", - "test-api": "npm run test --workspaces && node --conditions development test/index.js", + "test-api": "node --conditions development test.js", "test-coverage": "c8 --100 --reporter lcov npm run test-api" }, "prettier": { diff --git a/packages/remark-cli/package.json b/packages/remark-cli/package.json index 98260f010..152c81147 100644 --- a/packages/remark-cli/package.json +++ b/packages/remark-cli/package.json @@ -36,9 +36,7 @@ "remark": "^14.0.0", "unified-args": "^11.0.0" }, - "scripts": { - "test": "node --conditions development test.js" - }, + "scripts": {}, "typeCoverage": { "atLeast": 100, "detail": true, diff --git a/packages/remark-cli/test.js b/packages/remark-cli/test.js deleted file mode 100644 index 5fea3bd79..000000000 --- a/packages/remark-cli/test.js +++ /dev/null @@ -1,78 +0,0 @@ -import assert from 'node:assert/strict' -import {fileURLToPath} from 'node:url' -import test from 'node:test' -import {execa} from 'execa' - -test('remark-cli', async (t) => { - await t.test('should show help on `--help`', async () => { - const bin = fileURLToPath(new URL('cli.js', import.meta.url)) - - const result = await execa(bin, ['--help']) - - assert.equal( - result.stdout, - [ - 'Usage: remark [options] [path | glob ...]', - '', - ' Command line interface to inspect and change markdown files with remark', - '', - 'Options:', - '', - ' --[no-]color specify color in report (on by default)', - ' --[no-]config search for configuration files (on by default)', - ' -e --ext specify extensions', - ' --file-path specify path to process as', - ' -f --frail exit with 1 on warnings', - ' -h --help output usage information', - ' --[no-]ignore search for ignore files (on by default)', - ' -i --ignore-path specify ignore file', - ' --ignore-path-resolve-from cwd|dir resolve patterns in `ignore-path` from its directory or cwd', - ' --ignore-pattern specify ignore patterns', - ' --inspect output formatted syntax tree', - ' -o --output [path] specify output location', - ' -q --quiet output only warnings and errors', - ' -r --rc-path specify configuration file', - ' --report specify reporter', - ' -s --setting specify settings', - ' -S --silent output only errors', - ' --silently-ignore do not fail when given ignored files', - ' --[no-]stdout specify writing to stdout (on by default)', - ' -t --tree specify input and output as syntax tree', - ' --tree-in specify input as syntax tree', - ' --tree-out output syntax tree', - ' -u --use use plugins', - ' --verbose report extra info for messages', - ' -v --version output version number', - ' -w --watch watch for changes and reprocess', - '', - 'Examples:', - '', - ' # Process `input.md`', - ' $ remark input.md -o output.md', - '', - ' # Pipe', - ' $ remark < input.md > output.md', - '', - ' # Rewrite all applicable files', - ' $ remark . -o' - ].join('\n'), - 'should show help' - ) - }) - - await t.test('should show version on `--version`', async () => { - const bin = fileURLToPath(new URL('cli.js', import.meta.url)) - - const result = await execa(bin, ['--version']) - - assert.ok( - /remark: \d+\.\d+\.\d+/.test(result.stdout), - 'should include remark version' - ) - - assert.ok( - /remark-cli: \d+\.\d+\.\d+/.test(result.stdout), - 'should include remark-cli version' - ) - }) -}) diff --git a/packages/remark-parse/package.json b/packages/remark-parse/package.json index d344be910..a3161cebc 100644 --- a/packages/remark-parse/package.json +++ b/packages/remark-parse/package.json @@ -45,9 +45,7 @@ "mdast-util-from-markdown": "^2.0.0", "unified": "^11.0.0" }, - "scripts": { - "test": "node --conditions development test.js" - }, + "scripts": {}, "typeCoverage": { "atLeast": 100, "detail": true, diff --git a/packages/remark-parse/test.js b/packages/remark-parse/test.js deleted file mode 100644 index 36be56ded..000000000 --- a/packages/remark-parse/test.js +++ /dev/null @@ -1,68 +0,0 @@ -import assert from 'node:assert/strict' -import test from 'node:test' -import {unified} from 'unified' -import {gfm} from 'micromark-extension-gfm' -import {gfmFromMarkdown} from 'mdast-util-gfm' -import {removePosition} from 'unist-util-remove-position' -import remarkParse from './index.js' - -test('remarkParse', async (t) => { - assert.equal( - unified().use(remarkParse).parse('Alfred').children.length, - 1, - 'should accept a `string`' - ) - - await t.test('extensions', () => { - const tree = unified() - // @ts-expect-error: to do: type settings. - .data('micromarkExtensions', [gfm()]) - // @ts-expect-error: to do: type settings. - .data('fromMarkdownExtensions', [gfmFromMarkdown()]) - .use(remarkParse) - .parse('* [x] contact@example.com ~~strikethrough~~') - - removePosition(tree, {force: true}) - - assert.deepEqual( - tree, - { - type: 'root', - children: [ - { - type: 'list', - ordered: false, - start: null, - spread: false, - children: [ - { - type: 'listItem', - spread: false, - checked: true, - children: [ - { - type: 'paragraph', - children: [ - { - type: 'link', - title: null, - url: 'mailto:contact@example.com', - children: [{type: 'text', value: 'contact@example.com'}] - }, - {type: 'text', value: ' '}, - { - type: 'delete', - children: [{type: 'text', value: 'strikethrough'}] - } - ] - } - ] - } - ] - } - ] - }, - 'should work' - ) - }) -}) diff --git a/packages/remark-stringify/package.json b/packages/remark-stringify/package.json index dc7412ec0..971a0e762 100644 --- a/packages/remark-stringify/package.json +++ b/packages/remark-stringify/package.json @@ -45,9 +45,7 @@ "mdast-util-to-markdown": "^2.0.0", "unified": "^11.0.0" }, - "scripts": { - "test": "node --conditions development test.js" - }, + "scripts": {}, "typeCoverage": { "atLeast": 100, "detail": true, diff --git a/packages/remark-stringify/test.js b/packages/remark-stringify/test.js deleted file mode 100644 index e00b5a36f..000000000 --- a/packages/remark-stringify/test.js +++ /dev/null @@ -1,625 +0,0 @@ -/** - * @typedef {import('mdast').Root} Root - * @typedef {import('mdast').Content} Content - * @typedef {import('mdast').BlockContent} BlockContent - * @typedef {import('./index.js').Options} Options - */ - -import assert from 'node:assert/strict' -import test from 'node:test' -import {unified} from 'unified' -import {gfmToMarkdown} from 'mdast-util-gfm' -import remarkParse from '../remark-parse/index.js' -import remarkStringify from './index.js' - -test('remarkStringify', async (t) => { - assert.equal( - unified() - .use(remarkStringify) - .stringify({ - type: 'root', - children: [{type: 'html', value: ' - - - -What follows is not an HTML comment because it contains -two consecutive dashes: -. - - - -But this is fine (in commonmark): - - - -And, this is wrong (in commonmark): - ---> - -The end. diff --git a/test/fixtures/input/html-declaration.text b/test/fixtures/input/html-declaration.text deleted file mode 100644 index b7866af6a..000000000 --- a/test/fixtures/input/html-declaration.text +++ /dev/null @@ -1,9 +0,0 @@ - - -foo - - - - - - diff --git a/test/fixtures/input/html-indented.text b/test/fixtures/input/html-indented.text deleted file mode 100644 index 8180471d2..000000000 --- a/test/fixtures/input/html-indented.text +++ /dev/null @@ -1,17 +0,0 @@ -
- *hello* -
- - - - *hello* - - - - - - - - - -alpha diff --git a/test/fixtures/input/html-processing-instruction.text b/test/fixtures/input/html-processing-instruction.text deleted file mode 100644 index 0a9b884e6..000000000 --- a/test/fixtures/input/html-processing-instruction.text +++ /dev/null @@ -1,3 +0,0 @@ -'; -?> diff --git a/test/fixtures/input/html-simple.text b/test/fixtures/input/html-simple.text deleted file mode 100644 index 0c385d4b0..000000000 --- a/test/fixtures/input/html-simple.text +++ /dev/null @@ -1,68 +0,0 @@ -Here's a simple block: - -
- foo -
- -This should be a code block, though: - -
- foo -
- -As should this: - -
foo
- -Now, nested: - -
-
-
- foo -
-
-
- -This should just be an HTML comment: - - - -Multiline: - - - -Code block: - - - -Just plain comment, with trailing spaces on the line: - - - -Code: - -
- -Hr's: - -
- -
- -
- -
- -
- -
- -
- -
- -
diff --git a/test/fixtures/input/html-tags.text b/test/fixtures/input/html-tags.text deleted file mode 100644 index 1031472fb..000000000 --- a/test/fixtures/input/html-tags.text +++ /dev/null @@ -1,110 +0,0 @@ -# Block - -
- - -
- - -
- - -<-article> - - -
). - -![Hello [world]!](./hello-world.html). - -![Hello [world]!](<./hello-world.html>). diff --git a/test/fixtures/input/links-text-empty.text b/test/fixtures/input/links-text-empty.text deleted file mode 100644 index de4edf85f..000000000 --- a/test/fixtures/input/links-text-empty.text +++ /dev/null @@ -1,7 +0,0 @@ -[](./hello-world.html). - -[](<./hello-world.html>). - -![](./hello-world.html). - -![](<./hello-world.html>). diff --git a/test/fixtures/input/links-text-entity-delimiters.text b/test/fixtures/input/links-text-entity-delimiters.text deleted file mode 100644 index 7e5106432..000000000 --- a/test/fixtures/input/links-text-entity-delimiters.text +++ /dev/null @@ -1,15 +0,0 @@ -[Hello [world]!](./hello-world.html). - -[Hello [world]!](<./hello-world.html>). - -![Hello [world]!](./hello-world.html). - -![Hello [world]!](<./hello-world.html>). - -[Hello [world]!](./hello-world.html). - -[Hello [world]!](<./hello-world.html>). - -![Hello [world]!](./hello-world.html). - -![Hello [world]!](<./hello-world.html>). diff --git a/test/fixtures/input/links-text-escaped-delimiters.text b/test/fixtures/input/links-text-escaped-delimiters.text deleted file mode 100644 index 2aa3eece8..000000000 --- a/test/fixtures/input/links-text-escaped-delimiters.text +++ /dev/null @@ -1,7 +0,0 @@ -[Hello \[world\]!](./hello-world.html). - -[Hello \[world\]!](<./hello-world.html>). - -![Hello \[world\]!](./hello-world.html). - -![Hello \[world\]!](<./hello-world.html>). diff --git a/test/fixtures/input/links-text-mismatched-delimiters.text b/test/fixtures/input/links-text-mismatched-delimiters.text deleted file mode 100644 index ecfedd1c4..000000000 --- a/test/fixtures/input/links-text-mismatched-delimiters.text +++ /dev/null @@ -1,7 +0,0 @@ -[Hello [world!](./hello-world.html). - -[Hello [world!](<./hello-world.html>). - -![Hello [world!](./hello-world.html). - -![Hello [world!](<./hello-world.html>). diff --git a/test/fixtures/input/links-title-double-quotes-delimiters.text b/test/fixtures/input/links-title-double-quotes-delimiters.text deleted file mode 100644 index e6f8a7cfc..000000000 --- a/test/fixtures/input/links-title-double-quotes-delimiters.text +++ /dev/null @@ -1,7 +0,0 @@ -[Hello](./world.html "Hello "World" Hello!"). - -[Hello](<./world.html> "Hello "World" Hello!"). - -![Hello](./world.html "Hello "World" Hello!"). - -![Hello](<./world.html> "Hello "World" Hello!"). diff --git a/test/fixtures/input/links-title-double-quotes-entity-delimiters.text b/test/fixtures/input/links-title-double-quotes-entity-delimiters.text deleted file mode 100644 index be83f9de8..000000000 --- a/test/fixtures/input/links-title-double-quotes-entity-delimiters.text +++ /dev/null @@ -1,7 +0,0 @@ -[Hello](./world.html "Hello "World" Hello!"). - -[Hello](<./world.html> "Hello "World" Hello!"). - -![Hello](./world.html "Hello "World" Hello!"). - -![Hello](<./world.html> "Hello "World" Hello!"). diff --git a/test/fixtures/input/links-title-double-quotes-escaped-delimiters.text b/test/fixtures/input/links-title-double-quotes-escaped-delimiters.text deleted file mode 100644 index b73e61f13..000000000 --- a/test/fixtures/input/links-title-double-quotes-escaped-delimiters.text +++ /dev/null @@ -1,7 +0,0 @@ -[Hello](./world.html "Hello \"World\" Hello!"). - -[Hello](<./world.html> "Hello \"World\" Hello!"). - -![Hello](./world.html "Hello \"World\" Hello!"). - -![Hello](<./world.html> "Hello \"World\" Hello!"). diff --git a/test/fixtures/input/links-title-double-quotes-mismatched-delimiters.text b/test/fixtures/input/links-title-double-quotes-mismatched-delimiters.text deleted file mode 100644 index fd48b308b..000000000 --- a/test/fixtures/input/links-title-double-quotes-mismatched-delimiters.text +++ /dev/null @@ -1,7 +0,0 @@ -[Hello](./world.html "Hello "World Hello!"). - -[Hello](<./world.html> "Hello "World Hello!"). - -![Hello](./world.html "Hello "World Hello!"). - -![Hello](<./world.html> "Hello "World Hello!"). diff --git a/test/fixtures/input/links-title-double-quotes.text b/test/fixtures/input/links-title-double-quotes.text deleted file mode 100644 index 908be3343..000000000 --- a/test/fixtures/input/links-title-double-quotes.text +++ /dev/null @@ -1,7 +0,0 @@ -[Hello](./world.html "Hello World!"). - -[Hello](<./world.html> "Hello World!"). - -![Hello](./world.html "Hello World!"). - -![Hello](<./world.html> "Hello World!"). diff --git a/test/fixtures/input/links-title-empty-double-quotes.text b/test/fixtures/input/links-title-empty-double-quotes.text deleted file mode 100644 index 25b6760ab..000000000 --- a/test/fixtures/input/links-title-empty-double-quotes.text +++ /dev/null @@ -1,7 +0,0 @@ -[Hello](./world.html ""). - -[Hello](<./world.html> ""). - -![Hello](./world.html ""). - -![Hello](<./world.html> ""). diff --git a/test/fixtures/input/links-title-empty-parentheses.text b/test/fixtures/input/links-title-empty-parentheses.text deleted file mode 100644 index fef688d29..000000000 --- a/test/fixtures/input/links-title-empty-parentheses.text +++ /dev/null @@ -1,7 +0,0 @@ -[Hello](./world.html ()). - -[Hello](<./world.html> ()). - -![Hello](./world.html ()). - -![Hello](<./world.html> ()). diff --git a/test/fixtures/input/links-title-empty-single-quotes.text b/test/fixtures/input/links-title-empty-single-quotes.text deleted file mode 100644 index dddc5738d..000000000 --- a/test/fixtures/input/links-title-empty-single-quotes.text +++ /dev/null @@ -1,7 +0,0 @@ -[Hello](./world.html ''). - -[Hello](<./world.html> ''). - -![Hello](./world.html ''). - -![Hello](<./world.html> ''). diff --git a/test/fixtures/input/links-title-parentheses.text b/test/fixtures/input/links-title-parentheses.text deleted file mode 100644 index 848c0f373..000000000 --- a/test/fixtures/input/links-title-parentheses.text +++ /dev/null @@ -1,7 +0,0 @@ -[Hello](./world.html (Hello World!)). - -[Hello](<./world.html> (Hello World!)). - -![Hello](./world.html (Hello World!)). - -![Hello](<./world.html> (Hello World!)). diff --git a/test/fixtures/input/links-title-single-quotes-delimiters.text b/test/fixtures/input/links-title-single-quotes-delimiters.text deleted file mode 100644 index f3545e4c4..000000000 --- a/test/fixtures/input/links-title-single-quotes-delimiters.text +++ /dev/null @@ -1,7 +0,0 @@ -[Hello](./world.html 'Hello 'World' Hello!'). - -[Hello](<./world.html> 'Hello 'World' Hello!'). - -![Hello](./world.html 'Hello 'World' Hello!'). - -![Hello](<./world.html> 'Hello 'World' Hello!'). diff --git a/test/fixtures/input/links-title-single-quotes-entity-delimiters.text b/test/fixtures/input/links-title-single-quotes-entity-delimiters.text deleted file mode 100644 index 84965072d..000000000 --- a/test/fixtures/input/links-title-single-quotes-entity-delimiters.text +++ /dev/null @@ -1,7 +0,0 @@ -[Hello](./world.html "Hello 'World' Hello!"). - -[Hello](<./world.html> "Hello 'World' Hello!"). - -![Hello](./world.html "Hello 'World' Hello!"). - -![Hello](<./world.html> "Hello 'World' Hello!"). diff --git a/test/fixtures/input/links-title-single-quotes-escaped-delimiters.text b/test/fixtures/input/links-title-single-quotes-escaped-delimiters.text deleted file mode 100644 index 0c7fd536f..000000000 --- a/test/fixtures/input/links-title-single-quotes-escaped-delimiters.text +++ /dev/null @@ -1,7 +0,0 @@ -[Hello](./world.html 'Hello \'World\' Hello!'). - -[Hello](<./world.html> 'Hello \'World\' Hello!'). - -![Hello](./world.html 'Hello \'World\' Hello!'). - -![Hello](<./world.html> 'Hello \'World\' Hello!'). diff --git a/test/fixtures/input/links-title-single-quotes-mismatched-delimiters.text b/test/fixtures/input/links-title-single-quotes-mismatched-delimiters.text deleted file mode 100644 index 48cf0f182..000000000 --- a/test/fixtures/input/links-title-single-quotes-mismatched-delimiters.text +++ /dev/null @@ -1,7 +0,0 @@ -[Hello](./world.html 'Hello 'World Hello!'). - -[Hello](<./world.html> 'Hello 'World Hello!'). - -![Hello](./world.html 'Hello 'World Hello!'). - -![Hello](<./world.html> 'Hello 'World Hello!'). diff --git a/test/fixtures/input/links-title-single-quotes.text b/test/fixtures/input/links-title-single-quotes.text deleted file mode 100644 index f67bc2f63..000000000 --- a/test/fixtures/input/links-title-single-quotes.text +++ /dev/null @@ -1,7 +0,0 @@ -[Hello](./world.html 'Hello World!'). - -[Hello](<./world.html> 'Hello World!'). - -![Hello](./world.html 'Hello World!'). - -![Hello](<./world.html> 'Hello World!'). diff --git a/test/fixtures/input/links-title-unclosed.text b/test/fixtures/input/links-title-unclosed.text deleted file mode 100644 index 399277bfd..000000000 --- a/test/fixtures/input/links-title-unclosed.text +++ /dev/null @@ -1,23 +0,0 @@ -[Hello](./world.html 'Hello - -[Hello](<./world.html> 'Hello - -![Hello](./world.html 'Hello - -![Hello](<./world.html> 'Hello - -[Hello](./world.html "Hello - -[Hello](<./world.html> "Hello - -![Hello](./world.html "Hello - -![Hello](<./world.html> "Hello - -[Hello](./world.html (Hello - -[Hello](<./world.html> (Hello - -![Hello](./world.html (Hello - -![Hello](<./world.html> (Hello diff --git a/test/fixtures/input/links-url-empty-title-double-quotes.text b/test/fixtures/input/links-url-empty-title-double-quotes.text deleted file mode 100644 index 143eaaa2e..000000000 --- a/test/fixtures/input/links-url-empty-title-double-quotes.text +++ /dev/null @@ -1,11 +0,0 @@ -[Hello]("World!"). - -[Hello]( "World!"). - -[World](<> "World!"). - -![Hello]("World!"). - -![Hello]( "World!"). - -![World](<> "World!"). diff --git a/test/fixtures/input/links-url-empty-title-parentheses.text b/test/fixtures/input/links-url-empty-title-parentheses.text deleted file mode 100644 index c4afbc8f3..000000000 --- a/test/fixtures/input/links-url-empty-title-parentheses.text +++ /dev/null @@ -1,11 +0,0 @@ -[Hello]((World!)). - -[Hello]( (World!)). - -[World](<> (World!)). - -![Hello]((World!)). - -![Hello]( (World!)). - -![World](<> (World!)). diff --git a/test/fixtures/input/links-url-empty-title-single-quotes.text b/test/fixtures/input/links-url-empty-title-single-quotes.text deleted file mode 100644 index 1171ea413..000000000 --- a/test/fixtures/input/links-url-empty-title-single-quotes.text +++ /dev/null @@ -1,11 +0,0 @@ -[Hello]('World!'). - -[Hello]( 'World!'). - -[World](<> 'World!'). - -![Hello]('World!'). - -![Hello]( 'World!'). - -![World](<> 'World!'). diff --git a/test/fixtures/input/links-url-empty.text b/test/fixtures/input/links-url-empty.text deleted file mode 100644 index 437ceb796..000000000 --- a/test/fixtures/input/links-url-empty.text +++ /dev/null @@ -1,7 +0,0 @@ -[Hello](). - -[World](<>). - -![Hello](). - -![World](<>). diff --git a/test/fixtures/input/links-url-entities.text b/test/fixtures/input/links-url-entities.text deleted file mode 100644 index 5753d3a4e..000000000 --- a/test/fixtures/input/links-url-entities.text +++ /dev/null @@ -1,7 +0,0 @@ -[Hello](http://www.example.com?param=1®ion=here). - -[World](). - -![Hello](http://www.example.com?param=1®ion=here). - -![World](). diff --git a/test/fixtures/input/links-url-entity-parentheses.text b/test/fixtures/input/links-url-entity-parentheses.text deleted file mode 100644 index b8fdc2f93..000000000 --- a/test/fixtures/input/links-url-entity-parentheses.text +++ /dev/null @@ -1,31 +0,0 @@ -[Hello](./world(and-hello(world)). - -[Hello](<./world(and-hello(world)>). - -[Hello](./world(and)helloworld)). - -[Hello](<./world(and)helloworld)>). - -[Hello](./world(and-hello(world)). - -[Hello](<./world(and-hello(world)>). - -[Hello](./world(and)helloworld)). - -[Hello](<./world(and)helloworld)>). - -![Hello](./world(and-hello(world)). - -![Hello](<./world(and-hello(world)>). - -![Hello](./world(and)helloworld)). - -![Hello](<./world(and)helloworld)>). - -![Hello](./world(and-hello(world)). - -![Hello](<./world(and-hello(world)>). - -![Hello](./world(and)helloworld)). - -![Hello](<./world(and)helloworld)>). diff --git a/test/fixtures/input/links-url-escaped-parentheses.text b/test/fixtures/input/links-url-escaped-parentheses.text deleted file mode 100644 index 0c634db48..000000000 --- a/test/fixtures/input/links-url-escaped-parentheses.text +++ /dev/null @@ -1,15 +0,0 @@ -[Hello](./world\(and-hello\(world\)). - -[Hello](<./world\(and-hello\(world\)>). - -[Hello](./world\(and\)helloworld\)). - -[Hello](<./world\(and\)helloworld\)>). - -![Hello](./world\(and-hello\(world\)). - -![Hello](<./world\(and-hello\(world\)>). - -![Hello](./world\(and\)helloworld\)). - -![Hello](<./world\(and\)helloworld\)>). diff --git a/test/fixtures/input/links-url-mismatched-parentheses.text b/test/fixtures/input/links-url-mismatched-parentheses.text deleted file mode 100644 index 37c779030..000000000 --- a/test/fixtures/input/links-url-mismatched-parentheses.text +++ /dev/null @@ -1,15 +0,0 @@ -[Hello](./world(and-hello(world)). - -[Hello](<./world(and-hello(world)>). - -[Hello](./world(and)helloworld)). - -[Hello](<./world(and)helloworld)>). - -![Hello](./world(and-hello(world)). - -![Hello](<./world(and-hello(world)>). - -![Hello](./world(and)helloworld)). - -![Hello](<./world(and)helloworld)>). diff --git a/test/fixtures/input/links-url-nested-parentheses.text b/test/fixtures/input/links-url-nested-parentheses.text deleted file mode 100644 index eadea0ece..000000000 --- a/test/fixtures/input/links-url-nested-parentheses.text +++ /dev/null @@ -1,7 +0,0 @@ -[Hello](./world(and)hello(world)). - -[Hello](<./world(and)hello(world)>). - -![Hello](./world(and)hello(world)). - -![Hello](<./world(and)hello(world)>). diff --git a/test/fixtures/input/links-url-new-line.text b/test/fixtures/input/links-url-new-line.text deleted file mode 100644 index e03c0e5dd..000000000 --- a/test/fixtures/input/links-url-new-line.text +++ /dev/null @@ -1,11 +0,0 @@ -[Hello](./wo -rld.html). - -[Hello](<./wo -rld.html>). - -![Hello](./wo -rld.png). - -![Hello](<./wo -rld.png>). diff --git a/test/fixtures/input/links-url-unclosed.text b/test/fixtures/input/links-url-unclosed.text deleted file mode 100644 index 68ea2686e..000000000 --- a/test/fixtures/input/links-url-unclosed.text +++ /dev/null @@ -1,10 +0,0 @@ -[Hello]( - - -[World](< - - -![Hello]( - - -![World](< diff --git a/test/fixtures/input/links-url-white-space.text b/test/fixtures/input/links-url-white-space.text deleted file mode 100644 index f7d66e4b3..000000000 --- a/test/fixtures/input/links-url-white-space.text +++ /dev/null @@ -1,7 +0,0 @@ -[Hello](./wo rld.html). - -[Hello](<./wo rld.html>). - -![Hello](./wo rld.png). - -![Hello](<./wo rld.png>). diff --git a/test/fixtures/input/links.output.noreference-links.text b/test/fixtures/input/links.output.noreference-links.text deleted file mode 100644 index 67d811d90..000000000 --- a/test/fixtures/input/links.output.noreference-links.text +++ /dev/null @@ -1,5 +0,0 @@ -Lorem ipsum dolor sit [amet](http://amet.com "Amet"), consectetur adipiscing elit. Praesent dictum purus ullamcorper ligula semper pellentesque. - -Nulla [finibus](http://finibus.com "Finibus") neque et diam rhoncus convallis. Nam dictum sapien nec sem ultrices fermentum. Nulla [facilisi](http://facilisi.com "Facilisi"). In et feugiat massa. - -Donec sed sodales metus, ut aliquet quam. Suspendisse nec ipsum risus. Interdum et malesuada fames ac ante ipsum primis in [faucibus](http://faucibus.com "Faucibus"). diff --git a/test/fixtures/input/list-after-list.text b/test/fixtures/input/list-after-list.text deleted file mode 100644 index 101994be3..000000000 --- a/test/fixtures/input/list-after-list.text +++ /dev/null @@ -1,16 +0,0 @@ -- item -- item -- item - -1. item -1. item -1. item - ---- - -- item -- item -- item -1. item -1. item -1. item diff --git a/test/fixtures/input/list-and-code.text b/test/fixtures/input/list-and-code.text deleted file mode 100644 index 029528fad..000000000 --- a/test/fixtures/input/list-and-code.text +++ /dev/null @@ -1,4 +0,0 @@ -* This is a list item - - - This is code diff --git a/test/fixtures/input/list-continuation.text b/test/fixtures/input/list-continuation.text deleted file mode 100644 index 5b73b48b9..000000000 --- a/test/fixtures/input/list-continuation.text +++ /dev/null @@ -1,16 +0,0 @@ -1. foo ---- - - -1. foo -```js -code(); -``` - - -1. [foo][] -[foo]: http://google.com - - -1. [^foo] -[^foo]: bar baz. diff --git a/test/fixtures/input/list-indentation.nooutput.text b/test/fixtures/input/list-indentation.nooutput.text deleted file mode 100644 index 27599c34d..000000000 --- a/test/fixtures/input/list-indentation.nooutput.text +++ /dev/null @@ -1,39 +0,0 @@ -- Hello 1a - - World 1a. - -- Hello 1b - - World 1b. - -- Hello 2a - - World 2a. - -- Hello 2b - - World 2b. - -- Hello 3a - - World 3a. - -- Hello 3b - - World 3b. - -- Hello 4a - - World 4a. - -- Hello 4b - - World 4b. - -- Hello 5a - - World 5a. - -- Hello 5b - - World 5b. diff --git a/test/fixtures/input/list-interrupt.text b/test/fixtures/input/list-interrupt.text deleted file mode 100644 index a24c9ff8d..000000000 --- a/test/fixtures/input/list-interrupt.text +++ /dev/null @@ -1,2 +0,0 @@ -* Something -### Some heading diff --git a/test/fixtures/input/list-item-empty-with-white-space.text b/test/fixtures/input/list-item-empty-with-white-space.text deleted file mode 100644 index 277cc02ff..000000000 --- a/test/fixtures/input/list-item-empty-with-white-space.text +++ /dev/null @@ -1 +0,0 @@ -- diff --git a/test/fixtures/input/list-item-empty-without-white-space-eof.text b/test/fixtures/input/list-item-empty-without-white-space-eof.text deleted file mode 100644 index 3cf20d57b..000000000 --- a/test/fixtures/input/list-item-empty-without-white-space-eof.text +++ /dev/null @@ -1 +0,0 @@ -- \ No newline at end of file diff --git a/test/fixtures/input/list-item-empty-without-white-space.text b/test/fixtures/input/list-item-empty-without-white-space.text deleted file mode 100644 index 39cdd0ded..000000000 --- a/test/fixtures/input/list-item-empty-without-white-space.text +++ /dev/null @@ -1 +0,0 @@ -- diff --git a/test/fixtures/input/list-item-empty.text b/test/fixtures/input/list-item-empty.text deleted file mode 100644 index 49466d2c4..000000000 --- a/test/fixtures/input/list-item-empty.text +++ /dev/null @@ -1,7 +0,0 @@ -- foo -- -- bar - - - foo - - - - bar diff --git a/test/fixtures/input/list-item-indent.list-item-indent=mixed.output.text b/test/fixtures/input/list-item-indent.list-item-indent=mixed.output.text deleted file mode 100644 index 4804db88c..000000000 --- a/test/fixtures/input/list-item-indent.list-item-indent=mixed.output.text +++ /dev/null @@ -1,33 +0,0 @@ -1. foo bar baz. - - - -99. foo bar baz. - - - -999. foo bar baz. - - - -1. foo bar baz. - foo bar baz. - - - -99. foo bar baz. - foo bar baz. - - - -999. foo bar baz. - foo bar baz. - - - -* foo bar baz. - - - -* foo bar baz. - foo bar baz. diff --git a/test/fixtures/input/list-item-indent.list-item-indent=one.output.text b/test/fixtures/input/list-item-indent.list-item-indent=one.output.text deleted file mode 100644 index 4804db88c..000000000 --- a/test/fixtures/input/list-item-indent.list-item-indent=one.output.text +++ /dev/null @@ -1,33 +0,0 @@ -1. foo bar baz. - - - -99. foo bar baz. - - - -999. foo bar baz. - - - -1. foo bar baz. - foo bar baz. - - - -99. foo bar baz. - foo bar baz. - - - -999. foo bar baz. - foo bar baz. - - - -* foo bar baz. - - - -* foo bar baz. - foo bar baz. diff --git a/test/fixtures/input/list-item-indent.list-item-indent=tab.output.text b/test/fixtures/input/list-item-indent.list-item-indent=tab.output.text deleted file mode 100644 index f03f535f5..000000000 --- a/test/fixtures/input/list-item-indent.list-item-indent=tab.output.text +++ /dev/null @@ -1,33 +0,0 @@ -1. foo bar baz. - - - -99. foo bar baz. - - - -999. foo bar baz. - - - -1. foo bar baz. - foo bar baz. - - - -99. foo bar baz. - foo bar baz. - - - -999. foo bar baz. - foo bar baz. - - - -* foo bar baz. - - - -* foo bar baz. - foo bar baz. diff --git a/test/fixtures/input/list-item-newline.nooutput.text b/test/fixtures/input/list-item-newline.nooutput.text deleted file mode 100644 index 074ea405c..000000000 --- a/test/fixtures/input/list-item-newline.nooutput.text +++ /dev/null @@ -1,3 +0,0 @@ -- Foo -- - Bar diff --git a/test/fixtures/input/list-item-text.text b/test/fixtures/input/list-item-text.text deleted file mode 100644 index a8f81b140..000000000 --- a/test/fixtures/input/list-item-text.text +++ /dev/null @@ -1,5 +0,0 @@ - * item1 - - * item2 - - text diff --git a/test/fixtures/input/list-mixed-indentation.text b/test/fixtures/input/list-mixed-indentation.text deleted file mode 100644 index 3c259b931..000000000 --- a/test/fixtures/input/list-mixed-indentation.text +++ /dev/null @@ -1,34 +0,0 @@ -# Mixed spaces and tabs - -- (item 1.) Minimum list, equivalent to two spaces - - (item 2.) indented with 1 space, not enough indentation to be a subitem - - (item 2.1.) indented with tab - - -- (item 1.) Minimum list, equivalent to two spaces - - (item 1.1.) indentend with 2 spaces - - (item 1.2.) indented with tab - - -- (item 1.) List with 1 extra space - - (item 1.1.) indentend with 3 spaces - - (item 1.2.) indented with tab - - -- (item 1.) List with 2 extra space, equivalent to 1 tab indentation - - (item 1.1.) indentend with 4 spaces - - (item 1.2.) indented with tab - - -- (item 1.) List with 1 tab, equivalent to 4 spaces - - (item 1.1.) indentend with 4 spaces - - (item 1.2.) indented with tab - - -- (item 1.) list with double indentation and mixed items - - (item 1.1.) normal indentation with 1 tab - - (item 1.1.1.) item with 4 spaces + 4 spaces - - (item 1.1.2.) item with tab + 4 spaces - - (item 1.1.3.) item with 4 spaces + tab - - (item 1.1.4.) item with tab + tab - - (item 1.1.5.) item with 2 spaces + tab + 2 spaces (nasty!) diff --git a/test/fixtures/input/list-ordered-empty-no-space-single-item.text b/test/fixtures/input/list-ordered-empty-no-space-single-item.text deleted file mode 100644 index ee85c37ad..000000000 --- a/test/fixtures/input/list-ordered-empty-no-space-single-item.text +++ /dev/null @@ -1 +0,0 @@ -1. \ No newline at end of file diff --git a/test/fixtures/input/list-ordered-empty-no-space.text b/test/fixtures/input/list-ordered-empty-no-space.text deleted file mode 100644 index 4ca019463..000000000 --- a/test/fixtures/input/list-ordered-empty-no-space.text +++ /dev/null @@ -1,4 +0,0 @@ -1. -2. -3. -4. diff --git a/test/fixtures/input/list-ordered.increment-list-marker.output.text b/test/fixtures/input/list-ordered.increment-list-marker.output.text deleted file mode 100644 index dabcee7bd..000000000 --- a/test/fixtures/input/list-ordered.increment-list-marker.output.text +++ /dev/null @@ -1,3 +0,0 @@ -2. foo; -3. bar; -4. baz. diff --git a/test/fixtures/input/list-ordered.noincrement-list-marker.output.text b/test/fixtures/input/list-ordered.noincrement-list-marker.output.text deleted file mode 100644 index 5c6c8b202..000000000 --- a/test/fixtures/input/list-ordered.noincrement-list-marker.output.text +++ /dev/null @@ -1,3 +0,0 @@ -2. foo; -2. bar; -2. baz. diff --git a/test/fixtures/input/list-unordered-empty-no-space-single-item.text b/test/fixtures/input/list-unordered-empty-no-space-single-item.text deleted file mode 100644 index f59ec20aa..000000000 --- a/test/fixtures/input/list-unordered-empty-no-space-single-item.text +++ /dev/null @@ -1 +0,0 @@ -* \ No newline at end of file diff --git a/test/fixtures/input/list-unordered-empty-no-space.text b/test/fixtures/input/list-unordered-empty-no-space.text deleted file mode 100644 index a0502f72a..000000000 --- a/test/fixtures/input/list-unordered-empty-no-space.text +++ /dev/null @@ -1,4 +0,0 @@ -* -* -* -* diff --git a/test/fixtures/input/list.output.bullet=+.text b/test/fixtures/input/list.output.bullet=+.text deleted file mode 100644 index 2a5b154b9..000000000 --- a/test/fixtures/input/list.output.bullet=+.text +++ /dev/null @@ -1,8 +0,0 @@ -# List bullets - -+ One: - + Nested one; - + Nested two: - + Nested three. -+ Two; -+ Three. diff --git a/test/fixtures/input/list.output.bullet=-.text b/test/fixtures/input/list.output.bullet=-.text deleted file mode 100644 index 6c493059c..000000000 --- a/test/fixtures/input/list.output.bullet=-.text +++ /dev/null @@ -1,8 +0,0 @@ -# List bullets - -- One: - - Nested one; - - Nested two: - - Nested three. -- Two; -- Three. diff --git a/test/fixtures/input/list.output.bullet=-asterisk-.text b/test/fixtures/input/list.output.bullet=-asterisk-.text deleted file mode 100644 index 3dabda833..000000000 --- a/test/fixtures/input/list.output.bullet=-asterisk-.text +++ /dev/null @@ -1,8 +0,0 @@ -# List bullets - -* One: - * Nested one; - * Nested two: - * Nested three. -* Two; -* Three. diff --git a/test/fixtures/input/lists-with-code-and-rules.text b/test/fixtures/input/lists-with-code-and-rules.text deleted file mode 100644 index 0eba40598..000000000 --- a/test/fixtures/input/lists-with-code-and-rules.text +++ /dev/null @@ -1,53 +0,0 @@ -## foo - -1. bar: - - > - one - - two - - three - - four - - five - -1. foo: - - ``` - line 1 - line 2 - ``` - -1. foo: - - 1. foo `bar` bar: - - ``` erb - some code here - ``` - - 2. foo `bar` bar: - - ``` erb - foo - --- - bar - --- - foo - bar - ``` - - 3. foo `bar` bar: - - ``` html - --- - foo - foo - --- - bar - ``` - - 4. foo `bar` bar: - - foo - --- - bar - - 5. foo diff --git a/test/fixtures/input/literal-email.text b/test/fixtures/input/literal-email.text deleted file mode 100644 index 13f848d6b..000000000 --- a/test/fixtures/input/literal-email.text +++ /dev/null @@ -1,18 +0,0 @@ -example1 (1234567@example.com) -example1 (mailto:1234567@example.com) - -Lorem foo@bar.baz ipsum. - -alpha@bravo+charlie.delta isn’t valid, but echo+foxtrot@golf.hotel is. - -Valid: a.b-c_d@a.b - -Valid, but the dot is not part of the email: a.b-c_d@a.b. - -Not valid: a.b-c_d@a.b- - -Not valid: a.b-c_d@a.b_ - -Not valid: alpha@bravo. - -<foo@example.com diff --git a/test/fixtures/input/literal-url.text b/test/fixtures/input/literal-url.text deleted file mode 100644 index 03ccfde62..000000000 --- a/test/fixtures/input/literal-url.text +++ /dev/null @@ -1,57 +0,0 @@ -# Literal URLs - -## Extended www “autolinks” - -Here’s a URL: www.alpha.org. - -Visit www.bravo.org/help for more information. - -Dots cannot appear together: www..one.com and www.two..com. - -And www. is not a URL, neither are www.a nor www.b. - -Underscores cannot be used in the last two domain parts, so www.three.c_m, -and www.fo_ur.com are not URLs, but www.fi_ve.six.com is. - -Valid, and the dot is not part of the link: Visit www.charlie.org. - -Valid, and this dot isn’t part of the link either: Visit www.delta.org/a.b. - -Valid, but two dots are both not part of the URL: www.example.com.. - -Here are parens: www.echo.com/search?q=Markup+(business) - -The last two aren’t part of the -link: www.foxtrot.com/search?q=golf+(hotel))) - -These first and last ones aren’t -either: (www.india.com/search?q=juliett+(kilo)) - -This last one is: (www.lima.com/search?q=mike+(november) - -Paren counting is only done if the last character is a closing -paren: www.google.com/search?q=(business))+ok - -If it “looks” like an entity at the end, it isn’t included. - -This is a whole URL: www.entity.com/search?q=alpha&hl=en - -This is a without the semicolon: www.entity.com/search?q=bravo&; - -This one is without the “entity”: www.entity.com/search?q=charlie&hl; - -This one one too: www.entity.com/search?q=delta© - -Only “named” ones work, numericals don’t, so this one is only without the -semicolon: www.entity.com/search?q=delta∊ - -`<` immediately ends an autolink: www.alpha.org/heThis will make me fail the test because -markdown.js doesnt acknowledge arbitrary html blocks =/ - -* List Item 1 - -* List Item 2 - * New List Item 1 - Hi, this is a list item. - * New List Item 2 - Another item - Code goes here. - Lots of it... - * New List Item 3 - The last item - -* List Item 3 -The final item. - -* List Item 4 -The real final item. - -Paragraph. - -> * bq Item 1 -> * bq Item 2 -> * New bq Item 1 -> * New bq Item 2 -> Text here - -* * * - -> Another blockquote! -> I really need to get -> more creative with -> mockup text.. -> markdown.js breaks here again - -Another Heading -------------- - -Hello *world*. Here is a [link](//hello). -And an image ![alt](src "a title"). -And an image with an empty alt attribute ![](src). - - Code goes here. - Lots of it... diff --git a/test/fixtures/input/markdown-documentation-basics.text b/test/fixtures/input/markdown-documentation-basics.text deleted file mode 100644 index 486055ca7..000000000 --- a/test/fixtures/input/markdown-documentation-basics.text +++ /dev/null @@ -1,306 +0,0 @@ -Markdown: Basics -================ - - - - -Getting the Gist of Markdown's Formatting Syntax ------------------------------------------------- - -This page offers a brief overview of what it's like to use Markdown. -The [syntax page] [s] provides complete, detailed documentation for -every feature, but Markdown should be very easy to pick up simply by -looking at a few examples of it in action. The examples on this page -are written in a before/after style, showing example syntax and the -HTML output produced by Markdown. - -It's also helpful to simply try Markdown out; the [Dingus] [d] is a -web application that allows you type your own Markdown-formatted text -and translate it to XHTML. - -**Note:** This document is itself written using Markdown; you -can [see the source for it by adding '.text' to the URL] [src]. - - [s]: /projects/markdown/syntax "Markdown Syntax" - [d]: /projects/markdown/dingus "Markdown Dingus" - [src]: /projects/markdown/basics.text - - -## Paragraphs, Headers, Blockquotes ## - -A paragraph is simply one or more consecutive lines of text, separated -by one or more blank lines. (A blank line is any line that looks like a -blank line -- a line containing nothing spaces or tabs is considered -blank.) Normal paragraphs should not be intended with spaces or tabs. - -Markdown offers two styles of headers: *Setext* and *atx*. -Setext-style headers for `

` and `

` are created by -"underlining" with equal signs (`=`) and hyphens (`-`), respectively. -To create an atx-style header, you put 1-6 hash marks (`#`) at the -beginning of the line -- the number of hashes equals the resulting -HTML header level. - -Blockquotes are indicated using email-style '`>`' angle brackets. - -Markdown: - - A First Level Header - ==================== - - A Second Level Header - --------------------- - - Now is the time for all good men to come to - the aid of their country. This is just a - regular paragraph. - - The quick brown fox jumped over the lazy - dog's back. - - ### Header 3 - - > This is a blockquote. - > - > This is the second paragraph in the blockquote. - > - > ## This is an H2 in a blockquote - - -Output: - -

A First Level Header

- -

A Second Level Header

- -

Now is the time for all good men to come to - the aid of their country. This is just a - regular paragraph.

- -

The quick brown fox jumped over the lazy - dog's back.

- -

Header 3

- -
-

This is a blockquote.

- -

This is the second paragraph in the blockquote.

- -

This is an H2 in a blockquote

-
- - - -### Phrase Emphasis ### - -Markdown uses asterisks and underscores to indicate spans of emphasis. - -Markdown: - - Some of these words *are emphasized*. - Some of these words _are emphasized also_. - - Use two asterisks for **strong emphasis**. - Or, if you prefer, __use two underscores instead__. - -Output: - -

Some of these words are emphasized. - Some of these words are emphasized also.

- -

Use two asterisks for strong emphasis. - Or, if you prefer, use two underscores instead.

- - - -## Lists ## - -Unordered (bulleted) lists use asterisks, pluses, and hyphens (`*`, -`+`, and `-`) as list markers. These three markers are -interchangable; this: - - * Candy. - * Gum. - * Booze. - -this: - - + Candy. - + Gum. - + Booze. - -and this: - - - Candy. - - Gum. - - Booze. - -all produce the same output: - -
    -
  • Candy.
  • -
  • Gum.
  • -
  • Booze.
  • -
- -Ordered (numbered) lists use regular numbers, followed by periods, as -list markers: - - 1. Red - 2. Green - 3. Blue - -Output: - -
    -
  1. Red
  2. -
  3. Green
  4. -
  5. Blue
  6. -
- -If you put blank lines between items, you'll get `

` tags for the -list item text. You can create multi-paragraph list items by indenting -the paragraphs by 4 spaces or 1 tab: - - * A list item. - - With multiple paragraphs. - - * Another item in the list. - -Output: - -

    -
  • A list item.

    -

    With multiple paragraphs.

  • -
  • Another item in the list.

  • -
- - - -### Links ### - -Markdown supports two styles for creating links: *inline* and -*reference*. With both styles, you use square brackets to delimit the -text you want to turn into a link. - -Inline-style links use parentheses immediately after the link text. -For example: - - This is an [example link](http://example.com/). - -Output: - -

This is an - example link.

- -Optionally, you may include a title attribute in the parentheses: - - This is an [example link](http://example.com/ "With a Title"). - -Output: - -

This is an - example link.

- -Reference-style links allow you to refer to your links by names, which -you define elsewhere in your document: - - I get 10 times more traffic from [Google][1] than from - [Yahoo][2] or [MSN][3]. - - [1]: http://google.com/ "Google" - [2]: http://search.yahoo.com/ "Yahoo Search" - [3]: http://search.msn.com/ "MSN Search" - -Output: - -

I get 10 times more traffic from Google than from Yahoo or MSN.

- -The title attribute is optional. Link names may contain letters, -numbers and spaces, but are *not* case sensitive: - - I start my morning with a cup of coffee and - [The New York Times][NY Times]. - - [ny times]: http://www.nytimes.com/ - -Output: - -

I start my morning with a cup of coffee and - The New York Times.

- - -### Images ### - -Image syntax is very much like link syntax. - -Inline (titles are optional): - - ![alt text](/path/to/img.jpg "Title") - -Reference-style: - - ![alt text][id] - - [id]: /path/to/img.jpg "Title" - -Both of the above examples produce the same output: - - alt text - - - -### Code ### - -In a regular paragraph, you can create code span by wrapping text in -backtick quotes. Any ampersands (`&`) and angle brackets (`<` or -`>`) will automatically be translated into HTML entities. This makes -it easy to use Markdown to write about HTML example code: - - I strongly recommend against using any `` tags. - - I wish SmartyPants used named entities like `—` - instead of decimal-encoded entites like `—`. - -Output: - -

I strongly recommend against using any - <blink> tags.

- -

I wish SmartyPants used named entities like - &mdash; instead of decimal-encoded - entites like &#8212;.

- - -To specify an entire block of pre-formatted code, indent every line of -the block by 4 spaces or 1 tab. Just like with code spans, `&`, `<`, -and `>` characters will be escaped automatically. - -Markdown: - - If you want your page to validate under XHTML 1.0 Strict, - you've got to put paragraph tags in your blockquotes: - -
-

For example.

-
- -Output: - -

If you want your page to validate under XHTML 1.0 Strict, - you've got to put paragraph tags in your blockquotes:

- -
<blockquote>
-        <p>For example.</p>
-    </blockquote>
-    
diff --git a/test/fixtures/input/markdown-documentation-syntax.text b/test/fixtures/input/markdown-documentation-syntax.text deleted file mode 100644 index 8f3dac1c3..000000000 --- a/test/fixtures/input/markdown-documentation-syntax.text +++ /dev/null @@ -1,887 +0,0 @@ -Markdown: Syntax -================ - - - - -* [Overview](#overview) - * [Philosophy](#philosophy) - * [Inline HTML](#html) - * [Automatic Escaping for Special Characters](#autoescape) -* [Block Elements](#block) - * [Paragraphs and Line Breaks](#p) - * [Headers](#header) - * [Blockquotes](#blockquote) - * [Lists](#list) - * [Code Blocks](#precode) - * [Horizontal Rules](#hr) -* [Span Elements](#span) - * [Links](#link) - * [Emphasis](#em) - * [Code](#code) - * [Images](#img) -* [Miscellaneous](#misc) - * [Backslash Escapes](#backslash) - * [Automatic Links](#autolink) - - -**Note:** This document is itself written using Markdown; you -can [see the source for it by adding '.text' to the URL][src]. - - [src]: /projects/markdown/syntax.text - -* * * - -

Overview

- -

Philosophy

- -Markdown is intended to be as easy-to-read and easy-to-write as is feasible. - -Readability, however, is emphasized above all else. A Markdown-formatted -document should be publishable as-is, as plain text, without looking -like it's been marked up with tags or formatting instructions. While -Markdown's syntax has been influenced by several existing text-to-HTML -filters -- including [Setext] [1], [atx] [2], [Textile] [3], [reStructuredText] [4], -[Grutatext] [5], and [EtText] [6] -- the single biggest source of -inspiration for Markdown's syntax is the format of plain text email. - - [1]: http://docutils.sourceforge.net/mirror/setext.html - [2]: http://www.aaronsw.com/2002/atx/ - [3]: http://textism.com/tools/textile/ - [4]: http://docutils.sourceforge.net/rst.html - [5]: http://www.triptico.com/software/grutatxt.html - [6]: http://ettext.taint.org/doc/ - -To this end, Markdown's syntax is comprised entirely of punctuation -characters, which punctuation characters have been carefully chosen so -as to look like what they mean. E.g., asterisks around a word actually -look like \*emphasis\*. Markdown lists look like, well, lists. Even -blockquotes look like quoted passages of text, assuming you've ever -used email. - - - -

Inline HTML

- -Markdown's syntax is intended for one purpose: to be used as a -format for *writing* for the web. - -Markdown is not a replacement for HTML, or even close to it. Its -syntax is very small, corresponding only to a very small subset of -HTML tags. The idea is *not* to create a syntax that makes it easier -to insert HTML tags. In my opinion, HTML tags are already easy to -insert. The idea for Markdown is to make it easy to read, write, and -edit prose. HTML is a *publishing* format; Markdown is a *writing* -format. Thus, Markdown's formatting syntax only addresses issues that -can be conveyed in plain text. - -For any markup that is not covered by Markdown's syntax, you simply -use HTML itself. There's no need to preface it or delimit it to -indicate that you're switching from Markdown to HTML; you just use -the tags. - -The only restrictions are that block-level HTML elements -- e.g. `
`, -``, `
`, `

`, etc. -- must be separated from surrounding -content by blank lines, and the start and end tags of the block should -not be indented with tabs or spaces. Markdown is smart enough not -to add extra (unwanted) `

` tags around HTML block-level tags. - -For example, to add an HTML table to a Markdown article: - - This is a regular paragraph. - -

- - - -
Foo
- - This is another regular paragraph. - -Note that Markdown formatting syntax is not processed within block-level -HTML tags. E.g., you can't use Markdown-style `*emphasis*` inside an -HTML block. - -Span-level HTML tags -- e.g. ``, ``, or `` -- can be -used anywhere in a Markdown paragraph, list item, or header. If you -want, you can even use HTML tags instead of Markdown formatting; e.g. if -you'd prefer to use HTML `` or `` tags instead of Markdown's -link or image syntax, go right ahead. - -Unlike block-level HTML tags, Markdown syntax *is* processed within -span-level tags. - - -

Automatic Escaping for Special Characters

- -In HTML, there are two characters that demand special treatment: `<` -and `&`. Left angle brackets are used to start tags; ampersands are -used to denote HTML entities. If you want to use them as literal -characters, you must escape them as entities, e.g. `<`, and -`&`. - -Ampersands in particular are bedeviling for web writers. If you want to -write about 'AT&T', you need to write '`AT&T`'. You even need to -escape ampersands within URLs. Thus, if you want to link to: - - http://images.google.com/images?num=30&q=larry+bird - -you need to encode the URL as: - - http://images.google.com/images?num=30&q=larry+bird - -in your anchor tag `href` attribute. Needless to say, this is easy to -forget, and is probably the single most common source of HTML validation -errors in otherwise well-marked-up web sites. - -Markdown allows you to use these characters naturally, taking care of -all the necessary escaping for you. If you use an ampersand as part of -an HTML entity, it remains unchanged; otherwise it will be translated -into `&`. - -So, if you want to include a copyright symbol in your article, you can write: - - © - -and Markdown will leave it alone. But if you write: - - AT&T - -Markdown will translate it to: - - AT&T - -Similarly, because Markdown supports [inline HTML](#html), if you use -angle brackets as delimiters for HTML tags, Markdown will treat them as -such. But if you write: - - 4 < 5 - -Markdown will translate it to: - - 4 < 5 - -However, inside Markdown code spans and blocks, angle brackets and -ampersands are *always* encoded automatically. This makes it easy to use -Markdown to write about HTML code. (As opposed to raw HTML, which is a -terrible format for writing about HTML syntax, because every single `<` -and `&` in your example code needs to be escaped.) - - -* * * - - -

Block Elements

- -

Paragraphs and Line Breaks

- -A paragraph is simply one or more consecutive lines of text, separated -by one or more blank lines. (A blank line is any line that looks like a -blank line -- a line containing nothing but spaces or tabs is considered -blank.) Normal paragraphs should not be intended with spaces or tabs. - -The implication of the "one or more consecutive lines of text" rule is -that Markdown supports "hard-wrapped" text paragraphs. This differs -significantly from most other text-to-HTML formatters (including Movable -Type's "Convert Line Breaks" option) which translate every line break -character in a paragraph into a `
` tag. - -When you *do* want to insert a `
` break tag using Markdown, you -end a line with two or more spaces, then type return. - -Yes, this takes a tad more effort to create a `
`, but a simplistic -"every line break is a `
`" rule wouldn't work for Markdown. -Markdown's email-style [blockquoting][bq] and multi-paragraph [list items][l] -work best -- and look better -- when you format them with hard breaks. - - [bq]: #blockquote - [l]: #list - - - - - -Markdown supports two styles of headers, [Setext] [1] and [atx] [2]. - -Setext-style headers are "underlined" using equal signs (for first-level -headers) and dashes (for second-level headers). For example: - - This is an H1 - ============= - - This is an H2 - ------------- - -Any number of underlining `=`'s or `-`'s will work. - -Atx-style headers use 1-6 hash characters at the start of the line, -corresponding to header levels 1-6. For example: - - # This is an H1 - - ## This is an H2 - - ###### This is an H6 - -Optionally, you may "close" atx-style headers. This is purely -cosmetic -- you can use this if you think it looks better. The -closing hashes don't even need to match the number of hashes -used to open the header. (The number of opening hashes -determines the header level.) : - - # This is an H1 # - - ## This is an H2 ## - - ### This is an H3 ###### - - -

Blockquotes

- -Markdown uses email-style `>` characters for blockquoting. If you're -familiar with quoting passages of text in an email message, then you -know how to create a blockquote in Markdown. It looks best if you hard -wrap the text and put a `>` before every line: - - > This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet, - > consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus. - > Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus. - > - > Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse - > id sem consectetuer libero luctus adipiscing. - -Markdown allows you to be lazy and only put the `>` before the first -line of a hard-wrapped paragraph: - - > This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet, - consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus. - Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus. - - > Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse - id sem consectetuer libero luctus adipiscing. - -Blockquotes can be nested (i.e. a blockquote-in-a-blockquote) by -adding additional levels of `>`: - - > This is the first level of quoting. - > - > > This is nested blockquote. - > - > Back to the first level. - -Blockquotes can contain other Markdown elements, including headers, lists, -and code blocks: - - > ## This is a header. - > - > 1. This is the first list item. - > 2. This is the second list item. - > - > Here's some example code: - > - > return shell_exec("echo $input | $markdown_script"); - -Any decent text editor should make email-style quoting easy. For -example, with BBEdit, you can make a selection and choose Increase -Quote Level from the Text menu. - - -

Lists

- -Markdown supports ordered (numbered) and unordered (bulleted) lists. - -Unordered lists use asterisks, pluses, and hyphens -- interchangably --- as list markers: - - * Red - * Green - * Blue - -is equivalent to: - - + Red - + Green - + Blue - -and: - - - Red - - Green - - Blue - -Ordered lists use numbers followed by periods: - - 1. Bird - 2. McHale - 3. Parish - -It's important to note that the actual numbers you use to mark the -list have no effect on the HTML output Markdown produces. The HTML -Markdown produces from the above list is: - -
    -
  1. Bird
  2. -
  3. McHale
  4. -
  5. Parish
  6. -
- -If you instead wrote the list in Markdown like this: - - 1. Bird - 1. McHale - 1. Parish - -or even: - - 3. Bird - 1. McHale - 8. Parish - -you'd get the exact same HTML output. The point is, if you want to, -you can use ordinal numbers in your ordered Markdown lists, so that -the numbers in your source match the numbers in your published HTML. -But if you want to be lazy, you don't have to. - -If you do use lazy list numbering, however, you should still start the -list with the number 1. At some point in the future, Markdown may support -starting ordered lists at an arbitrary number. - -List markers typically start at the left margin, but may be indented by -up to three spaces. List markers must be followed by one or more spaces -or a tab. - -To make lists look nice, you can wrap items with hanging indents: - - * Lorem ipsum dolor sit amet, consectetuer adipiscing elit. - Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi, - viverra nec, fringilla in, laoreet vitae, risus. - * Donec sit amet nisl. Aliquam semper ipsum sit amet velit. - Suspendisse id sem consectetuer libero luctus adipiscing. - -But if you want to be lazy, you don't have to: - - * Lorem ipsum dolor sit amet, consectetuer adipiscing elit. - Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi, - viverra nec, fringilla in, laoreet vitae, risus. - * Donec sit amet nisl. Aliquam semper ipsum sit amet velit. - Suspendisse id sem consectetuer libero luctus adipiscing. - -If list items are separated by blank lines, Markdown will wrap the -items in `

` tags in the HTML output. For example, this input: - - * Bird - * Magic - -will turn into: - -

    -
  • Bird
  • -
  • Magic
  • -
- -But this: - - * Bird - - * Magic - -will turn into: - -
    -
  • Bird

  • -
  • Magic

  • -
- -List items may consist of multiple paragraphs. Each subsequent -paragraph in a list item must be intended by either 4 spaces -or one tab: - - 1. This is a list item with two paragraphs. Lorem ipsum dolor - sit amet, consectetuer adipiscing elit. Aliquam hendrerit - mi posuere lectus. - - Vestibulum enim wisi, viverra nec, fringilla in, laoreet - vitae, risus. Donec sit amet nisl. Aliquam semper ipsum - sit amet velit. - - 2. Suspendisse id sem consectetuer libero luctus adipiscing. - -It looks nice if you indent every line of the subsequent -paragraphs, but here again, Markdown will allow you to be -lazy: - - * This is a list item with two paragraphs. - - This is the second paragraph in the list item. You're - only required to indent the first line. Lorem ipsum dolor - sit amet, consectetuer adipiscing elit. - - * Another item in the same list. - -To put a blockquote within a list item, the blockquote's `>` -delimiters need to be indented: - - * A list item with a blockquote: - - > This is a blockquote - > inside a list item. - -To put a code block within a list item, the code block needs -to be indented *twice* -- 8 spaces or two tabs: - - * A list item with a code block: - - - - -It's worth noting that it's possible to trigger an ordered list by -accident, by writing something like this: - - 1986. What a great season. - -In other words, a *number-period-space* sequence at the beginning of a -line. To avoid this, you can backslash-escape the period: - - 1986\. What a great season. - - - -

Code Blocks

- -Pre-formatted code blocks are used for writing about programming or -markup source code. Rather than forming normal paragraphs, the lines -of a code block are interpreted literally. Markdown wraps a code block -in both `
` and `` tags.
-
-To produce a code block in Markdown, simply indent every line of the
-block by at least 4 spaces or 1 tab. For example, given this input:
-
-    This is a normal paragraph:
-
-        This is a code block.
-
-Markdown will generate:
-
-    

This is a normal paragraph:

- -
This is a code block.
-    
- -One level of indentation -- 4 spaces or 1 tab -- is removed from each -line of the code block. For example, this: - - Here is an example of AppleScript: - - tell application "Foo" - beep - end tell - -will turn into: - -

Here is an example of AppleScript:

- -
tell application "Foo"
-        beep
-    end tell
-    
- -A code block continues until it reaches a line that is not indented -(or the end of the article). - -Within a code block, ampersands (`&`) and angle brackets (`<` and `>`) -are automatically converted into HTML entities. This makes it very -easy to include example HTML source code using Markdown -- just paste -it and indent it, and Markdown will handle the hassle of encoding the -ampersands and angle brackets. For example, this: - - - -will turn into: - -
<div class="footer">
-        &copy; 2004 Foo Corporation
-    </div>
-    
- -Regular Markdown syntax is not processed within code blocks. E.g., -asterisks are just literal asterisks within a code block. This means -it's also easy to use Markdown to write about Markdown's own syntax. - - - -

Horizontal Rules

- -You can produce a horizontal rule tag (`
`) by placing three or -more hyphens, asterisks, or underscores on a line by themselves. If you -wish, you may use spaces between the hyphens or asterisks. Each of the -following lines will produce a horizontal rule: - - * * * - - *** - - ***** - - - - - - - --------------------------------------- - - _ _ _ - - -* * * - -

Span Elements

- - - -Markdown supports two style of links: *inline* and *reference*. - -In both styles, the link text is delimited by [square brackets]. - -To create an inline link, use a set of regular parentheses immediately -after the link text's closing square bracket. Inside the parentheses, -put the URL where you want the link to point, along with an *optional* -title for the link, surrounded in quotes. For example: - - This is [an example](http://example.com/ "Title") inline link. - - [This link](http://example.net/) has no title attribute. - -Will produce: - -

This is - an example inline link.

- -

This link has no - title attribute.

- -If you're referring to a local resource on the same server, you can -use relative paths: - - See my [About](/about/) page for details. - -Reference-style links use a second set of square brackets, inside -which you place a label of your choosing to identify the link: - - This is [an example][id] reference-style link. - -You can optionally use a space to separate the sets of brackets: - - This is [an example] [id] reference-style link. - -Then, anywhere in the document, you define your link label like this, -on a line by itself: - - [id]: http://example.com/ "Optional Title Here" - -That is: - -* Square brackets containing the link identifier (optionally - indented from the left margin using up to three spaces); -* followed by a colon; -* followed by one or more spaces (or tabs); -* followed by the URL for the link; -* optionally followed by a title attribute for the link, enclosed - in double or single quotes. - -The link URL may, optionally, be surrounded by angle brackets: - - [id]: "Optional Title Here" - -You can put the title attribute on the next line and use extra spaces -or tabs for padding, which tends to look better with longer URLs: - - [id]: http://example.com/longish/path/to/resource/here - "Optional Title Here" - -Link definitions are only used for creating links during Markdown -processing, and are stripped from your document in the HTML output. - -Link definition names may constist of letters, numbers, spaces, and punctuation -- but they are *not* case sensitive. E.g. these two links: - - [link text][a] - [link text][A] - -are equivalent. - -The *implicit link name* shortcut allows you to omit the name of the -link, in which case the link text itself is used as the name. -Just use an empty set of square brackets -- e.g., to link the word -"Google" to the google.com web site, you could simply write: - - [Google][] - -And then define the link: - - [Google]: http://google.com/ - -Because link names may contain spaces, this shortcut even works for -multiple words in the link text: - - Visit [Daring Fireball][] for more information. - -And then define the link: - - [Daring Fireball]: http://daringfireball.net/ - -Link definitions can be placed anywhere in your Markdown document. I -tend to put them immediately after each paragraph in which they're -used, but if you want, you can put them all at the end of your -document, sort of like footnotes. - -Here's an example of reference links in action: - - I get 10 times more traffic from [Google] [1] than from - [Yahoo] [2] or [MSN] [3]. - - [1]: http://google.com/ "Google" - [2]: http://search.yahoo.com/ "Yahoo Search" - [3]: http://search.msn.com/ "MSN Search" - -Using the implicit link name shortcut, you could instead write: - - I get 10 times more traffic from [Google][] than from - [Yahoo][] or [MSN][]. - - [google]: http://google.com/ "Google" - [yahoo]: http://search.yahoo.com/ "Yahoo Search" - [msn]: http://search.msn.com/ "MSN Search" - -Both of the above examples will produce the following HTML output: - -

I get 10 times more traffic from Google than from - Yahoo - or MSN.

- -For comparison, here is the same paragraph written using -Markdown's inline link style: - - I get 10 times more traffic from [Google](http://google.com/ "Google") - than from [Yahoo](http://search.yahoo.com/ "Yahoo Search") or - [MSN](http://search.msn.com/ "MSN Search"). - -The point of reference-style links is not that they're easier to -write. The point is that with reference-style links, your document -source is vastly more readable. Compare the above examples: using -reference-style links, the paragraph itself is only 81 characters -long; with inline-style links, it's 176 characters; and as raw HTML, -it's 234 characters. In the raw HTML, there's more markup than there -is text. - -With Markdown's reference-style links, a source document much more -closely resembles the final output, as rendered in a browser. By -allowing you to move the markup-related metadata out of the paragraph, -you can add links without interrupting the narrative flow of your -prose. - - -

Emphasis

- -Markdown treats asterisks (`*`) and underscores (`_`) as indicators of -emphasis. Text wrapped with one `*` or `_` will be wrapped with an -HTML `` tag; double `*`'s or `_`'s will be wrapped with an HTML -`` tag. E.g., this input: - - *single asterisks* - - _single underscores_ - - **double asterisks** - - __double underscores__ - -will produce: - - single asterisks - - single underscores - - double asterisks - - double underscores - -You can use whichever style you prefer; the lone restriction is that -the same character must be used to open and close an emphasis span. - -Emphasis can be used in the middle of a word: - - un*fucking*believable - -But if you surround an `*` or `_` with spaces, it'll be treated as a -literal asterisk or underscore. - -To produce a literal asterisk or underscore at a position where it -would otherwise be used as an emphasis delimiter, you can backslash -escape it: - - \*this text is surrounded by literal asterisks\* - - - -

Code

- -To indicate a span of code, wrap it with backtick quotes (`` ` ``). -Unlike a pre-formatted code block, a code span indicates code within a -normal paragraph. For example: - - Use the `printf()` function. - -will produce: - -

Use the printf() function.

- -To include a literal backtick character within a code span, you can use -multiple backticks as the opening and closing delimiters: - - ``There is a literal backtick (`) here.`` - -which will produce this: - -

There is a literal backtick (`) here.

- -The backtick delimiters surrounding a code span may include spaces -- -one after the opening, one before the closing. This allows you to place -literal backtick characters at the beginning or end of a code span: - - A single backtick in a code span: `` ` `` - - A backtick-delimited string in a code span: `` `foo` `` - -will produce: - -

A single backtick in a code span: `

- -

A backtick-delimited string in a code span: `foo`

- -With a code span, ampersands and angle brackets are encoded as HTML -entities automatically, which makes it easy to include example HTML -tags. Markdown will turn this: - - Please don't use any `` tags. - -into: - -

Please don't use any <blink> tags.

- -You can write this: - - `—` is the decimal-encoded equivalent of `—`. - -to produce: - -

&#8212; is the decimal-encoded - equivalent of &mdash;.

- - - -

Images

- -Admittedly, it's fairly difficult to devise a "natural" syntax for -placing images into a plain text document format. - -Markdown uses an image syntax that is intended to resemble the syntax -for links, allowing for two styles: *inline* and *reference*. - -Inline image syntax looks like this: - - ![Alt text](/path/to/img.jpg) - - ![Alt text](/path/to/img.jpg "Optional title") - -That is: - -* An exclamation mark: `!`; -* followed by a set of square brackets, containing the `alt` - attribute text for the image; -* followed by a set of parentheses, containing the URL or path to - the image, and an optional `title` attribute enclosed in double - or single quotes. - -Reference-style image syntax looks like this: - - ![Alt text][id] - -Where "id" is the name of a defined image reference. Image references -are defined using syntax identical to link references: - - [id]: url/to/image "Optional title attribute" - -As of this writing, Markdown has no syntax for specifying the -dimensions of an image; if this is important to you, you can simply -use regular HTML `` tags. - - -* * * - - -

Miscellaneous

- - - -Markdown supports a shortcut style for creating "automatic" links for URLs and email addresses: simply surround the URL or email address with angle brackets. What this means is that if you want to show the actual text of a URL or email address, and also have it be a clickable link, you can do this: - - - -Markdown will turn this into: - - http://example.com/ - -Automatic links for email addresses work similarly, except that -Markdown will also perform a bit of randomized decimal and hex -entity-encoding to help obscure your address from address-harvesting -spambots. For example, Markdown will turn this: - - - -into something like this: - - address@exa - mple.com - -which will render in a browser as a clickable link to "address@example.com". - -(This sort of entity-encoding trick will indeed fool many, if not -most, address-harvesting bots, but it definitely won't fool all of -them. It's better than nothing, but an address published in this way -will probably eventually start receiving spam.) - - - -

Backslash Escapes

- -Markdown allows you to use backslash escapes to generate literal -characters which would otherwise have special meaning in Markdown's -formatting syntax. For example, if you wanted to surround a word with -literal asterisks (instead of an HTML `` tag), you can backslashes -before the asterisks, like this: - - \*literal asterisks\* - -Markdown provides backslash escapes for the following characters: - - \ backslash - ` backtick - * asterisk - _ underscore - {} curly braces - [] square brackets - () parentheses - # hash mark - + plus sign - - minus sign (hyphen) - . dot - ! exclamation mark - diff --git a/test/fixtures/input/mixed-indentation.text b/test/fixtures/input/mixed-indentation.text deleted file mode 100644 index 3808a8426..000000000 --- a/test/fixtures/input/mixed-indentation.text +++ /dev/null @@ -1,13 +0,0 @@ -# Mixed spaces and tabs - -- Very long - paragraph - -1. Very long - paragraph - -- Very long - paragraph - -1. Very long - paragraph diff --git a/test/fixtures/input/nested-blockquotes.text b/test/fixtures/input/nested-blockquotes.text deleted file mode 100644 index ed3c624ff..000000000 --- a/test/fixtures/input/nested-blockquotes.text +++ /dev/null @@ -1,5 +0,0 @@ -> foo -> -> > bar -> -> foo diff --git a/test/fixtures/input/nested-code.text b/test/fixtures/input/nested-code.text deleted file mode 100644 index 9293ad0f0..000000000 --- a/test/fixtures/input/nested-code.text +++ /dev/null @@ -1,3 +0,0 @@ -````` hi ther `` ok ``` ````` - -`` `hi ther` `` diff --git a/test/fixtures/input/nested-em.nooutput.text b/test/fixtures/input/nested-em.nooutput.text deleted file mode 100644 index 550d0eb99..000000000 --- a/test/fixtures/input/nested-em.nooutput.text +++ /dev/null @@ -1,3 +0,0 @@ -*test **test** test* - -_test __test__ test_ diff --git a/test/fixtures/input/nested-references.text b/test/fixtures/input/nested-references.text deleted file mode 100644 index 90ef97afe..000000000 --- a/test/fixtures/input/nested-references.text +++ /dev/null @@ -1,10 +0,0 @@ -This nested image should work: - -[![Foo][bar]][baz] - -This nested link should not work: - -[[Foo][bar]][baz] - -[bar]: https://bar.com "bar" -[baz]: https://baz.com "baz" diff --git a/test/fixtures/input/nested-square-link.text b/test/fixtures/input/nested-square-link.text deleted file mode 100644 index 76a74c0fb..000000000 --- a/test/fixtures/input/nested-square-link.text +++ /dev/null @@ -1,7 +0,0 @@ -[the `]` character](/url) - -[the `` [ `` character](/url) - -[the `` [ ``` character](/url) - -[the `` ` `` character](/url) diff --git a/test/fixtures/input/not-a-link.text b/test/fixtures/input/not-a-link.text deleted file mode 100644 index 26f60437d..000000000 --- a/test/fixtures/input/not-a-link.text +++ /dev/null @@ -1 +0,0 @@ -\[test](not a link) diff --git a/test/fixtures/input/ordered-and-unordered-lists.text b/test/fixtures/input/ordered-and-unordered-lists.text deleted file mode 100644 index 7f3b49777..000000000 --- a/test/fixtures/input/ordered-and-unordered-lists.text +++ /dev/null @@ -1,131 +0,0 @@ -## Unordered - -Asterisks tight: - -* asterisk 1 -* asterisk 2 -* asterisk 3 - - -Asterisks loose: - -* asterisk 1 - -* asterisk 2 - -* asterisk 3 - -* * * - -Pluses tight: - -+ Plus 1 -+ Plus 2 -+ Plus 3 - - -Pluses loose: - -+ Plus 1 - -+ Plus 2 - -+ Plus 3 - -* * * - - -Minuses tight: - -- Minus 1 -- Minus 2 -- Minus 3 - - -Minuses loose: - -- Minus 1 - -- Minus 2 - -- Minus 3 - - -## Ordered - -Tight: - -1. First -2. Second -3. Third - -and: - -1. One -2. Two -3. Three - - -Loose using tabs: - -1. First - -2. Second - -3. Third - -and using spaces: - -1. One - -2. Two - -3. Three - -Multiple paragraphs: - -1. Item 1, graf one. - - Item 2. graf two. The quick brown fox jumped over the lazy dog's - back. - -2. Item 2. - -3. Item 3. - - - -## Nested - -* Tab - * Tab - * Tab - -Here's another: - -1. First -2. Second: - * Fee - * Fie - * Foe -3. Third - -Same thing but with paragraphs: - -1. First - -2. Second: - * Fee - * Fie - * Foe - -3. Third - - -This was an error in Markdown 1.0.1: - -* this - - * sub - - that diff --git a/test/fixtures/input/ordered-different-types.nooutput.text b/test/fixtures/input/ordered-different-types.nooutput.text deleted file mode 100644 index db513d8ba..000000000 --- a/test/fixtures/input/ordered-different-types.nooutput.text +++ /dev/null @@ -1,3 +0,0 @@ -1. foo -2. bar -3) baz diff --git a/test/fixtures/input/ordered-with-parentheses.text b/test/fixtures/input/ordered-with-parentheses.text deleted file mode 100644 index abed47796..000000000 --- a/test/fixtures/input/ordered-with-parentheses.text +++ /dev/null @@ -1,40 +0,0 @@ -## Ordered - -Tight: - -1) First -2) Second -3) Third - -and: - -1) One -2) Two -3) Three - -Loose using tabs: - -1) First - -2) Second - -3) Third - -and using spaces: - -1) One - -2) Two - -3) Three - -Multiple paragraphs: - -1) Item 1, graf one. - - Item 2. graf two. The quick brown fox jumped over the lazy dog's - back. - -2) Item 2. - -3) Item 3. diff --git a/test/fixtures/input/paragraphs-and-indentation.text b/test/fixtures/input/paragraphs-and-indentation.text deleted file mode 100644 index 81d9cb394..000000000 --- a/test/fixtures/input/paragraphs-and-indentation.text +++ /dev/null @@ -1,36 +0,0 @@ -# Without lines. - -This is a paragraph - and this is further text - -This is a paragraph - and this is further text - -This is a paragraph - -and this is a new paragraph - -This is a paragraph with some asterisks - *** - -This is a paragraph followed by a horizontal rule - *** - -# With lines. - -This is a paragraph - - and this is code - -This is a paragraph - - and this is a new paragraph - -This is a paragraph with some asterisks in a code block - - *** - -This is a paragraph followed by a horizontal rule - - *** - diff --git a/test/fixtures/input/paragraphs-empty.text b/test/fixtures/input/paragraphs-empty.text deleted file mode 100644 index a409646fc..000000000 --- a/test/fixtures/input/paragraphs-empty.text +++ /dev/null @@ -1,12 +0,0 @@ - - -aaa - - -# aaa - - - -bbb - -ccc \ No newline at end of file diff --git a/test/fixtures/input/ref-paren.text b/test/fixtures/input/ref-paren.text deleted file mode 100644 index aa97c91ae..000000000 --- a/test/fixtures/input/ref-paren.text +++ /dev/null @@ -1,3 +0,0 @@ -[hi] - -[hi]: /url (there) diff --git a/test/fixtures/input/reference-image-empty-alt.text b/test/fixtures/input/reference-image-empty-alt.text deleted file mode 100644 index 806cd2c64..000000000 --- a/test/fixtures/input/reference-image-empty-alt.text +++ /dev/null @@ -1,3 +0,0 @@ -![][1] - -[1]: /xyz.png diff --git a/test/fixtures/input/reference-link-escape.nooutput.text b/test/fixtures/input/reference-link-escape.nooutput.text deleted file mode 100644 index 837cad417..000000000 --- a/test/fixtures/input/reference-link-escape.nooutput.text +++ /dev/null @@ -1,5 +0,0 @@ -[a][b\*r*], [b\*r*][], [b\*r*]. - -![foo][b\*r*], ![b\*r*][], ![b\*r*]. - -[b\*r*]: http://google.com diff --git a/test/fixtures/input/reference-link-not-closed.text b/test/fixtures/input/reference-link-not-closed.text deleted file mode 100644 index 143332dd7..000000000 --- a/test/fixtures/input/reference-link-not-closed.text +++ /dev/null @@ -1,5 +0,0 @@ -[bar][bar - -[bar][ - -[bar] diff --git a/test/fixtures/input/reference-link-with-angle-brackets.text b/test/fixtures/input/reference-link-with-angle-brackets.text deleted file mode 100644 index 95e2435f9..000000000 --- a/test/fixtures/input/reference-link-with-angle-brackets.text +++ /dev/null @@ -1,3 +0,0 @@ -[foo] - -[foo]: <./url with spaces> diff --git a/test/fixtures/input/reference-link-with-multiple-definitions.text b/test/fixtures/input/reference-link-with-multiple-definitions.text deleted file mode 100644 index 04c90513a..000000000 --- a/test/fixtures/input/reference-link-with-multiple-definitions.text +++ /dev/null @@ -1,4 +0,0 @@ -[foo] - -[foo]: first -[foo]: second diff --git a/test/fixtures/input/remarkjs-remark-lint-gh-111.text b/test/fixtures/input/remarkjs-remark-lint-gh-111.text deleted file mode 100644 index 7b35a8aa8..000000000 --- a/test/fixtures/input/remarkjs-remark-lint-gh-111.text +++ /dev/null @@ -1,8 +0,0 @@ -1. **Fork** -2. **Clone** - - git clone -3. **Configure remotes** - - cd - git remote add upstream diff --git a/test/fixtures/input/same-bullet.nooutput.text b/test/fixtures/input/same-bullet.nooutput.text deleted file mode 100644 index 27a89675a..000000000 --- a/test/fixtures/input/same-bullet.nooutput.text +++ /dev/null @@ -1,3 +0,0 @@ -* test -+ test -- test diff --git a/test/fixtures/input/stringify-escape.text b/test/fixtures/input/stringify-escape.text deleted file mode 100644 index 22dcd79d7..000000000 --- a/test/fixtures/input/stringify-escape.text +++ /dev/null @@ -1,87 +0,0 @@ -Characters that should be escaped in general: - -\\ \` \* \[ - -Characters that shouldn't: - -{}]()#+-.!>"$%',/:;=?@^~ - -Underscores are \_escaped\_ unless they appear in_the_middle_of_a_word. -or **_here**, or here__ - -Ampersands are escaped only when they would otherwise start an entity: - -- \©cat \& \& -- &copycat &amp; &#x26 -- But: ©cat; `≬` &foo; & AT&T &c - -Open parenthesis should be escaped after a shortcut reference: - -[ref]\(text) - -And after a shortcut reference and a space (for GitHub): - -[ref] \(text) - -Hyphen should be escaped at the beginning of a line: - -\- not a list item -\- not a list item - \+ not a list item - -Same for angle brackets: - -\> not a block quote - -And hash signs: - -\# not a heading - \## not a subheading - -Text under a shortcut reference should be preserved verbatim: - -- [two*three] -- [two\*three] -- [a\a] -- [a\\a] -- [a\\\a] -- [a_a\_a] - -**GFM:** - -Colon should be escaped in URLs: - -- http\://user:password@host:port/path?key=value#fragment -- https\://user:password@host:port/path?key=value#fragment -- http://user:password@host:port/path?key=value#fragment -- https://user:password@host:port/path?key=value#fragment - -Double tildes should be \~~escaped\~~. -And here: foo~~. - -Pipes should not be escaped here: | - -| here | they | -| ------ | -------- | -| should | tho\|ugh | - -And here: - -| here | they | -\| ---- \| ----- \| -| should | though | - -And here: - -here | they -\---- \| ------ -should | though - -**Commonmark:** - -Open angle bracket should be escaped: - -- \
\
-- \ -- <div></div> -- <http:google.com> diff --git a/test/fixtures/input/strong-and-em-together-one.text b/test/fixtures/input/strong-and-em-together-one.text deleted file mode 100644 index 95ee690db..000000000 --- a/test/fixtures/input/strong-and-em-together-one.text +++ /dev/null @@ -1,7 +0,0 @@ -***This is strong and em.*** - -So is ***this*** word. - -___This is strong and em.___ - -So is ___this___ word. diff --git a/test/fixtures/input/strong-and-em-together-two.nooutput.text b/test/fixtures/input/strong-and-em-together-two.nooutput.text deleted file mode 100644 index 28ab9e45e..000000000 --- a/test/fixtures/input/strong-and-em-together-two.nooutput.text +++ /dev/null @@ -1,7 +0,0 @@ -perform_complicated_task - -do_this_and_do_that_and_another_thing - -perform*complicated*task - -do*this*and*do*that*and*another*thing diff --git a/test/fixtures/input/strong-emphasis.text b/test/fixtures/input/strong-emphasis.text deleted file mode 100644 index f72a5df63..000000000 --- a/test/fixtures/input/strong-emphasis.text +++ /dev/null @@ -1,3 +0,0 @@ -Foo **bar** __baz__. - -Foo __bar__ **baz**. \ No newline at end of file diff --git a/test/fixtures/input/strong-initial-white-space.text b/test/fixtures/input/strong-initial-white-space.text deleted file mode 100644 index 45e6c9eab..000000000 --- a/test/fixtures/input/strong-initial-white-space.text +++ /dev/null @@ -1,4 +0,0 @@ -** bar **. - - -__ bar __. \ No newline at end of file diff --git a/test/fixtures/input/tabs-and-spaces.text b/test/fixtures/input/tabs-and-spaces.text deleted file mode 100644 index 589d1136e..000000000 --- a/test/fixtures/input/tabs-and-spaces.text +++ /dev/null @@ -1,21 +0,0 @@ -+ this is a list item - indented with tabs - -+ this is a list item - indented with spaces - -Code: - - this code block is indented by one tab - -And: - - this code block is indented by two tabs - -And: - - + this is an example list item - indented with tabs - - + this is an example list item - indented with spaces diff --git a/test/fixtures/input/tabs.text b/test/fixtures/input/tabs.text deleted file mode 100644 index 589d1136e..000000000 --- a/test/fixtures/input/tabs.text +++ /dev/null @@ -1,21 +0,0 @@ -+ this is a list item - indented with tabs - -+ this is a list item - indented with spaces - -Code: - - this code block is indented by one tab - -And: - - this code block is indented by two tabs - -And: - - + this is an example list item - indented with tabs - - + this is an example list item - indented with spaces diff --git a/test/fixtures/input/tidyness.text b/test/fixtures/input/tidyness.text deleted file mode 100644 index 5f18b8da2..000000000 --- a/test/fixtures/input/tidyness.text +++ /dev/null @@ -1,5 +0,0 @@ -> A list within a blockquote: -> -> * asterisk 1 -> * asterisk 2 -> * asterisk 3 diff --git a/test/fixtures/input/title-attributes.text b/test/fixtures/input/title-attributes.text deleted file mode 100644 index 049af7731..000000000 --- a/test/fixtures/input/title-attributes.text +++ /dev/null @@ -1,99 +0,0 @@ -# Links - -| Implementation | Characters | Nested | Mismatched | Escaped | Named Entities | Numbered Entities | -| -------------- | ---------- |------- | ---------- | ------- | -------------- | ----------------- | -| Markdown.pl | `"` | Yes | Yes | No | Yes | Yes | -| GitHub | `"` | Yes | Yes | No | No | No | -| CommonMark | `"` | No | No | Yes | Yes | Yes | -| Markdown.pl | `'` | Yes | Yes | No | Yes | Yes | -| GitHub | `'` | Yes | Yes | No | No | No | -| CommonMark | `'` | No | No | Yes | Yes | Yes | -| Markdown.pl | `()` | - | - | - | - | - | -| GitHub | `()` | - | - | - | - | - | -| CommonMark | `()` | No | Yes | Yes | Yes | Yes | - -## Double quotes - -[Hello](./world.html "and text") - -[Hello](./world.html "and "matching delimiters"") - -[Hello](./world.html "and "mismatched delimiters") - -[Hello](./world.html "and \"escapes\"") - -[Hello](./world.html "and "named entities"") - -[Hello](./world.html "and "numbered entities"") - -## Single quotes - -[Hello](./world.html 'and text') - -[Hello](./world.html 'and 'matching delimiters'') - -[Hello](./world.html 'and 'mismatched delimiters') - -[Hello](./world.html 'and \'escapes\'') - -[Hello](./world.html 'and 'named entities'') - -[Hello](./world.html 'and 'numbered entities'') - -## Parentheses - -[Hello](./world.html (and text)) - -[Hello](./world.html (and (matching delimiters))) - -[Hello](./world.html (and (mismatched delimiters)) - -[Hello](./world.html (and \(escapes\))) - -[Hello](./world.html (and (named entities))) - -[Hello](./world.html (and (numbered entities))) - -# Images - -## Double quotes - -![Hello](./world.png "and text") - -![Hello](./world.png "and "matching delimiters"") - -![Hello](./world.png "and "mismatched delimiters") - -![Hello](./world.png "and \"escapes\"") - -![Hello](./world.png "and "named entities"") - -![Hello](./world.png "and "numbered entities"") - -## Single quotes - -![Hello](./world.png 'and text') - -![Hello](./world.png 'and 'matching delimiters'') - -![Hello](./world.png 'and 'mismatched delimiters') - -![Hello](./world.png 'and \'escapes\'') - -![Hello](./world.png 'and 'named entities'') - -![Hello](./world.png 'and 'numbered entities'') - -## Parentheses - -![Hello](./world.png (and text)) - -![Hello](./world.png (and (matching delimiters))) - -![Hello](./world.png (and (mismatched delimiters)) - -![Hello](./world.png (and \(escapes\))) - -![Hello](./world.png (and (named entities))) - -![Hello](./world.png (and (numbered entities))) diff --git a/test/fixtures/input/toplevel-paragraphs.nooutput.text b/test/fixtures/input/toplevel-paragraphs.nooutput.text deleted file mode 100644 index 66366c07c..000000000 --- a/test/fixtures/input/toplevel-paragraphs.nooutput.text +++ /dev/null @@ -1,37 +0,0 @@ -hello world - how are you - how are you - -hello world -``` -how are you -``` - -hello world -* * * - -hello world -# how are you - -hello world -how are you -=========== - -hello world -> how are you - -hello world -* how are you - -hello world -
how are you
- -hello world -how are you - -hello [world][how] -[how]: /are/you - -
hello
- -hello diff --git a/test/fixtures/input/tricky-list.text b/test/fixtures/input/tricky-list.text deleted file mode 100644 index 9aa76ceb9..000000000 --- a/test/fixtures/input/tricky-list.text +++ /dev/null @@ -1,15 +0,0 @@ -**hello** _world_ - -* hello world - -**hello** _world_ - -* hello world - -**hello** _world_ - -* Hello world - -**hello** _world_ - -* hello world diff --git a/test/fixtures/tree/amps-and-angles-encoding.json b/test/fixtures/tree/amps-and-angles-encoding.json deleted file mode 100644 index 7472757f7..000000000 --- a/test/fixtures/tree/amps-and-angles-encoding.json +++ /dev/null @@ -1,558 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "AT&T has an ampersand in their name.", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 37, - "offset": 36 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 37, - "offset": 36 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "AT&T is another way to write it.", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 38 - }, - "end": { - "line": 3, - "column": 37, - "offset": 74 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 38 - }, - "end": { - "line": 3, - "column": 37, - "offset": 74 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This & that.", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 76 - }, - "end": { - "line": 5, - "column": 13, - "offset": 88 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 76 - }, - "end": { - "line": 5, - "column": 13, - "offset": 88 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "4 < 5.", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 90 - }, - "end": { - "line": 7, - "column": 7, - "offset": 96 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 90 - }, - "end": { - "line": 7, - "column": 7, - "offset": 96 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "6 > 5.", - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 98 - }, - "end": { - "line": 9, - "column": 7, - "offset": 104 - } - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 98 - }, - "end": { - "line": 9, - "column": 7, - "offset": 104 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Here's a [link] ", - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 106 - }, - "end": { - "line": 11, - "column": 17, - "offset": 122 - } - } - }, - { - "type": "linkReference", - "children": [ - { - "type": "text", - "value": "1", - "position": { - "start": { - "line": 11, - "column": 18, - "offset": 123 - }, - "end": { - "line": 11, - "column": 19, - "offset": 124 - } - } - } - ], - "position": { - "start": { - "line": 11, - "column": 17, - "offset": 122 - }, - "end": { - "line": 11, - "column": 20, - "offset": 125 - } - }, - "label": "1", - "identifier": "1", - "referenceType": "shortcut" - }, - { - "type": "text", - "value": " with an ampersand in the URL.", - "position": { - "start": { - "line": 11, - "column": 20, - "offset": 125 - }, - "end": { - "line": 11, - "column": 50, - "offset": 155 - } - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 106 - }, - "end": { - "line": 11, - "column": 50, - "offset": 155 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Here's a link with an amersand in the link text: [AT&T] ", - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 157 - }, - "end": { - "line": 13, - "column": 57, - "offset": 213 - } - } - }, - { - "type": "linkReference", - "children": [ - { - "type": "text", - "value": "2", - "position": { - "start": { - "line": 13, - "column": 58, - "offset": 214 - }, - "end": { - "line": 13, - "column": 59, - "offset": 215 - } - } - } - ], - "position": { - "start": { - "line": 13, - "column": 57, - "offset": 213 - }, - "end": { - "line": 13, - "column": 60, - "offset": 216 - } - }, - "label": "2", - "identifier": "2", - "referenceType": "shortcut" - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 13, - "column": 60, - "offset": 216 - }, - "end": { - "line": 13, - "column": 61, - "offset": 217 - } - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 157 - }, - "end": { - "line": 13, - "column": 61, - "offset": 217 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Here's an inline ", - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 219 - }, - "end": { - "line": 15, - "column": 18, - "offset": 236 - } - } - }, - { - "type": "link", - "title": null, - "url": "/script?foo=1&bar=2", - "children": [ - { - "type": "text", - "value": "link", - "position": { - "start": { - "line": 15, - "column": 19, - "offset": 237 - }, - "end": { - "line": 15, - "column": 23, - "offset": 241 - } - } - } - ], - "position": { - "start": { - "line": 15, - "column": 18, - "offset": 236 - }, - "end": { - "line": 15, - "column": 45, - "offset": 263 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 15, - "column": 45, - "offset": 263 - }, - "end": { - "line": 15, - "column": 46, - "offset": 264 - } - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 219 - }, - "end": { - "line": 15, - "column": 46, - "offset": 264 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Here's an inline ", - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 266 - }, - "end": { - "line": 17, - "column": 18, - "offset": 283 - } - } - }, - { - "type": "link", - "title": null, - "url": "/script?foo=1&bar=2", - "children": [ - { - "type": "text", - "value": "link", - "position": { - "start": { - "line": 17, - "column": 19, - "offset": 284 - }, - "end": { - "line": 17, - "column": 23, - "offset": 288 - } - } - } - ], - "position": { - "start": { - "line": 17, - "column": 18, - "offset": 283 - }, - "end": { - "line": 17, - "column": 47, - "offset": 312 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 17, - "column": 47, - "offset": 312 - }, - "end": { - "line": 17, - "column": 48, - "offset": 313 - } - } - } - ], - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 266 - }, - "end": { - "line": 17, - "column": 48, - "offset": 313 - } - } - }, - { - "type": "definition", - "identifier": "1", - "label": "1", - "title": null, - "url": "http://example.com/?foo=1&bar=2", - "position": { - "start": { - "line": 20, - "column": 1, - "offset": 316 - }, - "end": { - "line": 20, - "column": 37, - "offset": 352 - } - } - }, - { - "type": "definition", - "identifier": "2", - "label": "2", - "title": "AT&T", - "url": "http://att.com/", - "position": { - "start": { - "line": 21, - "column": 1, - "offset": 353 - }, - "end": { - "line": 21, - "column": 29, - "offset": 381 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 22, - "column": 1, - "offset": 382 - } - } -} diff --git a/test/fixtures/tree/auto-link-invalid.json b/test/fixtures/tree/auto-link-invalid.json deleted file mode 100644 index f0c70ec4b..000000000 --- a/test/fixtures/tree/auto-link-invalid.json +++ /dev/null @@ -1,201 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "", - "position": { - "start": { - "line": 15, - "column": 35, - "offset": 300 - }, - "end": { - "line": 15, - "column": 58, - "offset": 323 - } - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 266 - }, - "end": { - "line": 15, - "column": 58, - "offset": 323 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "or here: ", - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 325 - }, - "end": { - "line": 17, - "column": 32, - "offset": 356 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 18, - "column": 1, - "offset": 357 - } - } -} diff --git a/test/fixtures/tree/backslash-escapes.json b/test/fixtures/tree/backslash-escapes.json deleted file mode 100644 index 3022e1f1b..000000000 --- a/test/fixtures/tree/backslash-escapes.json +++ /dev/null @@ -1,3598 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "These should all get escaped:", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 30, - "offset": 29 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 30, - "offset": 29 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Backslash: \\", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 31 - }, - "end": { - "line": 3, - "column": 14, - "offset": 44 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 31 - }, - "end": { - "line": 3, - "column": 14, - "offset": 44 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Backtick: `", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 46 - }, - "end": { - "line": 5, - "column": 13, - "offset": 58 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 46 - }, - "end": { - "line": 5, - "column": 13, - "offset": 58 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Asterisk: *", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 60 - }, - "end": { - "line": 7, - "column": 13, - "offset": 72 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 60 - }, - "end": { - "line": 7, - "column": 13, - "offset": 72 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Underscore: _", - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 74 - }, - "end": { - "line": 9, - "column": 15, - "offset": 88 - } - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 74 - }, - "end": { - "line": 9, - "column": 15, - "offset": 88 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Left brace: {", - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 90 - }, - "end": { - "line": 11, - "column": 15, - "offset": 104 - } - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 90 - }, - "end": { - "line": 11, - "column": 15, - "offset": 104 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Right brace: }", - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 106 - }, - "end": { - "line": 13, - "column": 16, - "offset": 121 - } - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 106 - }, - "end": { - "line": 13, - "column": 16, - "offset": 121 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Left bracket: [", - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 123 - }, - "end": { - "line": 15, - "column": 17, - "offset": 139 - } - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 123 - }, - "end": { - "line": 15, - "column": 17, - "offset": 139 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Right bracket: ]", - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 141 - }, - "end": { - "line": 17, - "column": 18, - "offset": 158 - } - } - } - ], - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 141 - }, - "end": { - "line": 17, - "column": 18, - "offset": 158 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Left paren: (", - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 160 - }, - "end": { - "line": 19, - "column": 15, - "offset": 174 - } - } - } - ], - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 160 - }, - "end": { - "line": 19, - "column": 15, - "offset": 174 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Right paren: )", - "position": { - "start": { - "line": 21, - "column": 1, - "offset": 176 - }, - "end": { - "line": 21, - "column": 16, - "offset": 191 - } - } - } - ], - "position": { - "start": { - "line": 21, - "column": 1, - "offset": 176 - }, - "end": { - "line": 21, - "column": 16, - "offset": 191 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Greater-than: >", - "position": { - "start": { - "line": 23, - "column": 1, - "offset": 193 - }, - "end": { - "line": 23, - "column": 17, - "offset": 209 - } - } - } - ], - "position": { - "start": { - "line": 23, - "column": 1, - "offset": 193 - }, - "end": { - "line": 23, - "column": 17, - "offset": 209 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hash: #", - "position": { - "start": { - "line": 25, - "column": 1, - "offset": 211 - }, - "end": { - "line": 25, - "column": 9, - "offset": 219 - } - } - } - ], - "position": { - "start": { - "line": 25, - "column": 1, - "offset": 211 - }, - "end": { - "line": 25, - "column": 9, - "offset": 219 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Period: .", - "position": { - "start": { - "line": 27, - "column": 1, - "offset": 221 - }, - "end": { - "line": 27, - "column": 11, - "offset": 231 - } - } - } - ], - "position": { - "start": { - "line": 27, - "column": 1, - "offset": 221 - }, - "end": { - "line": 27, - "column": 11, - "offset": 231 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Bang: !", - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 233 - }, - "end": { - "line": 29, - "column": 9, - "offset": 241 - } - } - } - ], - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 233 - }, - "end": { - "line": 29, - "column": 9, - "offset": 241 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Plus: +", - "position": { - "start": { - "line": 31, - "column": 1, - "offset": 243 - }, - "end": { - "line": 31, - "column": 9, - "offset": 251 - } - } - } - ], - "position": { - "start": { - "line": 31, - "column": 1, - "offset": 243 - }, - "end": { - "line": 31, - "column": 9, - "offset": 251 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Minus: -", - "position": { - "start": { - "line": 33, - "column": 1, - "offset": 253 - }, - "end": { - "line": 33, - "column": 10, - "offset": 262 - } - } - } - ], - "position": { - "start": { - "line": 33, - "column": 1, - "offset": 253 - }, - "end": { - "line": 33, - "column": 10, - "offset": 262 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "GFM:", - "position": { - "start": { - "line": 35, - "column": 3, - "offset": 266 - }, - "end": { - "line": 35, - "column": 7, - "offset": 270 - } - } - } - ], - "position": { - "start": { - "line": 35, - "column": 1, - "offset": 264 - }, - "end": { - "line": 35, - "column": 9, - "offset": 272 - } - } - } - ], - "position": { - "start": { - "line": 35, - "column": 1, - "offset": 264 - }, - "end": { - "line": 35, - "column": 9, - "offset": 272 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Pipe: |", - "position": { - "start": { - "line": 37, - "column": 1, - "offset": 274 - }, - "end": { - "line": 37, - "column": 9, - "offset": 282 - } - } - } - ], - "position": { - "start": { - "line": 37, - "column": 1, - "offset": 274 - }, - "end": { - "line": 37, - "column": 9, - "offset": 282 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Tilde: ~", - "position": { - "start": { - "line": 39, - "column": 1, - "offset": 284 - }, - "end": { - "line": 39, - "column": 10, - "offset": 293 - } - } - } - ], - "position": { - "start": { - "line": 39, - "column": 1, - "offset": 284 - }, - "end": { - "line": 39, - "column": 10, - "offset": 293 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "Commonmark:", - "position": { - "start": { - "line": 41, - "column": 3, - "offset": 297 - }, - "end": { - "line": 41, - "column": 14, - "offset": 308 - } - } - } - ], - "position": { - "start": { - "line": 41, - "column": 1, - "offset": 295 - }, - "end": { - "line": 41, - "column": 16, - "offset": 310 - } - } - } - ], - "position": { - "start": { - "line": 41, - "column": 1, - "offset": 295 - }, - "end": { - "line": 41, - "column": 16, - "offset": 310 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Quote: \"", - "position": { - "start": { - "line": 43, - "column": 1, - "offset": 312 - }, - "end": { - "line": 43, - "column": 10, - "offset": 321 - } - } - } - ], - "position": { - "start": { - "line": 43, - "column": 1, - "offset": 312 - }, - "end": { - "line": 43, - "column": 10, - "offset": 321 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Dollar: $", - "position": { - "start": { - "line": 45, - "column": 1, - "offset": 323 - }, - "end": { - "line": 45, - "column": 11, - "offset": 333 - } - } - } - ], - "position": { - "start": { - "line": 45, - "column": 1, - "offset": 323 - }, - "end": { - "line": 45, - "column": 11, - "offset": 333 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Percentage: %", - "position": { - "start": { - "line": 47, - "column": 1, - "offset": 335 - }, - "end": { - "line": 47, - "column": 15, - "offset": 349 - } - } - } - ], - "position": { - "start": { - "line": 47, - "column": 1, - "offset": 335 - }, - "end": { - "line": 47, - "column": 15, - "offset": 349 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Ampersand: &", - "position": { - "start": { - "line": 49, - "column": 1, - "offset": 351 - }, - "end": { - "line": 49, - "column": 14, - "offset": 364 - } - } - } - ], - "position": { - "start": { - "line": 49, - "column": 1, - "offset": 351 - }, - "end": { - "line": 49, - "column": 14, - "offset": 364 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Single quote: '", - "position": { - "start": { - "line": 51, - "column": 1, - "offset": 366 - }, - "end": { - "line": 51, - "column": 17, - "offset": 382 - } - } - } - ], - "position": { - "start": { - "line": 51, - "column": 1, - "offset": 366 - }, - "end": { - "line": 51, - "column": 17, - "offset": 382 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Comma: ,", - "position": { - "start": { - "line": 53, - "column": 1, - "offset": 384 - }, - "end": { - "line": 53, - "column": 10, - "offset": 393 - } - } - } - ], - "position": { - "start": { - "line": 53, - "column": 1, - "offset": 384 - }, - "end": { - "line": 53, - "column": 10, - "offset": 393 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Forward slash: /", - "position": { - "start": { - "line": 55, - "column": 1, - "offset": 395 - }, - "end": { - "line": 55, - "column": 18, - "offset": 412 - } - } - } - ], - "position": { - "start": { - "line": 55, - "column": 1, - "offset": 395 - }, - "end": { - "line": 55, - "column": 18, - "offset": 412 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Colon: :", - "position": { - "start": { - "line": 57, - "column": 1, - "offset": 414 - }, - "end": { - "line": 57, - "column": 10, - "offset": 423 - } - } - } - ], - "position": { - "start": { - "line": 57, - "column": 1, - "offset": 414 - }, - "end": { - "line": 57, - "column": 10, - "offset": 423 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Semicolon: ;", - "position": { - "start": { - "line": 59, - "column": 1, - "offset": 425 - }, - "end": { - "line": 59, - "column": 14, - "offset": 438 - } - } - } - ], - "position": { - "start": { - "line": 59, - "column": 1, - "offset": 425 - }, - "end": { - "line": 59, - "column": 14, - "offset": 438 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Less-than: <", - "position": { - "start": { - "line": 61, - "column": 1, - "offset": 440 - }, - "end": { - "line": 61, - "column": 14, - "offset": 453 - } - } - } - ], - "position": { - "start": { - "line": 61, - "column": 1, - "offset": 440 - }, - "end": { - "line": 61, - "column": 14, - "offset": 453 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Equals: =", - "position": { - "start": { - "line": 63, - "column": 1, - "offset": 455 - }, - "end": { - "line": 63, - "column": 11, - "offset": 465 - } - } - } - ], - "position": { - "start": { - "line": 63, - "column": 1, - "offset": 455 - }, - "end": { - "line": 63, - "column": 11, - "offset": 465 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Question mark: ?", - "position": { - "start": { - "line": 65, - "column": 1, - "offset": 467 - }, - "end": { - "line": 65, - "column": 18, - "offset": 484 - } - } - } - ], - "position": { - "start": { - "line": 65, - "column": 1, - "offset": 467 - }, - "end": { - "line": 65, - "column": 18, - "offset": 484 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "At-sign: @", - "position": { - "start": { - "line": 67, - "column": 1, - "offset": 486 - }, - "end": { - "line": 67, - "column": 12, - "offset": 497 - } - } - } - ], - "position": { - "start": { - "line": 67, - "column": 1, - "offset": 486 - }, - "end": { - "line": 67, - "column": 12, - "offset": 497 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Caret: ^", - "position": { - "start": { - "line": 69, - "column": 1, - "offset": 499 - }, - "end": { - "line": 69, - "column": 10, - "offset": 508 - } - } - } - ], - "position": { - "start": { - "line": 69, - "column": 1, - "offset": 499 - }, - "end": { - "line": 69, - "column": 10, - "offset": 508 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "New line: ", - "position": { - "start": { - "line": 71, - "column": 1, - "offset": 510 - }, - "end": { - "line": 71, - "column": 11, - "offset": 520 - } - } - }, - { - "type": "break", - "position": { - "start": { - "line": 71, - "column": 11, - "offset": 520 - }, - "end": { - "line": 72, - "column": 1, - "offset": 522 - } - } - }, - { - "type": "text", - "value": "only works in paragraphs.", - "position": { - "start": { - "line": 72, - "column": 1, - "offset": 522 - }, - "end": { - "line": 72, - "column": 26, - "offset": 547 - } - } - } - ], - "position": { - "start": { - "line": 71, - "column": 1, - "offset": 510 - }, - "end": { - "line": 72, - "column": 26, - "offset": 547 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "These should not, because they occur within a code block:", - "position": { - "start": { - "line": 74, - "column": 1, - "offset": 549 - }, - "end": { - "line": 74, - "column": 58, - "offset": 606 - } - } - } - ], - "position": { - "start": { - "line": 74, - "column": 1, - "offset": 549 - }, - "end": { - "line": 74, - "column": 58, - "offset": 606 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "Backslash: \\\\\n\nBacktick: \\`\n\nAsterisk: \\*\n\nUnderscore: \\_\n\nLeft brace: \\{\n\nRight brace: \\}\n\nLeft bracket: \\[\n\nRight bracket: \\]\n\nLeft paren: \\(\n\nRight paren: \\)\n\nGreater-than: \\>\n\nHash: \\#\n\nPeriod: \\.\n\nBang: \\!\n\nPlus: \\+\n\nMinus: \\-", - "position": { - "start": { - "line": 76, - "column": 1, - "offset": 608 - }, - "end": { - "line": 106, - "column": 11, - "offset": 855 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "GFM:", - "position": { - "start": { - "line": 108, - "column": 3, - "offset": 859 - }, - "end": { - "line": 108, - "column": 7, - "offset": 863 - } - } - } - ], - "position": { - "start": { - "line": 108, - "column": 1, - "offset": 857 - }, - "end": { - "line": 108, - "column": 9, - "offset": 865 - } - } - } - ], - "position": { - "start": { - "line": 108, - "column": 1, - "offset": 857 - }, - "end": { - "line": 108, - "column": 9, - "offset": 865 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "Pipe: \\|\n\nTilde: \\~", - "position": { - "start": { - "line": 110, - "column": 1, - "offset": 867 - }, - "end": { - "line": 112, - "column": 11, - "offset": 888 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "Commonmark:", - "position": { - "start": { - "line": 114, - "column": 3, - "offset": 892 - }, - "end": { - "line": 114, - "column": 14, - "offset": 903 - } - } - } - ], - "position": { - "start": { - "line": 114, - "column": 1, - "offset": 890 - }, - "end": { - "line": 114, - "column": 16, - "offset": 905 - } - } - } - ], - "position": { - "start": { - "line": 114, - "column": 1, - "offset": 890 - }, - "end": { - "line": 114, - "column": 16, - "offset": 905 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "Quote: \\\"\n\nDollar: \\$\n\nPercentage: \\%\n\nAmpersand: \\&\n\nSingle quote: \\'\n\nComma: \\,\n\nForward slash: \\/\n\nColon: \\:\n\nSemicolon: \\;\n\nLess-than: \\<\n\nEquals: \\=\n\nQuestion mark: \\?\n\nAt-sign: \\@\n\nCaret: \\^\n\nNew line: \\\nonly works in paragraphs.", - "position": { - "start": { - "line": 116, - "column": 1, - "offset": 907 - }, - "end": { - "line": 145, - "column": 27, - "offset": 1158 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Nor should these, which occur in code spans:", - "position": { - "start": { - "line": 148, - "column": 1, - "offset": 1161 - }, - "end": { - "line": 148, - "column": 45, - "offset": 1205 - } - } - } - ], - "position": { - "start": { - "line": 148, - "column": 1, - "offset": 1161 - }, - "end": { - "line": 148, - "column": 45, - "offset": 1205 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Backslash: ", - "position": { - "start": { - "line": 150, - "column": 1, - "offset": 1207 - }, - "end": { - "line": 150, - "column": 12, - "offset": 1218 - } - } - }, - { - "type": "inlineCode", - "value": "\\\\", - "position": { - "start": { - "line": 150, - "column": 12, - "offset": 1218 - }, - "end": { - "line": 150, - "column": 16, - "offset": 1222 - } - } - } - ], - "position": { - "start": { - "line": 150, - "column": 1, - "offset": 1207 - }, - "end": { - "line": 150, - "column": 16, - "offset": 1222 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Backtick: ", - "position": { - "start": { - "line": 152, - "column": 1, - "offset": 1224 - }, - "end": { - "line": 152, - "column": 11, - "offset": 1234 - } - } - }, - { - "type": "inlineCode", - "value": "\\`", - "position": { - "start": { - "line": 152, - "column": 11, - "offset": 1234 - }, - "end": { - "line": 152, - "column": 19, - "offset": 1242 - } - } - } - ], - "position": { - "start": { - "line": 152, - "column": 1, - "offset": 1224 - }, - "end": { - "line": 152, - "column": 19, - "offset": 1242 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Asterisk: ", - "position": { - "start": { - "line": 154, - "column": 1, - "offset": 1244 - }, - "end": { - "line": 154, - "column": 11, - "offset": 1254 - } - } - }, - { - "type": "inlineCode", - "value": "\\*", - "position": { - "start": { - "line": 154, - "column": 11, - "offset": 1254 - }, - "end": { - "line": 154, - "column": 15, - "offset": 1258 - } - } - } - ], - "position": { - "start": { - "line": 154, - "column": 1, - "offset": 1244 - }, - "end": { - "line": 154, - "column": 15, - "offset": 1258 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Underscore: ", - "position": { - "start": { - "line": 156, - "column": 1, - "offset": 1260 - }, - "end": { - "line": 156, - "column": 13, - "offset": 1272 - } - } - }, - { - "type": "inlineCode", - "value": "\\_", - "position": { - "start": { - "line": 156, - "column": 13, - "offset": 1272 - }, - "end": { - "line": 156, - "column": 17, - "offset": 1276 - } - } - } - ], - "position": { - "start": { - "line": 156, - "column": 1, - "offset": 1260 - }, - "end": { - "line": 156, - "column": 17, - "offset": 1276 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Left brace: ", - "position": { - "start": { - "line": 158, - "column": 1, - "offset": 1278 - }, - "end": { - "line": 158, - "column": 13, - "offset": 1290 - } - } - }, - { - "type": "inlineCode", - "value": "\\{", - "position": { - "start": { - "line": 158, - "column": 13, - "offset": 1290 - }, - "end": { - "line": 158, - "column": 17, - "offset": 1294 - } - } - } - ], - "position": { - "start": { - "line": 158, - "column": 1, - "offset": 1278 - }, - "end": { - "line": 158, - "column": 17, - "offset": 1294 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Right brace: ", - "position": { - "start": { - "line": 160, - "column": 1, - "offset": 1296 - }, - "end": { - "line": 160, - "column": 14, - "offset": 1309 - } - } - }, - { - "type": "inlineCode", - "value": "\\}", - "position": { - "start": { - "line": 160, - "column": 14, - "offset": 1309 - }, - "end": { - "line": 160, - "column": 18, - "offset": 1313 - } - } - } - ], - "position": { - "start": { - "line": 160, - "column": 1, - "offset": 1296 - }, - "end": { - "line": 160, - "column": 18, - "offset": 1313 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Left bracket: ", - "position": { - "start": { - "line": 162, - "column": 1, - "offset": 1315 - }, - "end": { - "line": 162, - "column": 15, - "offset": 1329 - } - } - }, - { - "type": "inlineCode", - "value": "\\[", - "position": { - "start": { - "line": 162, - "column": 15, - "offset": 1329 - }, - "end": { - "line": 162, - "column": 19, - "offset": 1333 - } - } - } - ], - "position": { - "start": { - "line": 162, - "column": 1, - "offset": 1315 - }, - "end": { - "line": 162, - "column": 19, - "offset": 1333 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Right bracket: ", - "position": { - "start": { - "line": 164, - "column": 1, - "offset": 1335 - }, - "end": { - "line": 164, - "column": 16, - "offset": 1350 - } - } - }, - { - "type": "inlineCode", - "value": "\\]", - "position": { - "start": { - "line": 164, - "column": 16, - "offset": 1350 - }, - "end": { - "line": 164, - "column": 20, - "offset": 1354 - } - } - } - ], - "position": { - "start": { - "line": 164, - "column": 1, - "offset": 1335 - }, - "end": { - "line": 164, - "column": 20, - "offset": 1354 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Left paren: ", - "position": { - "start": { - "line": 166, - "column": 1, - "offset": 1356 - }, - "end": { - "line": 166, - "column": 13, - "offset": 1368 - } - } - }, - { - "type": "inlineCode", - "value": "\\(", - "position": { - "start": { - "line": 166, - "column": 13, - "offset": 1368 - }, - "end": { - "line": 166, - "column": 17, - "offset": 1372 - } - } - } - ], - "position": { - "start": { - "line": 166, - "column": 1, - "offset": 1356 - }, - "end": { - "line": 166, - "column": 17, - "offset": 1372 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Right paren: ", - "position": { - "start": { - "line": 168, - "column": 1, - "offset": 1374 - }, - "end": { - "line": 168, - "column": 14, - "offset": 1387 - } - } - }, - { - "type": "inlineCode", - "value": "\\)", - "position": { - "start": { - "line": 168, - "column": 14, - "offset": 1387 - }, - "end": { - "line": 168, - "column": 18, - "offset": 1391 - } - } - } - ], - "position": { - "start": { - "line": 168, - "column": 1, - "offset": 1374 - }, - "end": { - "line": 168, - "column": 18, - "offset": 1391 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Greater-than: ", - "position": { - "start": { - "line": 170, - "column": 1, - "offset": 1393 - }, - "end": { - "line": 170, - "column": 15, - "offset": 1407 - } - } - }, - { - "type": "inlineCode", - "value": "\\>", - "position": { - "start": { - "line": 170, - "column": 15, - "offset": 1407 - }, - "end": { - "line": 170, - "column": 19, - "offset": 1411 - } - } - } - ], - "position": { - "start": { - "line": 170, - "column": 1, - "offset": 1393 - }, - "end": { - "line": 170, - "column": 19, - "offset": 1411 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hash: ", - "position": { - "start": { - "line": 172, - "column": 1, - "offset": 1413 - }, - "end": { - "line": 172, - "column": 7, - "offset": 1419 - } - } - }, - { - "type": "inlineCode", - "value": "\\#", - "position": { - "start": { - "line": 172, - "column": 7, - "offset": 1419 - }, - "end": { - "line": 172, - "column": 11, - "offset": 1423 - } - } - } - ], - "position": { - "start": { - "line": 172, - "column": 1, - "offset": 1413 - }, - "end": { - "line": 172, - "column": 11, - "offset": 1423 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Period: ", - "position": { - "start": { - "line": 174, - "column": 1, - "offset": 1425 - }, - "end": { - "line": 174, - "column": 9, - "offset": 1433 - } - } - }, - { - "type": "inlineCode", - "value": "\\.", - "position": { - "start": { - "line": 174, - "column": 9, - "offset": 1433 - }, - "end": { - "line": 174, - "column": 13, - "offset": 1437 - } - } - } - ], - "position": { - "start": { - "line": 174, - "column": 1, - "offset": 1425 - }, - "end": { - "line": 174, - "column": 13, - "offset": 1437 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Bang: ", - "position": { - "start": { - "line": 176, - "column": 1, - "offset": 1439 - }, - "end": { - "line": 176, - "column": 7, - "offset": 1445 - } - } - }, - { - "type": "inlineCode", - "value": "\\!", - "position": { - "start": { - "line": 176, - "column": 7, - "offset": 1445 - }, - "end": { - "line": 176, - "column": 11, - "offset": 1449 - } - } - } - ], - "position": { - "start": { - "line": 176, - "column": 1, - "offset": 1439 - }, - "end": { - "line": 176, - "column": 11, - "offset": 1449 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Plus: ", - "position": { - "start": { - "line": 178, - "column": 1, - "offset": 1451 - }, - "end": { - "line": 178, - "column": 7, - "offset": 1457 - } - } - }, - { - "type": "inlineCode", - "value": "\\+", - "position": { - "start": { - "line": 178, - "column": 7, - "offset": 1457 - }, - "end": { - "line": 178, - "column": 11, - "offset": 1461 - } - } - } - ], - "position": { - "start": { - "line": 178, - "column": 1, - "offset": 1451 - }, - "end": { - "line": 178, - "column": 11, - "offset": 1461 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Minus: ", - "position": { - "start": { - "line": 180, - "column": 1, - "offset": 1463 - }, - "end": { - "line": 180, - "column": 8, - "offset": 1470 - } - } - }, - { - "type": "inlineCode", - "value": "\\-", - "position": { - "start": { - "line": 180, - "column": 8, - "offset": 1470 - }, - "end": { - "line": 180, - "column": 12, - "offset": 1474 - } - } - } - ], - "position": { - "start": { - "line": 180, - "column": 1, - "offset": 1463 - }, - "end": { - "line": 180, - "column": 12, - "offset": 1474 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "GFM:", - "position": { - "start": { - "line": 182, - "column": 3, - "offset": 1478 - }, - "end": { - "line": 182, - "column": 7, - "offset": 1482 - } - } - } - ], - "position": { - "start": { - "line": 182, - "column": 1, - "offset": 1476 - }, - "end": { - "line": 182, - "column": 9, - "offset": 1484 - } - } - } - ], - "position": { - "start": { - "line": 182, - "column": 1, - "offset": 1476 - }, - "end": { - "line": 182, - "column": 9, - "offset": 1484 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Pipe: ", - "position": { - "start": { - "line": 184, - "column": 1, - "offset": 1486 - }, - "end": { - "line": 184, - "column": 7, - "offset": 1492 - } - } - }, - { - "type": "inlineCode", - "value": "\\|", - "position": { - "start": { - "line": 184, - "column": 7, - "offset": 1492 - }, - "end": { - "line": 184, - "column": 11, - "offset": 1496 - } - } - } - ], - "position": { - "start": { - "line": 184, - "column": 1, - "offset": 1486 - }, - "end": { - "line": 184, - "column": 11, - "offset": 1496 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Tilde: ", - "position": { - "start": { - "line": 186, - "column": 1, - "offset": 1498 - }, - "end": { - "line": 186, - "column": 8, - "offset": 1505 - } - } - }, - { - "type": "inlineCode", - "value": "\\~", - "position": { - "start": { - "line": 186, - "column": 8, - "offset": 1505 - }, - "end": { - "line": 186, - "column": 12, - "offset": 1509 - } - } - } - ], - "position": { - "start": { - "line": 186, - "column": 1, - "offset": 1498 - }, - "end": { - "line": 186, - "column": 12, - "offset": 1509 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "Commonmark:", - "position": { - "start": { - "line": 188, - "column": 3, - "offset": 1513 - }, - "end": { - "line": 188, - "column": 14, - "offset": 1524 - } - } - } - ], - "position": { - "start": { - "line": 188, - "column": 1, - "offset": 1511 - }, - "end": { - "line": 188, - "column": 16, - "offset": 1526 - } - } - } - ], - "position": { - "start": { - "line": 188, - "column": 1, - "offset": 1511 - }, - "end": { - "line": 188, - "column": 16, - "offset": 1526 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Quote: ", - "position": { - "start": { - "line": 190, - "column": 1, - "offset": 1528 - }, - "end": { - "line": 190, - "column": 8, - "offset": 1535 - } - } - }, - { - "type": "inlineCode", - "value": "\\\"", - "position": { - "start": { - "line": 190, - "column": 8, - "offset": 1535 - }, - "end": { - "line": 190, - "column": 12, - "offset": 1539 - } - } - } - ], - "position": { - "start": { - "line": 190, - "column": 1, - "offset": 1528 - }, - "end": { - "line": 190, - "column": 12, - "offset": 1539 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Dollar: ", - "position": { - "start": { - "line": 192, - "column": 1, - "offset": 1541 - }, - "end": { - "line": 192, - "column": 9, - "offset": 1549 - } - } - }, - { - "type": "inlineCode", - "value": "\\$", - "position": { - "start": { - "line": 192, - "column": 9, - "offset": 1549 - }, - "end": { - "line": 192, - "column": 13, - "offset": 1553 - } - } - } - ], - "position": { - "start": { - "line": 192, - "column": 1, - "offset": 1541 - }, - "end": { - "line": 192, - "column": 13, - "offset": 1553 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Percentage: ", - "position": { - "start": { - "line": 194, - "column": 1, - "offset": 1555 - }, - "end": { - "line": 194, - "column": 13, - "offset": 1567 - } - } - }, - { - "type": "inlineCode", - "value": "\\%", - "position": { - "start": { - "line": 194, - "column": 13, - "offset": 1567 - }, - "end": { - "line": 194, - "column": 17, - "offset": 1571 - } - } - } - ], - "position": { - "start": { - "line": 194, - "column": 1, - "offset": 1555 - }, - "end": { - "line": 194, - "column": 17, - "offset": 1571 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Ampersand: ", - "position": { - "start": { - "line": 196, - "column": 1, - "offset": 1573 - }, - "end": { - "line": 196, - "column": 12, - "offset": 1584 - } - } - }, - { - "type": "inlineCode", - "value": "\\&", - "position": { - "start": { - "line": 196, - "column": 12, - "offset": 1584 - }, - "end": { - "line": 196, - "column": 16, - "offset": 1588 - } - } - } - ], - "position": { - "start": { - "line": 196, - "column": 1, - "offset": 1573 - }, - "end": { - "line": 196, - "column": 16, - "offset": 1588 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Single quote: ", - "position": { - "start": { - "line": 198, - "column": 1, - "offset": 1590 - }, - "end": { - "line": 198, - "column": 15, - "offset": 1604 - } - } - }, - { - "type": "inlineCode", - "value": "\\'", - "position": { - "start": { - "line": 198, - "column": 15, - "offset": 1604 - }, - "end": { - "line": 198, - "column": 19, - "offset": 1608 - } - } - } - ], - "position": { - "start": { - "line": 198, - "column": 1, - "offset": 1590 - }, - "end": { - "line": 198, - "column": 19, - "offset": 1608 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Comma: ", - "position": { - "start": { - "line": 200, - "column": 1, - "offset": 1610 - }, - "end": { - "line": 200, - "column": 8, - "offset": 1617 - } - } - }, - { - "type": "inlineCode", - "value": "\\,", - "position": { - "start": { - "line": 200, - "column": 8, - "offset": 1617 - }, - "end": { - "line": 200, - "column": 12, - "offset": 1621 - } - } - } - ], - "position": { - "start": { - "line": 200, - "column": 1, - "offset": 1610 - }, - "end": { - "line": 200, - "column": 12, - "offset": 1621 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Forward slash: ", - "position": { - "start": { - "line": 202, - "column": 1, - "offset": 1623 - }, - "end": { - "line": 202, - "column": 16, - "offset": 1638 - } - } - }, - { - "type": "inlineCode", - "value": "\\/", - "position": { - "start": { - "line": 202, - "column": 16, - "offset": 1638 - }, - "end": { - "line": 202, - "column": 20, - "offset": 1642 - } - } - } - ], - "position": { - "start": { - "line": 202, - "column": 1, - "offset": 1623 - }, - "end": { - "line": 202, - "column": 20, - "offset": 1642 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Colon: ", - "position": { - "start": { - "line": 204, - "column": 1, - "offset": 1644 - }, - "end": { - "line": 204, - "column": 8, - "offset": 1651 - } - } - }, - { - "type": "inlineCode", - "value": "\\:", - "position": { - "start": { - "line": 204, - "column": 8, - "offset": 1651 - }, - "end": { - "line": 204, - "column": 12, - "offset": 1655 - } - } - } - ], - "position": { - "start": { - "line": 204, - "column": 1, - "offset": 1644 - }, - "end": { - "line": 204, - "column": 12, - "offset": 1655 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Semicolon: ", - "position": { - "start": { - "line": 206, - "column": 1, - "offset": 1657 - }, - "end": { - "line": 206, - "column": 12, - "offset": 1668 - } - } - }, - { - "type": "inlineCode", - "value": "\\;", - "position": { - "start": { - "line": 206, - "column": 12, - "offset": 1668 - }, - "end": { - "line": 206, - "column": 16, - "offset": 1672 - } - } - } - ], - "position": { - "start": { - "line": 206, - "column": 1, - "offset": 1657 - }, - "end": { - "line": 206, - "column": 16, - "offset": 1672 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Less-than: ", - "position": { - "start": { - "line": 208, - "column": 1, - "offset": 1674 - }, - "end": { - "line": 208, - "column": 12, - "offset": 1685 - } - } - }, - { - "type": "inlineCode", - "value": "\\<", - "position": { - "start": { - "line": 208, - "column": 12, - "offset": 1685 - }, - "end": { - "line": 208, - "column": 16, - "offset": 1689 - } - } - } - ], - "position": { - "start": { - "line": 208, - "column": 1, - "offset": 1674 - }, - "end": { - "line": 208, - "column": 16, - "offset": 1689 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Equals: ", - "position": { - "start": { - "line": 210, - "column": 1, - "offset": 1691 - }, - "end": { - "line": 210, - "column": 9, - "offset": 1699 - } - } - }, - { - "type": "inlineCode", - "value": "\\=", - "position": { - "start": { - "line": 210, - "column": 9, - "offset": 1699 - }, - "end": { - "line": 210, - "column": 13, - "offset": 1703 - } - } - } - ], - "position": { - "start": { - "line": 210, - "column": 1, - "offset": 1691 - }, - "end": { - "line": 210, - "column": 13, - "offset": 1703 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Question mark: ", - "position": { - "start": { - "line": 212, - "column": 1, - "offset": 1705 - }, - "end": { - "line": 212, - "column": 16, - "offset": 1720 - } - } - }, - { - "type": "inlineCode", - "value": "\\?", - "position": { - "start": { - "line": 212, - "column": 16, - "offset": 1720 - }, - "end": { - "line": 212, - "column": 20, - "offset": 1724 - } - } - } - ], - "position": { - "start": { - "line": 212, - "column": 1, - "offset": 1705 - }, - "end": { - "line": 212, - "column": 20, - "offset": 1724 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "At-sign: ", - "position": { - "start": { - "line": 214, - "column": 1, - "offset": 1726 - }, - "end": { - "line": 214, - "column": 10, - "offset": 1735 - } - } - }, - { - "type": "inlineCode", - "value": "\\@", - "position": { - "start": { - "line": 214, - "column": 10, - "offset": 1735 - }, - "end": { - "line": 214, - "column": 14, - "offset": 1739 - } - } - } - ], - "position": { - "start": { - "line": 214, - "column": 1, - "offset": 1726 - }, - "end": { - "line": 214, - "column": 14, - "offset": 1739 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Caret: ", - "position": { - "start": { - "line": 216, - "column": 1, - "offset": 1741 - }, - "end": { - "line": 216, - "column": 8, - "offset": 1748 - } - } - }, - { - "type": "inlineCode", - "value": "\\^", - "position": { - "start": { - "line": 216, - "column": 8, - "offset": 1748 - }, - "end": { - "line": 216, - "column": 12, - "offset": 1752 - } - } - } - ], - "position": { - "start": { - "line": 216, - "column": 1, - "offset": 1741 - }, - "end": { - "line": 216, - "column": 12, - "offset": 1752 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "New line: ", - "position": { - "start": { - "line": 218, - "column": 1, - "offset": 1754 - }, - "end": { - "line": 218, - "column": 11, - "offset": 1764 - } - } - }, - { - "type": "inlineCode", - "value": "\\\n", - "position": { - "start": { - "line": 218, - "column": 11, - "offset": 1764 - }, - "end": { - "line": 219, - "column": 2, - "offset": 1768 - } - } - }, - { - "type": "text", - "value": " only works in paragraphs.", - "position": { - "start": { - "line": 219, - "column": 2, - "offset": 1768 - }, - "end": { - "line": 219, - "column": 28, - "offset": 1794 - } - } - } - ], - "position": { - "start": { - "line": 218, - "column": 1, - "offset": 1754 - }, - "end": { - "line": 219, - "column": 28, - "offset": 1794 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "These should get escaped, even though they're matching pairs for\nother Markdown constructs:", - "position": { - "start": { - "line": 221, - "column": 1, - "offset": 1796 - }, - "end": { - "line": 222, - "column": 27, - "offset": 1887 - } - } - } - ], - "position": { - "start": { - "line": 221, - "column": 1, - "offset": 1796 - }, - "end": { - "line": 222, - "column": 27, - "offset": 1887 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "*asterisks*", - "position": { - "start": { - "line": 224, - "column": 1, - "offset": 1889 - }, - "end": { - "line": 224, - "column": 14, - "offset": 1902 - } - } - } - ], - "position": { - "start": { - "line": 224, - "column": 1, - "offset": 1889 - }, - "end": { - "line": 224, - "column": 14, - "offset": 1902 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "_underscores_", - "position": { - "start": { - "line": 226, - "column": 1, - "offset": 1904 - }, - "end": { - "line": 226, - "column": 16, - "offset": 1919 - } - } - } - ], - "position": { - "start": { - "line": 226, - "column": 1, - "offset": 1904 - }, - "end": { - "line": 226, - "column": 16, - "offset": 1919 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "`backticks`", - "position": { - "start": { - "line": 228, - "column": 1, - "offset": 1921 - }, - "end": { - "line": 228, - "column": 14, - "offset": 1934 - } - } - } - ], - "position": { - "start": { - "line": 228, - "column": 1, - "offset": 1921 - }, - "end": { - "line": 228, - "column": 14, - "offset": 1934 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This is a code span with a literal backslash-backtick sequence: ", - "position": { - "start": { - "line": 230, - "column": 1, - "offset": 1936 - }, - "end": { - "line": 230, - "column": 65, - "offset": 2000 - } - } - }, - { - "type": "inlineCode", - "value": "\\`", - "position": { - "start": { - "line": 230, - "column": 65, - "offset": 2000 - }, - "end": { - "line": 230, - "column": 73, - "offset": 2008 - } - } - } - ], - "position": { - "start": { - "line": 230, - "column": 1, - "offset": 1936 - }, - "end": { - "line": 230, - "column": 73, - "offset": 2008 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This is a tag with unescaped backticks ", - "position": { - "start": { - "line": 232, - "column": 1, - "offset": 2010 - }, - "end": { - "line": 232, - "column": 40, - "offset": 2049 - } - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 232, - "column": 40, - "offset": 2049 - }, - "end": { - "line": 232, - "column": 61, - "offset": 2070 - } - } - }, - { - "type": "text", - "value": "bar", - "position": { - "start": { - "line": 232, - "column": 61, - "offset": 2070 - }, - "end": { - "line": 232, - "column": 64, - "offset": 2073 - } - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 232, - "column": 64, - "offset": 2073 - }, - "end": { - "line": 232, - "column": 71, - "offset": 2080 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 232, - "column": 71, - "offset": 2080 - }, - "end": { - "line": 232, - "column": 72, - "offset": 2081 - } - } - } - ], - "position": { - "start": { - "line": 232, - "column": 1, - "offset": 2010 - }, - "end": { - "line": 232, - "column": 72, - "offset": 2081 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This is a tag with backslashes ", - "position": { - "start": { - "line": 234, - "column": 1, - "offset": 2083 - }, - "end": { - "line": 234, - "column": 32, - "offset": 2114 - } - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 234, - "column": 32, - "offset": 2114 - }, - "end": { - "line": 234, - "column": 61, - "offset": 2143 - } - } - }, - { - "type": "text", - "value": "bar", - "position": { - "start": { - "line": 234, - "column": 61, - "offset": 2143 - }, - "end": { - "line": 234, - "column": 64, - "offset": 2146 - } - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 234, - "column": 64, - "offset": 2146 - }, - "end": { - "line": 234, - "column": 71, - "offset": 2153 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 234, - "column": 71, - "offset": 2153 - }, - "end": { - "line": 234, - "column": 72, - "offset": 2154 - } - } - } - ], - "position": { - "start": { - "line": 234, - "column": 1, - "offset": 2083 - }, - "end": { - "line": 234, - "column": 72, - "offset": 2154 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 235, - "column": 1, - "offset": 2155 - } - } -} diff --git a/test/fixtures/tree/block-elements.json b/test/fixtures/tree/block-elements.json deleted file mode 100644 index d7e625b05..000000000 --- a/test/fixtures/tree/block-elements.json +++ /dev/null @@ -1,616 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "list", - "ordered": false, - "start": null, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Different lists should receive two newline characters\nbetween them.", - "position": { - "start": { - "line": 1, - "column": 5, - "offset": 4 - }, - "end": { - "line": 2, - "column": 18, - "offset": 75 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 5, - "offset": 4 - }, - "end": { - "line": 2, - "column": 18, - "offset": 75 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 18, - "offset": 75 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This is another list.", - "position": { - "start": { - "line": 5, - "column": 5, - "offset": 82 - }, - "end": { - "line": 5, - "column": 26, - "offset": 103 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 5, - "offset": 82 - }, - "end": { - "line": 5, - "column": 26, - "offset": 103 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 78 - }, - "end": { - "line": 5, - "column": 26, - "offset": 103 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 5, - "column": 26, - "offset": 103 - } - } - }, - { - "type": "blockquote", - "children": [ - { - "type": "list", - "ordered": false, - "start": null, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "The same goes for lists in block quotes.", - "position": { - "start": { - "line": 7, - "column": 8, - "offset": 112 - }, - "end": { - "line": 7, - "column": 48, - "offset": 152 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 8, - "offset": 112 - }, - "end": { - "line": 7, - "column": 48, - "offset": 152 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 4, - "offset": 108 - }, - "end": { - "line": 7, - "column": 48, - "offset": 152 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This is another list.", - "position": { - "start": { - "line": 10, - "column": 8, - "offset": 164 - }, - "end": { - "line": 10, - "column": 29, - "offset": 185 - } - } - } - ], - "position": { - "start": { - "line": 10, - "column": 8, - "offset": 164 - }, - "end": { - "line": 10, - "column": 29, - "offset": 185 - } - } - } - ], - "position": { - "start": { - "line": 10, - "column": 4, - "offset": 160 - }, - "end": { - "line": 10, - "column": 29, - "offset": 185 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 4, - "offset": 108 - }, - "end": { - "line": 10, - "column": 29, - "offset": 185 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 105 - }, - "end": { - "line": 10, - "column": 29, - "offset": 185 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And for lists in lists:", - "position": { - "start": { - "line": 12, - "column": 5, - "offset": 191 - }, - "end": { - "line": 12, - "column": 28, - "offset": 214 - } - } - } - ], - "position": { - "start": { - "line": 12, - "column": 5, - "offset": 191 - }, - "end": { - "line": 12, - "column": 28, - "offset": 214 - } - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "First sublist.", - "position": { - "start": { - "line": 14, - "column": 10, - "offset": 225 - }, - "end": { - "line": 14, - "column": 24, - "offset": 239 - } - } - } - ], - "position": { - "start": { - "line": 14, - "column": 10, - "offset": 225 - }, - "end": { - "line": 14, - "column": 24, - "offset": 239 - } - } - } - ], - "position": { - "start": { - "line": 14, - "column": 5, - "offset": 220 - }, - "end": { - "line": 14, - "column": 24, - "offset": 239 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Second sublist.", - "position": { - "start": { - "line": 17, - "column": 10, - "offset": 251 - }, - "end": { - "line": 17, - "column": 25, - "offset": 266 - } - } - } - ], - "position": { - "start": { - "line": 17, - "column": 10, - "offset": 251 - }, - "end": { - "line": 17, - "column": 25, - "offset": 266 - } - } - } - ], - "position": { - "start": { - "line": 17, - "column": 5, - "offset": 246 - }, - "end": { - "line": 17, - "column": 25, - "offset": 266 - } - } - } - ], - "position": { - "start": { - "line": 14, - "column": 5, - "offset": 220 - }, - "end": { - "line": 17, - "column": 25, - "offset": 266 - } - } - } - ], - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 187 - }, - "end": { - "line": 17, - "column": 25, - "offset": 266 - } - } - } - ], - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 187 - }, - "end": { - "line": 17, - "column": 25, - "offset": 266 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And for lists followed by indented code blocks:", - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 268 - }, - "end": { - "line": 19, - "column": 48, - "offset": 315 - } - } - } - ], - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 268 - }, - "end": { - "line": 19, - "column": 48, - "offset": 315 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This is a paragraph in a list", - "position": { - "start": { - "line": 21, - "column": 5, - "offset": 321 - }, - "end": { - "line": 21, - "column": 34, - "offset": 350 - } - } - } - ], - "position": { - "start": { - "line": 21, - "column": 5, - "offset": 321 - }, - "end": { - "line": 21, - "column": 34, - "offset": 350 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And this is code();", - "position": { - "start": { - "line": 24, - "column": 5, - "offset": 357 - }, - "end": { - "line": 24, - "column": 24, - "offset": 376 - } - } - } - ], - "position": { - "start": { - "line": 24, - "column": 5, - "offset": 357 - }, - "end": { - "line": 24, - "column": 24, - "offset": 376 - } - } - } - ], - "position": { - "start": { - "line": 21, - "column": 1, - "offset": 317 - }, - "end": { - "line": 24, - "column": 24, - "offset": 376 - } - } - } - ], - "position": { - "start": { - "line": 21, - "column": 1, - "offset": 317 - }, - "end": { - "line": 24, - "column": 24, - "offset": 376 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 25, - "column": 1, - "offset": 377 - } - } -} diff --git a/test/fixtures/tree/blockquote-indented.json b/test/fixtures/tree/blockquote-indented.json deleted file mode 100644 index c0a017416..000000000 --- a/test/fixtures/tree/blockquote-indented.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "blockquote", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "bar\nbaz", - "position": { - "start": { - "line": 1, - "column": 6, - "offset": 5 - }, - "end": { - "line": 2, - "column": 7, - "offset": 15 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 6, - "offset": 5 - }, - "end": { - "line": 2, - "column": 7, - "offset": 15 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 4, - "offset": 3 - }, - "end": { - "line": 2, - "column": 7, - "offset": 15 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 3, - "column": 1, - "offset": 16 - } - } -} diff --git a/test/fixtures/tree/blockquote-lazy-code.json b/test/fixtures/tree/blockquote-lazy-code.json deleted file mode 100644 index 2f8cd54f0..000000000 --- a/test/fixtures/tree/blockquote-lazy-code.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "blockquote", - "children": [ - { - "type": "code", - "lang": null, - "meta": null, - "value": "foo", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 10, - "offset": 9 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 10, - "offset": 9 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "bar", - "position": { - "start": { - "line": 2, - "column": 1, - "offset": 10 - }, - "end": { - "line": 2, - "column": 8, - "offset": 17 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 3, - "column": 1, - "offset": 18 - } - } -} diff --git a/test/fixtures/tree/blockquote-lazy-fence.json b/test/fixtures/tree/blockquote-lazy-fence.json deleted file mode 100644 index f82010bac..000000000 --- a/test/fixtures/tree/blockquote-lazy-fence.json +++ /dev/null @@ -1,408 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "blockquote", - "children": [ - { - "type": "code", - "lang": null, - "meta": null, - "value": "aNormalCodeBlockInABlockqoute();", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 3, - "column": 6, - "offset": 46 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 3, - "column": 6, - "offset": 46 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "A paragraph.", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 48 - }, - "end": { - "line": 5, - "column": 13, - "offset": 60 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 48 - }, - "end": { - "line": 5, - "column": 13, - "offset": 60 - } - } - }, - { - "type": "blockquote", - "children": [ - { - "type": "code", - "lang": null, - "meta": null, - "value": "", - "position": { - "start": { - "line": 7, - "column": 3, - "offset": 64 - }, - "end": { - "line": 7, - "column": 6, - "offset": 67 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 62 - }, - "end": { - "line": 7, - "column": 6, - "offset": 67 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "thisIsAlsoSomeCodeInABlockquote();", - "position": { - "start": { - "line": 8, - "column": 1, - "offset": 68 - }, - "end": { - "line": 8, - "column": 35, - "offset": 102 - } - } - } - ], - "position": { - "start": { - "line": 8, - "column": 1, - "offset": 68 - }, - "end": { - "line": 8, - "column": 35, - "offset": 102 - } - } - }, - { - "type": "blockquote", - "children": [ - { - "type": "code", - "lang": null, - "meta": null, - "value": "", - "position": { - "start": { - "line": 9, - "column": 3, - "offset": 105 - }, - "end": { - "line": 9, - "column": 6, - "offset": 108 - } - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 103 - }, - "end": { - "line": 9, - "column": 6, - "offset": 108 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "A paragraph.", - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 110 - }, - "end": { - "line": 11, - "column": 13, - "offset": 122 - } - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 110 - }, - "end": { - "line": 11, - "column": 13, - "offset": 122 - } - } - }, - { - "type": "blockquote", - "children": [ - { - "type": "code", - "lang": null, - "meta": null, - "value": "", - "position": { - "start": { - "line": 13, - "column": 3, - "offset": 126 - }, - "end": { - "line": 13, - "column": 6, - "offset": 129 - } - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 124 - }, - "end": { - "line": 13, - "column": 6, - "offset": 129 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "aNonTerminatedCodeBlockInABlockquote();", - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 130 - }, - "end": { - "line": 14, - "column": 40, - "offset": 169 - } - } - } - ], - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 130 - }, - "end": { - "line": 14, - "column": 40, - "offset": 169 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "aNewCodeBlockFollowingTheBlockQuote();", - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 170 - }, - "end": { - "line": 17, - "column": 4, - "offset": 216 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "A paragraph.", - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 218 - }, - "end": { - "line": 19, - "column": 13, - "offset": 230 - } - } - } - ], - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 218 - }, - "end": { - "line": 19, - "column": 13, - "offset": 230 - } - } - }, - { - "type": "blockquote", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Something in a blockquote.", - "position": { - "start": { - "line": 21, - "column": 3, - "offset": 234 - }, - "end": { - "line": 21, - "column": 29, - "offset": 260 - } - } - } - ], - "position": { - "start": { - "line": 21, - "column": 3, - "offset": 234 - }, - "end": { - "line": 21, - "column": 29, - "offset": 260 - } - } - } - ], - "position": { - "start": { - "line": 21, - "column": 1, - "offset": 232 - }, - "end": { - "line": 21, - "column": 29, - "offset": 260 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "aNewCodeBlock();", - "position": { - "start": { - "line": 22, - "column": 1, - "offset": 261 - }, - "end": { - "line": 24, - "column": 4, - "offset": 285 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 25, - "column": 1, - "offset": 286 - } - } -} diff --git a/test/fixtures/tree/blockquote-lazy-list.json b/test/fixtures/tree/blockquote-lazy-list.json deleted file mode 100644 index 7f66f0603..000000000 --- a/test/fixtures/tree/blockquote-lazy-list.json +++ /dev/null @@ -1,139 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "blockquote", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This is a blockquote.", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 24, - "offset": 23 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 24, - "offset": 23 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 24, - "offset": 23 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And in normal mode this is an internal list, but in commonmark this is a top level list.", - "position": { - "start": { - "line": 2, - "column": 3, - "offset": 26 - }, - "end": { - "line": 2, - "column": 91, - "offset": 114 - } - } - } - ], - "position": { - "start": { - "line": 2, - "column": 3, - "offset": 26 - }, - "end": { - "line": 2, - "column": 91, - "offset": 114 - } - } - } - ], - "position": { - "start": { - "line": 2, - "column": 1, - "offset": 24 - }, - "end": { - "line": 2, - "column": 91, - "offset": 114 - } - } - } - ], - "position": { - "start": { - "line": 2, - "column": 1, - "offset": 24 - }, - "end": { - "line": 2, - "column": 91, - "offset": 114 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 3, - "column": 1, - "offset": 115 - } - } -} diff --git a/test/fixtures/tree/blockquote-lazy-rule.json b/test/fixtures/tree/blockquote-lazy-rule.json deleted file mode 100644 index 8c2e7f49e..000000000 --- a/test/fixtures/tree/blockquote-lazy-rule.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "blockquote", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This is a blockquote. Followed by a rule.", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 44, - "offset": 43 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 44, - "offset": 43 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 44, - "offset": 43 - } - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 2, - "column": 1, - "offset": 44 - }, - "end": { - "line": 2, - "column": 6, - "offset": 49 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 3, - "column": 1, - "offset": 50 - } - } -} diff --git a/test/fixtures/tree/blockquote-list-item.json b/test/fixtures/tree/blockquote-list-item.json deleted file mode 100644 index 0575f34df..000000000 --- a/test/fixtures/tree/blockquote-list-item.json +++ /dev/null @@ -1,172 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This fails in markdown.pl and upskirt:", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 39, - "offset": 38 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 39, - "offset": 38 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "hello", - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 42 - }, - "end": { - "line": 3, - "column": 8, - "offset": 47 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 42 - }, - "end": { - "line": 3, - "column": 8, - "offset": 47 - } - } - }, - { - "type": "blockquote", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "world", - "position": { - "start": { - "line": 4, - "column": 5, - "offset": 52 - }, - "end": { - "line": 4, - "column": 10, - "offset": 57 - } - } - } - ], - "position": { - "start": { - "line": 4, - "column": 5, - "offset": 52 - }, - "end": { - "line": 4, - "column": 10, - "offset": 57 - } - } - } - ], - "position": { - "start": { - "line": 4, - "column": 3, - "offset": 50 - }, - "end": { - "line": 4, - "column": 10, - "offset": 57 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 40 - }, - "end": { - "line": 4, - "column": 10, - "offset": 57 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 40 - }, - "end": { - "line": 4, - "column": 10, - "offset": 57 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 5, - "column": 1, - "offset": 58 - } - } -} diff --git a/test/fixtures/tree/blockquotes-empty-lines.output.json b/test/fixtures/tree/blockquotes-empty-lines.output.json deleted file mode 100644 index adcac5aa6..000000000 --- a/test/fixtures/tree/blockquotes-empty-lines.output.json +++ /dev/null @@ -1,100 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "blockquote", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Note there is no space on the following line.", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 48, - "offset": 47 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 48, - "offset": 47 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Note there is no space on the preceding line.", - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 52 - }, - "end": { - "line": 3, - "column": 48, - "offset": 97 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 52 - }, - "end": { - "line": 3, - "column": 48, - "offset": 97 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 3, - "column": 48, - "offset": 97 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 4, - "column": 1, - "offset": 98 - } - } -} diff --git a/test/fixtures/tree/blockquotes-with-code-blocks.json b/test/fixtures/tree/blockquotes-with-code-blocks.json deleted file mode 100644 index f01a0889a..000000000 --- a/test/fixtures/tree/blockquotes-with-code-blocks.json +++ /dev/null @@ -1,136 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "blockquote", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Example:", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 11, - "offset": 10 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 11, - "offset": 10 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "sub status {\n print \"working\";\n}", - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 16 - }, - "end": { - "line": 5, - "column": 8, - "offset": 67 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Or:", - "position": { - "start": { - "line": 7, - "column": 3, - "offset": 73 - }, - "end": { - "line": 7, - "column": 6, - "offset": 76 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 3, - "offset": 73 - }, - "end": { - "line": 7, - "column": 6, - "offset": 76 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "sub status {\n return \"working\";\n}", - "position": { - "start": { - "line": 9, - "column": 3, - "offset": 82 - }, - "end": { - "line": 11, - "column": 8, - "offset": 134 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 11, - "column": 8, - "offset": 134 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 12, - "column": 1, - "offset": 135 - } - } -} diff --git a/test/fixtures/tree/blockquotes.json b/test/fixtures/tree/blockquotes.json deleted file mode 100644 index dce2caa78..000000000 --- a/test/fixtures/tree/blockquotes.json +++ /dev/null @@ -1,117 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "blockquote", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This is a blockquote.", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 24, - "offset": 23 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 24, - "offset": 23 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 24, - "offset": 23 - } - } - }, - { - "type": "blockquote", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This is, in commonmark mode and gfm mode, another blockquote.", - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 27 - }, - "end": { - "line": 3, - "column": 64, - "offset": 88 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 27 - }, - "end": { - "line": 3, - "column": 64, - "offset": 88 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 25 - }, - "end": { - "line": 3, - "column": 64, - "offset": 88 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 4, - "column": 1, - "offset": 89 - } - } -} diff --git a/test/fixtures/tree/bom.json b/test/fixtures/tree/bom.json deleted file mode 100644 index 4d935d628..000000000 --- a/test/fixtures/tree/bom.json +++ /dev/null @@ -1,84 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Hello from a BOM", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 19, - "offset": 18 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 19, - "offset": 18 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Be careful when editing this file!", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 20 - }, - "end": { - "line": 3, - "column": 35, - "offset": 54 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 20 - }, - "end": { - "line": 3, - "column": 35, - "offset": 54 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 4, - "column": 1, - "offset": 55 - } - } -} diff --git a/test/fixtures/tree/breaks-hard.json b/test/fixtures/tree/breaks-hard.json deleted file mode 100644 index 0866751b8..000000000 --- a/test/fixtures/tree/breaks-hard.json +++ /dev/null @@ -1,403 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "These are not breaks:", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 22, - "offset": 21 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 22, - "offset": 21 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Look at the\npretty line\nbreaks.", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 23 - }, - "end": { - "line": 5, - "column": 8, - "offset": 54 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 23 - }, - "end": { - "line": 5, - "column": 8, - "offset": 54 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "These are breaks:", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 56 - }, - "end": { - "line": 7, - "column": 18, - "offset": 73 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 56 - }, - "end": { - "line": 7, - "column": 18, - "offset": 73 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Look at the", - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 75 - }, - "end": { - "line": 9, - "column": 12, - "offset": 86 - } - } - }, - { - "type": "break", - "position": { - "start": { - "line": 9, - "column": 12, - "offset": 86 - }, - "end": { - "line": 10, - "column": 1, - "offset": 89 - } - } - }, - { - "type": "text", - "value": "pretty line", - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 89 - }, - "end": { - "line": 10, - "column": 12, - "offset": 100 - } - } - }, - { - "type": "break", - "position": { - "start": { - "line": 10, - "column": 12, - "offset": 100 - }, - "end": { - "line": 11, - "column": 1, - "offset": 103 - } - } - }, - { - "type": "text", - "value": "breaks.", - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 103 - }, - "end": { - "line": 11, - "column": 8, - "offset": 110 - } - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 75 - }, - "end": { - "line": 11, - "column": 8, - "offset": 110 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "In ", - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 112 - }, - "end": { - "line": 13, - "column": 4, - "offset": 115 - } - } - }, - { - "type": "inlineCode", - "value": "commonmark: true", - "position": { - "start": { - "line": 13, - "column": 4, - "offset": 115 - }, - "end": { - "line": 13, - "column": 22, - "offset": 133 - } - } - }, - { - "type": "text", - "value": " mode, an escaped newline character is exposed as a ", - "position": { - "start": { - "line": 13, - "column": 22, - "offset": 133 - }, - "end": { - "line": 13, - "column": 74, - "offset": 185 - } - } - }, - { - "type": "inlineCode", - "value": "break", - "position": { - "start": { - "line": 13, - "column": 74, - "offset": 185 - }, - "end": { - "line": 13, - "column": 81, - "offset": 192 - } - } - }, - { - "type": "text", - "value": " node:", - "position": { - "start": { - "line": 13, - "column": 81, - "offset": 192 - }, - "end": { - "line": 13, - "column": 87, - "offset": 198 - } - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 112 - }, - "end": { - "line": 13, - "column": 87, - "offset": 198 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Look at the", - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 200 - }, - "end": { - "line": 15, - "column": 12, - "offset": 211 - } - } - }, - { - "type": "break", - "position": { - "start": { - "line": 15, - "column": 12, - "offset": 211 - }, - "end": { - "line": 16, - "column": 1, - "offset": 213 - } - } - }, - { - "type": "text", - "value": "pretty line", - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 213 - }, - "end": { - "line": 16, - "column": 12, - "offset": 224 - } - } - }, - { - "type": "break", - "position": { - "start": { - "line": 16, - "column": 12, - "offset": 224 - }, - "end": { - "line": 17, - "column": 1, - "offset": 226 - } - } - }, - { - "type": "text", - "value": "breaks.", - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 226 - }, - "end": { - "line": 17, - "column": 8, - "offset": 233 - } - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 200 - }, - "end": { - "line": 17, - "column": 8, - "offset": 233 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 18, - "column": 1, - "offset": 234 - } - } -} diff --git a/test/fixtures/tree/case-insensitive-refs.json b/test/fixtures/tree/case-insensitive-refs.json deleted file mode 100644 index 1048387f6..000000000 --- a/test/fixtures/tree/case-insensitive-refs.json +++ /dev/null @@ -1,89 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "children": [ - { - "type": "text", - "value": "hi", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 4, - "offset": 3 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 5, - "offset": 4 - } - }, - "label": "hi", - "identifier": "hi", - "referenceType": "shortcut" - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 5, - "offset": 4 - } - } - }, - { - "type": "definition", - "identifier": "hi", - "label": "HI", - "title": null, - "url": "/url", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 6 - }, - "end": { - "line": 3, - "column": 11, - "offset": 16 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 4, - "column": 1, - "offset": 17 - } - } -} diff --git a/test/fixtures/tree/code-block-indentation.nooutput.json b/test/fixtures/tree/code-block-indentation.nooutput.json deleted file mode 100644 index aee34cdc5..000000000 --- a/test/fixtures/tree/code-block-indentation.nooutput.json +++ /dev/null @@ -1,170 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Fenced code blocks are normally not exdented, however,\nwhen the initial fence is indented by spaces, the value of\nthe code is exdented by up to that amount of spaces.", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 3, - "column": 53, - "offset": 166 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 3, - "column": 53, - "offset": 166 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": " This is a code block...\n \n ...which is not exdented.", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 168 - }, - "end": { - "line": 9, - "column": 4, - "offset": 242 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "But...", - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 244 - }, - "end": { - "line": 11, - "column": 7, - "offset": 250 - } - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 244 - }, - "end": { - "line": 11, - "column": 7, - "offset": 250 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": " This one...\n \n ...is.", - "position": { - "start": { - "line": 13, - "column": 3, - "offset": 254 - }, - "end": { - "line": 17, - "column": 6, - "offset": 299 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And...", - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 301 - }, - "end": { - "line": 19, - "column": 7, - "offset": 307 - } - } - } - ], - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 301 - }, - "end": { - "line": 19, - "column": 7, - "offset": 307 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "So is this...\n \n ...one.", - "position": { - "start": { - "line": 21, - "column": 2, - "offset": 310 - }, - "end": { - "line": 25, - "column": 5, - "offset": 351 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 26, - "column": 1, - "offset": 352 - } - } -} diff --git a/test/fixtures/tree/code-block-nesting-bug.json b/test/fixtures/tree/code-block-nesting-bug.json deleted file mode 100644 index 8600a8cab..000000000 --- a/test/fixtures/tree/code-block-nesting-bug.json +++ /dev/null @@ -1,305 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "GitHub, thus RedCarpet, has a bug where “nested” fenced code blocks,\neven with shorter fences, can exit their actual “parent” block.", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 64, - "offset": 132 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 64, - "offset": 132 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Note: not any more! ", - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 134 - }, - "end": { - "line": 4, - "column": 21, - "offset": 154 - } - } - }, - { - "type": "link", - "title": null, - "url": "https://github.com/remarkjs/remark/issues/323", - "children": [ - { - "type": "text", - "value": "https://github.com/remarkjs/remark/issues/323", - "position": { - "start": { - "line": 4, - "column": 22, - "offset": 155 - }, - "end": { - "line": 4, - "column": 67, - "offset": 200 - } - } - } - ], - "position": { - "start": { - "line": 4, - "column": 21, - "offset": 154 - }, - "end": { - "line": 4, - "column": 68, - "offset": 201 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 4, - "column": 68, - "offset": 201 - }, - "end": { - "line": 4, - "column": 69, - "offset": 202 - } - } - } - ], - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 134 - }, - "end": { - "line": 4, - "column": 69, - "offset": 202 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Note that this bug does not occur on indented code-blocks.", - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 204 - }, - "end": { - "line": 6, - "column": 59, - "offset": 262 - } - } - } - ], - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 204 - }, - "end": { - "line": 6, - "column": 59, - "offset": 262 - } - } - }, - { - "type": "code", - "lang": "foo", - "meta": null, - "value": "```bar\nbaz\n```", - "position": { - "start": { - "line": 8, - "column": 1, - "offset": 264 - }, - "end": { - "line": 12, - "column": 5, - "offset": 291 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Even with a different fence marker:", - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 293 - }, - "end": { - "line": 14, - "column": 36, - "offset": 328 - } - } - } - ], - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 293 - }, - "end": { - "line": 14, - "column": 36, - "offset": 328 - } - } - }, - { - "type": "code", - "lang": "foo", - "meta": null, - "value": "~~~bar\nbaz\n~~~", - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 330 - }, - "end": { - "line": 20, - "column": 5, - "offset": 357 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And reversed:", - "position": { - "start": { - "line": 22, - "column": 1, - "offset": 359 - }, - "end": { - "line": 22, - "column": 14, - "offset": 372 - } - } - } - ], - "position": { - "start": { - "line": 22, - "column": 1, - "offset": 359 - }, - "end": { - "line": 22, - "column": 14, - "offset": 372 - } - } - }, - { - "type": "code", - "lang": "foo", - "meta": null, - "value": "~~~bar\nbaz\n~~~", - "position": { - "start": { - "line": 24, - "column": 1, - "offset": 374 - }, - "end": { - "line": 28, - "column": 5, - "offset": 401 - } - } - }, - { - "type": "code", - "lang": "foo", - "meta": null, - "value": "```bar\nbaz\n```", - "position": { - "start": { - "line": 30, - "column": 1, - "offset": 403 - }, - "end": { - "line": 34, - "column": 5, - "offset": 430 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 35, - "column": 1, - "offset": 431 - } - } -} diff --git a/test/fixtures/tree/code-block.output.fence=`.json b/test/fixtures/tree/code-block.output.fence=`.json deleted file mode 100644 index b9d72d134..000000000 --- a/test/fixtures/tree/code-block.output.fence=`.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Ticks:", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - } - } - }, - { - "type": "code", - "lang": "javascript", - "meta": null, - "value": "alert('Hello World!');", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 8 - }, - "end": { - "line": 5, - "column": 4, - "offset": 48 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 6, - "column": 1, - "offset": 49 - } - } -} diff --git a/test/fixtures/tree/code-block.output.fence=~.json b/test/fixtures/tree/code-block.output.fence=~.json deleted file mode 100644 index f67b77fa3..000000000 --- a/test/fixtures/tree/code-block.output.fence=~.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Tildes:", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 8, - "offset": 7 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 8, - "offset": 7 - } - } - }, - { - "type": "code", - "lang": "javascript", - "meta": null, - "value": "alert('Hello World!');", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 9 - }, - "end": { - "line": 5, - "column": 4, - "offset": 49 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 6, - "column": 1, - "offset": 50 - } - } -} diff --git a/test/fixtures/tree/code-blocks.json b/test/fixtures/tree/code-blocks.json deleted file mode 100644 index 5e2dcd079..000000000 --- a/test/fixtures/tree/code-blocks.json +++ /dev/null @@ -1,188 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "code", - "lang": null, - "meta": null, - "value": "code block on the first line", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 2, - "offset": 31 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Regular text.", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 32 - }, - "end": { - "line": 3, - "column": 14, - "offset": 45 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 32 - }, - "end": { - "line": 3, - "column": 14, - "offset": 45 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "code block indented by spaces", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 47 - }, - "end": { - "line": 5, - "column": 34, - "offset": 80 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Regular text.", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 82 - }, - "end": { - "line": 7, - "column": 14, - "offset": 95 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 82 - }, - "end": { - "line": 7, - "column": 14, - "offset": 95 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "the lines in this block \nall contain trailing spaces ", - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 97 - }, - "end": { - "line": 10, - "column": 31, - "offset": 154 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Regular Text.", - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 156 - }, - "end": { - "line": 12, - "column": 14, - "offset": 169 - } - } - } - ], - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 156 - }, - "end": { - "line": 12, - "column": 14, - "offset": 169 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "code block on the last line", - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 171 - }, - "end": { - "line": 14, - "column": 29, - "offset": 199 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 15, - "column": 1, - "offset": 200 - } - } -} diff --git a/test/fixtures/tree/code-blocks.output.fences.json b/test/fixtures/tree/code-blocks.output.fences.json deleted file mode 100644 index 83b6321b7..000000000 --- a/test/fixtures/tree/code-blocks.output.fences.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "A code block using fences:", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 27, - "offset": 26 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 27, - "offset": 26 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "alert('Hello World!');", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 28 - }, - "end": { - "line": 5, - "column": 4, - "offset": 58 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 6, - "column": 1, - "offset": 59 - } - } -} diff --git a/test/fixtures/tree/code-blocks.output.json b/test/fixtures/tree/code-blocks.output.json deleted file mode 100644 index 50466d216..000000000 --- a/test/fixtures/tree/code-blocks.output.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "A code block NOT using fences:", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 31, - "offset": 30 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 31, - "offset": 30 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "alert('Hello World!');", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 32 - }, - "end": { - "line": 3, - "column": 27, - "offset": 58 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 4, - "column": 1, - "offset": 59 - } - } -} diff --git a/test/fixtures/tree/code-inline-whitespace.json b/test/fixtures/tree/code-inline-whitespace.json deleted file mode 100644 index 945a98574..000000000 --- a/test/fixtures/tree/code-inline-whitespace.json +++ /dev/null @@ -1,130 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Markdown strips regular whitespaces: ", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 38, - "offset": 37 - } - } - }, - { - "type": "inlineCode", - "value": " hello ", - "position": { - "start": { - "line": 1, - "column": 38, - "offset": 37 - }, - "end": { - "line": 1, - "column": 51, - "offset": 50 - } - } - }, - { - "type": "text", - "value": "\nIncluding tabs: ", - "position": { - "start": { - "line": 1, - "column": 51, - "offset": 50 - }, - "end": { - "line": 2, - "column": 17, - "offset": 67 - } - } - }, - { - "type": "inlineCode", - "value": "\thello\t", - "position": { - "start": { - "line": 2, - "column": 17, - "offset": 67 - }, - "end": { - "line": 2, - "column": 26, - "offset": 76 - } - } - }, - { - "type": "text", - "value": "\nHowever it preserves non-breaking whitespaces: ", - "position": { - "start": { - "line": 2, - "column": 26, - "offset": 76 - }, - "end": { - "line": 3, - "column": 48, - "offset": 124 - } - } - }, - { - "type": "inlineCode", - "value": "   hello   ", - "position": { - "start": { - "line": 3, - "column": 48, - "offset": 124 - }, - "end": { - "line": 3, - "column": 61, - "offset": 137 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 3, - "column": 61, - "offset": 137 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 4, - "column": 1, - "offset": 138 - } - } -} diff --git a/test/fixtures/tree/code-spans.json b/test/fixtures/tree/code-spans.json deleted file mode 100644 index 5657145aa..000000000 --- a/test/fixtures/tree/code-spans.json +++ /dev/null @@ -1,798 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "inlineCode", - "value": "", - "position": { - "start": { - "line": 1, - "column": 34, - "offset": 33 - }, - "end": { - "line": 1, - "column": 38, - "offset": 37 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 38, - "offset": 37 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Fix for backticks within HTML tag: ", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 39 - }, - "end": { - "line": 3, - "column": 36, - "offset": 74 - } - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 3, - "column": 36, - "offset": 74 - }, - "end": { - "line": 3, - "column": 57, - "offset": 95 - } - } - }, - { - "type": "text", - "value": "like this", - "position": { - "start": { - "line": 3, - "column": 57, - "offset": 95 - }, - "end": { - "line": 3, - "column": 66, - "offset": 104 - } - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 3, - "column": 66, - "offset": 104 - }, - "end": { - "line": 3, - "column": 73, - "offset": 111 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 39 - }, - "end": { - "line": 3, - "column": 73, - "offset": 111 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Here's how you put ", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 113 - }, - "end": { - "line": 5, - "column": 20, - "offset": 132 - } - } - }, - { - "type": "inlineCode", - "value": "`backticks`", - "position": { - "start": { - "line": 5, - "column": 20, - "offset": 132 - }, - "end": { - "line": 5, - "column": 37, - "offset": 149 - } - } - }, - { - "type": "text", - "value": " in a code span.", - "position": { - "start": { - "line": 5, - "column": 37, - "offset": 149 - }, - "end": { - "line": 5, - "column": 53, - "offset": 165 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 113 - }, - "end": { - "line": 5, - "column": 53, - "offset": 165 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Empty code spans are not supported: ``.", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 167 - }, - "end": { - "line": 7, - "column": 40, - "offset": 206 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 167 - }, - "end": { - "line": 7, - "column": 40, - "offset": 206 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Here’s an example, ", - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 208 - }, - "end": { - "line": 9, - "column": 20, - "offset": 227 - } - } - }, - { - "type": "inlineCode", - "value": "foo ` bar ", - "position": { - "start": { - "line": 9, - "column": 20, - "offset": 227 - }, - "end": { - "line": 9, - "column": 36, - "offset": 243 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 9, - "column": 36, - "offset": 243 - }, - "end": { - "line": 9, - "column": 37, - "offset": 244 - } - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 208 - }, - "end": { - "line": 9, - "column": 37, - "offset": 244 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And here, ", - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 246 - }, - "end": { - "line": 11, - "column": 11, - "offset": 256 - } - } - }, - { - "type": "inlineCode", - "value": "``", - "position": { - "start": { - "line": 11, - "column": 11, - "offset": 256 - }, - "end": { - "line": 11, - "column": 17, - "offset": 262 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 11, - "column": 17, - "offset": 262 - }, - "end": { - "line": 11, - "column": 18, - "offset": 263 - } - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 246 - }, - "end": { - "line": 11, - "column": 18, - "offset": 263 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "inlineCode", - "value": "// this is also inline code", - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 265 - }, - "end": { - "line": 15, - "column": 3, - "offset": 298 - } - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 265 - }, - "end": { - "line": 15, - "column": 3, - "offset": 298 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "So is this ", - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 300 - }, - "end": { - "line": 17, - "column": 12, - "offset": 311 - } - } - }, - { - "type": "inlineCode", - "value": "foo bar\n baz", - "position": { - "start": { - "line": 17, - "column": 12, - "offset": 311 - }, - "end": { - "line": 18, - "column": 7, - "offset": 328 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 18, - "column": 7, - "offset": 328 - }, - "end": { - "line": 18, - "column": 8, - "offset": 329 - } - } - } - ], - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 300 - }, - "end": { - "line": 18, - "column": 8, - "offset": 329 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And this ", - "position": { - "start": { - "line": 20, - "column": 1, - "offset": 331 - }, - "end": { - "line": 20, - "column": 10, - "offset": 340 - } - } - }, - { - "type": "inlineCode", - "value": "foo `` bar", - "position": { - "start": { - "line": 20, - "column": 10, - "offset": 340 - }, - "end": { - "line": 20, - "column": 22, - "offset": 352 - } - } - } - ], - "position": { - "start": { - "line": 20, - "column": 1, - "offset": 331 - }, - "end": { - "line": 20, - "column": 22, - "offset": 352 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And ", - "position": { - "start": { - "line": 22, - "column": 1, - "offset": 354 - }, - "end": { - "line": 22, - "column": 5, - "offset": 358 - } - } - }, - { - "type": "inlineCode", - "value": "this\\", - "position": { - "start": { - "line": 22, - "column": 5, - "offset": 358 - }, - "end": { - "line": 22, - "column": 12, - "offset": 365 - } - } - }, - { - "type": "text", - "value": "but this is text`.", - "position": { - "start": { - "line": 22, - "column": 12, - "offset": 365 - }, - "end": { - "line": 22, - "column": 30, - "offset": 383 - } - } - } - ], - "position": { - "start": { - "line": 22, - "column": 1, - "offset": 354 - }, - "end": { - "line": 22, - "column": 30, - "offset": 383 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Whitespace only: ", - "position": { - "start": { - "line": 24, - "column": 1, - "offset": 385 - }, - "end": { - "line": 24, - "column": 18, - "offset": 402 - } - } - }, - { - "type": "inlineCode", - "value": " ", - "position": { - "start": { - "line": 24, - "column": 18, - "offset": 402 - }, - "end": { - "line": 24, - "column": 21, - "offset": 405 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 24, - "column": 21, - "offset": 405 - }, - "end": { - "line": 24, - "column": 22, - "offset": 406 - } - } - } - ], - "position": { - "start": { - "line": 24, - "column": 1, - "offset": 385 - }, - "end": { - "line": 24, - "column": 22, - "offset": 406 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Whitespace only: ", - "position": { - "start": { - "line": 26, - "column": 1, - "offset": 408 - }, - "end": { - "line": 26, - "column": 18, - "offset": 425 - } - } - }, - { - "type": "inlineCode", - "value": " ", - "position": { - "start": { - "line": 26, - "column": 18, - "offset": 425 - }, - "end": { - "line": 26, - "column": 24, - "offset": 431 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 26, - "column": 24, - "offset": 431 - }, - "end": { - "line": 26, - "column": 25, - "offset": 432 - } - } - } - ], - "position": { - "start": { - "line": 26, - "column": 1, - "offset": 408 - }, - "end": { - "line": 26, - "column": 25, - "offset": 432 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Whitespace only: ", - "position": { - "start": { - "line": 28, - "column": 1, - "offset": 434 - }, - "end": { - "line": 28, - "column": 18, - "offset": 451 - } - } - }, - { - "type": "inlineCode", - "value": "\n", - "position": { - "start": { - "line": 28, - "column": 18, - "offset": 451 - }, - "end": { - "line": 29, - "column": 2, - "offset": 454 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 29, - "column": 2, - "offset": 454 - }, - "end": { - "line": 29, - "column": 3, - "offset": 455 - } - } - } - ], - "position": { - "start": { - "line": 28, - "column": 1, - "offset": 434 - }, - "end": { - "line": 29, - "column": 3, - "offset": 455 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 30, - "column": 1, - "offset": 456 - } - } -} diff --git a/test/fixtures/tree/def-blocks.json b/test/fixtures/tree/def-blocks.json deleted file mode 100644 index 8c1db9cbb..000000000 --- a/test/fixtures/tree/def-blocks.json +++ /dev/null @@ -1,344 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "blockquote", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "hello\n[1]: hello", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 2, - "column": 13, - "offset": 20 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 2, - "column": 13, - "offset": 20 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 13, - "offset": 20 - } - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 22 - }, - "end": { - "line": 4, - "column": 6, - "offset": 27 - } - } - }, - { - "type": "blockquote", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "hello\n[2]: hello", - "position": { - "start": { - "line": 6, - "column": 3, - "offset": 31 - }, - "end": { - "line": 7, - "column": 11, - "offset": 47 - } - } - } - ], - "position": { - "start": { - "line": 6, - "column": 3, - "offset": 31 - }, - "end": { - "line": 7, - "column": 11, - "offset": 47 - } - } - } - ], - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 29 - }, - "end": { - "line": 7, - "column": 11, - "offset": 47 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "hello", - "position": { - "start": { - "line": 10, - "column": 3, - "offset": 52 - }, - "end": { - "line": 10, - "column": 8, - "offset": 57 - } - } - } - ], - "position": { - "start": { - "line": 10, - "column": 3, - "offset": 52 - }, - "end": { - "line": 10, - "column": 8, - "offset": 57 - } - } - } - ], - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 50 - }, - "end": { - "line": 10, - "column": 8, - "offset": 57 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "definition", - "identifier": "3", - "label": "3", - "title": null, - "url": "hello", - "position": { - "start": { - "line": 11, - "column": 3, - "offset": 60 - }, - "end": { - "line": 11, - "column": 13, - "offset": 70 - } - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 58 - }, - "end": { - "line": 11, - "column": 13, - "offset": 70 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "hello\n[4]: hello", - "position": { - "start": { - "line": 14, - "column": 3, - "offset": 75 - }, - "end": { - "line": 15, - "column": 11, - "offset": 91 - } - } - } - ], - "position": { - "start": { - "line": 14, - "column": 3, - "offset": 75 - }, - "end": { - "line": 15, - "column": 11, - "offset": 91 - } - } - } - ], - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 73 - }, - "end": { - "line": 15, - "column": 11, - "offset": 91 - } - } - } - ], - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 50 - }, - "end": { - "line": 15, - "column": 11, - "offset": 91 - } - } - }, - { - "type": "blockquote", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo\nbar\n[1]: foo\nbar", - "position": { - "start": { - "line": 18, - "column": 3, - "offset": 96 - }, - "end": { - "line": 21, - "column": 6, - "offset": 120 - } - } - } - ], - "position": { - "start": { - "line": 18, - "column": 3, - "offset": 96 - }, - "end": { - "line": 21, - "column": 6, - "offset": 120 - } - } - } - ], - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 94 - }, - "end": { - "line": 21, - "column": 6, - "offset": 120 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 22, - "column": 1, - "offset": 121 - } - } -} diff --git a/test/fixtures/tree/definition-in-list-and-blockquote.json b/test/fixtures/tree/definition-in-list-and-blockquote.json deleted file mode 100644 index 02c2aa667..000000000 --- a/test/fixtures/tree/definition-in-list-and-blockquote.json +++ /dev/null @@ -1,298 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "children": [ - { - "type": "text", - "value": "alpha", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 11, - "offset": 10 - } - }, - "label": "1", - "identifier": "1", - "referenceType": "full" - }, - { - "type": "text", - "value": ", ", - "position": { - "start": { - "line": 1, - "column": 11, - "offset": 10 - }, - "end": { - "line": 1, - "column": 13, - "offset": 12 - } - } - }, - { - "type": "linkReference", - "children": [ - { - "type": "text", - "value": "bravo", - "position": { - "start": { - "line": 1, - "column": 14, - "offset": 13 - }, - "end": { - "line": 1, - "column": 19, - "offset": 18 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 13, - "offset": 12 - }, - "end": { - "line": 1, - "column": 23, - "offset": 22 - } - }, - "label": "2", - "identifier": "2", - "referenceType": "full" - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 23, - "offset": 22 - }, - "end": { - "line": 1, - "column": 24, - "offset": 23 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 24, - "offset": 23 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Definition in list:", - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 27 - }, - "end": { - "line": 3, - "column": 22, - "offset": 46 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 27 - }, - "end": { - "line": 3, - "column": 22, - "offset": 46 - } - } - }, - { - "type": "definition", - "identifier": "1", - "label": "1", - "title": null, - "url": "alpha", - "position": { - "start": { - "line": 5, - "column": 3, - "offset": 50 - }, - "end": { - "line": 5, - "column": 13, - "offset": 60 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 25 - }, - "end": { - "line": 5, - "column": 13, - "offset": 60 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 25 - }, - "end": { - "line": 5, - "column": 13, - "offset": 60 - } - } - }, - { - "type": "blockquote", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Definition in blockquote:", - "position": { - "start": { - "line": 7, - "column": 3, - "offset": 64 - }, - "end": { - "line": 7, - "column": 28, - "offset": 89 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 3, - "offset": 64 - }, - "end": { - "line": 7, - "column": 28, - "offset": 89 - } - } - }, - { - "type": "definition", - "identifier": "2", - "label": "2", - "title": null, - "url": "bravo", - "position": { - "start": { - "line": 9, - "column": 3, - "offset": 94 - }, - "end": { - "line": 9, - "column": 13, - "offset": 104 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 62 - }, - "end": { - "line": 9, - "column": 13, - "offset": 104 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 10, - "column": 1, - "offset": 105 - } - } -} diff --git a/test/fixtures/tree/definition-newline.json b/test/fixtures/tree/definition-newline.json deleted file mode 100644 index 3430c632a..000000000 --- a/test/fixtures/tree/definition-newline.json +++ /dev/null @@ -1,200 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "definition", - "identifier": "baz", - "label": "baz", - "title": "\n", - "url": "/url", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 2, - "offset": 15 - } - } - }, - { - "type": "definition", - "identifier": "foo", - "label": "foo", - "title": "\n", - "url": "/url", - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 17 - }, - "end": { - "line": 5, - "column": 2, - "offset": 32 - } - } - }, - { - "type": "definition", - "identifier": "bar", - "label": "bar", - "title": "\n", - "url": "/url", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 34 - }, - "end": { - "line": 8, - "column": 2, - "offset": 49 - } - } - }, - { - "type": "definition", - "identifier": "baz", - "label": "baz", - "title": "foo\nbar", - "url": "/url", - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 50 - }, - "end": { - "line": 10, - "column": 5, - "offset": 71 - } - } - }, - { - "type": "definition", - "identifier": "baz", - "label": "baz", - "title": "foo\nbar", - "url": "/url", - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 73 - }, - "end": { - "line": 13, - "column": 5, - "offset": 94 - } - } - }, - { - "type": "definition", - "identifier": "baz", - "label": "baz", - "title": "foo\nbar", - "url": "/url", - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 96 - }, - "end": { - "line": 16, - "column": 5, - "offset": 117 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "children": [ - { - "type": "text", - "value": "baz", - "position": { - "start": { - "line": 18, - "column": 2, - "offset": 120 - }, - "end": { - "line": 18, - "column": 5, - "offset": 123 - } - } - } - ], - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 119 - }, - "end": { - "line": 18, - "column": 6, - "offset": 124 - } - }, - "label": "baz", - "identifier": "baz", - "referenceType": "shortcut" - }, - { - "type": "text", - "value": ": /url 'foo", - "position": { - "start": { - "line": 18, - "column": 6, - "offset": 124 - }, - "end": { - "line": 18, - "column": 17, - "offset": 135 - } - } - } - ], - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 119 - }, - "end": { - "line": 18, - "column": 17, - "offset": 135 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 18, - "column": 17, - "offset": 135 - } - } -} diff --git a/test/fixtures/tree/definition-unclosed-attribute.json b/test/fixtures/tree/definition-unclosed-attribute.json deleted file mode 100644 index 9e5fbedde..000000000 --- a/test/fixtures/tree/definition-unclosed-attribute.json +++ /dev/null @@ -1,410 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[baz]: /url (there", - "position": { - "start": { - "line": 2, - "column": 1, - "offset": 1 - }, - "end": { - "line": 2, - "column": 19, - "offset": 19 - } - } - } - ], - "position": { - "start": { - "line": 2, - "column": 1, - "offset": 1 - }, - "end": { - "line": 2, - "column": 19, - "offset": 19 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[foo]: /url \"there", - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 21 - }, - "end": { - "line": 4, - "column": 19, - "offset": 39 - } - } - } - ], - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 21 - }, - "end": { - "line": 4, - "column": 19, - "offset": 39 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[bar]: /url 'there", - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 41 - }, - "end": { - "line": 6, - "column": 19, - "offset": 59 - } - } - } - ], - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 41 - }, - "end": { - "line": 6, - "column": 19, - "offset": 59 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[baz]: url (", - "position": { - "start": { - "line": 8, - "column": 1, - "offset": 61 - }, - "end": { - "line": 8, - "column": 13, - "offset": 73 - } - } - } - ], - "position": { - "start": { - "line": 8, - "column": 1, - "offset": 61 - }, - "end": { - "line": 8, - "column": 13, - "offset": 73 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[foo]: url \"", - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 75 - }, - "end": { - "line": 10, - "column": 13, - "offset": 87 - } - } - } - ], - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 75 - }, - "end": { - "line": 10, - "column": 13, - "offset": 87 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[bar]: /url '", - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 89 - }, - "end": { - "line": 12, - "column": 14, - "offset": 102 - } - } - } - ], - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 89 - }, - "end": { - "line": 12, - "column": 14, - "offset": 102 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[baz]: ", - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 104 - }, - "end": { - "line": 14, - "column": 8, - "offset": 111 - } - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 14, - "column": 8, - "offset": 111 - }, - "end": { - "line": 14, - "column": 13, - "offset": 116 - } - } - }, - { - "type": "text", - "value": "(", - "position": { - "start": { - "line": 14, - "column": 13, - "offset": 116 - }, - "end": { - "line": 14, - "column": 14, - "offset": 117 - } - } - } - ], - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 104 - }, - "end": { - "line": 14, - "column": 14, - "offset": 117 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[foo]: ", - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 119 - }, - "end": { - "line": 16, - "column": 8, - "offset": 126 - } - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 16, - "column": 8, - "offset": 126 - }, - "end": { - "line": 16, - "column": 13, - "offset": 131 - } - } - }, - { - "type": "text", - "value": "\"", - "position": { - "start": { - "line": 16, - "column": 13, - "offset": 131 - }, - "end": { - "line": 16, - "column": 14, - "offset": 132 - } - } - } - ], - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 119 - }, - "end": { - "line": 16, - "column": 14, - "offset": 132 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[bar]: ", - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 134 - }, - "end": { - "line": 18, - "column": 8, - "offset": 141 - } - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 18, - "column": 8, - "offset": 141 - }, - "end": { - "line": 18, - "column": 13, - "offset": 146 - } - } - }, - { - "type": "text", - "value": "'", - "position": { - "start": { - "line": 18, - "column": 13, - "offset": 146 - }, - "end": { - "line": 18, - "column": 14, - "offset": 147 - } - } - } - ], - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 134 - }, - "end": { - "line": 18, - "column": 14, - "offset": 147 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 18, - "column": 14, - "offset": 147 - } - } -} diff --git a/test/fixtures/tree/definition-unclosed.json b/test/fixtures/tree/definition-unclosed.json deleted file mode 100644 index cc15242f9..000000000 --- a/test/fixtures/tree/definition-unclosed.json +++ /dev/null @@ -1,116 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[foo]:", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[bar]: Already linked: http://example.com/.

", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 78, - "offset": 77 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Already linked: ", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 79 - }, - "end": { - "line": 3, - "column": 17, - "offset": 95 - } - } - }, - { - "type": "link", - "title": null, - "url": "http://example.com/", - "children": [ - { - "type": "text", - "value": "http://example.com/", - "position": { - "start": { - "line": 3, - "column": 18, - "offset": 96 - }, - "end": { - "line": 3, - "column": 37, - "offset": 115 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 17, - "offset": 95 - }, - "end": { - "line": 3, - "column": 59, - "offset": 137 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 59, - "offset": 137 - }, - "end": { - "line": 3, - "column": 60, - "offset": 138 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 79 - }, - "end": { - "line": 3, - "column": 60, - "offset": 138 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Already linked: ", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 140 - }, - "end": { - "line": 5, - "column": 17, - "offset": 156 - } - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 5, - "column": 17, - "offset": 156 - }, - "end": { - "line": 5, - "column": 47, - "offset": 186 - } - } - }, - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "http://example.com/", - "position": { - "start": { - "line": 5, - "column": 49, - "offset": 188 - }, - "end": { - "line": 5, - "column": 68, - "offset": 207 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 47, - "offset": 186 - }, - "end": { - "line": 5, - "column": 70, - "offset": 209 - } - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 5, - "column": 70, - "offset": 209 - }, - "end": { - "line": 5, - "column": 74, - "offset": 213 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 74, - "offset": 213 - }, - "end": { - "line": 5, - "column": 75, - "offset": 214 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 140 - }, - "end": { - "line": 5, - "column": 75, - "offset": 214 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 6, - "column": 1, - "offset": 215 - } - } -} diff --git a/test/fixtures/tree/emphasis-empty.json b/test/fixtures/tree/emphasis-empty.json deleted file mode 100644 index e22237f19..000000000 --- a/test/fixtures/tree/emphasis-empty.json +++ /dev/null @@ -1,149 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hello ** ** world.", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 19, - "offset": 18 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 19, - "offset": 18 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hello __\t__ world.", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 20 - }, - "end": { - "line": 3, - "column": 19, - "offset": 38 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 20 - }, - "end": { - "line": 3, - "column": 19, - "offset": 38 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hello *\t* world.", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 40 - }, - "end": { - "line": 5, - "column": 17, - "offset": 56 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 40 - }, - "end": { - "line": 5, - "column": 17, - "offset": 56 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hello _\t_ world.", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 58 - }, - "end": { - "line": 7, - "column": 17, - "offset": 74 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 58 - }, - "end": { - "line": 7, - "column": 17, - "offset": 74 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 75 - } - } -} diff --git a/test/fixtures/tree/emphasis-escaped-final-marker.json b/test/fixtures/tree/emphasis-escaped-final-marker.json deleted file mode 100644 index 775723f6c..000000000 --- a/test/fixtures/tree/emphasis-escaped-final-marker.json +++ /dev/null @@ -1,215 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "*bar*", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "*", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 8 - }, - "end": { - "line": 3, - "column": 2, - "offset": 9 - } - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "bar*", - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 10 - }, - "end": { - "line": 3, - "column": 8, - "offset": 15 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 9 - }, - "end": { - "line": 3, - "column": 9, - "offset": 16 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 8 - }, - "end": { - "line": 3, - "column": 9, - "offset": 16 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "_bar_", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 18 - }, - "end": { - "line": 5, - "column": 7, - "offset": 24 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 18 - }, - "end": { - "line": 5, - "column": 7, - "offset": 24 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "_", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 26 - }, - "end": { - "line": 7, - "column": 2, - "offset": 27 - } - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "bar_", - "position": { - "start": { - "line": 7, - "column": 3, - "offset": 28 - }, - "end": { - "line": 7, - "column": 8, - "offset": 33 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 2, - "offset": 27 - }, - "end": { - "line": 7, - "column": 9, - "offset": 34 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 26 - }, - "end": { - "line": 7, - "column": 9, - "offset": 34 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 35 - } - } -} diff --git a/test/fixtures/tree/emphasis-internal.json b/test/fixtures/tree/emphasis-internal.json deleted file mode 100644 index 078fa8976..000000000 --- a/test/fixtures/tree/emphasis-internal.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "These words should_not_be_emphasized.", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 38, - "offset": 37 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 38, - "offset": 37 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 1, - "offset": 38 - } - } -} diff --git a/test/fixtures/tree/emphasis.output.emphasis=-asterisk-.strong=_.json b/test/fixtures/tree/emphasis.output.emphasis=-asterisk-.strong=_.json deleted file mode 100644 index ebb65e2c8..000000000 --- a/test/fixtures/tree/emphasis.output.emphasis=-asterisk-.strong=_.json +++ /dev/null @@ -1,149 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "emphasis", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 10, - "offset": 9 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 11, - "offset": 10 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 11, - "offset": 10 - }, - "end": { - "line": 1, - "column": 12, - "offset": 11 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 12, - "offset": 11 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "strong", - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 15 - }, - "end": { - "line": 3, - "column": 9, - "offset": 21 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 13 - }, - "end": { - "line": 3, - "column": 11, - "offset": 23 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 11, - "offset": 23 - }, - "end": { - "line": 3, - "column": 12, - "offset": 24 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 13 - }, - "end": { - "line": 3, - "column": 12, - "offset": 24 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 4, - "column": 1, - "offset": 25 - } - } -} diff --git a/test/fixtures/tree/emphasis.output.emphasis=_.strong=-asterisk-.json b/test/fixtures/tree/emphasis.output.emphasis=_.strong=-asterisk-.json deleted file mode 100644 index ebb65e2c8..000000000 --- a/test/fixtures/tree/emphasis.output.emphasis=_.strong=-asterisk-.json +++ /dev/null @@ -1,149 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "emphasis", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 10, - "offset": 9 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 11, - "offset": 10 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 11, - "offset": 10 - }, - "end": { - "line": 1, - "column": 12, - "offset": 11 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 12, - "offset": 11 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "strong", - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 15 - }, - "end": { - "line": 3, - "column": 9, - "offset": 21 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 13 - }, - "end": { - "line": 3, - "column": 11, - "offset": 23 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 11, - "offset": 23 - }, - "end": { - "line": 3, - "column": 12, - "offset": 24 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 13 - }, - "end": { - "line": 3, - "column": 12, - "offset": 24 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 4, - "column": 1, - "offset": 25 - } - } -} diff --git a/test/fixtures/tree/empty.json b/test/fixtures/tree/empty.json deleted file mode 100644 index 49ccd7eb5..000000000 --- a/test/fixtures/tree/empty.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "type": "root", - "children": [], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 1, - "offset": 0 - } - } -} diff --git a/test/fixtures/tree/entities-advanced.json b/test/fixtures/tree/entities-advanced.json deleted file mode 100644 index cc45e17a7..000000000 --- a/test/fixtures/tree/entities-advanced.json +++ /dev/null @@ -1,862 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "blockquote", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "However, &MadeUpEntities; are kept in the document.", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 54, - "offset": 53 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 54, - "offset": 53 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 54, - "offset": 53 - } - } - }, - { - "type": "blockquote", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Entities even work in the language flag of fenced code blocks:", - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 57 - }, - "end": { - "line": 3, - "column": 65, - "offset": 119 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 57 - }, - "end": { - "line": 3, - "column": 65, - "offset": 119 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 55 - }, - "end": { - "line": 3, - "column": 65, - "offset": 119 - } - } - }, - { - "type": "blockquote", - "children": [ - { - "type": "code", - "lang": "some©language", - "meta": null, - "value": "alert('Hello');", - "position": { - "start": { - "line": 5, - "column": 3, - "offset": 123 - }, - "end": { - "line": 7, - "column": 6, - "offset": 168 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 121 - }, - "end": { - "line": 7, - "column": 6, - "offset": 168 - } - } - }, - { - "type": "blockquote", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And in an auto-link: ", - "position": { - "start": { - "line": 9, - "column": 3, - "offset": 172 - }, - "end": { - "line": 9, - "column": 24, - "offset": 193 - } - } - }, - { - "type": "link", - "title": null, - "url": "http://example©xample.com", - "children": [ - { - "type": "text", - "value": "http://example©xample.com", - "position": { - "start": { - "line": 9, - "column": 25, - "offset": 194 - }, - "end": { - "line": 9, - "column": 55, - "offset": 224 - } - } - } - ], - "position": { - "start": { - "line": 9, - "column": 24, - "offset": 193 - }, - "end": { - "line": 9, - "column": 56, - "offset": 225 - } - } - } - ], - "position": { - "start": { - "line": 9, - "column": 3, - "offset": 172 - }, - "end": { - "line": 9, - "column": 56, - "offset": 225 - } - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 170 - }, - "end": { - "line": 9, - "column": 56, - "offset": 225 - } - } - }, - { - "type": "blockquote", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Foo and bar and http://example©xample.com and baz.", - "position": { - "start": { - "line": 11, - "column": 3, - "offset": 229 - }, - "end": { - "line": 11, - "column": 58, - "offset": 284 - } - } - } - ], - "position": { - "start": { - "line": 11, - "column": 3, - "offset": 229 - }, - "end": { - "line": 11, - "column": 58, - "offset": 284 - } - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 227 - }, - "end": { - "line": 11, - "column": 58, - "offset": 284 - } - } - }, - { - "type": "blockquote", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Or in ", - "position": { - "start": { - "line": 13, - "column": 3, - "offset": 288 - }, - "end": { - "line": 13, - "column": 9, - "offset": 294 - } - } - }, - { - "type": "link", - "title": "in some pl©ce", - "url": "~/some©file", - "children": [ - { - "type": "text", - "value": "l©nks", - "position": { - "start": { - "line": 13, - "column": 10, - "offset": 295 - }, - "end": { - "line": 13, - "column": 20, - "offset": 305 - } - } - } - ], - "position": { - "start": { - "line": 13, - "column": 9, - "offset": 294 - }, - "end": { - "line": 14, - "column": 43, - "offset": 350 - } - } - } - ], - "position": { - "start": { - "line": 13, - "column": 3, - "offset": 288 - }, - "end": { - "line": 14, - "column": 43, - "offset": 350 - } - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 286 - }, - "end": { - "line": 14, - "column": 43, - "offset": 350 - } - } - }, - { - "type": "blockquote", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Or in ", - "position": { - "start": { - "line": 16, - "column": 3, - "offset": 354 - }, - "end": { - "line": 16, - "column": 9, - "offset": 360 - } - } - }, - { - "type": "link", - "title": "in some pl©ce", - "url": "~/some©file", - "children": [ - { - "type": "text", - "value": "l©lnks", - "position": { - "start": { - "line": 16, - "column": 10, - "offset": 361 - }, - "end": { - "line": 16, - "column": 21, - "offset": 372 - } - } - } - ], - "position": { - "start": { - "line": 16, - "column": 9, - "offset": 360 - }, - "end": { - "line": 18, - "column": 26, - "offset": 423 - } - } - } - ], - "position": { - "start": { - "line": 16, - "column": 3, - "offset": 354 - }, - "end": { - "line": 18, - "column": 26, - "offset": 423 - } - } - } - ], - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 352 - }, - "end": { - "line": 18, - "column": 26, - "offset": 423 - } - } - }, - { - "type": "blockquote", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Or in ", - "position": { - "start": { - "line": 20, - "column": 3, - "offset": 427 - }, - "end": { - "line": 20, - "column": 9, - "offset": 433 - } - } - }, - { - "type": "image", - "title": "in some pl©ce", - "url": "~/some©file", - "alt": "\nl©nks\n", - "position": { - "start": { - "line": 20, - "column": 9, - "offset": 433 - }, - "end": { - "line": 23, - "column": 43, - "offset": 498 - } - } - } - ], - "position": { - "start": { - "line": 20, - "column": 3, - "offset": 427 - }, - "end": { - "line": 23, - "column": 43, - "offset": 498 - } - } - } - ], - "position": { - "start": { - "line": 20, - "column": 1, - "offset": 425 - }, - "end": { - "line": 23, - "column": 43, - "offset": 498 - } - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 25, - "column": 1, - "offset": 500 - }, - "end": { - "line": 25, - "column": 4, - "offset": 503 - } - } - }, - { - "type": "blockquote", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Or in ", - "position": { - "start": { - "line": 27, - "column": 3, - "offset": 507 - }, - "end": { - "line": 27, - "column": 9, - "offset": 513 - } - } - }, - { - "type": "image", - "title": "in some pl©ce", - "url": "~/some©file", - "alt": "l©lnks", - "position": { - "start": { - "line": 27, - "column": 9, - "offset": 513 - }, - "end": { - "line": 29, - "column": 26, - "offset": 577 - } - } - } - ], - "position": { - "start": { - "line": 27, - "column": 3, - "offset": 507 - }, - "end": { - "line": 29, - "column": 26, - "offset": 577 - } - } - } - ], - "position": { - "start": { - "line": 27, - "column": 1, - "offset": 505 - }, - "end": { - "line": 29, - "column": 26, - "offset": 577 - } - } - }, - { - "type": "blockquote", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Or in ![\nl©nks\n][12]", - "position": { - "start": { - "line": 31, - "column": 3, - "offset": 581 - }, - "end": { - "line": 33, - "column": 8, - "offset": 612 - } - } - } - ], - "position": { - "start": { - "line": 31, - "column": 3, - "offset": 581 - }, - "end": { - "line": 33, - "column": 8, - "offset": 612 - } - } - } - ], - "position": { - "start": { - "line": 31, - "column": 1, - "offset": 579 - }, - "end": { - "line": 33, - "column": 8, - "offset": 612 - } - } - }, - { - "type": "blockquote", - "children": [ - { - "type": "definition", - "identifier": "1", - "label": "1", - "title": "in some\npl©ce", - "url": "http://example©xample.com", - "position": { - "start": { - "line": 35, - "column": 3, - "offset": 616 - }, - "end": { - "line": 36, - "column": 14, - "offset": 674 - } - } - } - ], - "position": { - "start": { - "line": 35, - "column": 1, - "offset": 614 - }, - "end": { - "line": 36, - "column": 14, - "offset": 674 - } - } - }, - { - "type": "blockquote", - "children": [ - { - "type": "definition", - "identifier": "1", - "label": "\n 1\n", - "title": "in some\npl©ce", - "url": "http://example©xample.com", - "position": { - "start": { - "line": 38, - "column": 3, - "offset": 678 - }, - "end": { - "line": 41, - "column": 14, - "offset": 744 - } - } - } - ], - "position": { - "start": { - "line": 38, - "column": 1, - "offset": 676 - }, - "end": { - "line": 41, - "column": 14, - "offset": 744 - } - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 43, - "column": 1, - "offset": 746 - }, - "end": { - "line": 43, - "column": 4, - "offset": 749 - } - } - }, - { - "type": "blockquote", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "But, entities are not interpreted in ", - "position": { - "start": { - "line": 45, - "column": 3, - "offset": 753 - }, - "end": { - "line": 45, - "column": 40, - "offset": 790 - } - } - }, - { - "type": "inlineCode", - "value": "inline cöde", - "position": { - "start": { - "line": 45, - "column": 40, - "offset": 790 - }, - "end": { - "line": 45, - "column": 58, - "offset": 808 - } - } - }, - { - "type": "text", - "value": ", or in\ncode blocks:", - "position": { - "start": { - "line": 45, - "column": 58, - "offset": 808 - }, - "end": { - "line": 46, - "column": 15, - "offset": 830 - } - } - } - ], - "position": { - "start": { - "line": 45, - "column": 3, - "offset": 753 - }, - "end": { - "line": 46, - "column": 15, - "offset": 830 - } - } - } - ], - "position": { - "start": { - "line": 45, - "column": 1, - "offset": 751 - }, - "end": { - "line": 46, - "column": 15, - "offset": 830 - } - } - }, - { - "type": "blockquote", - "children": [ - { - "type": "code", - "lang": null, - "meta": null, - "value": "CÖDE block.", - "position": { - "start": { - "line": 48, - "column": 3, - "offset": 834 - }, - "end": { - "line": 48, - "column": 23, - "offset": 854 - } - } - } - ], - "position": { - "start": { - "line": 48, - "column": 1, - "offset": 832 - }, - "end": { - "line": 48, - "column": 23, - "offset": 854 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 49, - "column": 1, - "offset": 855 - } - } -} diff --git a/test/fixtures/tree/entities.json b/test/fixtures/tree/entities.json deleted file mode 100644 index 22eb9d7a3..000000000 --- a/test/fixtures/tree/entities.json +++ /dev/null @@ -1,336 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Lots of entities are supported in mdast:  , &, ©, Æ,\nĎ, ¾, ℋ, ⅆ,\n∲, &c. Even some entities with a missing\nterminal semicolon are parsed correctly (as per the HTML5 spec):\nÿ, á, ©, and &.", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 5, - "column": 33, - "offset": 290 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 5, - "column": 33, - "offset": 290 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "However, &MadeUpEntities; are kept in the document.", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 292 - }, - "end": { - "line": 7, - "column": 52, - "offset": 343 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 292 - }, - "end": { - "line": 7, - "column": 52, - "offset": 343 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Entities even work in the language flag of fenced code blocks:", - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 345 - }, - "end": { - "line": 9, - "column": 63, - "offset": 407 - } - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 345 - }, - "end": { - "line": 9, - "column": 63, - "offset": 407 - } - } - }, - { - "type": "code", - "lang": "some—language", - "meta": null, - "value": "alert('Hello');", - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 409 - }, - "end": { - "line": 13, - "column": 4, - "offset": 451 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Or in ", - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 453 - }, - "end": { - "line": 15, - "column": 7, - "offset": 459 - } - } - }, - { - "type": "link", - "title": "in some plæce", - "url": "~/some—file", - "children": [ - { - "type": "text", - "value": "línks", - "position": { - "start": { - "line": 15, - "column": 8, - "offset": 460 - }, - "end": { - "line": 15, - "column": 20, - "offset": 472 - } - } - } - ], - "position": { - "start": { - "line": 15, - "column": 7, - "offset": 459 - }, - "end": { - "line": 15, - "column": 62, - "offset": 514 - } - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 453 - }, - "end": { - "line": 15, - "column": 62, - "offset": 514 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Or in ", - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 516 - }, - "end": { - "line": 17, - "column": 7, - "offset": 522 - } - } - }, - { - "type": "image", - "title": "© Someone", - "url": "~/an–image.png", - "alt": "ímages", - "position": { - "start": { - "line": 17, - "column": 7, - "offset": 522 - }, - "end": { - "line": 17, - "column": 62, - "offset": 577 - } - } - } - ], - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 516 - }, - "end": { - "line": 17, - "column": 62, - "offset": 577 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "But, entities are not interpreted in ", - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 579 - }, - "end": { - "line": 19, - "column": 38, - "offset": 616 - } - } - }, - { - "type": "inlineCode", - "value": "inline cöde", - "position": { - "start": { - "line": 19, - "column": 38, - "offset": 616 - }, - "end": { - "line": 19, - "column": 56, - "offset": 634 - } - } - }, - { - "type": "text", - "value": ", or in\ncode blocks:", - "position": { - "start": { - "line": 19, - "column": 56, - "offset": 634 - }, - "end": { - "line": 20, - "column": 13, - "offset": 654 - } - } - } - ], - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 579 - }, - "end": { - "line": 20, - "column": 13, - "offset": 654 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "CÖDE block.", - "position": { - "start": { - "line": 22, - "column": 1, - "offset": 656 - }, - "end": { - "line": 22, - "column": 18, - "offset": 673 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 23, - "column": 1, - "offset": 674 - } - } -} diff --git a/test/fixtures/tree/escaped-angles.json b/test/fixtures/tree/escaped-angles.json deleted file mode 100644 index 2348dc368..000000000 --- a/test/fixtures/tree/escaped-angles.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": ">", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 3, - "offset": 2 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 3, - "offset": 2 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 1, - "offset": 3 - } - } -} diff --git a/test/fixtures/tree/fenced-code-empty.json b/test/fixtures/tree/fenced-code-empty.json deleted file mode 100644 index 4277a2b72..000000000 --- a/test/fixtures/tree/fenced-code-empty.json +++ /dev/null @@ -1,221 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Normal with language tag:", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 26, - "offset": 25 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 26, - "offset": 25 - } - } - }, - { - "type": "code", - "lang": "js", - "meta": null, - "value": "", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 27 - }, - "end": { - "line": 4, - "column": 4, - "offset": 36 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "With white space:", - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 38 - }, - "end": { - "line": 6, - "column": 18, - "offset": 55 - } - } - } - ], - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 38 - }, - "end": { - "line": 6, - "column": 18, - "offset": 55 - } - } - }, - { - "type": "code", - "lang": "bash", - "meta": null, - "value": "", - "position": { - "start": { - "line": 8, - "column": 1, - "offset": 57 - }, - "end": { - "line": 9, - "column": 4, - "offset": 69 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "With very long fences:", - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 71 - }, - "end": { - "line": 11, - "column": 23, - "offset": 93 - } - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 71 - }, - "end": { - "line": 11, - "column": 23, - "offset": 93 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "", - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 95 - }, - "end": { - "line": 14, - "column": 7, - "offset": 108 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "With nothing:", - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 110 - }, - "end": { - "line": 16, - "column": 14, - "offset": 123 - } - } - } - ], - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 110 - }, - "end": { - "line": 16, - "column": 14, - "offset": 123 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "", - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 125 - }, - "end": { - "line": 19, - "column": 4, - "offset": 132 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 20, - "column": 1, - "offset": 133 - } - } -} diff --git a/test/fixtures/tree/fenced-code-info-string.json b/test/fixtures/tree/fenced-code-info-string.json deleted file mode 100644 index faf93a1a8..000000000 --- a/test/fixtures/tree/fenced-code-info-string.json +++ /dev/null @@ -1,374 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Normal with language tag:", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 26, - "offset": 25 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 26, - "offset": 25 - } - } - }, - { - "type": "code", - "lang": "js", - "meta": "this is an info string", - "value": "", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 27 - }, - "end": { - "line": 4, - "column": 4, - "offset": 59 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "With white space:", - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 61 - }, - "end": { - "line": 6, - "column": 18, - "offset": 78 - } - } - } - ], - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 61 - }, - "end": { - "line": 6, - "column": 18, - "offset": 78 - } - } - }, - { - "type": "code", - "lang": "bash", - "meta": "info", - "value": "", - "position": { - "start": { - "line": 8, - "column": 1, - "offset": 80 - }, - "end": { - "line": 9, - "column": 4, - "offset": 97 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "With curly braces:", - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 99 - }, - "end": { - "line": 11, - "column": 19, - "offset": 117 - } - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 99 - }, - "end": { - "line": 11, - "column": 19, - "offset": 117 - } - } - }, - { - "type": "code", - "lang": "lang{info}", - "meta": null, - "value": "", - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 119 - }, - "end": { - "line": 14, - "column": 7, - "offset": 142 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "With nothing:", - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 144 - }, - "end": { - "line": 16, - "column": 14, - "offset": 157 - } - } - } - ], - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 144 - }, - "end": { - "line": 16, - "column": 14, - "offset": 157 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "", - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 159 - }, - "end": { - "line": 19, - "column": 4, - "offset": 166 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "With several streaks of white space:", - "position": { - "start": { - "line": 21, - "column": 1, - "offset": 168 - }, - "end": { - "line": 21, - "column": 37, - "offset": 204 - } - } - } - ], - "position": { - "start": { - "line": 21, - "column": 1, - "offset": 168 - }, - "end": { - "line": 21, - "column": 37, - "offset": 204 - } - } - }, - { - "type": "code", - "lang": "bash", - "meta": "info string", - "value": "", - "position": { - "start": { - "line": 23, - "column": 1, - "offset": 206 - }, - "end": { - "line": 24, - "column": 4, - "offset": 230 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "With tabs as white space:", - "position": { - "start": { - "line": 26, - "column": 1, - "offset": 232 - }, - "end": { - "line": 26, - "column": 26, - "offset": 257 - } - } - } - ], - "position": { - "start": { - "line": 26, - "column": 1, - "offset": 232 - }, - "end": { - "line": 26, - "column": 26, - "offset": 257 - } - } - }, - { - "type": "code", - "lang": "bash", - "meta": "info", - "value": "", - "position": { - "start": { - "line": 28, - "column": 1, - "offset": 259 - }, - "end": { - "line": 29, - "column": 4, - "offset": 277 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "With spaces as white space:", - "position": { - "start": { - "line": 31, - "column": 1, - "offset": 279 - }, - "end": { - "line": 31, - "column": 28, - "offset": 306 - } - } - } - ], - "position": { - "start": { - "line": 31, - "column": 1, - "offset": 279 - }, - "end": { - "line": 31, - "column": 28, - "offset": 306 - } - } - }, - { - "type": "code", - "lang": "bash", - "meta": "info", - "value": "", - "position": { - "start": { - "line": 33, - "column": 1, - "offset": 308 - }, - "end": { - "line": 34, - "column": 4, - "offset": 326 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 35, - "column": 1, - "offset": 327 - } - } -} diff --git a/test/fixtures/tree/fenced-code-info-with-marker.json b/test/fixtures/tree/fenced-code-info-with-marker.json deleted file mode 100644 index 49021f8cc..000000000 --- a/test/fixtures/tree/fenced-code-info-with-marker.json +++ /dev/null @@ -1,368 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "If the info string comes after a backtick fence, it may not contain any backtick\ncharacters.\nThe reason for this restriction is that otherwise some inline code would be\nincorrectly interpreted as the beginning of a fenced code block.", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 4, - "column": 65, - "offset": 233 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 4, - "column": 65, - "offset": 233 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Tildes in info strings are fine:", - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 235 - }, - "end": { - "line": 6, - "column": 33, - "offset": 267 - } - } - } - ], - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 235 - }, - "end": { - "line": 6, - "column": 33, - "offset": 267 - } - } - }, - { - "type": "code", - "lang": "js", - "meta": "filename=~/.bashrc", - "value": "console.log(1)", - "position": { - "start": { - "line": 8, - "column": 1, - "offset": 269 - }, - "end": { - "line": 10, - "column": 4, - "offset": 312 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Tildes in info strings are fine after tilde fences:", - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 314 - }, - "end": { - "line": 12, - "column": 52, - "offset": 365 - } - } - } - ], - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 314 - }, - "end": { - "line": 12, - "column": 52, - "offset": 365 - } - } - }, - { - "type": "code", - "lang": "js", - "meta": "filename=~/.bashrc", - "value": "console.log(1)", - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 367 - }, - "end": { - "line": 16, - "column": 4, - "offset": 410 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Backticks in info strings are fine after tilde fences:", - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 412 - }, - "end": { - "line": 18, - "column": 55, - "offset": 466 - } - } - } - ], - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 412 - }, - "end": { - "line": 18, - "column": 55, - "offset": 466 - } - } - }, - { - "type": "code", - "lang": "js", - "meta": "title=`.bashrc`", - "value": "console.log(1)", - "position": { - "start": { - "line": 20, - "column": 1, - "offset": 468 - }, - "end": { - "line": 22, - "column": 4, - "offset": 508 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Backticks in info strings are ", - "position": { - "start": { - "line": 24, - "column": 1, - "offset": 510 - }, - "end": { - "line": 24, - "column": 31, - "offset": 540 - } - } - }, - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "not", - "position": { - "start": { - "line": 24, - "column": 33, - "offset": 542 - }, - "end": { - "line": 24, - "column": 36, - "offset": 545 - } - } - } - ], - "position": { - "start": { - "line": 24, - "column": 31, - "offset": 540 - }, - "end": { - "line": 24, - "column": 38, - "offset": 547 - } - } - }, - { - "type": "text", - "value": " fine after backtick fences:", - "position": { - "start": { - "line": 24, - "column": 38, - "offset": 547 - }, - "end": { - "line": 24, - "column": 66, - "offset": 575 - } - } - } - ], - "position": { - "start": { - "line": 24, - "column": 1, - "offset": 510 - }, - "end": { - "line": 24, - "column": 66, - "offset": 575 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "```js title=", - "position": { - "start": { - "line": 26, - "column": 1, - "offset": 577 - }, - "end": { - "line": 26, - "column": 13, - "offset": 589 - } - } - }, - { - "type": "inlineCode", - "value": ".bashrc", - "position": { - "start": { - "line": 26, - "column": 13, - "offset": 589 - }, - "end": { - "line": 26, - "column": 22, - "offset": 598 - } - } - }, - { - "type": "text", - "value": "\nconsole.log(1)", - "position": { - "start": { - "line": 26, - "column": 22, - "offset": 598 - }, - "end": { - "line": 27, - "column": 15, - "offset": 613 - } - } - } - ], - "position": { - "start": { - "line": 26, - "column": 1, - "offset": 577 - }, - "end": { - "line": 27, - "column": 15, - "offset": 613 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "", - "position": { - "start": { - "line": 28, - "column": 1, - "offset": 614 - }, - "end": { - "line": 29, - "column": 1, - "offset": 618 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 29, - "column": 1, - "offset": 618 - } - } -} diff --git a/test/fixtures/tree/fenced-code-initial-final-newlines.json b/test/fixtures/tree/fenced-code-initial-final-newlines.json deleted file mode 100644 index a606faa22..000000000 --- a/test/fixtures/tree/fenced-code-initial-final-newlines.json +++ /dev/null @@ -1,170 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Initial:", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 9, - "offset": 8 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 9, - "offset": 8 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "\n\n123", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 10 - }, - "end": { - "line": 7, - "column": 4, - "offset": 23 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Final:", - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 25 - }, - "end": { - "line": 9, - "column": 7, - "offset": 31 - } - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 25 - }, - "end": { - "line": 9, - "column": 7, - "offset": 31 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "123\n\n", - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 33 - }, - "end": { - "line": 15, - "column": 4, - "offset": 46 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Both:", - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 48 - }, - "end": { - "line": 17, - "column": 6, - "offset": 53 - } - } - } - ], - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 48 - }, - "end": { - "line": 17, - "column": 6, - "offset": 53 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "\n\n123\n\n", - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 55 - }, - "end": { - "line": 25, - "column": 4, - "offset": 70 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 26, - "column": 1, - "offset": 71 - } - } -} diff --git a/test/fixtures/tree/fenced-code-lang-unescape.json b/test/fixtures/tree/fenced-code-lang-unescape.json deleted file mode 100644 index 0a8eba1a7..000000000 --- a/test/fixtures/tree/fenced-code-lang-unescape.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "code", - "lang": "\\[awd", - "meta": null, - "value": "dwa", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 3, - "column": 4, - "offset": 18 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 4, - "column": 1, - "offset": 19 - } - } -} diff --git a/test/fixtures/tree/fenced-code-trailing-characters-2.nooutput.json b/test/fixtures/tree/fenced-code-trailing-characters-2.nooutput.json deleted file mode 100644 index d5e48a8d2..000000000 --- a/test/fixtures/tree/fenced-code-trailing-characters-2.nooutput.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "code", - "lang": null, - "meta": null, - "value": "``` aaa", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 3, - "column": 4, - "offset": 15 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 4, - "column": 1, - "offset": 16 - } - } -} diff --git a/test/fixtures/tree/fenced-code-trailing-characters.nooutput.json b/test/fixtures/tree/fenced-code-trailing-characters.nooutput.json deleted file mode 100644 index b9db8c349..000000000 --- a/test/fixtures/tree/fenced-code-trailing-characters.nooutput.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "code", - "lang": "js", - "meta": null, - "value": "foo();\n```bash", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 4, - "column": 4, - "offset": 24 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 5, - "column": 1, - "offset": 25 - } - } -} diff --git a/test/fixtures/tree/fenced-code-white-space-after-flag.json b/test/fixtures/tree/fenced-code-white-space-after-flag.json deleted file mode 100644 index 6daffa172..000000000 --- a/test/fixtures/tree/fenced-code-white-space-after-flag.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "code", - "lang": "js", - "meta": null, - "value": "foo();", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 3, - "column": 4, - "offset": 18 - } - } - }, - { - "type": "code", - "lang": "bash", - "meta": null, - "value": "echo \"hello, ${WORLD}\"", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 20 - }, - "end": { - "line": 7, - "column": 6, - "offset": 60 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 61 - } - } -} diff --git a/test/fixtures/tree/fenced-code.json b/test/fixtures/tree/fenced-code.json deleted file mode 100644 index 067d5b227..000000000 --- a/test/fixtures/tree/fenced-code.json +++ /dev/null @@ -1,89 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "code", - "lang": "js", - "meta": null, - "value": "var a = 'hello';\nconsole.log(a + ' world');", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 4, - "column": 4, - "offset": 54 - } - } - }, - { - "type": "code", - "lang": "bash", - "meta": null, - "value": "echo \"hello, ${WORLD}\"", - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 56 - }, - "end": { - "line": 8, - "column": 4, - "offset": 90 - } - } - }, - { - "type": "code", - "lang": "longfence", - "meta": null, - "value": "Q: What do you call a tall person who sells stolen goods?", - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 92 - }, - "end": { - "line": 12, - "column": 8, - "offset": 174 - } - } - }, - { - "type": "code", - "lang": "ManyTildes", - "meta": null, - "value": "A longfence!", - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 176 - }, - "end": { - "line": 16, - "column": 11, - "offset": 222 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 17, - "column": 1, - "offset": 223 - } - } -} diff --git a/test/fixtures/tree/gh-218.json b/test/fixtures/tree/gh-218.json deleted file mode 100644 index d9fc69aac..000000000 --- a/test/fixtures/tree/gh-218.json +++ /dev/null @@ -1,156 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "list", - "ordered": true, - "start": 1, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "first header\n==========", - "position": { - "start": { - "line": 1, - "column": 4, - "offset": 3 - }, - "end": { - "line": 2, - "column": 11, - "offset": 26 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 4, - "offset": 3 - }, - "end": { - "line": 2, - "column": 11, - "offset": 26 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 11, - "offset": 26 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "second header", - "position": { - "start": { - "line": 4, - "column": 4, - "offset": 31 - }, - "end": { - "line": 4, - "column": 17, - "offset": 44 - } - } - } - ], - "position": { - "start": { - "line": 4, - "column": 4, - "offset": 31 - }, - "end": { - "line": 4, - "column": 17, - "offset": 44 - } - } - } - ], - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 28 - }, - "end": { - "line": 4, - "column": 17, - "offset": 44 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 4, - "column": 17, - "offset": 44 - } - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 45 - }, - "end": { - "line": 5, - "column": 16, - "offset": 60 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 6, - "column": 1, - "offset": 61 - } - } -} diff --git a/test/fixtures/tree/gh-324.json b/test/fixtures/tree/gh-324.json deleted file mode 100644 index 18e6b015e..000000000 --- a/test/fixtures/tree/gh-324.json +++ /dev/null @@ -1,85 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[1]", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 4, - "offset": 3 - } - } - }, - { - "type": "link", - "title": null, - "url": "http://example.com", - "children": [ - { - "type": "text", - "value": "Test Text", - "position": { - "start": { - "line": 1, - "column": 5, - "offset": 4 - }, - "end": { - "line": 1, - "column": 14, - "offset": 13 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 4, - "offset": 3 - }, - "end": { - "line": 1, - "column": 35, - "offset": 34 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 35, - "offset": 34 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 1, - "offset": 35 - } - } -} diff --git a/test/fixtures/tree/gh-398.json b/test/fixtures/tree/gh-398.json deleted file mode 100644 index 1e59b909b..000000000 --- a/test/fixtures/tree/gh-398.json +++ /dev/null @@ -1,133 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "foo ", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 6, - "offset": 5 - } - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "bar", - "position": { - "start": { - "line": 1, - "column": 9, - "offset": 8 - }, - "end": { - "line": 1, - "column": 12, - "offset": 11 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 7, - "offset": 6 - }, - "end": { - "line": 1, - "column": 14, - "offset": 13 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 6, - "offset": 5 - }, - "end": { - "line": 1, - "column": 15, - "offset": 14 - } - } - }, - { - "type": "text", - "value": " baz", - "position": { - "start": { - "line": 1, - "column": 15, - "offset": 14 - }, - "end": { - "line": 1, - "column": 19, - "offset": 18 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 20, - "offset": 19 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 20, - "offset": 19 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 1, - "offset": 20 - } - } -} diff --git a/test/fixtures/tree/gh-402.json b/test/fixtures/tree/gh-402.json deleted file mode 100644 index 04a2c8001..000000000 --- a/test/fixtures/tree/gh-402.json +++ /dev/null @@ -1,107 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "One\nTwo", - "position": { - "start": { - "line": 1, - "column": 4, - "offset": 3 - }, - "end": { - "line": 2, - "column": 7, - "offset": 13 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 4, - "offset": 3 - }, - "end": { - "line": 2, - "column": 7, - "offset": 13 - } - } - }, - { - "type": "code", - "lang": "bash", - "meta": null, - "value": "npm install --save sqlite3", - "position": { - "start": { - "line": 4, - "column": 2, - "offset": 16 - }, - "end": { - "line": 6, - "column": 5, - "offset": 57 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 6, - "column": 5, - "offset": 57 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 6, - "column": 5, - "offset": 57 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 7, - "column": 1, - "offset": 58 - } - } -} diff --git a/test/fixtures/tree/gh-407.json b/test/fixtures/tree/gh-407.json deleted file mode 100644 index b95a193ca..000000000 --- a/test/fixtures/tree/gh-407.json +++ /dev/null @@ -1,116 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo\n*", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 2, - "offset": 5 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 2, - "offset": 5 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo\n+", - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 7 - }, - "end": { - "line": 5, - "column": 2, - "offset": 12 - } - } - } - ], - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 7 - }, - "end": { - "line": 5, - "column": 2, - "offset": 12 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo\n1.", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 14 - }, - "end": { - "line": 8, - "column": 3, - "offset": 20 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 14 - }, - "end": { - "line": 8, - "column": 3, - "offset": 20 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 9, - "column": 1, - "offset": 21 - } - } -} diff --git a/test/fixtures/tree/gh-450.json b/test/fixtures/tree/gh-450.json deleted file mode 100644 index abd4d8b88..000000000 --- a/test/fixtures/tree/gh-450.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[ ] brackets with white space inside", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 37, - "offset": 36 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 37, - "offset": 36 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 1, - "offset": 37 - } - } -} diff --git a/test/fixtures/tree/gh-459.json b/test/fixtures/tree/gh-459.json deleted file mode 100644 index f77d67a10..000000000 --- a/test/fixtures/tree/gh-459.json +++ /dev/null @@ -1,155 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "link", - "title": null, - "url": "https://**", - "children": [ - { - "type": "text", - "value": "Link", - "position": { - "start": { - "line": 1, - "column": 4, - "offset": 3 - }, - "end": { - "line": 1, - "column": 8, - "offset": 7 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 21, - "offset": 20 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 23, - "offset": 22 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 23, - "offset": 22 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "link", - "title": null, - "url": "https://__", - "children": [ - { - "type": "text", - "value": "Link", - "position": { - "start": { - "line": 3, - "column": 4, - "offset": 27 - }, - "end": { - "line": 3, - "column": 8, - "offset": 31 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 26 - }, - "end": { - "line": 3, - "column": 21, - "offset": 44 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 24 - }, - "end": { - "line": 3, - "column": 23, - "offset": 46 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 24 - }, - "end": { - "line": 3, - "column": 23, - "offset": 46 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 4, - "column": 1, - "offset": 47 - } - } -} diff --git a/test/fixtures/tree/gh-493.json b/test/fixtures/tree/gh-493.json deleted file mode 100644 index aa1cb3199..000000000 --- a/test/fixtures/tree/gh-493.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "aa_bb ", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - } - } - }, - { - "type": "inlineCode", - "value": "aa_bb", - "position": { - "start": { - "line": 1, - "column": 7, - "offset": 6 - }, - "end": { - "line": 1, - "column": 14, - "offset": 13 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 14, - "offset": 13 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "aa_bb ", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 15 - }, - "end": { - "line": 3, - "column": 7, - "offset": 21 - } - } - }, - { - "type": "inlineCode", - "value": "aa_ bb", - "position": { - "start": { - "line": 3, - "column": 7, - "offset": 21 - }, - "end": { - "line": 3, - "column": 15, - "offset": 29 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 15 - }, - "end": { - "line": 3, - "column": 15, - "offset": 29 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "aa_bb ", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 31 - }, - "end": { - "line": 5, - "column": 7, - "offset": 37 - } - } - }, - { - "type": "inlineCode", - "value": "aa _bb", - "position": { - "start": { - "line": 5, - "column": 7, - "offset": 37 - }, - "end": { - "line": 5, - "column": 15, - "offset": 45 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 31 - }, - "end": { - "line": 5, - "column": 15, - "offset": 45 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "aa**bb ", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 47 - }, - "end": { - "line": 7, - "column": 8, - "offset": 54 - } - } - }, - { - "type": "inlineCode", - "value": "aa**bb", - "position": { - "start": { - "line": 7, - "column": 8, - "offset": 54 - }, - "end": { - "line": 7, - "column": 16, - "offset": 62 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 47 - }, - "end": { - "line": 7, - "column": 16, - "offset": 62 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 63 - } - } -} diff --git a/test/fixtures/tree/gh-494.json b/test/fixtures/tree/gh-494.json deleted file mode 100644 index 2da164fde..000000000 --- a/test/fixtures/tree/gh-494.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "inlineCode", - "value": " a", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 3, - "column": 2, - "offset": 6 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 3, - "column": 2, - "offset": 6 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 4, - "column": 1, - "offset": 7 - } - } -} diff --git a/test/fixtures/tree/gh-497.json b/test/fixtures/tree/gh-497.json deleted file mode 100644 index 2c07d1c80..000000000 --- a/test/fixtures/tree/gh-497.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[one]\n[two]\n[three]\n[four]\n[five]", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 5, - "column": 7, - "offset": 33 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 5, - "column": 7, - "offset": 33 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 6, - "column": 1, - "offset": 34 - } - } -} diff --git a/test/fixtures/tree/gh-504.json b/test/fixtures/tree/gh-504.json deleted file mode 100644 index c3af96457..000000000 --- a/test/fixtures/tree/gh-504.json +++ /dev/null @@ -1,100 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "emphasis", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "bold-italic", - "position": { - "start": { - "line": 1, - "column": 4, - "offset": 3 - }, - "end": { - "line": 1, - "column": 15, - "offset": 14 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 17, - "offset": 16 - } - } - }, - { - "type": "text", - "value": " italic", - "position": { - "start": { - "line": 1, - "column": 17, - "offset": 16 - }, - "end": { - "line": 1, - "column": 24, - "offset": 23 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 25, - "offset": 24 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 25, - "offset": 24 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 1, - "offset": 25 - } - } -} diff --git a/test/fixtures/tree/gh-517.json b/test/fixtures/tree/gh-517.json deleted file mode 100644 index a094f65e8..000000000 --- a/test/fixtures/tree/gh-517.json +++ /dev/null @@ -1,89 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "test", - "position": { - "start": { - "line": 1, - "column": 5, - "offset": 4 - }, - "end": { - "line": 1, - "column": 9, - "offset": 8 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 5, - "offset": 4 - }, - "end": { - "line": 1, - "column": 9, - "offset": 8 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 9, - "offset": 8 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 9, - "offset": 8 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 1, - "offset": 9 - } - } -} diff --git a/test/fixtures/tree/gh-521.output.json b/test/fixtures/tree/gh-521.output.json deleted file mode 100644 index 5cd46f60e..000000000 --- a/test/fixtures/tree/gh-521.output.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "1. test", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 9, - "offset": 8 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 9, - "offset": 8 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 1, - "offset": 9 - } - } -} diff --git a/test/fixtures/tree/gh-523.json b/test/fixtures/tree/gh-523.json deleted file mode 100644 index 1ed844e50..000000000 --- a/test/fixtures/tree/gh-523.json +++ /dev/null @@ -1,161 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Test", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Test\nTest", - "position": { - "start": { - "line": 2, - "column": 7, - "offset": 13 - }, - "end": { - "line": 3, - "column": 5, - "offset": 22 - } - } - } - ], - "position": { - "start": { - "line": 2, - "column": 7, - "offset": 13 - }, - "end": { - "line": 3, - "column": 5, - "offset": 22 - } - } - } - ], - "position": { - "start": { - "line": 2, - "column": 5, - "offset": 11 - }, - "end": { - "line": 3, - "column": 5, - "offset": 22 - } - } - } - ], - "position": { - "start": { - "line": 2, - "column": 5, - "offset": 11 - }, - "end": { - "line": 3, - "column": 5, - "offset": 22 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 3, - "column": 5, - "offset": 22 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 3, - "column": 5, - "offset": 22 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 4, - "column": 1, - "offset": 23 - } - } -} diff --git a/test/fixtures/tree/hard-wrapped-paragraphs-with-list-like-lines.json b/test/fixtures/tree/hard-wrapped-paragraphs-with-list-like-lines.json deleted file mode 100644 index d0b6ed3e4..000000000 --- a/test/fixtures/tree/hard-wrapped-paragraphs-with-list-like-lines.json +++ /dev/null @@ -1,501 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "In Markdown 1.0.0 and earlier. Version\n8. This line turns into a list item.\nBecause a hard-wrapped line in the\n123. middle of a paragraph looked like a\nlist item.", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 5, - "column": 11, - "offset": 162 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 5, - "column": 11, - "offset": 162 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Here's one with a bullet.", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 164 - }, - "end": { - "line": 7, - "column": 26, - "offset": 189 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 164 - }, - "end": { - "line": 7, - "column": 26, - "offset": 189 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "criminey.", - "position": { - "start": { - "line": 8, - "column": 3, - "offset": 192 - }, - "end": { - "line": 8, - "column": 12, - "offset": 201 - } - } - } - ], - "position": { - "start": { - "line": 8, - "column": 3, - "offset": 192 - }, - "end": { - "line": 8, - "column": 12, - "offset": 201 - } - } - } - ], - "position": { - "start": { - "line": 8, - "column": 1, - "offset": 190 - }, - "end": { - "line": 8, - "column": 12, - "offset": 201 - } - } - } - ], - "position": { - "start": { - "line": 8, - "column": 1, - "offset": 190 - }, - "end": { - "line": 8, - "column": 12, - "offset": 201 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Non-GFM does not create a list for either.\nGFM does not create a list for ", - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 203 - }, - "end": { - "line": 11, - "column": 32, - "offset": 277 - } - } - }, - { - "type": "inlineCode", - "value": "8.", - "position": { - "start": { - "line": 11, - "column": 32, - "offset": 277 - }, - "end": { - "line": 11, - "column": 36, - "offset": 281 - } - } - }, - { - "type": "text", - "value": ", but does for ", - "position": { - "start": { - "line": 11, - "column": 36, - "offset": 281 - }, - "end": { - "line": 11, - "column": 51, - "offset": 296 - } - } - }, - { - "type": "inlineCode", - "value": "*", - "position": { - "start": { - "line": 11, - "column": 51, - "offset": 296 - }, - "end": { - "line": 11, - "column": 54, - "offset": 299 - } - } - }, - { - "type": "text", - "value": ".\nCommonMark creates a list for both.\nAll versions create lists for the following.", - "position": { - "start": { - "line": 11, - "column": 54, - "offset": 299 - }, - "end": { - "line": 13, - "column": 45, - "offset": 381 - } - } - } - ], - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 203 - }, - "end": { - "line": 13, - "column": 45, - "offset": 381 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Here's one with a bullet.", - "position": { - "start": { - "line": 15, - "column": 3, - "offset": 385 - }, - "end": { - "line": 15, - "column": 28, - "offset": 410 - } - } - } - ], - "position": { - "start": { - "line": 15, - "column": 3, - "offset": 385 - }, - "end": { - "line": 15, - "column": 28, - "offset": 410 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "criminey.", - "position": { - "start": { - "line": 16, - "column": 5, - "offset": 415 - }, - "end": { - "line": 16, - "column": 14, - "offset": 424 - } - } - } - ], - "position": { - "start": { - "line": 16, - "column": 5, - "offset": 415 - }, - "end": { - "line": 16, - "column": 14, - "offset": 424 - } - } - } - ], - "position": { - "start": { - "line": 16, - "column": 3, - "offset": 413 - }, - "end": { - "line": 16, - "column": 14, - "offset": 424 - } - } - } - ], - "position": { - "start": { - "line": 16, - "column": 3, - "offset": 413 - }, - "end": { - "line": 16, - "column": 14, - "offset": 424 - } - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 383 - }, - "end": { - "line": 16, - "column": 14, - "offset": 424 - } - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 383 - }, - "end": { - "line": 16, - "column": 14, - "offset": 424 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "...and the following:", - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 426 - }, - "end": { - "line": 18, - "column": 22, - "offset": 447 - } - } - } - ], - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 426 - }, - "end": { - "line": 18, - "column": 22, - "offset": 447 - } - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "In Markdown 1.0.0 and earlier. Version\n8. This line turns into a list item.", - "position": { - "start": { - "line": 20, - "column": 4, - "offset": 452 - }, - "end": { - "line": 21, - "column": 40, - "offset": 530 - } - } - } - ], - "position": { - "start": { - "line": 20, - "column": 4, - "offset": 452 - }, - "end": { - "line": 21, - "column": 40, - "offset": 530 - } - } - } - ], - "position": { - "start": { - "line": 20, - "column": 1, - "offset": 449 - }, - "end": { - "line": 21, - "column": 40, - "offset": 530 - } - } - } - ], - "position": { - "start": { - "line": 20, - "column": 1, - "offset": 449 - }, - "end": { - "line": 21, - "column": 40, - "offset": 530 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 22, - "column": 1, - "offset": 531 - } - } -} diff --git a/test/fixtures/tree/heading-atx-closed-trailing-white-space.json b/test/fixtures/tree/heading-atx-closed-trailing-white-space.json deleted file mode 100644 index 926d355b1..000000000 --- a/test/fixtures/tree/heading-atx-closed-trailing-white-space.json +++ /dev/null @@ -1,85 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Foo", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 6, - "offset": 5 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 9, - "offset": 8 - } - } - }, - { - "type": "heading", - "depth": 2, - "children": [ - { - "type": "text", - "value": "Bar", - "position": { - "start": { - "line": 3, - "column": 4, - "offset": 13 - }, - "end": { - "line": 3, - "column": 7, - "offset": 16 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 10 - }, - "end": { - "line": 3, - "column": 11, - "offset": 20 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 4, - "column": 1, - "offset": 21 - } - } -} diff --git a/test/fixtures/tree/heading-atx-empty.json b/test/fixtures/tree/heading-atx-empty.json deleted file mode 100644 index 43f557b04..000000000 --- a/test/fixtures/tree/heading-atx-empty.json +++ /dev/null @@ -1,119 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "heading", - "depth": 1, - "children": [], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 4, - "offset": 3 - } - } - }, - { - "type": "heading", - "depth": 2, - "children": [], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 5 - }, - "end": { - "line": 3, - "column": 3, - "offset": 7 - } - } - }, - { - "type": "heading", - "depth": 3, - "children": [], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 9 - }, - "end": { - "line": 5, - "column": 8, - "offset": 16 - } - } - }, - { - "type": "heading", - "depth": 4, - "children": [], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 18 - }, - "end": { - "line": 7, - "column": 5, - "offset": 22 - } - } - }, - { - "type": "heading", - "depth": 5, - "children": [], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 24 - }, - "end": { - "line": 9, - "column": 12, - "offset": 35 - } - } - }, - { - "type": "heading", - "depth": 6, - "children": [], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 37 - }, - "end": { - "line": 11, - "column": 7, - "offset": 43 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 12, - "column": 1, - "offset": 44 - } - } -} diff --git a/test/fixtures/tree/heading-atx-no-space-before-trailing-number-sign.json b/test/fixtures/tree/heading-atx-no-space-before-trailing-number-sign.json deleted file mode 100644 index d833d6c78..000000000 --- a/test/fixtures/tree/heading-atx-no-space-before-trailing-number-sign.json +++ /dev/null @@ -1,85 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "awd#", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - } - } - }, - { - "type": "heading", - "depth": 2, - "children": [ - { - "type": "text", - "value": "dwa###", - "position": { - "start": { - "line": 2, - "column": 4, - "offset": 10 - }, - "end": { - "line": 2, - "column": 10, - "offset": 16 - } - } - } - ], - "position": { - "start": { - "line": 2, - "column": 1, - "offset": 7 - }, - "end": { - "line": 2, - "column": 10, - "offset": 16 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 3, - "column": 1, - "offset": 17 - } - } -} diff --git a/test/fixtures/tree/heading-in-blockquote.json b/test/fixtures/tree/heading-in-blockquote.json deleted file mode 100644 index 9709ab7a8..000000000 --- a/test/fixtures/tree/heading-in-blockquote.json +++ /dev/null @@ -1,216 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "blockquote", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "A blockquote\nwith some more text.", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 2, - "column": 21, - "offset": 35 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 2, - "column": 21, - "offset": 35 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 21, - "offset": 35 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "A normal paragraph.", - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 37 - }, - "end": { - "line": 4, - "column": 20, - "offset": 56 - } - } - } - ], - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 37 - }, - "end": { - "line": 4, - "column": 20, - "offset": 56 - } - } - }, - { - "type": "blockquote", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "A blockquote followed by a horizontal rule (in CommonMark).", - "position": { - "start": { - "line": 6, - "column": 3, - "offset": 60 - }, - "end": { - "line": 6, - "column": 62, - "offset": 119 - } - } - } - ], - "position": { - "start": { - "line": 6, - "column": 3, - "offset": 60 - }, - "end": { - "line": 6, - "column": 62, - "offset": 119 - } - } - } - ], - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 58 - }, - "end": { - "line": 6, - "column": 62, - "offset": 119 - } - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 120 - }, - "end": { - "line": 7, - "column": 4, - "offset": 123 - } - } - }, - { - "type": "blockquote", - "children": [ - { - "type": "heading", - "depth": 2, - "children": [ - { - "type": "text", - "value": "A heading in a blockquote", - "position": { - "start": { - "line": 9, - "column": 3, - "offset": 127 - }, - "end": { - "line": 9, - "column": 28, - "offset": 152 - } - } - } - ], - "position": { - "start": { - "line": 9, - "column": 3, - "offset": 127 - }, - "end": { - "line": 10, - "column": 6, - "offset": 158 - } - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 125 - }, - "end": { - "line": 10, - "column": 6, - "offset": 158 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 11, - "column": 1, - "offset": 159 - } - } -} diff --git a/test/fixtures/tree/heading-in-paragraph.json b/test/fixtures/tree/heading-in-paragraph.json deleted file mode 100644 index 836ff6450..000000000 --- a/test/fixtures/tree/heading-in-paragraph.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Hello\nWorld", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 6, - "offset": 11 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 3, - "column": 4, - "offset": 15 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 4, - "column": 1, - "offset": 16 - } - } -} diff --git a/test/fixtures/tree/heading-not-atx.json b/test/fixtures/tree/heading-not-atx.json deleted file mode 100644 index c9a7f6a2b..000000000 --- a/test/fixtures/tree/heading-not-atx.json +++ /dev/null @@ -1,285 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "#This is not a heading, per CommonMark: ", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 41, - "offset": 40 - } - } - }, - { - "type": "link", - "title": null, - "url": "http://spec.commonmark.org/0.17/#example-25", - "children": [ - { - "type": "text", - "value": "http://spec.commonmark.org/0.17/#example-25", - "position": { - "start": { - "line": 1, - "column": 42, - "offset": 41 - }, - "end": { - "line": 1, - "column": 85, - "offset": 84 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 41, - "offset": 40 - }, - "end": { - "line": 1, - "column": 86, - "offset": 85 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 86, - "offset": 85 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Kramdown (GitHub) neither supports unspaced ATX-headings.", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 87 - }, - "end": { - "line": 3, - "column": 58, - "offset": 144 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 87 - }, - "end": { - "line": 3, - "column": 58, - "offset": 144 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "######## h7?", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 146 - }, - "end": { - "line": 5, - "column": 13, - "offset": 158 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 146 - }, - "end": { - "line": 5, - "column": 13, - "offset": 158 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "######### h8?", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 160 - }, - "end": { - "line": 7, - "column": 14, - "offset": 173 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 160 - }, - "end": { - "line": 7, - "column": 14, - "offset": 173 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "########## h9?", - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 175 - }, - "end": { - "line": 9, - "column": 15, - "offset": 189 - } - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 175 - }, - "end": { - "line": 9, - "column": 15, - "offset": 189 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "More than six # characters is not a heading: ", - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 191 - }, - "end": { - "line": 11, - "column": 46, - "offset": 236 - } - } - }, - { - "type": "link", - "title": null, - "url": "http://spec.commonmark.org/0.26/#example-33", - "children": [ - { - "type": "text", - "value": "http://spec.commonmark.org/0.26/#example-33", - "position": { - "start": { - "line": 11, - "column": 47, - "offset": 237 - }, - "end": { - "line": 11, - "column": 90, - "offset": 280 - } - } - } - ], - "position": { - "start": { - "line": 11, - "column": 46, - "offset": 236 - }, - "end": { - "line": 11, - "column": 91, - "offset": 281 - } - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 191 - }, - "end": { - "line": 11, - "column": 91, - "offset": 281 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 12, - "column": 1, - "offset": 282 - } - } -} diff --git a/test/fixtures/tree/heading-setext-with-initial-spacing.json b/test/fixtures/tree/heading-setext-with-initial-spacing.json deleted file mode 100644 index 51b97149c..000000000 --- a/test/fixtures/tree/heading-setext-with-initial-spacing.json +++ /dev/null @@ -1,118 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Heading 1", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 12, - "offset": 11 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 2, - "column": 10, - "offset": 21 - } - } - }, - { - "type": "heading", - "depth": 2, - "children": [ - { - "type": "text", - "value": "Heading 2", - "position": { - "start": { - "line": 4, - "column": 4, - "offset": 26 - }, - "end": { - "line": 4, - "column": 13, - "offset": 35 - } - } - } - ], - "position": { - "start": { - "line": 4, - "column": 4, - "offset": 26 - }, - "end": { - "line": 5, - "column": 10, - "offset": 45 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Both these headings caused positional problems in on commit daa344c and before.", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 47 - }, - "end": { - "line": 7, - "column": 80, - "offset": 126 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 47 - }, - "end": { - "line": 7, - "column": 80, - "offset": 126 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 127 - } - } -} diff --git a/test/fixtures/tree/heading.output.close-atx.json b/test/fixtures/tree/heading.output.close-atx.json deleted file mode 100644 index 5707de08f..000000000 --- a/test/fixtures/tree/heading.output.close-atx.json +++ /dev/null @@ -1,221 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Heading 1", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 12, - "offset": 11 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 14, - "offset": 13 - } - } - }, - { - "type": "heading", - "depth": 2, - "children": [ - { - "type": "text", - "value": "Heading 2", - "position": { - "start": { - "line": 3, - "column": 4, - "offset": 18 - }, - "end": { - "line": 3, - "column": 13, - "offset": 27 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 15 - }, - "end": { - "line": 3, - "column": 16, - "offset": 30 - } - } - }, - { - "type": "heading", - "depth": 3, - "children": [ - { - "type": "text", - "value": "Heading 4", - "position": { - "start": { - "line": 5, - "column": 5, - "offset": 36 - }, - "end": { - "line": 5, - "column": 14, - "offset": 45 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 32 - }, - "end": { - "line": 5, - "column": 18, - "offset": 49 - } - } - }, - { - "type": "heading", - "depth": 4, - "children": [ - { - "type": "text", - "value": "Heading 4", - "position": { - "start": { - "line": 7, - "column": 6, - "offset": 56 - }, - "end": { - "line": 7, - "column": 15, - "offset": 65 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 51 - }, - "end": { - "line": 7, - "column": 20, - "offset": 70 - } - } - }, - { - "type": "heading", - "depth": 5, - "children": [ - { - "type": "text", - "value": "Heading 5", - "position": { - "start": { - "line": 9, - "column": 7, - "offset": 78 - }, - "end": { - "line": 9, - "column": 16, - "offset": 87 - } - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 72 - }, - "end": { - "line": 9, - "column": 22, - "offset": 93 - } - } - }, - { - "type": "heading", - "depth": 6, - "children": [ - { - "type": "text", - "value": "Heading 6", - "position": { - "start": { - "line": 11, - "column": 8, - "offset": 102 - }, - "end": { - "line": 11, - "column": 17, - "offset": 111 - } - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 95 - }, - "end": { - "line": 11, - "column": 24, - "offset": 118 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 12, - "column": 1, - "offset": 119 - } - } -} diff --git a/test/fixtures/tree/heading.output.setext.json b/test/fixtures/tree/heading.output.setext.json deleted file mode 100644 index 70d060513..000000000 --- a/test/fixtures/tree/heading.output.setext.json +++ /dev/null @@ -1,221 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Heading 1", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 10, - "offset": 9 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 10, - "offset": 19 - } - } - }, - { - "type": "heading", - "depth": 2, - "children": [ - { - "type": "text", - "value": "Heading 2", - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 21 - }, - "end": { - "line": 4, - "column": 10, - "offset": 30 - } - } - } - ], - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 21 - }, - "end": { - "line": 5, - "column": 10, - "offset": 40 - } - } - }, - { - "type": "heading", - "depth": 3, - "children": [ - { - "type": "text", - "value": "Heading 4", - "position": { - "start": { - "line": 7, - "column": 5, - "offset": 46 - }, - "end": { - "line": 7, - "column": 14, - "offset": 55 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 42 - }, - "end": { - "line": 7, - "column": 14, - "offset": 55 - } - } - }, - { - "type": "heading", - "depth": 4, - "children": [ - { - "type": "text", - "value": "Heading 4", - "position": { - "start": { - "line": 9, - "column": 6, - "offset": 62 - }, - "end": { - "line": 9, - "column": 15, - "offset": 71 - } - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 57 - }, - "end": { - "line": 9, - "column": 15, - "offset": 71 - } - } - }, - { - "type": "heading", - "depth": 5, - "children": [ - { - "type": "text", - "value": "Heading 5", - "position": { - "start": { - "line": 11, - "column": 7, - "offset": 79 - }, - "end": { - "line": 11, - "column": 16, - "offset": 88 - } - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 73 - }, - "end": { - "line": 11, - "column": 16, - "offset": 88 - } - } - }, - { - "type": "heading", - "depth": 6, - "children": [ - { - "type": "text", - "value": "Heading 6", - "position": { - "start": { - "line": 13, - "column": 8, - "offset": 97 - }, - "end": { - "line": 13, - "column": 17, - "offset": 106 - } - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 90 - }, - "end": { - "line": 13, - "column": 17, - "offset": 106 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 14, - "column": 1, - "offset": 107 - } - } -} diff --git a/test/fixtures/tree/horizontal-rules-adjacent.json b/test/fixtures/tree/horizontal-rules-adjacent.json deleted file mode 100644 index 3a0d4ab24..000000000 --- a/test/fixtures/tree/horizontal-rules-adjacent.json +++ /dev/null @@ -1,240 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "thematicBreak", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 4, - "offset": 3 - } - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 2, - "column": 1, - "offset": 4 - }, - "end": { - "line": 2, - "column": 4, - "offset": 7 - } - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 8 - }, - "end": { - "line": 3, - "column": 4, - "offset": 11 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "The three asterisks are not a Setext header.", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 13 - }, - "end": { - "line": 5, - "column": 45, - "offset": 57 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 13 - }, - "end": { - "line": 5, - "column": 45, - "offset": 57 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This is a paragraph.", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 59 - }, - "end": { - "line": 7, - "column": 21, - "offset": 79 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 59 - }, - "end": { - "line": 7, - "column": 21, - "offset": 79 - } - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 8, - "column": 1, - "offset": 80 - }, - "end": { - "line": 8, - "column": 4, - "offset": 83 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This is another paragraph.", - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 85 - }, - "end": { - "line": 10, - "column": 27, - "offset": 111 - } - } - } - ], - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 85 - }, - "end": { - "line": 10, - "column": 27, - "offset": 111 - } - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 112 - }, - "end": { - "line": 11, - "column": 4, - "offset": 115 - } - } - }, - { - "type": "heading", - "depth": 2, - "children": [ - { - "type": "text", - "value": "But this is a secondary heading.", - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 117 - }, - "end": { - "line": 13, - "column": 33, - "offset": 149 - } - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 117 - }, - "end": { - "line": 14, - "column": 4, - "offset": 153 - } - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 155 - }, - "end": { - "line": 16, - "column": 4, - "offset": 158 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 17, - "column": 1, - "offset": 159 - } - } -} diff --git a/test/fixtures/tree/horizontal-rules.json b/test/fixtures/tree/horizontal-rules.json deleted file mode 100644 index 78a02aee3..000000000 --- a/test/fixtures/tree/horizontal-rules.json +++ /dev/null @@ -1,584 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Dashes:", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 8, - "offset": 7 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 8, - "offset": 7 - } - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 9 - }, - "end": { - "line": 3, - "column": 4, - "offset": 12 - } - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 5, - "column": 2, - "offset": 15 - }, - "end": { - "line": 5, - "column": 5, - "offset": 18 - } - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 7, - "column": 3, - "offset": 23 - }, - "end": { - "line": 7, - "column": 6, - "offset": 26 - } - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 9, - "column": 4, - "offset": 31 - }, - "end": { - "line": 9, - "column": 7, - "offset": 34 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "---", - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 36 - }, - "end": { - "line": 11, - "column": 5, - "offset": 40 - } - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 42 - }, - "end": { - "line": 13, - "column": 6, - "offset": 47 - } - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 15, - "column": 2, - "offset": 50 - }, - "end": { - "line": 15, - "column": 7, - "offset": 55 - } - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 17, - "column": 3, - "offset": 60 - }, - "end": { - "line": 17, - "column": 8, - "offset": 65 - } - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 19, - "column": 4, - "offset": 70 - }, - "end": { - "line": 19, - "column": 9, - "offset": 75 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "- - -", - "position": { - "start": { - "line": 21, - "column": 1, - "offset": 77 - }, - "end": { - "line": 21, - "column": 7, - "offset": 83 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Asterisks:", - "position": { - "start": { - "line": 24, - "column": 1, - "offset": 86 - }, - "end": { - "line": 24, - "column": 11, - "offset": 96 - } - } - } - ], - "position": { - "start": { - "line": 24, - "column": 1, - "offset": 86 - }, - "end": { - "line": 24, - "column": 11, - "offset": 96 - } - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 26, - "column": 1, - "offset": 98 - }, - "end": { - "line": 26, - "column": 4, - "offset": 101 - } - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 28, - "column": 2, - "offset": 104 - }, - "end": { - "line": 28, - "column": 5, - "offset": 107 - } - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 30, - "column": 3, - "offset": 112 - }, - "end": { - "line": 30, - "column": 6, - "offset": 115 - } - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 32, - "column": 4, - "offset": 120 - }, - "end": { - "line": 32, - "column": 7, - "offset": 123 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "***", - "position": { - "start": { - "line": 34, - "column": 1, - "offset": 125 - }, - "end": { - "line": 34, - "column": 5, - "offset": 129 - } - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 36, - "column": 1, - "offset": 131 - }, - "end": { - "line": 36, - "column": 6, - "offset": 136 - } - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 38, - "column": 2, - "offset": 139 - }, - "end": { - "line": 38, - "column": 7, - "offset": 144 - } - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 40, - "column": 3, - "offset": 149 - }, - "end": { - "line": 40, - "column": 8, - "offset": 154 - } - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 42, - "column": 4, - "offset": 159 - }, - "end": { - "line": 42, - "column": 9, - "offset": 164 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "* * *", - "position": { - "start": { - "line": 44, - "column": 1, - "offset": 166 - }, - "end": { - "line": 44, - "column": 7, - "offset": 172 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Underscores:", - "position": { - "start": { - "line": 47, - "column": 1, - "offset": 175 - }, - "end": { - "line": 47, - "column": 13, - "offset": 187 - } - } - } - ], - "position": { - "start": { - "line": 47, - "column": 1, - "offset": 175 - }, - "end": { - "line": 47, - "column": 13, - "offset": 187 - } - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 49, - "column": 1, - "offset": 189 - }, - "end": { - "line": 49, - "column": 4, - "offset": 192 - } - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 51, - "column": 2, - "offset": 195 - }, - "end": { - "line": 51, - "column": 5, - "offset": 198 - } - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 53, - "column": 3, - "offset": 203 - }, - "end": { - "line": 53, - "column": 6, - "offset": 206 - } - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 55, - "column": 4, - "offset": 211 - }, - "end": { - "line": 55, - "column": 7, - "offset": 214 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "___", - "position": { - "start": { - "line": 57, - "column": 1, - "offset": 216 - }, - "end": { - "line": 57, - "column": 8, - "offset": 223 - } - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 59, - "column": 1, - "offset": 225 - }, - "end": { - "line": 59, - "column": 6, - "offset": 230 - } - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 61, - "column": 2, - "offset": 233 - }, - "end": { - "line": 61, - "column": 7, - "offset": 238 - } - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 63, - "column": 3, - "offset": 243 - }, - "end": { - "line": 63, - "column": 8, - "offset": 248 - } - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 65, - "column": 4, - "offset": 253 - }, - "end": { - "line": 65, - "column": 9, - "offset": 258 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "_ _ _", - "position": { - "start": { - "line": 67, - "column": 1, - "offset": 260 - }, - "end": { - "line": 67, - "column": 10, - "offset": 269 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 68, - "column": 1, - "offset": 270 - } - } -} diff --git a/test/fixtures/tree/hr-list-break.nooutput.json b/test/fixtures/tree/hr-list-break.nooutput.json deleted file mode 100644 index b304bb164..000000000 --- a/test/fixtures/tree/hr-list-break.nooutput.json +++ /dev/null @@ -1,838 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "hello world", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 14, - "offset": 13 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 14, - "offset": 13 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 14, - "offset": 13 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "how are", - "position": { - "start": { - "line": 2, - "column": 3, - "offset": 16 - }, - "end": { - "line": 2, - "column": 10, - "offset": 23 - } - } - } - ], - "position": { - "start": { - "line": 2, - "column": 3, - "offset": 16 - }, - "end": { - "line": 2, - "column": 10, - "offset": 23 - } - } - } - ], - "position": { - "start": { - "line": 2, - "column": 1, - "offset": 14 - }, - "end": { - "line": 2, - "column": 10, - "offset": 23 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 10, - "offset": 23 - } - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 24 - }, - "end": { - "line": 3, - "column": 6, - "offset": 29 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "you today?", - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 30 - }, - "end": { - "line": 4, - "column": 11, - "offset": 40 - } - } - } - ], - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 30 - }, - "end": { - "line": 4, - "column": 11, - "offset": 40 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "The above asterisks do split the list, but the below ones do not.", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 43 - }, - "end": { - "line": 7, - "column": 66, - "offset": 108 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 43 - }, - "end": { - "line": 7, - "column": 66, - "offset": 108 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "hello world", - "position": { - "start": { - "line": 10, - "column": 3, - "offset": 113 - }, - "end": { - "line": 10, - "column": 14, - "offset": 124 - } - } - } - ], - "position": { - "start": { - "line": 10, - "column": 3, - "offset": 113 - }, - "end": { - "line": 10, - "column": 14, - "offset": 124 - } - } - } - ], - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 111 - }, - "end": { - "line": 10, - "column": 14, - "offset": 124 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "how are", - "position": { - "start": { - "line": 11, - "column": 3, - "offset": 127 - }, - "end": { - "line": 11, - "column": 10, - "offset": 134 - } - } - } - ], - "position": { - "start": { - "line": 11, - "column": 3, - "offset": 127 - }, - "end": { - "line": 11, - "column": 10, - "offset": 134 - } - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 125 - }, - "end": { - "line": 11, - "column": 10, - "offset": 134 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "thematicBreak", - "position": { - "start": { - "line": 12, - "column": 3, - "offset": 137 - }, - "end": { - "line": 12, - "column": 8, - "offset": 142 - } - } - } - ], - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 135 - }, - "end": { - "line": 12, - "column": 8, - "offset": 142 - } - } - } - ], - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 111 - }, - "end": { - "line": 12, - "column": 8, - "offset": 142 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "you today?", - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 143 - }, - "end": { - "line": 13, - "column": 11, - "offset": 153 - } - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 143 - }, - "end": { - "line": 13, - "column": 11, - "offset": 153 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Neither do these", - "position": { - "start": { - "line": 16, - "column": 3, - "offset": 158 - }, - "end": { - "line": 16, - "column": 19, - "offset": 174 - } - } - } - ], - "position": { - "start": { - "line": 16, - "column": 3, - "offset": 158 - }, - "end": { - "line": 16, - "column": 19, - "offset": 174 - } - } - } - ], - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 156 - }, - "end": { - "line": 16, - "column": 19, - "offset": 174 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "how are", - "position": { - "start": { - "line": 17, - "column": 3, - "offset": 177 - }, - "end": { - "line": 17, - "column": 10, - "offset": 184 - } - } - } - ], - "position": { - "start": { - "line": 17, - "column": 3, - "offset": 177 - }, - "end": { - "line": 17, - "column": 10, - "offset": 184 - } - } - } - ], - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 175 - }, - "end": { - "line": 17, - "column": 10, - "offset": 184 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [], - "position": { - "start": { - "line": 18, - "column": 5, - "offset": 189 - }, - "end": { - "line": 18, - "column": 6, - "offset": 190 - } - } - } - ], - "position": { - "start": { - "line": 18, - "column": 5, - "offset": 189 - }, - "end": { - "line": 18, - "column": 6, - "offset": 190 - } - } - } - ], - "position": { - "start": { - "line": 18, - "column": 3, - "offset": 187 - }, - "end": { - "line": 18, - "column": 6, - "offset": 190 - } - } - } - ], - "position": { - "start": { - "line": 18, - "column": 3, - "offset": 187 - }, - "end": { - "line": 18, - "column": 6, - "offset": 190 - } - } - } - ], - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 185 - }, - "end": { - "line": 18, - "column": 6, - "offset": 190 - } - } - } - ], - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 156 - }, - "end": { - "line": 18, - "column": 6, - "offset": 190 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "you today?", - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 191 - }, - "end": { - "line": 19, - "column": 11, - "offset": 201 - } - } - } - ], - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 191 - }, - "end": { - "line": 19, - "column": 11, - "offset": 201 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "But these do", - "position": { - "start": { - "line": 22, - "column": 3, - "offset": 206 - }, - "end": { - "line": 22, - "column": 15, - "offset": 218 - } - } - } - ], - "position": { - "start": { - "line": 22, - "column": 3, - "offset": 206 - }, - "end": { - "line": 22, - "column": 15, - "offset": 218 - } - } - } - ], - "position": { - "start": { - "line": 22, - "column": 1, - "offset": 204 - }, - "end": { - "line": 22, - "column": 15, - "offset": 218 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "how are", - "position": { - "start": { - "line": 23, - "column": 3, - "offset": 221 - }, - "end": { - "line": 23, - "column": 10, - "offset": 228 - } - } - } - ], - "position": { - "start": { - "line": 23, - "column": 3, - "offset": 221 - }, - "end": { - "line": 23, - "column": 10, - "offset": 228 - } - } - } - ], - "position": { - "start": { - "line": 23, - "column": 1, - "offset": 219 - }, - "end": { - "line": 23, - "column": 10, - "offset": 228 - } - } - } - ], - "position": { - "start": { - "line": 22, - "column": 1, - "offset": 204 - }, - "end": { - "line": 23, - "column": 10, - "offset": 228 - } - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 24, - "column": 1, - "offset": 229 - }, - "end": { - "line": 24, - "column": 8, - "offset": 236 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "you today?", - "position": { - "start": { - "line": 25, - "column": 1, - "offset": 237 - }, - "end": { - "line": 25, - "column": 11, - "offset": 247 - } - } - } - ], - "position": { - "start": { - "line": 25, - "column": 1, - "offset": 237 - }, - "end": { - "line": 25, - "column": 11, - "offset": 247 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 26, - "column": 1, - "offset": 248 - } - } -} diff --git a/test/fixtures/tree/hr.output.norule-spaces.json b/test/fixtures/tree/hr.output.norule-spaces.json deleted file mode 100644 index 3864812f2..000000000 --- a/test/fixtures/tree/hr.output.norule-spaces.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "thematicBreak", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 4, - "offset": 3 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 1, - "offset": 4 - } - } -} diff --git a/test/fixtures/tree/hr.output.rule-repetition=5.json b/test/fixtures/tree/hr.output.rule-repetition=5.json deleted file mode 100644 index 44ddd73d5..000000000 --- a/test/fixtures/tree/hr.output.rule-repetition=5.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "thematicBreak", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 10, - "offset": 9 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 1, - "offset": 10 - } - } -} diff --git a/test/fixtures/tree/hr.output.rule=-.json b/test/fixtures/tree/hr.output.rule=-.json deleted file mode 100644 index 3cebe300f..000000000 --- a/test/fixtures/tree/hr.output.rule=-.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "thematicBreak", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 6, - "offset": 5 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 1, - "offset": 6 - } - } -} diff --git a/test/fixtures/tree/hr.output.rule=-asterisk-.json b/test/fixtures/tree/hr.output.rule=-asterisk-.json deleted file mode 100644 index 3cebe300f..000000000 --- a/test/fixtures/tree/hr.output.rule=-asterisk-.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "thematicBreak", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 6, - "offset": 5 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 1, - "offset": 6 - } - } -} diff --git a/test/fixtures/tree/hr.output.rule=_.json b/test/fixtures/tree/hr.output.rule=_.json deleted file mode 100644 index 3cebe300f..000000000 --- a/test/fixtures/tree/hr.output.rule=_.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "thematicBreak", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 6, - "offset": 5 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 1, - "offset": 6 - } - } -} diff --git a/test/fixtures/tree/html-advanced.json b/test/fixtures/tree/html-advanced.json deleted file mode 100644 index ce5689348..000000000 --- a/test/fixtures/tree/html-advanced.json +++ /dev/null @@ -1,115 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Simple block on one line:", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 26, - "offset": 25 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 26, - "offset": 25 - } - } - }, - { - "type": "html", - "value": "
foo
", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 27 - }, - "end": { - "line": 3, - "column": 15, - "offset": 41 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And nested without indentation:", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 43 - }, - "end": { - "line": 5, - "column": 32, - "offset": 74 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 43 - }, - "end": { - "line": 5, - "column": 32, - "offset": 74 - } - } - }, - { - "type": "html", - "value": "
\n
\n
\nfoo\n
\n
\"/>\n
\n
bar
\n
", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 76 - }, - "end": { - "line": 15, - "column": 7, - "offset": 150 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 16, - "column": 1, - "offset": 151 - } - } -} diff --git a/test/fixtures/tree/html-attributes.json b/test/fixtures/tree/html-attributes.json deleted file mode 100644 index 5fb9a8f05..000000000 --- a/test/fixtures/tree/html-attributes.json +++ /dev/null @@ -1,358 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Block-level", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 14, - "offset": 13 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 14, - "offset": 13 - } - } - }, - { - "type": "html", - "value": "
", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 15 - }, - "end": { - "line": 3, - "column": 58, - "offset": 72 - } - } - }, - { - "type": "html", - "value": "
", - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 75 - }, - "end": { - "line": 6, - "column": 14, - "offset": 88 - } - } - }, - { - "type": "html", - "value": "
", - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 91 - }, - "end": { - "line": 9, - "column": 10, - "offset": 100 - } - } - }, - { - "type": "html", - "value": "
", - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 103 - }, - "end": { - "line": 12, - "column": 29, - "offset": 131 - } - } - }, - { - "type": "html", - "value": "
", - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 134 - }, - "end": { - "line": 15, - "column": 22, - "offset": 155 - } - } - }, - { - "type": "html", - "value": "
", - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 158 - }, - "end": { - "line": 18, - "column": 25, - "offset": 182 - } - } - }, - { - "type": "html", - "value": "
", - "position": { - "start": { - "line": 21, - "column": 1, - "offset": 185 - }, - "end": { - "line": 21, - "column": 26, - "offset": 210 - } - } - }, - { - "type": "html", - "value": "
", - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 237 - }, - "end": { - "line": 29, - "column": 55, - "offset": 291 - } - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 32, - "column": 1, - "offset": 294 - }, - "end": { - "line": 32, - "column": 11, - "offset": 304 - } - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 35, - "column": 1, - "offset": 307 - }, - "end": { - "line": 35, - "column": 7, - "offset": 313 - } - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 38, - "column": 1, - "offset": 316 - }, - "end": { - "line": 38, - "column": 26, - "offset": 341 - } - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 41, - "column": 1, - "offset": 344 - }, - "end": { - "line": 41, - "column": 19, - "offset": 362 - } - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 44, - "column": 1, - "offset": 365 - }, - "end": { - "line": 44, - "column": 22, - "offset": 386 - } - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 47, - "column": 1, - "offset": 389 - }, - "end": { - "line": 47, - "column": 23, - "offset": 411 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 3, - "column": 4, - "offset": 25 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo ", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 27 - }, - "end": { - "line": 5, - "column": 5, - "offset": 31 - } - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 5, - "column": 5, - "offset": 31 - }, - "end": { - "line": 5, - "column": 20, - "offset": 46 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 27 - }, - "end": { - "line": 5, - "column": 20, - "offset": 46 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 6, - "column": 1, - "offset": 47 - } - } -} diff --git a/test/fixtures/tree/html-comments.json b/test/fixtures/tree/html-comments.json deleted file mode 100644 index 621f18c9a..000000000 --- a/test/fixtures/tree/html-comments.json +++ /dev/null @@ -1,313 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Paragraph one.", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 15, - "offset": 14 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 15, - "offset": 14 - } - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 16 - }, - "end": { - "line": 3, - "column": 34, - "offset": 49 - } - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 51 - }, - "end": { - "line": 7, - "column": 4, - "offset": 85 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "What follows is not an HTML comment because it contains\ntwo consecutive dashes:\n", - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 87 - }, - "end": { - "line": 11, - "column": 1, - "offset": 167 - } - } - }, - { - "type": "link", - "title": null, - "url": "https://html.spec.whatwg.org/multipage/syntax.html#comments", - "children": [ - { - "type": "text", - "value": "https://html.spec.whatwg.org/multipage/syntax.html#comments", - "position": { - "start": { - "line": 11, - "column": 2, - "offset": 168 - }, - "end": { - "line": 11, - "column": 61, - "offset": 227 - } - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 167 - }, - "end": { - "line": 11, - "column": 62, - "offset": 228 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 11, - "column": 62, - "offset": 228 - }, - "end": { - "line": 11, - "column": 63, - "offset": 229 - } - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 87 - }, - "end": { - "line": 11, - "column": 63, - "offset": 229 - } - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 231 - }, - "end": { - "line": 13, - "column": 51, - "offset": 281 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "But this is fine (in commonmark):", - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 283 - }, - "end": { - "line": 15, - "column": 34, - "offset": 316 - } - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 283 - }, - "end": { - "line": 15, - "column": 34, - "offset": 316 - } - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 318 - }, - "end": { - "line": 17, - "column": 41, - "offset": 358 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And, this is wrong (in commonmark):", - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 360 - }, - "end": { - "line": 19, - "column": 36, - "offset": 395 - } - } - } - ], - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 360 - }, - "end": { - "line": 19, - "column": 36, - "offset": 395 - } - } - }, - { - "type": "html", - "value": "-->", - "position": { - "start": { - "line": 21, - "column": 1, - "offset": 397 - }, - "end": { - "line": 21, - "column": 9, - "offset": 405 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "The end.", - "position": { - "start": { - "line": 23, - "column": 1, - "offset": 407 - }, - "end": { - "line": 23, - "column": 9, - "offset": 415 - } - } - } - ], - "position": { - "start": { - "line": 23, - "column": 1, - "offset": 407 - }, - "end": { - "line": 23, - "column": 9, - "offset": 415 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 24, - "column": 1, - "offset": 416 - } - } -} diff --git a/test/fixtures/tree/html-declaration.json b/test/fixtures/tree/html-declaration.json deleted file mode 100644 index 4c18fb593..000000000 --- a/test/fixtures/tree/html-declaration.json +++ /dev/null @@ -1,130 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 16, - "offset": 15 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo ", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 17 - }, - "end": { - "line": 3, - "column": 5, - "offset": 21 - } - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 3, - "column": 5, - "offset": 21 - }, - "end": { - "line": 3, - "column": 18, - "offset": 34 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 17 - }, - "end": { - "line": 3, - "column": 18, - "offset": 34 - } - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 36 - }, - "end": { - "line": 5, - "column": 16, - "offset": 51 - } - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 53 - }, - "end": { - "line": 7, - "column": 10, - "offset": 62 - } - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 64 - }, - "end": { - "line": 9, - "column": 11, - "offset": 74 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 10, - "column": 1, - "offset": 75 - } - } -} diff --git a/test/fixtures/tree/html-indented.json b/test/fixtures/tree/html-indented.json deleted file mode 100644 index ead67e743..000000000 --- a/test/fixtures/tree/html-indented.json +++ /dev/null @@ -1,130 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "html", - "value": "
\n *hello*\n
", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 3, - "column": 9, - "offset": 25 - } - } - }, - { - "type": "html", - "value": " \n *hello*\n ", - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 28 - }, - "end": { - "line": 8, - "column": 10, - "offset": 55 - } - } - }, - { - "type": "html", - "value": " ", - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 58 - }, - "end": { - "line": 11, - "column": 18, - "offset": 75 - } - } - }, - { - "type": "html", - "value": " ", - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 78 - }, - "end": { - "line": 14, - "column": 16, - "offset": 93 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "alpha ", - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 96 - }, - "end": { - "line": 17, - "column": 7, - "offset": 102 - } - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 17, - "column": 7, - "offset": 102 - }, - "end": { - "line": 17, - "column": 19, - "offset": 114 - } - } - } - ], - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 96 - }, - "end": { - "line": 17, - "column": 19, - "offset": 114 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 18, - "column": 1, - "offset": 115 - } - } -} diff --git a/test/fixtures/tree/html-processing-instruction.json b/test/fixtures/tree/html-processing-instruction.json deleted file mode 100644 index 2a687c9c9..000000000 --- a/test/fixtures/tree/html-processing-instruction.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "html", - "value": "';\n?>", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 3, - "column": 3, - "offset": 20 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 4, - "column": 1, - "offset": 21 - } - } -} diff --git a/test/fixtures/tree/html-simple.json b/test/fixtures/tree/html-simple.json deleted file mode 100644 index 9b2f7638c..000000000 --- a/test/fixtures/tree/html-simple.json +++ /dev/null @@ -1,643 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Here's a simple block:", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 23, - "offset": 22 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 23, - "offset": 22 - } - } - }, - { - "type": "html", - "value": "
\n\tfoo\n
", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 24 - }, - "end": { - "line": 5, - "column": 7, - "offset": 41 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This should be a code block, though:", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 43 - }, - "end": { - "line": 7, - "column": 37, - "offset": 79 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 43 - }, - "end": { - "line": 7, - "column": 37, - "offset": 79 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "
\n\tfoo\n
", - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 81 - }, - "end": { - "line": 11, - "column": 8, - "offset": 101 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "As should this:", - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 103 - }, - "end": { - "line": 13, - "column": 16, - "offset": 118 - } - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 103 - }, - "end": { - "line": 13, - "column": 16, - "offset": 118 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "
foo
", - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 120 - }, - "end": { - "line": 15, - "column": 16, - "offset": 135 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Now, nested:", - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 137 - }, - "end": { - "line": 17, - "column": 13, - "offset": 149 - } - } - } - ], - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 137 - }, - "end": { - "line": 17, - "column": 13, - "offset": 149 - } - } - }, - { - "type": "html", - "value": "
\n\t
\n\t\t
\n\t\t\tfoo\n\t\t
\n\t
\n
", - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 151 - }, - "end": { - "line": 25, - "column": 7, - "offset": 202 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This should just be an HTML comment:", - "position": { - "start": { - "line": 27, - "column": 1, - "offset": 204 - }, - "end": { - "line": 27, - "column": 37, - "offset": 240 - } - } - } - ], - "position": { - "start": { - "line": 27, - "column": 1, - "offset": 204 - }, - "end": { - "line": 27, - "column": 37, - "offset": 240 - } - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 242 - }, - "end": { - "line": 29, - "column": 17, - "offset": 258 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Multiline:", - "position": { - "start": { - "line": 31, - "column": 1, - "offset": 260 - }, - "end": { - "line": 31, - "column": 11, - "offset": 270 - } - } - } - ], - "position": { - "start": { - "line": 31, - "column": 1, - "offset": 260 - }, - "end": { - "line": 31, - "column": 11, - "offset": 270 - } - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 33, - "column": 1, - "offset": 272 - }, - "end": { - "line": 36, - "column": 4, - "offset": 290 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Code block:", - "position": { - "start": { - "line": 38, - "column": 1, - "offset": 292 - }, - "end": { - "line": 38, - "column": 12, - "offset": 303 - } - } - } - ], - "position": { - "start": { - "line": 38, - "column": 1, - "offset": 292 - }, - "end": { - "line": 38, - "column": 12, - "offset": 303 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "", - "position": { - "start": { - "line": 40, - "column": 1, - "offset": 305 - }, - "end": { - "line": 40, - "column": 18, - "offset": 322 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Just plain comment, with trailing spaces on the line:", - "position": { - "start": { - "line": 42, - "column": 1, - "offset": 324 - }, - "end": { - "line": 42, - "column": 54, - "offset": 377 - } - } - } - ], - "position": { - "start": { - "line": 42, - "column": 1, - "offset": 324 - }, - "end": { - "line": 42, - "column": 54, - "offset": 377 - } - } - }, - { - "type": "html", - "value": " ", - "position": { - "start": { - "line": 44, - "column": 1, - "offset": 379 - }, - "end": { - "line": 44, - "column": 16, - "offset": 394 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Code:", - "position": { - "start": { - "line": 46, - "column": 1, - "offset": 396 - }, - "end": { - "line": 46, - "column": 6, - "offset": 401 - } - } - } - ], - "position": { - "start": { - "line": 46, - "column": 1, - "offset": 396 - }, - "end": { - "line": 46, - "column": 6, - "offset": 401 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "
", - "position": { - "start": { - "line": 48, - "column": 1, - "offset": 403 - }, - "end": { - "line": 49, - "column": 2, - "offset": 410 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hr's:", - "position": { - "start": { - "line": 50, - "column": 1, - "offset": 411 - }, - "end": { - "line": 50, - "column": 6, - "offset": 416 - } - } - } - ], - "position": { - "start": { - "line": 50, - "column": 1, - "offset": 411 - }, - "end": { - "line": 50, - "column": 6, - "offset": 416 - } - } - }, - { - "type": "html", - "value": "
", - "position": { - "start": { - "line": 52, - "column": 1, - "offset": 418 - }, - "end": { - "line": 52, - "column": 5, - "offset": 422 - } - } - }, - { - "type": "html", - "value": "
", - "position": { - "start": { - "line": 54, - "column": 1, - "offset": 424 - }, - "end": { - "line": 54, - "column": 5, - "offset": 428 - } - } - }, - { - "type": "html", - "value": "
", - "position": { - "start": { - "line": 56, - "column": 1, - "offset": 430 - }, - "end": { - "line": 56, - "column": 5, - "offset": 434 - } - } - }, - { - "type": "html", - "value": "
", - "position": { - "start": { - "line": 58, - "column": 1, - "offset": 436 - }, - "end": { - "line": 58, - "column": 8, - "offset": 443 - } - } - }, - { - "type": "html", - "value": "
", - "position": { - "start": { - "line": 60, - "column": 1, - "offset": 445 - }, - "end": { - "line": 60, - "column": 7, - "offset": 451 - } - } - }, - { - "type": "html", - "value": "
", - "position": { - "start": { - "line": 62, - "column": 1, - "offset": 453 - }, - "end": { - "line": 62, - "column": 6, - "offset": 458 - } - } - }, - { - "type": "html", - "value": "
", - "position": { - "start": { - "line": 64, - "column": 1, - "offset": 460 - }, - "end": { - "line": 64, - "column": 28, - "offset": 487 - } - } - }, - { - "type": "html", - "value": "
", - "position": { - "start": { - "line": 66, - "column": 1, - "offset": 489 - }, - "end": { - "line": 66, - "column": 27, - "offset": 515 - } - } - }, - { - "type": "html", - "value": "
", - "position": { - "start": { - "line": 68, - "column": 1, - "offset": 517 - }, - "end": { - "line": 68, - "column": 27, - "offset": 543 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 69, - "column": 1, - "offset": 544 - } - } -} diff --git a/test/fixtures/tree/html-tags.json b/test/fixtures/tree/html-tags.json deleted file mode 100644 index d71dc472e..000000000 --- a/test/fixtures/tree/html-tags.json +++ /dev/null @@ -1,865 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Block", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 8, - "offset": 7 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 8, - "offset": 7 - } - } - }, - { - "type": "html", - "value": "
", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 9 - }, - "end": { - "line": 3, - "column": 10, - "offset": 18 - } - } - }, - { - "type": "html", - "value": "
", - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 21 - }, - "end": { - "line": 6, - "column": 10, - "offset": 30 - } - } - }, - { - "type": "html", - "value": "
", - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 33 - }, - "end": { - "line": 9, - "column": 10, - "offset": 42 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "<-article>", - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 45 - }, - "end": { - "line": 12, - "column": 11, - "offset": 55 - } - } - } - ], - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 45 - }, - "end": { - "line": 12, - "column": 11, - "offset": 55 - } - } - }, - { - "type": "html", - "value": "
", - "position": { - "start": { - "line": 110, - "column": 1, - "offset": 483 - }, - "end": { - "line": 110, - "column": 16, - "offset": 498 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 111, - "column": 1, - "offset": 499 - } - } -} diff --git a/test/fixtures/tree/image-empty-alt.json b/test/fixtures/tree/image-empty-alt.json deleted file mode 100644 index da1332e01..000000000 --- a/test/fixtures/tree/image-empty-alt.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "/xyz.png", - "alt": "", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 14, - "offset": 13 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 14, - "offset": 13 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 1, - "offset": 14 - } - } -} diff --git a/test/fixtures/tree/image-in-link.json b/test/fixtures/tree/image-in-link.json deleted file mode 100644 index a4cdcb6fc..000000000 --- a/test/fixtures/tree/image-in-link.json +++ /dev/null @@ -1,180 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "link", - "title": null, - "url": "http://shields.io", - "children": [ - { - "type": "image", - "title": null, - "url": "https://img.shields.io/badge/unicorn-approved-ff69b4.svg", - "alt": "Unicorn approved", - "position": { - "start": { - "line": 1, - "column": 4, - "offset": 3 - }, - "end": { - "line": 1, - "column": 81, - "offset": 80 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 101, - "offset": 100 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 101, - "offset": 100 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "https://travis-ci.org/wooorm/mdast", - "children": [ - { - "type": "image", - "title": null, - "url": "https://img.shields.io/travis/wooorm/mdast.svg?style=flat", - "alt": "Build Status", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 103 - }, - "end": { - "line": 3, - "column": 76, - "offset": 177 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 102 - }, - "end": { - "line": 3, - "column": 113, - "offset": 214 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 102 - }, - "end": { - "line": 3, - "column": 113, - "offset": 214 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "An example", - "url": "http://example.com", - "children": [ - { - "type": "image", - "title": null, - "url": "https://img.shields.io/badge/style-flat--squared-green.svg?style=flat-square", - "alt": "Be Square", - "position": { - "start": { - "line": 5, - "column": 2, - "offset": 217 - }, - "end": { - "line": 5, - "column": 92, - "offset": 307 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 216 - }, - "end": { - "line": 5, - "column": 126, - "offset": 341 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 216 - }, - "end": { - "line": 5, - "column": 126, - "offset": 341 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 6, - "column": 1, - "offset": 342 - } - } -} diff --git a/test/fixtures/tree/image-with-pipe.json b/test/fixtures/tree/image-with-pipe.json deleted file mode 100644 index a34cc649e..000000000 --- a/test/fixtures/tree/image-with-pipe.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "f|", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 3, - "offset": 2 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 3, - "offset": 2 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 3, - "offset": 2 - } - } -} diff --git a/test/fixtures/tree/images.output.noreference-images.json b/test/fixtures/tree/images.output.noreference-images.json deleted file mode 100644 index 886c0e7b9..000000000 --- a/test/fixtures/tree/images.output.noreference-images.json +++ /dev/null @@ -1,252 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Lorem ipsum dolor sit ", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 23, - "offset": 22 - } - } - }, - { - "type": "image", - "title": "Amet", - "url": "http://amet.com/amet.jpeg", - "alt": "amet", - "position": { - "start": { - "line": 1, - "column": 23, - "offset": 22 - }, - "end": { - "line": 1, - "column": 64, - "offset": 63 - } - } - }, - { - "type": "text", - "value": ", consectetur adipiscing elit. Praesent dictum purus ullamcorper ligula semper pellentesque.", - "position": { - "start": { - "line": 1, - "column": 64, - "offset": 63 - }, - "end": { - "line": 1, - "column": 156, - "offset": 155 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 156, - "offset": 155 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Nulla ", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 157 - }, - "end": { - "line": 3, - "column": 7, - "offset": 163 - } - } - }, - { - "type": "image", - "title": "Finibus", - "url": "http://finibus.com/finibus.png", - "alt": "finibus", - "position": { - "start": { - "line": 3, - "column": 7, - "offset": 163 - }, - "end": { - "line": 3, - "column": 59, - "offset": 215 - } - } - }, - { - "type": "text", - "value": " neque et diam rhoncus convallis. Nam dictum sapien nec sem ultrices fermentum. Nulla ", - "position": { - "start": { - "line": 3, - "column": 59, - "offset": 215 - }, - "end": { - "line": 3, - "column": 145, - "offset": 301 - } - } - }, - { - "type": "image", - "title": "Facilisi", - "url": "http://facilisi.com/facilisi.gif", - "alt": "facilisi", - "position": { - "start": { - "line": 3, - "column": 145, - "offset": 301 - }, - "end": { - "line": 3, - "column": 201, - "offset": 357 - } - } - }, - { - "type": "text", - "value": ". In et feugiat massa.", - "position": { - "start": { - "line": 3, - "column": 201, - "offset": 357 - }, - "end": { - "line": 3, - "column": 223, - "offset": 379 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 157 - }, - "end": { - "line": 3, - "column": 223, - "offset": 379 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Donec sed sodales metus, ut aliquet quam. Suspendisse nec ipsum risus. Interdum et malesuada fames ac ante ipsum primis in ", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 381 - }, - "end": { - "line": 5, - "column": 124, - "offset": 504 - } - } - }, - { - "type": "image", - "title": "Faucibus", - "url": "http://faucibus.com/faucibus.tiff", - "alt": "faucibus", - "position": { - "start": { - "line": 5, - "column": 124, - "offset": 504 - }, - "end": { - "line": 5, - "column": 181, - "offset": 561 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 181, - "offset": 561 - }, - "end": { - "line": 5, - "column": 182, - "offset": 562 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 381 - }, - "end": { - "line": 5, - "column": 182, - "offset": 562 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 6, - "column": 1, - "offset": 563 - } - } -} diff --git a/test/fixtures/tree/isolated-hard-break.json b/test/fixtures/tree/isolated-hard-break.json deleted file mode 100644 index 5c793c2f3..000000000 --- a/test/fixtures/tree/isolated-hard-break.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "The previous line, which contains 2 spaces, should be considered to be empty.", - "position": { - "start": { - "line": 2, - "column": 1, - "offset": 3 - }, - "end": { - "line": 2, - "column": 78, - "offset": 80 - } - } - } - ], - "position": { - "start": { - "line": 2, - "column": 1, - "offset": 3 - }, - "end": { - "line": 2, - "column": 78, - "offset": 80 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 3, - "column": 1, - "offset": 81 - } - } -} diff --git a/test/fixtures/tree/lazy-blockquotes.json b/test/fixtures/tree/lazy-blockquotes.json deleted file mode 100644 index 1ecd08ce4..000000000 --- a/test/fixtures/tree/lazy-blockquotes.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "blockquote", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "hi there\nbud", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 2, - "column": 4, - "offset": 14 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 2, - "column": 4, - "offset": 14 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 4, - "offset": 14 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 3, - "column": 1, - "offset": 15 - } - } -} diff --git a/test/fixtures/tree/link-in-link.json b/test/fixtures/tree/link-in-link.json deleted file mode 100644 index 98c61752b..000000000 --- a/test/fixtures/tree/link-in-link.json +++ /dev/null @@ -1,189 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "link", - "title": null, - "url": "http://shields.io", - "children": [ - { - "type": "text", - "value": "mailto:test@example.com", - "position": { - "start": { - "line": 1, - "column": 4, - "offset": 3 - }, - "end": { - "line": 1, - "column": 27, - "offset": 26 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 47, - "offset": 46 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 47, - "offset": 46 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "mdast", - "url": "https://travis-ci.org/wooorm/mdast", - "children": [ - { - "type": "text", - "value": "https://travis-ci.org/wooorm/mdast", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 49 - }, - "end": { - "line": 3, - "column": 36, - "offset": 83 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 48 - }, - "end": { - "line": 3, - "column": 81, - "offset": 128 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 48 - }, - "end": { - "line": 3, - "column": 81, - "offset": 128 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 130 - }, - "end": { - "line": 5, - "column": 2, - "offset": 131 - } - } - }, - { - "type": "link", - "title": "An example", - "url": "http://example.com", - "children": [], - "position": { - "start": { - "line": 5, - "column": 2, - "offset": 131 - }, - "end": { - "line": 5, - "column": 37, - "offset": 166 - } - } - }, - { - "type": "text", - "value": "](http://example.com \"An example\")", - "position": { - "start": { - "line": 5, - "column": 37, - "offset": 166 - }, - "end": { - "line": 5, - "column": 71, - "offset": 200 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 130 - }, - "end": { - "line": 5, - "column": 71, - "offset": 200 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 6, - "column": 1, - "offset": 201 - } - } -} diff --git a/test/fixtures/tree/link-spaces.json b/test/fixtures/tree/link-spaces.json deleted file mode 100644 index 53765c3a2..000000000 --- a/test/fixtures/tree/link-spaces.json +++ /dev/null @@ -1,149 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[alpha] (bravo", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 15, - "offset": 14 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 15, - "offset": 14 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "![charlie] (delta\n.com)", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 16 - }, - "end": { - "line": 4, - "column": 6, - "offset": 39 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 16 - }, - "end": { - "line": 4, - "column": 6, - "offset": 39 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[echo]\t(http://foxtrot.golf)", - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 41 - }, - "end": { - "line": 6, - "column": 29, - "offset": 69 - } - } - } - ], - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 41 - }, - "end": { - "line": 6, - "column": 29, - "offset": 69 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "![hotel] (india.com/juliett)", - "position": { - "start": { - "line": 8, - "column": 1, - "offset": 71 - }, - "end": { - "line": 8, - "column": 31, - "offset": 101 - } - } - } - ], - "position": { - "start": { - "line": 8, - "column": 1, - "offset": 71 - }, - "end": { - "line": 8, - "column": 31, - "offset": 101 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 9, - "column": 1, - "offset": 102 - } - } -} diff --git a/test/fixtures/tree/link-whitespace.json b/test/fixtures/tree/link-whitespace.json deleted file mode 100644 index 296a8490e..000000000 --- a/test/fixtures/tree/link-whitespace.json +++ /dev/null @@ -1,413 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[alpha](https://example.com?bravo charlie).", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 44, - "offset": 43 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 44, - "offset": 43 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[alpha](https://example.com?bravo\tcharlie).", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 45 - }, - "end": { - "line": 3, - "column": 44, - "offset": 88 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 45 - }, - "end": { - "line": 3, - "column": 44, - "offset": 88 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[alpha](https://example.com?bravo\ncharlie).", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 90 - }, - "end": { - "line": 6, - "column": 10, - "offset": 133 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 90 - }, - "end": { - "line": 6, - "column": 10, - "offset": 133 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "![alpha](https://example.com?bravo charlie).", - "position": { - "start": { - "line": 8, - "column": 1, - "offset": 135 - }, - "end": { - "line": 8, - "column": 45, - "offset": 179 - } - } - } - ], - "position": { - "start": { - "line": 8, - "column": 1, - "offset": 135 - }, - "end": { - "line": 8, - "column": 45, - "offset": 179 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "![alpha](https://example.com?bravo\tcharlie).", - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 181 - }, - "end": { - "line": 10, - "column": 45, - "offset": 225 - } - } - } - ], - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 181 - }, - "end": { - "line": 10, - "column": 45, - "offset": 225 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "![alpha](https://example.com?bravo\ncharlie).", - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 227 - }, - "end": { - "line": 13, - "column": 10, - "offset": 271 - } - } - } - ], - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 227 - }, - "end": { - "line": 13, - "column": 10, - "offset": 271 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 273 - }, - "end": { - "line": 15, - "column": 37, - "offset": 309 - } - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 273 - }, - "end": { - "line": 15, - "column": 37, - "offset": 309 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 311 - }, - "end": { - "line": 17, - "column": 37, - "offset": 347 - } - } - } - ], - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 311 - }, - "end": { - "line": 17, - "column": 37, - "offset": 347 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 349 - }, - "end": { - "line": 20, - "column": 10, - "offset": 385 - } - } - } - ], - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 349 - }, - "end": { - "line": 20, - "column": 10, - "offset": 385 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "https://example.com?bravo charlie.", - "position": { - "start": { - "line": 22, - "column": 1, - "offset": 387 - }, - "end": { - "line": 22, - "column": 35, - "offset": 421 - } - } - } - ], - "position": { - "start": { - "line": 22, - "column": 1, - "offset": 387 - }, - "end": { - "line": 22, - "column": 35, - "offset": 421 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "https://example.com?bravo\tcharlie.", - "position": { - "start": { - "line": 24, - "column": 1, - "offset": 423 - }, - "end": { - "line": 24, - "column": 35, - "offset": 457 - } - } - } - ], - "position": { - "start": { - "line": 24, - "column": 1, - "offset": 423 - }, - "end": { - "line": 24, - "column": 35, - "offset": 457 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "https://example.com?bravo\ncharlie.", - "position": { - "start": { - "line": 26, - "column": 1, - "offset": 459 - }, - "end": { - "line": 27, - "column": 9, - "offset": 493 - } - } - } - ], - "position": { - "start": { - "line": 26, - "column": 1, - "offset": 459 - }, - "end": { - "line": 27, - "column": 9, - "offset": 493 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 28, - "column": 1, - "offset": 494 - } - } -} diff --git a/test/fixtures/tree/link-with-spaces.json b/test/fixtures/tree/link-with-spaces.json deleted file mode 100644 index 8009733e3..000000000 --- a/test/fixtures/tree/link-with-spaces.json +++ /dev/null @@ -1,121 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./world and some spaces.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 40, - "offset": 39 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 40, - "offset": 39 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "and a title", - "url": "./world and some spaces.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 42 - }, - "end": { - "line": 3, - "column": 7, - "offset": 47 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 41 - }, - "end": { - "line": 3, - "column": 54, - "offset": 94 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 41 - }, - "end": { - "line": 3, - "column": 54, - "offset": 94 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 3, - "column": 54, - "offset": 94 - } - } -} diff --git a/test/fixtures/tree/links-inline-style.json b/test/fixtures/tree/links-inline-style.json deleted file mode 100644 index 11e4a55d9..000000000 --- a/test/fixtures/tree/links-inline-style.json +++ /dev/null @@ -1,507 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Just a ", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 8, - "offset": 7 - } - } - }, - { - "type": "link", - "title": null, - "url": "/url/", - "children": [ - { - "type": "text", - "value": "URL", - "position": { - "start": { - "line": 1, - "column": 9, - "offset": 8 - }, - "end": { - "line": 1, - "column": 12, - "offset": 11 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 8, - "offset": 7 - }, - "end": { - "line": 1, - "column": 20, - "offset": 19 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 20, - "offset": 19 - }, - "end": { - "line": 1, - "column": 21, - "offset": 20 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 21, - "offset": 20 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "title", - "url": "/url/", - "children": [ - { - "type": "text", - "value": "URL and title", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 23 - }, - "end": { - "line": 3, - "column": 15, - "offset": 36 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 22 - }, - "end": { - "line": 3, - "column": 31, - "offset": 52 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 31, - "offset": 52 - }, - "end": { - "line": 3, - "column": 32, - "offset": 53 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 22 - }, - "end": { - "line": 3, - "column": 32, - "offset": 53 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "title preceded by two spaces", - "url": "/url/", - "children": [ - { - "type": "text", - "value": "URL and title", - "position": { - "start": { - "line": 5, - "column": 2, - "offset": 56 - }, - "end": { - "line": 5, - "column": 15, - "offset": 69 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 55 - }, - "end": { - "line": 5, - "column": 55, - "offset": 109 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 55, - "offset": 109 - }, - "end": { - "line": 5, - "column": 56, - "offset": 110 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 55 - }, - "end": { - "line": 5, - "column": 56, - "offset": 110 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "title preceded by a tab", - "url": "/url/", - "children": [ - { - "type": "text", - "value": "URL and title", - "position": { - "start": { - "line": 7, - "column": 2, - "offset": 113 - }, - "end": { - "line": 7, - "column": 15, - "offset": 126 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 112 - }, - "end": { - "line": 7, - "column": 49, - "offset": 160 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 49, - "offset": 160 - }, - "end": { - "line": 7, - "column": 50, - "offset": 161 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 112 - }, - "end": { - "line": 7, - "column": 50, - "offset": 161 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "title has spaces afterward", - "url": "/url/", - "children": [ - { - "type": "text", - "value": "URL and title", - "position": { - "start": { - "line": 9, - "column": 2, - "offset": 164 - }, - "end": { - "line": 9, - "column": 15, - "offset": 177 - } - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 163 - }, - "end": { - "line": 9, - "column": 54, - "offset": 216 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 9, - "column": 54, - "offset": 216 - }, - "end": { - "line": 9, - "column": 55, - "offset": 217 - } - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 163 - }, - "end": { - "line": 9, - "column": 55, - "offset": 217 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[URL and title]( /url/has space ).", - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 219 - }, - "end": { - "line": 11, - "column": 35, - "offset": 253 - } - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 219 - }, - "end": { - "line": 11, - "column": 35, - "offset": 253 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[URL and title]( /url/has space/ \"url has space and title\").", - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 255 - }, - "end": { - "line": 13, - "column": 61, - "offset": 315 - } - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 255 - }, - "end": { - "line": 13, - "column": 61, - "offset": 315 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "", - "children": [ - { - "type": "text", - "value": "Empty", - "position": { - "start": { - "line": 15, - "column": 2, - "offset": 318 - }, - "end": { - "line": 15, - "column": 7, - "offset": 323 - } - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 317 - }, - "end": { - "line": 15, - "column": 10, - "offset": 326 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 15, - "column": 10, - "offset": 326 - }, - "end": { - "line": 15, - "column": 11, - "offset": 327 - } - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 317 - }, - "end": { - "line": 15, - "column": 11, - "offset": 327 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 16, - "column": 1, - "offset": 328 - } - } -} diff --git a/test/fixtures/tree/links-reference-proto.json b/test/fixtures/tree/links-reference-proto.json deleted file mode 100644 index 1869c541c..000000000 --- a/test/fixtures/tree/links-reference-proto.json +++ /dev/null @@ -1,263 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "A ", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 3, - "offset": 2 - } - } - }, - { - "type": "linkReference", - "children": [ - { - "type": "text", - "value": "primary", - "position": { - "start": { - "line": 1, - "column": 4, - "offset": 3 - }, - "end": { - "line": 1, - "column": 11, - "offset": 10 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 22, - "offset": 21 - } - }, - "label": "toString", - "identifier": "tostring", - "referenceType": "full" - }, - { - "type": "text", - "value": ", ", - "position": { - "start": { - "line": 1, - "column": 22, - "offset": 21 - }, - "end": { - "line": 1, - "column": 24, - "offset": 23 - } - } - }, - { - "type": "linkReference", - "children": [ - { - "type": "text", - "value": "secondary", - "position": { - "start": { - "line": 1, - "column": 25, - "offset": 24 - }, - "end": { - "line": 1, - "column": 34, - "offset": 33 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 24, - "offset": 23 - }, - "end": { - "line": 1, - "column": 48, - "offset": 47 - } - }, - "label": "constructor", - "identifier": "constructor", - "referenceType": "full" - }, - { - "type": "text", - "value": ", and ", - "position": { - "start": { - "line": 1, - "column": 48, - "offset": 47 - }, - "end": { - "line": 1, - "column": 54, - "offset": 53 - } - } - }, - { - "type": "linkReference", - "children": [ - { - "type": "text", - "value": "tertiary", - "position": { - "start": { - "line": 1, - "column": 55, - "offset": 54 - }, - "end": { - "line": 1, - "column": 63, - "offset": 62 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 54, - "offset": 53 - }, - "end": { - "line": 1, - "column": 75, - "offset": 74 - } - }, - "label": "__proto__", - "identifier": "__proto__", - "referenceType": "full" - }, - { - "type": "text", - "value": " link.", - "position": { - "start": { - "line": 1, - "column": 75, - "offset": 74 - }, - "end": { - "line": 1, - "column": 81, - "offset": 80 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 81, - "offset": 80 - } - } - }, - { - "type": "definition", - "identifier": "tostring", - "label": "toString", - "title": null, - "url": "http://primary.com", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 82 - }, - "end": { - "line": 3, - "column": 31, - "offset": 112 - } - } - }, - { - "type": "definition", - "identifier": "__proto__", - "label": "__proto__", - "title": null, - "url": "http://tertiary.com", - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 113 - }, - "end": { - "line": 4, - "column": 33, - "offset": 145 - } - } - }, - { - "type": "definition", - "identifier": "constructor", - "label": "constructor", - "title": null, - "url": "http://secondary.com", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 146 - }, - "end": { - "line": 5, - "column": 36, - "offset": 181 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 6, - "column": 1, - "offset": 182 - } - } -} diff --git a/test/fixtures/tree/links-reference-style.nooutput.json b/test/fixtures/tree/links-reference-style.nooutput.json deleted file mode 100644 index f879a8f2b..000000000 --- a/test/fixtures/tree/links-reference-style.nooutput.json +++ /dev/null @@ -1,1843 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Foo [bar] ", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 11, - "offset": 10 - } - } - }, - { - "type": "linkReference", - "children": [ - { - "type": "text", - "value": "1", - "position": { - "start": { - "line": 1, - "column": 12, - "offset": 11 - }, - "end": { - "line": 1, - "column": 13, - "offset": 12 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 11, - "offset": 10 - }, - "end": { - "line": 1, - "column": 14, - "offset": 13 - } - }, - "label": "1", - "identifier": "1", - "referenceType": "shortcut" - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 14, - "offset": 13 - }, - "end": { - "line": 1, - "column": 15, - "offset": 14 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 15, - "offset": 14 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Foo ", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 16 - }, - "end": { - "line": 3, - "column": 5, - "offset": 20 - } - } - }, - { - "type": "linkReference", - "children": [ - { - "type": "text", - "value": "bar", - "position": { - "start": { - "line": 3, - "column": 6, - "offset": 21 - }, - "end": { - "line": 3, - "column": 9, - "offset": 24 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 5, - "offset": 20 - }, - "end": { - "line": 3, - "column": 13, - "offset": 28 - } - }, - "label": "1", - "identifier": "1", - "referenceType": "full" - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 13, - "offset": 28 - }, - "end": { - "line": 3, - "column": 14, - "offset": 29 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 16 - }, - "end": { - "line": 3, - "column": 14, - "offset": 29 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Foo [bar]\n", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 31 - }, - "end": { - "line": 6, - "column": 1, - "offset": 41 - } - } - }, - { - "type": "linkReference", - "children": [ - { - "type": "text", - "value": "1", - "position": { - "start": { - "line": 6, - "column": 2, - "offset": 42 - }, - "end": { - "line": 6, - "column": 3, - "offset": 43 - } - } - } - ], - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 41 - }, - "end": { - "line": 6, - "column": 4, - "offset": 44 - } - }, - "label": "1", - "identifier": "1", - "referenceType": "shortcut" - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 6, - "column": 4, - "offset": 44 - }, - "end": { - "line": 6, - "column": 5, - "offset": 45 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 31 - }, - "end": { - "line": 6, - "column": 5, - "offset": 45 - } - } - }, - { - "type": "definition", - "identifier": "1", - "label": "1", - "title": "Title", - "url": "/url/", - "position": { - "start": { - "line": 8, - "column": 1, - "offset": 47 - }, - "end": { - "line": 8, - "column": 20, - "offset": 66 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "With [embedded [brackets]] ", - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 69 - }, - "end": { - "line": 11, - "column": 30, - "offset": 98 - } - } - }, - { - "type": "linkReference", - "children": [ - { - "type": "text", - "value": "b", - "position": { - "start": { - "line": 11, - "column": 31, - "offset": 99 - }, - "end": { - "line": 11, - "column": 32, - "offset": 100 - } - } - } - ], - "position": { - "start": { - "line": 11, - "column": 30, - "offset": 98 - }, - "end": { - "line": 11, - "column": 33, - "offset": 101 - } - }, - "label": "b", - "identifier": "b", - "referenceType": "shortcut" - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 11, - "column": 33, - "offset": 101 - }, - "end": { - "line": 11, - "column": 34, - "offset": 102 - } - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 69 - }, - "end": { - "line": 11, - "column": 34, - "offset": 102 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Indented ", - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 105 - }, - "end": { - "line": 14, - "column": 10, - "offset": 114 - } - } - }, - { - "type": "linkReference", - "children": [ - { - "type": "text", - "value": "once", - "position": { - "start": { - "line": 14, - "column": 11, - "offset": 115 - }, - "end": { - "line": 14, - "column": 15, - "offset": 119 - } - } - } - ], - "position": { - "start": { - "line": 14, - "column": 10, - "offset": 114 - }, - "end": { - "line": 14, - "column": 18, - "offset": 122 - } - }, - "label": "once", - "identifier": "once", - "referenceType": "collapsed" - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 14, - "column": 18, - "offset": 122 - }, - "end": { - "line": 14, - "column": 19, - "offset": 123 - } - } - } - ], - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 105 - }, - "end": { - "line": 14, - "column": 19, - "offset": 123 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Indented ", - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 125 - }, - "end": { - "line": 16, - "column": 10, - "offset": 134 - } - } - }, - { - "type": "linkReference", - "children": [ - { - "type": "text", - "value": "twice", - "position": { - "start": { - "line": 16, - "column": 11, - "offset": 135 - }, - "end": { - "line": 16, - "column": 16, - "offset": 140 - } - } - } - ], - "position": { - "start": { - "line": 16, - "column": 10, - "offset": 134 - }, - "end": { - "line": 16, - "column": 19, - "offset": 143 - } - }, - "label": "twice", - "identifier": "twice", - "referenceType": "collapsed" - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 16, - "column": 19, - "offset": 143 - }, - "end": { - "line": 16, - "column": 20, - "offset": 144 - } - } - } - ], - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 125 - }, - "end": { - "line": 16, - "column": 20, - "offset": 144 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Indented ", - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 146 - }, - "end": { - "line": 18, - "column": 10, - "offset": 155 - } - } - }, - { - "type": "linkReference", - "children": [ - { - "type": "text", - "value": "thrice", - "position": { - "start": { - "line": 18, - "column": 11, - "offset": 156 - }, - "end": { - "line": 18, - "column": 17, - "offset": 162 - } - } - } - ], - "position": { - "start": { - "line": 18, - "column": 10, - "offset": 155 - }, - "end": { - "line": 18, - "column": 20, - "offset": 165 - } - }, - "label": "thrice", - "identifier": "thrice", - "referenceType": "collapsed" - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 18, - "column": 20, - "offset": 165 - }, - "end": { - "line": 18, - "column": 21, - "offset": 166 - } - } - } - ], - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 146 - }, - "end": { - "line": 18, - "column": 21, - "offset": 166 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Indented [four][] times.", - "position": { - "start": { - "line": 20, - "column": 1, - "offset": 168 - }, - "end": { - "line": 20, - "column": 25, - "offset": 192 - } - } - } - ], - "position": { - "start": { - "line": 20, - "column": 1, - "offset": 168 - }, - "end": { - "line": 20, - "column": 25, - "offset": 192 - } - } - }, - { - "type": "definition", - "identifier": "once", - "label": "once", - "title": null, - "url": "/url", - "position": { - "start": { - "line": 22, - "column": 2, - "offset": 195 - }, - "end": { - "line": 22, - "column": 14, - "offset": 207 - } - } - }, - { - "type": "definition", - "identifier": "twice", - "label": "twice", - "title": null, - "url": "/url", - "position": { - "start": { - "line": 24, - "column": 3, - "offset": 211 - }, - "end": { - "line": 24, - "column": 16, - "offset": 224 - } - } - }, - { - "type": "definition", - "identifier": "thrice", - "label": "thrice", - "title": null, - "url": "/url", - "position": { - "start": { - "line": 26, - "column": 4, - "offset": 229 - }, - "end": { - "line": 26, - "column": 18, - "offset": 243 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "[four]: /url", - "position": { - "start": { - "line": 28, - "column": 1, - "offset": 245 - }, - "end": { - "line": 28, - "column": 17, - "offset": 261 - } - } - }, - { - "type": "definition", - "identifier": "b", - "label": "b", - "title": null, - "url": "/url/", - "position": { - "start": { - "line": 31, - "column": 1, - "offset": 264 - }, - "end": { - "line": 31, - "column": 11, - "offset": 274 - } - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 33, - "column": 1, - "offset": 276 - }, - "end": { - "line": 33, - "column": 6, - "offset": 281 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "children": [ - { - "type": "text", - "value": "this", - "position": { - "start": { - "line": 35, - "column": 2, - "offset": 284 - }, - "end": { - "line": 35, - "column": 6, - "offset": 288 - } - } - } - ], - "position": { - "start": { - "line": 35, - "column": 1, - "offset": 283 - }, - "end": { - "line": 35, - "column": 7, - "offset": 289 - } - }, - "label": "this", - "identifier": "this", - "referenceType": "shortcut" - }, - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 35, - "column": 7, - "offset": 289 - }, - "end": { - "line": 35, - "column": 8, - "offset": 290 - } - } - }, - { - "type": "linkReference", - "children": [ - { - "type": "text", - "value": "this", - "position": { - "start": { - "line": 35, - "column": 9, - "offset": 291 - }, - "end": { - "line": 35, - "column": 13, - "offset": 295 - } - } - } - ], - "position": { - "start": { - "line": 35, - "column": 8, - "offset": 290 - }, - "end": { - "line": 35, - "column": 14, - "offset": 296 - } - }, - "label": "this", - "identifier": "this", - "referenceType": "shortcut" - }, - { - "type": "text", - "value": " should work", - "position": { - "start": { - "line": 35, - "column": 14, - "offset": 296 - }, - "end": { - "line": 35, - "column": 26, - "offset": 308 - } - } - } - ], - "position": { - "start": { - "line": 35, - "column": 1, - "offset": 283 - }, - "end": { - "line": 35, - "column": 26, - "offset": 308 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "So should ", - "position": { - "start": { - "line": 37, - "column": 1, - "offset": 310 - }, - "end": { - "line": 37, - "column": 11, - "offset": 320 - } - } - }, - { - "type": "linkReference", - "children": [ - { - "type": "text", - "value": "this", - "position": { - "start": { - "line": 37, - "column": 12, - "offset": 321 - }, - "end": { - "line": 37, - "column": 16, - "offset": 325 - } - } - } - ], - "position": { - "start": { - "line": 37, - "column": 11, - "offset": 320 - }, - "end": { - "line": 37, - "column": 23, - "offset": 332 - } - }, - "label": "this", - "identifier": "this", - "referenceType": "full" - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 37, - "column": 23, - "offset": 332 - }, - "end": { - "line": 37, - "column": 24, - "offset": 333 - } - } - } - ], - "position": { - "start": { - "line": 37, - "column": 1, - "offset": 310 - }, - "end": { - "line": 37, - "column": 24, - "offset": 333 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And ", - "position": { - "start": { - "line": 39, - "column": 1, - "offset": 335 - }, - "end": { - "line": 39, - "column": 5, - "offset": 339 - } - } - }, - { - "type": "linkReference", - "children": [ - { - "type": "text", - "value": "this", - "position": { - "start": { - "line": 39, - "column": 6, - "offset": 340 - }, - "end": { - "line": 39, - "column": 10, - "offset": 344 - } - } - } - ], - "position": { - "start": { - "line": 39, - "column": 5, - "offset": 339 - }, - "end": { - "line": 39, - "column": 11, - "offset": 345 - } - }, - "label": "this", - "identifier": "this", - "referenceType": "shortcut" - }, - { - "type": "text", - "value": " [].", - "position": { - "start": { - "line": 39, - "column": 11, - "offset": 345 - }, - "end": { - "line": 39, - "column": 15, - "offset": 349 - } - } - } - ], - "position": { - "start": { - "line": 39, - "column": 1, - "offset": 335 - }, - "end": { - "line": 39, - "column": 15, - "offset": 349 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And ", - "position": { - "start": { - "line": 41, - "column": 1, - "offset": 351 - }, - "end": { - "line": 41, - "column": 5, - "offset": 355 - } - } - }, - { - "type": "linkReference", - "children": [ - { - "type": "text", - "value": "this", - "position": { - "start": { - "line": 41, - "column": 6, - "offset": 356 - }, - "end": { - "line": 41, - "column": 10, - "offset": 360 - } - } - } - ], - "position": { - "start": { - "line": 41, - "column": 5, - "offset": 355 - }, - "end": { - "line": 41, - "column": 13, - "offset": 363 - } - }, - "label": "this", - "identifier": "this", - "referenceType": "collapsed" - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 41, - "column": 13, - "offset": 363 - }, - "end": { - "line": 41, - "column": 14, - "offset": 364 - } - } - } - ], - "position": { - "start": { - "line": 41, - "column": 1, - "offset": 351 - }, - "end": { - "line": 41, - "column": 14, - "offset": 364 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And ", - "position": { - "start": { - "line": 43, - "column": 1, - "offset": 366 - }, - "end": { - "line": 43, - "column": 5, - "offset": 370 - } - } - }, - { - "type": "linkReference", - "children": [ - { - "type": "text", - "value": "this", - "position": { - "start": { - "line": 43, - "column": 6, - "offset": 371 - }, - "end": { - "line": 43, - "column": 10, - "offset": 375 - } - } - } - ], - "position": { - "start": { - "line": 43, - "column": 5, - "offset": 370 - }, - "end": { - "line": 43, - "column": 11, - "offset": 376 - } - }, - "label": "this", - "identifier": "this", - "referenceType": "shortcut" - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 43, - "column": 11, - "offset": 376 - }, - "end": { - "line": 43, - "column": 12, - "offset": 377 - } - } - } - ], - "position": { - "start": { - "line": 43, - "column": 1, - "offset": 366 - }, - "end": { - "line": 43, - "column": 12, - "offset": 377 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "But not [that] [].", - "position": { - "start": { - "line": 45, - "column": 1, - "offset": 379 - }, - "end": { - "line": 45, - "column": 19, - "offset": 397 - } - } - } - ], - "position": { - "start": { - "line": 45, - "column": 1, - "offset": 379 - }, - "end": { - "line": 45, - "column": 19, - "offset": 397 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Nor [that][].", - "position": { - "start": { - "line": 47, - "column": 1, - "offset": 399 - }, - "end": { - "line": 47, - "column": 14, - "offset": 412 - } - } - } - ], - "position": { - "start": { - "line": 47, - "column": 1, - "offset": 399 - }, - "end": { - "line": 47, - "column": 14, - "offset": 412 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Nor [that].", - "position": { - "start": { - "line": 49, - "column": 1, - "offset": 414 - }, - "end": { - "line": 49, - "column": 12, - "offset": 425 - } - } - } - ], - "position": { - "start": { - "line": 49, - "column": 1, - "offset": 414 - }, - "end": { - "line": 49, - "column": 12, - "offset": 425 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[Something in brackets like ", - "position": { - "start": { - "line": 51, - "column": 1, - "offset": 427 - }, - "end": { - "line": 51, - "column": 29, - "offset": 455 - } - } - }, - { - "type": "linkReference", - "children": [ - { - "type": "text", - "value": "this", - "position": { - "start": { - "line": 51, - "column": 30, - "offset": 456 - }, - "end": { - "line": 51, - "column": 34, - "offset": 460 - } - } - } - ], - "position": { - "start": { - "line": 51, - "column": 29, - "offset": 455 - }, - "end": { - "line": 51, - "column": 37, - "offset": 463 - } - }, - "label": "this", - "identifier": "this", - "referenceType": "collapsed" - }, - { - "type": "text", - "value": " should work]", - "position": { - "start": { - "line": 51, - "column": 37, - "offset": 463 - }, - "end": { - "line": 51, - "column": 50, - "offset": 476 - } - } - } - ], - "position": { - "start": { - "line": 51, - "column": 1, - "offset": 427 - }, - "end": { - "line": 51, - "column": 50, - "offset": 476 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[Same with ", - "position": { - "start": { - "line": 53, - "column": 1, - "offset": 478 - }, - "end": { - "line": 53, - "column": 12, - "offset": 489 - } - } - }, - { - "type": "linkReference", - "children": [ - { - "type": "text", - "value": "this", - "position": { - "start": { - "line": 53, - "column": 13, - "offset": 490 - }, - "end": { - "line": 53, - "column": 17, - "offset": 494 - } - } - } - ], - "position": { - "start": { - "line": 53, - "column": 12, - "offset": 489 - }, - "end": { - "line": 53, - "column": 18, - "offset": 495 - } - }, - "label": "this", - "identifier": "this", - "referenceType": "shortcut" - }, - { - "type": "text", - "value": ".]", - "position": { - "start": { - "line": 53, - "column": 18, - "offset": 495 - }, - "end": { - "line": 53, - "column": 20, - "offset": 497 - } - } - } - ], - "position": { - "start": { - "line": 53, - "column": 1, - "offset": 478 - }, - "end": { - "line": 53, - "column": 20, - "offset": 497 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "In this case, ", - "position": { - "start": { - "line": 55, - "column": 1, - "offset": 499 - }, - "end": { - "line": 55, - "column": 15, - "offset": 513 - } - } - }, - { - "type": "link", - "title": null, - "url": "/somethingelse/", - "children": [ - { - "type": "text", - "value": "this", - "position": { - "start": { - "line": 55, - "column": 16, - "offset": 514 - }, - "end": { - "line": 55, - "column": 20, - "offset": 518 - } - } - } - ], - "position": { - "start": { - "line": 55, - "column": 15, - "offset": 513 - }, - "end": { - "line": 55, - "column": 38, - "offset": 536 - } - } - }, - { - "type": "text", - "value": " points to something else.", - "position": { - "start": { - "line": 55, - "column": 38, - "offset": 536 - }, - "end": { - "line": 55, - "column": 64, - "offset": 562 - } - } - } - ], - "position": { - "start": { - "line": 55, - "column": 1, - "offset": 499 - }, - "end": { - "line": 55, - "column": 64, - "offset": 562 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Backslashing should suppress [this] and [this].", - "position": { - "start": { - "line": 57, - "column": 1, - "offset": 564 - }, - "end": { - "line": 57, - "column": 50, - "offset": 613 - } - } - } - ], - "position": { - "start": { - "line": 57, - "column": 1, - "offset": 564 - }, - "end": { - "line": 57, - "column": 50, - "offset": 613 - } - } - }, - { - "type": "definition", - "identifier": "this", - "label": "this", - "title": null, - "url": "foo", - "position": { - "start": { - "line": 59, - "column": 1, - "offset": 615 - }, - "end": { - "line": 59, - "column": 12, - "offset": 626 - } - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 62, - "column": 1, - "offset": 629 - }, - "end": { - "line": 62, - "column": 6, - "offset": 634 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Here's one where the ", - "position": { - "start": { - "line": 64, - "column": 1, - "offset": 636 - }, - "end": { - "line": 64, - "column": 22, - "offset": 657 - } - } - }, - { - "type": "linkReference", - "children": [ - { - "type": "text", - "value": "link\nbreaks", - "position": { - "start": { - "line": 64, - "column": 23, - "offset": 658 - }, - "end": { - "line": 65, - "column": 7, - "offset": 669 - } - } - } - ], - "position": { - "start": { - "line": 64, - "column": 22, - "offset": 657 - }, - "end": { - "line": 65, - "column": 8, - "offset": 670 - } - }, - "label": "link\nbreaks", - "identifier": "link breaks", - "referenceType": "shortcut" - }, - { - "type": "text", - "value": " across lines.", - "position": { - "start": { - "line": 65, - "column": 8, - "offset": 670 - }, - "end": { - "line": 65, - "column": 22, - "offset": 684 - } - } - } - ], - "position": { - "start": { - "line": 64, - "column": 1, - "offset": 636 - }, - "end": { - "line": 65, - "column": 22, - "offset": 684 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Here's another where the ", - "position": { - "start": { - "line": 67, - "column": 1, - "offset": 686 - }, - "end": { - "line": 67, - "column": 26, - "offset": 711 - } - } - }, - { - "type": "linkReference", - "children": [ - { - "type": "text", - "value": "link\nbreaks", - "position": { - "start": { - "line": 67, - "column": 27, - "offset": 712 - }, - "end": { - "line": 68, - "column": 7, - "offset": 724 - } - } - } - ], - "position": { - "start": { - "line": 67, - "column": 26, - "offset": 711 - }, - "end": { - "line": 68, - "column": 8, - "offset": 725 - } - }, - "label": "link \nbreaks", - "identifier": "link breaks", - "referenceType": "shortcut" - }, - { - "type": "text", - "value": " across lines, but with a line-ending space.", - "position": { - "start": { - "line": 68, - "column": 8, - "offset": 725 - }, - "end": { - "line": 68, - "column": 52, - "offset": 769 - } - } - } - ], - "position": { - "start": { - "line": 67, - "column": 1, - "offset": 686 - }, - "end": { - "line": 68, - "column": 52, - "offset": 769 - } - } - }, - { - "type": "definition", - "identifier": "link breaks", - "label": "link breaks", - "title": null, - "url": "/url/", - "position": { - "start": { - "line": 71, - "column": 1, - "offset": 772 - }, - "end": { - "line": 71, - "column": 21, - "offset": 792 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 72, - "column": 1, - "offset": 793 - } - } -} diff --git a/test/fixtures/tree/links-shortcut-references.nooutput.json b/test/fixtures/tree/links-shortcut-references.nooutput.json deleted file mode 100644 index b8623a59c..000000000 --- a/test/fixtures/tree/links-shortcut-references.nooutput.json +++ /dev/null @@ -1,524 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This is the ", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 13, - "offset": 12 - } - } - }, - { - "type": "linkReference", - "children": [ - { - "type": "text", - "value": "simple case", - "position": { - "start": { - "line": 1, - "column": 14, - "offset": 13 - }, - "end": { - "line": 1, - "column": 25, - "offset": 24 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 13, - "offset": 12 - }, - "end": { - "line": 1, - "column": 26, - "offset": 25 - } - }, - "label": "simple case", - "identifier": "simple case", - "referenceType": "shortcut" - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 26, - "offset": 25 - }, - "end": { - "line": 1, - "column": 27, - "offset": 26 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 27, - "offset": 26 - } - } - }, - { - "type": "definition", - "identifier": "simple case", - "label": "simple case", - "title": null, - "url": "/simple", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 28 - }, - "end": { - "line": 3, - "column": 23, - "offset": 50 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This one has a ", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 54 - }, - "end": { - "line": 7, - "column": 16, - "offset": 69 - } - } - }, - { - "type": "linkReference", - "children": [ - { - "type": "text", - "value": "line\nbreak", - "position": { - "start": { - "line": 7, - "column": 17, - "offset": 70 - }, - "end": { - "line": 8, - "column": 6, - "offset": 80 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 16, - "offset": 69 - }, - "end": { - "line": 8, - "column": 7, - "offset": 81 - } - }, - "label": "line\nbreak", - "identifier": "line break", - "referenceType": "shortcut" - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 8, - "column": 7, - "offset": 81 - }, - "end": { - "line": 8, - "column": 8, - "offset": 82 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 54 - }, - "end": { - "line": 8, - "column": 8, - "offset": 82 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This one has a ", - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 84 - }, - "end": { - "line": 10, - "column": 16, - "offset": 99 - } - } - }, - { - "type": "linkReference", - "children": [ - { - "type": "text", - "value": "line\nbreak", - "position": { - "start": { - "line": 10, - "column": 17, - "offset": 100 - }, - "end": { - "line": 11, - "column": 6, - "offset": 111 - } - } - } - ], - "position": { - "start": { - "line": 10, - "column": 16, - "offset": 99 - }, - "end": { - "line": 11, - "column": 7, - "offset": 112 - } - }, - "label": "line \nbreak", - "identifier": "line break", - "referenceType": "shortcut" - }, - { - "type": "text", - "value": " with a line-ending space.", - "position": { - "start": { - "line": 11, - "column": 7, - "offset": 112 - }, - "end": { - "line": 11, - "column": 33, - "offset": 138 - } - } - } - ], - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 84 - }, - "end": { - "line": 11, - "column": 33, - "offset": 138 - } - } - }, - { - "type": "definition", - "identifier": "line break", - "label": "line break", - "title": null, - "url": "/foo", - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 140 - }, - "end": { - "line": 13, - "column": 19, - "offset": 158 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "children": [ - { - "type": "text", - "value": "this", - "position": { - "start": { - "line": 16, - "column": 2, - "offset": 162 - }, - "end": { - "line": 16, - "column": 6, - "offset": 166 - } - } - } - ], - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 161 - }, - "end": { - "line": 16, - "column": 7, - "offset": 167 - } - }, - "label": "this", - "identifier": "this", - "referenceType": "shortcut" - }, - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 16, - "column": 7, - "offset": 167 - }, - "end": { - "line": 16, - "column": 8, - "offset": 168 - } - } - }, - { - "type": "linkReference", - "children": [ - { - "type": "text", - "value": "that", - "position": { - "start": { - "line": 16, - "column": 9, - "offset": 169 - }, - "end": { - "line": 16, - "column": 13, - "offset": 173 - } - } - } - ], - "position": { - "start": { - "line": 16, - "column": 8, - "offset": 168 - }, - "end": { - "line": 16, - "column": 14, - "offset": 174 - } - }, - "label": "that", - "identifier": "that", - "referenceType": "shortcut" - }, - { - "type": "text", - "value": " and the ", - "position": { - "start": { - "line": 16, - "column": 14, - "offset": 174 - }, - "end": { - "line": 16, - "column": 23, - "offset": 183 - } - } - }, - { - "type": "linkReference", - "children": [ - { - "type": "text", - "value": "other", - "position": { - "start": { - "line": 16, - "column": 24, - "offset": 184 - }, - "end": { - "line": 16, - "column": 29, - "offset": 189 - } - } - } - ], - "position": { - "start": { - "line": 16, - "column": 23, - "offset": 183 - }, - "end": { - "line": 16, - "column": 30, - "offset": 190 - } - }, - "label": "other", - "identifier": "other", - "referenceType": "shortcut" - } - ], - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 161 - }, - "end": { - "line": 16, - "column": 30, - "offset": 190 - } - } - }, - { - "type": "definition", - "identifier": "this", - "label": "this", - "title": null, - "url": "/this", - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 192 - }, - "end": { - "line": 18, - "column": 14, - "offset": 205 - } - } - }, - { - "type": "definition", - "identifier": "that", - "label": "that", - "title": null, - "url": "/that", - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 206 - }, - "end": { - "line": 19, - "column": 14, - "offset": 219 - } - } - }, - { - "type": "definition", - "identifier": "other", - "label": "other", - "title": null, - "url": "/other", - "position": { - "start": { - "line": 20, - "column": 1, - "offset": 220 - }, - "end": { - "line": 20, - "column": 16, - "offset": 235 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 21, - "column": 1, - "offset": 236 - } - } -} diff --git a/test/fixtures/tree/links-text-delimiters.json b/test/fixtures/tree/links-text-delimiters.json deleted file mode 100644 index b9ddbc157..000000000 --- a/test/fixtures/tree/links-text-delimiters.json +++ /dev/null @@ -1,255 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./hello-world.html", - "children": [ - { - "type": "text", - "value": "Hello [world]!", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 16, - "offset": 15 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 37, - "offset": 36 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 37, - "offset": 36 - }, - "end": { - "line": 1, - "column": 38, - "offset": 37 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 38, - "offset": 37 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./hello-world.html", - "children": [ - { - "type": "text", - "value": "Hello [world]!", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 40 - }, - "end": { - "line": 3, - "column": 16, - "offset": 54 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 39 - }, - "end": { - "line": 3, - "column": 39, - "offset": 77 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 39, - "offset": 77 - }, - "end": { - "line": 3, - "column": 40, - "offset": 78 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 39 - }, - "end": { - "line": 3, - "column": 40, - "offset": 78 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./hello-world.html", - "alt": "Hello [world]!", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 80 - }, - "end": { - "line": 5, - "column": 38, - "offset": 117 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 38, - "offset": 117 - }, - "end": { - "line": 5, - "column": 39, - "offset": 118 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 80 - }, - "end": { - "line": 5, - "column": 39, - "offset": 118 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./hello-world.html", - "alt": "Hello [world]!", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 120 - }, - "end": { - "line": 7, - "column": 40, - "offset": 159 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 40, - "offset": 159 - }, - "end": { - "line": 7, - "column": 41, - "offset": 160 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 120 - }, - "end": { - "line": 7, - "column": 41, - "offset": 160 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 161 - } - } -} diff --git a/test/fixtures/tree/links-text-empty.json b/test/fixtures/tree/links-text-empty.json deleted file mode 100644 index fe4075bbf..000000000 --- a/test/fixtures/tree/links-text-empty.json +++ /dev/null @@ -1,221 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./hello-world.html", - "children": [], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 23, - "offset": 22 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 23, - "offset": 22 - }, - "end": { - "line": 1, - "column": 24, - "offset": 23 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 24, - "offset": 23 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./hello-world.html", - "children": [], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 25 - }, - "end": { - "line": 3, - "column": 25, - "offset": 49 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 25, - "offset": 49 - }, - "end": { - "line": 3, - "column": 26, - "offset": 50 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 25 - }, - "end": { - "line": 3, - "column": 26, - "offset": 50 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./hello-world.html", - "alt": "", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 52 - }, - "end": { - "line": 5, - "column": 24, - "offset": 75 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 24, - "offset": 75 - }, - "end": { - "line": 5, - "column": 25, - "offset": 76 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 52 - }, - "end": { - "line": 5, - "column": 25, - "offset": 76 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./hello-world.html", - "alt": "", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 78 - }, - "end": { - "line": 7, - "column": 26, - "offset": 103 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 26, - "offset": 103 - }, - "end": { - "line": 7, - "column": 27, - "offset": 104 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 78 - }, - "end": { - "line": 7, - "column": 27, - "offset": 104 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 105 - } - } -} diff --git a/test/fixtures/tree/links-text-entity-delimiters.json b/test/fixtures/tree/links-text-entity-delimiters.json deleted file mode 100644 index e992ad223..000000000 --- a/test/fixtures/tree/links-text-entity-delimiters.json +++ /dev/null @@ -1,493 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./hello-world.html", - "children": [ - { - "type": "text", - "value": "Hello [world]!", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 26, - "offset": 25 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 47, - "offset": 46 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 47, - "offset": 46 - }, - "end": { - "line": 1, - "column": 48, - "offset": 47 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 48, - "offset": 47 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./hello-world.html", - "children": [ - { - "type": "text", - "value": "Hello [world]!", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 50 - }, - "end": { - "line": 3, - "column": 26, - "offset": 74 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 49 - }, - "end": { - "line": 3, - "column": 49, - "offset": 97 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 49, - "offset": 97 - }, - "end": { - "line": 3, - "column": 50, - "offset": 98 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 49 - }, - "end": { - "line": 3, - "column": 50, - "offset": 98 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./hello-world.html", - "alt": "Hello [world]!", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 100 - }, - "end": { - "line": 5, - "column": 48, - "offset": 147 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 48, - "offset": 147 - }, - "end": { - "line": 5, - "column": 49, - "offset": 148 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 100 - }, - "end": { - "line": 5, - "column": 49, - "offset": 148 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./hello-world.html", - "alt": "Hello [world]!", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 150 - }, - "end": { - "line": 7, - "column": 50, - "offset": 199 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 50, - "offset": 199 - }, - "end": { - "line": 7, - "column": 51, - "offset": 200 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 150 - }, - "end": { - "line": 7, - "column": 51, - "offset": 200 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./hello-world.html", - "children": [ - { - "type": "text", - "value": "Hello [world]!", - "position": { - "start": { - "line": 9, - "column": 2, - "offset": 203 - }, - "end": { - "line": 9, - "column": 26, - "offset": 227 - } - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 202 - }, - "end": { - "line": 9, - "column": 47, - "offset": 248 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 9, - "column": 47, - "offset": 248 - }, - "end": { - "line": 9, - "column": 48, - "offset": 249 - } - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 202 - }, - "end": { - "line": 9, - "column": 48, - "offset": 249 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./hello-world.html", - "children": [ - { - "type": "text", - "value": "Hello [world]!", - "position": { - "start": { - "line": 11, - "column": 2, - "offset": 252 - }, - "end": { - "line": 11, - "column": 26, - "offset": 276 - } - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 251 - }, - "end": { - "line": 11, - "column": 49, - "offset": 299 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 11, - "column": 49, - "offset": 299 - }, - "end": { - "line": 11, - "column": 50, - "offset": 300 - } - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 251 - }, - "end": { - "line": 11, - "column": 50, - "offset": 300 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./hello-world.html", - "alt": "Hello [world]!", - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 302 - }, - "end": { - "line": 13, - "column": 48, - "offset": 349 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 13, - "column": 48, - "offset": 349 - }, - "end": { - "line": 13, - "column": 49, - "offset": 350 - } - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 302 - }, - "end": { - "line": 13, - "column": 49, - "offset": 350 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./hello-world.html", - "alt": "Hello [world]!", - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 352 - }, - "end": { - "line": 15, - "column": 50, - "offset": 401 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 15, - "column": 50, - "offset": 401 - }, - "end": { - "line": 15, - "column": 51, - "offset": 402 - } - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 352 - }, - "end": { - "line": 15, - "column": 51, - "offset": 402 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 16, - "column": 1, - "offset": 403 - } - } -} diff --git a/test/fixtures/tree/links-text-escaped-delimiters.json b/test/fixtures/tree/links-text-escaped-delimiters.json deleted file mode 100644 index 00dc863a5..000000000 --- a/test/fixtures/tree/links-text-escaped-delimiters.json +++ /dev/null @@ -1,255 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./hello-world.html", - "children": [ - { - "type": "text", - "value": "Hello [world]!", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 18, - "offset": 17 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 39, - "offset": 38 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 39, - "offset": 38 - }, - "end": { - "line": 1, - "column": 40, - "offset": 39 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 40, - "offset": 39 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./hello-world.html", - "children": [ - { - "type": "text", - "value": "Hello [world]!", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 42 - }, - "end": { - "line": 3, - "column": 18, - "offset": 58 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 41 - }, - "end": { - "line": 3, - "column": 41, - "offset": 81 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 41, - "offset": 81 - }, - "end": { - "line": 3, - "column": 42, - "offset": 82 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 41 - }, - "end": { - "line": 3, - "column": 42, - "offset": 82 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./hello-world.html", - "alt": "Hello [world]!", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 84 - }, - "end": { - "line": 5, - "column": 40, - "offset": 123 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 40, - "offset": 123 - }, - "end": { - "line": 5, - "column": 41, - "offset": 124 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 84 - }, - "end": { - "line": 5, - "column": 41, - "offset": 124 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./hello-world.html", - "alt": "Hello [world]!", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 126 - }, - "end": { - "line": 7, - "column": 42, - "offset": 167 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 42, - "offset": 167 - }, - "end": { - "line": 7, - "column": 43, - "offset": 168 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 126 - }, - "end": { - "line": 7, - "column": 43, - "offset": 168 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 169 - } - } -} diff --git a/test/fixtures/tree/links-text-mismatched-delimiters.json b/test/fixtures/tree/links-text-mismatched-delimiters.json deleted file mode 100644 index 44fca7e14..000000000 --- a/test/fixtures/tree/links-text-mismatched-delimiters.json +++ /dev/null @@ -1,353 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[Hello ", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 8, - "offset": 7 - } - } - }, - { - "type": "link", - "title": null, - "url": "./hello-world.html", - "children": [ - { - "type": "text", - "value": "world!", - "position": { - "start": { - "line": 1, - "column": 9, - "offset": 8 - }, - "end": { - "line": 1, - "column": 15, - "offset": 14 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 8, - "offset": 7 - }, - "end": { - "line": 1, - "column": 36, - "offset": 35 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 36, - "offset": 35 - }, - "end": { - "line": 1, - "column": 37, - "offset": 36 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 37, - "offset": 36 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[Hello ", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 38 - }, - "end": { - "line": 3, - "column": 8, - "offset": 45 - } - } - }, - { - "type": "link", - "title": null, - "url": "./hello-world.html", - "children": [ - { - "type": "text", - "value": "world!", - "position": { - "start": { - "line": 3, - "column": 9, - "offset": 46 - }, - "end": { - "line": 3, - "column": 15, - "offset": 52 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 8, - "offset": 45 - }, - "end": { - "line": 3, - "column": 38, - "offset": 75 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 38, - "offset": 75 - }, - "end": { - "line": 3, - "column": 39, - "offset": 76 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 38 - }, - "end": { - "line": 3, - "column": 39, - "offset": 76 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "![Hello ", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 78 - }, - "end": { - "line": 5, - "column": 9, - "offset": 86 - } - } - }, - { - "type": "link", - "title": null, - "url": "./hello-world.html", - "children": [ - { - "type": "text", - "value": "world!", - "position": { - "start": { - "line": 5, - "column": 10, - "offset": 87 - }, - "end": { - "line": 5, - "column": 16, - "offset": 93 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 9, - "offset": 86 - }, - "end": { - "line": 5, - "column": 37, - "offset": 114 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 37, - "offset": 114 - }, - "end": { - "line": 5, - "column": 38, - "offset": 115 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 78 - }, - "end": { - "line": 5, - "column": 38, - "offset": 115 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "![Hello ", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 117 - }, - "end": { - "line": 7, - "column": 9, - "offset": 125 - } - } - }, - { - "type": "link", - "title": null, - "url": "./hello-world.html", - "children": [ - { - "type": "text", - "value": "world!", - "position": { - "start": { - "line": 7, - "column": 10, - "offset": 126 - }, - "end": { - "line": 7, - "column": 16, - "offset": 132 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 9, - "offset": 125 - }, - "end": { - "line": 7, - "column": 39, - "offset": 155 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 39, - "offset": 155 - }, - "end": { - "line": 7, - "column": 40, - "offset": 156 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 117 - }, - "end": { - "line": 7, - "column": 40, - "offset": 156 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 157 - } - } -} diff --git a/test/fixtures/tree/links-title-double-quotes-delimiters.json b/test/fixtures/tree/links-title-double-quotes-delimiters.json deleted file mode 100644 index bf50d8e7c..000000000 --- a/test/fixtures/tree/links-title-double-quotes-delimiters.json +++ /dev/null @@ -1,149 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[Hello](./world.html \"Hello \"World\" Hello!\").", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 46, - "offset": 45 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 46, - "offset": 45 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[Hello](<./world.html> \"Hello \"World\" Hello!\").", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 47 - }, - "end": { - "line": 3, - "column": 48, - "offset": 94 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 47 - }, - "end": { - "line": 3, - "column": 48, - "offset": 94 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "![Hello](./world.html \"Hello \"World\" Hello!\").", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 96 - }, - "end": { - "line": 5, - "column": 47, - "offset": 142 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 96 - }, - "end": { - "line": 5, - "column": 47, - "offset": 142 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "![Hello](<./world.html> \"Hello \"World\" Hello!\").", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 144 - }, - "end": { - "line": 7, - "column": 49, - "offset": 192 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 144 - }, - "end": { - "line": 7, - "column": 49, - "offset": 192 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 193 - } - } -} diff --git a/test/fixtures/tree/links-title-double-quotes-entity-delimiters.json b/test/fixtures/tree/links-title-double-quotes-entity-delimiters.json deleted file mode 100644 index b1f0c5057..000000000 --- a/test/fixtures/tree/links-title-double-quotes-entity-delimiters.json +++ /dev/null @@ -1,255 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "Hello \"World\" Hello!", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 55, - "offset": 54 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 55, - "offset": 54 - }, - "end": { - "line": 1, - "column": 56, - "offset": 55 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 56, - "offset": 55 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "Hello \"World\" Hello!", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 58 - }, - "end": { - "line": 3, - "column": 7, - "offset": 63 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 57 - }, - "end": { - "line": 3, - "column": 57, - "offset": 113 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 57, - "offset": 113 - }, - "end": { - "line": 3, - "column": 58, - "offset": 114 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 57 - }, - "end": { - "line": 3, - "column": 58, - "offset": 114 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "Hello \"World\" Hello!", - "url": "./world.html", - "alt": "Hello", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 116 - }, - "end": { - "line": 5, - "column": 56, - "offset": 171 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 56, - "offset": 171 - }, - "end": { - "line": 5, - "column": 57, - "offset": 172 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 116 - }, - "end": { - "line": 5, - "column": 57, - "offset": 172 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "Hello \"World\" Hello!", - "url": "./world.html", - "alt": "Hello", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 174 - }, - "end": { - "line": 7, - "column": 58, - "offset": 231 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 58, - "offset": 231 - }, - "end": { - "line": 7, - "column": 59, - "offset": 232 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 174 - }, - "end": { - "line": 7, - "column": 59, - "offset": 232 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 233 - } - } -} diff --git a/test/fixtures/tree/links-title-double-quotes-escaped-delimiters.json b/test/fixtures/tree/links-title-double-quotes-escaped-delimiters.json deleted file mode 100644 index 74b589a98..000000000 --- a/test/fixtures/tree/links-title-double-quotes-escaped-delimiters.json +++ /dev/null @@ -1,255 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "Hello \"World\" Hello!", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 47, - "offset": 46 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 47, - "offset": 46 - }, - "end": { - "line": 1, - "column": 48, - "offset": 47 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 48, - "offset": 47 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "Hello \"World\" Hello!", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 50 - }, - "end": { - "line": 3, - "column": 7, - "offset": 55 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 49 - }, - "end": { - "line": 3, - "column": 49, - "offset": 97 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 49, - "offset": 97 - }, - "end": { - "line": 3, - "column": 50, - "offset": 98 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 49 - }, - "end": { - "line": 3, - "column": 50, - "offset": 98 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "Hello \"World\" Hello!", - "url": "./world.html", - "alt": "Hello", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 100 - }, - "end": { - "line": 5, - "column": 48, - "offset": 147 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 48, - "offset": 147 - }, - "end": { - "line": 5, - "column": 49, - "offset": 148 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 100 - }, - "end": { - "line": 5, - "column": 49, - "offset": 148 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "Hello \"World\" Hello!", - "url": "./world.html", - "alt": "Hello", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 150 - }, - "end": { - "line": 7, - "column": 50, - "offset": 199 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 50, - "offset": 199 - }, - "end": { - "line": 7, - "column": 51, - "offset": 200 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 150 - }, - "end": { - "line": 7, - "column": 51, - "offset": 200 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 201 - } - } -} diff --git a/test/fixtures/tree/links-title-double-quotes-mismatched-delimiters.json b/test/fixtures/tree/links-title-double-quotes-mismatched-delimiters.json deleted file mode 100644 index eead084e1..000000000 --- a/test/fixtures/tree/links-title-double-quotes-mismatched-delimiters.json +++ /dev/null @@ -1,149 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[Hello](./world.html \"Hello \"World Hello!\").", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 45, - "offset": 44 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 45, - "offset": 44 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[Hello](<./world.html> \"Hello \"World Hello!\").", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 46 - }, - "end": { - "line": 3, - "column": 47, - "offset": 92 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 46 - }, - "end": { - "line": 3, - "column": 47, - "offset": 92 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "![Hello](./world.html \"Hello \"World Hello!\").", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 94 - }, - "end": { - "line": 5, - "column": 46, - "offset": 139 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 94 - }, - "end": { - "line": 5, - "column": 46, - "offset": 139 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "![Hello](<./world.html> \"Hello \"World Hello!\").", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 141 - }, - "end": { - "line": 7, - "column": 48, - "offset": 188 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 141 - }, - "end": { - "line": 7, - "column": 48, - "offset": 188 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 189 - } - } -} diff --git a/test/fixtures/tree/links-title-double-quotes.json b/test/fixtures/tree/links-title-double-quotes.json deleted file mode 100644 index a4e96f50b..000000000 --- a/test/fixtures/tree/links-title-double-quotes.json +++ /dev/null @@ -1,255 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "Hello World!", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 37, - "offset": 36 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 37, - "offset": 36 - }, - "end": { - "line": 1, - "column": 38, - "offset": 37 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 38, - "offset": 37 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "Hello World!", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 40 - }, - "end": { - "line": 3, - "column": 7, - "offset": 45 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 39 - }, - "end": { - "line": 3, - "column": 39, - "offset": 77 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 39, - "offset": 77 - }, - "end": { - "line": 3, - "column": 40, - "offset": 78 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 39 - }, - "end": { - "line": 3, - "column": 40, - "offset": 78 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "Hello World!", - "url": "./world.html", - "alt": "Hello", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 80 - }, - "end": { - "line": 5, - "column": 38, - "offset": 117 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 38, - "offset": 117 - }, - "end": { - "line": 5, - "column": 39, - "offset": 118 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 80 - }, - "end": { - "line": 5, - "column": 39, - "offset": 118 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "Hello World!", - "url": "./world.html", - "alt": "Hello", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 120 - }, - "end": { - "line": 7, - "column": 40, - "offset": 159 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 40, - "offset": 159 - }, - "end": { - "line": 7, - "column": 41, - "offset": 160 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 120 - }, - "end": { - "line": 7, - "column": 41, - "offset": 160 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 161 - } - } -} diff --git a/test/fixtures/tree/links-title-empty-double-quotes.json b/test/fixtures/tree/links-title-empty-double-quotes.json deleted file mode 100644 index 57fa45f60..000000000 --- a/test/fixtures/tree/links-title-empty-double-quotes.json +++ /dev/null @@ -1,255 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 25, - "offset": 24 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 25, - "offset": 24 - }, - "end": { - "line": 1, - "column": 26, - "offset": 25 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 26, - "offset": 25 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 28 - }, - "end": { - "line": 3, - "column": 7, - "offset": 33 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 27 - }, - "end": { - "line": 3, - "column": 27, - "offset": 53 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 27, - "offset": 53 - }, - "end": { - "line": 3, - "column": 28, - "offset": 54 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 27 - }, - "end": { - "line": 3, - "column": 28, - "offset": 54 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./world.html", - "alt": "Hello", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 56 - }, - "end": { - "line": 5, - "column": 26, - "offset": 81 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 26, - "offset": 81 - }, - "end": { - "line": 5, - "column": 27, - "offset": 82 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 56 - }, - "end": { - "line": 5, - "column": 27, - "offset": 82 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./world.html", - "alt": "Hello", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 84 - }, - "end": { - "line": 7, - "column": 28, - "offset": 111 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 28, - "offset": 111 - }, - "end": { - "line": 7, - "column": 29, - "offset": 112 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 84 - }, - "end": { - "line": 7, - "column": 29, - "offset": 112 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 113 - } - } -} diff --git a/test/fixtures/tree/links-title-empty-parentheses.json b/test/fixtures/tree/links-title-empty-parentheses.json deleted file mode 100644 index 57fa45f60..000000000 --- a/test/fixtures/tree/links-title-empty-parentheses.json +++ /dev/null @@ -1,255 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 25, - "offset": 24 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 25, - "offset": 24 - }, - "end": { - "line": 1, - "column": 26, - "offset": 25 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 26, - "offset": 25 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 28 - }, - "end": { - "line": 3, - "column": 7, - "offset": 33 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 27 - }, - "end": { - "line": 3, - "column": 27, - "offset": 53 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 27, - "offset": 53 - }, - "end": { - "line": 3, - "column": 28, - "offset": 54 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 27 - }, - "end": { - "line": 3, - "column": 28, - "offset": 54 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./world.html", - "alt": "Hello", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 56 - }, - "end": { - "line": 5, - "column": 26, - "offset": 81 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 26, - "offset": 81 - }, - "end": { - "line": 5, - "column": 27, - "offset": 82 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 56 - }, - "end": { - "line": 5, - "column": 27, - "offset": 82 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./world.html", - "alt": "Hello", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 84 - }, - "end": { - "line": 7, - "column": 28, - "offset": 111 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 28, - "offset": 111 - }, - "end": { - "line": 7, - "column": 29, - "offset": 112 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 84 - }, - "end": { - "line": 7, - "column": 29, - "offset": 112 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 113 - } - } -} diff --git a/test/fixtures/tree/links-title-empty-single-quotes.json b/test/fixtures/tree/links-title-empty-single-quotes.json deleted file mode 100644 index 57fa45f60..000000000 --- a/test/fixtures/tree/links-title-empty-single-quotes.json +++ /dev/null @@ -1,255 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 25, - "offset": 24 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 25, - "offset": 24 - }, - "end": { - "line": 1, - "column": 26, - "offset": 25 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 26, - "offset": 25 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 28 - }, - "end": { - "line": 3, - "column": 7, - "offset": 33 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 27 - }, - "end": { - "line": 3, - "column": 27, - "offset": 53 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 27, - "offset": 53 - }, - "end": { - "line": 3, - "column": 28, - "offset": 54 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 27 - }, - "end": { - "line": 3, - "column": 28, - "offset": 54 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./world.html", - "alt": "Hello", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 56 - }, - "end": { - "line": 5, - "column": 26, - "offset": 81 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 26, - "offset": 81 - }, - "end": { - "line": 5, - "column": 27, - "offset": 82 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 56 - }, - "end": { - "line": 5, - "column": 27, - "offset": 82 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./world.html", - "alt": "Hello", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 84 - }, - "end": { - "line": 7, - "column": 28, - "offset": 111 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 28, - "offset": 111 - }, - "end": { - "line": 7, - "column": 29, - "offset": 112 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 84 - }, - "end": { - "line": 7, - "column": 29, - "offset": 112 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 113 - } - } -} diff --git a/test/fixtures/tree/links-title-parentheses.json b/test/fixtures/tree/links-title-parentheses.json deleted file mode 100644 index a4e96f50b..000000000 --- a/test/fixtures/tree/links-title-parentheses.json +++ /dev/null @@ -1,255 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "Hello World!", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 37, - "offset": 36 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 37, - "offset": 36 - }, - "end": { - "line": 1, - "column": 38, - "offset": 37 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 38, - "offset": 37 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "Hello World!", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 40 - }, - "end": { - "line": 3, - "column": 7, - "offset": 45 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 39 - }, - "end": { - "line": 3, - "column": 39, - "offset": 77 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 39, - "offset": 77 - }, - "end": { - "line": 3, - "column": 40, - "offset": 78 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 39 - }, - "end": { - "line": 3, - "column": 40, - "offset": 78 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "Hello World!", - "url": "./world.html", - "alt": "Hello", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 80 - }, - "end": { - "line": 5, - "column": 38, - "offset": 117 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 38, - "offset": 117 - }, - "end": { - "line": 5, - "column": 39, - "offset": 118 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 80 - }, - "end": { - "line": 5, - "column": 39, - "offset": 118 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "Hello World!", - "url": "./world.html", - "alt": "Hello", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 120 - }, - "end": { - "line": 7, - "column": 40, - "offset": 159 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 40, - "offset": 159 - }, - "end": { - "line": 7, - "column": 41, - "offset": 160 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 120 - }, - "end": { - "line": 7, - "column": 41, - "offset": 160 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 161 - } - } -} diff --git a/test/fixtures/tree/links-title-single-quotes-delimiters.json b/test/fixtures/tree/links-title-single-quotes-delimiters.json deleted file mode 100644 index cf1eb6781..000000000 --- a/test/fixtures/tree/links-title-single-quotes-delimiters.json +++ /dev/null @@ -1,149 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[Hello](./world.html 'Hello 'World' Hello!').", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 46, - "offset": 45 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 46, - "offset": 45 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[Hello](<./world.html> 'Hello 'World' Hello!').", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 47 - }, - "end": { - "line": 3, - "column": 48, - "offset": 94 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 47 - }, - "end": { - "line": 3, - "column": 48, - "offset": 94 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "![Hello](./world.html 'Hello 'World' Hello!').", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 96 - }, - "end": { - "line": 5, - "column": 47, - "offset": 142 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 96 - }, - "end": { - "line": 5, - "column": 47, - "offset": 142 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "![Hello](<./world.html> 'Hello 'World' Hello!').", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 144 - }, - "end": { - "line": 7, - "column": 49, - "offset": 192 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 144 - }, - "end": { - "line": 7, - "column": 49, - "offset": 192 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 193 - } - } -} diff --git a/test/fixtures/tree/links-title-single-quotes-entity-delimiters.json b/test/fixtures/tree/links-title-single-quotes-entity-delimiters.json deleted file mode 100644 index 6dc56019c..000000000 --- a/test/fixtures/tree/links-title-single-quotes-entity-delimiters.json +++ /dev/null @@ -1,255 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "Hello 'World' Hello!", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 55, - "offset": 54 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 55, - "offset": 54 - }, - "end": { - "line": 1, - "column": 56, - "offset": 55 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 56, - "offset": 55 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "Hello 'World' Hello!", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 58 - }, - "end": { - "line": 3, - "column": 7, - "offset": 63 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 57 - }, - "end": { - "line": 3, - "column": 57, - "offset": 113 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 57, - "offset": 113 - }, - "end": { - "line": 3, - "column": 58, - "offset": 114 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 57 - }, - "end": { - "line": 3, - "column": 58, - "offset": 114 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "Hello 'World' Hello!", - "url": "./world.html", - "alt": "Hello", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 116 - }, - "end": { - "line": 5, - "column": 56, - "offset": 171 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 56, - "offset": 171 - }, - "end": { - "line": 5, - "column": 57, - "offset": 172 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 116 - }, - "end": { - "line": 5, - "column": 57, - "offset": 172 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "Hello 'World' Hello!", - "url": "./world.html", - "alt": "Hello", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 174 - }, - "end": { - "line": 7, - "column": 58, - "offset": 231 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 58, - "offset": 231 - }, - "end": { - "line": 7, - "column": 59, - "offset": 232 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 174 - }, - "end": { - "line": 7, - "column": 59, - "offset": 232 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 233 - } - } -} diff --git a/test/fixtures/tree/links-title-single-quotes-escaped-delimiters.json b/test/fixtures/tree/links-title-single-quotes-escaped-delimiters.json deleted file mode 100644 index 7edd374df..000000000 --- a/test/fixtures/tree/links-title-single-quotes-escaped-delimiters.json +++ /dev/null @@ -1,255 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "Hello 'World' Hello!", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 47, - "offset": 46 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 47, - "offset": 46 - }, - "end": { - "line": 1, - "column": 48, - "offset": 47 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 48, - "offset": 47 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "Hello 'World' Hello!", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 50 - }, - "end": { - "line": 3, - "column": 7, - "offset": 55 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 49 - }, - "end": { - "line": 3, - "column": 49, - "offset": 97 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 49, - "offset": 97 - }, - "end": { - "line": 3, - "column": 50, - "offset": 98 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 49 - }, - "end": { - "line": 3, - "column": 50, - "offset": 98 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "Hello 'World' Hello!", - "url": "./world.html", - "alt": "Hello", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 100 - }, - "end": { - "line": 5, - "column": 48, - "offset": 147 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 48, - "offset": 147 - }, - "end": { - "line": 5, - "column": 49, - "offset": 148 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 100 - }, - "end": { - "line": 5, - "column": 49, - "offset": 148 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "Hello 'World' Hello!", - "url": "./world.html", - "alt": "Hello", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 150 - }, - "end": { - "line": 7, - "column": 50, - "offset": 199 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 50, - "offset": 199 - }, - "end": { - "line": 7, - "column": 51, - "offset": 200 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 150 - }, - "end": { - "line": 7, - "column": 51, - "offset": 200 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 201 - } - } -} diff --git a/test/fixtures/tree/links-title-single-quotes-mismatched-delimiters.json b/test/fixtures/tree/links-title-single-quotes-mismatched-delimiters.json deleted file mode 100644 index 108eada49..000000000 --- a/test/fixtures/tree/links-title-single-quotes-mismatched-delimiters.json +++ /dev/null @@ -1,149 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[Hello](./world.html 'Hello 'World Hello!').", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 45, - "offset": 44 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 45, - "offset": 44 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[Hello](<./world.html> 'Hello 'World Hello!').", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 46 - }, - "end": { - "line": 3, - "column": 47, - "offset": 92 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 46 - }, - "end": { - "line": 3, - "column": 47, - "offset": 92 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "![Hello](./world.html 'Hello 'World Hello!').", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 94 - }, - "end": { - "line": 5, - "column": 46, - "offset": 139 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 94 - }, - "end": { - "line": 5, - "column": 46, - "offset": 139 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "![Hello](<./world.html> 'Hello 'World Hello!').", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 141 - }, - "end": { - "line": 7, - "column": 48, - "offset": 188 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 141 - }, - "end": { - "line": 7, - "column": 48, - "offset": 188 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 189 - } - } -} diff --git a/test/fixtures/tree/links-title-single-quotes.json b/test/fixtures/tree/links-title-single-quotes.json deleted file mode 100644 index a4e96f50b..000000000 --- a/test/fixtures/tree/links-title-single-quotes.json +++ /dev/null @@ -1,255 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "Hello World!", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 37, - "offset": 36 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 37, - "offset": 36 - }, - "end": { - "line": 1, - "column": 38, - "offset": 37 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 38, - "offset": 37 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "Hello World!", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 40 - }, - "end": { - "line": 3, - "column": 7, - "offset": 45 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 39 - }, - "end": { - "line": 3, - "column": 39, - "offset": 77 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 39, - "offset": 77 - }, - "end": { - "line": 3, - "column": 40, - "offset": 78 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 39 - }, - "end": { - "line": 3, - "column": 40, - "offset": 78 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "Hello World!", - "url": "./world.html", - "alt": "Hello", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 80 - }, - "end": { - "line": 5, - "column": 38, - "offset": 117 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 38, - "offset": 117 - }, - "end": { - "line": 5, - "column": 39, - "offset": 118 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 80 - }, - "end": { - "line": 5, - "column": 39, - "offset": 118 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "Hello World!", - "url": "./world.html", - "alt": "Hello", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 120 - }, - "end": { - "line": 7, - "column": 40, - "offset": 159 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 40, - "offset": 159 - }, - "end": { - "line": 7, - "column": 41, - "offset": 160 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 120 - }, - "end": { - "line": 7, - "column": 41, - "offset": 160 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 161 - } - } -} diff --git a/test/fixtures/tree/links-title-unclosed.json b/test/fixtures/tree/links-title-unclosed.json deleted file mode 100644 index dd42490ee..000000000 --- a/test/fixtures/tree/links-title-unclosed.json +++ /dev/null @@ -1,413 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[Hello](./world.html 'Hello", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 28, - "offset": 27 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 28, - "offset": 27 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[Hello](<./world.html> 'Hello", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 29 - }, - "end": { - "line": 3, - "column": 30, - "offset": 58 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 29 - }, - "end": { - "line": 3, - "column": 30, - "offset": 58 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "![Hello](./world.html 'Hello", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 60 - }, - "end": { - "line": 5, - "column": 29, - "offset": 88 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 60 - }, - "end": { - "line": 5, - "column": 29, - "offset": 88 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "![Hello](<./world.html> 'Hello", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 90 - }, - "end": { - "line": 7, - "column": 31, - "offset": 120 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 90 - }, - "end": { - "line": 7, - "column": 31, - "offset": 120 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[Hello](./world.html \"Hello", - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 122 - }, - "end": { - "line": 9, - "column": 28, - "offset": 149 - } - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 122 - }, - "end": { - "line": 9, - "column": 28, - "offset": 149 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[Hello](<./world.html> \"Hello", - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 151 - }, - "end": { - "line": 11, - "column": 30, - "offset": 180 - } - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 151 - }, - "end": { - "line": 11, - "column": 30, - "offset": 180 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "![Hello](./world.html \"Hello", - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 182 - }, - "end": { - "line": 13, - "column": 29, - "offset": 210 - } - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 182 - }, - "end": { - "line": 13, - "column": 29, - "offset": 210 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "![Hello](<./world.html> \"Hello", - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 212 - }, - "end": { - "line": 15, - "column": 31, - "offset": 242 - } - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 212 - }, - "end": { - "line": 15, - "column": 31, - "offset": 242 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[Hello](./world.html (Hello", - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 244 - }, - "end": { - "line": 17, - "column": 28, - "offset": 271 - } - } - } - ], - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 244 - }, - "end": { - "line": 17, - "column": 28, - "offset": 271 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[Hello](<./world.html> (Hello", - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 273 - }, - "end": { - "line": 19, - "column": 30, - "offset": 302 - } - } - } - ], - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 273 - }, - "end": { - "line": 19, - "column": 30, - "offset": 302 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "![Hello](./world.html (Hello", - "position": { - "start": { - "line": 21, - "column": 1, - "offset": 304 - }, - "end": { - "line": 21, - "column": 29, - "offset": 332 - } - } - } - ], - "position": { - "start": { - "line": 21, - "column": 1, - "offset": 304 - }, - "end": { - "line": 21, - "column": 29, - "offset": 332 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "![Hello](<./world.html> (Hello", - "position": { - "start": { - "line": 23, - "column": 1, - "offset": 334 - }, - "end": { - "line": 23, - "column": 31, - "offset": 364 - } - } - } - ], - "position": { - "start": { - "line": 23, - "column": 1, - "offset": 334 - }, - "end": { - "line": 23, - "column": 31, - "offset": 364 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 24, - "column": 1, - "offset": 365 - } - } -} diff --git a/test/fixtures/tree/links-url-empty-title-double-quotes.json b/test/fixtures/tree/links-url-empty-title-double-quotes.json deleted file mode 100644 index c19fda55c..000000000 --- a/test/fixtures/tree/links-url-empty-title-double-quotes.json +++ /dev/null @@ -1,374 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "\"World!\"", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 18, - "offset": 17 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 18, - "offset": 17 - }, - "end": { - "line": 1, - "column": 19, - "offset": 18 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 19, - "offset": 18 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "\"World!\"", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 21 - }, - "end": { - "line": 3, - "column": 7, - "offset": 26 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 20 - }, - "end": { - "line": 3, - "column": 19, - "offset": 38 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 19, - "offset": 38 - }, - "end": { - "line": 3, - "column": 20, - "offset": 39 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 20 - }, - "end": { - "line": 3, - "column": 20, - "offset": 39 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "World!", - "url": "", - "children": [ - { - "type": "text", - "value": "World", - "position": { - "start": { - "line": 5, - "column": 2, - "offset": 42 - }, - "end": { - "line": 5, - "column": 7, - "offset": 47 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 41 - }, - "end": { - "line": 5, - "column": 21, - "offset": 61 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 21, - "offset": 61 - }, - "end": { - "line": 5, - "column": 22, - "offset": 62 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 41 - }, - "end": { - "line": 5, - "column": 22, - "offset": 62 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "\"World!\"", - "alt": "Hello", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 64 - }, - "end": { - "line": 7, - "column": 19, - "offset": 82 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 19, - "offset": 82 - }, - "end": { - "line": 7, - "column": 20, - "offset": 83 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 64 - }, - "end": { - "line": 7, - "column": 20, - "offset": 83 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "\"World!\"", - "alt": "Hello", - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 85 - }, - "end": { - "line": 9, - "column": 20, - "offset": 104 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 9, - "column": 20, - "offset": 104 - }, - "end": { - "line": 9, - "column": 21, - "offset": 105 - } - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 85 - }, - "end": { - "line": 9, - "column": 21, - "offset": 105 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "World!", - "url": "", - "alt": "World", - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 107 - }, - "end": { - "line": 11, - "column": 22, - "offset": 128 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 11, - "column": 22, - "offset": 128 - }, - "end": { - "line": 11, - "column": 23, - "offset": 129 - } - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 107 - }, - "end": { - "line": 11, - "column": 23, - "offset": 129 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 12, - "column": 1, - "offset": 130 - } - } -} diff --git a/test/fixtures/tree/links-url-empty-title-parentheses.json b/test/fixtures/tree/links-url-empty-title-parentheses.json deleted file mode 100644 index 19cdfd2ab..000000000 --- a/test/fixtures/tree/links-url-empty-title-parentheses.json +++ /dev/null @@ -1,374 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "(World!)", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 18, - "offset": 17 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 18, - "offset": 17 - }, - "end": { - "line": 1, - "column": 19, - "offset": 18 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 19, - "offset": 18 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "(World!)", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 21 - }, - "end": { - "line": 3, - "column": 7, - "offset": 26 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 20 - }, - "end": { - "line": 3, - "column": 19, - "offset": 38 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 19, - "offset": 38 - }, - "end": { - "line": 3, - "column": 20, - "offset": 39 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 20 - }, - "end": { - "line": 3, - "column": 20, - "offset": 39 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "World!", - "url": "", - "children": [ - { - "type": "text", - "value": "World", - "position": { - "start": { - "line": 5, - "column": 2, - "offset": 42 - }, - "end": { - "line": 5, - "column": 7, - "offset": 47 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 41 - }, - "end": { - "line": 5, - "column": 21, - "offset": 61 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 21, - "offset": 61 - }, - "end": { - "line": 5, - "column": 22, - "offset": 62 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 41 - }, - "end": { - "line": 5, - "column": 22, - "offset": 62 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "(World!)", - "alt": "Hello", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 64 - }, - "end": { - "line": 7, - "column": 19, - "offset": 82 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 19, - "offset": 82 - }, - "end": { - "line": 7, - "column": 20, - "offset": 83 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 64 - }, - "end": { - "line": 7, - "column": 20, - "offset": 83 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "(World!)", - "alt": "Hello", - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 85 - }, - "end": { - "line": 9, - "column": 20, - "offset": 104 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 9, - "column": 20, - "offset": 104 - }, - "end": { - "line": 9, - "column": 21, - "offset": 105 - } - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 85 - }, - "end": { - "line": 9, - "column": 21, - "offset": 105 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "World!", - "url": "", - "alt": "World", - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 107 - }, - "end": { - "line": 11, - "column": 22, - "offset": 128 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 11, - "column": 22, - "offset": 128 - }, - "end": { - "line": 11, - "column": 23, - "offset": 129 - } - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 107 - }, - "end": { - "line": 11, - "column": 23, - "offset": 129 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 12, - "column": 1, - "offset": 130 - } - } -} diff --git a/test/fixtures/tree/links-url-empty-title-single-quotes.json b/test/fixtures/tree/links-url-empty-title-single-quotes.json deleted file mode 100644 index aa7167304..000000000 --- a/test/fixtures/tree/links-url-empty-title-single-quotes.json +++ /dev/null @@ -1,374 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "'World!'", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 18, - "offset": 17 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 18, - "offset": 17 - }, - "end": { - "line": 1, - "column": 19, - "offset": 18 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 19, - "offset": 18 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "'World!'", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 21 - }, - "end": { - "line": 3, - "column": 7, - "offset": 26 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 20 - }, - "end": { - "line": 3, - "column": 19, - "offset": 38 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 19, - "offset": 38 - }, - "end": { - "line": 3, - "column": 20, - "offset": 39 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 20 - }, - "end": { - "line": 3, - "column": 20, - "offset": 39 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "World!", - "url": "", - "children": [ - { - "type": "text", - "value": "World", - "position": { - "start": { - "line": 5, - "column": 2, - "offset": 42 - }, - "end": { - "line": 5, - "column": 7, - "offset": 47 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 41 - }, - "end": { - "line": 5, - "column": 21, - "offset": 61 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 21, - "offset": 61 - }, - "end": { - "line": 5, - "column": 22, - "offset": 62 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 41 - }, - "end": { - "line": 5, - "column": 22, - "offset": 62 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "'World!'", - "alt": "Hello", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 64 - }, - "end": { - "line": 7, - "column": 19, - "offset": 82 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 19, - "offset": 82 - }, - "end": { - "line": 7, - "column": 20, - "offset": 83 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 64 - }, - "end": { - "line": 7, - "column": 20, - "offset": 83 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "'World!'", - "alt": "Hello", - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 85 - }, - "end": { - "line": 9, - "column": 20, - "offset": 104 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 9, - "column": 20, - "offset": 104 - }, - "end": { - "line": 9, - "column": 21, - "offset": 105 - } - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 85 - }, - "end": { - "line": 9, - "column": 21, - "offset": 105 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "World!", - "url": "", - "alt": "World", - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 107 - }, - "end": { - "line": 11, - "column": 22, - "offset": 128 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 11, - "column": 22, - "offset": 128 - }, - "end": { - "line": 11, - "column": 23, - "offset": 129 - } - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 107 - }, - "end": { - "line": 11, - "column": 23, - "offset": 129 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 12, - "column": 1, - "offset": 130 - } - } -} diff --git a/test/fixtures/tree/links-url-empty.json b/test/fixtures/tree/links-url-empty.json deleted file mode 100644 index 461722ad4..000000000 --- a/test/fixtures/tree/links-url-empty.json +++ /dev/null @@ -1,255 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 10, - "offset": 9 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 10, - "offset": 9 - }, - "end": { - "line": 1, - "column": 11, - "offset": 10 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 11, - "offset": 10 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "", - "children": [ - { - "type": "text", - "value": "World", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 13 - }, - "end": { - "line": 3, - "column": 7, - "offset": 18 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 12 - }, - "end": { - "line": 3, - "column": 12, - "offset": 23 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 12, - "offset": 23 - }, - "end": { - "line": 3, - "column": 13, - "offset": 24 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 12 - }, - "end": { - "line": 3, - "column": 13, - "offset": 24 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "", - "alt": "Hello", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 26 - }, - "end": { - "line": 5, - "column": 11, - "offset": 36 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 11, - "offset": 36 - }, - "end": { - "line": 5, - "column": 12, - "offset": 37 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 26 - }, - "end": { - "line": 5, - "column": 12, - "offset": 37 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "", - "alt": "World", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 39 - }, - "end": { - "line": 7, - "column": 13, - "offset": 51 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 13, - "offset": 51 - }, - "end": { - "line": 7, - "column": 14, - "offset": 52 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 39 - }, - "end": { - "line": 7, - "column": 14, - "offset": 52 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 53 - } - } -} diff --git a/test/fixtures/tree/links-url-entities.json b/test/fixtures/tree/links-url-entities.json deleted file mode 100644 index 257c374f1..000000000 --- a/test/fixtures/tree/links-url-entities.json +++ /dev/null @@ -1,255 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "http://www.example.com?param=1®ion=here", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 52, - "offset": 51 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 52, - "offset": 51 - }, - "end": { - "line": 1, - "column": 53, - "offset": 52 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 53, - "offset": 52 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "http://www.example.com?param=1®ion=here", - "children": [ - { - "type": "text", - "value": "World", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 55 - }, - "end": { - "line": 3, - "column": 7, - "offset": 60 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 54 - }, - "end": { - "line": 3, - "column": 54, - "offset": 107 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 54, - "offset": 107 - }, - "end": { - "line": 3, - "column": 55, - "offset": 108 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 54 - }, - "end": { - "line": 3, - "column": 55, - "offset": 108 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "http://www.example.com?param=1®ion=here", - "alt": "Hello", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 110 - }, - "end": { - "line": 5, - "column": 53, - "offset": 162 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 53, - "offset": 162 - }, - "end": { - "line": 5, - "column": 54, - "offset": 163 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 110 - }, - "end": { - "line": 5, - "column": 54, - "offset": 163 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "http://www.example.com?param=1®ion=here", - "alt": "World", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 165 - }, - "end": { - "line": 7, - "column": 55, - "offset": 219 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 55, - "offset": 219 - }, - "end": { - "line": 7, - "column": 56, - "offset": 220 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 165 - }, - "end": { - "line": 7, - "column": 56, - "offset": 220 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 221 - } - } -} diff --git a/test/fixtures/tree/links-url-entity-parentheses.json b/test/fixtures/tree/links-url-entity-parentheses.json deleted file mode 100644 index 8a57fc885..000000000 --- a/test/fixtures/tree/links-url-entity-parentheses.json +++ /dev/null @@ -1,969 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./world(and-hello(world)", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 49, - "offset": 48 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 49, - "offset": 48 - }, - "end": { - "line": 1, - "column": 50, - "offset": 49 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 50, - "offset": 49 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./world(and-hello(world)", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 52 - }, - "end": { - "line": 3, - "column": 7, - "offset": 57 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 51 - }, - "end": { - "line": 3, - "column": 51, - "offset": 101 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 51, - "offset": 101 - }, - "end": { - "line": 3, - "column": 52, - "offset": 102 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 51 - }, - "end": { - "line": 3, - "column": 52, - "offset": 102 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./world(and)helloworld)", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 5, - "column": 2, - "offset": 105 - }, - "end": { - "line": 5, - "column": 7, - "offset": 110 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 104 - }, - "end": { - "line": 5, - "column": 48, - "offset": 151 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 48, - "offset": 151 - }, - "end": { - "line": 5, - "column": 49, - "offset": 152 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 104 - }, - "end": { - "line": 5, - "column": 49, - "offset": 152 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./world(and)helloworld)", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 7, - "column": 2, - "offset": 155 - }, - "end": { - "line": 7, - "column": 7, - "offset": 160 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 154 - }, - "end": { - "line": 7, - "column": 50, - "offset": 203 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 50, - "offset": 203 - }, - "end": { - "line": 7, - "column": 51, - "offset": 204 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 154 - }, - "end": { - "line": 7, - "column": 51, - "offset": 204 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./world(and-hello(world)", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 9, - "column": 2, - "offset": 207 - }, - "end": { - "line": 9, - "column": 7, - "offset": 212 - } - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 206 - }, - "end": { - "line": 9, - "column": 49, - "offset": 254 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 9, - "column": 49, - "offset": 254 - }, - "end": { - "line": 9, - "column": 50, - "offset": 255 - } - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 206 - }, - "end": { - "line": 9, - "column": 50, - "offset": 255 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./world(and-hello(world)", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 11, - "column": 2, - "offset": 258 - }, - "end": { - "line": 11, - "column": 7, - "offset": 263 - } - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 257 - }, - "end": { - "line": 11, - "column": 51, - "offset": 307 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 11, - "column": 51, - "offset": 307 - }, - "end": { - "line": 11, - "column": 52, - "offset": 308 - } - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 257 - }, - "end": { - "line": 11, - "column": 52, - "offset": 308 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./world(and)helloworld)", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 13, - "column": 2, - "offset": 311 - }, - "end": { - "line": 13, - "column": 7, - "offset": 316 - } - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 310 - }, - "end": { - "line": 13, - "column": 48, - "offset": 357 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 13, - "column": 48, - "offset": 357 - }, - "end": { - "line": 13, - "column": 49, - "offset": 358 - } - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 310 - }, - "end": { - "line": 13, - "column": 49, - "offset": 358 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./world(and)helloworld)", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 15, - "column": 2, - "offset": 361 - }, - "end": { - "line": 15, - "column": 7, - "offset": 366 - } - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 360 - }, - "end": { - "line": 15, - "column": 50, - "offset": 409 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 15, - "column": 50, - "offset": 409 - }, - "end": { - "line": 15, - "column": 51, - "offset": 410 - } - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 360 - }, - "end": { - "line": 15, - "column": 51, - "offset": 410 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./world(and-hello(world)", - "alt": "Hello", - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 412 - }, - "end": { - "line": 17, - "column": 50, - "offset": 461 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 17, - "column": 50, - "offset": 461 - }, - "end": { - "line": 17, - "column": 51, - "offset": 462 - } - } - } - ], - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 412 - }, - "end": { - "line": 17, - "column": 51, - "offset": 462 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./world(and-hello(world)", - "alt": "Hello", - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 464 - }, - "end": { - "line": 19, - "column": 52, - "offset": 515 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 19, - "column": 52, - "offset": 515 - }, - "end": { - "line": 19, - "column": 53, - "offset": 516 - } - } - } - ], - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 464 - }, - "end": { - "line": 19, - "column": 53, - "offset": 516 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./world(and)helloworld)", - "alt": "Hello", - "position": { - "start": { - "line": 21, - "column": 1, - "offset": 518 - }, - "end": { - "line": 21, - "column": 49, - "offset": 566 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 21, - "column": 49, - "offset": 566 - }, - "end": { - "line": 21, - "column": 50, - "offset": 567 - } - } - } - ], - "position": { - "start": { - "line": 21, - "column": 1, - "offset": 518 - }, - "end": { - "line": 21, - "column": 50, - "offset": 567 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./world(and)helloworld)", - "alt": "Hello", - "position": { - "start": { - "line": 23, - "column": 1, - "offset": 569 - }, - "end": { - "line": 23, - "column": 51, - "offset": 619 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 23, - "column": 51, - "offset": 619 - }, - "end": { - "line": 23, - "column": 52, - "offset": 620 - } - } - } - ], - "position": { - "start": { - "line": 23, - "column": 1, - "offset": 569 - }, - "end": { - "line": 23, - "column": 52, - "offset": 620 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./world(and-hello(world)", - "alt": "Hello", - "position": { - "start": { - "line": 25, - "column": 1, - "offset": 622 - }, - "end": { - "line": 25, - "column": 50, - "offset": 671 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 25, - "column": 50, - "offset": 671 - }, - "end": { - "line": 25, - "column": 51, - "offset": 672 - } - } - } - ], - "position": { - "start": { - "line": 25, - "column": 1, - "offset": 622 - }, - "end": { - "line": 25, - "column": 51, - "offset": 672 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./world(and-hello(world)", - "alt": "Hello", - "position": { - "start": { - "line": 27, - "column": 1, - "offset": 674 - }, - "end": { - "line": 27, - "column": 52, - "offset": 725 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 27, - "column": 52, - "offset": 725 - }, - "end": { - "line": 27, - "column": 53, - "offset": 726 - } - } - } - ], - "position": { - "start": { - "line": 27, - "column": 1, - "offset": 674 - }, - "end": { - "line": 27, - "column": 53, - "offset": 726 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./world(and)helloworld)", - "alt": "Hello", - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 728 - }, - "end": { - "line": 29, - "column": 49, - "offset": 776 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 29, - "column": 49, - "offset": 776 - }, - "end": { - "line": 29, - "column": 50, - "offset": 777 - } - } - } - ], - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 728 - }, - "end": { - "line": 29, - "column": 50, - "offset": 777 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./world(and)helloworld)", - "alt": "Hello", - "position": { - "start": { - "line": 31, - "column": 1, - "offset": 779 - }, - "end": { - "line": 31, - "column": 51, - "offset": 829 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 31, - "column": 51, - "offset": 829 - }, - "end": { - "line": 31, - "column": 52, - "offset": 830 - } - } - } - ], - "position": { - "start": { - "line": 31, - "column": 1, - "offset": 779 - }, - "end": { - "line": 31, - "column": 52, - "offset": 830 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 32, - "column": 1, - "offset": 831 - } - } -} diff --git a/test/fixtures/tree/links-url-escaped-parentheses.json b/test/fixtures/tree/links-url-escaped-parentheses.json deleted file mode 100644 index 8bdd8f4e0..000000000 --- a/test/fixtures/tree/links-url-escaped-parentheses.json +++ /dev/null @@ -1,493 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./world(and-hello(world)", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 37, - "offset": 36 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 37, - "offset": 36 - }, - "end": { - "line": 1, - "column": 38, - "offset": 37 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 38, - "offset": 37 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./world(and-hello(world)", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 40 - }, - "end": { - "line": 3, - "column": 7, - "offset": 45 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 39 - }, - "end": { - "line": 3, - "column": 39, - "offset": 77 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 39, - "offset": 77 - }, - "end": { - "line": 3, - "column": 40, - "offset": 78 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 39 - }, - "end": { - "line": 3, - "column": 40, - "offset": 78 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./world(and)helloworld)", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 5, - "column": 2, - "offset": 81 - }, - "end": { - "line": 5, - "column": 7, - "offset": 86 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 80 - }, - "end": { - "line": 5, - "column": 36, - "offset": 115 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 36, - "offset": 115 - }, - "end": { - "line": 5, - "column": 37, - "offset": 116 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 80 - }, - "end": { - "line": 5, - "column": 37, - "offset": 116 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./world(and)helloworld)", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 7, - "column": 2, - "offset": 119 - }, - "end": { - "line": 7, - "column": 7, - "offset": 124 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 118 - }, - "end": { - "line": 7, - "column": 38, - "offset": 155 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 38, - "offset": 155 - }, - "end": { - "line": 7, - "column": 39, - "offset": 156 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 118 - }, - "end": { - "line": 7, - "column": 39, - "offset": 156 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./world(and-hello(world)", - "alt": "Hello", - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 158 - }, - "end": { - "line": 9, - "column": 38, - "offset": 195 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 9, - "column": 38, - "offset": 195 - }, - "end": { - "line": 9, - "column": 39, - "offset": 196 - } - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 158 - }, - "end": { - "line": 9, - "column": 39, - "offset": 196 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./world(and-hello(world)", - "alt": "Hello", - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 198 - }, - "end": { - "line": 11, - "column": 40, - "offset": 237 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 11, - "column": 40, - "offset": 237 - }, - "end": { - "line": 11, - "column": 41, - "offset": 238 - } - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 198 - }, - "end": { - "line": 11, - "column": 41, - "offset": 238 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./world(and)helloworld)", - "alt": "Hello", - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 240 - }, - "end": { - "line": 13, - "column": 37, - "offset": 276 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 13, - "column": 37, - "offset": 276 - }, - "end": { - "line": 13, - "column": 38, - "offset": 277 - } - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 240 - }, - "end": { - "line": 13, - "column": 38, - "offset": 277 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./world(and)helloworld)", - "alt": "Hello", - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 279 - }, - "end": { - "line": 15, - "column": 39, - "offset": 317 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 15, - "column": 39, - "offset": 317 - }, - "end": { - "line": 15, - "column": 40, - "offset": 318 - } - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 279 - }, - "end": { - "line": 15, - "column": 40, - "offset": 318 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 16, - "column": 1, - "offset": 319 - } - } -} diff --git a/test/fixtures/tree/links-url-mismatched-parentheses.json b/test/fixtures/tree/links-url-mismatched-parentheses.json deleted file mode 100644 index ec68a10f2..000000000 --- a/test/fixtures/tree/links-url-mismatched-parentheses.json +++ /dev/null @@ -1,440 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[Hello](./world(and-hello(world)).", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 35, - "offset": 34 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 35, - "offset": 34 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./world(and-hello(world)", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 37 - }, - "end": { - "line": 3, - "column": 7, - "offset": 42 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 36 - }, - "end": { - "line": 3, - "column": 36, - "offset": 71 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 36, - "offset": 71 - }, - "end": { - "line": 3, - "column": 37, - "offset": 72 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 36 - }, - "end": { - "line": 3, - "column": 37, - "offset": 72 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./world(and)helloworld", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 5, - "column": 2, - "offset": 75 - }, - "end": { - "line": 5, - "column": 7, - "offset": 80 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 74 - }, - "end": { - "line": 5, - "column": 32, - "offset": 105 - } - } - }, - { - "type": "text", - "value": ").", - "position": { - "start": { - "line": 5, - "column": 32, - "offset": 105 - }, - "end": { - "line": 5, - "column": 34, - "offset": 107 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 74 - }, - "end": { - "line": 5, - "column": 34, - "offset": 107 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./world(and)helloworld)", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 7, - "column": 2, - "offset": 110 - }, - "end": { - "line": 7, - "column": 7, - "offset": 115 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 109 - }, - "end": { - "line": 7, - "column": 35, - "offset": 143 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 35, - "offset": 143 - }, - "end": { - "line": 7, - "column": 36, - "offset": 144 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 109 - }, - "end": { - "line": 7, - "column": 36, - "offset": 144 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "![Hello](./world(and-hello(world)).", - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 146 - }, - "end": { - "line": 9, - "column": 36, - "offset": 181 - } - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 146 - }, - "end": { - "line": 9, - "column": 36, - "offset": 181 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./world(and-hello(world)", - "alt": "Hello", - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 183 - }, - "end": { - "line": 11, - "column": 37, - "offset": 219 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 11, - "column": 37, - "offset": 219 - }, - "end": { - "line": 11, - "column": 38, - "offset": 220 - } - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 183 - }, - "end": { - "line": 11, - "column": 38, - "offset": 220 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./world(and)helloworld", - "alt": "Hello", - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 222 - }, - "end": { - "line": 13, - "column": 33, - "offset": 254 - } - } - }, - { - "type": "text", - "value": ").", - "position": { - "start": { - "line": 13, - "column": 33, - "offset": 254 - }, - "end": { - "line": 13, - "column": 35, - "offset": 256 - } - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 222 - }, - "end": { - "line": 13, - "column": 35, - "offset": 256 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./world(and)helloworld)", - "alt": "Hello", - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 258 - }, - "end": { - "line": 15, - "column": 36, - "offset": 293 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 15, - "column": 36, - "offset": 293 - }, - "end": { - "line": 15, - "column": 37, - "offset": 294 - } - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 258 - }, - "end": { - "line": 15, - "column": 37, - "offset": 294 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 16, - "column": 1, - "offset": 295 - } - } -} diff --git a/test/fixtures/tree/links-url-nested-parentheses.json b/test/fixtures/tree/links-url-nested-parentheses.json deleted file mode 100644 index 5a302e99c..000000000 --- a/test/fixtures/tree/links-url-nested-parentheses.json +++ /dev/null @@ -1,255 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./world(and)hello(world)", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 34, - "offset": 33 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 34, - "offset": 33 - }, - "end": { - "line": 1, - "column": 35, - "offset": 34 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 35, - "offset": 34 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./world(and)hello(world)", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 37 - }, - "end": { - "line": 3, - "column": 7, - "offset": 42 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 36 - }, - "end": { - "line": 3, - "column": 36, - "offset": 71 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 36, - "offset": 71 - }, - "end": { - "line": 3, - "column": 37, - "offset": 72 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 36 - }, - "end": { - "line": 3, - "column": 37, - "offset": 72 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./world(and)hello(world)", - "alt": "Hello", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 74 - }, - "end": { - "line": 5, - "column": 35, - "offset": 108 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 35, - "offset": 108 - }, - "end": { - "line": 5, - "column": 36, - "offset": 109 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 74 - }, - "end": { - "line": 5, - "column": 36, - "offset": 109 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./world(and)hello(world)", - "alt": "Hello", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 111 - }, - "end": { - "line": 7, - "column": 37, - "offset": 147 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 37, - "offset": 147 - }, - "end": { - "line": 7, - "column": 38, - "offset": 148 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 111 - }, - "end": { - "line": 7, - "column": 38, - "offset": 148 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 149 - } - } -} diff --git a/test/fixtures/tree/links-url-new-line.json b/test/fixtures/tree/links-url-new-line.json deleted file mode 100644 index b60378d2b..000000000 --- a/test/fixtures/tree/links-url-new-line.json +++ /dev/null @@ -1,149 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[Hello](./wo\nrld.html).", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 11, - "offset": 23 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 11, - "offset": 23 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[Hello](<./wo\nrld.html>).", - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 25 - }, - "end": { - "line": 5, - "column": 12, - "offset": 50 - } - } - } - ], - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 25 - }, - "end": { - "line": 5, - "column": 12, - "offset": 50 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "![Hello](./wo\nrld.png).", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 52 - }, - "end": { - "line": 8, - "column": 10, - "offset": 75 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 52 - }, - "end": { - "line": 8, - "column": 10, - "offset": 75 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "![Hello](<./wo\nrld.png>).", - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 77 - }, - "end": { - "line": 11, - "column": 11, - "offset": 102 - } - } - } - ], - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 77 - }, - "end": { - "line": 11, - "column": 11, - "offset": 102 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 12, - "column": 1, - "offset": 103 - } - } -} diff --git a/test/fixtures/tree/links-url-unclosed.json b/test/fixtures/tree/links-url-unclosed.json deleted file mode 100644 index 10a93704a..000000000 --- a/test/fixtures/tree/links-url-unclosed.json +++ /dev/null @@ -1,149 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[Hello](", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 9, - "offset": 8 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 9, - "offset": 8 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[World](<", - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 11 - }, - "end": { - "line": 4, - "column": 10, - "offset": 20 - } - } - } - ], - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 11 - }, - "end": { - "line": 4, - "column": 10, - "offset": 20 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "![Hello](", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 23 - }, - "end": { - "line": 7, - "column": 10, - "offset": 32 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 23 - }, - "end": { - "line": 7, - "column": 10, - "offset": 32 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "![World](<", - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 35 - }, - "end": { - "line": 10, - "column": 11, - "offset": 45 - } - } - } - ], - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 35 - }, - "end": { - "line": 10, - "column": 11, - "offset": 45 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 11, - "column": 1, - "offset": 46 - } - } -} diff --git a/test/fixtures/tree/links-url-white-space.json b/test/fixtures/tree/links-url-white-space.json deleted file mode 100644 index 4f4c82294..000000000 --- a/test/fixtures/tree/links-url-white-space.json +++ /dev/null @@ -1,202 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[Hello](./wo rld.html).", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 24, - "offset": 23 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 24, - "offset": 23 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./wo rld.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 26 - }, - "end": { - "line": 3, - "column": 7, - "offset": 31 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 25 - }, - "end": { - "line": 3, - "column": 25, - "offset": 49 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 25, - "offset": 49 - }, - "end": { - "line": 3, - "column": 26, - "offset": 50 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 25 - }, - "end": { - "line": 3, - "column": 26, - "offset": 50 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "![Hello](./wo rld.png).", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 52 - }, - "end": { - "line": 5, - "column": 24, - "offset": 75 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 52 - }, - "end": { - "line": 5, - "column": 24, - "offset": 75 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./wo rld.png", - "alt": "Hello", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 77 - }, - "end": { - "line": 7, - "column": 25, - "offset": 101 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 25, - "offset": 101 - }, - "end": { - "line": 7, - "column": 26, - "offset": 102 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 77 - }, - "end": { - "line": 7, - "column": 26, - "offset": 102 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 103 - } - } -} diff --git a/test/fixtures/tree/links.output.noreference-links.json b/test/fixtures/tree/links.output.noreference-links.json deleted file mode 100644 index dd2bea5ca..000000000 --- a/test/fixtures/tree/links.output.noreference-links.json +++ /dev/null @@ -1,320 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Lorem ipsum dolor sit ", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 23, - "offset": 22 - } - } - }, - { - "type": "link", - "title": "Amet", - "url": "http://amet.com", - "children": [ - { - "type": "text", - "value": "amet", - "position": { - "start": { - "line": 1, - "column": 24, - "offset": 23 - }, - "end": { - "line": 1, - "column": 28, - "offset": 27 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 23, - "offset": 22 - }, - "end": { - "line": 1, - "column": 53, - "offset": 52 - } - } - }, - { - "type": "text", - "value": ", consectetur adipiscing elit. Praesent dictum purus ullamcorper ligula semper pellentesque.", - "position": { - "start": { - "line": 1, - "column": 53, - "offset": 52 - }, - "end": { - "line": 1, - "column": 145, - "offset": 144 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 145, - "offset": 144 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Nulla ", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 146 - }, - "end": { - "line": 3, - "column": 7, - "offset": 152 - } - } - }, - { - "type": "link", - "title": "Finibus", - "url": "http://finibus.com", - "children": [ - { - "type": "text", - "value": "finibus", - "position": { - "start": { - "line": 3, - "column": 8, - "offset": 153 - }, - "end": { - "line": 3, - "column": 15, - "offset": 160 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 7, - "offset": 152 - }, - "end": { - "line": 3, - "column": 46, - "offset": 191 - } - } - }, - { - "type": "text", - "value": " neque et diam rhoncus convallis. Nam dictum sapien nec sem ultrices fermentum. Nulla ", - "position": { - "start": { - "line": 3, - "column": 46, - "offset": 191 - }, - "end": { - "line": 3, - "column": 132, - "offset": 277 - } - } - }, - { - "type": "link", - "title": "Facilisi", - "url": "http://facilisi.com", - "children": [ - { - "type": "text", - "value": "facilisi", - "position": { - "start": { - "line": 3, - "column": 133, - "offset": 278 - }, - "end": { - "line": 3, - "column": 141, - "offset": 286 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 132, - "offset": 277 - }, - "end": { - "line": 3, - "column": 174, - "offset": 319 - } - } - }, - { - "type": "text", - "value": ". In et feugiat massa.", - "position": { - "start": { - "line": 3, - "column": 174, - "offset": 319 - }, - "end": { - "line": 3, - "column": 196, - "offset": 341 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 146 - }, - "end": { - "line": 3, - "column": 196, - "offset": 341 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Donec sed sodales metus, ut aliquet quam. Suspendisse nec ipsum risus. Interdum et malesuada fames ac ante ipsum primis in ", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 343 - }, - "end": { - "line": 5, - "column": 124, - "offset": 466 - } - } - }, - { - "type": "link", - "title": "Faucibus", - "url": "http://faucibus.com", - "children": [ - { - "type": "text", - "value": "faucibus", - "position": { - "start": { - "line": 5, - "column": 125, - "offset": 467 - }, - "end": { - "line": 5, - "column": 133, - "offset": 475 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 124, - "offset": 466 - }, - "end": { - "line": 5, - "column": 166, - "offset": 508 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 166, - "offset": 508 - }, - "end": { - "line": 5, - "column": 167, - "offset": 509 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 343 - }, - "end": { - "line": 5, - "column": 167, - "offset": 509 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 6, - "column": 1, - "offset": 510 - } - } -} diff --git a/test/fixtures/tree/list-after-list.json b/test/fixtures/tree/list-after-list.json deleted file mode 100644 index 43b719a90..000000000 --- a/test/fixtures/tree/list-after-list.json +++ /dev/null @@ -1,736 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "item", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "item", - "position": { - "start": { - "line": 2, - "column": 3, - "offset": 9 - }, - "end": { - "line": 2, - "column": 7, - "offset": 13 - } - } - } - ], - "position": { - "start": { - "line": 2, - "column": 3, - "offset": 9 - }, - "end": { - "line": 2, - "column": 7, - "offset": 13 - } - } - } - ], - "position": { - "start": { - "line": 2, - "column": 1, - "offset": 7 - }, - "end": { - "line": 2, - "column": 7, - "offset": 13 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "item", - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 16 - }, - "end": { - "line": 3, - "column": 7, - "offset": 20 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 16 - }, - "end": { - "line": 3, - "column": 7, - "offset": 20 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 14 - }, - "end": { - "line": 3, - "column": 7, - "offset": 20 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 3, - "column": 7, - "offset": 20 - } - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "item", - "position": { - "start": { - "line": 5, - "column": 4, - "offset": 25 - }, - "end": { - "line": 5, - "column": 8, - "offset": 29 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 4, - "offset": 25 - }, - "end": { - "line": 5, - "column": 8, - "offset": 29 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 22 - }, - "end": { - "line": 5, - "column": 8, - "offset": 29 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "item", - "position": { - "start": { - "line": 6, - "column": 4, - "offset": 33 - }, - "end": { - "line": 6, - "column": 8, - "offset": 37 - } - } - } - ], - "position": { - "start": { - "line": 6, - "column": 4, - "offset": 33 - }, - "end": { - "line": 6, - "column": 8, - "offset": 37 - } - } - } - ], - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 30 - }, - "end": { - "line": 6, - "column": 8, - "offset": 37 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "item", - "position": { - "start": { - "line": 7, - "column": 4, - "offset": 41 - }, - "end": { - "line": 7, - "column": 8, - "offset": 45 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 4, - "offset": 41 - }, - "end": { - "line": 7, - "column": 8, - "offset": 45 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 38 - }, - "end": { - "line": 7, - "column": 8, - "offset": 45 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 22 - }, - "end": { - "line": 7, - "column": 8, - "offset": 45 - } - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 47 - }, - "end": { - "line": 9, - "column": 4, - "offset": 50 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "item", - "position": { - "start": { - "line": 11, - "column": 3, - "offset": 54 - }, - "end": { - "line": 11, - "column": 7, - "offset": 58 - } - } - } - ], - "position": { - "start": { - "line": 11, - "column": 3, - "offset": 54 - }, - "end": { - "line": 11, - "column": 7, - "offset": 58 - } - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 52 - }, - "end": { - "line": 11, - "column": 7, - "offset": 58 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "item", - "position": { - "start": { - "line": 12, - "column": 3, - "offset": 61 - }, - "end": { - "line": 12, - "column": 7, - "offset": 65 - } - } - } - ], - "position": { - "start": { - "line": 12, - "column": 3, - "offset": 61 - }, - "end": { - "line": 12, - "column": 7, - "offset": 65 - } - } - } - ], - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 59 - }, - "end": { - "line": 12, - "column": 7, - "offset": 65 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "item", - "position": { - "start": { - "line": 13, - "column": 3, - "offset": 68 - }, - "end": { - "line": 13, - "column": 7, - "offset": 72 - } - } - } - ], - "position": { - "start": { - "line": 13, - "column": 3, - "offset": 68 - }, - "end": { - "line": 13, - "column": 7, - "offset": 72 - } - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 66 - }, - "end": { - "line": 13, - "column": 7, - "offset": 72 - } - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 52 - }, - "end": { - "line": 13, - "column": 7, - "offset": 72 - } - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "item", - "position": { - "start": { - "line": 14, - "column": 4, - "offset": 76 - }, - "end": { - "line": 14, - "column": 8, - "offset": 80 - } - } - } - ], - "position": { - "start": { - "line": 14, - "column": 4, - "offset": 76 - }, - "end": { - "line": 14, - "column": 8, - "offset": 80 - } - } - } - ], - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 73 - }, - "end": { - "line": 14, - "column": 8, - "offset": 80 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "item", - "position": { - "start": { - "line": 15, - "column": 4, - "offset": 84 - }, - "end": { - "line": 15, - "column": 8, - "offset": 88 - } - } - } - ], - "position": { - "start": { - "line": 15, - "column": 4, - "offset": 84 - }, - "end": { - "line": 15, - "column": 8, - "offset": 88 - } - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 81 - }, - "end": { - "line": 15, - "column": 8, - "offset": 88 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "item", - "position": { - "start": { - "line": 16, - "column": 4, - "offset": 92 - }, - "end": { - "line": 16, - "column": 8, - "offset": 96 - } - } - } - ], - "position": { - "start": { - "line": 16, - "column": 4, - "offset": 92 - }, - "end": { - "line": 16, - "column": 8, - "offset": 96 - } - } - } - ], - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 89 - }, - "end": { - "line": 16, - "column": 8, - "offset": 96 - } - } - } - ], - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 73 - }, - "end": { - "line": 16, - "column": 8, - "offset": 96 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 17, - "column": 1, - "offset": 97 - } - } -} diff --git a/test/fixtures/tree/list-and-code.json b/test/fixtures/tree/list-and-code.json deleted file mode 100644 index 865f31069..000000000 --- a/test/fixtures/tree/list-and-code.json +++ /dev/null @@ -1,122 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This is a list item", - "position": { - "start": { - "line": 1, - "column": 5, - "offset": 4 - }, - "end": { - "line": 1, - "column": 24, - "offset": 23 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 5, - "offset": 4 - }, - "end": { - "line": 1, - "column": 24, - "offset": 23 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This is code", - "position": { - "start": { - "line": 4, - "column": 5, - "offset": 30 - }, - "end": { - "line": 4, - "column": 17, - "offset": 42 - } - } - } - ], - "position": { - "start": { - "line": 4, - "column": 5, - "offset": 30 - }, - "end": { - "line": 4, - "column": 17, - "offset": 42 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 4, - "column": 17, - "offset": 42 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 4, - "column": 17, - "offset": 42 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 5, - "column": 1, - "offset": 43 - } - } -} diff --git a/test/fixtures/tree/list-continuation.json b/test/fixtures/tree/list-continuation.json deleted file mode 100644 index ad33a570a..000000000 --- a/test/fixtures/tree/list-continuation.json +++ /dev/null @@ -1,318 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo", - "position": { - "start": { - "line": 1, - "column": 4, - "offset": 3 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 4, - "offset": 3 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - } - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 2, - "column": 1, - "offset": 7 - }, - "end": { - "line": 2, - "column": 4, - "offset": 10 - } - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo", - "position": { - "start": { - "line": 5, - "column": 4, - "offset": 16 - }, - "end": { - "line": 5, - "column": 7, - "offset": 19 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 4, - "offset": 16 - }, - "end": { - "line": 5, - "column": 7, - "offset": 19 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 13 - }, - "end": { - "line": 5, - "column": 7, - "offset": 19 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 13 - }, - "end": { - "line": 5, - "column": 7, - "offset": 19 - } - } - }, - { - "type": "code", - "lang": "js", - "meta": null, - "value": "code();", - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 20 - }, - "end": { - "line": 8, - "column": 4, - "offset": 37 - } - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[foo][]\n[foo]: http://google.com", - "position": { - "start": { - "line": 11, - "column": 4, - "offset": 43 - }, - "end": { - "line": 12, - "column": 25, - "offset": 75 - } - } - } - ], - "position": { - "start": { - "line": 11, - "column": 4, - "offset": 43 - }, - "end": { - "line": 12, - "column": 25, - "offset": 75 - } - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 40 - }, - "end": { - "line": 12, - "column": 25, - "offset": 75 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[^foo]\n[^foo]: bar baz.", - "position": { - "start": { - "line": 15, - "column": 4, - "offset": 81 - }, - "end": { - "line": 16, - "column": 17, - "offset": 104 - } - } - } - ], - "position": { - "start": { - "line": 15, - "column": 4, - "offset": 81 - }, - "end": { - "line": 16, - "column": 17, - "offset": 104 - } - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 78 - }, - "end": { - "line": 16, - "column": 17, - "offset": 104 - } - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 40 - }, - "end": { - "line": 16, - "column": 17, - "offset": 104 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 17, - "column": 1, - "offset": 105 - } - } -} diff --git a/test/fixtures/tree/list-indentation.nooutput.json b/test/fixtures/tree/list-indentation.nooutput.json deleted file mode 100644 index 8385ecefe..000000000 --- a/test/fixtures/tree/list-indentation.nooutput.json +++ /dev/null @@ -1,889 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hello 1a", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 11, - "offset": 10 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 11, - "offset": 10 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 11, - "offset": 10 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 11, - "offset": 10 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "World 1a.", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 13 - }, - "end": { - "line": 3, - "column": 11, - "offset": 22 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 13 - }, - "end": { - "line": 3, - "column": 11, - "offset": 22 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hello 1b", - "position": { - "start": { - "line": 5, - "column": 3, - "offset": 26 - }, - "end": { - "line": 5, - "column": 11, - "offset": 34 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 3, - "offset": 26 - }, - "end": { - "line": 5, - "column": 11, - "offset": 34 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "World 1b.", - "position": { - "start": { - "line": 7, - "column": 3, - "offset": 38 - }, - "end": { - "line": 7, - "column": 12, - "offset": 47 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 3, - "offset": 38 - }, - "end": { - "line": 7, - "column": 12, - "offset": 47 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 24 - }, - "end": { - "line": 7, - "column": 12, - "offset": 47 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hello 2a", - "position": { - "start": { - "line": 9, - "column": 4, - "offset": 52 - }, - "end": { - "line": 9, - "column": 12, - "offset": 60 - } - } - } - ], - "position": { - "start": { - "line": 9, - "column": 4, - "offset": 52 - }, - "end": { - "line": 9, - "column": 12, - "offset": 60 - } - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 49 - }, - "end": { - "line": 9, - "column": 12, - "offset": 60 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 24 - }, - "end": { - "line": 9, - "column": 12, - "offset": 60 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "World 2a.", - "position": { - "start": { - "line": 11, - "column": 3, - "offset": 64 - }, - "end": { - "line": 11, - "column": 12, - "offset": 73 - } - } - } - ], - "position": { - "start": { - "line": 11, - "column": 3, - "offset": 64 - }, - "end": { - "line": 11, - "column": 12, - "offset": 73 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hello 2b", - "position": { - "start": { - "line": 13, - "column": 4, - "offset": 78 - }, - "end": { - "line": 13, - "column": 12, - "offset": 86 - } - } - } - ], - "position": { - "start": { - "line": 13, - "column": 4, - "offset": 78 - }, - "end": { - "line": 13, - "column": 12, - "offset": 86 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "World 2b.", - "position": { - "start": { - "line": 15, - "column": 4, - "offset": 91 - }, - "end": { - "line": 15, - "column": 13, - "offset": 100 - } - } - } - ], - "position": { - "start": { - "line": 15, - "column": 4, - "offset": 91 - }, - "end": { - "line": 15, - "column": 13, - "offset": 100 - } - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 75 - }, - "end": { - "line": 15, - "column": 13, - "offset": 100 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hello 3a", - "position": { - "start": { - "line": 17, - "column": 5, - "offset": 106 - }, - "end": { - "line": 17, - "column": 13, - "offset": 114 - } - } - } - ], - "position": { - "start": { - "line": 17, - "column": 5, - "offset": 106 - }, - "end": { - "line": 17, - "column": 13, - "offset": 114 - } - } - } - ], - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 102 - }, - "end": { - "line": 17, - "column": 13, - "offset": 114 - } - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 75 - }, - "end": { - "line": 17, - "column": 13, - "offset": 114 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "World 3a.", - "position": { - "start": { - "line": 19, - "column": 4, - "offset": 119 - }, - "end": { - "line": 19, - "column": 13, - "offset": 128 - } - } - } - ], - "position": { - "start": { - "line": 19, - "column": 4, - "offset": 119 - }, - "end": { - "line": 19, - "column": 13, - "offset": 128 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hello 3b", - "position": { - "start": { - "line": 21, - "column": 5, - "offset": 134 - }, - "end": { - "line": 21, - "column": 13, - "offset": 142 - } - } - } - ], - "position": { - "start": { - "line": 21, - "column": 5, - "offset": 134 - }, - "end": { - "line": 21, - "column": 13, - "offset": 142 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "World 3b.", - "position": { - "start": { - "line": 23, - "column": 5, - "offset": 148 - }, - "end": { - "line": 23, - "column": 14, - "offset": 157 - } - } - } - ], - "position": { - "start": { - "line": 23, - "column": 5, - "offset": 148 - }, - "end": { - "line": 23, - "column": 14, - "offset": 157 - } - } - } - ], - "position": { - "start": { - "line": 21, - "column": 1, - "offset": 130 - }, - "end": { - "line": 23, - "column": 14, - "offset": 157 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hello 4a", - "position": { - "start": { - "line": 25, - "column": 6, - "offset": 164 - }, - "end": { - "line": 25, - "column": 14, - "offset": 172 - } - } - } - ], - "position": { - "start": { - "line": 25, - "column": 6, - "offset": 164 - }, - "end": { - "line": 25, - "column": 14, - "offset": 172 - } - } - } - ], - "position": { - "start": { - "line": 25, - "column": 1, - "offset": 159 - }, - "end": { - "line": 25, - "column": 14, - "offset": 172 - } - } - } - ], - "position": { - "start": { - "line": 21, - "column": 1, - "offset": 130 - }, - "end": { - "line": 25, - "column": 14, - "offset": 172 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "World 4a.", - "position": { - "start": { - "line": 27, - "column": 1, - "offset": 174 - }, - "end": { - "line": 27, - "column": 14, - "offset": 187 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hello 4b", - "position": { - "start": { - "line": 29, - "column": 6, - "offset": 194 - }, - "end": { - "line": 29, - "column": 14, - "offset": 202 - } - } - } - ], - "position": { - "start": { - "line": 29, - "column": 6, - "offset": 194 - }, - "end": { - "line": 29, - "column": 14, - "offset": 202 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "World 4b.", - "position": { - "start": { - "line": 31, - "column": 6, - "offset": 209 - }, - "end": { - "line": 31, - "column": 15, - "offset": 218 - } - } - } - ], - "position": { - "start": { - "line": 31, - "column": 6, - "offset": 209 - }, - "end": { - "line": 31, - "column": 15, - "offset": 218 - } - } - } - ], - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 189 - }, - "end": { - "line": 31, - "column": 15, - "offset": 218 - } - } - }, - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "code", - "lang": null, - "meta": null, - "value": "Hello 5a", - "position": { - "start": { - "line": 33, - "column": 3, - "offset": 222 - }, - "end": { - "line": 33, - "column": 15, - "offset": 234 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "World 5a.", - "position": { - "start": { - "line": 35, - "column": 6, - "offset": 241 - }, - "end": { - "line": 35, - "column": 15, - "offset": 250 - } - } - } - ], - "position": { - "start": { - "line": 35, - "column": 6, - "offset": 241 - }, - "end": { - "line": 35, - "column": 15, - "offset": 250 - } - } - } - ], - "position": { - "start": { - "line": 33, - "column": 1, - "offset": 220 - }, - "end": { - "line": 35, - "column": 15, - "offset": 250 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "code", - "lang": null, - "meta": null, - "value": "Hello 5b\n\nWorld 5b.", - "position": { - "start": { - "line": 37, - "column": 3, - "offset": 254 - }, - "end": { - "line": 39, - "column": 16, - "offset": 283 - } - } - } - ], - "position": { - "start": { - "line": 37, - "column": 1, - "offset": 252 - }, - "end": { - "line": 39, - "column": 16, - "offset": 283 - } - } - } - ], - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 189 - }, - "end": { - "line": 39, - "column": 16, - "offset": 283 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 40, - "column": 1, - "offset": 284 - } - } -} diff --git a/test/fixtures/tree/list-interrupt.json b/test/fixtures/tree/list-interrupt.json deleted file mode 100644 index 66b55d9c1..000000000 --- a/test/fixtures/tree/list-interrupt.json +++ /dev/null @@ -1,123 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Something", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 12, - "offset": 11 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 12, - "offset": 11 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 12, - "offset": 11 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 12, - "offset": 11 - } - } - }, - { - "type": "heading", - "depth": 3, - "children": [ - { - "type": "text", - "value": "Some heading", - "position": { - "start": { - "line": 2, - "column": 5, - "offset": 16 - }, - "end": { - "line": 2, - "column": 17, - "offset": 28 - } - } - } - ], - "position": { - "start": { - "line": 2, - "column": 1, - "offset": 12 - }, - "end": { - "line": 2, - "column": 17, - "offset": 28 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 3, - "column": 1, - "offset": 29 - } - } -} diff --git a/test/fixtures/tree/list-item-empty-with-white-space.json b/test/fixtures/tree/list-item-empty-with-white-space.json deleted file mode 100644 index 81aa7a835..000000000 --- a/test/fixtures/tree/list-item-empty-with-white-space.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 3, - "offset": 2 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 3, - "offset": 2 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 1, - "offset": 3 - } - } -} diff --git a/test/fixtures/tree/list-item-empty-without-white-space-eof.json b/test/fixtures/tree/list-item-empty-without-white-space-eof.json deleted file mode 100644 index ce8b5dcca..000000000 --- a/test/fixtures/tree/list-item-empty-without-white-space-eof.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 2, - "offset": 1 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 2, - "offset": 1 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 2, - "offset": 1 - } - } -} diff --git a/test/fixtures/tree/list-item-empty-without-white-space.json b/test/fixtures/tree/list-item-empty-without-white-space.json deleted file mode 100644 index 1cf3ea675..000000000 --- a/test/fixtures/tree/list-item-empty-without-white-space.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 2, - "offset": 1 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 2, - "offset": 1 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 1, - "offset": 2 - } - } -} diff --git a/test/fixtures/tree/list-item-empty.json b/test/fixtures/tree/list-item-empty.json deleted file mode 100644 index 24aef241c..000000000 --- a/test/fixtures/tree/list-item-empty.json +++ /dev/null @@ -1,281 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "list", - "ordered": false, - "start": null, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo", - "position": { - "start": { - "line": 1, - "column": 5, - "offset": 4 - }, - "end": { - "line": 1, - "column": 8, - "offset": 7 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 5, - "offset": 4 - }, - "end": { - "line": 1, - "column": 8, - "offset": 7 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 8, - "offset": 7 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [], - "position": { - "start": { - "line": 2, - "column": 1, - "offset": 8 - }, - "end": { - "line": 2, - "column": 2, - "offset": 9 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "bar", - "position": { - "start": { - "line": 3, - "column": 5, - "offset": 14 - }, - "end": { - "line": 3, - "column": 8, - "offset": 17 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 5, - "offset": 14 - }, - "end": { - "line": 3, - "column": 8, - "offset": 17 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 10 - }, - "end": { - "line": 3, - "column": 8, - "offset": 17 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo", - "position": { - "start": { - "line": 5, - "column": 7, - "offset": 25 - }, - "end": { - "line": 5, - "column": 10, - "offset": 28 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 7, - "offset": 25 - }, - "end": { - "line": 5, - "column": 10, - "offset": 28 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 3, - "offset": 21 - }, - "end": { - "line": 5, - "column": 10, - "offset": 28 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [], - "position": { - "start": { - "line": 6, - "column": 3, - "offset": 31 - }, - "end": { - "line": 6, - "column": 4, - "offset": 32 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "bar", - "position": { - "start": { - "line": 7, - "column": 7, - "offset": 39 - }, - "end": { - "line": 7, - "column": 10, - "offset": 42 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 7, - "offset": 39 - }, - "end": { - "line": 7, - "column": 10, - "offset": 42 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 3, - "offset": 35 - }, - "end": { - "line": 7, - "column": 10, - "offset": 42 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 7, - "column": 10, - "offset": 42 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 43 - } - } -} diff --git a/test/fixtures/tree/list-item-indent.list-item-indent=mixed.output.json b/test/fixtures/tree/list-item-indent.list-item-indent=mixed.output.json deleted file mode 100644 index 0b7dcc28c..000000000 --- a/test/fixtures/tree/list-item-indent.list-item-indent=mixed.output.json +++ /dev/null @@ -1,705 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo bar baz.", - "position": { - "start": { - "line": 1, - "column": 4, - "offset": 3 - }, - "end": { - "line": 1, - "column": 16, - "offset": 15 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 4, - "offset": 3 - }, - "end": { - "line": 1, - "column": 16, - "offset": 15 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 16, - "offset": 15 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 16, - "offset": 15 - } - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 17 - }, - "end": { - "line": 3, - "column": 10, - "offset": 26 - } - } - }, - { - "type": "list", - "ordered": true, - "start": 99, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo bar baz.", - "position": { - "start": { - "line": 5, - "column": 5, - "offset": 32 - }, - "end": { - "line": 5, - "column": 17, - "offset": 44 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 5, - "offset": 32 - }, - "end": { - "line": 5, - "column": 17, - "offset": 44 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 28 - }, - "end": { - "line": 5, - "column": 17, - "offset": 44 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 28 - }, - "end": { - "line": 5, - "column": 17, - "offset": 44 - } - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 46 - }, - "end": { - "line": 7, - "column": 10, - "offset": 55 - } - } - }, - { - "type": "list", - "ordered": true, - "start": 999, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo bar baz.", - "position": { - "start": { - "line": 9, - "column": 6, - "offset": 62 - }, - "end": { - "line": 9, - "column": 18, - "offset": 74 - } - } - } - ], - "position": { - "start": { - "line": 9, - "column": 6, - "offset": 62 - }, - "end": { - "line": 9, - "column": 18, - "offset": 74 - } - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 57 - }, - "end": { - "line": 9, - "column": 18, - "offset": 74 - } - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 57 - }, - "end": { - "line": 9, - "column": 18, - "offset": 74 - } - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 76 - }, - "end": { - "line": 11, - "column": 10, - "offset": 85 - } - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo bar baz.\nfoo bar baz.", - "position": { - "start": { - "line": 13, - "column": 4, - "offset": 90 - }, - "end": { - "line": 14, - "column": 16, - "offset": 118 - } - } - } - ], - "position": { - "start": { - "line": 13, - "column": 4, - "offset": 90 - }, - "end": { - "line": 14, - "column": 16, - "offset": 118 - } - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 87 - }, - "end": { - "line": 14, - "column": 16, - "offset": 118 - } - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 87 - }, - "end": { - "line": 14, - "column": 16, - "offset": 118 - } - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 120 - }, - "end": { - "line": 16, - "column": 10, - "offset": 129 - } - } - }, - { - "type": "list", - "ordered": true, - "start": 99, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo bar baz.\nfoo bar baz.", - "position": { - "start": { - "line": 18, - "column": 5, - "offset": 135 - }, - "end": { - "line": 19, - "column": 17, - "offset": 164 - } - } - } - ], - "position": { - "start": { - "line": 18, - "column": 5, - "offset": 135 - }, - "end": { - "line": 19, - "column": 17, - "offset": 164 - } - } - } - ], - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 131 - }, - "end": { - "line": 19, - "column": 17, - "offset": 164 - } - } - } - ], - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 131 - }, - "end": { - "line": 19, - "column": 17, - "offset": 164 - } - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 21, - "column": 1, - "offset": 166 - }, - "end": { - "line": 21, - "column": 10, - "offset": 175 - } - } - }, - { - "type": "list", - "ordered": true, - "start": 999, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo bar baz.\nfoo bar baz.", - "position": { - "start": { - "line": 23, - "column": 6, - "offset": 182 - }, - "end": { - "line": 24, - "column": 18, - "offset": 212 - } - } - } - ], - "position": { - "start": { - "line": 23, - "column": 6, - "offset": 182 - }, - "end": { - "line": 24, - "column": 18, - "offset": 212 - } - } - } - ], - "position": { - "start": { - "line": 23, - "column": 1, - "offset": 177 - }, - "end": { - "line": 24, - "column": 18, - "offset": 212 - } - } - } - ], - "position": { - "start": { - "line": 23, - "column": 1, - "offset": 177 - }, - "end": { - "line": 24, - "column": 18, - "offset": 212 - } - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 26, - "column": 1, - "offset": 214 - }, - "end": { - "line": 26, - "column": 10, - "offset": 223 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo bar baz.", - "position": { - "start": { - "line": 28, - "column": 3, - "offset": 227 - }, - "end": { - "line": 28, - "column": 15, - "offset": 239 - } - } - } - ], - "position": { - "start": { - "line": 28, - "column": 3, - "offset": 227 - }, - "end": { - "line": 28, - "column": 15, - "offset": 239 - } - } - } - ], - "position": { - "start": { - "line": 28, - "column": 1, - "offset": 225 - }, - "end": { - "line": 28, - "column": 15, - "offset": 239 - } - } - } - ], - "position": { - "start": { - "line": 28, - "column": 1, - "offset": 225 - }, - "end": { - "line": 28, - "column": 15, - "offset": 239 - } - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 30, - "column": 1, - "offset": 241 - }, - "end": { - "line": 30, - "column": 10, - "offset": 250 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo bar baz.\nfoo bar baz.", - "position": { - "start": { - "line": 32, - "column": 3, - "offset": 254 - }, - "end": { - "line": 33, - "column": 15, - "offset": 281 - } - } - } - ], - "position": { - "start": { - "line": 32, - "column": 3, - "offset": 254 - }, - "end": { - "line": 33, - "column": 15, - "offset": 281 - } - } - } - ], - "position": { - "start": { - "line": 32, - "column": 1, - "offset": 252 - }, - "end": { - "line": 33, - "column": 15, - "offset": 281 - } - } - } - ], - "position": { - "start": { - "line": 32, - "column": 1, - "offset": 252 - }, - "end": { - "line": 33, - "column": 15, - "offset": 281 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 34, - "column": 1, - "offset": 282 - } - } -} diff --git a/test/fixtures/tree/list-item-indent.list-item-indent=one.output.json b/test/fixtures/tree/list-item-indent.list-item-indent=one.output.json deleted file mode 100644 index 0b7dcc28c..000000000 --- a/test/fixtures/tree/list-item-indent.list-item-indent=one.output.json +++ /dev/null @@ -1,705 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo bar baz.", - "position": { - "start": { - "line": 1, - "column": 4, - "offset": 3 - }, - "end": { - "line": 1, - "column": 16, - "offset": 15 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 4, - "offset": 3 - }, - "end": { - "line": 1, - "column": 16, - "offset": 15 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 16, - "offset": 15 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 16, - "offset": 15 - } - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 17 - }, - "end": { - "line": 3, - "column": 10, - "offset": 26 - } - } - }, - { - "type": "list", - "ordered": true, - "start": 99, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo bar baz.", - "position": { - "start": { - "line": 5, - "column": 5, - "offset": 32 - }, - "end": { - "line": 5, - "column": 17, - "offset": 44 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 5, - "offset": 32 - }, - "end": { - "line": 5, - "column": 17, - "offset": 44 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 28 - }, - "end": { - "line": 5, - "column": 17, - "offset": 44 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 28 - }, - "end": { - "line": 5, - "column": 17, - "offset": 44 - } - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 46 - }, - "end": { - "line": 7, - "column": 10, - "offset": 55 - } - } - }, - { - "type": "list", - "ordered": true, - "start": 999, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo bar baz.", - "position": { - "start": { - "line": 9, - "column": 6, - "offset": 62 - }, - "end": { - "line": 9, - "column": 18, - "offset": 74 - } - } - } - ], - "position": { - "start": { - "line": 9, - "column": 6, - "offset": 62 - }, - "end": { - "line": 9, - "column": 18, - "offset": 74 - } - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 57 - }, - "end": { - "line": 9, - "column": 18, - "offset": 74 - } - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 57 - }, - "end": { - "line": 9, - "column": 18, - "offset": 74 - } - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 76 - }, - "end": { - "line": 11, - "column": 10, - "offset": 85 - } - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo bar baz.\nfoo bar baz.", - "position": { - "start": { - "line": 13, - "column": 4, - "offset": 90 - }, - "end": { - "line": 14, - "column": 16, - "offset": 118 - } - } - } - ], - "position": { - "start": { - "line": 13, - "column": 4, - "offset": 90 - }, - "end": { - "line": 14, - "column": 16, - "offset": 118 - } - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 87 - }, - "end": { - "line": 14, - "column": 16, - "offset": 118 - } - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 87 - }, - "end": { - "line": 14, - "column": 16, - "offset": 118 - } - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 120 - }, - "end": { - "line": 16, - "column": 10, - "offset": 129 - } - } - }, - { - "type": "list", - "ordered": true, - "start": 99, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo bar baz.\nfoo bar baz.", - "position": { - "start": { - "line": 18, - "column": 5, - "offset": 135 - }, - "end": { - "line": 19, - "column": 17, - "offset": 164 - } - } - } - ], - "position": { - "start": { - "line": 18, - "column": 5, - "offset": 135 - }, - "end": { - "line": 19, - "column": 17, - "offset": 164 - } - } - } - ], - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 131 - }, - "end": { - "line": 19, - "column": 17, - "offset": 164 - } - } - } - ], - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 131 - }, - "end": { - "line": 19, - "column": 17, - "offset": 164 - } - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 21, - "column": 1, - "offset": 166 - }, - "end": { - "line": 21, - "column": 10, - "offset": 175 - } - } - }, - { - "type": "list", - "ordered": true, - "start": 999, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo bar baz.\nfoo bar baz.", - "position": { - "start": { - "line": 23, - "column": 6, - "offset": 182 - }, - "end": { - "line": 24, - "column": 18, - "offset": 212 - } - } - } - ], - "position": { - "start": { - "line": 23, - "column": 6, - "offset": 182 - }, - "end": { - "line": 24, - "column": 18, - "offset": 212 - } - } - } - ], - "position": { - "start": { - "line": 23, - "column": 1, - "offset": 177 - }, - "end": { - "line": 24, - "column": 18, - "offset": 212 - } - } - } - ], - "position": { - "start": { - "line": 23, - "column": 1, - "offset": 177 - }, - "end": { - "line": 24, - "column": 18, - "offset": 212 - } - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 26, - "column": 1, - "offset": 214 - }, - "end": { - "line": 26, - "column": 10, - "offset": 223 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo bar baz.", - "position": { - "start": { - "line": 28, - "column": 3, - "offset": 227 - }, - "end": { - "line": 28, - "column": 15, - "offset": 239 - } - } - } - ], - "position": { - "start": { - "line": 28, - "column": 3, - "offset": 227 - }, - "end": { - "line": 28, - "column": 15, - "offset": 239 - } - } - } - ], - "position": { - "start": { - "line": 28, - "column": 1, - "offset": 225 - }, - "end": { - "line": 28, - "column": 15, - "offset": 239 - } - } - } - ], - "position": { - "start": { - "line": 28, - "column": 1, - "offset": 225 - }, - "end": { - "line": 28, - "column": 15, - "offset": 239 - } - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 30, - "column": 1, - "offset": 241 - }, - "end": { - "line": 30, - "column": 10, - "offset": 250 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo bar baz.\nfoo bar baz.", - "position": { - "start": { - "line": 32, - "column": 3, - "offset": 254 - }, - "end": { - "line": 33, - "column": 15, - "offset": 281 - } - } - } - ], - "position": { - "start": { - "line": 32, - "column": 3, - "offset": 254 - }, - "end": { - "line": 33, - "column": 15, - "offset": 281 - } - } - } - ], - "position": { - "start": { - "line": 32, - "column": 1, - "offset": 252 - }, - "end": { - "line": 33, - "column": 15, - "offset": 281 - } - } - } - ], - "position": { - "start": { - "line": 32, - "column": 1, - "offset": 252 - }, - "end": { - "line": 33, - "column": 15, - "offset": 281 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 34, - "column": 1, - "offset": 282 - } - } -} diff --git a/test/fixtures/tree/list-item-indent.list-item-indent=tab.output.json b/test/fixtures/tree/list-item-indent.list-item-indent=tab.output.json deleted file mode 100644 index c721f687f..000000000 --- a/test/fixtures/tree/list-item-indent.list-item-indent=tab.output.json +++ /dev/null @@ -1,705 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo bar baz.", - "position": { - "start": { - "line": 1, - "column": 5, - "offset": 4 - }, - "end": { - "line": 1, - "column": 17, - "offset": 16 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 5, - "offset": 4 - }, - "end": { - "line": 1, - "column": 17, - "offset": 16 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 17, - "offset": 16 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 17, - "offset": 16 - } - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 18 - }, - "end": { - "line": 3, - "column": 10, - "offset": 27 - } - } - }, - { - "type": "list", - "ordered": true, - "start": 99, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo bar baz.", - "position": { - "start": { - "line": 5, - "column": 5, - "offset": 33 - }, - "end": { - "line": 5, - "column": 17, - "offset": 45 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 5, - "offset": 33 - }, - "end": { - "line": 5, - "column": 17, - "offset": 45 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 29 - }, - "end": { - "line": 5, - "column": 17, - "offset": 45 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 29 - }, - "end": { - "line": 5, - "column": 17, - "offset": 45 - } - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 47 - }, - "end": { - "line": 7, - "column": 10, - "offset": 56 - } - } - }, - { - "type": "list", - "ordered": true, - "start": 999, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo bar baz.", - "position": { - "start": { - "line": 9, - "column": 9, - "offset": 66 - }, - "end": { - "line": 9, - "column": 21, - "offset": 78 - } - } - } - ], - "position": { - "start": { - "line": 9, - "column": 9, - "offset": 66 - }, - "end": { - "line": 9, - "column": 21, - "offset": 78 - } - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 58 - }, - "end": { - "line": 9, - "column": 21, - "offset": 78 - } - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 58 - }, - "end": { - "line": 9, - "column": 21, - "offset": 78 - } - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 80 - }, - "end": { - "line": 11, - "column": 10, - "offset": 89 - } - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo bar baz.\nfoo bar baz.", - "position": { - "start": { - "line": 13, - "column": 5, - "offset": 95 - }, - "end": { - "line": 14, - "column": 17, - "offset": 124 - } - } - } - ], - "position": { - "start": { - "line": 13, - "column": 5, - "offset": 95 - }, - "end": { - "line": 14, - "column": 17, - "offset": 124 - } - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 91 - }, - "end": { - "line": 14, - "column": 17, - "offset": 124 - } - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 91 - }, - "end": { - "line": 14, - "column": 17, - "offset": 124 - } - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 126 - }, - "end": { - "line": 16, - "column": 10, - "offset": 135 - } - } - }, - { - "type": "list", - "ordered": true, - "start": 99, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo bar baz.\nfoo bar baz.", - "position": { - "start": { - "line": 18, - "column": 5, - "offset": 141 - }, - "end": { - "line": 19, - "column": 17, - "offset": 170 - } - } - } - ], - "position": { - "start": { - "line": 18, - "column": 5, - "offset": 141 - }, - "end": { - "line": 19, - "column": 17, - "offset": 170 - } - } - } - ], - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 137 - }, - "end": { - "line": 19, - "column": 17, - "offset": 170 - } - } - } - ], - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 137 - }, - "end": { - "line": 19, - "column": 17, - "offset": 170 - } - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 21, - "column": 1, - "offset": 172 - }, - "end": { - "line": 21, - "column": 10, - "offset": 181 - } - } - }, - { - "type": "list", - "ordered": true, - "start": 999, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo bar baz.\nfoo bar baz.", - "position": { - "start": { - "line": 23, - "column": 9, - "offset": 191 - }, - "end": { - "line": 24, - "column": 21, - "offset": 224 - } - } - } - ], - "position": { - "start": { - "line": 23, - "column": 9, - "offset": 191 - }, - "end": { - "line": 24, - "column": 21, - "offset": 224 - } - } - } - ], - "position": { - "start": { - "line": 23, - "column": 1, - "offset": 183 - }, - "end": { - "line": 24, - "column": 21, - "offset": 224 - } - } - } - ], - "position": { - "start": { - "line": 23, - "column": 1, - "offset": 183 - }, - "end": { - "line": 24, - "column": 21, - "offset": 224 - } - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 26, - "column": 1, - "offset": 226 - }, - "end": { - "line": 26, - "column": 10, - "offset": 235 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo bar baz.", - "position": { - "start": { - "line": 28, - "column": 5, - "offset": 241 - }, - "end": { - "line": 28, - "column": 17, - "offset": 253 - } - } - } - ], - "position": { - "start": { - "line": 28, - "column": 5, - "offset": 241 - }, - "end": { - "line": 28, - "column": 17, - "offset": 253 - } - } - } - ], - "position": { - "start": { - "line": 28, - "column": 1, - "offset": 237 - }, - "end": { - "line": 28, - "column": 17, - "offset": 253 - } - } - } - ], - "position": { - "start": { - "line": 28, - "column": 1, - "offset": 237 - }, - "end": { - "line": 28, - "column": 17, - "offset": 253 - } - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 30, - "column": 1, - "offset": 255 - }, - "end": { - "line": 30, - "column": 10, - "offset": 264 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo bar baz.\nfoo bar baz.", - "position": { - "start": { - "line": 32, - "column": 5, - "offset": 270 - }, - "end": { - "line": 33, - "column": 17, - "offset": 299 - } - } - } - ], - "position": { - "start": { - "line": 32, - "column": 5, - "offset": 270 - }, - "end": { - "line": 33, - "column": 17, - "offset": 299 - } - } - } - ], - "position": { - "start": { - "line": 32, - "column": 1, - "offset": 266 - }, - "end": { - "line": 33, - "column": 17, - "offset": 299 - } - } - } - ], - "position": { - "start": { - "line": 32, - "column": 1, - "offset": 266 - }, - "end": { - "line": 33, - "column": 17, - "offset": 299 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 34, - "column": 1, - "offset": 300 - } - } -} diff --git a/test/fixtures/tree/list-item-newline.nooutput.json b/test/fixtures/tree/list-item-newline.nooutput.json deleted file mode 100644 index 1ea38ee3d..000000000 --- a/test/fixtures/tree/list-item-newline.nooutput.json +++ /dev/null @@ -1,141 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Foo", - "position": { - "start": { - "line": 1, - "column": 5, - "offset": 4 - }, - "end": { - "line": 1, - "column": 8, - "offset": 7 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 5, - "offset": 4 - }, - "end": { - "line": 1, - "column": 8, - "offset": 7 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 8, - "offset": 7 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Bar", - "position": { - "start": { - "line": 3, - "column": 5, - "offset": 14 - }, - "end": { - "line": 3, - "column": 8, - "offset": 17 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 5, - "offset": 14 - }, - "end": { - "line": 3, - "column": 8, - "offset": 17 - } - } - } - ], - "position": { - "start": { - "line": 2, - "column": 1, - "offset": 8 - }, - "end": { - "line": 3, - "column": 8, - "offset": 17 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 3, - "column": 8, - "offset": 17 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 4, - "column": 1, - "offset": 18 - } - } -} diff --git a/test/fixtures/tree/list-item-text.json b/test/fixtures/tree/list-item-text.json deleted file mode 100644 index d4b66dcb1..000000000 --- a/test/fixtures/tree/list-item-text.json +++ /dev/null @@ -1,194 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "item1", - "position": { - "start": { - "line": 1, - "column": 5, - "offset": 4 - }, - "end": { - "line": 1, - "column": 10, - "offset": 9 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 5, - "offset": 4 - }, - "end": { - "line": 1, - "column": 10, - "offset": 9 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "item2", - "position": { - "start": { - "line": 3, - "column": 7, - "offset": 17 - }, - "end": { - "line": 3, - "column": 12, - "offset": 22 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 7, - "offset": 17 - }, - "end": { - "line": 3, - "column": 12, - "offset": 22 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 5, - "offset": 15 - }, - "end": { - "line": 3, - "column": 12, - "offset": 22 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 5, - "offset": 15 - }, - "end": { - "line": 3, - "column": 12, - "offset": 22 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 3, - "column": 12, - "offset": 22 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 3, - "column": 12, - "offset": 22 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "text", - "position": { - "start": { - "line": 5, - "column": 3, - "offset": 26 - }, - "end": { - "line": 5, - "column": 7, - "offset": 30 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 3, - "offset": 26 - }, - "end": { - "line": 5, - "column": 7, - "offset": 30 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 6, - "column": 1, - "offset": 31 - } - } -} diff --git a/test/fixtures/tree/list-mixed-indentation.json b/test/fixtures/tree/list-mixed-indentation.json deleted file mode 100644 index a312ca4f2..000000000 --- a/test/fixtures/tree/list-mixed-indentation.json +++ /dev/null @@ -1,1375 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Mixed spaces and tabs", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 24, - "offset": 23 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 24, - "offset": 23 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "(item 1.) Minimum list, equivalent to two spaces", - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 27 - }, - "end": { - "line": 3, - "column": 51, - "offset": 75 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 27 - }, - "end": { - "line": 3, - "column": 51, - "offset": 75 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 25 - }, - "end": { - "line": 3, - "column": 51, - "offset": 75 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "(item 2.) indented with 1 space, not enough indentation to be a subitem", - "position": { - "start": { - "line": 4, - "column": 4, - "offset": 79 - }, - "end": { - "line": 4, - "column": 75, - "offset": 150 - } - } - } - ], - "position": { - "start": { - "line": 4, - "column": 4, - "offset": 79 - }, - "end": { - "line": 4, - "column": 75, - "offset": 150 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "(item 2.1.) indented with tab", - "position": { - "start": { - "line": 5, - "column": 4, - "offset": 154 - }, - "end": { - "line": 5, - "column": 33, - "offset": 183 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 4, - "offset": 154 - }, - "end": { - "line": 5, - "column": 33, - "offset": 183 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 2, - "offset": 152 - }, - "end": { - "line": 5, - "column": 33, - "offset": 183 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 2, - "offset": 152 - }, - "end": { - "line": 5, - "column": 33, - "offset": 183 - } - } - } - ], - "position": { - "start": { - "line": 4, - "column": 2, - "offset": 77 - }, - "end": { - "line": 5, - "column": 33, - "offset": 183 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "(item 1.) Minimum list, equivalent to two spaces", - "position": { - "start": { - "line": 8, - "column": 3, - "offset": 188 - }, - "end": { - "line": 8, - "column": 51, - "offset": 236 - } - } - } - ], - "position": { - "start": { - "line": 8, - "column": 3, - "offset": 188 - }, - "end": { - "line": 8, - "column": 51, - "offset": 236 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "(item 1.1.) indentend with 2 spaces", - "position": { - "start": { - "line": 9, - "column": 5, - "offset": 241 - }, - "end": { - "line": 9, - "column": 40, - "offset": 276 - } - } - } - ], - "position": { - "start": { - "line": 9, - "column": 5, - "offset": 241 - }, - "end": { - "line": 9, - "column": 40, - "offset": 276 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "(item 1.2.) indented with tab", - "position": { - "start": { - "line": 10, - "column": 4, - "offset": 280 - }, - "end": { - "line": 10, - "column": 33, - "offset": 309 - } - } - } - ], - "position": { - "start": { - "line": 10, - "column": 4, - "offset": 280 - }, - "end": { - "line": 10, - "column": 33, - "offset": 309 - } - } - } - ], - "position": { - "start": { - "line": 10, - "column": 2, - "offset": 278 - }, - "end": { - "line": 10, - "column": 33, - "offset": 309 - } - } - } - ], - "position": { - "start": { - "line": 10, - "column": 2, - "offset": 278 - }, - "end": { - "line": 10, - "column": 33, - "offset": 309 - } - } - } - ], - "position": { - "start": { - "line": 9, - "column": 3, - "offset": 239 - }, - "end": { - "line": 10, - "column": 33, - "offset": 309 - } - } - } - ], - "position": { - "start": { - "line": 9, - "column": 3, - "offset": 239 - }, - "end": { - "line": 10, - "column": 33, - "offset": 309 - } - } - } - ], - "position": { - "start": { - "line": 8, - "column": 1, - "offset": 186 - }, - "end": { - "line": 10, - "column": 33, - "offset": 309 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "(item 1.) List with 1 extra space", - "position": { - "start": { - "line": 13, - "column": 4, - "offset": 315 - }, - "end": { - "line": 13, - "column": 37, - "offset": 348 - } - } - } - ], - "position": { - "start": { - "line": 13, - "column": 4, - "offset": 315 - }, - "end": { - "line": 13, - "column": 37, - "offset": 348 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "(item 1.1.) indentend with 3 spaces", - "position": { - "start": { - "line": 14, - "column": 6, - "offset": 354 - }, - "end": { - "line": 14, - "column": 41, - "offset": 389 - } - } - } - ], - "position": { - "start": { - "line": 14, - "column": 6, - "offset": 354 - }, - "end": { - "line": 14, - "column": 41, - "offset": 389 - } - } - } - ], - "position": { - "start": { - "line": 14, - "column": 4, - "offset": 352 - }, - "end": { - "line": 14, - "column": 41, - "offset": 389 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "(item 1.2.) indented with tab", - "position": { - "start": { - "line": 15, - "column": 4, - "offset": 393 - }, - "end": { - "line": 15, - "column": 33, - "offset": 422 - } - } - } - ], - "position": { - "start": { - "line": 15, - "column": 4, - "offset": 393 - }, - "end": { - "line": 15, - "column": 33, - "offset": 422 - } - } - } - ], - "position": { - "start": { - "line": 15, - "column": 2, - "offset": 391 - }, - "end": { - "line": 15, - "column": 33, - "offset": 422 - } - } - } - ], - "position": { - "start": { - "line": 14, - "column": 4, - "offset": 352 - }, - "end": { - "line": 15, - "column": 33, - "offset": 422 - } - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 312 - }, - "end": { - "line": 15, - "column": 33, - "offset": 422 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "(item 1.) List with 2 extra space, equivalent to 1 tab indentation", - "position": { - "start": { - "line": 18, - "column": 5, - "offset": 429 - }, - "end": { - "line": 18, - "column": 71, - "offset": 495 - } - } - } - ], - "position": { - "start": { - "line": 18, - "column": 5, - "offset": 429 - }, - "end": { - "line": 18, - "column": 71, - "offset": 495 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "(item 1.1.) indentend with 4 spaces", - "position": { - "start": { - "line": 19, - "column": 7, - "offset": 502 - }, - "end": { - "line": 19, - "column": 42, - "offset": 537 - } - } - } - ], - "position": { - "start": { - "line": 19, - "column": 7, - "offset": 502 - }, - "end": { - "line": 19, - "column": 42, - "offset": 537 - } - } - } - ], - "position": { - "start": { - "line": 19, - "column": 5, - "offset": 500 - }, - "end": { - "line": 19, - "column": 42, - "offset": 537 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "(item 1.2.) indented with tab", - "position": { - "start": { - "line": 20, - "column": 4, - "offset": 541 - }, - "end": { - "line": 20, - "column": 33, - "offset": 570 - } - } - } - ], - "position": { - "start": { - "line": 20, - "column": 4, - "offset": 541 - }, - "end": { - "line": 20, - "column": 33, - "offset": 570 - } - } - } - ], - "position": { - "start": { - "line": 20, - "column": 2, - "offset": 539 - }, - "end": { - "line": 20, - "column": 33, - "offset": 570 - } - } - } - ], - "position": { - "start": { - "line": 19, - "column": 5, - "offset": 500 - }, - "end": { - "line": 20, - "column": 33, - "offset": 570 - } - } - } - ], - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 425 - }, - "end": { - "line": 20, - "column": 33, - "offset": 570 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "(item 1.) List with 1 tab, equivalent to 4 spaces", - "position": { - "start": { - "line": 23, - "column": 3, - "offset": 575 - }, - "end": { - "line": 23, - "column": 52, - "offset": 624 - } - } - } - ], - "position": { - "start": { - "line": 23, - "column": 3, - "offset": 575 - }, - "end": { - "line": 23, - "column": 52, - "offset": 624 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "(item 1.1.) indentend with 4 spaces", - "position": { - "start": { - "line": 24, - "column": 7, - "offset": 631 - }, - "end": { - "line": 24, - "column": 42, - "offset": 666 - } - } - } - ], - "position": { - "start": { - "line": 24, - "column": 7, - "offset": 631 - }, - "end": { - "line": 24, - "column": 42, - "offset": 666 - } - } - } - ], - "position": { - "start": { - "line": 24, - "column": 5, - "offset": 629 - }, - "end": { - "line": 24, - "column": 42, - "offset": 666 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "(item 1.2.) indented with tab", - "position": { - "start": { - "line": 25, - "column": 4, - "offset": 670 - }, - "end": { - "line": 25, - "column": 33, - "offset": 699 - } - } - } - ], - "position": { - "start": { - "line": 25, - "column": 4, - "offset": 670 - }, - "end": { - "line": 25, - "column": 33, - "offset": 699 - } - } - } - ], - "position": { - "start": { - "line": 25, - "column": 2, - "offset": 668 - }, - "end": { - "line": 25, - "column": 33, - "offset": 699 - } - } - } - ], - "position": { - "start": { - "line": 24, - "column": 5, - "offset": 629 - }, - "end": { - "line": 25, - "column": 33, - "offset": 699 - } - } - } - ], - "position": { - "start": { - "line": 23, - "column": 1, - "offset": 573 - }, - "end": { - "line": 25, - "column": 33, - "offset": 699 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "(item 1.) list with double indentation and mixed items", - "position": { - "start": { - "line": 28, - "column": 3, - "offset": 704 - }, - "end": { - "line": 28, - "column": 57, - "offset": 758 - } - } - } - ], - "position": { - "start": { - "line": 28, - "column": 3, - "offset": 704 - }, - "end": { - "line": 28, - "column": 57, - "offset": 758 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "(item 1.1.) normal indentation with 1 tab", - "position": { - "start": { - "line": 29, - "column": 4, - "offset": 762 - }, - "end": { - "line": 29, - "column": 45, - "offset": 803 - } - } - } - ], - "position": { - "start": { - "line": 29, - "column": 4, - "offset": 762 - }, - "end": { - "line": 29, - "column": 45, - "offset": 803 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "(item 1.1.1.) item with 4 spaces + 4 spaces", - "position": { - "start": { - "line": 30, - "column": 11, - "offset": 814 - }, - "end": { - "line": 30, - "column": 54, - "offset": 857 - } - } - } - ], - "position": { - "start": { - "line": 30, - "column": 11, - "offset": 814 - }, - "end": { - "line": 30, - "column": 54, - "offset": 857 - } - } - } - ], - "position": { - "start": { - "line": 30, - "column": 9, - "offset": 812 - }, - "end": { - "line": 30, - "column": 54, - "offset": 857 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "(item 1.1.2.) item with tab + 4 spaces", - "position": { - "start": { - "line": 31, - "column": 8, - "offset": 865 - }, - "end": { - "line": 31, - "column": 46, - "offset": 903 - } - } - } - ], - "position": { - "start": { - "line": 31, - "column": 8, - "offset": 865 - }, - "end": { - "line": 31, - "column": 46, - "offset": 903 - } - } - } - ], - "position": { - "start": { - "line": 31, - "column": 6, - "offset": 863 - }, - "end": { - "line": 31, - "column": 46, - "offset": 903 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "(item 1.1.3.) item with 4 spaces + tab", - "position": { - "start": { - "line": 32, - "column": 8, - "offset": 911 - }, - "end": { - "line": 32, - "column": 46, - "offset": 949 - } - } - } - ], - "position": { - "start": { - "line": 32, - "column": 8, - "offset": 911 - }, - "end": { - "line": 32, - "column": 46, - "offset": 949 - } - } - } - ], - "position": { - "start": { - "line": 32, - "column": 6, - "offset": 909 - }, - "end": { - "line": 32, - "column": 46, - "offset": 949 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "(item 1.1.4.) item with tab + tab", - "position": { - "start": { - "line": 33, - "column": 5, - "offset": 954 - }, - "end": { - "line": 33, - "column": 38, - "offset": 987 - } - } - } - ], - "position": { - "start": { - "line": 33, - "column": 5, - "offset": 954 - }, - "end": { - "line": 33, - "column": 38, - "offset": 987 - } - } - } - ], - "position": { - "start": { - "line": 33, - "column": 3, - "offset": 952 - }, - "end": { - "line": 33, - "column": 38, - "offset": 987 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "(item 1.1.5.) item with 2 spaces + tab + 2 spaces (nasty!)", - "position": { - "start": { - "line": 34, - "column": 8, - "offset": 995 - }, - "end": { - "line": 34, - "column": 66, - "offset": 1053 - } - } - } - ], - "position": { - "start": { - "line": 34, - "column": 8, - "offset": 995 - }, - "end": { - "line": 34, - "column": 66, - "offset": 1053 - } - } - } - ], - "position": { - "start": { - "line": 34, - "column": 6, - "offset": 993 - }, - "end": { - "line": 34, - "column": 66, - "offset": 1053 - } - } - } - ], - "position": { - "start": { - "line": 30, - "column": 9, - "offset": 812 - }, - "end": { - "line": 34, - "column": 66, - "offset": 1053 - } - } - } - ], - "position": { - "start": { - "line": 29, - "column": 2, - "offset": 760 - }, - "end": { - "line": 34, - "column": 66, - "offset": 1053 - } - } - } - ], - "position": { - "start": { - "line": 29, - "column": 2, - "offset": 760 - }, - "end": { - "line": 34, - "column": 66, - "offset": 1053 - } - } - } - ], - "position": { - "start": { - "line": 28, - "column": 1, - "offset": 702 - }, - "end": { - "line": 34, - "column": 66, - "offset": 1053 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 25 - }, - "end": { - "line": 34, - "column": 66, - "offset": 1053 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 35, - "column": 1, - "offset": 1054 - } - } -} diff --git a/test/fixtures/tree/list-ordered-empty-no-space-single-item.json b/test/fixtures/tree/list-ordered-empty-no-space-single-item.json deleted file mode 100644 index b9d4a0419..000000000 --- a/test/fixtures/tree/list-ordered-empty-no-space-single-item.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 3, - "offset": 2 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 3, - "offset": 2 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 3, - "offset": 2 - } - } -} diff --git a/test/fixtures/tree/list-ordered-empty-no-space.json b/test/fixtures/tree/list-ordered-empty-no-space.json deleted file mode 100644 index 8929b6f20..000000000 --- a/test/fixtures/tree/list-ordered-empty-no-space.json +++ /dev/null @@ -1,109 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 3, - "offset": 2 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [], - "position": { - "start": { - "line": 2, - "column": 1, - "offset": 3 - }, - "end": { - "line": 2, - "column": 3, - "offset": 5 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 6 - }, - "end": { - "line": 3, - "column": 3, - "offset": 8 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [], - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 9 - }, - "end": { - "line": 4, - "column": 3, - "offset": 11 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 4, - "column": 3, - "offset": 11 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 5, - "column": 1, - "offset": 12 - } - } -} diff --git a/test/fixtures/tree/list-ordered.increment-list-marker.output.json b/test/fixtures/tree/list-ordered.increment-list-marker.output.json deleted file mode 100644 index 1a56928c0..000000000 --- a/test/fixtures/tree/list-ordered.increment-list-marker.output.json +++ /dev/null @@ -1,193 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "list", - "ordered": true, - "start": 2, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo;", - "position": { - "start": { - "line": 1, - "column": 5, - "offset": 4 - }, - "end": { - "line": 1, - "column": 9, - "offset": 8 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 5, - "offset": 4 - }, - "end": { - "line": 1, - "column": 9, - "offset": 8 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 9, - "offset": 8 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "bar;", - "position": { - "start": { - "line": 2, - "column": 5, - "offset": 13 - }, - "end": { - "line": 2, - "column": 9, - "offset": 17 - } - } - } - ], - "position": { - "start": { - "line": 2, - "column": 5, - "offset": 13 - }, - "end": { - "line": 2, - "column": 9, - "offset": 17 - } - } - } - ], - "position": { - "start": { - "line": 2, - "column": 1, - "offset": 9 - }, - "end": { - "line": 2, - "column": 9, - "offset": 17 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "baz.", - "position": { - "start": { - "line": 3, - "column": 5, - "offset": 22 - }, - "end": { - "line": 3, - "column": 9, - "offset": 26 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 5, - "offset": 22 - }, - "end": { - "line": 3, - "column": 9, - "offset": 26 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 18 - }, - "end": { - "line": 3, - "column": 9, - "offset": 26 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 3, - "column": 9, - "offset": 26 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 4, - "column": 1, - "offset": 27 - } - } -} diff --git a/test/fixtures/tree/list-ordered.noincrement-list-marker.output.json b/test/fixtures/tree/list-ordered.noincrement-list-marker.output.json deleted file mode 100644 index 1a56928c0..000000000 --- a/test/fixtures/tree/list-ordered.noincrement-list-marker.output.json +++ /dev/null @@ -1,193 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "list", - "ordered": true, - "start": 2, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo;", - "position": { - "start": { - "line": 1, - "column": 5, - "offset": 4 - }, - "end": { - "line": 1, - "column": 9, - "offset": 8 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 5, - "offset": 4 - }, - "end": { - "line": 1, - "column": 9, - "offset": 8 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 9, - "offset": 8 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "bar;", - "position": { - "start": { - "line": 2, - "column": 5, - "offset": 13 - }, - "end": { - "line": 2, - "column": 9, - "offset": 17 - } - } - } - ], - "position": { - "start": { - "line": 2, - "column": 5, - "offset": 13 - }, - "end": { - "line": 2, - "column": 9, - "offset": 17 - } - } - } - ], - "position": { - "start": { - "line": 2, - "column": 1, - "offset": 9 - }, - "end": { - "line": 2, - "column": 9, - "offset": 17 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "baz.", - "position": { - "start": { - "line": 3, - "column": 5, - "offset": 22 - }, - "end": { - "line": 3, - "column": 9, - "offset": 26 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 5, - "offset": 22 - }, - "end": { - "line": 3, - "column": 9, - "offset": 26 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 18 - }, - "end": { - "line": 3, - "column": 9, - "offset": 26 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 3, - "column": 9, - "offset": 26 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 4, - "column": 1, - "offset": 27 - } - } -} diff --git a/test/fixtures/tree/list-unordered-empty-no-space-single-item.json b/test/fixtures/tree/list-unordered-empty-no-space-single-item.json deleted file mode 100644 index ce8b5dcca..000000000 --- a/test/fixtures/tree/list-unordered-empty-no-space-single-item.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 2, - "offset": 1 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 2, - "offset": 1 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 2, - "offset": 1 - } - } -} diff --git a/test/fixtures/tree/list-unordered-empty-no-space.json b/test/fixtures/tree/list-unordered-empty-no-space.json deleted file mode 100644 index d900cb766..000000000 --- a/test/fixtures/tree/list-unordered-empty-no-space.json +++ /dev/null @@ -1,109 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 2, - "offset": 1 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [], - "position": { - "start": { - "line": 2, - "column": 1, - "offset": 2 - }, - "end": { - "line": 2, - "column": 2, - "offset": 3 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 4 - }, - "end": { - "line": 3, - "column": 2, - "offset": 5 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [], - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 6 - }, - "end": { - "line": 4, - "column": 2, - "offset": 7 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 4, - "column": 2, - "offset": 7 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 5, - "column": 1, - "offset": 8 - } - } -} diff --git a/test/fixtures/tree/list.output.bullet=+.json b/test/fixtures/tree/list.output.bullet=+.json deleted file mode 100644 index 3747d64e0..000000000 --- a/test/fixtures/tree/list.output.bullet=+.json +++ /dev/null @@ -1,423 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "List bullets", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 15, - "offset": 14 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 15, - "offset": 14 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "One:", - "position": { - "start": { - "line": 3, - "column": 5, - "offset": 20 - }, - "end": { - "line": 3, - "column": 9, - "offset": 24 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 5, - "offset": 20 - }, - "end": { - "line": 3, - "column": 9, - "offset": 24 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Nested one;", - "position": { - "start": { - "line": 4, - "column": 9, - "offset": 33 - }, - "end": { - "line": 4, - "column": 20, - "offset": 44 - } - } - } - ], - "position": { - "start": { - "line": 4, - "column": 9, - "offset": 33 - }, - "end": { - "line": 4, - "column": 20, - "offset": 44 - } - } - } - ], - "position": { - "start": { - "line": 4, - "column": 5, - "offset": 29 - }, - "end": { - "line": 4, - "column": 20, - "offset": 44 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Nested two:", - "position": { - "start": { - "line": 5, - "column": 9, - "offset": 53 - }, - "end": { - "line": 5, - "column": 20, - "offset": 64 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 9, - "offset": 53 - }, - "end": { - "line": 5, - "column": 20, - "offset": 64 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Nested three.", - "position": { - "start": { - "line": 6, - "column": 13, - "offset": 77 - }, - "end": { - "line": 6, - "column": 26, - "offset": 90 - } - } - } - ], - "position": { - "start": { - "line": 6, - "column": 13, - "offset": 77 - }, - "end": { - "line": 6, - "column": 26, - "offset": 90 - } - } - } - ], - "position": { - "start": { - "line": 6, - "column": 9, - "offset": 73 - }, - "end": { - "line": 6, - "column": 26, - "offset": 90 - } - } - } - ], - "position": { - "start": { - "line": 6, - "column": 9, - "offset": 73 - }, - "end": { - "line": 6, - "column": 26, - "offset": 90 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 5, - "offset": 49 - }, - "end": { - "line": 6, - "column": 26, - "offset": 90 - } - } - } - ], - "position": { - "start": { - "line": 4, - "column": 5, - "offset": 29 - }, - "end": { - "line": 6, - "column": 26, - "offset": 90 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 16 - }, - "end": { - "line": 6, - "column": 26, - "offset": 90 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Two;", - "position": { - "start": { - "line": 7, - "column": 5, - "offset": 95 - }, - "end": { - "line": 7, - "column": 9, - "offset": 99 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 5, - "offset": 95 - }, - "end": { - "line": 7, - "column": 9, - "offset": 99 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 91 - }, - "end": { - "line": 7, - "column": 9, - "offset": 99 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Three.", - "position": { - "start": { - "line": 8, - "column": 5, - "offset": 104 - }, - "end": { - "line": 8, - "column": 11, - "offset": 110 - } - } - } - ], - "position": { - "start": { - "line": 8, - "column": 5, - "offset": 104 - }, - "end": { - "line": 8, - "column": 11, - "offset": 110 - } - } - } - ], - "position": { - "start": { - "line": 8, - "column": 1, - "offset": 100 - }, - "end": { - "line": 8, - "column": 11, - "offset": 110 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 16 - }, - "end": { - "line": 8, - "column": 11, - "offset": 110 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 9, - "column": 1, - "offset": 111 - } - } -} diff --git a/test/fixtures/tree/list.output.bullet=-.json b/test/fixtures/tree/list.output.bullet=-.json deleted file mode 100644 index 3747d64e0..000000000 --- a/test/fixtures/tree/list.output.bullet=-.json +++ /dev/null @@ -1,423 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "List bullets", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 15, - "offset": 14 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 15, - "offset": 14 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "One:", - "position": { - "start": { - "line": 3, - "column": 5, - "offset": 20 - }, - "end": { - "line": 3, - "column": 9, - "offset": 24 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 5, - "offset": 20 - }, - "end": { - "line": 3, - "column": 9, - "offset": 24 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Nested one;", - "position": { - "start": { - "line": 4, - "column": 9, - "offset": 33 - }, - "end": { - "line": 4, - "column": 20, - "offset": 44 - } - } - } - ], - "position": { - "start": { - "line": 4, - "column": 9, - "offset": 33 - }, - "end": { - "line": 4, - "column": 20, - "offset": 44 - } - } - } - ], - "position": { - "start": { - "line": 4, - "column": 5, - "offset": 29 - }, - "end": { - "line": 4, - "column": 20, - "offset": 44 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Nested two:", - "position": { - "start": { - "line": 5, - "column": 9, - "offset": 53 - }, - "end": { - "line": 5, - "column": 20, - "offset": 64 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 9, - "offset": 53 - }, - "end": { - "line": 5, - "column": 20, - "offset": 64 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Nested three.", - "position": { - "start": { - "line": 6, - "column": 13, - "offset": 77 - }, - "end": { - "line": 6, - "column": 26, - "offset": 90 - } - } - } - ], - "position": { - "start": { - "line": 6, - "column": 13, - "offset": 77 - }, - "end": { - "line": 6, - "column": 26, - "offset": 90 - } - } - } - ], - "position": { - "start": { - "line": 6, - "column": 9, - "offset": 73 - }, - "end": { - "line": 6, - "column": 26, - "offset": 90 - } - } - } - ], - "position": { - "start": { - "line": 6, - "column": 9, - "offset": 73 - }, - "end": { - "line": 6, - "column": 26, - "offset": 90 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 5, - "offset": 49 - }, - "end": { - "line": 6, - "column": 26, - "offset": 90 - } - } - } - ], - "position": { - "start": { - "line": 4, - "column": 5, - "offset": 29 - }, - "end": { - "line": 6, - "column": 26, - "offset": 90 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 16 - }, - "end": { - "line": 6, - "column": 26, - "offset": 90 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Two;", - "position": { - "start": { - "line": 7, - "column": 5, - "offset": 95 - }, - "end": { - "line": 7, - "column": 9, - "offset": 99 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 5, - "offset": 95 - }, - "end": { - "line": 7, - "column": 9, - "offset": 99 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 91 - }, - "end": { - "line": 7, - "column": 9, - "offset": 99 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Three.", - "position": { - "start": { - "line": 8, - "column": 5, - "offset": 104 - }, - "end": { - "line": 8, - "column": 11, - "offset": 110 - } - } - } - ], - "position": { - "start": { - "line": 8, - "column": 5, - "offset": 104 - }, - "end": { - "line": 8, - "column": 11, - "offset": 110 - } - } - } - ], - "position": { - "start": { - "line": 8, - "column": 1, - "offset": 100 - }, - "end": { - "line": 8, - "column": 11, - "offset": 110 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 16 - }, - "end": { - "line": 8, - "column": 11, - "offset": 110 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 9, - "column": 1, - "offset": 111 - } - } -} diff --git a/test/fixtures/tree/list.output.bullet=-asterisk-.json b/test/fixtures/tree/list.output.bullet=-asterisk-.json deleted file mode 100644 index 3747d64e0..000000000 --- a/test/fixtures/tree/list.output.bullet=-asterisk-.json +++ /dev/null @@ -1,423 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "List bullets", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 15, - "offset": 14 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 15, - "offset": 14 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "One:", - "position": { - "start": { - "line": 3, - "column": 5, - "offset": 20 - }, - "end": { - "line": 3, - "column": 9, - "offset": 24 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 5, - "offset": 20 - }, - "end": { - "line": 3, - "column": 9, - "offset": 24 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Nested one;", - "position": { - "start": { - "line": 4, - "column": 9, - "offset": 33 - }, - "end": { - "line": 4, - "column": 20, - "offset": 44 - } - } - } - ], - "position": { - "start": { - "line": 4, - "column": 9, - "offset": 33 - }, - "end": { - "line": 4, - "column": 20, - "offset": 44 - } - } - } - ], - "position": { - "start": { - "line": 4, - "column": 5, - "offset": 29 - }, - "end": { - "line": 4, - "column": 20, - "offset": 44 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Nested two:", - "position": { - "start": { - "line": 5, - "column": 9, - "offset": 53 - }, - "end": { - "line": 5, - "column": 20, - "offset": 64 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 9, - "offset": 53 - }, - "end": { - "line": 5, - "column": 20, - "offset": 64 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Nested three.", - "position": { - "start": { - "line": 6, - "column": 13, - "offset": 77 - }, - "end": { - "line": 6, - "column": 26, - "offset": 90 - } - } - } - ], - "position": { - "start": { - "line": 6, - "column": 13, - "offset": 77 - }, - "end": { - "line": 6, - "column": 26, - "offset": 90 - } - } - } - ], - "position": { - "start": { - "line": 6, - "column": 9, - "offset": 73 - }, - "end": { - "line": 6, - "column": 26, - "offset": 90 - } - } - } - ], - "position": { - "start": { - "line": 6, - "column": 9, - "offset": 73 - }, - "end": { - "line": 6, - "column": 26, - "offset": 90 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 5, - "offset": 49 - }, - "end": { - "line": 6, - "column": 26, - "offset": 90 - } - } - } - ], - "position": { - "start": { - "line": 4, - "column": 5, - "offset": 29 - }, - "end": { - "line": 6, - "column": 26, - "offset": 90 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 16 - }, - "end": { - "line": 6, - "column": 26, - "offset": 90 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Two;", - "position": { - "start": { - "line": 7, - "column": 5, - "offset": 95 - }, - "end": { - "line": 7, - "column": 9, - "offset": 99 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 5, - "offset": 95 - }, - "end": { - "line": 7, - "column": 9, - "offset": 99 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 91 - }, - "end": { - "line": 7, - "column": 9, - "offset": 99 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Three.", - "position": { - "start": { - "line": 8, - "column": 5, - "offset": 104 - }, - "end": { - "line": 8, - "column": 11, - "offset": 110 - } - } - } - ], - "position": { - "start": { - "line": 8, - "column": 5, - "offset": 104 - }, - "end": { - "line": 8, - "column": 11, - "offset": 110 - } - } - } - ], - "position": { - "start": { - "line": 8, - "column": 1, - "offset": 100 - }, - "end": { - "line": 8, - "column": 11, - "offset": 110 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 16 - }, - "end": { - "line": 8, - "column": 11, - "offset": 110 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 9, - "column": 1, - "offset": 111 - } - } -} diff --git a/test/fixtures/tree/lists-with-code-and-rules.json b/test/fixtures/tree/lists-with-code-and-rules.json deleted file mode 100644 index b35cb40ad..000000000 --- a/test/fixtures/tree/lists-with-code-and-rules.json +++ /dev/null @@ -1,814 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "heading", - "depth": 2, - "children": [ - { - "type": "text", - "value": "foo", - "position": { - "start": { - "line": 1, - "column": 4, - "offset": 3 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - } - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "bar:", - "position": { - "start": { - "line": 3, - "column": 4, - "offset": 11 - }, - "end": { - "line": 3, - "column": 8, - "offset": 15 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 4, - "offset": 11 - }, - "end": { - "line": 3, - "column": 8, - "offset": 15 - } - } - }, - { - "type": "blockquote", - "children": [ - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "one\n- two\n- three\n- four\n- five", - "position": { - "start": { - "line": 5, - "column": 9, - "offset": 25 - }, - "end": { - "line": 9, - "column": 19, - "offset": 100 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 9, - "offset": 25 - }, - "end": { - "line": 9, - "column": 19, - "offset": 100 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 7, - "offset": 23 - }, - "end": { - "line": 9, - "column": 19, - "offset": 100 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 7, - "offset": 23 - }, - "end": { - "line": 9, - "column": 19, - "offset": 100 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 5, - "offset": 21 - }, - "end": { - "line": 9, - "column": 19, - "offset": 100 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 8 - }, - "end": { - "line": 9, - "column": 19, - "offset": 100 - } - } - }, - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo:", - "position": { - "start": { - "line": 11, - "column": 4, - "offset": 105 - }, - "end": { - "line": 11, - "column": 8, - "offset": 109 - } - } - } - ], - "position": { - "start": { - "line": 11, - "column": 4, - "offset": 105 - }, - "end": { - "line": 11, - "column": 8, - "offset": 109 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "line 1\nline 2", - "position": { - "start": { - "line": 13, - "column": 5, - "offset": 115 - }, - "end": { - "line": 16, - "column": 8, - "offset": 148 - } - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 102 - }, - "end": { - "line": 16, - "column": 8, - "offset": 148 - } - } - }, - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo:", - "position": { - "start": { - "line": 18, - "column": 4, - "offset": 153 - }, - "end": { - "line": 18, - "column": 8, - "offset": 157 - } - } - } - ], - "position": { - "start": { - "line": 18, - "column": 4, - "offset": 153 - }, - "end": { - "line": 18, - "column": 8, - "offset": 157 - } - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo ", - "position": { - "start": { - "line": 20, - "column": 8, - "offset": 166 - }, - "end": { - "line": 20, - "column": 12, - "offset": 170 - } - } - }, - { - "type": "inlineCode", - "value": "bar", - "position": { - "start": { - "line": 20, - "column": 12, - "offset": 170 - }, - "end": { - "line": 20, - "column": 17, - "offset": 175 - } - } - }, - { - "type": "text", - "value": " bar:", - "position": { - "start": { - "line": 20, - "column": 17, - "offset": 175 - }, - "end": { - "line": 20, - "column": 22, - "offset": 180 - } - } - } - ], - "position": { - "start": { - "line": 20, - "column": 8, - "offset": 166 - }, - "end": { - "line": 20, - "column": 22, - "offset": 180 - } - } - }, - { - "type": "code", - "lang": "erb", - "meta": null, - "value": "some code here", - "position": { - "start": { - "line": 22, - "column": 9, - "offset": 190 - }, - "end": { - "line": 24, - "column": 12, - "offset": 232 - } - } - } - ], - "position": { - "start": { - "line": 20, - "column": 5, - "offset": 163 - }, - "end": { - "line": 24, - "column": 12, - "offset": 232 - } - } - }, - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo ", - "position": { - "start": { - "line": 26, - "column": 8, - "offset": 241 - }, - "end": { - "line": 26, - "column": 12, - "offset": 245 - } - } - }, - { - "type": "inlineCode", - "value": "bar", - "position": { - "start": { - "line": 26, - "column": 12, - "offset": 245 - }, - "end": { - "line": 26, - "column": 17, - "offset": 250 - } - } - }, - { - "type": "text", - "value": " bar:", - "position": { - "start": { - "line": 26, - "column": 17, - "offset": 250 - }, - "end": { - "line": 26, - "column": 22, - "offset": 255 - } - } - } - ], - "position": { - "start": { - "line": 26, - "column": 8, - "offset": 241 - }, - "end": { - "line": 26, - "column": 22, - "offset": 255 - } - } - }, - { - "type": "code", - "lang": "erb", - "meta": null, - "value": "foo\n---\nbar\n---\nfoo\nbar", - "position": { - "start": { - "line": 28, - "column": 9, - "offset": 265 - }, - "end": { - "line": 35, - "column": 12, - "offset": 356 - } - } - } - ], - "position": { - "start": { - "line": 26, - "column": 5, - "offset": 238 - }, - "end": { - "line": 35, - "column": 12, - "offset": 356 - } - } - }, - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo ", - "position": { - "start": { - "line": 37, - "column": 8, - "offset": 365 - }, - "end": { - "line": 37, - "column": 12, - "offset": 369 - } - } - }, - { - "type": "inlineCode", - "value": "bar", - "position": { - "start": { - "line": 37, - "column": 12, - "offset": 369 - }, - "end": { - "line": 37, - "column": 17, - "offset": 374 - } - } - }, - { - "type": "text", - "value": " bar:", - "position": { - "start": { - "line": 37, - "column": 17, - "offset": 374 - }, - "end": { - "line": 37, - "column": 22, - "offset": 379 - } - } - } - ], - "position": { - "start": { - "line": 37, - "column": 8, - "offset": 365 - }, - "end": { - "line": 37, - "column": 22, - "offset": 379 - } - } - }, - { - "type": "code", - "lang": "html", - "meta": null, - "value": "---\nfoo\nfoo\n---\nbar", - "position": { - "start": { - "line": 39, - "column": 9, - "offset": 389 - }, - "end": { - "line": 45, - "column": 12, - "offset": 469 - } - } - } - ], - "position": { - "start": { - "line": 37, - "column": 5, - "offset": 362 - }, - "end": { - "line": 45, - "column": 12, - "offset": 469 - } - } - }, - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo ", - "position": { - "start": { - "line": 47, - "column": 8, - "offset": 478 - }, - "end": { - "line": 47, - "column": 12, - "offset": 482 - } - } - }, - { - "type": "inlineCode", - "value": "bar", - "position": { - "start": { - "line": 47, - "column": 12, - "offset": 482 - }, - "end": { - "line": 47, - "column": 17, - "offset": 487 - } - } - }, - { - "type": "text", - "value": " bar:", - "position": { - "start": { - "line": 47, - "column": 17, - "offset": 487 - }, - "end": { - "line": 47, - "column": 22, - "offset": 492 - } - } - } - ], - "position": { - "start": { - "line": 47, - "column": 8, - "offset": 478 - }, - "end": { - "line": 47, - "column": 22, - "offset": 492 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": " foo\n ---\n bar", - "position": { - "start": { - "line": 49, - "column": 8, - "offset": 501 - }, - "end": { - "line": 51, - "column": 16, - "offset": 541 - } - } - } - ], - "position": { - "start": { - "line": 47, - "column": 5, - "offset": 475 - }, - "end": { - "line": 51, - "column": 16, - "offset": 541 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo", - "position": { - "start": { - "line": 53, - "column": 8, - "offset": 550 - }, - "end": { - "line": 53, - "column": 11, - "offset": 553 - } - } - } - ], - "position": { - "start": { - "line": 53, - "column": 8, - "offset": 550 - }, - "end": { - "line": 53, - "column": 11, - "offset": 553 - } - } - } - ], - "position": { - "start": { - "line": 53, - "column": 5, - "offset": 547 - }, - "end": { - "line": 53, - "column": 11, - "offset": 553 - } - } - } - ], - "position": { - "start": { - "line": 20, - "column": 5, - "offset": 163 - }, - "end": { - "line": 53, - "column": 11, - "offset": 553 - } - } - } - ], - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 150 - }, - "end": { - "line": 53, - "column": 11, - "offset": 553 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 8 - }, - "end": { - "line": 53, - "column": 11, - "offset": 553 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 54, - "column": 1, - "offset": 554 - } - } -} diff --git a/test/fixtures/tree/literal-email.json b/test/fixtures/tree/literal-email.json deleted file mode 100644 index d76981764..000000000 --- a/test/fixtures/tree/literal-email.json +++ /dev/null @@ -1,314 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "example1 (1234567@example.com)\nexample1 (mailto:1234567@example.com)", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 38, - "offset": 68 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 38, - "offset": 68 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Lorem foo@bar.baz ipsum.", - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 70 - }, - "end": { - "line": 4, - "column": 25, - "offset": 94 - } - } - } - ], - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 70 - }, - "end": { - "line": 4, - "column": 25, - "offset": 94 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "alpha@bravo+charlie.delta isn’t valid, but echo+foxtrot@golf.hotel is.", - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 96 - }, - "end": { - "line": 6, - "column": 71, - "offset": 166 - } - } - } - ], - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 96 - }, - "end": { - "line": 6, - "column": 71, - "offset": 166 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Valid: a.b-c_d@a.b", - "position": { - "start": { - "line": 8, - "column": 1, - "offset": 168 - }, - "end": { - "line": 8, - "column": 19, - "offset": 186 - } - } - } - ], - "position": { - "start": { - "line": 8, - "column": 1, - "offset": 168 - }, - "end": { - "line": 8, - "column": 19, - "offset": 186 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Valid, but the dot is not part of the email: a.b-c_d@a.b.", - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 188 - }, - "end": { - "line": 10, - "column": 58, - "offset": 245 - } - } - } - ], - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 188 - }, - "end": { - "line": 10, - "column": 58, - "offset": 245 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Not valid: a.b-c_d@a.b-", - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 247 - }, - "end": { - "line": 12, - "column": 24, - "offset": 270 - } - } - } - ], - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 247 - }, - "end": { - "line": 12, - "column": 24, - "offset": 270 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Not valid: a.b-c_d@a.b_", - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 272 - }, - "end": { - "line": 14, - "column": 24, - "offset": 295 - } - } - } - ], - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 272 - }, - "end": { - "line": 14, - "column": 24, - "offset": 295 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Not valid: alpha@bravo.", - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 297 - }, - "end": { - "line": 16, - "column": 24, - "offset": 320 - } - } - } - ], - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 297 - }, - "end": { - "line": 16, - "column": 24, - "offset": 320 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This will make me fail the test because\nmarkdown.js doesnt acknowledge arbitrary html blocks =/", - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 303 - }, - "end": { - "line": 12, - "column": 64, - "offset": 413 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "List Item 1", - "position": { - "start": { - "line": 14, - "column": 3, - "offset": 417 - }, - "end": { - "line": 14, - "column": 14, - "offset": 428 - } - } - } - ], - "position": { - "start": { - "line": 14, - "column": 3, - "offset": 417 - }, - "end": { - "line": 14, - "column": 14, - "offset": 428 - } - } - } - ], - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 415 - }, - "end": { - "line": 14, - "column": 14, - "offset": 428 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "List Item 2", - "position": { - "start": { - "line": 16, - "column": 3, - "offset": 432 - }, - "end": { - "line": 16, - "column": 14, - "offset": 443 - } - } - } - ], - "position": { - "start": { - "line": 16, - "column": 3, - "offset": 432 - }, - "end": { - "line": 16, - "column": 14, - "offset": 443 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "New List Item 1\nHi, this is a list item.", - "position": { - "start": { - "line": 17, - "column": 5, - "offset": 448 - }, - "end": { - "line": 18, - "column": 29, - "offset": 492 - } - } - } - ], - "position": { - "start": { - "line": 17, - "column": 5, - "offset": 448 - }, - "end": { - "line": 18, - "column": 29, - "offset": 492 - } - } - } - ], - "position": { - "start": { - "line": 17, - "column": 3, - "offset": 446 - }, - "end": { - "line": 18, - "column": 29, - "offset": 492 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "New List Item 2\nAnother item\nCode goes here.\nLots of it...", - "position": { - "start": { - "line": 19, - "column": 5, - "offset": 497 - }, - "end": { - "line": 22, - "column": 22, - "offset": 575 - } - } - } - ], - "position": { - "start": { - "line": 19, - "column": 5, - "offset": 497 - }, - "end": { - "line": 22, - "column": 22, - "offset": 575 - } - } - } - ], - "position": { - "start": { - "line": 19, - "column": 3, - "offset": 495 - }, - "end": { - "line": 22, - "column": 22, - "offset": 575 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "New List Item 3\nThe last item", - "position": { - "start": { - "line": 23, - "column": 5, - "offset": 580 - }, - "end": { - "line": 24, - "column": 18, - "offset": 613 - } - } - } - ], - "position": { - "start": { - "line": 23, - "column": 5, - "offset": 580 - }, - "end": { - "line": 24, - "column": 18, - "offset": 613 - } - } - } - ], - "position": { - "start": { - "line": 23, - "column": 3, - "offset": 578 - }, - "end": { - "line": 24, - "column": 18, - "offset": 613 - } - } - } - ], - "position": { - "start": { - "line": 17, - "column": 3, - "offset": 446 - }, - "end": { - "line": 24, - "column": 18, - "offset": 613 - } - } - } - ], - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 430 - }, - "end": { - "line": 24, - "column": 18, - "offset": 613 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "List Item 3\nThe final item.", - "position": { - "start": { - "line": 26, - "column": 3, - "offset": 617 - }, - "end": { - "line": 27, - "column": 16, - "offset": 644 - } - } - } - ], - "position": { - "start": { - "line": 26, - "column": 3, - "offset": 617 - }, - "end": { - "line": 27, - "column": 16, - "offset": 644 - } - } - } - ], - "position": { - "start": { - "line": 26, - "column": 1, - "offset": 615 - }, - "end": { - "line": 27, - "column": 16, - "offset": 644 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "List Item 4\nThe real final item.", - "position": { - "start": { - "line": 29, - "column": 3, - "offset": 648 - }, - "end": { - "line": 30, - "column": 21, - "offset": 680 - } - } - } - ], - "position": { - "start": { - "line": 29, - "column": 3, - "offset": 648 - }, - "end": { - "line": 30, - "column": 21, - "offset": 680 - } - } - } - ], - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 646 - }, - "end": { - "line": 30, - "column": 21, - "offset": 680 - } - } - } - ], - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 415 - }, - "end": { - "line": 30, - "column": 21, - "offset": 680 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Paragraph.", - "position": { - "start": { - "line": 32, - "column": 1, - "offset": 682 - }, - "end": { - "line": 32, - "column": 11, - "offset": 692 - } - } - } - ], - "position": { - "start": { - "line": 32, - "column": 1, - "offset": 682 - }, - "end": { - "line": 32, - "column": 11, - "offset": 692 - } - } - }, - { - "type": "blockquote", - "children": [ - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "bq Item 1", - "position": { - "start": { - "line": 34, - "column": 5, - "offset": 698 - }, - "end": { - "line": 34, - "column": 14, - "offset": 707 - } - } - } - ], - "position": { - "start": { - "line": 34, - "column": 5, - "offset": 698 - }, - "end": { - "line": 34, - "column": 14, - "offset": 707 - } - } - } - ], - "position": { - "start": { - "line": 34, - "column": 3, - "offset": 696 - }, - "end": { - "line": 34, - "column": 14, - "offset": 707 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "bq Item 2", - "position": { - "start": { - "line": 35, - "column": 5, - "offset": 712 - }, - "end": { - "line": 35, - "column": 14, - "offset": 721 - } - } - } - ], - "position": { - "start": { - "line": 35, - "column": 5, - "offset": 712 - }, - "end": { - "line": 35, - "column": 14, - "offset": 721 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "New bq Item 1", - "position": { - "start": { - "line": 36, - "column": 7, - "offset": 728 - }, - "end": { - "line": 36, - "column": 20, - "offset": 741 - } - } - } - ], - "position": { - "start": { - "line": 36, - "column": 7, - "offset": 728 - }, - "end": { - "line": 36, - "column": 20, - "offset": 741 - } - } - } - ], - "position": { - "start": { - "line": 36, - "column": 5, - "offset": 726 - }, - "end": { - "line": 36, - "column": 20, - "offset": 741 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "New bq Item 2\nText here", - "position": { - "start": { - "line": 37, - "column": 7, - "offset": 748 - }, - "end": { - "line": 38, - "column": 14, - "offset": 775 - } - } - } - ], - "position": { - "start": { - "line": 37, - "column": 7, - "offset": 748 - }, - "end": { - "line": 38, - "column": 14, - "offset": 775 - } - } - } - ], - "position": { - "start": { - "line": 37, - "column": 5, - "offset": 746 - }, - "end": { - "line": 38, - "column": 14, - "offset": 775 - } - } - } - ], - "position": { - "start": { - "line": 36, - "column": 5, - "offset": 726 - }, - "end": { - "line": 38, - "column": 14, - "offset": 775 - } - } - } - ], - "position": { - "start": { - "line": 35, - "column": 3, - "offset": 710 - }, - "end": { - "line": 38, - "column": 14, - "offset": 775 - } - } - } - ], - "position": { - "start": { - "line": 34, - "column": 3, - "offset": 696 - }, - "end": { - "line": 38, - "column": 14, - "offset": 775 - } - } - } - ], - "position": { - "start": { - "line": 34, - "column": 1, - "offset": 694 - }, - "end": { - "line": 38, - "column": 14, - "offset": 775 - } - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 40, - "column": 1, - "offset": 777 - }, - "end": { - "line": 40, - "column": 6, - "offset": 782 - } - } - }, - { - "type": "blockquote", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Another blockquote!\nI really need to get\nmore creative with\nmockup text..\nmarkdown.js breaks here again", - "position": { - "start": { - "line": 42, - "column": 3, - "offset": 786 - }, - "end": { - "line": 46, - "column": 32, - "offset": 897 - } - } - } - ], - "position": { - "start": { - "line": 42, - "column": 3, - "offset": 786 - }, - "end": { - "line": 46, - "column": 32, - "offset": 897 - } - } - } - ], - "position": { - "start": { - "line": 42, - "column": 1, - "offset": 784 - }, - "end": { - "line": 46, - "column": 32, - "offset": 897 - } - } - }, - { - "type": "heading", - "depth": 2, - "children": [ - { - "type": "text", - "value": "Another Heading", - "position": { - "start": { - "line": 48, - "column": 1, - "offset": 899 - }, - "end": { - "line": 48, - "column": 16, - "offset": 914 - } - } - } - ], - "position": { - "start": { - "line": 48, - "column": 1, - "offset": 899 - }, - "end": { - "line": 49, - "column": 14, - "offset": 928 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hello ", - "position": { - "start": { - "line": 51, - "column": 1, - "offset": 930 - }, - "end": { - "line": 51, - "column": 7, - "offset": 936 - } - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "world", - "position": { - "start": { - "line": 51, - "column": 8, - "offset": 937 - }, - "end": { - "line": 51, - "column": 13, - "offset": 942 - } - } - } - ], - "position": { - "start": { - "line": 51, - "column": 7, - "offset": 936 - }, - "end": { - "line": 51, - "column": 14, - "offset": 943 - } - } - }, - { - "type": "text", - "value": ". Here is a ", - "position": { - "start": { - "line": 51, - "column": 14, - "offset": 943 - }, - "end": { - "line": 51, - "column": 26, - "offset": 955 - } - } - }, - { - "type": "link", - "title": null, - "url": "//hello", - "children": [ - { - "type": "text", - "value": "link", - "position": { - "start": { - "line": 51, - "column": 27, - "offset": 956 - }, - "end": { - "line": 51, - "column": 31, - "offset": 960 - } - } - } - ], - "position": { - "start": { - "line": 51, - "column": 26, - "offset": 955 - }, - "end": { - "line": 51, - "column": 41, - "offset": 970 - } - } - }, - { - "type": "text", - "value": ".\nAnd an image ", - "position": { - "start": { - "line": 51, - "column": 41, - "offset": 970 - }, - "end": { - "line": 52, - "column": 14, - "offset": 985 - } - } - }, - { - "type": "image", - "title": "a title", - "url": "src", - "alt": "alt", - "position": { - "start": { - "line": 52, - "column": 14, - "offset": 985 - }, - "end": { - "line": 52, - "column": 35, - "offset": 1006 - } - } - }, - { - "type": "text", - "value": ".\nAnd an image with an empty alt attribute ", - "position": { - "start": { - "line": 52, - "column": 35, - "offset": 1006 - }, - "end": { - "line": 53, - "column": 42, - "offset": 1049 - } - } - }, - { - "type": "image", - "title": null, - "url": "src", - "alt": "", - "position": { - "start": { - "line": 53, - "column": 42, - "offset": 1049 - }, - "end": { - "line": 53, - "column": 50, - "offset": 1057 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 53, - "column": 50, - "offset": 1057 - }, - "end": { - "line": 53, - "column": 51, - "offset": 1058 - } - } - } - ], - "position": { - "start": { - "line": 51, - "column": 1, - "offset": 930 - }, - "end": { - "line": 53, - "column": 51, - "offset": 1058 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "Code goes here.\nLots of it...", - "position": { - "start": { - "line": 55, - "column": 1, - "offset": 1060 - }, - "end": { - "line": 56, - "column": 18, - "offset": 1097 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 57, - "column": 1, - "offset": 1098 - } - } -} diff --git a/test/fixtures/tree/markdown-documentation-basics.json b/test/fixtures/tree/markdown-documentation-basics.json deleted file mode 100644 index ba339e159..000000000 --- a/test/fixtures/tree/markdown-documentation-basics.json +++ /dev/null @@ -1,3015 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Markdown: Basics", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 17, - "offset": 16 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 17, - "offset": 33 - } - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 35 - }, - "end": { - "line": 10, - "column": 6, - "offset": 508 - } - } - }, - { - "type": "heading", - "depth": 2, - "children": [ - { - "type": "text", - "value": "Getting the Gist of Markdown's Formatting Syntax", - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 511 - }, - "end": { - "line": 13, - "column": 49, - "offset": 559 - } - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 511 - }, - "end": { - "line": 14, - "column": 49, - "offset": 608 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This page offers a brief overview of what it's like to use Markdown.\nThe [syntax page] ", - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 610 - }, - "end": { - "line": 17, - "column": 19, - "offset": 697 - } - } - }, - { - "type": "linkReference", - "children": [ - { - "type": "text", - "value": "s", - "position": { - "start": { - "line": 17, - "column": 20, - "offset": 698 - }, - "end": { - "line": 17, - "column": 21, - "offset": 699 - } - } - } - ], - "position": { - "start": { - "line": 17, - "column": 19, - "offset": 697 - }, - "end": { - "line": 17, - "column": 22, - "offset": 700 - } - }, - "label": "s", - "identifier": "s", - "referenceType": "shortcut" - }, - { - "type": "text", - "value": " provides complete, detailed documentation for\nevery feature, but Markdown should be very easy to pick up simply by\nlooking at a few examples of it in action. The examples on this page\nare written in a before/after style, showing example syntax and the\nHTML output produced by Markdown.", - "position": { - "start": { - "line": 17, - "column": 22, - "offset": 700 - }, - "end": { - "line": 21, - "column": 34, - "offset": 986 - } - } - } - ], - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 610 - }, - "end": { - "line": 21, - "column": 34, - "offset": 986 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "It's also helpful to simply try Markdown out; the [Dingus] ", - "position": { - "start": { - "line": 23, - "column": 1, - "offset": 988 - }, - "end": { - "line": 23, - "column": 60, - "offset": 1047 - } - } - }, - { - "type": "linkReference", - "children": [ - { - "type": "text", - "value": "d", - "position": { - "start": { - "line": 23, - "column": 61, - "offset": 1048 - }, - "end": { - "line": 23, - "column": 62, - "offset": 1049 - } - } - } - ], - "position": { - "start": { - "line": 23, - "column": 60, - "offset": 1047 - }, - "end": { - "line": 23, - "column": 63, - "offset": 1050 - } - }, - "label": "d", - "identifier": "d", - "referenceType": "shortcut" - }, - { - "type": "text", - "value": " is a\nweb application that allows you type your own Markdown-formatted text\nand translate it to XHTML.", - "position": { - "start": { - "line": 23, - "column": 63, - "offset": 1050 - }, - "end": { - "line": 25, - "column": 27, - "offset": 1152 - } - } - } - ], - "position": { - "start": { - "line": 23, - "column": 1, - "offset": 988 - }, - "end": { - "line": 25, - "column": 27, - "offset": 1152 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "Note:", - "position": { - "start": { - "line": 27, - "column": 3, - "offset": 1156 - }, - "end": { - "line": 27, - "column": 8, - "offset": 1161 - } - } - } - ], - "position": { - "start": { - "line": 27, - "column": 1, - "offset": 1154 - }, - "end": { - "line": 27, - "column": 10, - "offset": 1163 - } - } - }, - { - "type": "text", - "value": " This document is itself written using Markdown; you\ncan [see the source for it by adding '.text' to the URL] ", - "position": { - "start": { - "line": 27, - "column": 10, - "offset": 1163 - }, - "end": { - "line": 28, - "column": 58, - "offset": 1273 - } - } - }, - { - "type": "linkReference", - "children": [ - { - "type": "text", - "value": "src", - "position": { - "start": { - "line": 28, - "column": 59, - "offset": 1274 - }, - "end": { - "line": 28, - "column": 62, - "offset": 1277 - } - } - } - ], - "position": { - "start": { - "line": 28, - "column": 58, - "offset": 1273 - }, - "end": { - "line": 28, - "column": 63, - "offset": 1278 - } - }, - "label": "src", - "identifier": "src", - "referenceType": "shortcut" - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 28, - "column": 63, - "offset": 1278 - }, - "end": { - "line": 28, - "column": 64, - "offset": 1279 - } - } - } - ], - "position": { - "start": { - "line": 27, - "column": 1, - "offset": 1154 - }, - "end": { - "line": 28, - "column": 64, - "offset": 1279 - } - } - }, - { - "type": "definition", - "identifier": "s", - "label": "s", - "title": "Markdown Syntax", - "url": "/projects/markdown/syntax", - "position": { - "start": { - "line": 30, - "column": 3, - "offset": 1283 - }, - "end": { - "line": 30, - "column": 52, - "offset": 1332 - } - } - }, - { - "type": "definition", - "identifier": "d", - "label": "d", - "title": "Markdown Dingus", - "url": "/projects/markdown/dingus", - "position": { - "start": { - "line": 31, - "column": 3, - "offset": 1335 - }, - "end": { - "line": 31, - "column": 52, - "offset": 1384 - } - } - }, - { - "type": "definition", - "identifier": "src", - "label": "src", - "title": null, - "url": "/projects/markdown/basics.text", - "position": { - "start": { - "line": 32, - "column": 3, - "offset": 1387 - }, - "end": { - "line": 32, - "column": 40, - "offset": 1424 - } - } - }, - { - "type": "heading", - "depth": 2, - "children": [ - { - "type": "text", - "value": "Paragraphs, Headers, Blockquotes", - "position": { - "start": { - "line": 35, - "column": 4, - "offset": 1430 - }, - "end": { - "line": 35, - "column": 36, - "offset": 1462 - } - } - } - ], - "position": { - "start": { - "line": 35, - "column": 1, - "offset": 1427 - }, - "end": { - "line": 35, - "column": 39, - "offset": 1465 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "A paragraph is simply one or more consecutive lines of text, separated\nby one or more blank lines. (A blank line is any line that looks like a\nblank line -- a line containing nothing spaces or tabs is considered\nblank.) Normal paragraphs should not be intended with spaces or tabs.", - "position": { - "start": { - "line": 37, - "column": 1, - "offset": 1467 - }, - "end": { - "line": 40, - "column": 70, - "offset": 1748 - } - } - } - ], - "position": { - "start": { - "line": 37, - "column": 1, - "offset": 1467 - }, - "end": { - "line": 40, - "column": 70, - "offset": 1748 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Markdown offers two styles of headers: ", - "position": { - "start": { - "line": 42, - "column": 1, - "offset": 1750 - }, - "end": { - "line": 42, - "column": 40, - "offset": 1789 - } - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "Setext", - "position": { - "start": { - "line": 42, - "column": 41, - "offset": 1790 - }, - "end": { - "line": 42, - "column": 47, - "offset": 1796 - } - } - } - ], - "position": { - "start": { - "line": 42, - "column": 40, - "offset": 1789 - }, - "end": { - "line": 42, - "column": 48, - "offset": 1797 - } - } - }, - { - "type": "text", - "value": " and ", - "position": { - "start": { - "line": 42, - "column": 48, - "offset": 1797 - }, - "end": { - "line": 42, - "column": 53, - "offset": 1802 - } - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "atx", - "position": { - "start": { - "line": 42, - "column": 54, - "offset": 1803 - }, - "end": { - "line": 42, - "column": 57, - "offset": 1806 - } - } - } - ], - "position": { - "start": { - "line": 42, - "column": 53, - "offset": 1802 - }, - "end": { - "line": 42, - "column": 58, - "offset": 1807 - } - } - }, - { - "type": "text", - "value": ".\nSetext-style headers for ", - "position": { - "start": { - "line": 42, - "column": 58, - "offset": 1807 - }, - "end": { - "line": 43, - "column": 26, - "offset": 1834 - } - } - }, - { - "type": "inlineCode", - "value": "

", - "position": { - "start": { - "line": 43, - "column": 26, - "offset": 1834 - }, - "end": { - "line": 43, - "column": 32, - "offset": 1840 - } - } - }, - { - "type": "text", - "value": " and ", - "position": { - "start": { - "line": 43, - "column": 32, - "offset": 1840 - }, - "end": { - "line": 43, - "column": 37, - "offset": 1845 - } - } - }, - { - "type": "inlineCode", - "value": "

", - "position": { - "start": { - "line": 43, - "column": 37, - "offset": 1845 - }, - "end": { - "line": 43, - "column": 43, - "offset": 1851 - } - } - }, - { - "type": "text", - "value": " are created by\n\"underlining\" with equal signs (", - "position": { - "start": { - "line": 43, - "column": 43, - "offset": 1851 - }, - "end": { - "line": 44, - "column": 33, - "offset": 1899 - } - } - }, - { - "type": "inlineCode", - "value": "=", - "position": { - "start": { - "line": 44, - "column": 33, - "offset": 1899 - }, - "end": { - "line": 44, - "column": 36, - "offset": 1902 - } - } - }, - { - "type": "text", - "value": ") and hyphens (", - "position": { - "start": { - "line": 44, - "column": 36, - "offset": 1902 - }, - "end": { - "line": 44, - "column": 51, - "offset": 1917 - } - } - }, - { - "type": "inlineCode", - "value": "-", - "position": { - "start": { - "line": 44, - "column": 51, - "offset": 1917 - }, - "end": { - "line": 44, - "column": 54, - "offset": 1920 - } - } - }, - { - "type": "text", - "value": "), respectively.\nTo create an atx-style header, you put 1-6 hash marks (", - "position": { - "start": { - "line": 44, - "column": 54, - "offset": 1920 - }, - "end": { - "line": 45, - "column": 56, - "offset": 1992 - } - } - }, - { - "type": "inlineCode", - "value": "#", - "position": { - "start": { - "line": 45, - "column": 56, - "offset": 1992 - }, - "end": { - "line": 45, - "column": 59, - "offset": 1995 - } - } - }, - { - "type": "text", - "value": ") at the\nbeginning of the line -- the number of hashes equals the resulting\nHTML header level.", - "position": { - "start": { - "line": 45, - "column": 59, - "offset": 1995 - }, - "end": { - "line": 47, - "column": 19, - "offset": 2089 - } - } - } - ], - "position": { - "start": { - "line": 42, - "column": 1, - "offset": 1750 - }, - "end": { - "line": 47, - "column": 19, - "offset": 2089 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Blockquotes are indicated using email-style '", - "position": { - "start": { - "line": 49, - "column": 1, - "offset": 2091 - }, - "end": { - "line": 49, - "column": 46, - "offset": 2136 - } - } - }, - { - "type": "inlineCode", - "value": ">", - "position": { - "start": { - "line": 49, - "column": 46, - "offset": 2136 - }, - "end": { - "line": 49, - "column": 49, - "offset": 2139 - } - } - }, - { - "type": "text", - "value": "' angle brackets.", - "position": { - "start": { - "line": 49, - "column": 49, - "offset": 2139 - }, - "end": { - "line": 49, - "column": 66, - "offset": 2156 - } - } - } - ], - "position": { - "start": { - "line": 49, - "column": 1, - "offset": 2091 - }, - "end": { - "line": 49, - "column": 66, - "offset": 2156 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Markdown:", - "position": { - "start": { - "line": 51, - "column": 1, - "offset": 2158 - }, - "end": { - "line": 51, - "column": 10, - "offset": 2167 - } - } - } - ], - "position": { - "start": { - "line": 51, - "column": 1, - "offset": 2158 - }, - "end": { - "line": 51, - "column": 10, - "offset": 2167 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "A First Level Header\n====================\n\nA Second Level Header\n---------------------\n\nNow is the time for all good men to come to\nthe aid of their country. This is just a\nregular paragraph.\n\nThe quick brown fox jumped over the lazy\ndog's back.\n\n### Header 3\n\n> This is a blockquote.\n> \n> This is the second paragraph in the blockquote.\n>\n> ## This is an H2 in a blockquote", - "position": { - "start": { - "line": 53, - "column": 1, - "offset": 2169 - }, - "end": { - "line": 72, - "column": 39, - "offset": 2611 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Output:", - "position": { - "start": { - "line": 75, - "column": 1, - "offset": 2614 - }, - "end": { - "line": 75, - "column": 8, - "offset": 2621 - } - } - } - ], - "position": { - "start": { - "line": 75, - "column": 1, - "offset": 2614 - }, - "end": { - "line": 75, - "column": 8, - "offset": 2621 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "

A First Level Header

\n\n

A Second Level Header

\n\n

Now is the time for all good men to come to\nthe aid of their country. This is just a\nregular paragraph.

\n\n

The quick brown fox jumped over the lazy\ndog's back.

\n\n

Header 3

\n\n
\n

This is a blockquote.

\n \n

This is the second paragraph in the blockquote.

\n \n

This is an H2 in a blockquote

\n
", - "position": { - "start": { - "line": 77, - "column": 1, - "offset": 2623 - }, - "end": { - "line": 96, - "column": 18, - "offset": 3129 - } - } - }, - { - "type": "heading", - "depth": 3, - "children": [ - { - "type": "text", - "value": "Phrase Emphasis", - "position": { - "start": { - "line": 100, - "column": 5, - "offset": 3137 - }, - "end": { - "line": 100, - "column": 20, - "offset": 3152 - } - } - } - ], - "position": { - "start": { - "line": 100, - "column": 1, - "offset": 3133 - }, - "end": { - "line": 100, - "column": 24, - "offset": 3156 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Markdown uses asterisks and underscores to indicate spans of emphasis.", - "position": { - "start": { - "line": 102, - "column": 1, - "offset": 3158 - }, - "end": { - "line": 102, - "column": 71, - "offset": 3228 - } - } - } - ], - "position": { - "start": { - "line": 102, - "column": 1, - "offset": 3158 - }, - "end": { - "line": 102, - "column": 71, - "offset": 3228 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Markdown:", - "position": { - "start": { - "line": 104, - "column": 1, - "offset": 3230 - }, - "end": { - "line": 104, - "column": 10, - "offset": 3239 - } - } - } - ], - "position": { - "start": { - "line": 104, - "column": 1, - "offset": 3230 - }, - "end": { - "line": 104, - "column": 10, - "offset": 3239 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "Some of these words *are emphasized*.\nSome of these words _are emphasized also_.\n\nUse two asterisks for **strong emphasis**.\nOr, if you prefer, __use two underscores instead__.", - "position": { - "start": { - "line": 106, - "column": 1, - "offset": 3241 - }, - "end": { - "line": 110, - "column": 56, - "offset": 3437 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Output:", - "position": { - "start": { - "line": 112, - "column": 1, - "offset": 3439 - }, - "end": { - "line": 112, - "column": 8, - "offset": 3446 - } - } - } - ], - "position": { - "start": { - "line": 112, - "column": 1, - "offset": 3439 - }, - "end": { - "line": 112, - "column": 8, - "offset": 3446 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "

Some of these words are emphasized.\nSome of these words are emphasized also.

\n\n

Use two asterisks for strong emphasis.\nOr, if you prefer, use two underscores instead.

", - "position": { - "start": { - "line": 114, - "column": 1, - "offset": 3448 - }, - "end": { - "line": 118, - "column": 73, - "offset": 3698 - } - } - }, - { - "type": "heading", - "depth": 2, - "children": [ - { - "type": "text", - "value": "Lists", - "position": { - "start": { - "line": 122, - "column": 4, - "offset": 3708 - }, - "end": { - "line": 122, - "column": 9, - "offset": 3713 - } - } - } - ], - "position": { - "start": { - "line": 122, - "column": 1, - "offset": 3705 - }, - "end": { - "line": 122, - "column": 12, - "offset": 3716 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Unordered (bulleted) lists use asterisks, pluses, and hyphens (", - "position": { - "start": { - "line": 124, - "column": 1, - "offset": 3718 - }, - "end": { - "line": 124, - "column": 64, - "offset": 3781 - } - } - }, - { - "type": "inlineCode", - "value": "*", - "position": { - "start": { - "line": 124, - "column": 64, - "offset": 3781 - }, - "end": { - "line": 124, - "column": 67, - "offset": 3784 - } - } - }, - { - "type": "text", - "value": ",\n", - "position": { - "start": { - "line": 124, - "column": 67, - "offset": 3784 - }, - "end": { - "line": 125, - "column": 1, - "offset": 3786 - } - } - }, - { - "type": "inlineCode", - "value": "+", - "position": { - "start": { - "line": 125, - "column": 1, - "offset": 3786 - }, - "end": { - "line": 125, - "column": 4, - "offset": 3789 - } - } - }, - { - "type": "text", - "value": ", and ", - "position": { - "start": { - "line": 125, - "column": 4, - "offset": 3789 - }, - "end": { - "line": 125, - "column": 10, - "offset": 3795 - } - } - }, - { - "type": "inlineCode", - "value": "-", - "position": { - "start": { - "line": 125, - "column": 10, - "offset": 3795 - }, - "end": { - "line": 125, - "column": 13, - "offset": 3798 - } - } - }, - { - "type": "text", - "value": ") as list markers. These three markers are\ninterchangable; this:", - "position": { - "start": { - "line": 125, - "column": 13, - "offset": 3798 - }, - "end": { - "line": 126, - "column": 22, - "offset": 3862 - } - } - } - ], - "position": { - "start": { - "line": 124, - "column": 1, - "offset": 3718 - }, - "end": { - "line": 126, - "column": 22, - "offset": 3862 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "* Candy.\n* Gum.\n* Booze.", - "position": { - "start": { - "line": 128, - "column": 1, - "offset": 3864 - }, - "end": { - "line": 130, - "column": 15, - "offset": 3906 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "this:", - "position": { - "start": { - "line": 132, - "column": 1, - "offset": 3908 - }, - "end": { - "line": 132, - "column": 6, - "offset": 3913 - } - } - } - ], - "position": { - "start": { - "line": 132, - "column": 1, - "offset": 3908 - }, - "end": { - "line": 132, - "column": 6, - "offset": 3913 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "+ Candy.\n+ Gum.\n+ Booze.", - "position": { - "start": { - "line": 134, - "column": 1, - "offset": 3915 - }, - "end": { - "line": 136, - "column": 15, - "offset": 3957 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "and this:", - "position": { - "start": { - "line": 138, - "column": 1, - "offset": 3959 - }, - "end": { - "line": 138, - "column": 10, - "offset": 3968 - } - } - } - ], - "position": { - "start": { - "line": 138, - "column": 1, - "offset": 3959 - }, - "end": { - "line": 138, - "column": 10, - "offset": 3968 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "- Candy.\n- Gum.\n- Booze.", - "position": { - "start": { - "line": 140, - "column": 1, - "offset": 3970 - }, - "end": { - "line": 142, - "column": 15, - "offset": 4012 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "all produce the same output:", - "position": { - "start": { - "line": 144, - "column": 1, - "offset": 4014 - }, - "end": { - "line": 144, - "column": 29, - "offset": 4042 - } - } - } - ], - "position": { - "start": { - "line": 144, - "column": 1, - "offset": 4014 - }, - "end": { - "line": 144, - "column": 29, - "offset": 4042 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "
    \n
  • Candy.
  • \n
  • Gum.
  • \n
  • Booze.
  • \n
", - "position": { - "start": { - "line": 146, - "column": 1, - "offset": 4044 - }, - "end": { - "line": 150, - "column": 10, - "offset": 4120 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Ordered (numbered) lists use regular numbers, followed by periods, as\nlist markers:", - "position": { - "start": { - "line": 152, - "column": 1, - "offset": 4122 - }, - "end": { - "line": 153, - "column": 14, - "offset": 4205 - } - } - } - ], - "position": { - "start": { - "line": 152, - "column": 1, - "offset": 4122 - }, - "end": { - "line": 153, - "column": 14, - "offset": 4205 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "1. Red\n2. Green\n3. Blue", - "position": { - "start": { - "line": 155, - "column": 1, - "offset": 4207 - }, - "end": { - "line": 157, - "column": 13, - "offset": 4245 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Output:", - "position": { - "start": { - "line": 159, - "column": 1, - "offset": 4247 - }, - "end": { - "line": 159, - "column": 8, - "offset": 4254 - } - } - } - ], - "position": { - "start": { - "line": 159, - "column": 1, - "offset": 4247 - }, - "end": { - "line": 159, - "column": 8, - "offset": 4254 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "
    \n
  1. Red
  2. \n
  3. Green
  4. \n
  5. Blue
  6. \n
", - "position": { - "start": { - "line": 161, - "column": 1, - "offset": 4256 - }, - "end": { - "line": 165, - "column": 10, - "offset": 4328 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "If you put blank lines between items, you'll get ", - "position": { - "start": { - "line": 167, - "column": 1, - "offset": 4330 - }, - "end": { - "line": 167, - "column": 50, - "offset": 4379 - } - } - }, - { - "type": "inlineCode", - "value": "

", - "position": { - "start": { - "line": 167, - "column": 50, - "offset": 4379 - }, - "end": { - "line": 167, - "column": 55, - "offset": 4384 - } - } - }, - { - "type": "text", - "value": " tags for the\nlist item text. You can create multi-paragraph list items by indenting\nthe paragraphs by 4 spaces or 1 tab:", - "position": { - "start": { - "line": 167, - "column": 55, - "offset": 4384 - }, - "end": { - "line": 169, - "column": 37, - "offset": 4505 - } - } - } - ], - "position": { - "start": { - "line": 167, - "column": 1, - "offset": 4330 - }, - "end": { - "line": 169, - "column": 37, - "offset": 4505 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "* A list item.\n\n With multiple paragraphs.\n\n* Another item in the list.", - "position": { - "start": { - "line": 171, - "column": 1, - "offset": 4507 - }, - "end": { - "line": 175, - "column": 34, - "offset": 4601 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Output:", - "position": { - "start": { - "line": 177, - "column": 1, - "offset": 4603 - }, - "end": { - "line": 177, - "column": 8, - "offset": 4610 - } - } - } - ], - "position": { - "start": { - "line": 177, - "column": 1, - "offset": 4603 - }, - "end": { - "line": 177, - "column": 8, - "offset": 4610 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "

    \n
  • A list item.

    \n

    With multiple paragraphs.

  • \n
  • Another item in the list.

  • \n
", - "position": { - "start": { - "line": 179, - "column": 1, - "offset": 4612 - }, - "end": { - "line": 184, - "column": 5, - "offset": 4751 - } - } - }, - { - "type": "heading", - "depth": 3, - "children": [ - { - "type": "text", - "value": "Links", - "position": { - "start": { - "line": 187, - "column": 5, - "offset": 4758 - }, - "end": { - "line": 187, - "column": 10, - "offset": 4763 - } - } - } - ], - "position": { - "start": { - "line": 187, - "column": 1, - "offset": 4754 - }, - "end": { - "line": 187, - "column": 14, - "offset": 4767 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Markdown supports two styles for creating links: ", - "position": { - "start": { - "line": 189, - "column": 1, - "offset": 4769 - }, - "end": { - "line": 189, - "column": 50, - "offset": 4818 - } - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "inline", - "position": { - "start": { - "line": 189, - "column": 51, - "offset": 4819 - }, - "end": { - "line": 189, - "column": 57, - "offset": 4825 - } - } - } - ], - "position": { - "start": { - "line": 189, - "column": 50, - "offset": 4818 - }, - "end": { - "line": 189, - "column": 58, - "offset": 4826 - } - } - }, - { - "type": "text", - "value": " and\n", - "position": { - "start": { - "line": 189, - "column": 58, - "offset": 4826 - }, - "end": { - "line": 190, - "column": 1, - "offset": 4831 - } - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "reference", - "position": { - "start": { - "line": 190, - "column": 2, - "offset": 4832 - }, - "end": { - "line": 190, - "column": 11, - "offset": 4841 - } - } - } - ], - "position": { - "start": { - "line": 190, - "column": 1, - "offset": 4831 - }, - "end": { - "line": 190, - "column": 12, - "offset": 4842 - } - } - }, - { - "type": "text", - "value": ". With both styles, you use square brackets to delimit the\ntext you want to turn into a link.", - "position": { - "start": { - "line": 190, - "column": 12, - "offset": 4842 - }, - "end": { - "line": 191, - "column": 35, - "offset": 4935 - } - } - } - ], - "position": { - "start": { - "line": 189, - "column": 1, - "offset": 4769 - }, - "end": { - "line": 191, - "column": 35, - "offset": 4935 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Inline-style links use parentheses immediately after the link text.\nFor example:", - "position": { - "start": { - "line": 193, - "column": 1, - "offset": 4937 - }, - "end": { - "line": 194, - "column": 13, - "offset": 5017 - } - } - } - ], - "position": { - "start": { - "line": 193, - "column": 1, - "offset": 4937 - }, - "end": { - "line": 194, - "column": 13, - "offset": 5017 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "This is an [example link](http://example.com/).", - "position": { - "start": { - "line": 196, - "column": 1, - "offset": 5019 - }, - "end": { - "line": 196, - "column": 52, - "offset": 5070 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Output:", - "position": { - "start": { - "line": 198, - "column": 1, - "offset": 5072 - }, - "end": { - "line": 198, - "column": 8, - "offset": 5079 - } - } - } - ], - "position": { - "start": { - "line": 198, - "column": 1, - "offset": 5072 - }, - "end": { - "line": 198, - "column": 8, - "offset": 5079 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "

This is an \nexample link.

", - "position": { - "start": { - "line": 200, - "column": 1, - "offset": 5081 - }, - "end": { - "line": 201, - "column": 26, - "offset": 5155 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Optionally, you may include a title attribute in the parentheses:", - "position": { - "start": { - "line": 203, - "column": 1, - "offset": 5157 - }, - "end": { - "line": 203, - "column": 66, - "offset": 5222 - } - } - } - ], - "position": { - "start": { - "line": 203, - "column": 1, - "offset": 5157 - }, - "end": { - "line": 203, - "column": 66, - "offset": 5222 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "This is an [example link](http://example.com/ \"With a Title\").", - "position": { - "start": { - "line": 205, - "column": 1, - "offset": 5224 - }, - "end": { - "line": 205, - "column": 67, - "offset": 5290 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Output:", - "position": { - "start": { - "line": 207, - "column": 1, - "offset": 5292 - }, - "end": { - "line": 207, - "column": 8, - "offset": 5299 - } - } - } - ], - "position": { - "start": { - "line": 207, - "column": 1, - "offset": 5292 - }, - "end": { - "line": 207, - "column": 8, - "offset": 5299 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "

This is an \nexample link.

", - "position": { - "start": { - "line": 209, - "column": 1, - "offset": 5301 - }, - "end": { - "line": 210, - "column": 26, - "offset": 5396 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Reference-style links allow you to refer to your links by names, which\nyou define elsewhere in your document:", - "position": { - "start": { - "line": 212, - "column": 1, - "offset": 5398 - }, - "end": { - "line": 213, - "column": 39, - "offset": 5507 - } - } - } - ], - "position": { - "start": { - "line": 212, - "column": 1, - "offset": 5398 - }, - "end": { - "line": 213, - "column": 39, - "offset": 5507 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "I get 10 times more traffic from [Google][1] than from\n[Yahoo][2] or [MSN][3].\n\n[1]: http://google.com/ \"Google\"\n[2]: http://search.yahoo.com/ \"Yahoo Search\"\n[3]: http://search.msn.com/ \"MSN Search\"", - "position": { - "start": { - "line": 215, - "column": 1, - "offset": 5509 - }, - "end": { - "line": 220, - "column": 48, - "offset": 5738 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Output:", - "position": { - "start": { - "line": 222, - "column": 1, - "offset": 5740 - }, - "end": { - "line": 222, - "column": 8, - "offset": 5747 - } - } - } - ], - "position": { - "start": { - "line": 222, - "column": 1, - "offset": 5740 - }, - "end": { - "line": 222, - "column": 8, - "offset": 5747 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "

I get 10 times more traffic from Google than from Yahoo or MSN.

", - "position": { - "start": { - "line": 224, - "column": 1, - "offset": 5749 - }, - "end": { - "line": 227, - "column": 36, - "offset": 5999 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "The title attribute is optional. Link names may contain letters,\nnumbers and spaces, but are ", - "position": { - "start": { - "line": 229, - "column": 1, - "offset": 6001 - }, - "end": { - "line": 230, - "column": 29, - "offset": 6094 - } - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "not", - "position": { - "start": { - "line": 230, - "column": 30, - "offset": 6095 - }, - "end": { - "line": 230, - "column": 33, - "offset": 6098 - } - } - } - ], - "position": { - "start": { - "line": 230, - "column": 29, - "offset": 6094 - }, - "end": { - "line": 230, - "column": 34, - "offset": 6099 - } - } - }, - { - "type": "text", - "value": " case sensitive:", - "position": { - "start": { - "line": 230, - "column": 34, - "offset": 6099 - }, - "end": { - "line": 230, - "column": 50, - "offset": 6115 - } - } - } - ], - "position": { - "start": { - "line": 229, - "column": 1, - "offset": 6001 - }, - "end": { - "line": 230, - "column": 50, - "offset": 6115 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "I start my morning with a cup of coffee and\n[The New York Times][NY Times].\n\n[ny times]: http://www.nytimes.com/", - "position": { - "start": { - "line": 232, - "column": 1, - "offset": 6117 - }, - "end": { - "line": 235, - "column": 40, - "offset": 6241 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Output:", - "position": { - "start": { - "line": 237, - "column": 1, - "offset": 6243 - }, - "end": { - "line": 237, - "column": 8, - "offset": 6250 - } - } - } - ], - "position": { - "start": { - "line": 237, - "column": 1, - "offset": 6243 - }, - "end": { - "line": 237, - "column": 8, - "offset": 6250 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "

I start my morning with a cup of coffee and\nThe New York Times.

", - "position": { - "start": { - "line": 239, - "column": 1, - "offset": 6252 - }, - "end": { - "line": 240, - "column": 66, - "offset": 6368 - } - } - }, - { - "type": "heading", - "depth": 3, - "children": [ - { - "type": "text", - "value": "Images", - "position": { - "start": { - "line": 243, - "column": 5, - "offset": 6375 - }, - "end": { - "line": 243, - "column": 11, - "offset": 6381 - } - } - } - ], - "position": { - "start": { - "line": 243, - "column": 1, - "offset": 6371 - }, - "end": { - "line": 243, - "column": 15, - "offset": 6385 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Image syntax is very much like link syntax.", - "position": { - "start": { - "line": 245, - "column": 1, - "offset": 6387 - }, - "end": { - "line": 245, - "column": 44, - "offset": 6430 - } - } - } - ], - "position": { - "start": { - "line": 245, - "column": 1, - "offset": 6387 - }, - "end": { - "line": 245, - "column": 44, - "offset": 6430 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Inline (titles are optional):", - "position": { - "start": { - "line": 247, - "column": 1, - "offset": 6432 - }, - "end": { - "line": 247, - "column": 30, - "offset": 6461 - } - } - } - ], - "position": { - "start": { - "line": 247, - "column": 1, - "offset": 6432 - }, - "end": { - "line": 247, - "column": 30, - "offset": 6461 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "![alt text](/path/to/img.jpg \"Title\")", - "position": { - "start": { - "line": 249, - "column": 1, - "offset": 6463 - }, - "end": { - "line": 249, - "column": 42, - "offset": 6504 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Reference-style:", - "position": { - "start": { - "line": 251, - "column": 1, - "offset": 6506 - }, - "end": { - "line": 251, - "column": 17, - "offset": 6522 - } - } - } - ], - "position": { - "start": { - "line": 251, - "column": 1, - "offset": 6506 - }, - "end": { - "line": 251, - "column": 17, - "offset": 6522 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "![alt text][id]\n\n[id]: /path/to/img.jpg \"Title\"", - "position": { - "start": { - "line": 253, - "column": 1, - "offset": 6524 - }, - "end": { - "line": 255, - "column": 35, - "offset": 6579 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Both of the above examples produce the same output:", - "position": { - "start": { - "line": 257, - "column": 1, - "offset": 6581 - }, - "end": { - "line": 257, - "column": 52, - "offset": 6632 - } - } - } - ], - "position": { - "start": { - "line": 257, - "column": 1, - "offset": 6581 - }, - "end": { - "line": 257, - "column": 52, - "offset": 6632 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "\"alt", - "position": { - "start": { - "line": 259, - "column": 1, - "offset": 6634 - }, - "end": { - "line": 259, - "column": 64, - "offset": 6697 - } - } - }, - { - "type": "heading", - "depth": 3, - "children": [ - { - "type": "text", - "value": "Code", - "position": { - "start": { - "line": 263, - "column": 5, - "offset": 6705 - }, - "end": { - "line": 263, - "column": 9, - "offset": 6709 - } - } - } - ], - "position": { - "start": { - "line": 263, - "column": 1, - "offset": 6701 - }, - "end": { - "line": 263, - "column": 13, - "offset": 6713 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "In a regular paragraph, you can create code span by wrapping text in\nbacktick quotes. Any ampersands (", - "position": { - "start": { - "line": 265, - "column": 1, - "offset": 6715 - }, - "end": { - "line": 266, - "column": 34, - "offset": 6817 - } - } - }, - { - "type": "inlineCode", - "value": "&", - "position": { - "start": { - "line": 266, - "column": 34, - "offset": 6817 - }, - "end": { - "line": 266, - "column": 37, - "offset": 6820 - } - } - }, - { - "type": "text", - "value": ") and angle brackets (", - "position": { - "start": { - "line": 266, - "column": 37, - "offset": 6820 - }, - "end": { - "line": 266, - "column": 59, - "offset": 6842 - } - } - }, - { - "type": "inlineCode", - "value": "<", - "position": { - "start": { - "line": 266, - "column": 59, - "offset": 6842 - }, - "end": { - "line": 266, - "column": 62, - "offset": 6845 - } - } - }, - { - "type": "text", - "value": " or\n", - "position": { - "start": { - "line": 266, - "column": 62, - "offset": 6845 - }, - "end": { - "line": 267, - "column": 1, - "offset": 6849 - } - } - }, - { - "type": "inlineCode", - "value": ">", - "position": { - "start": { - "line": 267, - "column": 1, - "offset": 6849 - }, - "end": { - "line": 267, - "column": 4, - "offset": 6852 - } - } - }, - { - "type": "text", - "value": ") will automatically be translated into HTML entities. This makes\nit easy to use Markdown to write about HTML example code:", - "position": { - "start": { - "line": 267, - "column": 4, - "offset": 6852 - }, - "end": { - "line": 268, - "column": 58, - "offset": 6975 - } - } - } - ], - "position": { - "start": { - "line": 265, - "column": 1, - "offset": 6715 - }, - "end": { - "line": 268, - "column": 58, - "offset": 6975 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "I strongly recommend against using any `` tags.\n\nI wish SmartyPants used named entities like `—`\ninstead of decimal-encoded entites like `—`.", - "position": { - "start": { - "line": 270, - "column": 1, - "offset": 6977 - }, - "end": { - "line": 273, - "column": 55, - "offset": 7149 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Output:", - "position": { - "start": { - "line": 275, - "column": 1, - "offset": 7151 - }, - "end": { - "line": 275, - "column": 8, - "offset": 7158 - } - } - } - ], - "position": { - "start": { - "line": 275, - "column": 1, - "offset": 7151 - }, - "end": { - "line": 275, - "column": 8, - "offset": 7158 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "

I strongly recommend against using any\n<blink> tags.

\n\n

I wish SmartyPants used named entities like\n&mdash; instead of decimal-encoded\nentites like &#8212;.

", - "position": { - "start": { - "line": 277, - "column": 1, - "offset": 7160 - }, - "end": { - "line": 282, - "column": 47, - "offset": 7405 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "To specify an entire block of pre-formatted code, indent every line of\nthe block by 4 spaces or 1 tab. Just like with code spans, ", - "position": { - "start": { - "line": 285, - "column": 1, - "offset": 7408 - }, - "end": { - "line": 286, - "column": 60, - "offset": 7538 - } - } - }, - { - "type": "inlineCode", - "value": "&", - "position": { - "start": { - "line": 286, - "column": 60, - "offset": 7538 - }, - "end": { - "line": 286, - "column": 63, - "offset": 7541 - } - } - }, - { - "type": "text", - "value": ", ", - "position": { - "start": { - "line": 286, - "column": 63, - "offset": 7541 - }, - "end": { - "line": 286, - "column": 65, - "offset": 7543 - } - } - }, - { - "type": "inlineCode", - "value": "<", - "position": { - "start": { - "line": 286, - "column": 65, - "offset": 7543 - }, - "end": { - "line": 286, - "column": 68, - "offset": 7546 - } - } - }, - { - "type": "text", - "value": ",\nand ", - "position": { - "start": { - "line": 286, - "column": 68, - "offset": 7546 - }, - "end": { - "line": 287, - "column": 5, - "offset": 7552 - } - } - }, - { - "type": "inlineCode", - "value": ">", - "position": { - "start": { - "line": 287, - "column": 5, - "offset": 7552 - }, - "end": { - "line": 287, - "column": 8, - "offset": 7555 - } - } - }, - { - "type": "text", - "value": " characters will be escaped automatically.", - "position": { - "start": { - "line": 287, - "column": 8, - "offset": 7555 - }, - "end": { - "line": 287, - "column": 50, - "offset": 7597 - } - } - } - ], - "position": { - "start": { - "line": 285, - "column": 1, - "offset": 7408 - }, - "end": { - "line": 287, - "column": 50, - "offset": 7597 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Markdown:", - "position": { - "start": { - "line": 289, - "column": 1, - "offset": 7599 - }, - "end": { - "line": 289, - "column": 10, - "offset": 7608 - } - } - } - ], - "position": { - "start": { - "line": 289, - "column": 1, - "offset": 7599 - }, - "end": { - "line": 289, - "column": 10, - "offset": 7608 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "If you want your page to validate under XHTML 1.0 Strict,\nyou've got to put paragraph tags in your blockquotes:\n\n
\n

For example.

\n
", - "position": { - "start": { - "line": 291, - "column": 1, - "offset": 7610 - }, - "end": { - "line": 296, - "column": 22, - "offset": 7805 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Output:", - "position": { - "start": { - "line": 298, - "column": 1, - "offset": 7807 - }, - "end": { - "line": 298, - "column": 8, - "offset": 7814 - } - } - } - ], - "position": { - "start": { - "line": 298, - "column": 1, - "offset": 7807 - }, - "end": { - "line": 298, - "column": 8, - "offset": 7814 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "

If you want your page to validate under XHTML 1.0 Strict,\nyou've got to put paragraph tags in your blockquotes:

\n\n
<blockquote>\n    <p>For example.</p>\n</blockquote>\n
", - "position": { - "start": { - "line": 300, - "column": 1, - "offset": 7816 - }, - "end": { - "line": 306, - "column": 18, - "offset": 8063 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 307, - "column": 1, - "offset": 8064 - } - } -} diff --git a/test/fixtures/tree/markdown-documentation-syntax.json b/test/fixtures/tree/markdown-documentation-syntax.json deleted file mode 100644 index 16fd05e43..000000000 --- a/test/fixtures/tree/markdown-documentation-syntax.json +++ /dev/null @@ -1,11291 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Markdown: Syntax", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 17, - "offset": 16 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 17, - "offset": 33 - } - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 35 - }, - "end": { - "line": 10, - "column": 6, - "offset": 508 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#overview", - "children": [ - { - "type": "text", - "value": "Overview", - "position": { - "start": { - "line": 13, - "column": 6, - "offset": 516 - }, - "end": { - "line": 13, - "column": 14, - "offset": 524 - } - } - } - ], - "position": { - "start": { - "line": 13, - "column": 5, - "offset": 515 - }, - "end": { - "line": 13, - "column": 26, - "offset": 536 - } - } - } - ], - "position": { - "start": { - "line": 13, - "column": 5, - "offset": 515 - }, - "end": { - "line": 13, - "column": 26, - "offset": 536 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#philosophy", - "children": [ - { - "type": "text", - "value": "Philosophy", - "position": { - "start": { - "line": 14, - "column": 10, - "offset": 546 - }, - "end": { - "line": 14, - "column": 20, - "offset": 556 - } - } - } - ], - "position": { - "start": { - "line": 14, - "column": 9, - "offset": 545 - }, - "end": { - "line": 14, - "column": 34, - "offset": 570 - } - } - } - ], - "position": { - "start": { - "line": 14, - "column": 9, - "offset": 545 - }, - "end": { - "line": 14, - "column": 34, - "offset": 570 - } - } - } - ], - "position": { - "start": { - "line": 14, - "column": 5, - "offset": 541 - }, - "end": { - "line": 14, - "column": 34, - "offset": 570 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#html", - "children": [ - { - "type": "text", - "value": "Inline HTML", - "position": { - "start": { - "line": 15, - "column": 10, - "offset": 580 - }, - "end": { - "line": 15, - "column": 21, - "offset": 591 - } - } - } - ], - "position": { - "start": { - "line": 15, - "column": 9, - "offset": 579 - }, - "end": { - "line": 15, - "column": 29, - "offset": 599 - } - } - } - ], - "position": { - "start": { - "line": 15, - "column": 9, - "offset": 579 - }, - "end": { - "line": 15, - "column": 29, - "offset": 599 - } - } - } - ], - "position": { - "start": { - "line": 15, - "column": 5, - "offset": 575 - }, - "end": { - "line": 15, - "column": 29, - "offset": 599 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#autoescape", - "children": [ - { - "type": "text", - "value": "Automatic Escaping for Special Characters", - "position": { - "start": { - "line": 16, - "column": 10, - "offset": 609 - }, - "end": { - "line": 16, - "column": 51, - "offset": 650 - } - } - } - ], - "position": { - "start": { - "line": 16, - "column": 9, - "offset": 608 - }, - "end": { - "line": 16, - "column": 65, - "offset": 664 - } - } - } - ], - "position": { - "start": { - "line": 16, - "column": 9, - "offset": 608 - }, - "end": { - "line": 16, - "column": 65, - "offset": 664 - } - } - } - ], - "position": { - "start": { - "line": 16, - "column": 5, - "offset": 604 - }, - "end": { - "line": 16, - "column": 65, - "offset": 664 - } - } - } - ], - "position": { - "start": { - "line": 14, - "column": 5, - "offset": 541 - }, - "end": { - "line": 16, - "column": 65, - "offset": 664 - } - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 511 - }, - "end": { - "line": 16, - "column": 65, - "offset": 664 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#block", - "children": [ - { - "type": "text", - "value": "Block Elements", - "position": { - "start": { - "line": 17, - "column": 6, - "offset": 670 - }, - "end": { - "line": 17, - "column": 20, - "offset": 684 - } - } - } - ], - "position": { - "start": { - "line": 17, - "column": 5, - "offset": 669 - }, - "end": { - "line": 17, - "column": 29, - "offset": 693 - } - } - } - ], - "position": { - "start": { - "line": 17, - "column": 5, - "offset": 669 - }, - "end": { - "line": 17, - "column": 29, - "offset": 693 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#p", - "children": [ - { - "type": "text", - "value": "Paragraphs and Line Breaks", - "position": { - "start": { - "line": 18, - "column": 10, - "offset": 703 - }, - "end": { - "line": 18, - "column": 36, - "offset": 729 - } - } - } - ], - "position": { - "start": { - "line": 18, - "column": 9, - "offset": 702 - }, - "end": { - "line": 18, - "column": 41, - "offset": 734 - } - } - } - ], - "position": { - "start": { - "line": 18, - "column": 9, - "offset": 702 - }, - "end": { - "line": 18, - "column": 41, - "offset": 734 - } - } - } - ], - "position": { - "start": { - "line": 18, - "column": 5, - "offset": 698 - }, - "end": { - "line": 18, - "column": 41, - "offset": 734 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#header", - "children": [ - { - "type": "text", - "value": "Headers", - "position": { - "start": { - "line": 19, - "column": 10, - "offset": 744 - }, - "end": { - "line": 19, - "column": 17, - "offset": 751 - } - } - } - ], - "position": { - "start": { - "line": 19, - "column": 9, - "offset": 743 - }, - "end": { - "line": 19, - "column": 27, - "offset": 761 - } - } - } - ], - "position": { - "start": { - "line": 19, - "column": 9, - "offset": 743 - }, - "end": { - "line": 19, - "column": 27, - "offset": 761 - } - } - } - ], - "position": { - "start": { - "line": 19, - "column": 5, - "offset": 739 - }, - "end": { - "line": 19, - "column": 27, - "offset": 761 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#blockquote", - "children": [ - { - "type": "text", - "value": "Blockquotes", - "position": { - "start": { - "line": 20, - "column": 10, - "offset": 771 - }, - "end": { - "line": 20, - "column": 21, - "offset": 782 - } - } - } - ], - "position": { - "start": { - "line": 20, - "column": 9, - "offset": 770 - }, - "end": { - "line": 20, - "column": 35, - "offset": 796 - } - } - } - ], - "position": { - "start": { - "line": 20, - "column": 9, - "offset": 770 - }, - "end": { - "line": 20, - "column": 35, - "offset": 796 - } - } - } - ], - "position": { - "start": { - "line": 20, - "column": 5, - "offset": 766 - }, - "end": { - "line": 20, - "column": 35, - "offset": 796 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#list", - "children": [ - { - "type": "text", - "value": "Lists", - "position": { - "start": { - "line": 21, - "column": 10, - "offset": 806 - }, - "end": { - "line": 21, - "column": 15, - "offset": 811 - } - } - } - ], - "position": { - "start": { - "line": 21, - "column": 9, - "offset": 805 - }, - "end": { - "line": 21, - "column": 23, - "offset": 819 - } - } - } - ], - "position": { - "start": { - "line": 21, - "column": 9, - "offset": 805 - }, - "end": { - "line": 21, - "column": 23, - "offset": 819 - } - } - } - ], - "position": { - "start": { - "line": 21, - "column": 5, - "offset": 801 - }, - "end": { - "line": 21, - "column": 23, - "offset": 819 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#precode", - "children": [ - { - "type": "text", - "value": "Code Blocks", - "position": { - "start": { - "line": 22, - "column": 10, - "offset": 829 - }, - "end": { - "line": 22, - "column": 21, - "offset": 840 - } - } - } - ], - "position": { - "start": { - "line": 22, - "column": 9, - "offset": 828 - }, - "end": { - "line": 22, - "column": 32, - "offset": 851 - } - } - } - ], - "position": { - "start": { - "line": 22, - "column": 9, - "offset": 828 - }, - "end": { - "line": 22, - "column": 32, - "offset": 851 - } - } - } - ], - "position": { - "start": { - "line": 22, - "column": 5, - "offset": 824 - }, - "end": { - "line": 22, - "column": 32, - "offset": 851 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#hr", - "children": [ - { - "type": "text", - "value": "Horizontal Rules", - "position": { - "start": { - "line": 23, - "column": 10, - "offset": 861 - }, - "end": { - "line": 23, - "column": 26, - "offset": 877 - } - } - } - ], - "position": { - "start": { - "line": 23, - "column": 9, - "offset": 860 - }, - "end": { - "line": 23, - "column": 32, - "offset": 883 - } - } - } - ], - "position": { - "start": { - "line": 23, - "column": 9, - "offset": 860 - }, - "end": { - "line": 23, - "column": 32, - "offset": 883 - } - } - } - ], - "position": { - "start": { - "line": 23, - "column": 5, - "offset": 856 - }, - "end": { - "line": 23, - "column": 32, - "offset": 883 - } - } - } - ], - "position": { - "start": { - "line": 18, - "column": 5, - "offset": 698 - }, - "end": { - "line": 23, - "column": 32, - "offset": 883 - } - } - } - ], - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 665 - }, - "end": { - "line": 23, - "column": 32, - "offset": 883 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#span", - "children": [ - { - "type": "text", - "value": "Span Elements", - "position": { - "start": { - "line": 24, - "column": 6, - "offset": 889 - }, - "end": { - "line": 24, - "column": 19, - "offset": 902 - } - } - } - ], - "position": { - "start": { - "line": 24, - "column": 5, - "offset": 888 - }, - "end": { - "line": 24, - "column": 27, - "offset": 910 - } - } - } - ], - "position": { - "start": { - "line": 24, - "column": 5, - "offset": 888 - }, - "end": { - "line": 24, - "column": 27, - "offset": 910 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#link", - "children": [ - { - "type": "text", - "value": "Links", - "position": { - "start": { - "line": 25, - "column": 10, - "offset": 920 - }, - "end": { - "line": 25, - "column": 15, - "offset": 925 - } - } - } - ], - "position": { - "start": { - "line": 25, - "column": 9, - "offset": 919 - }, - "end": { - "line": 25, - "column": 23, - "offset": 933 - } - } - } - ], - "position": { - "start": { - "line": 25, - "column": 9, - "offset": 919 - }, - "end": { - "line": 25, - "column": 23, - "offset": 933 - } - } - } - ], - "position": { - "start": { - "line": 25, - "column": 5, - "offset": 915 - }, - "end": { - "line": 25, - "column": 23, - "offset": 933 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#em", - "children": [ - { - "type": "text", - "value": "Emphasis", - "position": { - "start": { - "line": 26, - "column": 10, - "offset": 943 - }, - "end": { - "line": 26, - "column": 18, - "offset": 951 - } - } - } - ], - "position": { - "start": { - "line": 26, - "column": 9, - "offset": 942 - }, - "end": { - "line": 26, - "column": 24, - "offset": 957 - } - } - } - ], - "position": { - "start": { - "line": 26, - "column": 9, - "offset": 942 - }, - "end": { - "line": 26, - "column": 24, - "offset": 957 - } - } - } - ], - "position": { - "start": { - "line": 26, - "column": 5, - "offset": 938 - }, - "end": { - "line": 26, - "column": 24, - "offset": 957 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#code", - "children": [ - { - "type": "text", - "value": "Code", - "position": { - "start": { - "line": 27, - "column": 10, - "offset": 967 - }, - "end": { - "line": 27, - "column": 14, - "offset": 971 - } - } - } - ], - "position": { - "start": { - "line": 27, - "column": 9, - "offset": 966 - }, - "end": { - "line": 27, - "column": 22, - "offset": 979 - } - } - } - ], - "position": { - "start": { - "line": 27, - "column": 9, - "offset": 966 - }, - "end": { - "line": 27, - "column": 22, - "offset": 979 - } - } - } - ], - "position": { - "start": { - "line": 27, - "column": 5, - "offset": 962 - }, - "end": { - "line": 27, - "column": 22, - "offset": 979 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#img", - "children": [ - { - "type": "text", - "value": "Images", - "position": { - "start": { - "line": 28, - "column": 10, - "offset": 989 - }, - "end": { - "line": 28, - "column": 16, - "offset": 995 - } - } - } - ], - "position": { - "start": { - "line": 28, - "column": 9, - "offset": 988 - }, - "end": { - "line": 28, - "column": 23, - "offset": 1002 - } - } - } - ], - "position": { - "start": { - "line": 28, - "column": 9, - "offset": 988 - }, - "end": { - "line": 28, - "column": 23, - "offset": 1002 - } - } - } - ], - "position": { - "start": { - "line": 28, - "column": 5, - "offset": 984 - }, - "end": { - "line": 28, - "column": 23, - "offset": 1002 - } - } - } - ], - "position": { - "start": { - "line": 25, - "column": 5, - "offset": 915 - }, - "end": { - "line": 28, - "column": 23, - "offset": 1002 - } - } - } - ], - "position": { - "start": { - "line": 24, - "column": 1, - "offset": 884 - }, - "end": { - "line": 28, - "column": 23, - "offset": 1002 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#misc", - "children": [ - { - "type": "text", - "value": "Miscellaneous", - "position": { - "start": { - "line": 29, - "column": 6, - "offset": 1008 - }, - "end": { - "line": 29, - "column": 19, - "offset": 1021 - } - } - } - ], - "position": { - "start": { - "line": 29, - "column": 5, - "offset": 1007 - }, - "end": { - "line": 29, - "column": 27, - "offset": 1029 - } - } - } - ], - "position": { - "start": { - "line": 29, - "column": 5, - "offset": 1007 - }, - "end": { - "line": 29, - "column": 27, - "offset": 1029 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#backslash", - "children": [ - { - "type": "text", - "value": "Backslash Escapes", - "position": { - "start": { - "line": 30, - "column": 10, - "offset": 1039 - }, - "end": { - "line": 30, - "column": 27, - "offset": 1056 - } - } - } - ], - "position": { - "start": { - "line": 30, - "column": 9, - "offset": 1038 - }, - "end": { - "line": 30, - "column": 40, - "offset": 1069 - } - } - } - ], - "position": { - "start": { - "line": 30, - "column": 9, - "offset": 1038 - }, - "end": { - "line": 30, - "column": 40, - "offset": 1069 - } - } - } - ], - "position": { - "start": { - "line": 30, - "column": 5, - "offset": 1034 - }, - "end": { - "line": 30, - "column": 40, - "offset": 1069 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#autolink", - "children": [ - { - "type": "text", - "value": "Automatic Links", - "position": { - "start": { - "line": 31, - "column": 10, - "offset": 1079 - }, - "end": { - "line": 31, - "column": 25, - "offset": 1094 - } - } - } - ], - "position": { - "start": { - "line": 31, - "column": 9, - "offset": 1078 - }, - "end": { - "line": 31, - "column": 37, - "offset": 1106 - } - } - } - ], - "position": { - "start": { - "line": 31, - "column": 9, - "offset": 1078 - }, - "end": { - "line": 31, - "column": 37, - "offset": 1106 - } - } - } - ], - "position": { - "start": { - "line": 31, - "column": 5, - "offset": 1074 - }, - "end": { - "line": 31, - "column": 37, - "offset": 1106 - } - } - } - ], - "position": { - "start": { - "line": 30, - "column": 5, - "offset": 1034 - }, - "end": { - "line": 31, - "column": 37, - "offset": 1106 - } - } - } - ], - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 1003 - }, - "end": { - "line": 31, - "column": 37, - "offset": 1106 - } - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 511 - }, - "end": { - "line": 31, - "column": 37, - "offset": 1106 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "Note:", - "position": { - "start": { - "line": 34, - "column": 3, - "offset": 1111 - }, - "end": { - "line": 34, - "column": 8, - "offset": 1116 - } - } - } - ], - "position": { - "start": { - "line": 34, - "column": 1, - "offset": 1109 - }, - "end": { - "line": 34, - "column": 10, - "offset": 1118 - } - } - }, - { - "type": "text", - "value": " This document is itself written using Markdown; you\ncan ", - "position": { - "start": { - "line": 34, - "column": 10, - "offset": 1118 - }, - "end": { - "line": 35, - "column": 5, - "offset": 1175 - } - } - }, - { - "type": "linkReference", - "children": [ - { - "type": "text", - "value": "see the source for it by adding '.text' to the URL", - "position": { - "start": { - "line": 35, - "column": 6, - "offset": 1176 - }, - "end": { - "line": 35, - "column": 56, - "offset": 1226 - } - } - } - ], - "position": { - "start": { - "line": 35, - "column": 5, - "offset": 1175 - }, - "end": { - "line": 35, - "column": 62, - "offset": 1232 - } - }, - "label": "src", - "identifier": "src", - "referenceType": "full" - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 35, - "column": 62, - "offset": 1232 - }, - "end": { - "line": 35, - "column": 63, - "offset": 1233 - } - } - } - ], - "position": { - "start": { - "line": 34, - "column": 1, - "offset": 1109 - }, - "end": { - "line": 35, - "column": 63, - "offset": 1233 - } - } - }, - { - "type": "definition", - "identifier": "src", - "label": "src", - "title": null, - "url": "/projects/markdown/syntax.text", - "position": { - "start": { - "line": 37, - "column": 3, - "offset": 1237 - }, - "end": { - "line": 37, - "column": 40, - "offset": 1274 - } - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 39, - "column": 1, - "offset": 1276 - }, - "end": { - "line": 39, - "column": 6, - "offset": 1281 - } - } - }, - { - "type": "html", - "value": "

Overview

", - "position": { - "start": { - "line": 41, - "column": 1, - "offset": 1283 - }, - "end": { - "line": 41, - "column": 32, - "offset": 1314 - } - } - }, - { - "type": "html", - "value": "

Philosophy

", - "position": { - "start": { - "line": 43, - "column": 1, - "offset": 1316 - }, - "end": { - "line": 43, - "column": 36, - "offset": 1351 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Markdown is intended to be as easy-to-read and easy-to-write as is feasible.", - "position": { - "start": { - "line": 45, - "column": 1, - "offset": 1353 - }, - "end": { - "line": 45, - "column": 77, - "offset": 1429 - } - } - } - ], - "position": { - "start": { - "line": 45, - "column": 1, - "offset": 1353 - }, - "end": { - "line": 45, - "column": 77, - "offset": 1429 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Readability, however, is emphasized above all else. A Markdown-formatted\ndocument should be publishable as-is, as plain text, without looking\nlike it's been marked up with tags or formatting instructions. While\nMarkdown's syntax has been influenced by several existing text-to-HTML\nfilters -- including [Setext] ", - "position": { - "start": { - "line": 47, - "column": 1, - "offset": 1431 - }, - "end": { - "line": 51, - "column": 31, - "offset": 1743 - } - } - }, - { - "type": "linkReference", - "children": [ - { - "type": "text", - "value": "1", - "position": { - "start": { - "line": 51, - "column": 32, - "offset": 1744 - }, - "end": { - "line": 51, - "column": 33, - "offset": 1745 - } - } - } - ], - "position": { - "start": { - "line": 51, - "column": 31, - "offset": 1743 - }, - "end": { - "line": 51, - "column": 34, - "offset": 1746 - } - }, - "label": "1", - "identifier": "1", - "referenceType": "shortcut" - }, - { - "type": "text", - "value": ", [atx] ", - "position": { - "start": { - "line": 51, - "column": 34, - "offset": 1746 - }, - "end": { - "line": 51, - "column": 42, - "offset": 1754 - } - } - }, - { - "type": "linkReference", - "children": [ - { - "type": "text", - "value": "2", - "position": { - "start": { - "line": 51, - "column": 43, - "offset": 1755 - }, - "end": { - "line": 51, - "column": 44, - "offset": 1756 - } - } - } - ], - "position": { - "start": { - "line": 51, - "column": 42, - "offset": 1754 - }, - "end": { - "line": 51, - "column": 45, - "offset": 1757 - } - }, - "label": "2", - "identifier": "2", - "referenceType": "shortcut" - }, - { - "type": "text", - "value": ", [Textile] ", - "position": { - "start": { - "line": 51, - "column": 45, - "offset": 1757 - }, - "end": { - "line": 51, - "column": 57, - "offset": 1769 - } - } - }, - { - "type": "linkReference", - "children": [ - { - "type": "text", - "value": "3", - "position": { - "start": { - "line": 51, - "column": 58, - "offset": 1770 - }, - "end": { - "line": 51, - "column": 59, - "offset": 1771 - } - } - } - ], - "position": { - "start": { - "line": 51, - "column": 57, - "offset": 1769 - }, - "end": { - "line": 51, - "column": 60, - "offset": 1772 - } - }, - "label": "3", - "identifier": "3", - "referenceType": "shortcut" - }, - { - "type": "text", - "value": ", [reStructuredText] ", - "position": { - "start": { - "line": 51, - "column": 60, - "offset": 1772 - }, - "end": { - "line": 51, - "column": 81, - "offset": 1793 - } - } - }, - { - "type": "linkReference", - "children": [ - { - "type": "text", - "value": "4", - "position": { - "start": { - "line": 51, - "column": 82, - "offset": 1794 - }, - "end": { - "line": 51, - "column": 83, - "offset": 1795 - } - } - } - ], - "position": { - "start": { - "line": 51, - "column": 81, - "offset": 1793 - }, - "end": { - "line": 51, - "column": 84, - "offset": 1796 - } - }, - "label": "4", - "identifier": "4", - "referenceType": "shortcut" - }, - { - "type": "text", - "value": ",\n[Grutatext] ", - "position": { - "start": { - "line": 51, - "column": 84, - "offset": 1796 - }, - "end": { - "line": 52, - "column": 13, - "offset": 1810 - } - } - }, - { - "type": "linkReference", - "children": [ - { - "type": "text", - "value": "5", - "position": { - "start": { - "line": 52, - "column": 14, - "offset": 1811 - }, - "end": { - "line": 52, - "column": 15, - "offset": 1812 - } - } - } - ], - "position": { - "start": { - "line": 52, - "column": 13, - "offset": 1810 - }, - "end": { - "line": 52, - "column": 16, - "offset": 1813 - } - }, - "label": "5", - "identifier": "5", - "referenceType": "shortcut" - }, - { - "type": "text", - "value": ", and [EtText] ", - "position": { - "start": { - "line": 52, - "column": 16, - "offset": 1813 - }, - "end": { - "line": 52, - "column": 31, - "offset": 1828 - } - } - }, - { - "type": "linkReference", - "children": [ - { - "type": "text", - "value": "6", - "position": { - "start": { - "line": 52, - "column": 32, - "offset": 1829 - }, - "end": { - "line": 52, - "column": 33, - "offset": 1830 - } - } - } - ], - "position": { - "start": { - "line": 52, - "column": 31, - "offset": 1828 - }, - "end": { - "line": 52, - "column": 34, - "offset": 1831 - } - }, - "label": "6", - "identifier": "6", - "referenceType": "shortcut" - }, - { - "type": "text", - "value": " -- the single biggest source of\ninspiration for Markdown's syntax is the format of plain text email.", - "position": { - "start": { - "line": 52, - "column": 34, - "offset": 1831 - }, - "end": { - "line": 53, - "column": 69, - "offset": 1932 - } - } - } - ], - "position": { - "start": { - "line": 47, - "column": 1, - "offset": 1431 - }, - "end": { - "line": 53, - "column": 69, - "offset": 1932 - } - } - }, - { - "type": "definition", - "identifier": "1", - "label": "1", - "title": null, - "url": "http://docutils.sourceforge.net/mirror/setext.html", - "position": { - "start": { - "line": 55, - "column": 3, - "offset": 1936 - }, - "end": { - "line": 55, - "column": 58, - "offset": 1991 - } - } - }, - { - "type": "definition", - "identifier": "2", - "label": "2", - "title": null, - "url": "http://www.aaronsw.com/2002/atx/", - "position": { - "start": { - "line": 56, - "column": 3, - "offset": 1994 - }, - "end": { - "line": 56, - "column": 40, - "offset": 2031 - } - } - }, - { - "type": "definition", - "identifier": "3", - "label": "3", - "title": null, - "url": "http://textism.com/tools/textile/", - "position": { - "start": { - "line": 57, - "column": 3, - "offset": 2034 - }, - "end": { - "line": 57, - "column": 41, - "offset": 2072 - } - } - }, - { - "type": "definition", - "identifier": "4", - "label": "4", - "title": null, - "url": "http://docutils.sourceforge.net/rst.html", - "position": { - "start": { - "line": 58, - "column": 3, - "offset": 2075 - }, - "end": { - "line": 58, - "column": 48, - "offset": 2120 - } - } - }, - { - "type": "definition", - "identifier": "5", - "label": "5", - "title": null, - "url": "http://www.triptico.com/software/grutatxt.html", - "position": { - "start": { - "line": 59, - "column": 3, - "offset": 2123 - }, - "end": { - "line": 59, - "column": 54, - "offset": 2174 - } - } - }, - { - "type": "definition", - "identifier": "6", - "label": "6", - "title": null, - "url": "http://ettext.taint.org/doc/", - "position": { - "start": { - "line": 60, - "column": 3, - "offset": 2177 - }, - "end": { - "line": 60, - "column": 36, - "offset": 2210 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "To this end, Markdown's syntax is comprised entirely of punctuation\ncharacters, which punctuation characters have been carefully chosen so\nas to look like what they mean. E.g., asterisks around a word actually\nlook like *emphasis*. Markdown lists look like, well, lists. Even\nblockquotes look like quoted passages of text, assuming you've ever\nused email.", - "position": { - "start": { - "line": 62, - "column": 1, - "offset": 2212 - }, - "end": { - "line": 67, - "column": 12, - "offset": 2569 - } - } - } - ], - "position": { - "start": { - "line": 62, - "column": 1, - "offset": 2212 - }, - "end": { - "line": 67, - "column": 12, - "offset": 2569 - } - } - }, - { - "type": "html", - "value": "

Inline HTML

", - "position": { - "start": { - "line": 71, - "column": 1, - "offset": 2573 - }, - "end": { - "line": 71, - "column": 31, - "offset": 2603 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Markdown's syntax is intended for one purpose: to be used as a\nformat for ", - "position": { - "start": { - "line": 73, - "column": 1, - "offset": 2605 - }, - "end": { - "line": 74, - "column": 12, - "offset": 2679 - } - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "writing", - "position": { - "start": { - "line": 74, - "column": 13, - "offset": 2680 - }, - "end": { - "line": 74, - "column": 20, - "offset": 2687 - } - } - } - ], - "position": { - "start": { - "line": 74, - "column": 12, - "offset": 2679 - }, - "end": { - "line": 74, - "column": 21, - "offset": 2688 - } - } - }, - { - "type": "text", - "value": " for the web.", - "position": { - "start": { - "line": 74, - "column": 21, - "offset": 2688 - }, - "end": { - "line": 74, - "column": 34, - "offset": 2701 - } - } - } - ], - "position": { - "start": { - "line": 73, - "column": 1, - "offset": 2605 - }, - "end": { - "line": 74, - "column": 34, - "offset": 2701 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Markdown is not a replacement for HTML, or even close to it. Its\nsyntax is very small, corresponding only to a very small subset of\nHTML tags. The idea is ", - "position": { - "start": { - "line": 76, - "column": 1, - "offset": 2703 - }, - "end": { - "line": 78, - "column": 24, - "offset": 2858 - } - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "not", - "position": { - "start": { - "line": 78, - "column": 25, - "offset": 2859 - }, - "end": { - "line": 78, - "column": 28, - "offset": 2862 - } - } - } - ], - "position": { - "start": { - "line": 78, - "column": 24, - "offset": 2858 - }, - "end": { - "line": 78, - "column": 29, - "offset": 2863 - } - } - }, - { - "type": "text", - "value": " to create a syntax that makes it easier\nto insert HTML tags. In my opinion, HTML tags are already easy to\ninsert. The idea for Markdown is to make it easy to read, write, and\nedit prose. HTML is a ", - "position": { - "start": { - "line": 78, - "column": 29, - "offset": 2863 - }, - "end": { - "line": 81, - "column": 23, - "offset": 3061 - } - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "publishing", - "position": { - "start": { - "line": 81, - "column": 24, - "offset": 3062 - }, - "end": { - "line": 81, - "column": 34, - "offset": 3072 - } - } - } - ], - "position": { - "start": { - "line": 81, - "column": 23, - "offset": 3061 - }, - "end": { - "line": 81, - "column": 35, - "offset": 3073 - } - } - }, - { - "type": "text", - "value": " format; Markdown is a ", - "position": { - "start": { - "line": 81, - "column": 35, - "offset": 3073 - }, - "end": { - "line": 81, - "column": 58, - "offset": 3096 - } - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "writing", - "position": { - "start": { - "line": 81, - "column": 59, - "offset": 3097 - }, - "end": { - "line": 81, - "column": 66, - "offset": 3104 - } - } - } - ], - "position": { - "start": { - "line": 81, - "column": 58, - "offset": 3096 - }, - "end": { - "line": 81, - "column": 67, - "offset": 3105 - } - } - }, - { - "type": "text", - "value": "\nformat. Thus, Markdown's formatting syntax only addresses issues that\ncan be conveyed in plain text.", - "position": { - "start": { - "line": 81, - "column": 67, - "offset": 3105 - }, - "end": { - "line": 83, - "column": 31, - "offset": 3206 - } - } - } - ], - "position": { - "start": { - "line": 76, - "column": 1, - "offset": 2703 - }, - "end": { - "line": 83, - "column": 31, - "offset": 3206 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "For any markup that is not covered by Markdown's syntax, you simply\nuse HTML itself. There's no need to preface it or delimit it to\nindicate that you're switching from Markdown to HTML; you just use\nthe tags.", - "position": { - "start": { - "line": 85, - "column": 1, - "offset": 3208 - }, - "end": { - "line": 88, - "column": 10, - "offset": 3416 - } - } - } - ], - "position": { - "start": { - "line": 85, - "column": 1, - "offset": 3208 - }, - "end": { - "line": 88, - "column": 10, - "offset": 3416 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "The only restrictions are that block-level HTML elements -- e.g. ", - "position": { - "start": { - "line": 90, - "column": 1, - "offset": 3418 - }, - "end": { - "line": 90, - "column": 66, - "offset": 3483 - } - } - }, - { - "type": "inlineCode", - "value": "
", - "position": { - "start": { - "line": 90, - "column": 66, - "offset": 3483 - }, - "end": { - "line": 90, - "column": 73, - "offset": 3490 - } - } - }, - { - "type": "text", - "value": ",\n", - "position": { - "start": { - "line": 90, - "column": 73, - "offset": 3490 - }, - "end": { - "line": 91, - "column": 1, - "offset": 3492 - } - } - }, - { - "type": "inlineCode", - "value": "", - "position": { - "start": { - "line": 91, - "column": 1, - "offset": 3492 - }, - "end": { - "line": 91, - "column": 10, - "offset": 3501 - } - } - }, - { - "type": "text", - "value": ", ", - "position": { - "start": { - "line": 91, - "column": 10, - "offset": 3501 - }, - "end": { - "line": 91, - "column": 12, - "offset": 3503 - } - } - }, - { - "type": "inlineCode", - "value": "
",
-          "position": {
-            "start": {
-              "line": 91,
-              "column": 12,
-              "offset": 3503
-            },
-            "end": {
-              "line": 91,
-              "column": 19,
-              "offset": 3510
-            }
-          }
-        },
-        {
-          "type": "text",
-          "value": ", ",
-          "position": {
-            "start": {
-              "line": 91,
-              "column": 19,
-              "offset": 3510
-            },
-            "end": {
-              "line": 91,
-              "column": 21,
-              "offset": 3512
-            }
-          }
-        },
-        {
-          "type": "inlineCode",
-          "value": "

", - "position": { - "start": { - "line": 91, - "column": 21, - "offset": 3512 - }, - "end": { - "line": 91, - "column": 26, - "offset": 3517 - } - } - }, - { - "type": "text", - "value": ", etc. -- must be separated from surrounding\ncontent by blank lines, and the start and end tags of the block should\nnot be indented with tabs or spaces. Markdown is smart enough not\nto add extra (unwanted) ", - "position": { - "start": { - "line": 91, - "column": 26, - "offset": 3517 - }, - "end": { - "line": 94, - "column": 25, - "offset": 3723 - } - } - }, - { - "type": "inlineCode", - "value": "

", - "position": { - "start": { - "line": 94, - "column": 25, - "offset": 3723 - }, - "end": { - "line": 94, - "column": 30, - "offset": 3728 - } - } - }, - { - "type": "text", - "value": " tags around HTML block-level tags.", - "position": { - "start": { - "line": 94, - "column": 30, - "offset": 3728 - }, - "end": { - "line": 94, - "column": 65, - "offset": 3763 - } - } - } - ], - "position": { - "start": { - "line": 90, - "column": 1, - "offset": 3418 - }, - "end": { - "line": 94, - "column": 65, - "offset": 3763 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "For example, to add an HTML table to a Markdown article:", - "position": { - "start": { - "line": 96, - "column": 1, - "offset": 3765 - }, - "end": { - "line": 96, - "column": 57, - "offset": 3821 - } - } - } - ], - "position": { - "start": { - "line": 96, - "column": 1, - "offset": 3765 - }, - "end": { - "line": 96, - "column": 57, - "offset": 3821 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "This is a regular paragraph.\n\n

\n \n \n \n
Foo
\n\nThis is another regular paragraph.", - "position": { - "start": { - "line": 98, - "column": 1, - "offset": 3823 - }, - "end": { - "line": 106, - "column": 39, - "offset": 3973 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Note that Markdown formatting syntax is not processed within block-level\nHTML tags. E.g., you can't use Markdown-style ", - "position": { - "start": { - "line": 108, - "column": 1, - "offset": 3975 - }, - "end": { - "line": 109, - "column": 47, - "offset": 4094 - } - } - }, - { - "type": "inlineCode", - "value": "*emphasis*", - "position": { - "start": { - "line": 109, - "column": 47, - "offset": 4094 - }, - "end": { - "line": 109, - "column": 59, - "offset": 4106 - } - } - }, - { - "type": "text", - "value": " inside an\nHTML block.", - "position": { - "start": { - "line": 109, - "column": 59, - "offset": 4106 - }, - "end": { - "line": 110, - "column": 12, - "offset": 4128 - } - } - } - ], - "position": { - "start": { - "line": 108, - "column": 1, - "offset": 3975 - }, - "end": { - "line": 110, - "column": 12, - "offset": 4128 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Span-level HTML tags -- e.g. ", - "position": { - "start": { - "line": 112, - "column": 1, - "offset": 4130 - }, - "end": { - "line": 112, - "column": 30, - "offset": 4159 - } - } - }, - { - "type": "inlineCode", - "value": "", - "position": { - "start": { - "line": 112, - "column": 30, - "offset": 4159 - }, - "end": { - "line": 112, - "column": 38, - "offset": 4167 - } - } - }, - { - "type": "text", - "value": ", ", - "position": { - "start": { - "line": 112, - "column": 38, - "offset": 4167 - }, - "end": { - "line": 112, - "column": 40, - "offset": 4169 - } - } - }, - { - "type": "inlineCode", - "value": "", - "position": { - "start": { - "line": 112, - "column": 40, - "offset": 4169 - }, - "end": { - "line": 112, - "column": 48, - "offset": 4177 - } - } - }, - { - "type": "text", - "value": ", or ", - "position": { - "start": { - "line": 112, - "column": 48, - "offset": 4177 - }, - "end": { - "line": 112, - "column": 53, - "offset": 4182 - } - } - }, - { - "type": "inlineCode", - "value": "", - "position": { - "start": { - "line": 112, - "column": 53, - "offset": 4182 - }, - "end": { - "line": 112, - "column": 60, - "offset": 4189 - } - } - }, - { - "type": "text", - "value": " -- can be\nused anywhere in a Markdown paragraph, list item, or header. If you\nwant, you can even use HTML tags instead of Markdown formatting; e.g. if\nyou'd prefer to use HTML ", - "position": { - "start": { - "line": 112, - "column": 60, - "offset": 4189 - }, - "end": { - "line": 115, - "column": 26, - "offset": 4366 - } - } - }, - { - "type": "inlineCode", - "value": "", - "position": { - "start": { - "line": 115, - "column": 26, - "offset": 4366 - }, - "end": { - "line": 115, - "column": 31, - "offset": 4371 - } - } - }, - { - "type": "text", - "value": " or ", - "position": { - "start": { - "line": 115, - "column": 31, - "offset": 4371 - }, - "end": { - "line": 115, - "column": 35, - "offset": 4375 - } - } - }, - { - "type": "inlineCode", - "value": "", - "position": { - "start": { - "line": 115, - "column": 35, - "offset": 4375 - }, - "end": { - "line": 115, - "column": 42, - "offset": 4382 - } - } - }, - { - "type": "text", - "value": " tags instead of Markdown's\nlink or image syntax, go right ahead.", - "position": { - "start": { - "line": 115, - "column": 42, - "offset": 4382 - }, - "end": { - "line": 116, - "column": 38, - "offset": 4447 - } - } - } - ], - "position": { - "start": { - "line": 112, - "column": 1, - "offset": 4130 - }, - "end": { - "line": 116, - "column": 38, - "offset": 4447 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Unlike block-level HTML tags, Markdown syntax ", - "position": { - "start": { - "line": 118, - "column": 1, - "offset": 4449 - }, - "end": { - "line": 118, - "column": 47, - "offset": 4495 - } - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "is", - "position": { - "start": { - "line": 118, - "column": 48, - "offset": 4496 - }, - "end": { - "line": 118, - "column": 50, - "offset": 4498 - } - } - } - ], - "position": { - "start": { - "line": 118, - "column": 47, - "offset": 4495 - }, - "end": { - "line": 118, - "column": 51, - "offset": 4499 - } - } - }, - { - "type": "text", - "value": " processed within\nspan-level tags.", - "position": { - "start": { - "line": 118, - "column": 51, - "offset": 4499 - }, - "end": { - "line": 119, - "column": 17, - "offset": 4533 - } - } - } - ], - "position": { - "start": { - "line": 118, - "column": 1, - "offset": 4449 - }, - "end": { - "line": 119, - "column": 17, - "offset": 4533 - } - } - }, - { - "type": "html", - "value": "

Automatic Escaping for Special Characters

", - "position": { - "start": { - "line": 122, - "column": 1, - "offset": 4536 - }, - "end": { - "line": 122, - "column": 67, - "offset": 4602 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "In HTML, there are two characters that demand special treatment: ", - "position": { - "start": { - "line": 124, - "column": 1, - "offset": 4604 - }, - "end": { - "line": 124, - "column": 66, - "offset": 4669 - } - } - }, - { - "type": "inlineCode", - "value": "<", - "position": { - "start": { - "line": 124, - "column": 66, - "offset": 4669 - }, - "end": { - "line": 124, - "column": 69, - "offset": 4672 - } - } - }, - { - "type": "text", - "value": "\nand ", - "position": { - "start": { - "line": 124, - "column": 69, - "offset": 4672 - }, - "end": { - "line": 125, - "column": 5, - "offset": 4677 - } - } - }, - { - "type": "inlineCode", - "value": "&", - "position": { - "start": { - "line": 125, - "column": 5, - "offset": 4677 - }, - "end": { - "line": 125, - "column": 8, - "offset": 4680 - } - } - }, - { - "type": "text", - "value": ". Left angle brackets are used to start tags; ampersands are\nused to denote HTML entities. If you want to use them as literal\ncharacters, you must escape them as entities, e.g. ", - "position": { - "start": { - "line": 125, - "column": 8, - "offset": 4680 - }, - "end": { - "line": 127, - "column": 52, - "offset": 4857 - } - } - }, - { - "type": "inlineCode", - "value": "<", - "position": { - "start": { - "line": 127, - "column": 52, - "offset": 4857 - }, - "end": { - "line": 127, - "column": 58, - "offset": 4863 - } - } - }, - { - "type": "text", - "value": ", and\n", - "position": { - "start": { - "line": 127, - "column": 58, - "offset": 4863 - }, - "end": { - "line": 128, - "column": 1, - "offset": 4869 - } - } - }, - { - "type": "inlineCode", - "value": "&", - "position": { - "start": { - "line": 128, - "column": 1, - "offset": 4869 - }, - "end": { - "line": 128, - "column": 8, - "offset": 4876 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 128, - "column": 8, - "offset": 4876 - }, - "end": { - "line": 128, - "column": 9, - "offset": 4877 - } - } - } - ], - "position": { - "start": { - "line": 124, - "column": 1, - "offset": 4604 - }, - "end": { - "line": 128, - "column": 9, - "offset": 4877 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Ampersands in particular are bedeviling for web writers. If you want to\nwrite about 'AT&T', you need to write '", - "position": { - "start": { - "line": 130, - "column": 1, - "offset": 4879 - }, - "end": { - "line": 131, - "column": 40, - "offset": 4990 - } - } - }, - { - "type": "inlineCode", - "value": "AT&T", - "position": { - "start": { - "line": 131, - "column": 40, - "offset": 4990 - }, - "end": { - "line": 131, - "column": 50, - "offset": 5000 - } - } - }, - { - "type": "text", - "value": "'. You even need to\nescape ampersands within URLs. Thus, if you want to link to:", - "position": { - "start": { - "line": 131, - "column": 50, - "offset": 5000 - }, - "end": { - "line": 132, - "column": 61, - "offset": 5080 - } - } - } - ], - "position": { - "start": { - "line": 130, - "column": 1, - "offset": 4879 - }, - "end": { - "line": 132, - "column": 61, - "offset": 5080 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "http://images.google.com/images?num=30&q=larry+bird", - "position": { - "start": { - "line": 134, - "column": 1, - "offset": 5082 - }, - "end": { - "line": 134, - "column": 56, - "offset": 5137 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "you need to encode the URL as:", - "position": { - "start": { - "line": 136, - "column": 1, - "offset": 5139 - }, - "end": { - "line": 136, - "column": 31, - "offset": 5169 - } - } - } - ], - "position": { - "start": { - "line": 136, - "column": 1, - "offset": 5139 - }, - "end": { - "line": 136, - "column": 31, - "offset": 5169 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "http://images.google.com/images?num=30&q=larry+bird", - "position": { - "start": { - "line": 138, - "column": 1, - "offset": 5171 - }, - "end": { - "line": 138, - "column": 60, - "offset": 5230 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "in your anchor tag ", - "position": { - "start": { - "line": 140, - "column": 1, - "offset": 5232 - }, - "end": { - "line": 140, - "column": 20, - "offset": 5251 - } - } - }, - { - "type": "inlineCode", - "value": "href", - "position": { - "start": { - "line": 140, - "column": 20, - "offset": 5251 - }, - "end": { - "line": 140, - "column": 26, - "offset": 5257 - } - } - }, - { - "type": "text", - "value": " attribute. Needless to say, this is easy to\nforget, and is probably the single most common source of HTML validation\nerrors in otherwise well-marked-up web sites.", - "position": { - "start": { - "line": 140, - "column": 26, - "offset": 5257 - }, - "end": { - "line": 142, - "column": 46, - "offset": 5420 - } - } - } - ], - "position": { - "start": { - "line": 140, - "column": 1, - "offset": 5232 - }, - "end": { - "line": 142, - "column": 46, - "offset": 5420 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Markdown allows you to use these characters naturally, taking care of\nall the necessary escaping for you. If you use an ampersand as part of\nan HTML entity, it remains unchanged; otherwise it will be translated\ninto ", - "position": { - "start": { - "line": 144, - "column": 1, - "offset": 5422 - }, - "end": { - "line": 147, - "column": 6, - "offset": 5638 - } - } - }, - { - "type": "inlineCode", - "value": "&", - "position": { - "start": { - "line": 147, - "column": 6, - "offset": 5638 - }, - "end": { - "line": 147, - "column": 13, - "offset": 5645 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 147, - "column": 13, - "offset": 5645 - }, - "end": { - "line": 147, - "column": 14, - "offset": 5646 - } - } - } - ], - "position": { - "start": { - "line": 144, - "column": 1, - "offset": 5422 - }, - "end": { - "line": 147, - "column": 14, - "offset": 5646 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "So, if you want to include a copyright symbol in your article, you can write:", - "position": { - "start": { - "line": 149, - "column": 1, - "offset": 5648 - }, - "end": { - "line": 149, - "column": 78, - "offset": 5725 - } - } - } - ], - "position": { - "start": { - "line": 149, - "column": 1, - "offset": 5648 - }, - "end": { - "line": 149, - "column": 78, - "offset": 5725 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "©", - "position": { - "start": { - "line": 151, - "column": 1, - "offset": 5727 - }, - "end": { - "line": 151, - "column": 11, - "offset": 5737 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "and Markdown will leave it alone. But if you write:", - "position": { - "start": { - "line": 153, - "column": 1, - "offset": 5739 - }, - "end": { - "line": 153, - "column": 52, - "offset": 5790 - } - } - } - ], - "position": { - "start": { - "line": 153, - "column": 1, - "offset": 5739 - }, - "end": { - "line": 153, - "column": 52, - "offset": 5790 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "AT&T", - "position": { - "start": { - "line": 155, - "column": 1, - "offset": 5792 - }, - "end": { - "line": 155, - "column": 9, - "offset": 5800 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Markdown will translate it to:", - "position": { - "start": { - "line": 157, - "column": 1, - "offset": 5802 - }, - "end": { - "line": 157, - "column": 31, - "offset": 5832 - } - } - } - ], - "position": { - "start": { - "line": 157, - "column": 1, - "offset": 5802 - }, - "end": { - "line": 157, - "column": 31, - "offset": 5832 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "AT&T", - "position": { - "start": { - "line": 159, - "column": 1, - "offset": 5834 - }, - "end": { - "line": 159, - "column": 13, - "offset": 5846 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Similarly, because Markdown supports ", - "position": { - "start": { - "line": 161, - "column": 1, - "offset": 5848 - }, - "end": { - "line": 161, - "column": 38, - "offset": 5885 - } - } - }, - { - "type": "link", - "title": null, - "url": "#html", - "children": [ - { - "type": "text", - "value": "inline HTML", - "position": { - "start": { - "line": 161, - "column": 39, - "offset": 5886 - }, - "end": { - "line": 161, - "column": 50, - "offset": 5897 - } - } - } - ], - "position": { - "start": { - "line": 161, - "column": 38, - "offset": 5885 - }, - "end": { - "line": 161, - "column": 58, - "offset": 5905 - } - } - }, - { - "type": "text", - "value": ", if you use\nangle brackets as delimiters for HTML tags, Markdown will treat them as\nsuch. But if you write:", - "position": { - "start": { - "line": 161, - "column": 58, - "offset": 5905 - }, - "end": { - "line": 163, - "column": 24, - "offset": 6013 - } - } - } - ], - "position": { - "start": { - "line": 161, - "column": 1, - "offset": 5848 - }, - "end": { - "line": 163, - "column": 24, - "offset": 6013 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "4 < 5", - "position": { - "start": { - "line": 165, - "column": 1, - "offset": 6015 - }, - "end": { - "line": 165, - "column": 10, - "offset": 6024 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Markdown will translate it to:", - "position": { - "start": { - "line": 167, - "column": 1, - "offset": 6026 - }, - "end": { - "line": 167, - "column": 31, - "offset": 6056 - } - } - } - ], - "position": { - "start": { - "line": 167, - "column": 1, - "offset": 6026 - }, - "end": { - "line": 167, - "column": 31, - "offset": 6056 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "4 < 5", - "position": { - "start": { - "line": 169, - "column": 1, - "offset": 6058 - }, - "end": { - "line": 169, - "column": 13, - "offset": 6070 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "However, inside Markdown code spans and blocks, angle brackets and\nampersands are ", - "position": { - "start": { - "line": 171, - "column": 1, - "offset": 6072 - }, - "end": { - "line": 172, - "column": 16, - "offset": 6154 - } - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "always", - "position": { - "start": { - "line": 172, - "column": 17, - "offset": 6155 - }, - "end": { - "line": 172, - "column": 23, - "offset": 6161 - } - } - } - ], - "position": { - "start": { - "line": 172, - "column": 16, - "offset": 6154 - }, - "end": { - "line": 172, - "column": 24, - "offset": 6162 - } - } - }, - { - "type": "text", - "value": " encoded automatically. This makes it easy to use\nMarkdown to write about HTML code. (As opposed to raw HTML, which is a\nterrible format for writing about HTML syntax, because every single ", - "position": { - "start": { - "line": 172, - "column": 24, - "offset": 6162 - }, - "end": { - "line": 174, - "column": 69, - "offset": 6351 - } - } - }, - { - "type": "inlineCode", - "value": "<", - "position": { - "start": { - "line": 174, - "column": 69, - "offset": 6351 - }, - "end": { - "line": 174, - "column": 72, - "offset": 6354 - } - } - }, - { - "type": "text", - "value": "\nand ", - "position": { - "start": { - "line": 174, - "column": 72, - "offset": 6354 - }, - "end": { - "line": 175, - "column": 5, - "offset": 6359 - } - } - }, - { - "type": "inlineCode", - "value": "&", - "position": { - "start": { - "line": 175, - "column": 5, - "offset": 6359 - }, - "end": { - "line": 175, - "column": 8, - "offset": 6362 - } - } - }, - { - "type": "text", - "value": " in your example code needs to be escaped.)", - "position": { - "start": { - "line": 175, - "column": 8, - "offset": 6362 - }, - "end": { - "line": 175, - "column": 51, - "offset": 6405 - } - } - } - ], - "position": { - "start": { - "line": 171, - "column": 1, - "offset": 6072 - }, - "end": { - "line": 175, - "column": 51, - "offset": 6405 - } - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 178, - "column": 1, - "offset": 6408 - }, - "end": { - "line": 178, - "column": 6, - "offset": 6413 - } - } - }, - { - "type": "html", - "value": "

Block Elements

", - "position": { - "start": { - "line": 181, - "column": 1, - "offset": 6416 - }, - "end": { - "line": 181, - "column": 35, - "offset": 6450 - } - } - }, - { - "type": "html", - "value": "

Paragraphs and Line Breaks

", - "position": { - "start": { - "line": 183, - "column": 1, - "offset": 6452 - }, - "end": { - "line": 183, - "column": 43, - "offset": 6494 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "A paragraph is simply one or more consecutive lines of text, separated\nby one or more blank lines. (A blank line is any line that looks like a\nblank line -- a line containing nothing but spaces or tabs is considered\nblank.) Normal paragraphs should not be intended with spaces or tabs.", - "position": { - "start": { - "line": 185, - "column": 1, - "offset": 6496 - }, - "end": { - "line": 188, - "column": 70, - "offset": 6781 - } - } - } - ], - "position": { - "start": { - "line": 185, - "column": 1, - "offset": 6496 - }, - "end": { - "line": 188, - "column": 70, - "offset": 6781 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "The implication of the \"one or more consecutive lines of text\" rule is\nthat Markdown supports \"hard-wrapped\" text paragraphs. This differs\nsignificantly from most other text-to-HTML formatters (including Movable\nType's \"Convert Line Breaks\" option) which translate every line break\ncharacter in a paragraph into a ", - "position": { - "start": { - "line": 190, - "column": 1, - "offset": 6783 - }, - "end": { - "line": 194, - "column": 33, - "offset": 7097 - } - } - }, - { - "type": "inlineCode", - "value": "
", - "position": { - "start": { - "line": 194, - "column": 33, - "offset": 7097 - }, - "end": { - "line": 194, - "column": 41, - "offset": 7105 - } - } - }, - { - "type": "text", - "value": " tag.", - "position": { - "start": { - "line": 194, - "column": 41, - "offset": 7105 - }, - "end": { - "line": 194, - "column": 46, - "offset": 7110 - } - } - } - ], - "position": { - "start": { - "line": 190, - "column": 1, - "offset": 6783 - }, - "end": { - "line": 194, - "column": 46, - "offset": 7110 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "When you ", - "position": { - "start": { - "line": 196, - "column": 1, - "offset": 7112 - }, - "end": { - "line": 196, - "column": 10, - "offset": 7121 - } - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "do", - "position": { - "start": { - "line": 196, - "column": 11, - "offset": 7122 - }, - "end": { - "line": 196, - "column": 13, - "offset": 7124 - } - } - } - ], - "position": { - "start": { - "line": 196, - "column": 10, - "offset": 7121 - }, - "end": { - "line": 196, - "column": 14, - "offset": 7125 - } - } - }, - { - "type": "text", - "value": " want to insert a ", - "position": { - "start": { - "line": 196, - "column": 14, - "offset": 7125 - }, - "end": { - "line": 196, - "column": 32, - "offset": 7143 - } - } - }, - { - "type": "inlineCode", - "value": "
", - "position": { - "start": { - "line": 196, - "column": 32, - "offset": 7143 - }, - "end": { - "line": 196, - "column": 40, - "offset": 7151 - } - } - }, - { - "type": "text", - "value": " break tag using Markdown, you\nend a line with two or more spaces, then type return.", - "position": { - "start": { - "line": 196, - "column": 40, - "offset": 7151 - }, - "end": { - "line": 197, - "column": 54, - "offset": 7235 - } - } - } - ], - "position": { - "start": { - "line": 196, - "column": 1, - "offset": 7112 - }, - "end": { - "line": 197, - "column": 54, - "offset": 7235 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Yes, this takes a tad more effort to create a ", - "position": { - "start": { - "line": 199, - "column": 1, - "offset": 7237 - }, - "end": { - "line": 199, - "column": 47, - "offset": 7283 - } - } - }, - { - "type": "inlineCode", - "value": "
", - "position": { - "start": { - "line": 199, - "column": 47, - "offset": 7283 - }, - "end": { - "line": 199, - "column": 55, - "offset": 7291 - } - } - }, - { - "type": "text", - "value": ", but a simplistic\n\"every line break is a ", - "position": { - "start": { - "line": 199, - "column": 55, - "offset": 7291 - }, - "end": { - "line": 200, - "column": 24, - "offset": 7333 - } - } - }, - { - "type": "inlineCode", - "value": "
", - "position": { - "start": { - "line": 200, - "column": 24, - "offset": 7333 - }, - "end": { - "line": 200, - "column": 32, - "offset": 7341 - } - } - }, - { - "type": "text", - "value": "\" rule wouldn't work for Markdown.\nMarkdown's email-style ", - "position": { - "start": { - "line": 200, - "column": 32, - "offset": 7341 - }, - "end": { - "line": 201, - "column": 24, - "offset": 7399 - } - } - }, - { - "type": "linkReference", - "children": [ - { - "type": "text", - "value": "blockquoting", - "position": { - "start": { - "line": 201, - "column": 25, - "offset": 7400 - }, - "end": { - "line": 201, - "column": 37, - "offset": 7412 - } - } - } - ], - "position": { - "start": { - "line": 201, - "column": 24, - "offset": 7399 - }, - "end": { - "line": 201, - "column": 42, - "offset": 7417 - } - }, - "label": "bq", - "identifier": "bq", - "referenceType": "full" - }, - { - "type": "text", - "value": " and multi-paragraph ", - "position": { - "start": { - "line": 201, - "column": 42, - "offset": 7417 - }, - "end": { - "line": 201, - "column": 63, - "offset": 7438 - } - } - }, - { - "type": "linkReference", - "children": [ - { - "type": "text", - "value": "list items", - "position": { - "start": { - "line": 201, - "column": 64, - "offset": 7439 - }, - "end": { - "line": 201, - "column": 74, - "offset": 7449 - } - } - } - ], - "position": { - "start": { - "line": 201, - "column": 63, - "offset": 7438 - }, - "end": { - "line": 201, - "column": 78, - "offset": 7453 - } - }, - "label": "l", - "identifier": "l", - "referenceType": "full" - }, - { - "type": "text", - "value": "\nwork best -- and look better -- when you format them with hard breaks.", - "position": { - "start": { - "line": 201, - "column": 78, - "offset": 7453 - }, - "end": { - "line": 202, - "column": 71, - "offset": 7524 - } - } - } - ], - "position": { - "start": { - "line": 199, - "column": 1, - "offset": 7237 - }, - "end": { - "line": 202, - "column": 71, - "offset": 7524 - } - } - }, - { - "type": "definition", - "identifier": "bq", - "label": "bq", - "title": null, - "url": "#blockquote", - "position": { - "start": { - "line": 204, - "column": 3, - "offset": 7528 - }, - "end": { - "line": 204, - "column": 20, - "offset": 7545 - } - } - }, - { - "type": "definition", - "identifier": "l", - "label": "l", - "title": null, - "url": "#list", - "position": { - "start": { - "line": 205, - "column": 3, - "offset": 7548 - }, - "end": { - "line": 205, - "column": 14, - "offset": 7559 - } - } - }, - { - "type": "html", - "value": "

Headers

", - "position": { - "start": { - "line": 209, - "column": 1, - "offset": 7563 - }, - "end": { - "line": 209, - "column": 29, - "offset": 7591 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Markdown supports two styles of headers, [Setext] ", - "position": { - "start": { - "line": 211, - "column": 1, - "offset": 7593 - }, - "end": { - "line": 211, - "column": 51, - "offset": 7643 - } - } - }, - { - "type": "linkReference", - "children": [ - { - "type": "text", - "value": "1", - "position": { - "start": { - "line": 211, - "column": 52, - "offset": 7644 - }, - "end": { - "line": 211, - "column": 53, - "offset": 7645 - } - } - } - ], - "position": { - "start": { - "line": 211, - "column": 51, - "offset": 7643 - }, - "end": { - "line": 211, - "column": 54, - "offset": 7646 - } - }, - "label": "1", - "identifier": "1", - "referenceType": "shortcut" - }, - { - "type": "text", - "value": " and [atx] ", - "position": { - "start": { - "line": 211, - "column": 54, - "offset": 7646 - }, - "end": { - "line": 211, - "column": 65, - "offset": 7657 - } - } - }, - { - "type": "linkReference", - "children": [ - { - "type": "text", - "value": "2", - "position": { - "start": { - "line": 211, - "column": 66, - "offset": 7658 - }, - "end": { - "line": 211, - "column": 67, - "offset": 7659 - } - } - } - ], - "position": { - "start": { - "line": 211, - "column": 65, - "offset": 7657 - }, - "end": { - "line": 211, - "column": 68, - "offset": 7660 - } - }, - "label": "2", - "identifier": "2", - "referenceType": "shortcut" - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 211, - "column": 68, - "offset": 7660 - }, - "end": { - "line": 211, - "column": 69, - "offset": 7661 - } - } - } - ], - "position": { - "start": { - "line": 211, - "column": 1, - "offset": 7593 - }, - "end": { - "line": 211, - "column": 69, - "offset": 7661 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Setext-style headers are \"underlined\" using equal signs (for first-level\nheaders) and dashes (for second-level headers). For example:", - "position": { - "start": { - "line": 213, - "column": 1, - "offset": 7663 - }, - "end": { - "line": 214, - "column": 61, - "offset": 7796 - } - } - } - ], - "position": { - "start": { - "line": 213, - "column": 1, - "offset": 7663 - }, - "end": { - "line": 214, - "column": 61, - "offset": 7796 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "This is an H1\n=============\n\nThis is an H2\n-------------", - "position": { - "start": { - "line": 216, - "column": 1, - "offset": 7798 - }, - "end": { - "line": 220, - "column": 18, - "offset": 7870 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Any number of underlining ", - "position": { - "start": { - "line": 222, - "column": 1, - "offset": 7872 - }, - "end": { - "line": 222, - "column": 27, - "offset": 7898 - } - } - }, - { - "type": "inlineCode", - "value": "=", - "position": { - "start": { - "line": 222, - "column": 27, - "offset": 7898 - }, - "end": { - "line": 222, - "column": 30, - "offset": 7901 - } - } - }, - { - "type": "text", - "value": "'s or ", - "position": { - "start": { - "line": 222, - "column": 30, - "offset": 7901 - }, - "end": { - "line": 222, - "column": 36, - "offset": 7907 - } - } - }, - { - "type": "inlineCode", - "value": "-", - "position": { - "start": { - "line": 222, - "column": 36, - "offset": 7907 - }, - "end": { - "line": 222, - "column": 39, - "offset": 7910 - } - } - }, - { - "type": "text", - "value": "'s will work.", - "position": { - "start": { - "line": 222, - "column": 39, - "offset": 7910 - }, - "end": { - "line": 222, - "column": 52, - "offset": 7923 - } - } - } - ], - "position": { - "start": { - "line": 222, - "column": 1, - "offset": 7872 - }, - "end": { - "line": 222, - "column": 52, - "offset": 7923 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Atx-style headers use 1-6 hash characters at the start of the line,\ncorresponding to header levels 1-6. For example:", - "position": { - "start": { - "line": 224, - "column": 1, - "offset": 7925 - }, - "end": { - "line": 225, - "column": 49, - "offset": 8041 - } - } - } - ], - "position": { - "start": { - "line": 224, - "column": 1, - "offset": 7925 - }, - "end": { - "line": 225, - "column": 49, - "offset": 8041 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "# This is an H1\n\n## This is an H2\n\n###### This is an H6", - "position": { - "start": { - "line": 227, - "column": 1, - "offset": 8043 - }, - "end": { - "line": 231, - "column": 25, - "offset": 8110 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Optionally, you may \"close\" atx-style headers. This is purely\ncosmetic -- you can use this if you think it looks better. The\nclosing hashes don't even need to match the number of hashes\nused to open the header. (The number of opening hashes\ndetermines the header level.) :", - "position": { - "start": { - "line": 233, - "column": 1, - "offset": 8112 - }, - "end": { - "line": 237, - "column": 32, - "offset": 8384 - } - } - } - ], - "position": { - "start": { - "line": 233, - "column": 1, - "offset": 8112 - }, - "end": { - "line": 237, - "column": 32, - "offset": 8384 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "# This is an H1 #\n\n## This is an H2 ##\n\n### This is an H3 ######", - "position": { - "start": { - "line": 239, - "column": 1, - "offset": 8386 - }, - "end": { - "line": 243, - "column": 29, - "offset": 8462 - } - } - }, - { - "type": "html", - "value": "

Blockquotes

", - "position": { - "start": { - "line": 246, - "column": 1, - "offset": 8465 - }, - "end": { - "line": 246, - "column": 37, - "offset": 8501 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Markdown uses email-style ", - "position": { - "start": { - "line": 248, - "column": 1, - "offset": 8503 - }, - "end": { - "line": 248, - "column": 27, - "offset": 8529 - } - } - }, - { - "type": "inlineCode", - "value": ">", - "position": { - "start": { - "line": 248, - "column": 27, - "offset": 8529 - }, - "end": { - "line": 248, - "column": 30, - "offset": 8532 - } - } - }, - { - "type": "text", - "value": " characters for blockquoting. If you're\nfamiliar with quoting passages of text in an email message, then you\nknow how to create a blockquote in Markdown. It looks best if you hard\nwrap the text and put a ", - "position": { - "start": { - "line": 248, - "column": 30, - "offset": 8532 - }, - "end": { - "line": 251, - "column": 25, - "offset": 8736 - } - } - }, - { - "type": "inlineCode", - "value": ">", - "position": { - "start": { - "line": 251, - "column": 25, - "offset": 8736 - }, - "end": { - "line": 251, - "column": 28, - "offset": 8739 - } - } - }, - { - "type": "text", - "value": " before every line:", - "position": { - "start": { - "line": 251, - "column": 28, - "offset": 8739 - }, - "end": { - "line": 251, - "column": 47, - "offset": 8758 - } - } - } - ], - "position": { - "start": { - "line": 248, - "column": 1, - "offset": 8503 - }, - "end": { - "line": 251, - "column": 47, - "offset": 8758 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "> This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet,\n> consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.\n> Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.\n> \n> Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse\n> id sem consectetuer libero luctus adipiscing.", - "position": { - "start": { - "line": 253, - "column": 1, - "offset": 8760 - }, - "end": { - "line": 258, - "column": 52, - "offset": 9120 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Markdown allows you to be lazy and only put the ", - "position": { - "start": { - "line": 260, - "column": 1, - "offset": 9122 - }, - "end": { - "line": 260, - "column": 49, - "offset": 9170 - } - } - }, - { - "type": "inlineCode", - "value": ">", - "position": { - "start": { - "line": 260, - "column": 49, - "offset": 9170 - }, - "end": { - "line": 260, - "column": 52, - "offset": 9173 - } - } - }, - { - "type": "text", - "value": " before the first\nline of a hard-wrapped paragraph:", - "position": { - "start": { - "line": 260, - "column": 52, - "offset": 9173 - }, - "end": { - "line": 261, - "column": 34, - "offset": 9224 - } - } - } - ], - "position": { - "start": { - "line": 260, - "column": 1, - "offset": 9122 - }, - "end": { - "line": 261, - "column": 34, - "offset": 9224 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "> This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet,\nconsectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.\nVestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.\n\n> Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse\nid sem consectetuer libero luctus adipiscing.", - "position": { - "start": { - "line": 263, - "column": 1, - "offset": 9226 - }, - "end": { - "line": 268, - "column": 50, - "offset": 9574 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Blockquotes can be nested (i.e. a blockquote-in-a-blockquote) by\nadding additional levels of ", - "position": { - "start": { - "line": 270, - "column": 1, - "offset": 9576 - }, - "end": { - "line": 271, - "column": 29, - "offset": 9669 - } - } - }, - { - "type": "inlineCode", - "value": ">", - "position": { - "start": { - "line": 271, - "column": 29, - "offset": 9669 - }, - "end": { - "line": 271, - "column": 32, - "offset": 9672 - } - } - }, - { - "type": "text", - "value": ":", - "position": { - "start": { - "line": 271, - "column": 32, - "offset": 9672 - }, - "end": { - "line": 271, - "column": 33, - "offset": 9673 - } - } - } - ], - "position": { - "start": { - "line": 270, - "column": 1, - "offset": 9576 - }, - "end": { - "line": 271, - "column": 33, - "offset": 9673 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "> This is the first level of quoting.\n>\n> > This is nested blockquote.\n>\n> Back to the first level.", - "position": { - "start": { - "line": 273, - "column": 1, - "offset": 9675 - }, - "end": { - "line": 277, - "column": 31, - "offset": 9794 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Blockquotes can contain other Markdown elements, including headers, lists,\nand code blocks:", - "position": { - "start": { - "line": 279, - "column": 1, - "offset": 9796 - }, - "end": { - "line": 280, - "column": 17, - "offset": 9887 - } - } - } - ], - "position": { - "start": { - "line": 279, - "column": 1, - "offset": 9796 - }, - "end": { - "line": 280, - "column": 17, - "offset": 9887 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "> ## This is a header.\n> \n> 1. This is the first list item.\n> 2. This is the second list item.\n> \n> Here's some example code:\n> \n> return shell_exec(\"echo $input | $markdown_script\");", - "position": { - "start": { - "line": 282, - "column": 1, - "offset": 9889 - }, - "end": { - "line": 289, - "column": 60, - "offset": 10088 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Any decent text editor should make email-style quoting easy. For\nexample, with BBEdit, you can make a selection and choose Increase\nQuote Level from the Text menu.", - "position": { - "start": { - "line": 291, - "column": 1, - "offset": 10090 - }, - "end": { - "line": 293, - "column": 32, - "offset": 10253 - } - } - } - ], - "position": { - "start": { - "line": 291, - "column": 1, - "offset": 10090 - }, - "end": { - "line": 293, - "column": 32, - "offset": 10253 - } - } - }, - { - "type": "html", - "value": "

Lists

", - "position": { - "start": { - "line": 296, - "column": 1, - "offset": 10256 - }, - "end": { - "line": 296, - "column": 25, - "offset": 10280 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Markdown supports ordered (numbered) and unordered (bulleted) lists.", - "position": { - "start": { - "line": 298, - "column": 1, - "offset": 10282 - }, - "end": { - "line": 298, - "column": 69, - "offset": 10350 - } - } - } - ], - "position": { - "start": { - "line": 298, - "column": 1, - "offset": 10282 - }, - "end": { - "line": 298, - "column": 69, - "offset": 10350 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Unordered lists use asterisks, pluses, and hyphens -- interchangably\n-- as list markers:", - "position": { - "start": { - "line": 300, - "column": 1, - "offset": 10352 - }, - "end": { - "line": 301, - "column": 20, - "offset": 10440 - } - } - } - ], - "position": { - "start": { - "line": 300, - "column": 1, - "offset": 10352 - }, - "end": { - "line": 301, - "column": 20, - "offset": 10440 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "* Red\n* Green\n* Blue", - "position": { - "start": { - "line": 303, - "column": 1, - "offset": 10442 - }, - "end": { - "line": 305, - "column": 13, - "offset": 10480 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "is equivalent to:", - "position": { - "start": { - "line": 307, - "column": 1, - "offset": 10482 - }, - "end": { - "line": 307, - "column": 18, - "offset": 10499 - } - } - } - ], - "position": { - "start": { - "line": 307, - "column": 1, - "offset": 10482 - }, - "end": { - "line": 307, - "column": 18, - "offset": 10499 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "+ Red\n+ Green\n+ Blue", - "position": { - "start": { - "line": 309, - "column": 1, - "offset": 10501 - }, - "end": { - "line": 311, - "column": 13, - "offset": 10539 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "and:", - "position": { - "start": { - "line": 313, - "column": 1, - "offset": 10541 - }, - "end": { - "line": 313, - "column": 5, - "offset": 10545 - } - } - } - ], - "position": { - "start": { - "line": 313, - "column": 1, - "offset": 10541 - }, - "end": { - "line": 313, - "column": 5, - "offset": 10545 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "- Red\n- Green\n- Blue", - "position": { - "start": { - "line": 315, - "column": 1, - "offset": 10547 - }, - "end": { - "line": 317, - "column": 13, - "offset": 10585 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Ordered lists use numbers followed by periods:", - "position": { - "start": { - "line": 319, - "column": 1, - "offset": 10587 - }, - "end": { - "line": 319, - "column": 47, - "offset": 10633 - } - } - } - ], - "position": { - "start": { - "line": 319, - "column": 1, - "offset": 10587 - }, - "end": { - "line": 319, - "column": 47, - "offset": 10633 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "1. Bird\n2. McHale\n3. Parish", - "position": { - "start": { - "line": 321, - "column": 1, - "offset": 10635 - }, - "end": { - "line": 323, - "column": 15, - "offset": 10677 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "It's important to note that the actual numbers you use to mark the\nlist have no effect on the HTML output Markdown produces. The HTML\nMarkdown produces from the above list is:", - "position": { - "start": { - "line": 325, - "column": 1, - "offset": 10679 - }, - "end": { - "line": 327, - "column": 42, - "offset": 10854 - } - } - } - ], - "position": { - "start": { - "line": 325, - "column": 1, - "offset": 10679 - }, - "end": { - "line": 327, - "column": 42, - "offset": 10854 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "
    \n
  1. Bird
  2. \n
  3. McHale
  4. \n
  5. Parish
  6. \n
", - "position": { - "start": { - "line": 329, - "column": 1, - "offset": 10856 - }, - "end": { - "line": 333, - "column": 10, - "offset": 10932 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "If you instead wrote the list in Markdown like this:", - "position": { - "start": { - "line": 335, - "column": 1, - "offset": 10934 - }, - "end": { - "line": 335, - "column": 53, - "offset": 10986 - } - } - } - ], - "position": { - "start": { - "line": 335, - "column": 1, - "offset": 10934 - }, - "end": { - "line": 335, - "column": 53, - "offset": 10986 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "1. Bird\n1. McHale\n1. Parish", - "position": { - "start": { - "line": 337, - "column": 1, - "offset": 10988 - }, - "end": { - "line": 339, - "column": 15, - "offset": 11030 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "or even:", - "position": { - "start": { - "line": 341, - "column": 1, - "offset": 11032 - }, - "end": { - "line": 341, - "column": 9, - "offset": 11040 - } - } - } - ], - "position": { - "start": { - "line": 341, - "column": 1, - "offset": 11032 - }, - "end": { - "line": 341, - "column": 9, - "offset": 11040 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "3. Bird\n1. McHale\n8. Parish", - "position": { - "start": { - "line": 343, - "column": 1, - "offset": 11042 - }, - "end": { - "line": 345, - "column": 14, - "offset": 11081 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "you'd get the exact same HTML output. The point is, if you want to,\nyou can use ordinal numbers in your ordered Markdown lists, so that\nthe numbers in your source match the numbers in your published HTML.\nBut if you want to be lazy, you don't have to.", - "position": { - "start": { - "line": 347, - "column": 1, - "offset": 11083 - }, - "end": { - "line": 350, - "column": 47, - "offset": 11334 - } - } - } - ], - "position": { - "start": { - "line": 347, - "column": 1, - "offset": 11083 - }, - "end": { - "line": 350, - "column": 47, - "offset": 11334 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "If you do use lazy list numbering, however, you should still start the\nlist with the number 1. At some point in the future, Markdown may support\nstarting ordered lists at an arbitrary number.", - "position": { - "start": { - "line": 352, - "column": 1, - "offset": 11336 - }, - "end": { - "line": 354, - "column": 47, - "offset": 11527 - } - } - } - ], - "position": { - "start": { - "line": 352, - "column": 1, - "offset": 11336 - }, - "end": { - "line": 354, - "column": 47, - "offset": 11527 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "List markers typically start at the left margin, but may be indented by\nup to three spaces. List markers must be followed by one or more spaces\nor a tab.", - "position": { - "start": { - "line": 356, - "column": 1, - "offset": 11529 - }, - "end": { - "line": 358, - "column": 10, - "offset": 11682 - } - } - } - ], - "position": { - "start": { - "line": 356, - "column": 1, - "offset": 11529 - }, - "end": { - "line": 358, - "column": 10, - "offset": 11682 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "To make lists look nice, you can wrap items with hanging indents:", - "position": { - "start": { - "line": 360, - "column": 1, - "offset": 11684 - }, - "end": { - "line": 360, - "column": 66, - "offset": 11749 - } - } - } - ], - "position": { - "start": { - "line": 360, - "column": 1, - "offset": 11684 - }, - "end": { - "line": 360, - "column": 66, - "offset": 11749 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "* Lorem ipsum dolor sit amet, consectetuer adipiscing elit.\n Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi,\n viverra nec, fringilla in, laoreet vitae, risus.\n* Donec sit amet nisl. Aliquam semper ipsum sit amet velit.\n Suspendisse id sem consectetuer libero luctus adipiscing.", - "position": { - "start": { - "line": 362, - "column": 1, - "offset": 11751 - }, - "end": { - "line": 366, - "column": 66, - "offset": 12072 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "But if you want to be lazy, you don't have to:", - "position": { - "start": { - "line": 368, - "column": 1, - "offset": 12074 - }, - "end": { - "line": 368, - "column": 47, - "offset": 12120 - } - } - } - ], - "position": { - "start": { - "line": 368, - "column": 1, - "offset": 12074 - }, - "end": { - "line": 368, - "column": 47, - "offset": 12120 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "* Lorem ipsum dolor sit amet, consectetuer adipiscing elit.\nAliquam hendrerit mi posuere lectus. Vestibulum enim wisi,\nviverra nec, fringilla in, laoreet vitae, risus.\n* Donec sit amet nisl. Aliquam semper ipsum sit amet velit.\nSuspendisse id sem consectetuer libero luctus adipiscing.", - "position": { - "start": { - "line": 370, - "column": 1, - "offset": 12122 - }, - "end": { - "line": 374, - "column": 62, - "offset": 12431 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "If list items are separated by blank lines, Markdown will wrap the\nitems in ", - "position": { - "start": { - "line": 376, - "column": 1, - "offset": 12433 - }, - "end": { - "line": 377, - "column": 10, - "offset": 12509 - } - } - }, - { - "type": "inlineCode", - "value": "

", - "position": { - "start": { - "line": 377, - "column": 10, - "offset": 12509 - }, - "end": { - "line": 377, - "column": 15, - "offset": 12514 - } - } - }, - { - "type": "text", - "value": " tags in the HTML output. For example, this input:", - "position": { - "start": { - "line": 377, - "column": 15, - "offset": 12514 - }, - "end": { - "line": 377, - "column": 65, - "offset": 12564 - } - } - } - ], - "position": { - "start": { - "line": 376, - "column": 1, - "offset": 12433 - }, - "end": { - "line": 377, - "column": 65, - "offset": 12564 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "* Bird\n* Magic", - "position": { - "start": { - "line": 379, - "column": 1, - "offset": 12566 - }, - "end": { - "line": 380, - "column": 14, - "offset": 12592 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "will turn into:", - "position": { - "start": { - "line": 382, - "column": 1, - "offset": 12594 - }, - "end": { - "line": 382, - "column": 16, - "offset": 12609 - } - } - } - ], - "position": { - "start": { - "line": 382, - "column": 1, - "offset": 12594 - }, - "end": { - "line": 382, - "column": 16, - "offset": 12609 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "

    \n
  • Bird
  • \n
  • Magic
  • \n
", - "position": { - "start": { - "line": 384, - "column": 1, - "offset": 12611 - }, - "end": { - "line": 387, - "column": 10, - "offset": 12666 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "But this:", - "position": { - "start": { - "line": 389, - "column": 1, - "offset": 12668 - }, - "end": { - "line": 389, - "column": 10, - "offset": 12677 - } - } - } - ], - "position": { - "start": { - "line": 389, - "column": 1, - "offset": 12668 - }, - "end": { - "line": 389, - "column": 10, - "offset": 12677 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "* Bird\n\n* Magic", - "position": { - "start": { - "line": 391, - "column": 1, - "offset": 12679 - }, - "end": { - "line": 393, - "column": 14, - "offset": 12706 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "will turn into:", - "position": { - "start": { - "line": 395, - "column": 1, - "offset": 12708 - }, - "end": { - "line": 395, - "column": 16, - "offset": 12723 - } - } - } - ], - "position": { - "start": { - "line": 395, - "column": 1, - "offset": 12708 - }, - "end": { - "line": 395, - "column": 16, - "offset": 12723 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "
    \n
  • Bird

  • \n
  • Magic

  • \n
", - "position": { - "start": { - "line": 397, - "column": 1, - "offset": 12725 - }, - "end": { - "line": 400, - "column": 10, - "offset": 12794 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "List items may consist of multiple paragraphs. Each subsequent\nparagraph in a list item must be intended by either 4 spaces\nor one tab:", - "position": { - "start": { - "line": 402, - "column": 1, - "offset": 12796 - }, - "end": { - "line": 404, - "column": 12, - "offset": 12931 - } - } - } - ], - "position": { - "start": { - "line": 402, - "column": 1, - "offset": 12796 - }, - "end": { - "line": 404, - "column": 12, - "offset": 12931 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "1. This is a list item with two paragraphs. Lorem ipsum dolor\n sit amet, consectetuer adipiscing elit. Aliquam hendrerit\n mi posuere lectus.\n\n Vestibulum enim wisi, viverra nec, fringilla in, laoreet\n vitae, risus. Donec sit amet nisl. Aliquam semper ipsum\n sit amet velit.\n\n2. Suspendisse id sem consectetuer libero luctus adipiscing.", - "position": { - "start": { - "line": 406, - "column": 1, - "offset": 12933 - }, - "end": { - "line": 414, - "column": 66, - "offset": 13313 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "It looks nice if you indent every line of the subsequent\nparagraphs, but here again, Markdown will allow you to be\nlazy:", - "position": { - "start": { - "line": 416, - "column": 1, - "offset": 13315 - }, - "end": { - "line": 418, - "column": 6, - "offset": 13435 - } - } - } - ], - "position": { - "start": { - "line": 416, - "column": 1, - "offset": 13315 - }, - "end": { - "line": 418, - "column": 6, - "offset": 13435 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "* This is a list item with two paragraphs.\n\n This is the second paragraph in the list item. You're\nonly required to indent the first line. Lorem ipsum dolor\nsit amet, consectetuer adipiscing elit.\n\n* Another item in the same list.", - "position": { - "start": { - "line": 420, - "column": 1, - "offset": 13437 - }, - "end": { - "line": 426, - "column": 39, - "offset": 13694 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "To put a blockquote within a list item, the blockquote's ", - "position": { - "start": { - "line": 428, - "column": 1, - "offset": 13696 - }, - "end": { - "line": 428, - "column": 58, - "offset": 13753 - } - } - }, - { - "type": "inlineCode", - "value": ">", - "position": { - "start": { - "line": 428, - "column": 58, - "offset": 13753 - }, - "end": { - "line": 428, - "column": 61, - "offset": 13756 - } - } - }, - { - "type": "text", - "value": "\ndelimiters need to be indented:", - "position": { - "start": { - "line": 428, - "column": 61, - "offset": 13756 - }, - "end": { - "line": 429, - "column": 32, - "offset": 13788 - } - } - } - ], - "position": { - "start": { - "line": 428, - "column": 1, - "offset": 13696 - }, - "end": { - "line": 429, - "column": 32, - "offset": 13788 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "* A list item with a blockquote:\n\n > This is a blockquote\n > inside a list item.", - "position": { - "start": { - "line": 431, - "column": 1, - "offset": 13790 - }, - "end": { - "line": 434, - "column": 30, - "offset": 13890 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "To put a code block within a list item, the code block needs\nto be indented ", - "position": { - "start": { - "line": 436, - "column": 1, - "offset": 13892 - }, - "end": { - "line": 437, - "column": 16, - "offset": 13968 - } - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "twice", - "position": { - "start": { - "line": 437, - "column": 17, - "offset": 13969 - }, - "end": { - "line": 437, - "column": 22, - "offset": 13974 - } - } - } - ], - "position": { - "start": { - "line": 437, - "column": 16, - "offset": 13968 - }, - "end": { - "line": 437, - "column": 23, - "offset": 13975 - } - } - }, - { - "type": "text", - "value": " -- 8 spaces or two tabs:", - "position": { - "start": { - "line": 437, - "column": 23, - "offset": 13975 - }, - "end": { - "line": 437, - "column": 48, - "offset": 14000 - } - } - } - ], - "position": { - "start": { - "line": 436, - "column": 1, - "offset": 13892 - }, - "end": { - "line": 437, - "column": 48, - "offset": 14000 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "* A list item with a code block:\n\n ", - "position": { - "start": { - "line": 439, - "column": 1, - "offset": 14002 - }, - "end": { - "line": 441, - "column": 29, - "offset": 14070 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "It's worth noting that it's possible to trigger an ordered list by\naccident, by writing something like this:", - "position": { - "start": { - "line": 444, - "column": 1, - "offset": 14073 - }, - "end": { - "line": 445, - "column": 42, - "offset": 14181 - } - } - } - ], - "position": { - "start": { - "line": 444, - "column": 1, - "offset": 14073 - }, - "end": { - "line": 445, - "column": 42, - "offset": 14181 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "1986. What a great season.", - "position": { - "start": { - "line": 447, - "column": 1, - "offset": 14183 - }, - "end": { - "line": 447, - "column": 31, - "offset": 14213 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "In other words, a ", - "position": { - "start": { - "line": 449, - "column": 1, - "offset": 14215 - }, - "end": { - "line": 449, - "column": 19, - "offset": 14233 - } - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "number-period-space", - "position": { - "start": { - "line": 449, - "column": 20, - "offset": 14234 - }, - "end": { - "line": 449, - "column": 39, - "offset": 14253 - } - } - } - ], - "position": { - "start": { - "line": 449, - "column": 19, - "offset": 14233 - }, - "end": { - "line": 449, - "column": 40, - "offset": 14254 - } - } - }, - { - "type": "text", - "value": " sequence at the beginning of a\nline. To avoid this, you can backslash-escape the period:", - "position": { - "start": { - "line": 449, - "column": 40, - "offset": 14254 - }, - "end": { - "line": 450, - "column": 58, - "offset": 14343 - } - } - } - ], - "position": { - "start": { - "line": 449, - "column": 1, - "offset": 14215 - }, - "end": { - "line": 450, - "column": 58, - "offset": 14343 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "1986\\. What a great season.", - "position": { - "start": { - "line": 452, - "column": 1, - "offset": 14345 - }, - "end": { - "line": 452, - "column": 32, - "offset": 14376 - } - } - }, - { - "type": "html", - "value": "

Code Blocks

", - "position": { - "start": { - "line": 456, - "column": 1, - "offset": 14380 - }, - "end": { - "line": 456, - "column": 34, - "offset": 14413 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Pre-formatted code blocks are used for writing about programming or\nmarkup source code. Rather than forming normal paragraphs, the lines\nof a code block are interpreted literally. Markdown wraps a code block\nin both ", - "position": { - "start": { - "line": 458, - "column": 1, - "offset": 14415 - }, - "end": { - "line": 461, - "column": 9, - "offset": 14631 - } - } - }, - { - "type": "inlineCode", - "value": "
",
-          "position": {
-            "start": {
-              "line": 461,
-              "column": 9,
-              "offset": 14631
-            },
-            "end": {
-              "line": 461,
-              "column": 16,
-              "offset": 14638
-            }
-          }
-        },
-        {
-          "type": "text",
-          "value": " and ",
-          "position": {
-            "start": {
-              "line": 461,
-              "column": 16,
-              "offset": 14638
-            },
-            "end": {
-              "line": 461,
-              "column": 21,
-              "offset": 14643
-            }
-          }
-        },
-        {
-          "type": "inlineCode",
-          "value": "",
-          "position": {
-            "start": {
-              "line": 461,
-              "column": 21,
-              "offset": 14643
-            },
-            "end": {
-              "line": 461,
-              "column": 29,
-              "offset": 14651
-            }
-          }
-        },
-        {
-          "type": "text",
-          "value": " tags.",
-          "position": {
-            "start": {
-              "line": 461,
-              "column": 29,
-              "offset": 14651
-            },
-            "end": {
-              "line": 461,
-              "column": 35,
-              "offset": 14657
-            }
-          }
-        }
-      ],
-      "position": {
-        "start": {
-          "line": 458,
-          "column": 1,
-          "offset": 14415
-        },
-        "end": {
-          "line": 461,
-          "column": 35,
-          "offset": 14657
-        }
-      }
-    },
-    {
-      "type": "paragraph",
-      "children": [
-        {
-          "type": "text",
-          "value": "To produce a code block in Markdown, simply indent every line of the\nblock by at least 4 spaces or 1 tab. For example, given this input:",
-          "position": {
-            "start": {
-              "line": 463,
-              "column": 1,
-              "offset": 14659
-            },
-            "end": {
-              "line": 464,
-              "column": 68,
-              "offset": 14795
-            }
-          }
-        }
-      ],
-      "position": {
-        "start": {
-          "line": 463,
-          "column": 1,
-          "offset": 14659
-        },
-        "end": {
-          "line": 464,
-          "column": 68,
-          "offset": 14795
-        }
-      }
-    },
-    {
-      "type": "code",
-      "lang": null,
-      "meta": null,
-      "value": "This is a normal paragraph:\n\n    This is a code block.",
-      "position": {
-        "start": {
-          "line": 466,
-          "column": 1,
-          "offset": 14797
-        },
-        "end": {
-          "line": 468,
-          "column": 30,
-          "offset": 14859
-        }
-      }
-    },
-    {
-      "type": "paragraph",
-      "children": [
-        {
-          "type": "text",
-          "value": "Markdown will generate:",
-          "position": {
-            "start": {
-              "line": 470,
-              "column": 1,
-              "offset": 14861
-            },
-            "end": {
-              "line": 470,
-              "column": 24,
-              "offset": 14884
-            }
-          }
-        }
-      ],
-      "position": {
-        "start": {
-          "line": 470,
-          "column": 1,
-          "offset": 14861
-        },
-        "end": {
-          "line": 470,
-          "column": 24,
-          "offset": 14884
-        }
-      }
-    },
-    {
-      "type": "code",
-      "lang": null,
-      "meta": null,
-      "value": "

This is a normal paragraph:

\n\n
This is a code block.\n
", - "position": { - "start": { - "line": 472, - "column": 1, - "offset": 14886 - }, - "end": { - "line": 475, - "column": 18, - "offset": 14980 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "One level of indentation -- 4 spaces or 1 tab -- is removed from each\nline of the code block. For example, this:", - "position": { - "start": { - "line": 477, - "column": 1, - "offset": 14982 - }, - "end": { - "line": 478, - "column": 43, - "offset": 15094 - } - } - } - ], - "position": { - "start": { - "line": 477, - "column": 1, - "offset": 14982 - }, - "end": { - "line": 478, - "column": 43, - "offset": 15094 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "Here is an example of AppleScript:\n\n tell application \"Foo\"\n beep\n end tell", - "position": { - "start": { - "line": 480, - "column": 1, - "offset": 15096 - }, - "end": { - "line": 484, - "column": 17, - "offset": 15200 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "will turn into:", - "position": { - "start": { - "line": 486, - "column": 1, - "offset": 15202 - }, - "end": { - "line": 486, - "column": 16, - "offset": 15217 - } - } - } - ], - "position": { - "start": { - "line": 486, - "column": 1, - "offset": 15202 - }, - "end": { - "line": 486, - "column": 16, - "offset": 15217 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "

Here is an example of AppleScript:

\n\n
tell application \"Foo\"\n    beep\nend tell\n
", - "position": { - "start": { - "line": 488, - "column": 1, - "offset": 15219 - }, - "end": { - "line": 493, - "column": 18, - "offset": 15347 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "A code block continues until it reaches a line that is not indented\n(or the end of the article).", - "position": { - "start": { - "line": 495, - "column": 1, - "offset": 15349 - }, - "end": { - "line": 496, - "column": 29, - "offset": 15445 - } - } - } - ], - "position": { - "start": { - "line": 495, - "column": 1, - "offset": 15349 - }, - "end": { - "line": 496, - "column": 29, - "offset": 15445 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Within a code block, ampersands (", - "position": { - "start": { - "line": 498, - "column": 1, - "offset": 15447 - }, - "end": { - "line": 498, - "column": 34, - "offset": 15480 - } - } - }, - { - "type": "inlineCode", - "value": "&", - "position": { - "start": { - "line": 498, - "column": 34, - "offset": 15480 - }, - "end": { - "line": 498, - "column": 37, - "offset": 15483 - } - } - }, - { - "type": "text", - "value": ") and angle brackets (", - "position": { - "start": { - "line": 498, - "column": 37, - "offset": 15483 - }, - "end": { - "line": 498, - "column": 59, - "offset": 15505 - } - } - }, - { - "type": "inlineCode", - "value": "<", - "position": { - "start": { - "line": 498, - "column": 59, - "offset": 15505 - }, - "end": { - "line": 498, - "column": 62, - "offset": 15508 - } - } - }, - { - "type": "text", - "value": " and ", - "position": { - "start": { - "line": 498, - "column": 62, - "offset": 15508 - }, - "end": { - "line": 498, - "column": 67, - "offset": 15513 - } - } - }, - { - "type": "inlineCode", - "value": ">", - "position": { - "start": { - "line": 498, - "column": 67, - "offset": 15513 - }, - "end": { - "line": 498, - "column": 70, - "offset": 15516 - } - } - }, - { - "type": "text", - "value": ")\nare automatically converted into HTML entities. This makes it very\neasy to include example HTML source code using Markdown -- just paste\nit and indent it, and Markdown will handle the hassle of encoding the\nampersands and angle brackets. For example, this:", - "position": { - "start": { - "line": 498, - "column": 70, - "offset": 15516 - }, - "end": { - "line": 502, - "column": 50, - "offset": 15774 - } - } - } - ], - "position": { - "start": { - "line": 498, - "column": 1, - "offset": 15447 - }, - "end": { - "line": 502, - "column": 50, - "offset": 15774 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "
\n © 2004 Foo Corporation\n
", - "position": { - "start": { - "line": 504, - "column": 1, - "offset": 15776 - }, - "end": { - "line": 506, - "column": 15, - "offset": 15859 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "will turn into:", - "position": { - "start": { - "line": 508, - "column": 1, - "offset": 15861 - }, - "end": { - "line": 508, - "column": 16, - "offset": 15876 - } - } - } - ], - "position": { - "start": { - "line": 508, - "column": 1, - "offset": 15861 - }, - "end": { - "line": 508, - "column": 16, - "offset": 15876 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "
<div class=\"footer\">\n    &copy; 2004 Foo Corporation\n</div>\n
", - "position": { - "start": { - "line": 510, - "column": 1, - "offset": 15878 - }, - "end": { - "line": 513, - "column": 18, - "offset": 15994 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Regular Markdown syntax is not processed within code blocks. E.g.,\nasterisks are just literal asterisks within a code block. This means\nit's also easy to use Markdown to write about Markdown's own syntax.", - "position": { - "start": { - "line": 515, - "column": 1, - "offset": 15996 - }, - "end": { - "line": 517, - "column": 69, - "offset": 16200 - } - } - } - ], - "position": { - "start": { - "line": 515, - "column": 1, - "offset": 15996 - }, - "end": { - "line": 517, - "column": 69, - "offset": 16200 - } - } - }, - { - "type": "html", - "value": "

Horizontal Rules

", - "position": { - "start": { - "line": 521, - "column": 1, - "offset": 16204 - }, - "end": { - "line": 521, - "column": 34, - "offset": 16237 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "You can produce a horizontal rule tag (", - "position": { - "start": { - "line": 523, - "column": 1, - "offset": 16239 - }, - "end": { - "line": 523, - "column": 40, - "offset": 16278 - } - } - }, - { - "type": "inlineCode", - "value": "
", - "position": { - "start": { - "line": 523, - "column": 40, - "offset": 16278 - }, - "end": { - "line": 523, - "column": 46, - "offset": 16284 - } - } - }, - { - "type": "text", - "value": ") by placing three or\nmore hyphens, asterisks, or underscores on a line by themselves. If you\nwish, you may use spaces between the hyphens or asterisks. Each of the\nfollowing lines will produce a horizontal rule:", - "position": { - "start": { - "line": 523, - "column": 46, - "offset": 16284 - }, - "end": { - "line": 526, - "column": 48, - "offset": 16496 - } - } - } - ], - "position": { - "start": { - "line": 523, - "column": 1, - "offset": 16239 - }, - "end": { - "line": 526, - "column": 48, - "offset": 16496 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "* * *\n\n***\n\n*****\n\n- - -\n\n---------------------------------------\n\n_ _ _", - "position": { - "start": { - "line": 528, - "column": 1, - "offset": 16498 - }, - "end": { - "line": 538, - "column": 7, - "offset": 16592 - } - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 541, - "column": 1, - "offset": 16595 - }, - "end": { - "line": 541, - "column": 6, - "offset": 16600 - } - } - }, - { - "type": "html", - "value": "

Span Elements

", - "position": { - "start": { - "line": 543, - "column": 1, - "offset": 16602 - }, - "end": { - "line": 543, - "column": 33, - "offset": 16634 - } - } - }, - { - "type": "html", - "value": "

Links

", - "position": { - "start": { - "line": 545, - "column": 1, - "offset": 16636 - }, - "end": { - "line": 545, - "column": 25, - "offset": 16660 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Markdown supports two style of links: ", - "position": { - "start": { - "line": 547, - "column": 1, - "offset": 16662 - }, - "end": { - "line": 547, - "column": 39, - "offset": 16700 - } - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "inline", - "position": { - "start": { - "line": 547, - "column": 40, - "offset": 16701 - }, - "end": { - "line": 547, - "column": 46, - "offset": 16707 - } - } - } - ], - "position": { - "start": { - "line": 547, - "column": 39, - "offset": 16700 - }, - "end": { - "line": 547, - "column": 47, - "offset": 16708 - } - } - }, - { - "type": "text", - "value": " and ", - "position": { - "start": { - "line": 547, - "column": 47, - "offset": 16708 - }, - "end": { - "line": 547, - "column": 52, - "offset": 16713 - } - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "reference", - "position": { - "start": { - "line": 547, - "column": 53, - "offset": 16714 - }, - "end": { - "line": 547, - "column": 62, - "offset": 16723 - } - } - } - ], - "position": { - "start": { - "line": 547, - "column": 52, - "offset": 16713 - }, - "end": { - "line": 547, - "column": 63, - "offset": 16724 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 547, - "column": 63, - "offset": 16724 - }, - "end": { - "line": 547, - "column": 64, - "offset": 16725 - } - } - } - ], - "position": { - "start": { - "line": 547, - "column": 1, - "offset": 16662 - }, - "end": { - "line": 547, - "column": 64, - "offset": 16725 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "In both styles, the link text is delimited by [square brackets].", - "position": { - "start": { - "line": 549, - "column": 1, - "offset": 16727 - }, - "end": { - "line": 549, - "column": 65, - "offset": 16791 - } - } - } - ], - "position": { - "start": { - "line": 549, - "column": 1, - "offset": 16727 - }, - "end": { - "line": 549, - "column": 65, - "offset": 16791 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "To create an inline link, use a set of regular parentheses immediately\nafter the link text's closing square bracket. Inside the parentheses,\nput the URL where you want the link to point, along with an ", - "position": { - "start": { - "line": 551, - "column": 1, - "offset": 16793 - }, - "end": { - "line": 553, - "column": 61, - "offset": 16994 - } - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "optional", - "position": { - "start": { - "line": 553, - "column": 62, - "offset": 16995 - }, - "end": { - "line": 553, - "column": 70, - "offset": 17003 - } - } - } - ], - "position": { - "start": { - "line": 553, - "column": 61, - "offset": 16994 - }, - "end": { - "line": 553, - "column": 71, - "offset": 17004 - } - } - }, - { - "type": "text", - "value": "\ntitle for the link, surrounded in quotes. For example:", - "position": { - "start": { - "line": 553, - "column": 71, - "offset": 17004 - }, - "end": { - "line": 554, - "column": 55, - "offset": 17059 - } - } - } - ], - "position": { - "start": { - "line": 551, - "column": 1, - "offset": 16793 - }, - "end": { - "line": 554, - "column": 55, - "offset": 17059 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "This is [an example](http://example.com/ \"Title\") inline link.\n\n[This link](http://example.net/) has no title attribute.", - "position": { - "start": { - "line": 556, - "column": 1, - "offset": 17061 - }, - "end": { - "line": 558, - "column": 61, - "offset": 17189 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Will produce:", - "position": { - "start": { - "line": 560, - "column": 1, - "offset": 17191 - }, - "end": { - "line": 560, - "column": 14, - "offset": 17204 - } - } - } - ], - "position": { - "start": { - "line": 560, - "column": 1, - "offset": 17191 - }, - "end": { - "line": 560, - "column": 14, - "offset": 17204 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "

This is \nan example inline link.

\n\n

This link has no\ntitle attribute.

", - "position": { - "start": { - "line": 562, - "column": 1, - "offset": 17206 - }, - "end": { - "line": 566, - "column": 25, - "offset": 17385 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "If you're referring to a local resource on the same server, you can\nuse relative paths:", - "position": { - "start": { - "line": 568, - "column": 1, - "offset": 17387 - }, - "end": { - "line": 569, - "column": 20, - "offset": 17474 - } - } - } - ], - "position": { - "start": { - "line": 568, - "column": 1, - "offset": 17387 - }, - "end": { - "line": 569, - "column": 20, - "offset": 17474 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "See my [About](/about/) page for details.", - "position": { - "start": { - "line": 571, - "column": 1, - "offset": 17476 - }, - "end": { - "line": 571, - "column": 46, - "offset": 17521 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Reference-style links use a second set of square brackets, inside\nwhich you place a label of your choosing to identify the link:", - "position": { - "start": { - "line": 573, - "column": 1, - "offset": 17523 - }, - "end": { - "line": 574, - "column": 63, - "offset": 17651 - } - } - } - ], - "position": { - "start": { - "line": 573, - "column": 1, - "offset": 17523 - }, - "end": { - "line": 574, - "column": 63, - "offset": 17651 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "This is [an example][id] reference-style link.", - "position": { - "start": { - "line": 576, - "column": 1, - "offset": 17653 - }, - "end": { - "line": 576, - "column": 51, - "offset": 17703 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "You can optionally use a space to separate the sets of brackets:", - "position": { - "start": { - "line": 578, - "column": 1, - "offset": 17705 - }, - "end": { - "line": 578, - "column": 65, - "offset": 17769 - } - } - } - ], - "position": { - "start": { - "line": 578, - "column": 1, - "offset": 17705 - }, - "end": { - "line": 578, - "column": 65, - "offset": 17769 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "This is [an example] [id] reference-style link.", - "position": { - "start": { - "line": 580, - "column": 1, - "offset": 17771 - }, - "end": { - "line": 580, - "column": 52, - "offset": 17822 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Then, anywhere in the document, you define your link label like this,\non a line by itself:", - "position": { - "start": { - "line": 582, - "column": 1, - "offset": 17824 - }, - "end": { - "line": 583, - "column": 21, - "offset": 17914 - } - } - } - ], - "position": { - "start": { - "line": 582, - "column": 1, - "offset": 17824 - }, - "end": { - "line": 583, - "column": 21, - "offset": 17914 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "[id]: http://example.com/ \"Optional Title Here\"", - "position": { - "start": { - "line": 585, - "column": 1, - "offset": 17916 - }, - "end": { - "line": 585, - "column": 53, - "offset": 17968 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "That is:", - "position": { - "start": { - "line": 587, - "column": 1, - "offset": 17970 - }, - "end": { - "line": 587, - "column": 9, - "offset": 17978 - } - } - } - ], - "position": { - "start": { - "line": 587, - "column": 1, - "offset": 17970 - }, - "end": { - "line": 587, - "column": 9, - "offset": 17978 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Square brackets containing the link identifier (optionally\nindented from the left margin using up to three spaces);", - "position": { - "start": { - "line": 589, - "column": 5, - "offset": 17984 - }, - "end": { - "line": 590, - "column": 61, - "offset": 18103 - } - } - } - ], - "position": { - "start": { - "line": 589, - "column": 5, - "offset": 17984 - }, - "end": { - "line": 590, - "column": 61, - "offset": 18103 - } - } - } - ], - "position": { - "start": { - "line": 589, - "column": 1, - "offset": 17980 - }, - "end": { - "line": 590, - "column": 61, - "offset": 18103 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "followed by a colon;", - "position": { - "start": { - "line": 591, - "column": 5, - "offset": 18108 - }, - "end": { - "line": 591, - "column": 25, - "offset": 18128 - } - } - } - ], - "position": { - "start": { - "line": 591, - "column": 5, - "offset": 18108 - }, - "end": { - "line": 591, - "column": 25, - "offset": 18128 - } - } - } - ], - "position": { - "start": { - "line": 591, - "column": 1, - "offset": 18104 - }, - "end": { - "line": 591, - "column": 25, - "offset": 18128 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "followed by one or more spaces (or tabs);", - "position": { - "start": { - "line": 592, - "column": 5, - "offset": 18133 - }, - "end": { - "line": 592, - "column": 46, - "offset": 18174 - } - } - } - ], - "position": { - "start": { - "line": 592, - "column": 5, - "offset": 18133 - }, - "end": { - "line": 592, - "column": 46, - "offset": 18174 - } - } - } - ], - "position": { - "start": { - "line": 592, - "column": 1, - "offset": 18129 - }, - "end": { - "line": 592, - "column": 46, - "offset": 18174 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "followed by the URL for the link;", - "position": { - "start": { - "line": 593, - "column": 5, - "offset": 18179 - }, - "end": { - "line": 593, - "column": 38, - "offset": 18212 - } - } - } - ], - "position": { - "start": { - "line": 593, - "column": 5, - "offset": 18179 - }, - "end": { - "line": 593, - "column": 38, - "offset": 18212 - } - } - } - ], - "position": { - "start": { - "line": 593, - "column": 1, - "offset": 18175 - }, - "end": { - "line": 593, - "column": 38, - "offset": 18212 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "optionally followed by a title attribute for the link, enclosed\nin double or single quotes.", - "position": { - "start": { - "line": 594, - "column": 5, - "offset": 18217 - }, - "end": { - "line": 595, - "column": 32, - "offset": 18312 - } - } - } - ], - "position": { - "start": { - "line": 594, - "column": 5, - "offset": 18217 - }, - "end": { - "line": 595, - "column": 32, - "offset": 18312 - } - } - } - ], - "position": { - "start": { - "line": 594, - "column": 1, - "offset": 18213 - }, - "end": { - "line": 595, - "column": 32, - "offset": 18312 - } - } - } - ], - "position": { - "start": { - "line": 589, - "column": 1, - "offset": 17980 - }, - "end": { - "line": 595, - "column": 32, - "offset": 18312 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "The link URL may, optionally, be surrounded by angle brackets:", - "position": { - "start": { - "line": 597, - "column": 1, - "offset": 18314 - }, - "end": { - "line": 597, - "column": 63, - "offset": 18376 - } - } - } - ], - "position": { - "start": { - "line": 597, - "column": 1, - "offset": 18314 - }, - "end": { - "line": 597, - "column": 63, - "offset": 18376 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "[id]: \"Optional Title Here\"", - "position": { - "start": { - "line": 599, - "column": 1, - "offset": 18378 - }, - "end": { - "line": 599, - "column": 55, - "offset": 18432 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "You can put the title attribute on the next line and use extra spaces\nor tabs for padding, which tends to look better with longer URLs:", - "position": { - "start": { - "line": 601, - "column": 1, - "offset": 18434 - }, - "end": { - "line": 602, - "column": 66, - "offset": 18569 - } - } - } - ], - "position": { - "start": { - "line": 601, - "column": 1, - "offset": 18434 - }, - "end": { - "line": 602, - "column": 66, - "offset": 18569 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "[id]: http://example.com/longish/path/to/resource/here\n \"Optional Title Here\"", - "position": { - "start": { - "line": 604, - "column": 1, - "offset": 18571 - }, - "end": { - "line": 605, - "column": 30, - "offset": 18659 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Link definitions are only used for creating links during Markdown\nprocessing, and are stripped from your document in the HTML output.", - "position": { - "start": { - "line": 607, - "column": 1, - "offset": 18661 - }, - "end": { - "line": 608, - "column": 68, - "offset": 18794 - } - } - } - ], - "position": { - "start": { - "line": 607, - "column": 1, - "offset": 18661 - }, - "end": { - "line": 608, - "column": 68, - "offset": 18794 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Link definition names may constist of letters, numbers, spaces, and punctuation -- but they are ", - "position": { - "start": { - "line": 610, - "column": 1, - "offset": 18796 - }, - "end": { - "line": 610, - "column": 97, - "offset": 18892 - } - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "not", - "position": { - "start": { - "line": 610, - "column": 98, - "offset": 18893 - }, - "end": { - "line": 610, - "column": 101, - "offset": 18896 - } - } - } - ], - "position": { - "start": { - "line": 610, - "column": 97, - "offset": 18892 - }, - "end": { - "line": 610, - "column": 102, - "offset": 18897 - } - } - }, - { - "type": "text", - "value": " case sensitive. E.g. these two links:", - "position": { - "start": { - "line": 610, - "column": 102, - "offset": 18897 - }, - "end": { - "line": 610, - "column": 140, - "offset": 18935 - } - } - } - ], - "position": { - "start": { - "line": 610, - "column": 1, - "offset": 18796 - }, - "end": { - "line": 610, - "column": 140, - "offset": 18935 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "[link text][a]\n[link text][A]", - "position": { - "start": { - "line": 612, - "column": 1, - "offset": 18937 - }, - "end": { - "line": 613, - "column": 16, - "offset": 18968 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "are equivalent.", - "position": { - "start": { - "line": 615, - "column": 1, - "offset": 18970 - }, - "end": { - "line": 615, - "column": 16, - "offset": 18985 - } - } - } - ], - "position": { - "start": { - "line": 615, - "column": 1, - "offset": 18970 - }, - "end": { - "line": 615, - "column": 16, - "offset": 18985 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "The ", - "position": { - "start": { - "line": 617, - "column": 1, - "offset": 18987 - }, - "end": { - "line": 617, - "column": 5, - "offset": 18991 - } - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "implicit link name", - "position": { - "start": { - "line": 617, - "column": 6, - "offset": 18992 - }, - "end": { - "line": 617, - "column": 24, - "offset": 19010 - } - } - } - ], - "position": { - "start": { - "line": 617, - "column": 5, - "offset": 18991 - }, - "end": { - "line": 617, - "column": 25, - "offset": 19011 - } - } - }, - { - "type": "text", - "value": " shortcut allows you to omit the name of the\nlink, in which case the link text itself is used as the name.\nJust use an empty set of square brackets -- e.g., to link the word\n\"Google\" to the google.com web site, you could simply write:", - "position": { - "start": { - "line": 617, - "column": 25, - "offset": 19011 - }, - "end": { - "line": 620, - "column": 61, - "offset": 19245 - } - } - } - ], - "position": { - "start": { - "line": 617, - "column": 1, - "offset": 18987 - }, - "end": { - "line": 620, - "column": 61, - "offset": 19245 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "[Google][]", - "position": { - "start": { - "line": 622, - "column": 1, - "offset": 19247 - }, - "end": { - "line": 622, - "column": 12, - "offset": 19258 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And then define the link:", - "position": { - "start": { - "line": 624, - "column": 1, - "offset": 19260 - }, - "end": { - "line": 624, - "column": 26, - "offset": 19285 - } - } - } - ], - "position": { - "start": { - "line": 624, - "column": 1, - "offset": 19260 - }, - "end": { - "line": 624, - "column": 26, - "offset": 19285 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "[Google]: http://google.com/", - "position": { - "start": { - "line": 626, - "column": 1, - "offset": 19287 - }, - "end": { - "line": 626, - "column": 30, - "offset": 19316 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Because link names may contain spaces, this shortcut even works for\nmultiple words in the link text:", - "position": { - "start": { - "line": 628, - "column": 1, - "offset": 19318 - }, - "end": { - "line": 629, - "column": 33, - "offset": 19418 - } - } - } - ], - "position": { - "start": { - "line": 628, - "column": 1, - "offset": 19318 - }, - "end": { - "line": 629, - "column": 33, - "offset": 19418 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "Visit [Daring Fireball][] for more information.", - "position": { - "start": { - "line": 631, - "column": 1, - "offset": 19420 - }, - "end": { - "line": 631, - "column": 49, - "offset": 19468 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And then define the link:", - "position": { - "start": { - "line": 633, - "column": 1, - "offset": 19470 - }, - "end": { - "line": 633, - "column": 26, - "offset": 19495 - } - } - } - ], - "position": { - "start": { - "line": 633, - "column": 1, - "offset": 19470 - }, - "end": { - "line": 633, - "column": 26, - "offset": 19495 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "[Daring Fireball]: http://daringfireball.net/", - "position": { - "start": { - "line": 635, - "column": 1, - "offset": 19498 - }, - "end": { - "line": 635, - "column": 47, - "offset": 19544 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Link definitions can be placed anywhere in your Markdown document. I\ntend to put them immediately after each paragraph in which they're\nused, but if you want, you can put them all at the end of your\ndocument, sort of like footnotes.", - "position": { - "start": { - "line": 637, - "column": 1, - "offset": 19546 - }, - "end": { - "line": 640, - "column": 34, - "offset": 19778 - } - } - } - ], - "position": { - "start": { - "line": 637, - "column": 1, - "offset": 19546 - }, - "end": { - "line": 640, - "column": 34, - "offset": 19778 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Here's an example of reference links in action:", - "position": { - "start": { - "line": 642, - "column": 1, - "offset": 19780 - }, - "end": { - "line": 642, - "column": 48, - "offset": 19827 - } - } - } - ], - "position": { - "start": { - "line": 642, - "column": 1, - "offset": 19780 - }, - "end": { - "line": 642, - "column": 48, - "offset": 19827 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "I get 10 times more traffic from [Google] [1] than from\n[Yahoo] [2] or [MSN] [3].\n\n [1]: http://google.com/ \"Google\"\n [2]: http://search.yahoo.com/ \"Yahoo Search\"\n [3]: http://search.msn.com/ \"MSN Search\"", - "position": { - "start": { - "line": 644, - "column": 1, - "offset": 19829 - }, - "end": { - "line": 649, - "column": 50, - "offset": 20067 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Using the implicit link name shortcut, you could instead write:", - "position": { - "start": { - "line": 651, - "column": 1, - "offset": 20069 - }, - "end": { - "line": 651, - "column": 64, - "offset": 20132 - } - } - } - ], - "position": { - "start": { - "line": 651, - "column": 1, - "offset": 20069 - }, - "end": { - "line": 651, - "column": 64, - "offset": 20132 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "I get 10 times more traffic from [Google][] than from\n[Yahoo][] or [MSN][].\n\n [google]: http://google.com/ \"Google\"\n [yahoo]: http://search.yahoo.com/ \"Yahoo Search\"\n [msn]: http://search.msn.com/ \"MSN Search\"", - "position": { - "start": { - "line": 653, - "column": 1, - "offset": 20134 - }, - "end": { - "line": 658, - "column": 55, - "offset": 20381 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Both of the above examples will produce the following HTML output:", - "position": { - "start": { - "line": 660, - "column": 1, - "offset": 20383 - }, - "end": { - "line": 660, - "column": 67, - "offset": 20449 - } - } - } - ], - "position": { - "start": { - "line": 660, - "column": 1, - "offset": 20383 - }, - "end": { - "line": 660, - "column": 67, - "offset": 20449 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "

I get 10 times more traffic from Google than from\nYahoo\nor MSN.

", - "position": { - "start": { - "line": 662, - "column": 1, - "offset": 20451 - }, - "end": { - "line": 665, - "column": 72, - "offset": 20701 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "For comparison, here is the same paragraph written using\nMarkdown's inline link style:", - "position": { - "start": { - "line": 667, - "column": 1, - "offset": 20703 - }, - "end": { - "line": 668, - "column": 30, - "offset": 20789 - } - } - } - ], - "position": { - "start": { - "line": 667, - "column": 1, - "offset": 20703 - }, - "end": { - "line": 668, - "column": 30, - "offset": 20789 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "I get 10 times more traffic from [Google](http://google.com/ \"Google\")\nthan from [Yahoo](http://search.yahoo.com/ \"Yahoo Search\") or\n[MSN](http://search.msn.com/ \"MSN Search\").", - "position": { - "start": { - "line": 670, - "column": 1, - "offset": 20791 - }, - "end": { - "line": 672, - "column": 48, - "offset": 20979 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "The point of reference-style links is not that they're easier to\nwrite. The point is that with reference-style links, your document\nsource is vastly more readable. Compare the above examples: using\nreference-style links, the paragraph itself is only 81 characters\nlong; with inline-style links, it's 176 characters; and as raw HTML,\nit's 234 characters. In the raw HTML, there's more markup than there\nis text.", - "position": { - "start": { - "line": 674, - "column": 1, - "offset": 20981 - }, - "end": { - "line": 680, - "column": 9, - "offset": 21391 - } - } - } - ], - "position": { - "start": { - "line": 674, - "column": 1, - "offset": 20981 - }, - "end": { - "line": 680, - "column": 9, - "offset": 21391 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "With Markdown's reference-style links, a source document much more\nclosely resembles the final output, as rendered in a browser. By\nallowing you to move the markup-related metadata out of the paragraph,\nyou can add links without interrupting the narrative flow of your\nprose.", - "position": { - "start": { - "line": 682, - "column": 1, - "offset": 21393 - }, - "end": { - "line": 686, - "column": 7, - "offset": 21668 - } - } - } - ], - "position": { - "start": { - "line": 682, - "column": 1, - "offset": 21393 - }, - "end": { - "line": 686, - "column": 7, - "offset": 21668 - } - } - }, - { - "type": "html", - "value": "

Emphasis

", - "position": { - "start": { - "line": 689, - "column": 1, - "offset": 21671 - }, - "end": { - "line": 689, - "column": 26, - "offset": 21696 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Markdown treats asterisks (", - "position": { - "start": { - "line": 691, - "column": 1, - "offset": 21698 - }, - "end": { - "line": 691, - "column": 28, - "offset": 21725 - } - } - }, - { - "type": "inlineCode", - "value": "*", - "position": { - "start": { - "line": 691, - "column": 28, - "offset": 21725 - }, - "end": { - "line": 691, - "column": 31, - "offset": 21728 - } - } - }, - { - "type": "text", - "value": ") and underscores (", - "position": { - "start": { - "line": 691, - "column": 31, - "offset": 21728 - }, - "end": { - "line": 691, - "column": 50, - "offset": 21747 - } - } - }, - { - "type": "inlineCode", - "value": "_", - "position": { - "start": { - "line": 691, - "column": 50, - "offset": 21747 - }, - "end": { - "line": 691, - "column": 53, - "offset": 21750 - } - } - }, - { - "type": "text", - "value": ") as indicators of\nemphasis. Text wrapped with one ", - "position": { - "start": { - "line": 691, - "column": 53, - "offset": 21750 - }, - "end": { - "line": 692, - "column": 33, - "offset": 21801 - } - } - }, - { - "type": "inlineCode", - "value": "*", - "position": { - "start": { - "line": 692, - "column": 33, - "offset": 21801 - }, - "end": { - "line": 692, - "column": 36, - "offset": 21804 - } - } - }, - { - "type": "text", - "value": " or ", - "position": { - "start": { - "line": 692, - "column": 36, - "offset": 21804 - }, - "end": { - "line": 692, - "column": 40, - "offset": 21808 - } - } - }, - { - "type": "inlineCode", - "value": "_", - "position": { - "start": { - "line": 692, - "column": 40, - "offset": 21808 - }, - "end": { - "line": 692, - "column": 43, - "offset": 21811 - } - } - }, - { - "type": "text", - "value": " will be wrapped with an\nHTML ", - "position": { - "start": { - "line": 692, - "column": 43, - "offset": 21811 - }, - "end": { - "line": 693, - "column": 6, - "offset": 21841 - } - } - }, - { - "type": "inlineCode", - "value": "", - "position": { - "start": { - "line": 693, - "column": 6, - "offset": 21841 - }, - "end": { - "line": 693, - "column": 12, - "offset": 21847 - } - } - }, - { - "type": "text", - "value": " tag; double ", - "position": { - "start": { - "line": 693, - "column": 12, - "offset": 21847 - }, - "end": { - "line": 693, - "column": 25, - "offset": 21860 - } - } - }, - { - "type": "inlineCode", - "value": "*", - "position": { - "start": { - "line": 693, - "column": 25, - "offset": 21860 - }, - "end": { - "line": 693, - "column": 28, - "offset": 21863 - } - } - }, - { - "type": "text", - "value": "'s or ", - "position": { - "start": { - "line": 693, - "column": 28, - "offset": 21863 - }, - "end": { - "line": 693, - "column": 34, - "offset": 21869 - } - } - }, - { - "type": "inlineCode", - "value": "_", - "position": { - "start": { - "line": 693, - "column": 34, - "offset": 21869 - }, - "end": { - "line": 693, - "column": 37, - "offset": 21872 - } - } - }, - { - "type": "text", - "value": "'s will be wrapped with an HTML\n", - "position": { - "start": { - "line": 693, - "column": 37, - "offset": 21872 - }, - "end": { - "line": 694, - "column": 1, - "offset": 21904 - } - } - }, - { - "type": "inlineCode", - "value": "", - "position": { - "start": { - "line": 694, - "column": 1, - "offset": 21904 - }, - "end": { - "line": 694, - "column": 11, - "offset": 21914 - } - } - }, - { - "type": "text", - "value": " tag. E.g., this input:", - "position": { - "start": { - "line": 694, - "column": 11, - "offset": 21914 - }, - "end": { - "line": 694, - "column": 34, - "offset": 21937 - } - } - } - ], - "position": { - "start": { - "line": 691, - "column": 1, - "offset": 21698 - }, - "end": { - "line": 694, - "column": 34, - "offset": 21937 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "*single asterisks*\n\n_single underscores_\n\n**double asterisks**\n\n__double underscores__", - "position": { - "start": { - "line": 696, - "column": 1, - "offset": 21939 - }, - "end": { - "line": 702, - "column": 27, - "offset": 22041 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "will produce:", - "position": { - "start": { - "line": 704, - "column": 1, - "offset": 22043 - }, - "end": { - "line": 704, - "column": 14, - "offset": 22056 - } - } - } - ], - "position": { - "start": { - "line": 704, - "column": 1, - "offset": 22043 - }, - "end": { - "line": 704, - "column": 14, - "offset": 22056 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "single asterisks\n\nsingle underscores\n\ndouble asterisks\n\ndouble underscores", - "position": { - "start": { - "line": 706, - "column": 1, - "offset": 22058 - }, - "end": { - "line": 712, - "column": 40, - "offset": 22200 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "You can use whichever style you prefer; the lone restriction is that\nthe same character must be used to open and close an emphasis span.", - "position": { - "start": { - "line": 714, - "column": 1, - "offset": 22202 - }, - "end": { - "line": 715, - "column": 68, - "offset": 22338 - } - } - } - ], - "position": { - "start": { - "line": 714, - "column": 1, - "offset": 22202 - }, - "end": { - "line": 715, - "column": 68, - "offset": 22338 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Emphasis can be used in the middle of a word:", - "position": { - "start": { - "line": 717, - "column": 1, - "offset": 22340 - }, - "end": { - "line": 717, - "column": 46, - "offset": 22385 - } - } - } - ], - "position": { - "start": { - "line": 717, - "column": 1, - "offset": 22340 - }, - "end": { - "line": 717, - "column": 46, - "offset": 22385 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "un*fucking*believable", - "position": { - "start": { - "line": 719, - "column": 1, - "offset": 22387 - }, - "end": { - "line": 719, - "column": 26, - "offset": 22412 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "But if you surround an ", - "position": { - "start": { - "line": 721, - "column": 1, - "offset": 22414 - }, - "end": { - "line": 721, - "column": 24, - "offset": 22437 - } - } - }, - { - "type": "inlineCode", - "value": "*", - "position": { - "start": { - "line": 721, - "column": 24, - "offset": 22437 - }, - "end": { - "line": 721, - "column": 27, - "offset": 22440 - } - } - }, - { - "type": "text", - "value": " or ", - "position": { - "start": { - "line": 721, - "column": 27, - "offset": 22440 - }, - "end": { - "line": 721, - "column": 31, - "offset": 22444 - } - } - }, - { - "type": "inlineCode", - "value": "_", - "position": { - "start": { - "line": 721, - "column": 31, - "offset": 22444 - }, - "end": { - "line": 721, - "column": 34, - "offset": 22447 - } - } - }, - { - "type": "text", - "value": " with spaces, it'll be treated as a\nliteral asterisk or underscore.", - "position": { - "start": { - "line": 721, - "column": 34, - "offset": 22447 - }, - "end": { - "line": 722, - "column": 32, - "offset": 22514 - } - } - } - ], - "position": { - "start": { - "line": 721, - "column": 1, - "offset": 22414 - }, - "end": { - "line": 722, - "column": 32, - "offset": 22514 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "To produce a literal asterisk or underscore at a position where it\nwould otherwise be used as an emphasis delimiter, you can backslash\nescape it:", - "position": { - "start": { - "line": 724, - "column": 1, - "offset": 22516 - }, - "end": { - "line": 726, - "column": 11, - "offset": 22661 - } - } - } - ], - "position": { - "start": { - "line": 724, - "column": 1, - "offset": 22516 - }, - "end": { - "line": 726, - "column": 11, - "offset": 22661 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "\\*this text is surrounded by literal asterisks\\*", - "position": { - "start": { - "line": 728, - "column": 1, - "offset": 22663 - }, - "end": { - "line": 728, - "column": 53, - "offset": 22715 - } - } - }, - { - "type": "html", - "value": "

Code

", - "position": { - "start": { - "line": 732, - "column": 1, - "offset": 22719 - }, - "end": { - "line": 732, - "column": 24, - "offset": 22742 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "To indicate a span of code, wrap it with backtick quotes (", - "position": { - "start": { - "line": 734, - "column": 1, - "offset": 22744 - }, - "end": { - "line": 734, - "column": 59, - "offset": 22802 - } - } - }, - { - "type": "inlineCode", - "value": "`", - "position": { - "start": { - "line": 734, - "column": 59, - "offset": 22802 - }, - "end": { - "line": 734, - "column": 66, - "offset": 22809 - } - } - }, - { - "type": "text", - "value": ").\nUnlike a pre-formatted code block, a code span indicates code within a\nnormal paragraph. For example:", - "position": { - "start": { - "line": 734, - "column": 66, - "offset": 22809 - }, - "end": { - "line": 736, - "column": 31, - "offset": 22913 - } - } - } - ], - "position": { - "start": { - "line": 734, - "column": 1, - "offset": 22744 - }, - "end": { - "line": 736, - "column": 31, - "offset": 22913 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "Use the `printf()` function.", - "position": { - "start": { - "line": 738, - "column": 1, - "offset": 22915 - }, - "end": { - "line": 738, - "column": 33, - "offset": 22947 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "will produce:", - "position": { - "start": { - "line": 740, - "column": 1, - "offset": 22949 - }, - "end": { - "line": 740, - "column": 14, - "offset": 22962 - } - } - } - ], - "position": { - "start": { - "line": 740, - "column": 1, - "offset": 22949 - }, - "end": { - "line": 740, - "column": 14, - "offset": 22962 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "

Use the printf() function.

", - "position": { - "start": { - "line": 742, - "column": 1, - "offset": 22964 - }, - "end": { - "line": 742, - "column": 51, - "offset": 23014 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "To include a literal backtick character within a code span, you can use\nmultiple backticks as the opening and closing delimiters:", - "position": { - "start": { - "line": 744, - "column": 1, - "offset": 23016 - }, - "end": { - "line": 745, - "column": 58, - "offset": 23145 - } - } - } - ], - "position": { - "start": { - "line": 744, - "column": 1, - "offset": 23016 - }, - "end": { - "line": 745, - "column": 58, - "offset": 23145 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "``There is a literal backtick (`) here.``", - "position": { - "start": { - "line": 747, - "column": 1, - "offset": 23147 - }, - "end": { - "line": 747, - "column": 46, - "offset": 23192 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "which will produce this:", - "position": { - "start": { - "line": 749, - "column": 1, - "offset": 23194 - }, - "end": { - "line": 749, - "column": 25, - "offset": 23218 - } - } - } - ], - "position": { - "start": { - "line": 749, - "column": 1, - "offset": 23194 - }, - "end": { - "line": 749, - "column": 25, - "offset": 23218 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "

There is a literal backtick (`) here.

", - "position": { - "start": { - "line": 751, - "column": 1, - "offset": 23220 - }, - "end": { - "line": 751, - "column": 62, - "offset": 23281 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "The backtick delimiters surrounding a code span may include spaces --\none after the opening, one before the closing. This allows you to place\nliteral backtick characters at the beginning or end of a code span:", - "position": { - "start": { - "line": 753, - "column": 1, - "offset": 23283 - }, - "end": { - "line": 755, - "column": 68, - "offset": 23492 - } - } - } - ], - "position": { - "start": { - "line": 753, - "column": 1, - "offset": 23283 - }, - "end": { - "line": 755, - "column": 68, - "offset": 23492 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "A single backtick in a code span: `` ` ``\n\nA backtick-delimited string in a code span: `` `foo` ``", - "position": { - "start": { - "line": 757, - "column": 1, - "offset": 23494 - }, - "end": { - "line": 759, - "column": 57, - "offset": 23595 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "will produce:", - "position": { - "start": { - "line": 761, - "column": 1, - "offset": 23597 - }, - "end": { - "line": 761, - "column": 14, - "offset": 23610 - } - } - } - ], - "position": { - "start": { - "line": 761, - "column": 1, - "offset": 23597 - }, - "end": { - "line": 761, - "column": 14, - "offset": 23610 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "

A single backtick in a code span: `

\n\n

A backtick-delimited string in a code span: `foo`

", - "position": { - "start": { - "line": 763, - "column": 1, - "offset": 23612 - }, - "end": { - "line": 765, - "column": 71, - "offset": 23741 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "With a code span, ampersands and angle brackets are encoded as HTML\nentities automatically, which makes it easy to include example HTML\ntags. Markdown will turn this:", - "position": { - "start": { - "line": 767, - "column": 1, - "offset": 23743 - }, - "end": { - "line": 769, - "column": 31, - "offset": 23909 - } - } - } - ], - "position": { - "start": { - "line": 767, - "column": 1, - "offset": 23743 - }, - "end": { - "line": 769, - "column": 31, - "offset": 23909 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "Please don't use any `` tags.", - "position": { - "start": { - "line": 771, - "column": 1, - "offset": 23911 - }, - "end": { - "line": 771, - "column": 41, - "offset": 23951 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "into:", - "position": { - "start": { - "line": 773, - "column": 1, - "offset": 23953 - }, - "end": { - "line": 773, - "column": 6, - "offset": 23958 - } - } - } - ], - "position": { - "start": { - "line": 773, - "column": 1, - "offset": 23953 - }, - "end": { - "line": 773, - "column": 6, - "offset": 23958 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "

Please don't use any <blink> tags.

", - "position": { - "start": { - "line": 775, - "column": 1, - "offset": 23960 - }, - "end": { - "line": 775, - "column": 65, - "offset": 24024 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "You can write this:", - "position": { - "start": { - "line": 777, - "column": 1, - "offset": 24026 - }, - "end": { - "line": 777, - "column": 20, - "offset": 24045 - } - } - } - ], - "position": { - "start": { - "line": 777, - "column": 1, - "offset": 24026 - }, - "end": { - "line": 777, - "column": 20, - "offset": 24045 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "`—` is the decimal-encoded equivalent of `—`.", - "position": { - "start": { - "line": 779, - "column": 1, - "offset": 24047 - }, - "end": { - "line": 779, - "column": 62, - "offset": 24108 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "to produce:", - "position": { - "start": { - "line": 781, - "column": 1, - "offset": 24110 - }, - "end": { - "line": 781, - "column": 12, - "offset": 24121 - } - } - } - ], - "position": { - "start": { - "line": 781, - "column": 1, - "offset": 24110 - }, - "end": { - "line": 781, - "column": 12, - "offset": 24121 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "

&#8212; is the decimal-encoded\nequivalent of &mdash;.

", - "position": { - "start": { - "line": 783, - "column": 1, - "offset": 24123 - }, - "end": { - "line": 784, - "column": 48, - "offset": 24225 - } - } - }, - { - "type": "html", - "value": "

Images

", - "position": { - "start": { - "line": 788, - "column": 1, - "offset": 24229 - }, - "end": { - "line": 788, - "column": 25, - "offset": 24253 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Admittedly, it's fairly difficult to devise a \"natural\" syntax for\nplacing images into a plain text document format.", - "position": { - "start": { - "line": 790, - "column": 1, - "offset": 24255 - }, - "end": { - "line": 791, - "column": 50, - "offset": 24371 - } - } - } - ], - "position": { - "start": { - "line": 790, - "column": 1, - "offset": 24255 - }, - "end": { - "line": 791, - "column": 50, - "offset": 24371 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Markdown uses an image syntax that is intended to resemble the syntax\nfor links, allowing for two styles: ", - "position": { - "start": { - "line": 793, - "column": 1, - "offset": 24373 - }, - "end": { - "line": 794, - "column": 37, - "offset": 24479 - } - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "inline", - "position": { - "start": { - "line": 794, - "column": 38, - "offset": 24480 - }, - "end": { - "line": 794, - "column": 44, - "offset": 24486 - } - } - } - ], - "position": { - "start": { - "line": 794, - "column": 37, - "offset": 24479 - }, - "end": { - "line": 794, - "column": 45, - "offset": 24487 - } - } - }, - { - "type": "text", - "value": " and ", - "position": { - "start": { - "line": 794, - "column": 45, - "offset": 24487 - }, - "end": { - "line": 794, - "column": 50, - "offset": 24492 - } - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "reference", - "position": { - "start": { - "line": 794, - "column": 51, - "offset": 24493 - }, - "end": { - "line": 794, - "column": 60, - "offset": 24502 - } - } - } - ], - "position": { - "start": { - "line": 794, - "column": 50, - "offset": 24492 - }, - "end": { - "line": 794, - "column": 61, - "offset": 24503 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 794, - "column": 61, - "offset": 24503 - }, - "end": { - "line": 794, - "column": 62, - "offset": 24504 - } - } - } - ], - "position": { - "start": { - "line": 793, - "column": 1, - "offset": 24373 - }, - "end": { - "line": 794, - "column": 62, - "offset": 24504 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Inline image syntax looks like this:", - "position": { - "start": { - "line": 796, - "column": 1, - "offset": 24506 - }, - "end": { - "line": 796, - "column": 37, - "offset": 24542 - } - } - } - ], - "position": { - "start": { - "line": 796, - "column": 1, - "offset": 24506 - }, - "end": { - "line": 796, - "column": 37, - "offset": 24542 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "![Alt text](/path/to/img.jpg)\n\n![Alt text](/path/to/img.jpg \"Optional title\")", - "position": { - "start": { - "line": 798, - "column": 1, - "offset": 24544 - }, - "end": { - "line": 800, - "column": 51, - "offset": 24629 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "That is:", - "position": { - "start": { - "line": 802, - "column": 1, - "offset": 24631 - }, - "end": { - "line": 802, - "column": 9, - "offset": 24639 - } - } - } - ], - "position": { - "start": { - "line": 802, - "column": 1, - "offset": 24631 - }, - "end": { - "line": 802, - "column": 9, - "offset": 24639 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "An exclamation mark: ", - "position": { - "start": { - "line": 804, - "column": 5, - "offset": 24645 - }, - "end": { - "line": 804, - "column": 26, - "offset": 24666 - } - } - }, - { - "type": "inlineCode", - "value": "!", - "position": { - "start": { - "line": 804, - "column": 26, - "offset": 24666 - }, - "end": { - "line": 804, - "column": 29, - "offset": 24669 - } - } - }, - { - "type": "text", - "value": ";", - "position": { - "start": { - "line": 804, - "column": 29, - "offset": 24669 - }, - "end": { - "line": 804, - "column": 30, - "offset": 24670 - } - } - } - ], - "position": { - "start": { - "line": 804, - "column": 5, - "offset": 24645 - }, - "end": { - "line": 804, - "column": 30, - "offset": 24670 - } - } - } - ], - "position": { - "start": { - "line": 804, - "column": 1, - "offset": 24641 - }, - "end": { - "line": 804, - "column": 30, - "offset": 24670 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "followed by a set of square brackets, containing the ", - "position": { - "start": { - "line": 805, - "column": 5, - "offset": 24675 - }, - "end": { - "line": 805, - "column": 58, - "offset": 24728 - } - } - }, - { - "type": "inlineCode", - "value": "alt", - "position": { - "start": { - "line": 805, - "column": 58, - "offset": 24728 - }, - "end": { - "line": 805, - "column": 63, - "offset": 24733 - } - } - }, - { - "type": "text", - "value": "\nattribute text for the image;", - "position": { - "start": { - "line": 805, - "column": 63, - "offset": 24733 - }, - "end": { - "line": 806, - "column": 34, - "offset": 24767 - } - } - } - ], - "position": { - "start": { - "line": 805, - "column": 5, - "offset": 24675 - }, - "end": { - "line": 806, - "column": 34, - "offset": 24767 - } - } - } - ], - "position": { - "start": { - "line": 805, - "column": 1, - "offset": 24671 - }, - "end": { - "line": 806, - "column": 34, - "offset": 24767 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "followed by a set of parentheses, containing the URL or path to\nthe image, and an optional ", - "position": { - "start": { - "line": 807, - "column": 5, - "offset": 24772 - }, - "end": { - "line": 808, - "column": 32, - "offset": 24867 - } - } - }, - { - "type": "inlineCode", - "value": "title", - "position": { - "start": { - "line": 808, - "column": 32, - "offset": 24867 - }, - "end": { - "line": 808, - "column": 39, - "offset": 24874 - } - } - }, - { - "type": "text", - "value": " attribute enclosed in double\nor single quotes.", - "position": { - "start": { - "line": 808, - "column": 39, - "offset": 24874 - }, - "end": { - "line": 809, - "column": 22, - "offset": 24925 - } - } - } - ], - "position": { - "start": { - "line": 807, - "column": 5, - "offset": 24772 - }, - "end": { - "line": 809, - "column": 22, - "offset": 24925 - } - } - } - ], - "position": { - "start": { - "line": 807, - "column": 1, - "offset": 24768 - }, - "end": { - "line": 809, - "column": 22, - "offset": 24925 - } - } - } - ], - "position": { - "start": { - "line": 804, - "column": 1, - "offset": 24641 - }, - "end": { - "line": 809, - "column": 22, - "offset": 24925 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Reference-style image syntax looks like this:", - "position": { - "start": { - "line": 811, - "column": 1, - "offset": 24927 - }, - "end": { - "line": 811, - "column": 46, - "offset": 24972 - } - } - } - ], - "position": { - "start": { - "line": 811, - "column": 1, - "offset": 24927 - }, - "end": { - "line": 811, - "column": 46, - "offset": 24972 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "![Alt text][id]", - "position": { - "start": { - "line": 813, - "column": 1, - "offset": 24974 - }, - "end": { - "line": 813, - "column": 20, - "offset": 24993 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Where \"id\" is the name of a defined image reference. Image references\nare defined using syntax identical to link references:", - "position": { - "start": { - "line": 815, - "column": 1, - "offset": 24995 - }, - "end": { - "line": 816, - "column": 55, - "offset": 25119 - } - } - } - ], - "position": { - "start": { - "line": 815, - "column": 1, - "offset": 24995 - }, - "end": { - "line": 816, - "column": 55, - "offset": 25119 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "[id]: url/to/image \"Optional title attribute\"", - "position": { - "start": { - "line": 818, - "column": 1, - "offset": 25121 - }, - "end": { - "line": 818, - "column": 51, - "offset": 25171 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "As of this writing, Markdown has no syntax for specifying the\ndimensions of an image; if this is important to you, you can simply\nuse regular HTML ", - "position": { - "start": { - "line": 820, - "column": 1, - "offset": 25173 - }, - "end": { - "line": 822, - "column": 18, - "offset": 25320 - } - } - }, - { - "type": "inlineCode", - "value": "", - "position": { - "start": { - "line": 822, - "column": 18, - "offset": 25320 - }, - "end": { - "line": 822, - "column": 25, - "offset": 25327 - } - } - }, - { - "type": "text", - "value": " tags.", - "position": { - "start": { - "line": 822, - "column": 25, - "offset": 25327 - }, - "end": { - "line": 822, - "column": 31, - "offset": 25333 - } - } - } - ], - "position": { - "start": { - "line": 820, - "column": 1, - "offset": 25173 - }, - "end": { - "line": 822, - "column": 31, - "offset": 25333 - } - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 825, - "column": 1, - "offset": 25336 - }, - "end": { - "line": 825, - "column": 6, - "offset": 25341 - } - } - }, - { - "type": "html", - "value": "

Miscellaneous

", - "position": { - "start": { - "line": 828, - "column": 1, - "offset": 25344 - }, - "end": { - "line": 828, - "column": 33, - "offset": 25376 - } - } - }, - { - "type": "html", - "value": "

Automatic Links

", - "position": { - "start": { - "line": 830, - "column": 1, - "offset": 25378 - }, - "end": { - "line": 830, - "column": 39, - "offset": 25416 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Markdown supports a shortcut style for creating \"automatic\" links for URLs and email addresses: simply surround the URL or email address with angle brackets. What this means is that if you want to show the actual text of a URL or email address, and also have it be a clickable link, you can do this:", - "position": { - "start": { - "line": 832, - "column": 1, - "offset": 25418 - }, - "end": { - "line": 832, - "column": 300, - "offset": 25717 - } - } - } - ], - "position": { - "start": { - "line": 832, - "column": 1, - "offset": 25418 - }, - "end": { - "line": 832, - "column": 300, - "offset": 25717 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "", - "position": { - "start": { - "line": 834, - "column": 1, - "offset": 25719 - }, - "end": { - "line": 835, - "column": 5, - "offset": 25749 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Markdown will turn this into:", - "position": { - "start": { - "line": 836, - "column": 1, - "offset": 25750 - }, - "end": { - "line": 836, - "column": 30, - "offset": 25779 - } - } - } - ], - "position": { - "start": { - "line": 836, - "column": 1, - "offset": 25750 - }, - "end": { - "line": 836, - "column": 30, - "offset": 25779 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "http://example.com/", - "position": { - "start": { - "line": 838, - "column": 1, - "offset": 25781 - }, - "end": { - "line": 838, - "column": 58, - "offset": 25838 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Automatic links for email addresses work similarly, except that\nMarkdown will also perform a bit of randomized decimal and hex\nentity-encoding to help obscure your address from address-harvesting\nspambots. For example, Markdown will turn this:", - "position": { - "start": { - "line": 840, - "column": 1, - "offset": 25840 - }, - "end": { - "line": 843, - "column": 48, - "offset": 26083 - } - } - } - ], - "position": { - "start": { - "line": 840, - "column": 1, - "offset": 25840 - }, - "end": { - "line": 843, - "column": 48, - "offset": 26083 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "", - "position": { - "start": { - "line": 845, - "column": 1, - "offset": 26085 - }, - "end": { - "line": 845, - "column": 26, - "offset": 26110 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "into something like this:", - "position": { - "start": { - "line": 847, - "column": 1, - "offset": 26112 - }, - "end": { - "line": 847, - "column": 26, - "offset": 26137 - } - } - } - ], - "position": { - "start": { - "line": 847, - "column": 1, - "offset": 26112 - }, - "end": { - "line": 847, - "column": 26, - "offset": 26137 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "address@exa\nmple.com", - "position": { - "start": { - "line": 849, - "column": 1, - "offset": 26139 - }, - "end": { - "line": 852, - "column": 51, - "offset": 26419 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "which will render in a browser as a clickable link to \"address@example.com\".", - "position": { - "start": { - "line": 854, - "column": 1, - "offset": 26421 - }, - "end": { - "line": 854, - "column": 77, - "offset": 26497 - } - } - } - ], - "position": { - "start": { - "line": 854, - "column": 1, - "offset": 26421 - }, - "end": { - "line": 854, - "column": 77, - "offset": 26497 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "(This sort of entity-encoding trick will indeed fool many, if not\nmost, address-harvesting bots, but it definitely won't fool all of\nthem. It's better than nothing, but an address published in this way\nwill probably eventually start receiving spam.)", - "position": { - "start": { - "line": 856, - "column": 1, - "offset": 26499 - }, - "end": { - "line": 859, - "column": 48, - "offset": 26748 - } - } - } - ], - "position": { - "start": { - "line": 856, - "column": 1, - "offset": 26499 - }, - "end": { - "line": 859, - "column": 48, - "offset": 26748 - } - } - }, - { - "type": "html", - "value": "

Backslash Escapes

", - "position": { - "start": { - "line": 863, - "column": 1, - "offset": 26752 - }, - "end": { - "line": 863, - "column": 42, - "offset": 26793 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Markdown allows you to use backslash escapes to generate literal\ncharacters which would otherwise have special meaning in Markdown's\nformatting syntax. For example, if you wanted to surround a word with\nliteral asterisks (instead of an HTML ", - "position": { - "start": { - "line": 865, - "column": 1, - "offset": 26795 - }, - "end": { - "line": 868, - "column": 39, - "offset": 27036 - } - } - }, - { - "type": "inlineCode", - "value": "", - "position": { - "start": { - "line": 868, - "column": 39, - "offset": 27036 - }, - "end": { - "line": 868, - "column": 45, - "offset": 27042 - } - } - }, - { - "type": "text", - "value": " tag), you can backslashes\nbefore the asterisks, like this:", - "position": { - "start": { - "line": 868, - "column": 45, - "offset": 27042 - }, - "end": { - "line": 869, - "column": 33, - "offset": 27101 - } - } - } - ], - "position": { - "start": { - "line": 865, - "column": 1, - "offset": 26795 - }, - "end": { - "line": 869, - "column": 33, - "offset": 27101 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "\\*literal asterisks\\*", - "position": { - "start": { - "line": 871, - "column": 1, - "offset": 27103 - }, - "end": { - "line": 871, - "column": 26, - "offset": 27128 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Markdown provides backslash escapes for the following characters:", - "position": { - "start": { - "line": 873, - "column": 1, - "offset": 27130 - }, - "end": { - "line": 873, - "column": 66, - "offset": 27195 - } - } - } - ], - "position": { - "start": { - "line": 873, - "column": 1, - "offset": 27130 - }, - "end": { - "line": 873, - "column": 66, - "offset": 27195 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "\\ backslash\n` backtick\n* asterisk\n_ underscore\n{} curly braces\n[] square brackets\n() parentheses\n# hash mark\n+\tplus sign\n-\tminus sign (hyphen)\n. dot\n! exclamation mark", - "position": { - "start": { - "line": 875, - "column": 1, - "offset": 27197 - }, - "end": { - "line": 886, - "column": 25, - "offset": 27423 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 888, - "column": 1, - "offset": 27425 - } - } -} diff --git a/test/fixtures/tree/mixed-indentation.json b/test/fixtures/tree/mixed-indentation.json deleted file mode 100644 index 54f9edbfd..000000000 --- a/test/fixtures/tree/mixed-indentation.json +++ /dev/null @@ -1,339 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Mixed spaces and tabs", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 24, - "offset": 23 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 24, - "offset": 23 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Very long\nparagraph", - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 27 - }, - "end": { - "line": 4, - "column": 12, - "offset": 48 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 27 - }, - "end": { - "line": 4, - "column": 12, - "offset": 48 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 25 - }, - "end": { - "line": 4, - "column": 12, - "offset": 48 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 25 - }, - "end": { - "line": 4, - "column": 12, - "offset": 48 - } - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Very long\nparagraph", - "position": { - "start": { - "line": 6, - "column": 4, - "offset": 53 - }, - "end": { - "line": 7, - "column": 12, - "offset": 74 - } - } - } - ], - "position": { - "start": { - "line": 6, - "column": 4, - "offset": 53 - }, - "end": { - "line": 7, - "column": 12, - "offset": 74 - } - } - } - ], - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 50 - }, - "end": { - "line": 7, - "column": 12, - "offset": 74 - } - } - } - ], - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 50 - }, - "end": { - "line": 7, - "column": 12, - "offset": 74 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Very long\nparagraph", - "position": { - "start": { - "line": 9, - "column": 3, - "offset": 78 - }, - "end": { - "line": 10, - "column": 12, - "offset": 99 - } - } - } - ], - "position": { - "start": { - "line": 9, - "column": 3, - "offset": 78 - }, - "end": { - "line": 10, - "column": 12, - "offset": 99 - } - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 76 - }, - "end": { - "line": 10, - "column": 12, - "offset": 99 - } - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 76 - }, - "end": { - "line": 10, - "column": 12, - "offset": 99 - } - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Very long\nparagraph", - "position": { - "start": { - "line": 12, - "column": 4, - "offset": 104 - }, - "end": { - "line": 13, - "column": 12, - "offset": 125 - } - } - } - ], - "position": { - "start": { - "line": 12, - "column": 4, - "offset": 104 - }, - "end": { - "line": 13, - "column": 12, - "offset": 125 - } - } - } - ], - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 101 - }, - "end": { - "line": 13, - "column": 12, - "offset": 125 - } - } - } - ], - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 101 - }, - "end": { - "line": 13, - "column": 12, - "offset": 125 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 14, - "column": 1, - "offset": 126 - } - } -} diff --git a/test/fixtures/tree/nested-blockquotes.json b/test/fixtures/tree/nested-blockquotes.json deleted file mode 100644 index 67a82b743..000000000 --- a/test/fixtures/tree/nested-blockquotes.json +++ /dev/null @@ -1,150 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "blockquote", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 6, - "offset": 5 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 6, - "offset": 5 - } - } - }, - { - "type": "blockquote", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "bar", - "position": { - "start": { - "line": 3, - "column": 5, - "offset": 12 - }, - "end": { - "line": 3, - "column": 8, - "offset": 15 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 5, - "offset": 12 - }, - "end": { - "line": 3, - "column": 8, - "offset": 15 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 10 - }, - "end": { - "line": 3, - "column": 8, - "offset": 15 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo", - "position": { - "start": { - "line": 5, - "column": 3, - "offset": 20 - }, - "end": { - "line": 5, - "column": 6, - "offset": 23 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 3, - "offset": 20 - }, - "end": { - "line": 5, - "column": 6, - "offset": 23 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 5, - "column": 6, - "offset": 23 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 6, - "column": 1, - "offset": 24 - } - } -} diff --git a/test/fixtures/tree/nested-code.json b/test/fixtures/tree/nested-code.json deleted file mode 100644 index 7859e770d..000000000 --- a/test/fixtures/tree/nested-code.json +++ /dev/null @@ -1,83 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "inlineCode", - "value": "hi ther `` ok ```", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 30, - "offset": 29 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 30, - "offset": 29 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "inlineCode", - "value": "`hi ther`", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 31 - }, - "end": { - "line": 3, - "column": 16, - "offset": 46 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 31 - }, - "end": { - "line": 3, - "column": 16, - "offset": 46 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 4, - "column": 1, - "offset": 47 - } - } -} diff --git a/test/fixtures/tree/nested-em.nooutput.json b/test/fixtures/tree/nested-em.nooutput.json deleted file mode 100644 index 4de07ce48..000000000 --- a/test/fixtures/tree/nested-em.nooutput.json +++ /dev/null @@ -1,215 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "test ", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - } - } - }, - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "test", - "position": { - "start": { - "line": 1, - "column": 9, - "offset": 8 - }, - "end": { - "line": 1, - "column": 13, - "offset": 12 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 7, - "offset": 6 - }, - "end": { - "line": 1, - "column": 15, - "offset": 14 - } - } - }, - { - "type": "text", - "value": " test", - "position": { - "start": { - "line": 1, - "column": 15, - "offset": 14 - }, - "end": { - "line": 1, - "column": 20, - "offset": 19 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 21, - "offset": 20 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 21, - "offset": 20 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "test ", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 23 - }, - "end": { - "line": 3, - "column": 7, - "offset": 28 - } - } - }, - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "test", - "position": { - "start": { - "line": 3, - "column": 9, - "offset": 30 - }, - "end": { - "line": 3, - "column": 13, - "offset": 34 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 7, - "offset": 28 - }, - "end": { - "line": 3, - "column": 15, - "offset": 36 - } - } - }, - { - "type": "text", - "value": " test", - "position": { - "start": { - "line": 3, - "column": 15, - "offset": 36 - }, - "end": { - "line": 3, - "column": 20, - "offset": 41 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 22 - }, - "end": { - "line": 3, - "column": 21, - "offset": 42 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 22 - }, - "end": { - "line": 3, - "column": 21, - "offset": 42 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 4, - "column": 1, - "offset": 43 - } - } -} diff --git a/test/fixtures/tree/nested-references.json b/test/fixtures/tree/nested-references.json deleted file mode 100644 index d607078c6..000000000 --- a/test/fixtures/tree/nested-references.json +++ /dev/null @@ -1,298 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This nested image should work:", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 31, - "offset": 30 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 31, - "offset": 30 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "children": [ - { - "type": "imageReference", - "alt": "Foo", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 33 - }, - "end": { - "line": 3, - "column": 13, - "offset": 44 - } - }, - "label": "bar", - "identifier": "bar", - "referenceType": "full" - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 32 - }, - "end": { - "line": 3, - "column": 19, - "offset": 50 - } - }, - "label": "baz", - "identifier": "baz", - "referenceType": "full" - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 32 - }, - "end": { - "line": 3, - "column": 19, - "offset": 50 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This nested link should not work:", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 52 - }, - "end": { - "line": 5, - "column": 34, - "offset": 85 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 52 - }, - "end": { - "line": 5, - "column": 34, - "offset": 85 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 87 - }, - "end": { - "line": 7, - "column": 2, - "offset": 88 - } - } - }, - { - "type": "linkReference", - "children": [ - { - "type": "text", - "value": "Foo", - "position": { - "start": { - "line": 7, - "column": 3, - "offset": 89 - }, - "end": { - "line": 7, - "column": 6, - "offset": 92 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 2, - "offset": 88 - }, - "end": { - "line": 7, - "column": 12, - "offset": 98 - } - }, - "label": "bar", - "identifier": "bar", - "referenceType": "full" - }, - { - "type": "text", - "value": "]", - "position": { - "start": { - "line": 7, - "column": 12, - "offset": 98 - }, - "end": { - "line": 7, - "column": 13, - "offset": 99 - } - } - }, - { - "type": "linkReference", - "children": [ - { - "type": "text", - "value": "baz", - "position": { - "start": { - "line": 7, - "column": 14, - "offset": 100 - }, - "end": { - "line": 7, - "column": 17, - "offset": 103 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 13, - "offset": 99 - }, - "end": { - "line": 7, - "column": 18, - "offset": 104 - } - }, - "label": "baz", - "identifier": "baz", - "referenceType": "shortcut" - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 87 - }, - "end": { - "line": 7, - "column": 18, - "offset": 104 - } - } - }, - { - "type": "definition", - "identifier": "bar", - "label": "bar", - "title": "bar", - "url": "https://bar.com", - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 106 - }, - "end": { - "line": 9, - "column": 29, - "offset": 134 - } - } - }, - { - "type": "definition", - "identifier": "baz", - "label": "baz", - "title": "baz", - "url": "https://baz.com", - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 135 - }, - "end": { - "line": 10, - "column": 29, - "offset": 163 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 11, - "column": 1, - "offset": 164 - } - } -} diff --git a/test/fixtures/tree/nested-square-link.json b/test/fixtures/tree/nested-square-link.json deleted file mode 100644 index 667a35304..000000000 --- a/test/fixtures/tree/nested-square-link.json +++ /dev/null @@ -1,337 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "/url", - "children": [ - { - "type": "text", - "value": "the ", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 6, - "offset": 5 - } - } - }, - { - "type": "inlineCode", - "value": "]", - "position": { - "start": { - "line": 1, - "column": 6, - "offset": 5 - }, - "end": { - "line": 1, - "column": 9, - "offset": 8 - } - } - }, - { - "type": "text", - "value": " character", - "position": { - "start": { - "line": 1, - "column": 9, - "offset": 8 - }, - "end": { - "line": 1, - "column": 19, - "offset": 18 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 26, - "offset": 25 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 26, - "offset": 25 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "/url", - "children": [ - { - "type": "text", - "value": "the ", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 28 - }, - "end": { - "line": 3, - "column": 6, - "offset": 32 - } - } - }, - { - "type": "inlineCode", - "value": "[", - "position": { - "start": { - "line": 3, - "column": 6, - "offset": 32 - }, - "end": { - "line": 3, - "column": 13, - "offset": 39 - } - } - }, - { - "type": "text", - "value": " character", - "position": { - "start": { - "line": 3, - "column": 13, - "offset": 39 - }, - "end": { - "line": 3, - "column": 23, - "offset": 49 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 27 - }, - "end": { - "line": 3, - "column": 30, - "offset": 56 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 27 - }, - "end": { - "line": 3, - "column": 30, - "offset": 56 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[the `` ", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 58 - }, - "end": { - "line": 5, - "column": 9, - "offset": 66 - } - } - }, - { - "type": "link", - "title": null, - "url": "/url", - "children": [ - { - "type": "text", - "value": " ``` character", - "position": { - "start": { - "line": 5, - "column": 10, - "offset": 67 - }, - "end": { - "line": 5, - "column": 24, - "offset": 81 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 9, - "offset": 66 - }, - "end": { - "line": 5, - "column": 31, - "offset": 88 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 58 - }, - "end": { - "line": 5, - "column": 31, - "offset": 88 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "/url", - "children": [ - { - "type": "text", - "value": "the ", - "position": { - "start": { - "line": 7, - "column": 2, - "offset": 91 - }, - "end": { - "line": 7, - "column": 6, - "offset": 95 - } - } - }, - { - "type": "inlineCode", - "value": "`", - "position": { - "start": { - "line": 7, - "column": 6, - "offset": 95 - }, - "end": { - "line": 7, - "column": 13, - "offset": 102 - } - } - }, - { - "type": "text", - "value": " character", - "position": { - "start": { - "line": 7, - "column": 13, - "offset": 102 - }, - "end": { - "line": 7, - "column": 23, - "offset": 112 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 90 - }, - "end": { - "line": 7, - "column": 30, - "offset": 119 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 90 - }, - "end": { - "line": 7, - "column": 30, - "offset": 119 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 120 - } - } -} diff --git a/test/fixtures/tree/not-a-link.json b/test/fixtures/tree/not-a-link.json deleted file mode 100644 index 3cbaeeee3..000000000 --- a/test/fixtures/tree/not-a-link.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[test](not a link)", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 20, - "offset": 19 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 20, - "offset": 19 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 1, - "offset": 20 - } - } -} diff --git a/test/fixtures/tree/ordered-and-unordered-lists.json b/test/fixtures/tree/ordered-and-unordered-lists.json deleted file mode 100644 index e3eb9aea9..000000000 --- a/test/fixtures/tree/ordered-and-unordered-lists.json +++ /dev/null @@ -1,3677 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "heading", - "depth": 2, - "children": [ - { - "type": "text", - "value": "Unordered", - "position": { - "start": { - "line": 1, - "column": 4, - "offset": 3 - }, - "end": { - "line": 1, - "column": 13, - "offset": 12 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 13, - "offset": 12 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Asterisks tight:", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 14 - }, - "end": { - "line": 3, - "column": 17, - "offset": 30 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 14 - }, - "end": { - "line": 3, - "column": 17, - "offset": 30 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "asterisk 1", - "position": { - "start": { - "line": 5, - "column": 3, - "offset": 34 - }, - "end": { - "line": 5, - "column": 13, - "offset": 44 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 3, - "offset": 34 - }, - "end": { - "line": 5, - "column": 13, - "offset": 44 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 32 - }, - "end": { - "line": 5, - "column": 13, - "offset": 44 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "asterisk 2", - "position": { - "start": { - "line": 6, - "column": 3, - "offset": 47 - }, - "end": { - "line": 6, - "column": 13, - "offset": 57 - } - } - } - ], - "position": { - "start": { - "line": 6, - "column": 3, - "offset": 47 - }, - "end": { - "line": 6, - "column": 13, - "offset": 57 - } - } - } - ], - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 45 - }, - "end": { - "line": 6, - "column": 13, - "offset": 57 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "asterisk 3", - "position": { - "start": { - "line": 7, - "column": 3, - "offset": 60 - }, - "end": { - "line": 7, - "column": 13, - "offset": 70 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 3, - "offset": 60 - }, - "end": { - "line": 7, - "column": 13, - "offset": 70 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 58 - }, - "end": { - "line": 7, - "column": 13, - "offset": 70 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 32 - }, - "end": { - "line": 7, - "column": 13, - "offset": 70 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Asterisks loose:", - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 73 - }, - "end": { - "line": 10, - "column": 17, - "offset": 89 - } - } - } - ], - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 73 - }, - "end": { - "line": 10, - "column": 17, - "offset": 89 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "asterisk 1", - "position": { - "start": { - "line": 12, - "column": 3, - "offset": 93 - }, - "end": { - "line": 12, - "column": 13, - "offset": 103 - } - } - } - ], - "position": { - "start": { - "line": 12, - "column": 3, - "offset": 93 - }, - "end": { - "line": 12, - "column": 13, - "offset": 103 - } - } - } - ], - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 91 - }, - "end": { - "line": 12, - "column": 13, - "offset": 103 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "asterisk 2", - "position": { - "start": { - "line": 14, - "column": 3, - "offset": 107 - }, - "end": { - "line": 14, - "column": 13, - "offset": 117 - } - } - } - ], - "position": { - "start": { - "line": 14, - "column": 3, - "offset": 107 - }, - "end": { - "line": 14, - "column": 13, - "offset": 117 - } - } - } - ], - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 105 - }, - "end": { - "line": 14, - "column": 13, - "offset": 117 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "asterisk 3", - "position": { - "start": { - "line": 16, - "column": 3, - "offset": 121 - }, - "end": { - "line": 16, - "column": 13, - "offset": 131 - } - } - } - ], - "position": { - "start": { - "line": 16, - "column": 3, - "offset": 121 - }, - "end": { - "line": 16, - "column": 13, - "offset": 131 - } - } - } - ], - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 119 - }, - "end": { - "line": 16, - "column": 13, - "offset": 131 - } - } - } - ], - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 91 - }, - "end": { - "line": 16, - "column": 13, - "offset": 131 - } - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 133 - }, - "end": { - "line": 18, - "column": 6, - "offset": 138 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Pluses tight:", - "position": { - "start": { - "line": 20, - "column": 1, - "offset": 140 - }, - "end": { - "line": 20, - "column": 14, - "offset": 153 - } - } - } - ], - "position": { - "start": { - "line": 20, - "column": 1, - "offset": 140 - }, - "end": { - "line": 20, - "column": 14, - "offset": 153 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Plus 1", - "position": { - "start": { - "line": 22, - "column": 3, - "offset": 157 - }, - "end": { - "line": 22, - "column": 9, - "offset": 163 - } - } - } - ], - "position": { - "start": { - "line": 22, - "column": 3, - "offset": 157 - }, - "end": { - "line": 22, - "column": 9, - "offset": 163 - } - } - } - ], - "position": { - "start": { - "line": 22, - "column": 1, - "offset": 155 - }, - "end": { - "line": 22, - "column": 9, - "offset": 163 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Plus 2", - "position": { - "start": { - "line": 23, - "column": 3, - "offset": 166 - }, - "end": { - "line": 23, - "column": 9, - "offset": 172 - } - } - } - ], - "position": { - "start": { - "line": 23, - "column": 3, - "offset": 166 - }, - "end": { - "line": 23, - "column": 9, - "offset": 172 - } - } - } - ], - "position": { - "start": { - "line": 23, - "column": 1, - "offset": 164 - }, - "end": { - "line": 23, - "column": 9, - "offset": 172 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Plus 3", - "position": { - "start": { - "line": 24, - "column": 3, - "offset": 175 - }, - "end": { - "line": 24, - "column": 9, - "offset": 181 - } - } - } - ], - "position": { - "start": { - "line": 24, - "column": 3, - "offset": 175 - }, - "end": { - "line": 24, - "column": 9, - "offset": 181 - } - } - } - ], - "position": { - "start": { - "line": 24, - "column": 1, - "offset": 173 - }, - "end": { - "line": 24, - "column": 9, - "offset": 181 - } - } - } - ], - "position": { - "start": { - "line": 22, - "column": 1, - "offset": 155 - }, - "end": { - "line": 24, - "column": 9, - "offset": 181 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Pluses loose:", - "position": { - "start": { - "line": 27, - "column": 1, - "offset": 184 - }, - "end": { - "line": 27, - "column": 14, - "offset": 197 - } - } - } - ], - "position": { - "start": { - "line": 27, - "column": 1, - "offset": 184 - }, - "end": { - "line": 27, - "column": 14, - "offset": 197 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Plus 1", - "position": { - "start": { - "line": 29, - "column": 3, - "offset": 201 - }, - "end": { - "line": 29, - "column": 9, - "offset": 207 - } - } - } - ], - "position": { - "start": { - "line": 29, - "column": 3, - "offset": 201 - }, - "end": { - "line": 29, - "column": 9, - "offset": 207 - } - } - } - ], - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 199 - }, - "end": { - "line": 29, - "column": 9, - "offset": 207 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Plus 2", - "position": { - "start": { - "line": 31, - "column": 3, - "offset": 211 - }, - "end": { - "line": 31, - "column": 9, - "offset": 217 - } - } - } - ], - "position": { - "start": { - "line": 31, - "column": 3, - "offset": 211 - }, - "end": { - "line": 31, - "column": 9, - "offset": 217 - } - } - } - ], - "position": { - "start": { - "line": 31, - "column": 1, - "offset": 209 - }, - "end": { - "line": 31, - "column": 9, - "offset": 217 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Plus 3", - "position": { - "start": { - "line": 33, - "column": 3, - "offset": 221 - }, - "end": { - "line": 33, - "column": 9, - "offset": 227 - } - } - } - ], - "position": { - "start": { - "line": 33, - "column": 3, - "offset": 221 - }, - "end": { - "line": 33, - "column": 9, - "offset": 227 - } - } - } - ], - "position": { - "start": { - "line": 33, - "column": 1, - "offset": 219 - }, - "end": { - "line": 33, - "column": 9, - "offset": 227 - } - } - } - ], - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 199 - }, - "end": { - "line": 33, - "column": 9, - "offset": 227 - } - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 35, - "column": 1, - "offset": 229 - }, - "end": { - "line": 35, - "column": 6, - "offset": 234 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Minuses tight:", - "position": { - "start": { - "line": 38, - "column": 1, - "offset": 237 - }, - "end": { - "line": 38, - "column": 15, - "offset": 251 - } - } - } - ], - "position": { - "start": { - "line": 38, - "column": 1, - "offset": 237 - }, - "end": { - "line": 38, - "column": 15, - "offset": 251 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Minus 1", - "position": { - "start": { - "line": 40, - "column": 3, - "offset": 255 - }, - "end": { - "line": 40, - "column": 10, - "offset": 262 - } - } - } - ], - "position": { - "start": { - "line": 40, - "column": 3, - "offset": 255 - }, - "end": { - "line": 40, - "column": 10, - "offset": 262 - } - } - } - ], - "position": { - "start": { - "line": 40, - "column": 1, - "offset": 253 - }, - "end": { - "line": 40, - "column": 10, - "offset": 262 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Minus 2", - "position": { - "start": { - "line": 41, - "column": 3, - "offset": 265 - }, - "end": { - "line": 41, - "column": 10, - "offset": 272 - } - } - } - ], - "position": { - "start": { - "line": 41, - "column": 3, - "offset": 265 - }, - "end": { - "line": 41, - "column": 10, - "offset": 272 - } - } - } - ], - "position": { - "start": { - "line": 41, - "column": 1, - "offset": 263 - }, - "end": { - "line": 41, - "column": 10, - "offset": 272 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Minus 3", - "position": { - "start": { - "line": 42, - "column": 3, - "offset": 275 - }, - "end": { - "line": 42, - "column": 10, - "offset": 282 - } - } - } - ], - "position": { - "start": { - "line": 42, - "column": 3, - "offset": 275 - }, - "end": { - "line": 42, - "column": 10, - "offset": 282 - } - } - } - ], - "position": { - "start": { - "line": 42, - "column": 1, - "offset": 273 - }, - "end": { - "line": 42, - "column": 10, - "offset": 282 - } - } - } - ], - "position": { - "start": { - "line": 40, - "column": 1, - "offset": 253 - }, - "end": { - "line": 42, - "column": 10, - "offset": 282 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Minuses loose:", - "position": { - "start": { - "line": 45, - "column": 1, - "offset": 285 - }, - "end": { - "line": 45, - "column": 15, - "offset": 299 - } - } - } - ], - "position": { - "start": { - "line": 45, - "column": 1, - "offset": 285 - }, - "end": { - "line": 45, - "column": 15, - "offset": 299 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Minus 1", - "position": { - "start": { - "line": 47, - "column": 3, - "offset": 303 - }, - "end": { - "line": 47, - "column": 10, - "offset": 310 - } - } - } - ], - "position": { - "start": { - "line": 47, - "column": 3, - "offset": 303 - }, - "end": { - "line": 47, - "column": 10, - "offset": 310 - } - } - } - ], - "position": { - "start": { - "line": 47, - "column": 1, - "offset": 301 - }, - "end": { - "line": 47, - "column": 10, - "offset": 310 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Minus 2", - "position": { - "start": { - "line": 49, - "column": 3, - "offset": 314 - }, - "end": { - "line": 49, - "column": 10, - "offset": 321 - } - } - } - ], - "position": { - "start": { - "line": 49, - "column": 3, - "offset": 314 - }, - "end": { - "line": 49, - "column": 10, - "offset": 321 - } - } - } - ], - "position": { - "start": { - "line": 49, - "column": 1, - "offset": 312 - }, - "end": { - "line": 49, - "column": 10, - "offset": 321 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Minus 3", - "position": { - "start": { - "line": 51, - "column": 3, - "offset": 325 - }, - "end": { - "line": 51, - "column": 10, - "offset": 332 - } - } - } - ], - "position": { - "start": { - "line": 51, - "column": 3, - "offset": 325 - }, - "end": { - "line": 51, - "column": 10, - "offset": 332 - } - } - } - ], - "position": { - "start": { - "line": 51, - "column": 1, - "offset": 323 - }, - "end": { - "line": 51, - "column": 10, - "offset": 332 - } - } - } - ], - "position": { - "start": { - "line": 47, - "column": 1, - "offset": 301 - }, - "end": { - "line": 51, - "column": 10, - "offset": 332 - } - } - }, - { - "type": "heading", - "depth": 2, - "children": [ - { - "type": "text", - "value": "Ordered", - "position": { - "start": { - "line": 54, - "column": 4, - "offset": 338 - }, - "end": { - "line": 54, - "column": 11, - "offset": 345 - } - } - } - ], - "position": { - "start": { - "line": 54, - "column": 1, - "offset": 335 - }, - "end": { - "line": 54, - "column": 11, - "offset": 345 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Tight:", - "position": { - "start": { - "line": 56, - "column": 1, - "offset": 347 - }, - "end": { - "line": 56, - "column": 7, - "offset": 353 - } - } - } - ], - "position": { - "start": { - "line": 56, - "column": 1, - "offset": 347 - }, - "end": { - "line": 56, - "column": 7, - "offset": 353 - } - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "First", - "position": { - "start": { - "line": 58, - "column": 4, - "offset": 358 - }, - "end": { - "line": 58, - "column": 9, - "offset": 363 - } - } - } - ], - "position": { - "start": { - "line": 58, - "column": 4, - "offset": 358 - }, - "end": { - "line": 58, - "column": 9, - "offset": 363 - } - } - } - ], - "position": { - "start": { - "line": 58, - "column": 1, - "offset": 355 - }, - "end": { - "line": 58, - "column": 9, - "offset": 363 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Second", - "position": { - "start": { - "line": 59, - "column": 4, - "offset": 367 - }, - "end": { - "line": 59, - "column": 10, - "offset": 373 - } - } - } - ], - "position": { - "start": { - "line": 59, - "column": 4, - "offset": 367 - }, - "end": { - "line": 59, - "column": 10, - "offset": 373 - } - } - } - ], - "position": { - "start": { - "line": 59, - "column": 1, - "offset": 364 - }, - "end": { - "line": 59, - "column": 10, - "offset": 373 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Third", - "position": { - "start": { - "line": 60, - "column": 4, - "offset": 377 - }, - "end": { - "line": 60, - "column": 9, - "offset": 382 - } - } - } - ], - "position": { - "start": { - "line": 60, - "column": 4, - "offset": 377 - }, - "end": { - "line": 60, - "column": 9, - "offset": 382 - } - } - } - ], - "position": { - "start": { - "line": 60, - "column": 1, - "offset": 374 - }, - "end": { - "line": 60, - "column": 9, - "offset": 382 - } - } - } - ], - "position": { - "start": { - "line": 58, - "column": 1, - "offset": 355 - }, - "end": { - "line": 60, - "column": 9, - "offset": 382 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "and:", - "position": { - "start": { - "line": 62, - "column": 1, - "offset": 384 - }, - "end": { - "line": 62, - "column": 5, - "offset": 388 - } - } - } - ], - "position": { - "start": { - "line": 62, - "column": 1, - "offset": 384 - }, - "end": { - "line": 62, - "column": 5, - "offset": 388 - } - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "One", - "position": { - "start": { - "line": 64, - "column": 4, - "offset": 393 - }, - "end": { - "line": 64, - "column": 7, - "offset": 396 - } - } - } - ], - "position": { - "start": { - "line": 64, - "column": 4, - "offset": 393 - }, - "end": { - "line": 64, - "column": 7, - "offset": 396 - } - } - } - ], - "position": { - "start": { - "line": 64, - "column": 1, - "offset": 390 - }, - "end": { - "line": 64, - "column": 7, - "offset": 396 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Two", - "position": { - "start": { - "line": 65, - "column": 4, - "offset": 400 - }, - "end": { - "line": 65, - "column": 7, - "offset": 403 - } - } - } - ], - "position": { - "start": { - "line": 65, - "column": 4, - "offset": 400 - }, - "end": { - "line": 65, - "column": 7, - "offset": 403 - } - } - } - ], - "position": { - "start": { - "line": 65, - "column": 1, - "offset": 397 - }, - "end": { - "line": 65, - "column": 7, - "offset": 403 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Three", - "position": { - "start": { - "line": 66, - "column": 4, - "offset": 407 - }, - "end": { - "line": 66, - "column": 9, - "offset": 412 - } - } - } - ], - "position": { - "start": { - "line": 66, - "column": 4, - "offset": 407 - }, - "end": { - "line": 66, - "column": 9, - "offset": 412 - } - } - } - ], - "position": { - "start": { - "line": 66, - "column": 1, - "offset": 404 - }, - "end": { - "line": 66, - "column": 9, - "offset": 412 - } - } - } - ], - "position": { - "start": { - "line": 64, - "column": 1, - "offset": 390 - }, - "end": { - "line": 66, - "column": 9, - "offset": 412 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Loose using tabs:", - "position": { - "start": { - "line": 69, - "column": 1, - "offset": 415 - }, - "end": { - "line": 69, - "column": 18, - "offset": 432 - } - } - } - ], - "position": { - "start": { - "line": 69, - "column": 1, - "offset": 415 - }, - "end": { - "line": 69, - "column": 18, - "offset": 432 - } - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "First", - "position": { - "start": { - "line": 71, - "column": 4, - "offset": 437 - }, - "end": { - "line": 71, - "column": 9, - "offset": 442 - } - } - } - ], - "position": { - "start": { - "line": 71, - "column": 4, - "offset": 437 - }, - "end": { - "line": 71, - "column": 9, - "offset": 442 - } - } - } - ], - "position": { - "start": { - "line": 71, - "column": 1, - "offset": 434 - }, - "end": { - "line": 71, - "column": 9, - "offset": 442 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Second", - "position": { - "start": { - "line": 73, - "column": 4, - "offset": 447 - }, - "end": { - "line": 73, - "column": 10, - "offset": 453 - } - } - } - ], - "position": { - "start": { - "line": 73, - "column": 4, - "offset": 447 - }, - "end": { - "line": 73, - "column": 10, - "offset": 453 - } - } - } - ], - "position": { - "start": { - "line": 73, - "column": 1, - "offset": 444 - }, - "end": { - "line": 73, - "column": 10, - "offset": 453 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Third", - "position": { - "start": { - "line": 75, - "column": 4, - "offset": 458 - }, - "end": { - "line": 75, - "column": 9, - "offset": 463 - } - } - } - ], - "position": { - "start": { - "line": 75, - "column": 4, - "offset": 458 - }, - "end": { - "line": 75, - "column": 9, - "offset": 463 - } - } - } - ], - "position": { - "start": { - "line": 75, - "column": 1, - "offset": 455 - }, - "end": { - "line": 75, - "column": 9, - "offset": 463 - } - } - } - ], - "position": { - "start": { - "line": 71, - "column": 1, - "offset": 434 - }, - "end": { - "line": 75, - "column": 9, - "offset": 463 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "and using spaces:", - "position": { - "start": { - "line": 77, - "column": 1, - "offset": 465 - }, - "end": { - "line": 77, - "column": 18, - "offset": 482 - } - } - } - ], - "position": { - "start": { - "line": 77, - "column": 1, - "offset": 465 - }, - "end": { - "line": 77, - "column": 18, - "offset": 482 - } - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "One", - "position": { - "start": { - "line": 79, - "column": 4, - "offset": 487 - }, - "end": { - "line": 79, - "column": 7, - "offset": 490 - } - } - } - ], - "position": { - "start": { - "line": 79, - "column": 4, - "offset": 487 - }, - "end": { - "line": 79, - "column": 7, - "offset": 490 - } - } - } - ], - "position": { - "start": { - "line": 79, - "column": 1, - "offset": 484 - }, - "end": { - "line": 79, - "column": 7, - "offset": 490 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Two", - "position": { - "start": { - "line": 81, - "column": 4, - "offset": 495 - }, - "end": { - "line": 81, - "column": 7, - "offset": 498 - } - } - } - ], - "position": { - "start": { - "line": 81, - "column": 4, - "offset": 495 - }, - "end": { - "line": 81, - "column": 7, - "offset": 498 - } - } - } - ], - "position": { - "start": { - "line": 81, - "column": 1, - "offset": 492 - }, - "end": { - "line": 81, - "column": 7, - "offset": 498 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Three", - "position": { - "start": { - "line": 83, - "column": 4, - "offset": 503 - }, - "end": { - "line": 83, - "column": 9, - "offset": 508 - } - } - } - ], - "position": { - "start": { - "line": 83, - "column": 4, - "offset": 503 - }, - "end": { - "line": 83, - "column": 9, - "offset": 508 - } - } - } - ], - "position": { - "start": { - "line": 83, - "column": 1, - "offset": 500 - }, - "end": { - "line": 83, - "column": 9, - "offset": 508 - } - } - } - ], - "position": { - "start": { - "line": 79, - "column": 1, - "offset": 484 - }, - "end": { - "line": 83, - "column": 9, - "offset": 508 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Multiple paragraphs:", - "position": { - "start": { - "line": 85, - "column": 1, - "offset": 510 - }, - "end": { - "line": 85, - "column": 21, - "offset": 530 - } - } - } - ], - "position": { - "start": { - "line": 85, - "column": 1, - "offset": 510 - }, - "end": { - "line": 85, - "column": 21, - "offset": 530 - } - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Item 1, graf one.", - "position": { - "start": { - "line": 87, - "column": 4, - "offset": 535 - }, - "end": { - "line": 87, - "column": 21, - "offset": 552 - } - } - } - ], - "position": { - "start": { - "line": 87, - "column": 4, - "offset": 535 - }, - "end": { - "line": 87, - "column": 21, - "offset": 552 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Item 2. graf two. The quick brown fox jumped over the lazy dog's\nback.", - "position": { - "start": { - "line": 89, - "column": 2, - "offset": 555 - }, - "end": { - "line": 90, - "column": 7, - "offset": 626 - } - } - } - ], - "position": { - "start": { - "line": 89, - "column": 2, - "offset": 555 - }, - "end": { - "line": 90, - "column": 7, - "offset": 626 - } - } - } - ], - "position": { - "start": { - "line": 87, - "column": 1, - "offset": 532 - }, - "end": { - "line": 90, - "column": 7, - "offset": 626 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Item 2.", - "position": { - "start": { - "line": 92, - "column": 4, - "offset": 632 - }, - "end": { - "line": 92, - "column": 11, - "offset": 639 - } - } - } - ], - "position": { - "start": { - "line": 92, - "column": 4, - "offset": 632 - }, - "end": { - "line": 92, - "column": 11, - "offset": 639 - } - } - } - ], - "position": { - "start": { - "line": 92, - "column": 1, - "offset": 629 - }, - "end": { - "line": 92, - "column": 11, - "offset": 639 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Item 3.", - "position": { - "start": { - "line": 94, - "column": 4, - "offset": 644 - }, - "end": { - "line": 94, - "column": 11, - "offset": 651 - } - } - } - ], - "position": { - "start": { - "line": 94, - "column": 4, - "offset": 644 - }, - "end": { - "line": 94, - "column": 11, - "offset": 651 - } - } - } - ], - "position": { - "start": { - "line": 94, - "column": 1, - "offset": 641 - }, - "end": { - "line": 94, - "column": 11, - "offset": 651 - } - } - } - ], - "position": { - "start": { - "line": 87, - "column": 1, - "offset": 532 - }, - "end": { - "line": 94, - "column": 11, - "offset": 651 - } - } - }, - { - "type": "heading", - "depth": 2, - "children": [ - { - "type": "text", - "value": "Nested", - "position": { - "start": { - "line": 98, - "column": 4, - "offset": 658 - }, - "end": { - "line": 98, - "column": 10, - "offset": 664 - } - } - } - ], - "position": { - "start": { - "line": 98, - "column": 1, - "offset": 655 - }, - "end": { - "line": 98, - "column": 10, - "offset": 664 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Tab", - "position": { - "start": { - "line": 100, - "column": 3, - "offset": 668 - }, - "end": { - "line": 100, - "column": 6, - "offset": 671 - } - } - } - ], - "position": { - "start": { - "line": 100, - "column": 3, - "offset": 668 - }, - "end": { - "line": 100, - "column": 6, - "offset": 671 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Tab", - "position": { - "start": { - "line": 101, - "column": 4, - "offset": 675 - }, - "end": { - "line": 101, - "column": 7, - "offset": 678 - } - } - } - ], - "position": { - "start": { - "line": 101, - "column": 4, - "offset": 675 - }, - "end": { - "line": 101, - "column": 7, - "offset": 678 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Tab", - "position": { - "start": { - "line": 102, - "column": 5, - "offset": 683 - }, - "end": { - "line": 102, - "column": 8, - "offset": 686 - } - } - } - ], - "position": { - "start": { - "line": 102, - "column": 5, - "offset": 683 - }, - "end": { - "line": 102, - "column": 8, - "offset": 686 - } - } - } - ], - "position": { - "start": { - "line": 102, - "column": 3, - "offset": 681 - }, - "end": { - "line": 102, - "column": 8, - "offset": 686 - } - } - } - ], - "position": { - "start": { - "line": 102, - "column": 3, - "offset": 681 - }, - "end": { - "line": 102, - "column": 8, - "offset": 686 - } - } - } - ], - "position": { - "start": { - "line": 101, - "column": 2, - "offset": 673 - }, - "end": { - "line": 102, - "column": 8, - "offset": 686 - } - } - } - ], - "position": { - "start": { - "line": 101, - "column": 2, - "offset": 673 - }, - "end": { - "line": 102, - "column": 8, - "offset": 686 - } - } - } - ], - "position": { - "start": { - "line": 100, - "column": 1, - "offset": 666 - }, - "end": { - "line": 102, - "column": 8, - "offset": 686 - } - } - } - ], - "position": { - "start": { - "line": 100, - "column": 1, - "offset": 666 - }, - "end": { - "line": 102, - "column": 8, - "offset": 686 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Here's another:", - "position": { - "start": { - "line": 104, - "column": 1, - "offset": 688 - }, - "end": { - "line": 104, - "column": 16, - "offset": 703 - } - } - } - ], - "position": { - "start": { - "line": 104, - "column": 1, - "offset": 688 - }, - "end": { - "line": 104, - "column": 16, - "offset": 703 - } - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "First", - "position": { - "start": { - "line": 106, - "column": 4, - "offset": 708 - }, - "end": { - "line": 106, - "column": 9, - "offset": 713 - } - } - } - ], - "position": { - "start": { - "line": 106, - "column": 4, - "offset": 708 - }, - "end": { - "line": 106, - "column": 9, - "offset": 713 - } - } - } - ], - "position": { - "start": { - "line": 106, - "column": 1, - "offset": 705 - }, - "end": { - "line": 106, - "column": 9, - "offset": 713 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Second:", - "position": { - "start": { - "line": 107, - "column": 4, - "offset": 717 - }, - "end": { - "line": 107, - "column": 11, - "offset": 724 - } - } - } - ], - "position": { - "start": { - "line": 107, - "column": 4, - "offset": 717 - }, - "end": { - "line": 107, - "column": 11, - "offset": 724 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Fee", - "position": { - "start": { - "line": 108, - "column": 4, - "offset": 728 - }, - "end": { - "line": 108, - "column": 7, - "offset": 731 - } - } - } - ], - "position": { - "start": { - "line": 108, - "column": 4, - "offset": 728 - }, - "end": { - "line": 108, - "column": 7, - "offset": 731 - } - } - } - ], - "position": { - "start": { - "line": 108, - "column": 2, - "offset": 726 - }, - "end": { - "line": 108, - "column": 7, - "offset": 731 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Fie", - "position": { - "start": { - "line": 109, - "column": 4, - "offset": 735 - }, - "end": { - "line": 109, - "column": 7, - "offset": 738 - } - } - } - ], - "position": { - "start": { - "line": 109, - "column": 4, - "offset": 735 - }, - "end": { - "line": 109, - "column": 7, - "offset": 738 - } - } - } - ], - "position": { - "start": { - "line": 109, - "column": 2, - "offset": 733 - }, - "end": { - "line": 109, - "column": 7, - "offset": 738 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Foe", - "position": { - "start": { - "line": 110, - "column": 4, - "offset": 742 - }, - "end": { - "line": 110, - "column": 7, - "offset": 745 - } - } - } - ], - "position": { - "start": { - "line": 110, - "column": 4, - "offset": 742 - }, - "end": { - "line": 110, - "column": 7, - "offset": 745 - } - } - } - ], - "position": { - "start": { - "line": 110, - "column": 2, - "offset": 740 - }, - "end": { - "line": 110, - "column": 7, - "offset": 745 - } - } - } - ], - "position": { - "start": { - "line": 108, - "column": 2, - "offset": 726 - }, - "end": { - "line": 110, - "column": 7, - "offset": 745 - } - } - } - ], - "position": { - "start": { - "line": 107, - "column": 1, - "offset": 714 - }, - "end": { - "line": 110, - "column": 7, - "offset": 745 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Third", - "position": { - "start": { - "line": 111, - "column": 4, - "offset": 749 - }, - "end": { - "line": 111, - "column": 9, - "offset": 754 - } - } - } - ], - "position": { - "start": { - "line": 111, - "column": 4, - "offset": 749 - }, - "end": { - "line": 111, - "column": 9, - "offset": 754 - } - } - } - ], - "position": { - "start": { - "line": 111, - "column": 1, - "offset": 746 - }, - "end": { - "line": 111, - "column": 9, - "offset": 754 - } - } - } - ], - "position": { - "start": { - "line": 106, - "column": 1, - "offset": 705 - }, - "end": { - "line": 111, - "column": 9, - "offset": 754 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Same thing but with paragraphs:", - "position": { - "start": { - "line": 113, - "column": 1, - "offset": 756 - }, - "end": { - "line": 113, - "column": 32, - "offset": 787 - } - } - } - ], - "position": { - "start": { - "line": 113, - "column": 1, - "offset": 756 - }, - "end": { - "line": 113, - "column": 32, - "offset": 787 - } - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "First", - "position": { - "start": { - "line": 115, - "column": 4, - "offset": 792 - }, - "end": { - "line": 115, - "column": 9, - "offset": 797 - } - } - } - ], - "position": { - "start": { - "line": 115, - "column": 4, - "offset": 792 - }, - "end": { - "line": 115, - "column": 9, - "offset": 797 - } - } - } - ], - "position": { - "start": { - "line": 115, - "column": 1, - "offset": 789 - }, - "end": { - "line": 115, - "column": 9, - "offset": 797 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Second:", - "position": { - "start": { - "line": 117, - "column": 4, - "offset": 802 - }, - "end": { - "line": 117, - "column": 11, - "offset": 809 - } - } - } - ], - "position": { - "start": { - "line": 117, - "column": 4, - "offset": 802 - }, - "end": { - "line": 117, - "column": 11, - "offset": 809 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Fee", - "position": { - "start": { - "line": 118, - "column": 4, - "offset": 813 - }, - "end": { - "line": 118, - "column": 7, - "offset": 816 - } - } - } - ], - "position": { - "start": { - "line": 118, - "column": 4, - "offset": 813 - }, - "end": { - "line": 118, - "column": 7, - "offset": 816 - } - } - } - ], - "position": { - "start": { - "line": 118, - "column": 2, - "offset": 811 - }, - "end": { - "line": 118, - "column": 7, - "offset": 816 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Fie", - "position": { - "start": { - "line": 119, - "column": 4, - "offset": 820 - }, - "end": { - "line": 119, - "column": 7, - "offset": 823 - } - } - } - ], - "position": { - "start": { - "line": 119, - "column": 4, - "offset": 820 - }, - "end": { - "line": 119, - "column": 7, - "offset": 823 - } - } - } - ], - "position": { - "start": { - "line": 119, - "column": 2, - "offset": 818 - }, - "end": { - "line": 119, - "column": 7, - "offset": 823 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Foe", - "position": { - "start": { - "line": 120, - "column": 4, - "offset": 827 - }, - "end": { - "line": 120, - "column": 7, - "offset": 830 - } - } - } - ], - "position": { - "start": { - "line": 120, - "column": 4, - "offset": 827 - }, - "end": { - "line": 120, - "column": 7, - "offset": 830 - } - } - } - ], - "position": { - "start": { - "line": 120, - "column": 2, - "offset": 825 - }, - "end": { - "line": 120, - "column": 7, - "offset": 830 - } - } - } - ], - "position": { - "start": { - "line": 118, - "column": 2, - "offset": 811 - }, - "end": { - "line": 120, - "column": 7, - "offset": 830 - } - } - } - ], - "position": { - "start": { - "line": 117, - "column": 1, - "offset": 799 - }, - "end": { - "line": 120, - "column": 7, - "offset": 830 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Third", - "position": { - "start": { - "line": 122, - "column": 4, - "offset": 835 - }, - "end": { - "line": 122, - "column": 9, - "offset": 840 - } - } - } - ], - "position": { - "start": { - "line": 122, - "column": 4, - "offset": 835 - }, - "end": { - "line": 122, - "column": 9, - "offset": 840 - } - } - } - ], - "position": { - "start": { - "line": 122, - "column": 1, - "offset": 832 - }, - "end": { - "line": 122, - "column": 9, - "offset": 840 - } - } - } - ], - "position": { - "start": { - "line": 115, - "column": 1, - "offset": 789 - }, - "end": { - "line": 122, - "column": 9, - "offset": 840 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This was an error in Markdown 1.0.1:", - "position": { - "start": { - "line": 125, - "column": 1, - "offset": 843 - }, - "end": { - "line": 125, - "column": 37, - "offset": 879 - } - } - } - ], - "position": { - "start": { - "line": 125, - "column": 1, - "offset": 843 - }, - "end": { - "line": 125, - "column": 37, - "offset": 879 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "this", - "position": { - "start": { - "line": 127, - "column": 3, - "offset": 883 - }, - "end": { - "line": 127, - "column": 7, - "offset": 887 - } - } - } - ], - "position": { - "start": { - "line": 127, - "column": 3, - "offset": 883 - }, - "end": { - "line": 127, - "column": 7, - "offset": 887 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "sub", - "position": { - "start": { - "line": 129, - "column": 4, - "offset": 892 - }, - "end": { - "line": 129, - "column": 7, - "offset": 895 - } - } - } - ], - "position": { - "start": { - "line": 129, - "column": 4, - "offset": 892 - }, - "end": { - "line": 129, - "column": 7, - "offset": 895 - } - } - } - ], - "position": { - "start": { - "line": 129, - "column": 2, - "offset": 890 - }, - "end": { - "line": 129, - "column": 7, - "offset": 895 - } - } - } - ], - "position": { - "start": { - "line": 129, - "column": 2, - "offset": 890 - }, - "end": { - "line": 129, - "column": 7, - "offset": 895 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "that", - "position": { - "start": { - "line": 131, - "column": 2, - "offset": 898 - }, - "end": { - "line": 131, - "column": 6, - "offset": 902 - } - } - } - ], - "position": { - "start": { - "line": 131, - "column": 2, - "offset": 898 - }, - "end": { - "line": 131, - "column": 6, - "offset": 902 - } - } - } - ], - "position": { - "start": { - "line": 127, - "column": 1, - "offset": 881 - }, - "end": { - "line": 131, - "column": 6, - "offset": 902 - } - } - } - ], - "position": { - "start": { - "line": 127, - "column": 1, - "offset": 881 - }, - "end": { - "line": 131, - "column": 6, - "offset": 902 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 132, - "column": 1, - "offset": 903 - } - } -} diff --git a/test/fixtures/tree/ordered-different-types.nooutput.json b/test/fixtures/tree/ordered-different-types.nooutput.json deleted file mode 100644 index 7ae58608b..000000000 --- a/test/fixtures/tree/ordered-different-types.nooutput.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo", - "position": { - "start": { - "line": 1, - "column": 4, - "offset": 3 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 4, - "offset": 3 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "bar", - "position": { - "start": { - "line": 2, - "column": 4, - "offset": 10 - }, - "end": { - "line": 2, - "column": 7, - "offset": 13 - } - } - } - ], - "position": { - "start": { - "line": 2, - "column": 4, - "offset": 10 - }, - "end": { - "line": 2, - "column": 7, - "offset": 13 - } - } - } - ], - "position": { - "start": { - "line": 2, - "column": 1, - "offset": 7 - }, - "end": { - "line": 2, - "column": 7, - "offset": 13 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 7, - "offset": 13 - } - } - }, - { - "type": "list", - "ordered": true, - "start": 3, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "baz", - "position": { - "start": { - "line": 3, - "column": 4, - "offset": 17 - }, - "end": { - "line": 3, - "column": 7, - "offset": 20 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 4, - "offset": 17 - }, - "end": { - "line": 3, - "column": 7, - "offset": 20 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 14 - }, - "end": { - "line": 3, - "column": 7, - "offset": 20 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 14 - }, - "end": { - "line": 3, - "column": 7, - "offset": 20 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 4, - "column": 1, - "offset": 21 - } - } -} diff --git a/test/fixtures/tree/ordered-with-parentheses.json b/test/fixtures/tree/ordered-with-parentheses.json deleted file mode 100644 index 5293b8b5a..000000000 --- a/test/fixtures/tree/ordered-with-parentheses.json +++ /dev/null @@ -1,1129 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "heading", - "depth": 2, - "children": [ - { - "type": "text", - "value": "Ordered", - "position": { - "start": { - "line": 1, - "column": 4, - "offset": 3 - }, - "end": { - "line": 1, - "column": 11, - "offset": 10 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 11, - "offset": 10 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Tight:", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 12 - }, - "end": { - "line": 3, - "column": 7, - "offset": 18 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 12 - }, - "end": { - "line": 3, - "column": 7, - "offset": 18 - } - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "First", - "position": { - "start": { - "line": 5, - "column": 4, - "offset": 23 - }, - "end": { - "line": 5, - "column": 9, - "offset": 28 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 4, - "offset": 23 - }, - "end": { - "line": 5, - "column": 9, - "offset": 28 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 20 - }, - "end": { - "line": 5, - "column": 9, - "offset": 28 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Second", - "position": { - "start": { - "line": 6, - "column": 4, - "offset": 32 - }, - "end": { - "line": 6, - "column": 10, - "offset": 38 - } - } - } - ], - "position": { - "start": { - "line": 6, - "column": 4, - "offset": 32 - }, - "end": { - "line": 6, - "column": 10, - "offset": 38 - } - } - } - ], - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 29 - }, - "end": { - "line": 6, - "column": 10, - "offset": 38 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Third", - "position": { - "start": { - "line": 7, - "column": 4, - "offset": 42 - }, - "end": { - "line": 7, - "column": 9, - "offset": 47 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 4, - "offset": 42 - }, - "end": { - "line": 7, - "column": 9, - "offset": 47 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 39 - }, - "end": { - "line": 7, - "column": 9, - "offset": 47 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 20 - }, - "end": { - "line": 7, - "column": 9, - "offset": 47 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "and:", - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 49 - }, - "end": { - "line": 9, - "column": 5, - "offset": 53 - } - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 49 - }, - "end": { - "line": 9, - "column": 5, - "offset": 53 - } - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "One", - "position": { - "start": { - "line": 11, - "column": 4, - "offset": 58 - }, - "end": { - "line": 11, - "column": 7, - "offset": 61 - } - } - } - ], - "position": { - "start": { - "line": 11, - "column": 4, - "offset": 58 - }, - "end": { - "line": 11, - "column": 7, - "offset": 61 - } - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 55 - }, - "end": { - "line": 11, - "column": 7, - "offset": 61 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Two", - "position": { - "start": { - "line": 12, - "column": 4, - "offset": 65 - }, - "end": { - "line": 12, - "column": 7, - "offset": 68 - } - } - } - ], - "position": { - "start": { - "line": 12, - "column": 4, - "offset": 65 - }, - "end": { - "line": 12, - "column": 7, - "offset": 68 - } - } - } - ], - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 62 - }, - "end": { - "line": 12, - "column": 7, - "offset": 68 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Three", - "position": { - "start": { - "line": 13, - "column": 4, - "offset": 72 - }, - "end": { - "line": 13, - "column": 9, - "offset": 77 - } - } - } - ], - "position": { - "start": { - "line": 13, - "column": 4, - "offset": 72 - }, - "end": { - "line": 13, - "column": 9, - "offset": 77 - } - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 69 - }, - "end": { - "line": 13, - "column": 9, - "offset": 77 - } - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 55 - }, - "end": { - "line": 13, - "column": 9, - "offset": 77 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Loose using tabs:", - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 79 - }, - "end": { - "line": 15, - "column": 18, - "offset": 96 - } - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 79 - }, - "end": { - "line": 15, - "column": 18, - "offset": 96 - } - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "First", - "position": { - "start": { - "line": 17, - "column": 4, - "offset": 101 - }, - "end": { - "line": 17, - "column": 9, - "offset": 106 - } - } - } - ], - "position": { - "start": { - "line": 17, - "column": 4, - "offset": 101 - }, - "end": { - "line": 17, - "column": 9, - "offset": 106 - } - } - } - ], - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 98 - }, - "end": { - "line": 17, - "column": 9, - "offset": 106 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Second", - "position": { - "start": { - "line": 19, - "column": 4, - "offset": 111 - }, - "end": { - "line": 19, - "column": 10, - "offset": 117 - } - } - } - ], - "position": { - "start": { - "line": 19, - "column": 4, - "offset": 111 - }, - "end": { - "line": 19, - "column": 10, - "offset": 117 - } - } - } - ], - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 108 - }, - "end": { - "line": 19, - "column": 10, - "offset": 117 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Third", - "position": { - "start": { - "line": 21, - "column": 4, - "offset": 122 - }, - "end": { - "line": 21, - "column": 9, - "offset": 127 - } - } - } - ], - "position": { - "start": { - "line": 21, - "column": 4, - "offset": 122 - }, - "end": { - "line": 21, - "column": 9, - "offset": 127 - } - } - } - ], - "position": { - "start": { - "line": 21, - "column": 1, - "offset": 119 - }, - "end": { - "line": 21, - "column": 9, - "offset": 127 - } - } - } - ], - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 98 - }, - "end": { - "line": 21, - "column": 9, - "offset": 127 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "and using spaces:", - "position": { - "start": { - "line": 23, - "column": 1, - "offset": 129 - }, - "end": { - "line": 23, - "column": 18, - "offset": 146 - } - } - } - ], - "position": { - "start": { - "line": 23, - "column": 1, - "offset": 129 - }, - "end": { - "line": 23, - "column": 18, - "offset": 146 - } - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "One", - "position": { - "start": { - "line": 25, - "column": 4, - "offset": 151 - }, - "end": { - "line": 25, - "column": 7, - "offset": 154 - } - } - } - ], - "position": { - "start": { - "line": 25, - "column": 4, - "offset": 151 - }, - "end": { - "line": 25, - "column": 7, - "offset": 154 - } - } - } - ], - "position": { - "start": { - "line": 25, - "column": 1, - "offset": 148 - }, - "end": { - "line": 25, - "column": 7, - "offset": 154 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Two", - "position": { - "start": { - "line": 27, - "column": 4, - "offset": 159 - }, - "end": { - "line": 27, - "column": 7, - "offset": 162 - } - } - } - ], - "position": { - "start": { - "line": 27, - "column": 4, - "offset": 159 - }, - "end": { - "line": 27, - "column": 7, - "offset": 162 - } - } - } - ], - "position": { - "start": { - "line": 27, - "column": 1, - "offset": 156 - }, - "end": { - "line": 27, - "column": 7, - "offset": 162 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Three", - "position": { - "start": { - "line": 29, - "column": 4, - "offset": 167 - }, - "end": { - "line": 29, - "column": 9, - "offset": 172 - } - } - } - ], - "position": { - "start": { - "line": 29, - "column": 4, - "offset": 167 - }, - "end": { - "line": 29, - "column": 9, - "offset": 172 - } - } - } - ], - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 164 - }, - "end": { - "line": 29, - "column": 9, - "offset": 172 - } - } - } - ], - "position": { - "start": { - "line": 25, - "column": 1, - "offset": 148 - }, - "end": { - "line": 29, - "column": 9, - "offset": 172 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Multiple paragraphs:", - "position": { - "start": { - "line": 31, - "column": 1, - "offset": 174 - }, - "end": { - "line": 31, - "column": 21, - "offset": 194 - } - } - } - ], - "position": { - "start": { - "line": 31, - "column": 1, - "offset": 174 - }, - "end": { - "line": 31, - "column": 21, - "offset": 194 - } - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Item 1, graf one.", - "position": { - "start": { - "line": 33, - "column": 4, - "offset": 199 - }, - "end": { - "line": 33, - "column": 21, - "offset": 216 - } - } - } - ], - "position": { - "start": { - "line": 33, - "column": 4, - "offset": 199 - }, - "end": { - "line": 33, - "column": 21, - "offset": 216 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Item 2. graf two. The quick brown fox jumped over the lazy dog's\nback.", - "position": { - "start": { - "line": 35, - "column": 2, - "offset": 219 - }, - "end": { - "line": 36, - "column": 7, - "offset": 290 - } - } - } - ], - "position": { - "start": { - "line": 35, - "column": 2, - "offset": 219 - }, - "end": { - "line": 36, - "column": 7, - "offset": 290 - } - } - } - ], - "position": { - "start": { - "line": 33, - "column": 1, - "offset": 196 - }, - "end": { - "line": 36, - "column": 7, - "offset": 290 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Item 2.", - "position": { - "start": { - "line": 38, - "column": 4, - "offset": 296 - }, - "end": { - "line": 38, - "column": 11, - "offset": 303 - } - } - } - ], - "position": { - "start": { - "line": 38, - "column": 4, - "offset": 296 - }, - "end": { - "line": 38, - "column": 11, - "offset": 303 - } - } - } - ], - "position": { - "start": { - "line": 38, - "column": 1, - "offset": 293 - }, - "end": { - "line": 38, - "column": 11, - "offset": 303 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Item 3.", - "position": { - "start": { - "line": 40, - "column": 4, - "offset": 308 - }, - "end": { - "line": 40, - "column": 11, - "offset": 315 - } - } - } - ], - "position": { - "start": { - "line": 40, - "column": 4, - "offset": 308 - }, - "end": { - "line": 40, - "column": 11, - "offset": 315 - } - } - } - ], - "position": { - "start": { - "line": 40, - "column": 1, - "offset": 305 - }, - "end": { - "line": 40, - "column": 11, - "offset": 315 - } - } - } - ], - "position": { - "start": { - "line": 33, - "column": 1, - "offset": 196 - }, - "end": { - "line": 40, - "column": 11, - "offset": 315 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 41, - "column": 1, - "offset": 316 - } - } -} diff --git a/test/fixtures/tree/paragraphs-and-indentation.json b/test/fixtures/tree/paragraphs-and-indentation.json deleted file mode 100644 index 9a650a533..000000000 --- a/test/fixtures/tree/paragraphs-and-indentation.json +++ /dev/null @@ -1,514 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Without lines.", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 17, - "offset": 16 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 17, - "offset": 16 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This is a paragraph\nand this is further text", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 18 - }, - "end": { - "line": 4, - "column": 29, - "offset": 66 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 18 - }, - "end": { - "line": 4, - "column": 29, - "offset": 66 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This is a paragraph\nand this is further text", - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 68 - }, - "end": { - "line": 7, - "column": 28, - "offset": 115 - } - } - } - ], - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 68 - }, - "end": { - "line": 7, - "column": 28, - "offset": 115 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This is a paragraph", - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 117 - }, - "end": { - "line": 9, - "column": 20, - "offset": 136 - } - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 117 - }, - "end": { - "line": 9, - "column": 20, - "offset": 136 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "and this is a new paragraph", - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 142 - }, - "end": { - "line": 11, - "column": 28, - "offset": 169 - } - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 142 - }, - "end": { - "line": 11, - "column": 28, - "offset": 169 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This is a paragraph with some asterisks\n***", - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 171 - }, - "end": { - "line": 14, - "column": 8, - "offset": 218 - } - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 171 - }, - "end": { - "line": 14, - "column": 8, - "offset": 218 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This is a paragraph followed by a horizontal rule", - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 220 - }, - "end": { - "line": 16, - "column": 50, - "offset": 269 - } - } - } - ], - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 220 - }, - "end": { - "line": 16, - "column": 50, - "offset": 269 - } - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 17, - "column": 4, - "offset": 273 - }, - "end": { - "line": 17, - "column": 7, - "offset": 276 - } - } - }, - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "With lines.", - "position": { - "start": { - "line": 19, - "column": 3, - "offset": 280 - }, - "end": { - "line": 19, - "column": 14, - "offset": 291 - } - } - } - ], - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 278 - }, - "end": { - "line": 19, - "column": 14, - "offset": 291 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This is a paragraph", - "position": { - "start": { - "line": 21, - "column": 1, - "offset": 293 - }, - "end": { - "line": 21, - "column": 20, - "offset": 312 - } - } - } - ], - "position": { - "start": { - "line": 21, - "column": 1, - "offset": 293 - }, - "end": { - "line": 21, - "column": 20, - "offset": 312 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "and this is code", - "position": { - "start": { - "line": 23, - "column": 1, - "offset": 314 - }, - "end": { - "line": 23, - "column": 21, - "offset": 334 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This is a paragraph", - "position": { - "start": { - "line": 25, - "column": 1, - "offset": 336 - }, - "end": { - "line": 25, - "column": 20, - "offset": 355 - } - } - } - ], - "position": { - "start": { - "line": 25, - "column": 1, - "offset": 336 - }, - "end": { - "line": 25, - "column": 20, - "offset": 355 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "and this is a new paragraph", - "position": { - "start": { - "line": 27, - "column": 4, - "offset": 360 - }, - "end": { - "line": 27, - "column": 31, - "offset": 387 - } - } - } - ], - "position": { - "start": { - "line": 27, - "column": 4, - "offset": 360 - }, - "end": { - "line": 27, - "column": 31, - "offset": 387 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This is a paragraph with some asterisks in a code block", - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 389 - }, - "end": { - "line": 29, - "column": 56, - "offset": 444 - } - } - } - ], - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 389 - }, - "end": { - "line": 29, - "column": 56, - "offset": 444 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "***", - "position": { - "start": { - "line": 31, - "column": 1, - "offset": 446 - }, - "end": { - "line": 31, - "column": 8, - "offset": 453 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This is a paragraph followed by a horizontal rule", - "position": { - "start": { - "line": 33, - "column": 1, - "offset": 455 - }, - "end": { - "line": 33, - "column": 50, - "offset": 504 - } - } - } - ], - "position": { - "start": { - "line": 33, - "column": 1, - "offset": 455 - }, - "end": { - "line": 33, - "column": 50, - "offset": 504 - } - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 35, - "column": 4, - "offset": 509 - }, - "end": { - "line": 35, - "column": 7, - "offset": 512 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 37, - "column": 1, - "offset": 514 - } - } -} diff --git a/test/fixtures/tree/paragraphs-empty.json b/test/fixtures/tree/paragraphs-empty.json deleted file mode 100644 index 65a953cd5..000000000 --- a/test/fixtures/tree/paragraphs-empty.json +++ /dev/null @@ -1,150 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "aaa", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 4 - }, - "end": { - "line": 3, - "column": 4, - "offset": 7 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 4 - }, - "end": { - "line": 3, - "column": 4, - "offset": 7 - } - } - }, - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "aaa", - "position": { - "start": { - "line": 6, - "column": 3, - "offset": 14 - }, - "end": { - "line": 6, - "column": 6, - "offset": 17 - } - } - } - ], - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 12 - }, - "end": { - "line": 6, - "column": 6, - "offset": 17 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "bbb", - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 23 - }, - "end": { - "line": 10, - "column": 4, - "offset": 26 - } - } - } - ], - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 23 - }, - "end": { - "line": 10, - "column": 4, - "offset": 26 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "ccc", - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 30 - }, - "end": { - "line": 12, - "column": 4, - "offset": 33 - } - } - } - ], - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 30 - }, - "end": { - "line": 12, - "column": 4, - "offset": 33 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 12, - "column": 4, - "offset": 33 - } - } -} diff --git a/test/fixtures/tree/ref-paren.json b/test/fixtures/tree/ref-paren.json deleted file mode 100644 index 0c22e5fe0..000000000 --- a/test/fixtures/tree/ref-paren.json +++ /dev/null @@ -1,89 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "children": [ - { - "type": "text", - "value": "hi", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 4, - "offset": 3 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 5, - "offset": 4 - } - }, - "label": "hi", - "identifier": "hi", - "referenceType": "shortcut" - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 5, - "offset": 4 - } - } - }, - { - "type": "definition", - "identifier": "hi", - "label": "hi", - "title": "there", - "url": "/url", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 6 - }, - "end": { - "line": 3, - "column": 19, - "offset": 24 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 4, - "column": 1, - "offset": 25 - } - } -} diff --git a/test/fixtures/tree/reference-image-empty-alt.json b/test/fixtures/tree/reference-image-empty-alt.json deleted file mode 100644 index 59f94e4e9..000000000 --- a/test/fixtures/tree/reference-image-empty-alt.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "imageReference", - "alt": "", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - } - }, - "label": "1", - "identifier": "1", - "referenceType": "full" - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - } - } - }, - { - "type": "definition", - "identifier": "1", - "label": "1", - "title": null, - "url": "/xyz.png", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 8 - }, - "end": { - "line": 3, - "column": 14, - "offset": 21 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 4, - "column": 1, - "offset": 22 - } - } -} diff --git a/test/fixtures/tree/reference-link-escape.nooutput.json b/test/fixtures/tree/reference-link-escape.nooutput.json deleted file mode 100644 index 256eb83e0..000000000 --- a/test/fixtures/tree/reference-link-escape.nooutput.json +++ /dev/null @@ -1,331 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "children": [ - { - "type": "text", - "value": "a", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 3, - "offset": 2 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 11, - "offset": 10 - } - }, - "label": "b*r*", - "identifier": "b\\*r*", - "referenceType": "full" - }, - { - "type": "text", - "value": ", ", - "position": { - "start": { - "line": 1, - "column": 11, - "offset": 10 - }, - "end": { - "line": 1, - "column": 13, - "offset": 12 - } - } - }, - { - "type": "linkReference", - "children": [ - { - "type": "text", - "value": "b*r*", - "position": { - "start": { - "line": 1, - "column": 14, - "offset": 13 - }, - "end": { - "line": 1, - "column": 19, - "offset": 18 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 13, - "offset": 12 - }, - "end": { - "line": 1, - "column": 22, - "offset": 21 - } - }, - "label": "b*r*", - "identifier": "b\\*r*", - "referenceType": "collapsed" - }, - { - "type": "text", - "value": ", ", - "position": { - "start": { - "line": 1, - "column": 22, - "offset": 21 - }, - "end": { - "line": 1, - "column": 24, - "offset": 23 - } - } - }, - { - "type": "linkReference", - "children": [ - { - "type": "text", - "value": "b*r*", - "position": { - "start": { - "line": 1, - "column": 25, - "offset": 24 - }, - "end": { - "line": 1, - "column": 30, - "offset": 29 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 24, - "offset": 23 - }, - "end": { - "line": 1, - "column": 31, - "offset": 30 - } - }, - "label": "b*r*", - "identifier": "b\\*r*", - "referenceType": "shortcut" - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 31, - "offset": 30 - }, - "end": { - "line": 1, - "column": 32, - "offset": 31 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 32, - "offset": 31 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "imageReference", - "alt": "foo", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 33 - }, - "end": { - "line": 3, - "column": 14, - "offset": 46 - } - }, - "label": "b*r*", - "identifier": "b\\*r*", - "referenceType": "full" - }, - { - "type": "text", - "value": ", ", - "position": { - "start": { - "line": 3, - "column": 14, - "offset": 46 - }, - "end": { - "line": 3, - "column": 16, - "offset": 48 - } - } - }, - { - "type": "imageReference", - "alt": "b*r*", - "position": { - "start": { - "line": 3, - "column": 16, - "offset": 48 - }, - "end": { - "line": 3, - "column": 26, - "offset": 58 - } - }, - "label": "b*r*", - "identifier": "b\\*r*", - "referenceType": "collapsed" - }, - { - "type": "text", - "value": ", ", - "position": { - "start": { - "line": 3, - "column": 26, - "offset": 58 - }, - "end": { - "line": 3, - "column": 28, - "offset": 60 - } - } - }, - { - "type": "imageReference", - "alt": "b*r*", - "position": { - "start": { - "line": 3, - "column": 28, - "offset": 60 - }, - "end": { - "line": 3, - "column": 36, - "offset": 68 - } - }, - "label": "b*r*", - "identifier": "b\\*r*", - "referenceType": "shortcut" - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 36, - "offset": 68 - }, - "end": { - "line": 3, - "column": 37, - "offset": 69 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 33 - }, - "end": { - "line": 3, - "column": 37, - "offset": 69 - } - } - }, - { - "type": "definition", - "identifier": "b\\*r*", - "label": "b*r*", - "title": null, - "url": "http://google.com", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 71 - }, - "end": { - "line": 5, - "column": 27, - "offset": 97 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 6, - "column": 1, - "offset": 98 - } - } -} diff --git a/test/fixtures/tree/reference-link-not-closed.json b/test/fixtures/tree/reference-link-not-closed.json deleted file mode 100644 index e1e3392a0..000000000 --- a/test/fixtures/tree/reference-link-not-closed.json +++ /dev/null @@ -1,116 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[bar][bar", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 10, - "offset": 9 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 10, - "offset": 9 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[bar][", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 11 - }, - "end": { - "line": 3, - "column": 7, - "offset": 17 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 11 - }, - "end": { - "line": 3, - "column": 7, - "offset": 17 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[bar]", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 19 - }, - "end": { - "line": 5, - "column": 6, - "offset": 24 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 19 - }, - "end": { - "line": 5, - "column": 6, - "offset": 24 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 6, - "column": 1, - "offset": 25 - } - } -} diff --git a/test/fixtures/tree/reference-link-with-angle-brackets.json b/test/fixtures/tree/reference-link-with-angle-brackets.json deleted file mode 100644 index bf24bb9ac..000000000 --- a/test/fixtures/tree/reference-link-with-angle-brackets.json +++ /dev/null @@ -1,89 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "children": [ - { - "type": "text", - "value": "foo", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 5, - "offset": 4 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 6, - "offset": 5 - } - }, - "label": "foo", - "identifier": "foo", - "referenceType": "shortcut" - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 6, - "offset": 5 - } - } - }, - { - "type": "definition", - "identifier": "foo", - "label": "foo", - "title": null, - "url": "./url with spaces", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 7 - }, - "end": { - "line": 3, - "column": 27, - "offset": 33 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 4, - "column": 1, - "offset": 34 - } - } -} diff --git a/test/fixtures/tree/reference-link-with-multiple-definitions.json b/test/fixtures/tree/reference-link-with-multiple-definitions.json deleted file mode 100644 index 2f6a34743..000000000 --- a/test/fixtures/tree/reference-link-with-multiple-definitions.json +++ /dev/null @@ -1,108 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "children": [ - { - "type": "text", - "value": "foo", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 5, - "offset": 4 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 6, - "offset": 5 - } - }, - "label": "foo", - "identifier": "foo", - "referenceType": "shortcut" - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 6, - "offset": 5 - } - } - }, - { - "type": "definition", - "identifier": "foo", - "label": "foo", - "title": null, - "url": "first", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 7 - }, - "end": { - "line": 3, - "column": 13, - "offset": 19 - } - } - }, - { - "type": "definition", - "identifier": "foo", - "label": "foo", - "title": null, - "url": "second", - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 20 - }, - "end": { - "line": 4, - "column": 14, - "offset": 33 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 5, - "column": 1, - "offset": 34 - } - } -} diff --git a/test/fixtures/tree/remarkjs-remark-lint-gh-111.json b/test/fixtures/tree/remarkjs-remark-lint-gh-111.json deleted file mode 100644 index 5410cdb0a..000000000 --- a/test/fixtures/tree/remarkjs-remark-lint-gh-111.json +++ /dev/null @@ -1,280 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "Fork", - "position": { - "start": { - "line": 1, - "column": 6, - "offset": 5 - }, - "end": { - "line": 1, - "column": 10, - "offset": 9 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 4, - "offset": 3 - }, - "end": { - "line": 1, - "column": 12, - "offset": 11 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 4, - "offset": 3 - }, - "end": { - "line": 1, - "column": 12, - "offset": 11 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 12, - "offset": 11 - } - } - }, - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "Clone", - "position": { - "start": { - "line": 2, - "column": 6, - "offset": 17 - }, - "end": { - "line": 2, - "column": 11, - "offset": 22 - } - } - } - ], - "position": { - "start": { - "line": 2, - "column": 4, - "offset": 15 - }, - "end": { - "line": 2, - "column": 13, - "offset": 24 - } - } - } - ], - "position": { - "start": { - "line": 2, - "column": 4, - "offset": 15 - }, - "end": { - "line": 2, - "column": 13, - "offset": 24 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": " git clone ", - "position": { - "start": { - "line": 4, - "column": 4, - "offset": 29 - }, - "end": { - "line": 4, - "column": 29, - "offset": 54 - } - } - } - ], - "position": { - "start": { - "line": 2, - "column": 1, - "offset": 12 - }, - "end": { - "line": 4, - "column": 29, - "offset": 54 - } - } - }, - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "Configure remotes", - "position": { - "start": { - "line": 5, - "column": 6, - "offset": 60 - }, - "end": { - "line": 5, - "column": 23, - "offset": 77 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 4, - "offset": 58 - }, - "end": { - "line": 5, - "column": 25, - "offset": 79 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 4, - "offset": 58 - }, - "end": { - "line": 5, - "column": 25, - "offset": 79 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": " cd \n git remote add upstream ", - "position": { - "start": { - "line": 7, - "column": 4, - "offset": 84 - }, - "end": { - "line": 8, - "column": 47, - "offset": 152 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 55 - }, - "end": { - "line": 8, - "column": 47, - "offset": 152 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 47, - "offset": 152 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 9, - "column": 1, - "offset": 153 - } - } -} diff --git a/test/fixtures/tree/same-bullet.nooutput.json b/test/fixtures/tree/same-bullet.nooutput.json deleted file mode 100644 index 17ec46ace..000000000 --- a/test/fixtures/tree/same-bullet.nooutput.json +++ /dev/null @@ -1,233 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "test", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "test", - "position": { - "start": { - "line": 2, - "column": 3, - "offset": 9 - }, - "end": { - "line": 2, - "column": 7, - "offset": 13 - } - } - } - ], - "position": { - "start": { - "line": 2, - "column": 3, - "offset": 9 - }, - "end": { - "line": 2, - "column": 7, - "offset": 13 - } - } - } - ], - "position": { - "start": { - "line": 2, - "column": 1, - "offset": 7 - }, - "end": { - "line": 2, - "column": 7, - "offset": 13 - } - } - } - ], - "position": { - "start": { - "line": 2, - "column": 1, - "offset": 7 - }, - "end": { - "line": 2, - "column": 7, - "offset": 13 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "test", - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 16 - }, - "end": { - "line": 3, - "column": 7, - "offset": 20 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 16 - }, - "end": { - "line": 3, - "column": 7, - "offset": 20 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 14 - }, - "end": { - "line": 3, - "column": 7, - "offset": 20 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 14 - }, - "end": { - "line": 3, - "column": 7, - "offset": 20 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 4, - "column": 1, - "offset": 21 - } - } -} diff --git a/test/fixtures/tree/stringify-escape.json b/test/fixtures/tree/stringify-escape.json deleted file mode 100644 index 1ee0a7be0..000000000 --- a/test/fixtures/tree/stringify-escape.json +++ /dev/null @@ -1,2020 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Characters that should be escaped in general:", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 46, - "offset": 45 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 46, - "offset": 45 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "\\ ` * [", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 47 - }, - "end": { - "line": 3, - "column": 12, - "offset": 58 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 47 - }, - "end": { - "line": 3, - "column": 12, - "offset": 58 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Characters that shouldn't:", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 60 - }, - "end": { - "line": 5, - "column": 27, - "offset": 86 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 60 - }, - "end": { - "line": 5, - "column": 27, - "offset": 86 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "{}]()#+-.!>\"$%',/:;=?@^~", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 88 - }, - "end": { - "line": 7, - "column": 25, - "offset": 112 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 88 - }, - "end": { - "line": 7, - "column": 25, - "offset": 112 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Underscores are _escaped_ unless they appear in_the_middle_of_a_word.\nor ", - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 114 - }, - "end": { - "line": 10, - "column": 4, - "offset": 189 - } - } - }, - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "_here", - "position": { - "start": { - "line": 10, - "column": 6, - "offset": 191 - }, - "end": { - "line": 10, - "column": 11, - "offset": 196 - } - } - } - ], - "position": { - "start": { - "line": 10, - "column": 4, - "offset": 189 - }, - "end": { - "line": 10, - "column": 13, - "offset": 198 - } - } - }, - { - "type": "text", - "value": ", or here__", - "position": { - "start": { - "line": 10, - "column": 13, - "offset": 198 - }, - "end": { - "line": 10, - "column": 24, - "offset": 209 - } - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 114 - }, - "end": { - "line": 10, - "column": 24, - "offset": 209 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Ampersands are escaped only when they would otherwise start an entity:", - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 211 - }, - "end": { - "line": 12, - "column": 71, - "offset": 281 - } - } - } - ], - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 211 - }, - "end": { - "line": 12, - "column": 71, - "offset": 281 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "©cat & &", - "position": { - "start": { - "line": 14, - "column": 5, - "offset": 287 - }, - "end": { - "line": 14, - "column": 28, - "offset": 310 - } - } - } - ], - "position": { - "start": { - "line": 14, - "column": 5, - "offset": 287 - }, - "end": { - "line": 14, - "column": 28, - "offset": 310 - } - } - } - ], - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 283 - }, - "end": { - "line": 14, - "column": 28, - "offset": 310 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "©cat & &", - "position": { - "start": { - "line": 15, - "column": 5, - "offset": 315 - }, - "end": { - "line": 15, - "column": 37, - "offset": 347 - } - } - } - ], - "position": { - "start": { - "line": 15, - "column": 5, - "offset": 315 - }, - "end": { - "line": 15, - "column": 37, - "offset": 347 - } - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 311 - }, - "end": { - "line": 15, - "column": 37, - "offset": 347 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "But: ©cat; ", - "position": { - "start": { - "line": 16, - "column": 5, - "offset": 352 - }, - "end": { - "line": 16, - "column": 16, - "offset": 363 - } - } - }, - { - "type": "inlineCode", - "value": "≬", - "position": { - "start": { - "line": 16, - "column": 16, - "offset": 363 - }, - "end": { - "line": 16, - "column": 27, - "offset": 374 - } - } - }, - { - "type": "text", - "value": " &foo; & AT&T &c", - "position": { - "start": { - "line": 16, - "column": 27, - "offset": 374 - }, - "end": { - "line": 16, - "column": 43, - "offset": 390 - } - } - } - ], - "position": { - "start": { - "line": 16, - "column": 5, - "offset": 352 - }, - "end": { - "line": 16, - "column": 43, - "offset": 390 - } - } - } - ], - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 348 - }, - "end": { - "line": 16, - "column": 43, - "offset": 390 - } - } - } - ], - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 283 - }, - "end": { - "line": 16, - "column": 43, - "offset": 390 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Open parenthesis should be escaped after a shortcut reference:", - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 392 - }, - "end": { - "line": 18, - "column": 63, - "offset": 454 - } - } - } - ], - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 392 - }, - "end": { - "line": 18, - "column": 63, - "offset": 454 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[ref](text)", - "position": { - "start": { - "line": 20, - "column": 1, - "offset": 456 - }, - "end": { - "line": 20, - "column": 13, - "offset": 468 - } - } - } - ], - "position": { - "start": { - "line": 20, - "column": 1, - "offset": 456 - }, - "end": { - "line": 20, - "column": 13, - "offset": 468 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And after a shortcut reference and a space (for GitHub):", - "position": { - "start": { - "line": 22, - "column": 1, - "offset": 470 - }, - "end": { - "line": 22, - "column": 57, - "offset": 526 - } - } - } - ], - "position": { - "start": { - "line": 22, - "column": 1, - "offset": 470 - }, - "end": { - "line": 22, - "column": 57, - "offset": 526 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[ref] (text)", - "position": { - "start": { - "line": 24, - "column": 1, - "offset": 528 - }, - "end": { - "line": 24, - "column": 14, - "offset": 541 - } - } - } - ], - "position": { - "start": { - "line": 24, - "column": 1, - "offset": 528 - }, - "end": { - "line": 24, - "column": 14, - "offset": 541 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hyphen should be escaped at the beginning of a line:", - "position": { - "start": { - "line": 26, - "column": 1, - "offset": 543 - }, - "end": { - "line": 26, - "column": 53, - "offset": 595 - } - } - } - ], - "position": { - "start": { - "line": 26, - "column": 1, - "offset": 543 - }, - "end": { - "line": 26, - "column": 53, - "offset": 595 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "- not a list item\n- not a list item\n+ not a list item", - "position": { - "start": { - "line": 28, - "column": 1, - "offset": 597 - }, - "end": { - "line": 30, - "column": 21, - "offset": 655 - } - } - } - ], - "position": { - "start": { - "line": 28, - "column": 1, - "offset": 597 - }, - "end": { - "line": 30, - "column": 21, - "offset": 655 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Same for angle brackets:", - "position": { - "start": { - "line": 32, - "column": 1, - "offset": 657 - }, - "end": { - "line": 32, - "column": 25, - "offset": 681 - } - } - } - ], - "position": { - "start": { - "line": 32, - "column": 1, - "offset": 657 - }, - "end": { - "line": 32, - "column": 25, - "offset": 681 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "> not a block quote", - "position": { - "start": { - "line": 34, - "column": 1, - "offset": 683 - }, - "end": { - "line": 34, - "column": 21, - "offset": 703 - } - } - } - ], - "position": { - "start": { - "line": 34, - "column": 1, - "offset": 683 - }, - "end": { - "line": 34, - "column": 21, - "offset": 703 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And hash signs:", - "position": { - "start": { - "line": 36, - "column": 1, - "offset": 705 - }, - "end": { - "line": 36, - "column": 16, - "offset": 720 - } - } - } - ], - "position": { - "start": { - "line": 36, - "column": 1, - "offset": 705 - }, - "end": { - "line": 36, - "column": 16, - "offset": 720 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "# not a heading\n## not a subheading", - "position": { - "start": { - "line": 38, - "column": 1, - "offset": 722 - }, - "end": { - "line": 39, - "column": 23, - "offset": 761 - } - } - } - ], - "position": { - "start": { - "line": 38, - "column": 1, - "offset": 722 - }, - "end": { - "line": 39, - "column": 23, - "offset": 761 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Text under a shortcut reference should be preserved verbatim:", - "position": { - "start": { - "line": 41, - "column": 1, - "offset": 763 - }, - "end": { - "line": 41, - "column": 62, - "offset": 824 - } - } - } - ], - "position": { - "start": { - "line": 41, - "column": 1, - "offset": 763 - }, - "end": { - "line": 41, - "column": 62, - "offset": 824 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[two*three]", - "position": { - "start": { - "line": 43, - "column": 5, - "offset": 830 - }, - "end": { - "line": 43, - "column": 16, - "offset": 841 - } - } - } - ], - "position": { - "start": { - "line": 43, - "column": 5, - "offset": 830 - }, - "end": { - "line": 43, - "column": 16, - "offset": 841 - } - } - } - ], - "position": { - "start": { - "line": 43, - "column": 1, - "offset": 826 - }, - "end": { - "line": 43, - "column": 16, - "offset": 841 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[two*three]", - "position": { - "start": { - "line": 44, - "column": 5, - "offset": 846 - }, - "end": { - "line": 44, - "column": 17, - "offset": 858 - } - } - } - ], - "position": { - "start": { - "line": 44, - "column": 5, - "offset": 846 - }, - "end": { - "line": 44, - "column": 17, - "offset": 858 - } - } - } - ], - "position": { - "start": { - "line": 44, - "column": 1, - "offset": 842 - }, - "end": { - "line": 44, - "column": 17, - "offset": 858 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[a\\a]", - "position": { - "start": { - "line": 45, - "column": 5, - "offset": 863 - }, - "end": { - "line": 45, - "column": 10, - "offset": 868 - } - } - } - ], - "position": { - "start": { - "line": 45, - "column": 5, - "offset": 863 - }, - "end": { - "line": 45, - "column": 10, - "offset": 868 - } - } - } - ], - "position": { - "start": { - "line": 45, - "column": 1, - "offset": 859 - }, - "end": { - "line": 45, - "column": 10, - "offset": 868 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[a\\a]", - "position": { - "start": { - "line": 46, - "column": 5, - "offset": 873 - }, - "end": { - "line": 46, - "column": 11, - "offset": 879 - } - } - } - ], - "position": { - "start": { - "line": 46, - "column": 5, - "offset": 873 - }, - "end": { - "line": 46, - "column": 11, - "offset": 879 - } - } - } - ], - "position": { - "start": { - "line": 46, - "column": 1, - "offset": 869 - }, - "end": { - "line": 46, - "column": 11, - "offset": 879 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[a\\\\a]", - "position": { - "start": { - "line": 47, - "column": 5, - "offset": 884 - }, - "end": { - "line": 47, - "column": 12, - "offset": 891 - } - } - } - ], - "position": { - "start": { - "line": 47, - "column": 5, - "offset": 884 - }, - "end": { - "line": 47, - "column": 12, - "offset": 891 - } - } - } - ], - "position": { - "start": { - "line": 47, - "column": 1, - "offset": 880 - }, - "end": { - "line": 47, - "column": 12, - "offset": 891 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[a_a_a]", - "position": { - "start": { - "line": 48, - "column": 5, - "offset": 896 - }, - "end": { - "line": 48, - "column": 13, - "offset": 904 - } - } - } - ], - "position": { - "start": { - "line": 48, - "column": 5, - "offset": 896 - }, - "end": { - "line": 48, - "column": 13, - "offset": 904 - } - } - } - ], - "position": { - "start": { - "line": 48, - "column": 1, - "offset": 892 - }, - "end": { - "line": 48, - "column": 13, - "offset": 904 - } - } - } - ], - "position": { - "start": { - "line": 43, - "column": 1, - "offset": 826 - }, - "end": { - "line": 48, - "column": 13, - "offset": 904 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "GFM:", - "position": { - "start": { - "line": 50, - "column": 3, - "offset": 908 - }, - "end": { - "line": 50, - "column": 7, - "offset": 912 - } - } - } - ], - "position": { - "start": { - "line": 50, - "column": 1, - "offset": 906 - }, - "end": { - "line": 50, - "column": 9, - "offset": 914 - } - } - } - ], - "position": { - "start": { - "line": 50, - "column": 1, - "offset": 906 - }, - "end": { - "line": 50, - "column": 9, - "offset": 914 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Colon should be escaped in URLs:", - "position": { - "start": { - "line": 52, - "column": 1, - "offset": 916 - }, - "end": { - "line": 52, - "column": 33, - "offset": 948 - } - } - } - ], - "position": { - "start": { - "line": 52, - "column": 1, - "offset": 916 - }, - "end": { - "line": 52, - "column": 33, - "offset": 948 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "http://user:password@host:port/path?key=value#fragment", - "position": { - "start": { - "line": 54, - "column": 5, - "offset": 954 - }, - "end": { - "line": 54, - "column": 60, - "offset": 1009 - } - } - } - ], - "position": { - "start": { - "line": 54, - "column": 5, - "offset": 954 - }, - "end": { - "line": 54, - "column": 60, - "offset": 1009 - } - } - } - ], - "position": { - "start": { - "line": 54, - "column": 1, - "offset": 950 - }, - "end": { - "line": 54, - "column": 60, - "offset": 1009 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "https://user:password@host:port/path?key=value#fragment", - "position": { - "start": { - "line": 55, - "column": 5, - "offset": 1014 - }, - "end": { - "line": 55, - "column": 61, - "offset": 1070 - } - } - } - ], - "position": { - "start": { - "line": 55, - "column": 5, - "offset": 1014 - }, - "end": { - "line": 55, - "column": 61, - "offset": 1070 - } - } - } - ], - "position": { - "start": { - "line": 55, - "column": 1, - "offset": 1010 - }, - "end": { - "line": 55, - "column": 61, - "offset": 1070 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "http://user:password@host:port/path?key=value#fragment", - "position": { - "start": { - "line": 56, - "column": 5, - "offset": 1075 - }, - "end": { - "line": 56, - "column": 65, - "offset": 1135 - } - } - } - ], - "position": { - "start": { - "line": 56, - "column": 5, - "offset": 1075 - }, - "end": { - "line": 56, - "column": 65, - "offset": 1135 - } - } - } - ], - "position": { - "start": { - "line": 56, - "column": 1, - "offset": 1071 - }, - "end": { - "line": 56, - "column": 65, - "offset": 1135 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "https://user:password@host:port/path?key=value#fragment", - "position": { - "start": { - "line": 57, - "column": 5, - "offset": 1140 - }, - "end": { - "line": 57, - "column": 66, - "offset": 1201 - } - } - } - ], - "position": { - "start": { - "line": 57, - "column": 5, - "offset": 1140 - }, - "end": { - "line": 57, - "column": 66, - "offset": 1201 - } - } - } - ], - "position": { - "start": { - "line": 57, - "column": 1, - "offset": 1136 - }, - "end": { - "line": 57, - "column": 66, - "offset": 1201 - } - } - } - ], - "position": { - "start": { - "line": 54, - "column": 1, - "offset": 950 - }, - "end": { - "line": 57, - "column": 66, - "offset": 1201 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Double tildes should be ~~escaped~~.\nAnd here: foo~~.", - "position": { - "start": { - "line": 59, - "column": 1, - "offset": 1203 - }, - "end": { - "line": 60, - "column": 17, - "offset": 1258 - } - } - } - ], - "position": { - "start": { - "line": 59, - "column": 1, - "offset": 1203 - }, - "end": { - "line": 60, - "column": 17, - "offset": 1258 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Pipes should not be escaped here: |", - "position": { - "start": { - "line": 62, - "column": 1, - "offset": 1260 - }, - "end": { - "line": 62, - "column": 36, - "offset": 1295 - } - } - } - ], - "position": { - "start": { - "line": 62, - "column": 1, - "offset": 1260 - }, - "end": { - "line": 62, - "column": 36, - "offset": 1295 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "| here | they |\n| ------ | -------- |\n| should | tho|ugh |", - "position": { - "start": { - "line": 64, - "column": 1, - "offset": 1297 - }, - "end": { - "line": 66, - "column": 22, - "offset": 1362 - } - } - } - ], - "position": { - "start": { - "line": 64, - "column": 1, - "offset": 1297 - }, - "end": { - "line": 66, - "column": 22, - "offset": 1362 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And here:", - "position": { - "start": { - "line": 68, - "column": 1, - "offset": 1364 - }, - "end": { - "line": 68, - "column": 10, - "offset": 1373 - } - } - } - ], - "position": { - "start": { - "line": 68, - "column": 1, - "offset": 1364 - }, - "end": { - "line": 68, - "column": 10, - "offset": 1373 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "| here | they |\n| ---- | ----- |\n| should | though |", - "position": { - "start": { - "line": 70, - "column": 1, - "offset": 1375 - }, - "end": { - "line": 72, - "column": 20, - "offset": 1434 - } - } - } - ], - "position": { - "start": { - "line": 70, - "column": 1, - "offset": 1375 - }, - "end": { - "line": 72, - "column": 20, - "offset": 1434 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And here:", - "position": { - "start": { - "line": 74, - "column": 1, - "offset": 1436 - }, - "end": { - "line": 74, - "column": 10, - "offset": 1445 - } - } - } - ], - "position": { - "start": { - "line": 74, - "column": 1, - "offset": 1436 - }, - "end": { - "line": 74, - "column": 10, - "offset": 1445 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "here | they\n---- | ------\nshould | though", - "position": { - "start": { - "line": 76, - "column": 1, - "offset": 1447 - }, - "end": { - "line": 78, - "column": 16, - "offset": 1492 - } - } - } - ], - "position": { - "start": { - "line": 76, - "column": 1, - "offset": 1447 - }, - "end": { - "line": 78, - "column": 16, - "offset": 1492 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "Commonmark:", - "position": { - "start": { - "line": 80, - "column": 3, - "offset": 1496 - }, - "end": { - "line": 80, - "column": 14, - "offset": 1507 - } - } - } - ], - "position": { - "start": { - "line": 80, - "column": 1, - "offset": 1494 - }, - "end": { - "line": 80, - "column": 16, - "offset": 1509 - } - } - } - ], - "position": { - "start": { - "line": 80, - "column": 1, - "offset": 1494 - }, - "end": { - "line": 80, - "column": 16, - "offset": 1509 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Open angle bracket should be escaped:", - "position": { - "start": { - "line": 82, - "column": 1, - "offset": 1511 - }, - "end": { - "line": 82, - "column": 38, - "offset": 1548 - } - } - } - ], - "position": { - "start": { - "line": 82, - "column": 1, - "offset": 1511 - }, - "end": { - "line": 82, - "column": 38, - "offset": 1548 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "
", - "position": { - "start": { - "line": 84, - "column": 5, - "offset": 1554 - }, - "end": { - "line": 84, - "column": 18, - "offset": 1567 - } - } - } - ], - "position": { - "start": { - "line": 84, - "column": 5, - "offset": 1554 - }, - "end": { - "line": 84, - "column": 18, - "offset": 1567 - } - } - } - ], - "position": { - "start": { - "line": 84, - "column": 1, - "offset": 1550 - }, - "end": { - "line": 84, - "column": 18, - "offset": 1567 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "", - "position": { - "start": { - "line": 85, - "column": 5, - "offset": 1572 - }, - "end": { - "line": 85, - "column": 24, - "offset": 1591 - } - } - } - ], - "position": { - "start": { - "line": 85, - "column": 5, - "offset": 1572 - }, - "end": { - "line": 85, - "column": 24, - "offset": 1591 - } - } - } - ], - "position": { - "start": { - "line": 85, - "column": 1, - "offset": 1568 - }, - "end": { - "line": 85, - "column": 24, - "offset": 1591 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "
", - "position": { - "start": { - "line": 86, - "column": 5, - "offset": 1596 - }, - "end": { - "line": 86, - "column": 22, - "offset": 1613 - } - } - } - ], - "position": { - "start": { - "line": 86, - "column": 5, - "offset": 1596 - }, - "end": { - "line": 86, - "column": 22, - "offset": 1613 - } - } - } - ], - "position": { - "start": { - "line": 86, - "column": 1, - "offset": 1592 - }, - "end": { - "line": 86, - "column": 22, - "offset": 1613 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "", - "position": { - "start": { - "line": 87, - "column": 5, - "offset": 1618 - }, - "end": { - "line": 87, - "column": 31, - "offset": 1644 - } - } - } - ], - "position": { - "start": { - "line": 87, - "column": 5, - "offset": 1618 - }, - "end": { - "line": 87, - "column": 31, - "offset": 1644 - } - } - } - ], - "position": { - "start": { - "line": 87, - "column": 1, - "offset": 1614 - }, - "end": { - "line": 87, - "column": 31, - "offset": 1644 - } - } - } - ], - "position": { - "start": { - "line": 84, - "column": 1, - "offset": 1550 - }, - "end": { - "line": 87, - "column": 31, - "offset": 1644 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 88, - "column": 1, - "offset": 1645 - } - } -} diff --git a/test/fixtures/tree/strong-and-em-together-one.json b/test/fixtures/tree/strong-and-em-together-one.json deleted file mode 100644 index 6f589f98b..000000000 --- a/test/fixtures/tree/strong-and-em-together-one.json +++ /dev/null @@ -1,349 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "emphasis", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "This is strong and em.", - "position": { - "start": { - "line": 1, - "column": 4, - "offset": 3 - }, - "end": { - "line": 1, - "column": 26, - "offset": 25 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 28, - "offset": 27 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 29, - "offset": 28 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 29, - "offset": 28 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "So is ", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 30 - }, - "end": { - "line": 3, - "column": 7, - "offset": 36 - } - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "this", - "position": { - "start": { - "line": 3, - "column": 10, - "offset": 39 - }, - "end": { - "line": 3, - "column": 14, - "offset": 43 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 8, - "offset": 37 - }, - "end": { - "line": 3, - "column": 16, - "offset": 45 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 7, - "offset": 36 - }, - "end": { - "line": 3, - "column": 17, - "offset": 46 - } - } - }, - { - "type": "text", - "value": " word.", - "position": { - "start": { - "line": 3, - "column": 17, - "offset": 46 - }, - "end": { - "line": 3, - "column": 23, - "offset": 52 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 30 - }, - "end": { - "line": 3, - "column": 23, - "offset": 52 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "emphasis", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "This is strong and em.", - "position": { - "start": { - "line": 5, - "column": 4, - "offset": 57 - }, - "end": { - "line": 5, - "column": 26, - "offset": 79 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 2, - "offset": 55 - }, - "end": { - "line": 5, - "column": 28, - "offset": 81 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 54 - }, - "end": { - "line": 5, - "column": 29, - "offset": 82 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 54 - }, - "end": { - "line": 5, - "column": 29, - "offset": 82 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "So is ", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 84 - }, - "end": { - "line": 7, - "column": 7, - "offset": 90 - } - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "this", - "position": { - "start": { - "line": 7, - "column": 10, - "offset": 93 - }, - "end": { - "line": 7, - "column": 14, - "offset": 97 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 8, - "offset": 91 - }, - "end": { - "line": 7, - "column": 16, - "offset": 99 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 7, - "offset": 90 - }, - "end": { - "line": 7, - "column": 17, - "offset": 100 - } - } - }, - { - "type": "text", - "value": " word.", - "position": { - "start": { - "line": 7, - "column": 17, - "offset": 100 - }, - "end": { - "line": 7, - "column": 23, - "offset": 106 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 84 - }, - "end": { - "line": 7, - "column": 23, - "offset": 106 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 107 - } - } -} diff --git a/test/fixtures/tree/strong-and-em-together-two.nooutput.json b/test/fixtures/tree/strong-and-em-together-two.nooutput.json deleted file mode 100644 index 767c4cb2c..000000000 --- a/test/fixtures/tree/strong-and-em-together-two.nooutput.json +++ /dev/null @@ -1,345 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "perform_complicated_task", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 25, - "offset": 24 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 25, - "offset": 24 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "do_this_and_do_that_and_another_thing", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 26 - }, - "end": { - "line": 3, - "column": 38, - "offset": 63 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 26 - }, - "end": { - "line": 3, - "column": 38, - "offset": 63 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "perform", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 65 - }, - "end": { - "line": 5, - "column": 8, - "offset": 72 - } - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "complicated", - "position": { - "start": { - "line": 5, - "column": 9, - "offset": 73 - }, - "end": { - "line": 5, - "column": 20, - "offset": 84 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 8, - "offset": 72 - }, - "end": { - "line": 5, - "column": 21, - "offset": 85 - } - } - }, - { - "type": "text", - "value": "task", - "position": { - "start": { - "line": 5, - "column": 21, - "offset": 85 - }, - "end": { - "line": 5, - "column": 25, - "offset": 89 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 65 - }, - "end": { - "line": 5, - "column": 25, - "offset": 89 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "do", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 91 - }, - "end": { - "line": 7, - "column": 3, - "offset": 93 - } - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "this", - "position": { - "start": { - "line": 7, - "column": 4, - "offset": 94 - }, - "end": { - "line": 7, - "column": 8, - "offset": 98 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 3, - "offset": 93 - }, - "end": { - "line": 7, - "column": 9, - "offset": 99 - } - } - }, - { - "type": "text", - "value": "and", - "position": { - "start": { - "line": 7, - "column": 9, - "offset": 99 - }, - "end": { - "line": 7, - "column": 12, - "offset": 102 - } - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "do", - "position": { - "start": { - "line": 7, - "column": 13, - "offset": 103 - }, - "end": { - "line": 7, - "column": 15, - "offset": 105 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 12, - "offset": 102 - }, - "end": { - "line": 7, - "column": 16, - "offset": 106 - } - } - }, - { - "type": "text", - "value": "that", - "position": { - "start": { - "line": 7, - "column": 16, - "offset": 106 - }, - "end": { - "line": 7, - "column": 20, - "offset": 110 - } - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "and", - "position": { - "start": { - "line": 7, - "column": 21, - "offset": 111 - }, - "end": { - "line": 7, - "column": 24, - "offset": 114 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 20, - "offset": 110 - }, - "end": { - "line": 7, - "column": 25, - "offset": 115 - } - } - }, - { - "type": "text", - "value": "another*thing", - "position": { - "start": { - "line": 7, - "column": 25, - "offset": 115 - }, - "end": { - "line": 7, - "column": 38, - "offset": 128 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 91 - }, - "end": { - "line": 7, - "column": 38, - "offset": 128 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 129 - } - } -} diff --git a/test/fixtures/tree/strong-emphasis.json b/test/fixtures/tree/strong-emphasis.json deleted file mode 100644 index ce71b0352..000000000 --- a/test/fixtures/tree/strong-emphasis.json +++ /dev/null @@ -1,279 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Foo ", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 5, - "offset": 4 - } - } - }, - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "bar", - "position": { - "start": { - "line": 1, - "column": 7, - "offset": 6 - }, - "end": { - "line": 1, - "column": 10, - "offset": 9 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 5, - "offset": 4 - }, - "end": { - "line": 1, - "column": 12, - "offset": 11 - } - } - }, - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 1, - "column": 12, - "offset": 11 - }, - "end": { - "line": 1, - "column": 13, - "offset": 12 - } - } - }, - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "baz", - "position": { - "start": { - "line": 1, - "column": 15, - "offset": 14 - }, - "end": { - "line": 1, - "column": 18, - "offset": 17 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 13, - "offset": 12 - }, - "end": { - "line": 1, - "column": 20, - "offset": 19 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 20, - "offset": 19 - }, - "end": { - "line": 1, - "column": 21, - "offset": 20 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 21, - "offset": 20 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Foo ", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 22 - }, - "end": { - "line": 3, - "column": 5, - "offset": 26 - } - } - }, - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "bar", - "position": { - "start": { - "line": 3, - "column": 7, - "offset": 28 - }, - "end": { - "line": 3, - "column": 10, - "offset": 31 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 5, - "offset": 26 - }, - "end": { - "line": 3, - "column": 12, - "offset": 33 - } - } - }, - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 3, - "column": 12, - "offset": 33 - }, - "end": { - "line": 3, - "column": 13, - "offset": 34 - } - } - }, - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "baz", - "position": { - "start": { - "line": 3, - "column": 15, - "offset": 36 - }, - "end": { - "line": 3, - "column": 18, - "offset": 39 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 13, - "offset": 34 - }, - "end": { - "line": 3, - "column": 20, - "offset": 41 - } - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 20, - "offset": 41 - }, - "end": { - "line": 3, - "column": 21, - "offset": 42 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 22 - }, - "end": { - "line": 3, - "column": 21, - "offset": 42 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 3, - "column": 21, - "offset": 42 - } - } -} diff --git a/test/fixtures/tree/strong-initial-white-space.json b/test/fixtures/tree/strong-initial-white-space.json deleted file mode 100644 index c798cf679..000000000 --- a/test/fixtures/tree/strong-initial-white-space.json +++ /dev/null @@ -1,83 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "** bar **.", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 11, - "offset": 10 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 11, - "offset": 10 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "__ bar __.", - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 13 - }, - "end": { - "line": 4, - "column": 11, - "offset": 23 - } - } - } - ], - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 13 - }, - "end": { - "line": 4, - "column": 11, - "offset": 23 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 4, - "column": 11, - "offset": 23 - } - } -} diff --git a/test/fixtures/tree/tabs-and-spaces.json b/test/fixtures/tree/tabs-and-spaces.json deleted file mode 100644 index 9a19ec855..000000000 --- a/test/fixtures/tree/tabs-and-spaces.json +++ /dev/null @@ -1,294 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "list", - "ordered": false, - "start": null, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "this is a list item\nindented with tabs", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 2, - "column": 20, - "offset": 41 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 2, - "column": 20, - "offset": 41 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 20, - "offset": 41 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "this is a list item\nindented with spaces", - "position": { - "start": { - "line": 4, - "column": 5, - "offset": 47 - }, - "end": { - "line": 5, - "column": 25, - "offset": 91 - } - } - } - ], - "position": { - "start": { - "line": 4, - "column": 5, - "offset": 47 - }, - "end": { - "line": 5, - "column": 25, - "offset": 91 - } - } - } - ], - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 43 - }, - "end": { - "line": 5, - "column": 25, - "offset": 91 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 5, - "column": 25, - "offset": 91 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Code:", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 93 - }, - "end": { - "line": 7, - "column": 6, - "offset": 98 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 93 - }, - "end": { - "line": 7, - "column": 6, - "offset": 98 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "this code block is indented by one tab", - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 100 - }, - "end": { - "line": 9, - "column": 40, - "offset": 139 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And:", - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 141 - }, - "end": { - "line": 11, - "column": 5, - "offset": 145 - } - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 141 - }, - "end": { - "line": 11, - "column": 5, - "offset": 145 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "\tthis code block is indented by two tabs", - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 147 - }, - "end": { - "line": 13, - "column": 42, - "offset": 188 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And:", - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 190 - }, - "end": { - "line": 15, - "column": 5, - "offset": 194 - } - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 190 - }, - "end": { - "line": 15, - "column": 5, - "offset": 194 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "+\tthis is an example list item\n\tindented with tabs\n\n+ this is an example list item\n indented with spaces", - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 196 - }, - "end": { - "line": 21, - "column": 26, - "offset": 310 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 22, - "column": 1, - "offset": 311 - } - } -} diff --git a/test/fixtures/tree/tabs.json b/test/fixtures/tree/tabs.json deleted file mode 100644 index 9a19ec855..000000000 --- a/test/fixtures/tree/tabs.json +++ /dev/null @@ -1,294 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "list", - "ordered": false, - "start": null, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "this is a list item\nindented with tabs", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 2, - "column": 20, - "offset": 41 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 2, - "column": 20, - "offset": 41 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 20, - "offset": 41 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "this is a list item\nindented with spaces", - "position": { - "start": { - "line": 4, - "column": 5, - "offset": 47 - }, - "end": { - "line": 5, - "column": 25, - "offset": 91 - } - } - } - ], - "position": { - "start": { - "line": 4, - "column": 5, - "offset": 47 - }, - "end": { - "line": 5, - "column": 25, - "offset": 91 - } - } - } - ], - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 43 - }, - "end": { - "line": 5, - "column": 25, - "offset": 91 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 5, - "column": 25, - "offset": 91 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Code:", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 93 - }, - "end": { - "line": 7, - "column": 6, - "offset": 98 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 93 - }, - "end": { - "line": 7, - "column": 6, - "offset": 98 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "this code block is indented by one tab", - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 100 - }, - "end": { - "line": 9, - "column": 40, - "offset": 139 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And:", - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 141 - }, - "end": { - "line": 11, - "column": 5, - "offset": 145 - } - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 141 - }, - "end": { - "line": 11, - "column": 5, - "offset": 145 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "\tthis code block is indented by two tabs", - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 147 - }, - "end": { - "line": 13, - "column": 42, - "offset": 188 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And:", - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 190 - }, - "end": { - "line": 15, - "column": 5, - "offset": 194 - } - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 190 - }, - "end": { - "line": 15, - "column": 5, - "offset": 194 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "+\tthis is an example list item\n\tindented with tabs\n\n+ this is an example list item\n indented with spaces", - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 196 - }, - "end": { - "line": 21, - "column": 26, - "offset": 310 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 22, - "column": 1, - "offset": 311 - } - } -} diff --git a/test/fixtures/tree/tidyness.json b/test/fixtures/tree/tidyness.json deleted file mode 100644 index 8772675c7..000000000 --- a/test/fixtures/tree/tidyness.json +++ /dev/null @@ -1,243 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "blockquote", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "A list within a blockquote:", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 30, - "offset": 29 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 30, - "offset": 29 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "asterisk 1", - "position": { - "start": { - "line": 3, - "column": 5, - "offset": 37 - }, - "end": { - "line": 3, - "column": 15, - "offset": 47 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 5, - "offset": 37 - }, - "end": { - "line": 3, - "column": 15, - "offset": 47 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 35 - }, - "end": { - "line": 3, - "column": 15, - "offset": 47 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "asterisk 2", - "position": { - "start": { - "line": 4, - "column": 5, - "offset": 52 - }, - "end": { - "line": 4, - "column": 15, - "offset": 62 - } - } - } - ], - "position": { - "start": { - "line": 4, - "column": 5, - "offset": 52 - }, - "end": { - "line": 4, - "column": 15, - "offset": 62 - } - } - } - ], - "position": { - "start": { - "line": 4, - "column": 3, - "offset": 50 - }, - "end": { - "line": 4, - "column": 15, - "offset": 62 - } - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "asterisk 3", - "position": { - "start": { - "line": 5, - "column": 5, - "offset": 67 - }, - "end": { - "line": 5, - "column": 15, - "offset": 77 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 5, - "offset": 67 - }, - "end": { - "line": 5, - "column": 15, - "offset": 77 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 3, - "offset": 65 - }, - "end": { - "line": 5, - "column": 15, - "offset": 77 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 35 - }, - "end": { - "line": 5, - "column": 15, - "offset": 77 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 5, - "column": 15, - "offset": 77 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 6, - "column": 1, - "offset": 78 - } - } -} diff --git a/test/fixtures/tree/title-attributes.json b/test/fixtures/tree/title-attributes.json deleted file mode 100644 index 294acdbf7..000000000 --- a/test/fixtures/tree/title-attributes.json +++ /dev/null @@ -1,2124 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Links", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 8, - "offset": 7 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 8, - "offset": 7 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "| Implementation | Characters | Nested | Mismatched | Escaped | Named Entities | Numbered Entities |\n| -------------- | ---------- |------- | ---------- | ------- | -------------- | ----------------- |\n| Markdown.pl | ", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 9 - }, - "end": { - "line": 5, - "column": 20, - "offset": 230 - } - } - }, - { - "type": "inlineCode", - "value": "\"", - "position": { - "start": { - "line": 5, - "column": 20, - "offset": 230 - }, - "end": { - "line": 5, - "column": 23, - "offset": 233 - } - } - }, - { - "type": "text", - "value": " | Yes | Yes | No | Yes | Yes |\n| GitHub | ", - "position": { - "start": { - "line": 5, - "column": 23, - "offset": 233 - }, - "end": { - "line": 6, - "column": 20, - "offset": 331 - } - } - }, - { - "type": "inlineCode", - "value": "\"", - "position": { - "start": { - "line": 6, - "column": 20, - "offset": 331 - }, - "end": { - "line": 6, - "column": 23, - "offset": 334 - } - } - }, - { - "type": "text", - "value": " | Yes | Yes | No | No | No |\n| CommonMark | ", - "position": { - "start": { - "line": 6, - "column": 23, - "offset": 334 - }, - "end": { - "line": 7, - "column": 20, - "offset": 432 - } - } - }, - { - "type": "inlineCode", - "value": "\"", - "position": { - "start": { - "line": 7, - "column": 20, - "offset": 432 - }, - "end": { - "line": 7, - "column": 23, - "offset": 435 - } - } - }, - { - "type": "text", - "value": " | No | No | Yes | Yes | Yes |\n| Markdown.pl | ", - "position": { - "start": { - "line": 7, - "column": 23, - "offset": 435 - }, - "end": { - "line": 8, - "column": 20, - "offset": 533 - } - } - }, - { - "type": "inlineCode", - "value": "'", - "position": { - "start": { - "line": 8, - "column": 20, - "offset": 533 - }, - "end": { - "line": 8, - "column": 23, - "offset": 536 - } - } - }, - { - "type": "text", - "value": " | Yes | Yes | No | Yes | Yes |\n| GitHub | ", - "position": { - "start": { - "line": 8, - "column": 23, - "offset": 536 - }, - "end": { - "line": 9, - "column": 20, - "offset": 634 - } - } - }, - { - "type": "inlineCode", - "value": "'", - "position": { - "start": { - "line": 9, - "column": 20, - "offset": 634 - }, - "end": { - "line": 9, - "column": 23, - "offset": 637 - } - } - }, - { - "type": "text", - "value": " | Yes | Yes | No | No | No |\n| CommonMark | ", - "position": { - "start": { - "line": 9, - "column": 23, - "offset": 637 - }, - "end": { - "line": 10, - "column": 20, - "offset": 735 - } - } - }, - { - "type": "inlineCode", - "value": "'", - "position": { - "start": { - "line": 10, - "column": 20, - "offset": 735 - }, - "end": { - "line": 10, - "column": 23, - "offset": 738 - } - } - }, - { - "type": "text", - "value": " | No | No | Yes | Yes | Yes |\n| Markdown.pl | ", - "position": { - "start": { - "line": 10, - "column": 23, - "offset": 738 - }, - "end": { - "line": 11, - "column": 20, - "offset": 836 - } - } - }, - { - "type": "inlineCode", - "value": "()", - "position": { - "start": { - "line": 11, - "column": 20, - "offset": 836 - }, - "end": { - "line": 11, - "column": 24, - "offset": 840 - } - } - }, - { - "type": "text", - "value": " | - | - | - | - | - |\n| GitHub | ", - "position": { - "start": { - "line": 11, - "column": 24, - "offset": 840 - }, - "end": { - "line": 12, - "column": 20, - "offset": 937 - } - } - }, - { - "type": "inlineCode", - "value": "()", - "position": { - "start": { - "line": 12, - "column": 20, - "offset": 937 - }, - "end": { - "line": 12, - "column": 24, - "offset": 941 - } - } - }, - { - "type": "text", - "value": " | - | - | - | - | - |\n| CommonMark | ", - "position": { - "start": { - "line": 12, - "column": 24, - "offset": 941 - }, - "end": { - "line": 13, - "column": 20, - "offset": 1038 - } - } - }, - { - "type": "inlineCode", - "value": "()", - "position": { - "start": { - "line": 13, - "column": 20, - "offset": 1038 - }, - "end": { - "line": 13, - "column": 24, - "offset": 1042 - } - } - }, - { - "type": "text", - "value": " | No | Yes | Yes | Yes | Yes |", - "position": { - "start": { - "line": 13, - "column": 24, - "offset": 1042 - }, - "end": { - "line": 13, - "column": 101, - "offset": 1119 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 9 - }, - "end": { - "line": 13, - "column": 101, - "offset": 1119 - } - } - }, - { - "type": "heading", - "depth": 2, - "children": [ - { - "type": "text", - "value": "Double quotes", - "position": { - "start": { - "line": 15, - "column": 4, - "offset": 1124 - }, - "end": { - "line": 15, - "column": 17, - "offset": 1137 - } - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 1121 - }, - "end": { - "line": 15, - "column": 17, - "offset": 1137 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "and text", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 17, - "column": 2, - "offset": 1140 - }, - "end": { - "line": 17, - "column": 7, - "offset": 1145 - } - } - } - ], - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 1139 - }, - "end": { - "line": 17, - "column": 33, - "offset": 1171 - } - } - } - ], - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 1139 - }, - "end": { - "line": 17, - "column": 33, - "offset": 1171 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[Hello](./world.html \"and \"matching delimiters\"\")", - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 1173 - }, - "end": { - "line": 19, - "column": 50, - "offset": 1222 - } - } - } - ], - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 1173 - }, - "end": { - "line": 19, - "column": 50, - "offset": 1222 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[Hello](./world.html \"and \"mismatched delimiters\")", - "position": { - "start": { - "line": 21, - "column": 1, - "offset": 1224 - }, - "end": { - "line": 21, - "column": 51, - "offset": 1274 - } - } - } - ], - "position": { - "start": { - "line": 21, - "column": 1, - "offset": 1224 - }, - "end": { - "line": 21, - "column": 51, - "offset": 1274 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "and \"escapes\"", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 23, - "column": 2, - "offset": 1277 - }, - "end": { - "line": 23, - "column": 7, - "offset": 1282 - } - } - } - ], - "position": { - "start": { - "line": 23, - "column": 1, - "offset": 1276 - }, - "end": { - "line": 23, - "column": 40, - "offset": 1315 - } - } - } - ], - "position": { - "start": { - "line": 23, - "column": 1, - "offset": 1276 - }, - "end": { - "line": 23, - "column": 40, - "offset": 1315 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "and \"named entities\"", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 25, - "column": 2, - "offset": 1318 - }, - "end": { - "line": 25, - "column": 7, - "offset": 1323 - } - } - } - ], - "position": { - "start": { - "line": 25, - "column": 1, - "offset": 1317 - }, - "end": { - "line": 25, - "column": 55, - "offset": 1371 - } - } - } - ], - "position": { - "start": { - "line": 25, - "column": 1, - "offset": 1317 - }, - "end": { - "line": 25, - "column": 55, - "offset": 1371 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "and \"numbered entities\"", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 27, - "column": 2, - "offset": 1374 - }, - "end": { - "line": 27, - "column": 7, - "offset": 1379 - } - } - } - ], - "position": { - "start": { - "line": 27, - "column": 1, - "offset": 1373 - }, - "end": { - "line": 27, - "column": 58, - "offset": 1430 - } - } - } - ], - "position": { - "start": { - "line": 27, - "column": 1, - "offset": 1373 - }, - "end": { - "line": 27, - "column": 58, - "offset": 1430 - } - } - }, - { - "type": "heading", - "depth": 2, - "children": [ - { - "type": "text", - "value": "Single quotes", - "position": { - "start": { - "line": 29, - "column": 4, - "offset": 1435 - }, - "end": { - "line": 29, - "column": 17, - "offset": 1448 - } - } - } - ], - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 1432 - }, - "end": { - "line": 29, - "column": 17, - "offset": 1448 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "and text", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 31, - "column": 2, - "offset": 1451 - }, - "end": { - "line": 31, - "column": 7, - "offset": 1456 - } - } - } - ], - "position": { - "start": { - "line": 31, - "column": 1, - "offset": 1450 - }, - "end": { - "line": 31, - "column": 33, - "offset": 1482 - } - } - } - ], - "position": { - "start": { - "line": 31, - "column": 1, - "offset": 1450 - }, - "end": { - "line": 31, - "column": 33, - "offset": 1482 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[Hello](./world.html 'and 'matching delimiters'')", - "position": { - "start": { - "line": 33, - "column": 1, - "offset": 1484 - }, - "end": { - "line": 33, - "column": 50, - "offset": 1533 - } - } - } - ], - "position": { - "start": { - "line": 33, - "column": 1, - "offset": 1484 - }, - "end": { - "line": 33, - "column": 50, - "offset": 1533 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[Hello](./world.html 'and 'mismatched delimiters')", - "position": { - "start": { - "line": 35, - "column": 1, - "offset": 1535 - }, - "end": { - "line": 35, - "column": 51, - "offset": 1585 - } - } - } - ], - "position": { - "start": { - "line": 35, - "column": 1, - "offset": 1535 - }, - "end": { - "line": 35, - "column": 51, - "offset": 1585 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "and 'escapes'", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 37, - "column": 2, - "offset": 1588 - }, - "end": { - "line": 37, - "column": 7, - "offset": 1593 - } - } - } - ], - "position": { - "start": { - "line": 37, - "column": 1, - "offset": 1587 - }, - "end": { - "line": 37, - "column": 40, - "offset": 1626 - } - } - } - ], - "position": { - "start": { - "line": 37, - "column": 1, - "offset": 1587 - }, - "end": { - "line": 37, - "column": 40, - "offset": 1626 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "and 'named entities'", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 39, - "column": 2, - "offset": 1629 - }, - "end": { - "line": 39, - "column": 7, - "offset": 1634 - } - } - } - ], - "position": { - "start": { - "line": 39, - "column": 1, - "offset": 1628 - }, - "end": { - "line": 39, - "column": 55, - "offset": 1682 - } - } - } - ], - "position": { - "start": { - "line": 39, - "column": 1, - "offset": 1628 - }, - "end": { - "line": 39, - "column": 55, - "offset": 1682 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "and 'numbered entities'", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 41, - "column": 2, - "offset": 1685 - }, - "end": { - "line": 41, - "column": 7, - "offset": 1690 - } - } - } - ], - "position": { - "start": { - "line": 41, - "column": 1, - "offset": 1684 - }, - "end": { - "line": 41, - "column": 58, - "offset": 1741 - } - } - } - ], - "position": { - "start": { - "line": 41, - "column": 1, - "offset": 1684 - }, - "end": { - "line": 41, - "column": 58, - "offset": 1741 - } - } - }, - { - "type": "heading", - "depth": 2, - "children": [ - { - "type": "text", - "value": "Parentheses", - "position": { - "start": { - "line": 43, - "column": 4, - "offset": 1746 - }, - "end": { - "line": 43, - "column": 15, - "offset": 1757 - } - } - } - ], - "position": { - "start": { - "line": 43, - "column": 1, - "offset": 1743 - }, - "end": { - "line": 43, - "column": 15, - "offset": 1757 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "and text", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 45, - "column": 2, - "offset": 1760 - }, - "end": { - "line": 45, - "column": 7, - "offset": 1765 - } - } - } - ], - "position": { - "start": { - "line": 45, - "column": 1, - "offset": 1759 - }, - "end": { - "line": 45, - "column": 33, - "offset": 1791 - } - } - } - ], - "position": { - "start": { - "line": 45, - "column": 1, - "offset": 1759 - }, - "end": { - "line": 45, - "column": 33, - "offset": 1791 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "and (matching delimiters", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 47, - "column": 2, - "offset": 1794 - }, - "end": { - "line": 47, - "column": 7, - "offset": 1799 - } - } - } - ], - "position": { - "start": { - "line": 47, - "column": 1, - "offset": 1793 - }, - "end": { - "line": 47, - "column": 49, - "offset": 1841 - } - } - }, - { - "type": "text", - "value": ")", - "position": { - "start": { - "line": 47, - "column": 49, - "offset": 1841 - }, - "end": { - "line": 47, - "column": 50, - "offset": 1842 - } - } - } - ], - "position": { - "start": { - "line": 47, - "column": 1, - "offset": 1793 - }, - "end": { - "line": 47, - "column": 50, - "offset": 1842 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "and (mismatched delimiters", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 49, - "column": 2, - "offset": 1845 - }, - "end": { - "line": 49, - "column": 7, - "offset": 1850 - } - } - } - ], - "position": { - "start": { - "line": 49, - "column": 1, - "offset": 1844 - }, - "end": { - "line": 49, - "column": 51, - "offset": 1894 - } - } - } - ], - "position": { - "start": { - "line": 49, - "column": 1, - "offset": 1844 - }, - "end": { - "line": 49, - "column": 51, - "offset": 1894 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "and (escapes)", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 51, - "column": 2, - "offset": 1897 - }, - "end": { - "line": 51, - "column": 7, - "offset": 1902 - } - } - } - ], - "position": { - "start": { - "line": 51, - "column": 1, - "offset": 1896 - }, - "end": { - "line": 51, - "column": 40, - "offset": 1935 - } - } - } - ], - "position": { - "start": { - "line": 51, - "column": 1, - "offset": 1896 - }, - "end": { - "line": 51, - "column": 40, - "offset": 1935 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "and (named entities)", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 53, - "column": 2, - "offset": 1938 - }, - "end": { - "line": 53, - "column": 7, - "offset": 1943 - } - } - } - ], - "position": { - "start": { - "line": 53, - "column": 1, - "offset": 1937 - }, - "end": { - "line": 53, - "column": 55, - "offset": 1991 - } - } - } - ], - "position": { - "start": { - "line": 53, - "column": 1, - "offset": 1937 - }, - "end": { - "line": 53, - "column": 55, - "offset": 1991 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "and (numbered entities)", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 55, - "column": 2, - "offset": 1994 - }, - "end": { - "line": 55, - "column": 7, - "offset": 1999 - } - } - } - ], - "position": { - "start": { - "line": 55, - "column": 1, - "offset": 1993 - }, - "end": { - "line": 55, - "column": 58, - "offset": 2050 - } - } - } - ], - "position": { - "start": { - "line": 55, - "column": 1, - "offset": 1993 - }, - "end": { - "line": 55, - "column": 58, - "offset": 2050 - } - } - }, - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Images", - "position": { - "start": { - "line": 57, - "column": 3, - "offset": 2054 - }, - "end": { - "line": 57, - "column": 9, - "offset": 2060 - } - } - } - ], - "position": { - "start": { - "line": 57, - "column": 1, - "offset": 2052 - }, - "end": { - "line": 57, - "column": 9, - "offset": 2060 - } - } - }, - { - "type": "heading", - "depth": 2, - "children": [ - { - "type": "text", - "value": "Double quotes", - "position": { - "start": { - "line": 59, - "column": 4, - "offset": 2065 - }, - "end": { - "line": 59, - "column": 17, - "offset": 2078 - } - } - } - ], - "position": { - "start": { - "line": 59, - "column": 1, - "offset": 2062 - }, - "end": { - "line": 59, - "column": 17, - "offset": 2078 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "and text", - "url": "./world.png", - "alt": "Hello", - "position": { - "start": { - "line": 61, - "column": 1, - "offset": 2080 - }, - "end": { - "line": 61, - "column": 33, - "offset": 2112 - } - } - } - ], - "position": { - "start": { - "line": 61, - "column": 1, - "offset": 2080 - }, - "end": { - "line": 61, - "column": 33, - "offset": 2112 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "![Hello](./world.png \"and \"matching delimiters\"\")", - "position": { - "start": { - "line": 63, - "column": 1, - "offset": 2114 - }, - "end": { - "line": 63, - "column": 50, - "offset": 2163 - } - } - } - ], - "position": { - "start": { - "line": 63, - "column": 1, - "offset": 2114 - }, - "end": { - "line": 63, - "column": 50, - "offset": 2163 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "![Hello](./world.png \"and \"mismatched delimiters\")", - "position": { - "start": { - "line": 65, - "column": 1, - "offset": 2165 - }, - "end": { - "line": 65, - "column": 51, - "offset": 2215 - } - } - } - ], - "position": { - "start": { - "line": 65, - "column": 1, - "offset": 2165 - }, - "end": { - "line": 65, - "column": 51, - "offset": 2215 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "and \"escapes\"", - "url": "./world.png", - "alt": "Hello", - "position": { - "start": { - "line": 67, - "column": 1, - "offset": 2217 - }, - "end": { - "line": 67, - "column": 40, - "offset": 2256 - } - } - } - ], - "position": { - "start": { - "line": 67, - "column": 1, - "offset": 2217 - }, - "end": { - "line": 67, - "column": 40, - "offset": 2256 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "and \"named entities\"", - "url": "./world.png", - "alt": "Hello", - "position": { - "start": { - "line": 69, - "column": 1, - "offset": 2258 - }, - "end": { - "line": 69, - "column": 55, - "offset": 2312 - } - } - } - ], - "position": { - "start": { - "line": 69, - "column": 1, - "offset": 2258 - }, - "end": { - "line": 69, - "column": 55, - "offset": 2312 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "and \"numbered entities\"", - "url": "./world.png", - "alt": "Hello", - "position": { - "start": { - "line": 71, - "column": 1, - "offset": 2314 - }, - "end": { - "line": 71, - "column": 58, - "offset": 2371 - } - } - } - ], - "position": { - "start": { - "line": 71, - "column": 1, - "offset": 2314 - }, - "end": { - "line": 71, - "column": 58, - "offset": 2371 - } - } - }, - { - "type": "heading", - "depth": 2, - "children": [ - { - "type": "text", - "value": "Single quotes", - "position": { - "start": { - "line": 73, - "column": 4, - "offset": 2376 - }, - "end": { - "line": 73, - "column": 17, - "offset": 2389 - } - } - } - ], - "position": { - "start": { - "line": 73, - "column": 1, - "offset": 2373 - }, - "end": { - "line": 73, - "column": 17, - "offset": 2389 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "and text", - "url": "./world.png", - "alt": "Hello", - "position": { - "start": { - "line": 75, - "column": 1, - "offset": 2391 - }, - "end": { - "line": 75, - "column": 33, - "offset": 2423 - } - } - } - ], - "position": { - "start": { - "line": 75, - "column": 1, - "offset": 2391 - }, - "end": { - "line": 75, - "column": 33, - "offset": 2423 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "![Hello](./world.png 'and 'matching delimiters'')", - "position": { - "start": { - "line": 77, - "column": 1, - "offset": 2425 - }, - "end": { - "line": 77, - "column": 50, - "offset": 2474 - } - } - } - ], - "position": { - "start": { - "line": 77, - "column": 1, - "offset": 2425 - }, - "end": { - "line": 77, - "column": 50, - "offset": 2474 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "![Hello](./world.png 'and 'mismatched delimiters')", - "position": { - "start": { - "line": 79, - "column": 1, - "offset": 2476 - }, - "end": { - "line": 79, - "column": 51, - "offset": 2526 - } - } - } - ], - "position": { - "start": { - "line": 79, - "column": 1, - "offset": 2476 - }, - "end": { - "line": 79, - "column": 51, - "offset": 2526 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "and 'escapes'", - "url": "./world.png", - "alt": "Hello", - "position": { - "start": { - "line": 81, - "column": 1, - "offset": 2528 - }, - "end": { - "line": 81, - "column": 40, - "offset": 2567 - } - } - } - ], - "position": { - "start": { - "line": 81, - "column": 1, - "offset": 2528 - }, - "end": { - "line": 81, - "column": 40, - "offset": 2567 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "and 'named entities'", - "url": "./world.png", - "alt": "Hello", - "position": { - "start": { - "line": 83, - "column": 1, - "offset": 2569 - }, - "end": { - "line": 83, - "column": 55, - "offset": 2623 - } - } - } - ], - "position": { - "start": { - "line": 83, - "column": 1, - "offset": 2569 - }, - "end": { - "line": 83, - "column": 55, - "offset": 2623 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "and 'numbered entities'", - "url": "./world.png", - "alt": "Hello", - "position": { - "start": { - "line": 85, - "column": 1, - "offset": 2625 - }, - "end": { - "line": 85, - "column": 58, - "offset": 2682 - } - } - } - ], - "position": { - "start": { - "line": 85, - "column": 1, - "offset": 2625 - }, - "end": { - "line": 85, - "column": 58, - "offset": 2682 - } - } - }, - { - "type": "heading", - "depth": 2, - "children": [ - { - "type": "text", - "value": "Parentheses", - "position": { - "start": { - "line": 87, - "column": 4, - "offset": 2687 - }, - "end": { - "line": 87, - "column": 15, - "offset": 2698 - } - } - } - ], - "position": { - "start": { - "line": 87, - "column": 1, - "offset": 2684 - }, - "end": { - "line": 87, - "column": 15, - "offset": 2698 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "and text", - "url": "./world.png", - "alt": "Hello", - "position": { - "start": { - "line": 89, - "column": 1, - "offset": 2700 - }, - "end": { - "line": 89, - "column": 33, - "offset": 2732 - } - } - } - ], - "position": { - "start": { - "line": 89, - "column": 1, - "offset": 2700 - }, - "end": { - "line": 89, - "column": 33, - "offset": 2732 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "and (matching delimiters", - "url": "./world.png", - "alt": "Hello", - "position": { - "start": { - "line": 91, - "column": 1, - "offset": 2734 - }, - "end": { - "line": 91, - "column": 49, - "offset": 2782 - } - } - }, - { - "type": "text", - "value": ")", - "position": { - "start": { - "line": 91, - "column": 49, - "offset": 2782 - }, - "end": { - "line": 91, - "column": 50, - "offset": 2783 - } - } - } - ], - "position": { - "start": { - "line": 91, - "column": 1, - "offset": 2734 - }, - "end": { - "line": 91, - "column": 50, - "offset": 2783 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "and (mismatched delimiters", - "url": "./world.png", - "alt": "Hello", - "position": { - "start": { - "line": 93, - "column": 1, - "offset": 2785 - }, - "end": { - "line": 93, - "column": 51, - "offset": 2835 - } - } - } - ], - "position": { - "start": { - "line": 93, - "column": 1, - "offset": 2785 - }, - "end": { - "line": 93, - "column": 51, - "offset": 2835 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "and (escapes)", - "url": "./world.png", - "alt": "Hello", - "position": { - "start": { - "line": 95, - "column": 1, - "offset": 2837 - }, - "end": { - "line": 95, - "column": 40, - "offset": 2876 - } - } - } - ], - "position": { - "start": { - "line": 95, - "column": 1, - "offset": 2837 - }, - "end": { - "line": 95, - "column": 40, - "offset": 2876 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "and (named entities)", - "url": "./world.png", - "alt": "Hello", - "position": { - "start": { - "line": 97, - "column": 1, - "offset": 2878 - }, - "end": { - "line": 97, - "column": 55, - "offset": 2932 - } - } - } - ], - "position": { - "start": { - "line": 97, - "column": 1, - "offset": 2878 - }, - "end": { - "line": 97, - "column": 55, - "offset": 2932 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "and (numbered entities)", - "url": "./world.png", - "alt": "Hello", - "position": { - "start": { - "line": 99, - "column": 1, - "offset": 2934 - }, - "end": { - "line": 99, - "column": 58, - "offset": 2991 - } - } - } - ], - "position": { - "start": { - "line": 99, - "column": 1, - "offset": 2934 - }, - "end": { - "line": 99, - "column": 58, - "offset": 2991 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 100, - "column": 1, - "offset": 2992 - } - } -} diff --git a/test/fixtures/tree/toplevel-paragraphs.nooutput.json b/test/fixtures/tree/toplevel-paragraphs.nooutput.json deleted file mode 100644 index e9d70ba81..000000000 --- a/test/fixtures/tree/toplevel-paragraphs.nooutput.json +++ /dev/null @@ -1,682 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "hello world\nhow are you\nhow are you", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 3, - "column": 16, - "offset": 43 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 3, - "column": 16, - "offset": 43 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "hello world", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 45 - }, - "end": { - "line": 5, - "column": 12, - "offset": 56 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 45 - }, - "end": { - "line": 5, - "column": 12, - "offset": 56 - } - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "how are you", - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 57 - }, - "end": { - "line": 8, - "column": 4, - "offset": 76 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "hello world", - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 78 - }, - "end": { - "line": 10, - "column": 12, - "offset": 89 - } - } - } - ], - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 78 - }, - "end": { - "line": 10, - "column": 12, - "offset": 89 - } - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 90 - }, - "end": { - "line": 11, - "column": 6, - "offset": 95 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "hello world", - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 97 - }, - "end": { - "line": 13, - "column": 12, - "offset": 108 - } - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 97 - }, - "end": { - "line": 13, - "column": 12, - "offset": 108 - } - } - }, - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "how are you", - "position": { - "start": { - "line": 14, - "column": 3, - "offset": 111 - }, - "end": { - "line": 14, - "column": 14, - "offset": 122 - } - } - } - ], - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 109 - }, - "end": { - "line": 14, - "column": 14, - "offset": 122 - } - } - }, - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "hello world\nhow are you", - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 124 - }, - "end": { - "line": 17, - "column": 12, - "offset": 147 - } - } - } - ], - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 124 - }, - "end": { - "line": 18, - "column": 12, - "offset": 159 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "hello world", - "position": { - "start": { - "line": 20, - "column": 1, - "offset": 161 - }, - "end": { - "line": 20, - "column": 12, - "offset": 172 - } - } - } - ], - "position": { - "start": { - "line": 20, - "column": 1, - "offset": 161 - }, - "end": { - "line": 20, - "column": 12, - "offset": 172 - } - } - }, - { - "type": "blockquote", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "how are you", - "position": { - "start": { - "line": 21, - "column": 3, - "offset": 175 - }, - "end": { - "line": 21, - "column": 14, - "offset": 186 - } - } - } - ], - "position": { - "start": { - "line": 21, - "column": 3, - "offset": 175 - }, - "end": { - "line": 21, - "column": 14, - "offset": 186 - } - } - } - ], - "position": { - "start": { - "line": 21, - "column": 1, - "offset": 173 - }, - "end": { - "line": 21, - "column": 14, - "offset": 186 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "hello world", - "position": { - "start": { - "line": 23, - "column": 1, - "offset": 188 - }, - "end": { - "line": 23, - "column": 12, - "offset": 199 - } - } - } - ], - "position": { - "start": { - "line": 23, - "column": 1, - "offset": 188 - }, - "end": { - "line": 23, - "column": 12, - "offset": 199 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "how are you", - "position": { - "start": { - "line": 24, - "column": 3, - "offset": 202 - }, - "end": { - "line": 24, - "column": 14, - "offset": 213 - } - } - } - ], - "position": { - "start": { - "line": 24, - "column": 3, - "offset": 202 - }, - "end": { - "line": 24, - "column": 14, - "offset": 213 - } - } - } - ], - "position": { - "start": { - "line": 24, - "column": 1, - "offset": 200 - }, - "end": { - "line": 24, - "column": 14, - "offset": 213 - } - } - } - ], - "position": { - "start": { - "line": 24, - "column": 1, - "offset": 200 - }, - "end": { - "line": 24, - "column": 14, - "offset": 213 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "hello world", - "position": { - "start": { - "line": 26, - "column": 1, - "offset": 215 - }, - "end": { - "line": 26, - "column": 12, - "offset": 226 - } - } - } - ], - "position": { - "start": { - "line": 26, - "column": 1, - "offset": 215 - }, - "end": { - "line": 26, - "column": 12, - "offset": 226 - } - } - }, - { - "type": "html", - "value": "
how are you
", - "position": { - "start": { - "line": 27, - "column": 1, - "offset": 227 - }, - "end": { - "line": 27, - "column": 23, - "offset": 249 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "hello world\n", - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 251 - }, - "end": { - "line": 30, - "column": 1, - "offset": 263 - } - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 30, - "column": 1, - "offset": 263 - }, - "end": { - "line": 30, - "column": 7, - "offset": 269 - } - } - }, - { - "type": "text", - "value": "how are you", - "position": { - "start": { - "line": 30, - "column": 7, - "offset": 269 - }, - "end": { - "line": 30, - "column": 18, - "offset": 280 - } - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 30, - "column": 18, - "offset": 280 - }, - "end": { - "line": 30, - "column": 25, - "offset": 287 - } - } - } - ], - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 251 - }, - "end": { - "line": 30, - "column": 25, - "offset": 287 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "hello [world][how]\n[how]: /are/you", - "position": { - "start": { - "line": 32, - "column": 1, - "offset": 289 - }, - "end": { - "line": 33, - "column": 16, - "offset": 323 - } - } - } - ], - "position": { - "start": { - "line": 32, - "column": 1, - "offset": 289 - }, - "end": { - "line": 33, - "column": 16, - "offset": 323 - } - } - }, - { - "type": "html", - "value": "
hello
", - "position": { - "start": { - "line": 35, - "column": 1, - "offset": 325 - }, - "end": { - "line": 35, - "column": 17, - "offset": 341 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 37, - "column": 1, - "offset": 343 - }, - "end": { - "line": 37, - "column": 7, - "offset": 349 - } - } - }, - { - "type": "text", - "value": "hello", - "position": { - "start": { - "line": 37, - "column": 7, - "offset": 349 - }, - "end": { - "line": 37, - "column": 12, - "offset": 354 - } - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 37, - "column": 12, - "offset": 354 - }, - "end": { - "line": 37, - "column": 19, - "offset": 361 - } - } - } - ], - "position": { - "start": { - "line": 37, - "column": 1, - "offset": 343 - }, - "end": { - "line": 37, - "column": 19, - "offset": 361 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 38, - "column": 1, - "offset": 362 - } - } -} diff --git a/test/fixtures/tree/tricky-list.json b/test/fixtures/tree/tricky-list.json deleted file mode 100644 index 03b954669..000000000 --- a/test/fixtures/tree/tricky-list.json +++ /dev/null @@ -1,701 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "hello", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 8, - "offset": 7 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 10, - "offset": 9 - } - } - }, - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 1, - "column": 10, - "offset": 9 - }, - "end": { - "line": 1, - "column": 11, - "offset": 10 - } - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "world", - "position": { - "start": { - "line": 1, - "column": 12, - "offset": 11 - }, - "end": { - "line": 1, - "column": 17, - "offset": 16 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 11, - "offset": 10 - }, - "end": { - "line": 1, - "column": 18, - "offset": 17 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 18, - "offset": 17 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "hello world", - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 21 - }, - "end": { - "line": 3, - "column": 14, - "offset": 32 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 21 - }, - "end": { - "line": 3, - "column": 14, - "offset": 32 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 19 - }, - "end": { - "line": 3, - "column": 14, - "offset": 32 - } - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 19 - }, - "end": { - "line": 3, - "column": 14, - "offset": 32 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "hello", - "position": { - "start": { - "line": 5, - "column": 3, - "offset": 36 - }, - "end": { - "line": 5, - "column": 8, - "offset": 41 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 34 - }, - "end": { - "line": 5, - "column": 10, - "offset": 43 - } - } - }, - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 5, - "column": 10, - "offset": 43 - }, - "end": { - "line": 5, - "column": 11, - "offset": 44 - } - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "world", - "position": { - "start": { - "line": 5, - "column": 12, - "offset": 45 - }, - "end": { - "line": 5, - "column": 17, - "offset": 50 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 11, - "offset": 44 - }, - "end": { - "line": 5, - "column": 18, - "offset": 51 - } - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 34 - }, - "end": { - "line": 5, - "column": 18, - "offset": 51 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "hello world", - "position": { - "start": { - "line": 7, - "column": 3, - "offset": 55 - }, - "end": { - "line": 7, - "column": 14, - "offset": 66 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 3, - "offset": 55 - }, - "end": { - "line": 7, - "column": 14, - "offset": 66 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 53 - }, - "end": { - "line": 7, - "column": 14, - "offset": 66 - } - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 53 - }, - "end": { - "line": 7, - "column": 14, - "offset": 66 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "hello", - "position": { - "start": { - "line": 9, - "column": 3, - "offset": 70 - }, - "end": { - "line": 9, - "column": 8, - "offset": 75 - } - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 68 - }, - "end": { - "line": 9, - "column": 10, - "offset": 77 - } - } - }, - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 9, - "column": 10, - "offset": 77 - }, - "end": { - "line": 9, - "column": 11, - "offset": 78 - } - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "world", - "position": { - "start": { - "line": 9, - "column": 12, - "offset": 79 - }, - "end": { - "line": 9, - "column": 17, - "offset": 84 - } - } - } - ], - "position": { - "start": { - "line": 9, - "column": 11, - "offset": 78 - }, - "end": { - "line": 9, - "column": 18, - "offset": 85 - } - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 68 - }, - "end": { - "line": 9, - "column": 18, - "offset": 85 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hello world", - "position": { - "start": { - "line": 11, - "column": 3, - "offset": 89 - }, - "end": { - "line": 11, - "column": 14, - "offset": 100 - } - } - } - ], - "position": { - "start": { - "line": 11, - "column": 3, - "offset": 89 - }, - "end": { - "line": 11, - "column": 14, - "offset": 100 - } - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 87 - }, - "end": { - "line": 11, - "column": 14, - "offset": 100 - } - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 87 - }, - "end": { - "line": 11, - "column": 14, - "offset": 100 - } - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "hello", - "position": { - "start": { - "line": 13, - "column": 3, - "offset": 104 - }, - "end": { - "line": 13, - "column": 8, - "offset": 109 - } - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 102 - }, - "end": { - "line": 13, - "column": 10, - "offset": 111 - } - } - }, - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 13, - "column": 10, - "offset": 111 - }, - "end": { - "line": 13, - "column": 11, - "offset": 112 - } - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "world", - "position": { - "start": { - "line": 13, - "column": 12, - "offset": 113 - }, - "end": { - "line": 13, - "column": 17, - "offset": 118 - } - } - } - ], - "position": { - "start": { - "line": 13, - "column": 11, - "offset": 112 - }, - "end": { - "line": 13, - "column": 18, - "offset": 119 - } - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 102 - }, - "end": { - "line": 13, - "column": 18, - "offset": 119 - } - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "hello world", - "position": { - "start": { - "line": 15, - "column": 3, - "offset": 123 - }, - "end": { - "line": 15, - "column": 14, - "offset": 134 - } - } - } - ], - "position": { - "start": { - "line": 15, - "column": 3, - "offset": 123 - }, - "end": { - "line": 15, - "column": 14, - "offset": 134 - } - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 121 - }, - "end": { - "line": 15, - "column": 14, - "offset": 134 - } - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 121 - }, - "end": { - "line": 15, - "column": 14, - "offset": 134 - } - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 16, - "column": 1, - "offset": 135 - } - } -} diff --git a/test/index.js b/test/index.js deleted file mode 100644 index 4bb6b9132..000000000 --- a/test/index.js +++ /dev/null @@ -1,53 +0,0 @@ -import assert from 'node:assert/strict' -import test from 'node:test' -import {removePosition} from 'unist-util-remove-position' -import {assert as mdastAssert} from 'mdast-util-assert' -import {remark} from '../packages/remark/index.js' -import {fixtures} from './fixtures/index.js' - -test('fixtures', async (t) => { - let index = -1 - - while (++index < fixtures.length) { - const fixture = fixtures[index] - - // eslint-disable-next-line no-await-in-loop - await t.test(fixture.name, () => { - const actualTree = remark().parse(fixture.input) - - mdastAssert(actualTree) - - assert.deepEqual( - actualTree, - fixture.tree, - 'should parse `' + fixture.name + '` correctly' - ) - - const actualOutput = remark() - .data('settings', fixture.stringify) - .stringify(actualTree) - - if (fixture.output !== false) { - const reparsedTree = remark().parse(actualOutput) - - assert(reparsedTree) - removePosition(actualTree, {force: true}) - removePosition(reparsedTree, {force: true}) - - assert.deepEqual( - actualTree, - reparsedTree, - 'should stringify `' + fixture.name + '`' - ) - } - - if (fixture.output === true) { - assert.equal( - fixture.input, - actualOutput, - 'should stringify `' + fixture.name + '` exact' - ) - } - }) - } -})