From 9ba432b85a4fc465b0e41ee5bf9b98029e6539b6 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Sun, 29 Mar 2020 19:01:13 +0200 Subject: [PATCH] Move footnotes to `remark-footnotes` Footnotes are now available in `remark-footnotes`, where they received significant improvements to become much better! Footnotes parsing has been completely rewritten there, so please take note when upgrading and switching to `remark-footnotes`. Upgrade remark, remove the `footnotes: true` option, and instead: ```js .use(footnotes, {inlineNotes: true}) ``` * Inline notes changed from `[^inline note]` (broken) to `^[inline te]` (works) * Labels such as the `this` in `[^this]` or `[^this]: definition`, may no longer contain whitespace * Many bug fixes! --- packages/remark-parse/lib/defaults.js | 1 - packages/remark-parse/lib/parser.js | 10 +- .../remark-parse/lib/tokenize/blank-line.js | 13 +- .../lib/tokenize/footnote-definition.js | 190 ------ .../remark-parse/lib/tokenize/reference.js | 41 +- packages/remark-parse/lib/tokenizer.js | 8 +- packages/remark-parse/readme.md | 24 +- packages/remark-parse/test.js | 8 - packages/remark-parse/types/index.d.ts | 14 +- packages/remark-stringify/lib/compiler.js | 3 - .../lib/visitors/footnote-definition.js | 30 - .../lib/visitors/footnote-reference.js | 16 - .../remark-stringify/lib/visitors/footnote.js | 13 - packages/remark-stringify/test.js | 27 +- packages/remark/test.js | 6 - test/fixtures/input/footnote-consecutive.text | 10 - test/fixtures/input/footnote-duplicate.text | 4 - .../fixtures/input/footnote-empty.output.text | 1 - test/fixtures/input/footnote-escape.text | 3 - test/fixtures/input/footnote-ids.text | 3 - test/fixtures/input/footnote-indent.text | 3 - test/fixtures/input/footnote-inline.text | 1 - test/fixtures/input/footnote-like.text | 3 - test/fixtures/input/footnote-matrix.text | 4 - test/fixtures/input/footnote-multiple.text | 7 - test/fixtures/input/footnote-nested.text | 3 - .../input/footnote-or-reference-label.text | 5 - test/fixtures/input/footnote-proto.text | 5 - .../input/footnote-trailing-whitespace.text | 2 - .../input/footnote-without-space.text | 14 - test/fixtures/input/footnote.output.text | 11 - test/fixtures/input/footnote.text | 11 - test/fixtures/input/nested-references.text | 6 - .../tree/footnote-consecutive.footnotes.json | 467 -------------- ...otnote-consecutive.footnotes.pedantic.json | 467 -------------- test/fixtures/tree/footnote-consecutive.json | 519 --------------- .../tree/footnote-duplicate.footnotes.json | 197 ------ ...footnote-duplicate.footnotes.pedantic.json | 197 ------ test/fixtures/tree/footnote-duplicate.json | 239 ------- .../tree/footnote-duplicate.pedantic.json | 239 ------- .../tree/footnote-empty.output.footnotes.json | 86 --- .../tree/footnote-escape.footnotes.json | 142 ----- test/fixtures/tree/footnote-escape.json | 248 -------- .../fixtures/tree/footnote-ids.footnotes.json | 228 ------- test/fixtures/tree/footnote-ids.json | 269 -------- .../tree/footnote-indent.footnotes.json | 142 ----- test/fixtures/tree/footnote-indent.json | 197 ------ .../tree/footnote-inline.footnotes.json | 139 ---- test/fixtures/tree/footnote-inline.json | 142 ----- .../tree/footnote-like.footnotes.json | 268 -------- test/fixtures/tree/footnote-like.json | 235 ------- .../tree/footnote-matrix.footnotes.json | 380 ----------- test/fixtures/tree/footnote-matrix.json | 346 ---------- .../tree/footnote-multiple.footnotes.json | 231 ------- .../footnote-multiple.footnotes.pedantic.json | 231 ------- test/fixtures/tree/footnote-multiple.json | 289 --------- .../tree/footnote-multiple.pedantic.json | 289 --------- .../tree/footnote-nested.footnotes.json | 212 ------- test/fixtures/tree/footnote-nested.json | 253 -------- ...footnote-or-reference-label.footnotes.json | 166 ----- .../tree/footnote-or-reference-label.json | 166 ----- .../tree/footnote-proto.footnotes.json | 424 ------------- test/fixtures/tree/footnote-proto.json | 579 ----------------- ...ootnote-trailing-whitespace.footnotes.json | 72 --- .../tree/footnote-trailing-whitespace.json | 90 --- .../footnote-without-space.footnotes.json | 510 --------------- .../fixtures/tree/footnote-without-space.json | 593 ------------------ test/fixtures/tree/footnote.footnotes.json | 487 -------------- test/fixtures/tree/footnote.json | 489 --------------- .../tree/footnote.output.footnotes.json | 592 ----------------- ...ist-continuation.commonmark.footnotes.json | 540 ---------------- ...nuation.commonmark.footnotes.pedantic.json | 503 --------------- .../tree/list-continuation.footnotes.json | 456 -------------- .../list-continuation.footnotes.pedantic.json | 455 -------------- ...ntinuation.nogfm.commonmark.footnotes.json | 497 --------------- ...n.nogfm.commonmark.footnotes.pedantic.json | 470 -------------- .../list-continuation.nogfm.footnotes.json | 468 -------------- ...continuation.nogfm.footnotes.pedantic.json | 459 -------------- ...ested-references.commonmark.footnotes.json | 389 ------------ .../tree/nested-references.commonmark.json | 184 +----- .../tree/nested-references.footnotes.json | 389 ------------ test/fixtures/tree/nested-references.json | 184 +----- 82 files changed, 47 insertions(+), 16267 deletions(-) delete mode 100644 packages/remark-parse/lib/tokenize/footnote-definition.js delete mode 100644 packages/remark-stringify/lib/visitors/footnote-definition.js delete mode 100644 packages/remark-stringify/lib/visitors/footnote-reference.js delete mode 100644 packages/remark-stringify/lib/visitors/footnote.js delete mode 100644 test/fixtures/input/footnote-consecutive.text delete mode 100644 test/fixtures/input/footnote-duplicate.text delete mode 100644 test/fixtures/input/footnote-empty.output.text delete mode 100644 test/fixtures/input/footnote-escape.text delete mode 100644 test/fixtures/input/footnote-ids.text delete mode 100644 test/fixtures/input/footnote-indent.text delete mode 100644 test/fixtures/input/footnote-inline.text delete mode 100644 test/fixtures/input/footnote-like.text delete mode 100644 test/fixtures/input/footnote-matrix.text delete mode 100644 test/fixtures/input/footnote-multiple.text delete mode 100644 test/fixtures/input/footnote-nested.text delete mode 100644 test/fixtures/input/footnote-or-reference-label.text delete mode 100644 test/fixtures/input/footnote-proto.text delete mode 100644 test/fixtures/input/footnote-trailing-whitespace.text delete mode 100644 test/fixtures/input/footnote-without-space.text delete mode 100644 test/fixtures/input/footnote.output.text delete mode 100644 test/fixtures/input/footnote.text delete mode 100644 test/fixtures/tree/footnote-consecutive.footnotes.json delete mode 100644 test/fixtures/tree/footnote-consecutive.footnotes.pedantic.json delete mode 100644 test/fixtures/tree/footnote-consecutive.json delete mode 100644 test/fixtures/tree/footnote-duplicate.footnotes.json delete mode 100644 test/fixtures/tree/footnote-duplicate.footnotes.pedantic.json delete mode 100644 test/fixtures/tree/footnote-duplicate.json delete mode 100644 test/fixtures/tree/footnote-duplicate.pedantic.json delete mode 100644 test/fixtures/tree/footnote-empty.output.footnotes.json delete mode 100644 test/fixtures/tree/footnote-escape.footnotes.json delete mode 100644 test/fixtures/tree/footnote-escape.json delete mode 100644 test/fixtures/tree/footnote-ids.footnotes.json delete mode 100644 test/fixtures/tree/footnote-ids.json delete mode 100644 test/fixtures/tree/footnote-indent.footnotes.json delete mode 100644 test/fixtures/tree/footnote-indent.json delete mode 100644 test/fixtures/tree/footnote-inline.footnotes.json delete mode 100644 test/fixtures/tree/footnote-inline.json delete mode 100644 test/fixtures/tree/footnote-like.footnotes.json delete mode 100644 test/fixtures/tree/footnote-like.json delete mode 100644 test/fixtures/tree/footnote-matrix.footnotes.json delete mode 100644 test/fixtures/tree/footnote-matrix.json delete mode 100644 test/fixtures/tree/footnote-multiple.footnotes.json delete mode 100644 test/fixtures/tree/footnote-multiple.footnotes.pedantic.json delete mode 100644 test/fixtures/tree/footnote-multiple.json delete mode 100644 test/fixtures/tree/footnote-multiple.pedantic.json delete mode 100644 test/fixtures/tree/footnote-nested.footnotes.json delete mode 100644 test/fixtures/tree/footnote-nested.json delete mode 100644 test/fixtures/tree/footnote-or-reference-label.footnotes.json delete mode 100644 test/fixtures/tree/footnote-or-reference-label.json delete mode 100644 test/fixtures/tree/footnote-proto.footnotes.json delete mode 100644 test/fixtures/tree/footnote-proto.json delete mode 100644 test/fixtures/tree/footnote-trailing-whitespace.footnotes.json delete mode 100644 test/fixtures/tree/footnote-trailing-whitespace.json delete mode 100644 test/fixtures/tree/footnote-without-space.footnotes.json delete mode 100644 test/fixtures/tree/footnote-without-space.json delete mode 100644 test/fixtures/tree/footnote.footnotes.json delete mode 100644 test/fixtures/tree/footnote.json delete mode 100644 test/fixtures/tree/footnote.output.footnotes.json delete mode 100644 test/fixtures/tree/list-continuation.commonmark.footnotes.json delete mode 100644 test/fixtures/tree/list-continuation.commonmark.footnotes.pedantic.json delete mode 100644 test/fixtures/tree/list-continuation.footnotes.json delete mode 100644 test/fixtures/tree/list-continuation.footnotes.pedantic.json delete mode 100644 test/fixtures/tree/list-continuation.nogfm.commonmark.footnotes.json delete mode 100644 test/fixtures/tree/list-continuation.nogfm.commonmark.footnotes.pedantic.json delete mode 100644 test/fixtures/tree/list-continuation.nogfm.footnotes.json delete mode 100644 test/fixtures/tree/list-continuation.nogfm.footnotes.pedantic.json delete mode 100644 test/fixtures/tree/nested-references.commonmark.footnotes.json delete mode 100644 test/fixtures/tree/nested-references.footnotes.json diff --git a/packages/remark-parse/lib/defaults.js b/packages/remark-parse/lib/defaults.js index 7776e3c08..76443a57a 100644 --- a/packages/remark-parse/lib/defaults.js +++ b/packages/remark-parse/lib/defaults.js @@ -4,7 +4,6 @@ module.exports = { position: true, gfm: true, commonmark: false, - footnotes: false, pedantic: false, blocks: require('./block-elements') } diff --git a/packages/remark-parse/lib/parser.js b/packages/remark-parse/lib/parser.js index b932d4615..0abe63157 100644 --- a/packages/remark-parse/lib/parser.js +++ b/packages/remark-parse/lib/parser.js @@ -55,8 +55,7 @@ proto.interruptParagraph = [ ['blockquote'], ['html'], ['setextHeading', {commonmark: false}], - ['definition', {commonmark: false}], - ['footnote', {commonmark: false}] + ['definition', {commonmark: false}] ] // Nodes that can interupt a list: @@ -71,8 +70,7 @@ proto.interruptList = [ ['atxHeading', {pedantic: false}], ['fencedCode', {pedantic: false}], ['thematicBreak', {pedantic: false}], - ['definition', {commonmark: false}], - ['footnote', {commonmark: false}] + ['definition', {commonmark: false}] ] // Nodes that can interupt a blockquote: @@ -91,8 +89,7 @@ proto.interruptBlockquote = [ ['thematicBreak', {commonmark: true}], ['html', {commonmark: true}], ['list', {commonmark: true}], - ['definition', {commonmark: false}], - ['footnote', {commonmark: false}] + ['definition', {commonmark: false}] ] // Handlers. @@ -106,7 +103,6 @@ proto.blockTokenizers = { list: require('./tokenize/list'), setextHeading: require('./tokenize/heading-setext'), html: require('./tokenize/html-block'), - footnote: require('./tokenize/footnote-definition'), definition: require('./tokenize/definition'), table: require('./tokenize/table'), paragraph: require('./tokenize/paragraph') diff --git a/packages/remark-parse/lib/tokenize/blank-line.js b/packages/remark-parse/lib/tokenize/blank-line.js index 43a4b50ba..387fd45a5 100644 --- a/packages/remark-parse/lib/tokenize/blank-line.js +++ b/packages/remark-parse/lib/tokenize/blank-line.js @@ -1,11 +1,15 @@ 'use strict' -// A line containing no characters, or a line containing only spaces (U+0020) or tabs (U+0009), is called a blank line. -// See https://spec.commonmark.org/0.29/#blank-line +// A line containing no characters, or a line containing only spaces (U+0020) or +// tabs (U+0009), is called a blank line. +// See . var reBlankLine = /^[ \t]*(\n|$)/ -// NOTE: Though blank lines play a special role in lists to determine whether the list is tight or loose (https://spec.commonmark.org/0.29/#blank-lines), -// it's done by the list tokenizer and this blank-line tokenizer does not have to be responsible for that. +// Note that though blank lines play a special role in lists to determine +// whether the list is tight or loose +// (), it’s done by the list +// tokenizer and this blank line tokenizer does not have to be responsible for +// that. // Therefore, configs such as `blankLine.notInList` do not have to be set here. module.exports = blankLine @@ -17,6 +21,7 @@ function blankLine(eat, value, silent) { while (index < length) { match = reBlankLine.exec(value.slice(index)) + if (match == null) { break } diff --git a/packages/remark-parse/lib/tokenize/footnote-definition.js b/packages/remark-parse/lib/tokenize/footnote-definition.js deleted file mode 100644 index 235390c14..000000000 --- a/packages/remark-parse/lib/tokenize/footnote-definition.js +++ /dev/null @@ -1,190 +0,0 @@ -'use strict' - -var whitespace = require('is-whitespace-character') -var normalize = require('../util/normalize') - -module.exports = footnoteDefinition -footnoteDefinition.notInList = true -footnoteDefinition.notInBlock = true - -var backslash = '\\' -var lineFeed = '\n' -var tab = '\t' -var space = ' ' -var leftSquareBracket = '[' -var rightSquareBracket = ']' -var caret = '^' -var colon = ':' - -var EXPRESSION_INITIAL_TAB = /^( {4}|\t)?/gm - -function footnoteDefinition(eat, value, silent) { - var self = this - var offsets = self.offset - var index - var length - var subvalue - var now - var currentLine - var content - var queue - var subqueue - var character - var identifier - var add - var exit - - if (!self.options.footnotes) { - return - } - - index = 0 - length = value.length - subvalue = '' - now = eat.now() - currentLine = now.line - - while (index < length) { - character = value.charAt(index) - - if (!whitespace(character)) { - break - } - - subvalue += character - index++ - } - - if ( - value.charAt(index) !== leftSquareBracket || - value.charAt(index + 1) !== caret - ) { - return - } - - subvalue += leftSquareBracket + caret - index = subvalue.length - queue = '' - - while (index < length) { - character = value.charAt(index) - - if (character === rightSquareBracket) { - break - } else if (character === backslash) { - queue += character - index++ - character = value.charAt(index) - } - - queue += character - index++ - } - - if ( - !queue || - value.charAt(index) !== rightSquareBracket || - value.charAt(index + 1) !== colon - ) { - return - } - - if (silent) { - return true - } - - identifier = queue - subvalue += queue + rightSquareBracket + colon - index = subvalue.length - - while (index < length) { - character = value.charAt(index) - - if (character !== tab && character !== space) { - break - } - - subvalue += character - index++ - } - - now.column += subvalue.length - now.offset += subvalue.length - queue = '' - content = '' - subqueue = '' - - while (index < length) { - character = value.charAt(index) - - if (character === lineFeed) { - subqueue = character - index++ - - while (index < length) { - character = value.charAt(index) - - if (character !== lineFeed) { - break - } - - subqueue += character - index++ - } - - queue += subqueue - subqueue = '' - - if (queue === lineFeed) { - break - } - - while (index < length) { - character = value.charAt(index) - - if (character !== space) { - break - } - - subqueue += character - index++ - } - - if (subqueue.length === 0) { - break - } - - queue += subqueue - } - - if (queue) { - content += queue - queue = '' - } - - content += character - index++ - } - - subvalue += content - - content = content.replace(EXPRESSION_INITIAL_TAB, function (line) { - offsets[currentLine] = (offsets[currentLine] || 0) + line.length - currentLine++ - - return '' - }) - - add = eat(subvalue) - - exit = self.enterBlock() - content = self.tokenizeBlock(content, now) - exit() - - return add({ - type: 'footnoteDefinition', - identifier: normalize(identifier), - label: identifier, - children: content - }) -} diff --git a/packages/remark-parse/lib/tokenize/reference.js b/packages/remark-parse/lib/tokenize/reference.js index fdf753f73..420b04d29 100644 --- a/packages/remark-parse/lib/tokenize/reference.js +++ b/packages/remark-parse/lib/tokenize/reference.js @@ -9,21 +9,17 @@ reference.locator = locate var link = 'link' var image = 'image' -var footnote = 'footnote' var shortcut = 'shortcut' var collapsed = 'collapsed' var full = 'full' -var space = ' ' var exclamationMark = '!' var leftSquareBracket = '[' var backslash = '\\' var rightSquareBracket = ']' -var caret = '^' function reference(eat, value, silent) { var self = this var commonmark = self.options.commonmark - var footnotes = self.options.footnotes var character = value.charAt(0) var index = 0 var length = value.length @@ -55,19 +51,6 @@ function reference(eat, value, silent) { intro += character queue = '' - // Check whether we’re eating a footnote. - if (footnotes && value.charAt(index) === caret) { - // Exit if `![^` is found, so the `!` will be seen as text after this, - // and we’ll enter this function again when `[^` is found. - if (type === image) { - return - } - - intro += caret - index++ - type = footnote - } - // Eat the text. depth = 0 @@ -124,13 +107,7 @@ function reference(eat, value, silent) { character = value.charAt(index) - // Inline footnotes cannot have a label. - // If footnotes are enabled, link labels cannot start with a caret. - if ( - type !== footnote && - character === leftSquareBracket && - (!footnotes || value.charAt(index + 1) !== caret) - ) { + if (character === leftSquareBracket) { identifier = '' queue += character index++ @@ -187,13 +164,6 @@ function reference(eat, value, silent) { return true } - if (type === footnote && content.indexOf(space) !== -1) { - return eat(subvalue)({ - type: footnote, - children: this.tokenizeInline(content, eat.now()) - }) - } - now = eat.now() now.column += intro.length now.offset += intro.length @@ -202,18 +172,15 @@ function reference(eat, value, silent) { node = { type: type + 'Reference', identifier: normalize(identifier), - label: identifier - } - - if (type === link || type === image) { - node.referenceType = referenceType + label: identifier, + referenceType: referenceType } if (type === link) { exit = self.enterLink() node.children = self.tokenizeInline(content, now) exit() - } else if (type === image) { + } else { node.alt = self.decode.raw(self.unescape(content), now) || null } diff --git a/packages/remark-parse/lib/tokenizer.js b/packages/remark-parse/lib/tokenizer.js index 4d8a402d6..42d3cf127 100644 --- a/packages/remark-parse/lib/tokenizer.js +++ b/packages/remark-parse/lib/tokenizer.js @@ -46,11 +46,15 @@ function factory(type) { name = methods[index] method = tokenizers[name] + // Previously, we had constructs such as footnotes and YAML that used + // these properties. + // Those are now external (plus there are userland extensions), that may + // still use them. if ( method && /* istanbul ignore next */ (!method.onlyAtStart || self.atStart) && - (!method.notInList || !self.inList) && - (!method.notInBlock || !self.inBlock) && + /* istanbul ignore next */ (!method.notInList || !self.inList) && + /* istanbul ignore next */ (!method.notInBlock || !self.inBlock) && (!method.notInLink || !self.inLink) ) { valueLength = value.length diff --git a/packages/remark-parse/readme.md b/packages/remark-parse/readme.md index d8c1c85ca..4831dbc10 100644 --- a/packages/remark-parse/readme.md +++ b/packages/remark-parse/readme.md @@ -141,7 +141,7 @@ Allows: * Parentheses (`(` and `)`) around link and image titles * Any escaped [ASCII punctuation][escapes] character * Closing parenthesis (`)`) as an ordered list marker -* URL definitions (and footnotes, when enabled) in blockquotes +* URL definitions in blockquotes Disallows: @@ -155,24 +155,6 @@ Disallows: * Lazy blockquote continuation, lines not preceded by a greater than character (`>`), for lists, code, and thematic breaks -###### `options.footnotes` - -Footnotes mode (`boolean`, default: `false`). - -```markdown -Something something[^or something?]. - -And something else[^1]. - -[^1]: This reference footnote contains a paragraph... - - * ...and a list -``` - -Enables reference footnotes and inline footnotes. -Both are wrapped in square brackets and preceded by a caret (`^`), and can be -referenced from inside other footnotes. - ###### `options.pedantic` ⚠️ Pedantic was previously used to mimic old-style Markdown mode: no tables, no @@ -251,7 +233,6 @@ Precedence of default block methods is as follows: * `list` * `setextHeading` * `html` -* `footnote` * `definition` * `table` * `paragraph` @@ -344,8 +325,7 @@ entity may occur. * `locator` ([`Function`][locator]) — Required for inline tokenizers * `onlyAtStart` (`boolean`) — Whether nodes can only be found at the beginning of the document -* `notInBlock` (`boolean`) — Whether nodes cannot be in blockquotes, lists, or - footnote definitions +* `notInBlock` (`boolean`) — Whether nodes cannot be in blockquotes or lists * `notInList` (`boolean`) — Whether nodes cannot be in lists * `notInLink` (`boolean`) — Whether nodes cannot be in links diff --git a/packages/remark-parse/test.js b/packages/remark-parse/test.js index a9be67e0c..91bc9e6b7 100644 --- a/packages/remark-parse/test.js +++ b/packages/remark-parse/test.js @@ -47,14 +47,6 @@ test('remark().parse(file)', function (t) { 'should throw when `options.gfm` is not a boolean' ) - t.throws( - function () { - unified().use(parse).data('settings', {footnotes: 1}).parse('') - }, - /options.footnotes/, - 'should throw when `options.footnotes` is not a boolean' - ) - t.throws( function () { unified().use(parse).data('settings', {pedantic: {}}).parse('') diff --git a/packages/remark-parse/types/index.d.ts b/packages/remark-parse/types/index.d.ts index 8a69d55ed..7847ffa21 100644 --- a/packages/remark-parse/types/index.d.ts +++ b/packages/remark-parse/types/index.d.ts @@ -9,6 +9,7 @@ declare class RemarkParser implements Parser { inlineTokenizers: { [key: string]: remarkParse.Tokenizer } + inlineMethods: string[] } @@ -43,7 +44,7 @@ declare namespace remarkParse { * * Parentheses (`(` and `)`) around link and image titles * * Any escaped ASCII punctuation character * * Closing parenthesis (`)`) as an ordered list marker - * * URL definitions (and footnotes, when enabled) in blockquotes + * * URL definitions in blockquotes * * Disallows: * * Indented code blocks directly following a paragraph @@ -57,17 +58,6 @@ declare namespace remarkParse { */ commonmark: boolean - /** - * Footnotes mode - * - * Enables reference footnotes and inline footnotes. - * Both are wrapped in square brackets and preceded by a caret (`^`), - * and can be referenced from inside other footnotes. - * - * @defaultValue `false` - */ - footnotes: boolean - /** * Defines which HTML elements are seen as block level. * diff --git a/packages/remark-stringify/lib/compiler.js b/packages/remark-stringify/lib/compiler.js index 213314f9c..6c5a221f0 100644 --- a/packages/remark-stringify/lib/compiler.js +++ b/packages/remark-stringify/lib/compiler.js @@ -55,9 +55,6 @@ proto.visitors = { imageReference: require('./visitors/image-reference'), definition: require('./visitors/definition'), image: require('./visitors/image'), - footnote: require('./visitors/footnote'), - footnoteReference: require('./visitors/footnote-reference'), - footnoteDefinition: require('./visitors/footnote-definition'), table: require('./visitors/table'), tableCell: require('./visitors/table-cell') } diff --git a/packages/remark-stringify/lib/visitors/footnote-definition.js b/packages/remark-stringify/lib/visitors/footnote-definition.js deleted file mode 100644 index 42d27f4df..000000000 --- a/packages/remark-stringify/lib/visitors/footnote-definition.js +++ /dev/null @@ -1,30 +0,0 @@ -'use strict' - -var repeat = require('repeat-string') - -var lineFeed = '\n' -var space = ' ' -var colon = ':' -var leftSquareBracket = '[' -var rightSquareBracket = ']' -var caret = '^' - -var tabSize = 4 -var blank = lineFeed + lineFeed -var indent = repeat(space, tabSize) - -module.exports = footnoteDefinition - -function footnoteDefinition(node) { - var content = this.all(node).join(blank + indent) - - return ( - leftSquareBracket + - caret + - (node.label || node.identifier) + - rightSquareBracket + - colon + - space + - content - ) -} diff --git a/packages/remark-stringify/lib/visitors/footnote-reference.js b/packages/remark-stringify/lib/visitors/footnote-reference.js deleted file mode 100644 index 1ee9b4c38..000000000 --- a/packages/remark-stringify/lib/visitors/footnote-reference.js +++ /dev/null @@ -1,16 +0,0 @@ -'use strict' - -module.exports = footnoteReference - -var leftSquareBracket = '[' -var rightSquareBracket = ']' -var caret = '^' - -function footnoteReference(node) { - return ( - leftSquareBracket + - caret + - (node.label || node.identifier) + - rightSquareBracket - ) -} diff --git a/packages/remark-stringify/lib/visitors/footnote.js b/packages/remark-stringify/lib/visitors/footnote.js deleted file mode 100644 index 9269bd4c5..000000000 --- a/packages/remark-stringify/lib/visitors/footnote.js +++ /dev/null @@ -1,13 +0,0 @@ -'use strict' - -module.exports = footnote - -var leftSquareBracket = '[' -var rightSquareBracket = ']' -var caret = '^' - -function footnote(node) { - return ( - leftSquareBracket + caret + this.all(node).join('') + rightSquareBracket - ) -} diff --git a/packages/remark-stringify/test.js b/packages/remark-stringify/test.js index 08ad8f512..533df7fee 100644 --- a/packages/remark-stringify/test.js +++ b/packages/remark-stringify/test.js @@ -569,8 +569,7 @@ test('remark().stringify(ast, file)', function (t) { ['capitalized link references - shortcut', '[Bravo]'], ['capitalized image references - full', '![alpha][Bravo]'], ['capitalized image references - collapsed', '![Bravo][]'], - ['capitalized image references - shortcut', '![Bravo]'], - ['capitalized footnote references', '[^Alpha]'] + ['capitalized image references - shortcut', '![Bravo]'] ] tests.forEach(each) @@ -597,21 +596,6 @@ test('remark().stringify(ast, file)', function (t) { 'definition' ) - st.equal( - toString({ - type: 'footnoteDefinition', - identifier: 'a', - children: [ - { - type: 'paragraph', - children: [{type: 'text', value: 'b'}] - } - ] - }), - '[^a]: b', - 'footnote definition' - ) - st.equal( toString({ type: 'linkReference', @@ -632,15 +616,6 @@ test('remark().stringify(ast, file)', function (t) { 'image reference' ) - st.equal( - toString({ - type: 'footnoteReference', - identifier: 'a' - }), - '[^a]', - 'footnote reference' - ) - st.end() function toString(value) { diff --git a/packages/remark/test.js b/packages/remark/test.js index 95aacb18d..6985457bf 100644 --- a/packages/remark/test.js +++ b/packages/remark/test.js @@ -35,11 +35,5 @@ test('remark().processSync(value)', function (t) { 'should throw when `pedantic` is `true`, `listItemIndent` is not `tab`, and compiling code in a list-item' ) - t.doesNotThrow(function () { - remark() - .use({settings: {commonmark: true, footnotes: true}}) - .parse('[^1]: Footnote with trailing newline and space\n ') - }) - t.end() }) diff --git a/test/fixtures/input/footnote-consecutive.text b/test/fixtures/input/footnote-consecutive.text deleted file mode 100644 index 10afb2e29..000000000 --- a/test/fixtures/input/footnote-consecutive.text +++ /dev/null @@ -1,10 +0,0 @@ -# International Radiotelephony Spelling Alphabet[^wiki] - -Here's the NATO phonetic alphabet[^wiki][^wiki2]: Alfa, Bravo, Charlie, Delta, Echo, Foxtrot, Golf, Hotel, India, Juliet, Kilo, Lima, Mike, November, Oscar, Papa, Quebec, Romeo, Sierra, Tango, Uniform, Victor[^name][^consecutive], Whiskey, X-ray, Yankee, and Zulu. - -And here's some more text. - -[^wiki]: Read more about it here. -[^wiki2]: Here's another good article on the subject. -[^name]: A great first name. -[^consecutive]: I know. diff --git a/test/fixtures/input/footnote-duplicate.text b/test/fixtures/input/footnote-duplicate.text deleted file mode 100644 index 4490d03d7..000000000 --- a/test/fixtures/input/footnote-duplicate.text +++ /dev/null @@ -1,4 +0,0 @@ -The NATO phonetic alphabet[^wiki]. - -[^wiki]: Read more about it here. -[^wiki]: And here. diff --git a/test/fixtures/input/footnote-empty.output.text b/test/fixtures/input/footnote-empty.output.text deleted file mode 100644 index d95686c0f..000000000 --- a/test/fixtures/input/footnote-empty.output.text +++ /dev/null @@ -1 +0,0 @@ -This is a document with `footnotes: true`, but not actual footnote definition. diff --git a/test/fixtures/input/footnote-escape.text b/test/fixtures/input/footnote-escape.text deleted file mode 100644 index 0f9039518..000000000 --- a/test/fixtures/input/footnote-escape.text +++ /dev/null @@ -1,3 +0,0 @@ -The NATO phonetic alphabet[^wi\-ki]. - -[^wi\-ki]: Read more about it somewhere else. diff --git a/test/fixtures/input/footnote-ids.text b/test/fixtures/input/footnote-ids.text deleted file mode 100644 index bf3ccf571..000000000 --- a/test/fixtures/input/footnote-ids.text +++ /dev/null @@ -1,3 +0,0 @@ -This example checks that [^the generated] IDs do not overwrite the user's IDs[^1]. - -[^1]: Old behavior would, for "generated", generate a footnote with an ID set to `1`, thus overwriting this footnote. diff --git a/test/fixtures/input/footnote-indent.text b/test/fixtures/input/footnote-indent.text deleted file mode 100644 index ebbaa8eab..000000000 --- a/test/fixtures/input/footnote-indent.text +++ /dev/null @@ -1,3 +0,0 @@ -The NATO phonetic alphabet[^wiki]. - - [^wiki]: Read more about it somewhere else. diff --git a/test/fixtures/input/footnote-inline.text b/test/fixtures/input/footnote-inline.text deleted file mode 100644 index 003962754..000000000 --- a/test/fixtures/input/footnote-inline.text +++ /dev/null @@ -1 +0,0 @@ -This is an example of an inline footnote.[^This is the _actual_ footnote.] diff --git a/test/fixtures/input/footnote-like.text b/test/fixtures/input/footnote-like.text deleted file mode 100644 index c18285be8..000000000 --- a/test/fixtures/input/footnote-like.text +++ /dev/null @@ -1,3 +0,0 @@ -This one isn't even [defined][^foo]. - -[^both][invalid], [^this too][]. diff --git a/test/fixtures/input/footnote-matrix.text b/test/fixtures/input/footnote-matrix.text deleted file mode 100644 index c989646c1..000000000 --- a/test/fixtures/input/footnote-matrix.text +++ /dev/null @@ -1,4 +0,0 @@ -1. [foo][bar] -2. [^foo][bar] -3. [foo][^bar] -4. [^foo][^bar] diff --git a/test/fixtures/input/footnote-multiple.text b/test/fixtures/input/footnote-multiple.text deleted file mode 100644 index 02c12f870..000000000 --- a/test/fixtures/input/footnote-multiple.text +++ /dev/null @@ -1,7 +0,0 @@ -# International Radiotelephony Spelling Alphabet[^wiki] - -Here's the NATO phonetic alphabet[^wiki]: Alfa, Bravo, Charlie, Delta, Echo, Foxtrot, Golf, Hotel, India, Juliet, Kilo, Lima, Mike, November, Oscar, Papa, Quebec, Romeo, Sierra, Tango, Uniform, Victor, Whiskey, X-ray, Yankee, and Zulu. - -And here's some more text. - -[^wiki]: Read more about it here. diff --git a/test/fixtures/input/footnote-nested.text b/test/fixtures/input/footnote-nested.text deleted file mode 100644 index 2b9992c7d..000000000 --- a/test/fixtures/input/footnote-nested.text +++ /dev/null @@ -1,3 +0,0 @@ -A footnote[^1]. - -[^1]: Including [^another **footnote**] diff --git a/test/fixtures/input/footnote-or-reference-label.text b/test/fixtures/input/footnote-or-reference-label.text deleted file mode 100644 index f358b4b68..000000000 --- a/test/fixtures/input/footnote-or-reference-label.text +++ /dev/null @@ -1,5 +0,0 @@ -[alpha][^bravo] - -[^bravo]: Footnote definition. - -[alpha]: https://example.com diff --git a/test/fixtures/input/footnote-proto.text b/test/fixtures/input/footnote-proto.text deleted file mode 100644 index 3818bead4..000000000 --- a/test/fixtures/input/footnote-proto.text +++ /dev/null @@ -1,5 +0,0 @@ -A footnote[^toString] and [^__proto__] and [^constructor]. - -[^toString]: See `Object.prototype.toString()`. -[^constructor]: See `Object.prototype.valueOf()`. -[^__proto__]: See `Object.prototype.__proto__()`. diff --git a/test/fixtures/input/footnote-trailing-whitespace.text b/test/fixtures/input/footnote-trailing-whitespace.text deleted file mode 100644 index a235687e2..000000000 --- a/test/fixtures/input/footnote-trailing-whitespace.text +++ /dev/null @@ -1,2 +0,0 @@ -[^1]: Footnote with trailing newline and space - diff --git a/test/fixtures/input/footnote-without-space.text b/test/fixtures/input/footnote-without-space.text deleted file mode 100644 index 898b4272b..000000000 --- a/test/fixtures/input/footnote-without-space.text +++ /dev/null @@ -1,14 +0,0 @@ -foo[^abc] bar. foo[^xyz] bar - -And some more tests for “image like” footnotes, related to: -: - -Hello[^footnote] -Hello![^footnote] -Hello! [^footnote] - -[^abc]: Baz baz - -[^xyz]: Baz - -[^footnote]: Some definition. diff --git a/test/fixtures/input/footnote.output.text b/test/fixtures/input/footnote.output.text deleted file mode 100644 index e647aedc7..000000000 --- a/test/fixtures/input/footnote.output.text +++ /dev/null @@ -1,11 +0,0 @@ -Lorem ipsum dolor sit amet[^1]. - -Nulla finibus[^2] neque et diam rhoncus convallis. - -[^1]: Consectetur **adipiscing** elit. Praesent dictum purus ullamcorper ligula semper pellentesque[^3]. - - - Containing a list. - -[^2]: Nam dictum sapien nec sem ultrices fermentum. Nulla **facilisi**. In et feugiat massa. - -[^3]: Nunc dapibus ipsum ut mi _ultrices_, non euismod velit pretium. diff --git a/test/fixtures/input/footnote.text b/test/fixtures/input/footnote.text deleted file mode 100644 index 73360eaeb..000000000 --- a/test/fixtures/input/footnote.text +++ /dev/null @@ -1,11 +0,0 @@ -Here is some text containing a footnote[^somesamplefootnote]. You can then continue your thought... - -[^somesamplefootnote]: Here is the text of the footnote itself. - -Even go to a new [paragraph] and the footnotes will go to the bottom of the document[^documentdetails]. - -[^documentdetails]: Depending on the **final** form of your document, of course. See the documentation and experiment. - - This footnote has a second [paragraph]. - -[paragraph]: http://example.com diff --git a/test/fixtures/input/nested-references.text b/test/fixtures/input/nested-references.text index 8add9d0a3..90ef97afe 100644 --- a/test/fixtures/input/nested-references.text +++ b/test/fixtures/input/nested-references.text @@ -6,11 +6,5 @@ This nested link should not work: [[Foo][bar]][baz] -This nested footnote not work: - -[[^foo]][baz] - [bar]: https://bar.com "bar" [baz]: https://baz.com "baz" - -[^foo]: A footnote. diff --git a/test/fixtures/tree/footnote-consecutive.footnotes.json b/test/fixtures/tree/footnote-consecutive.footnotes.json deleted file mode 100644 index 6455b6e99..000000000 --- a/test/fixtures/tree/footnote-consecutive.footnotes.json +++ /dev/null @@ -1,467 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "International Radiotelephony Spelling Alphabet", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 49, - "offset": 48 - }, - "indent": [] - } - }, - { - "type": "footnoteReference", - "identifier": "wiki", - "label": "wiki", - "position": { - "start": { - "line": 1, - "column": 49, - "offset": 48 - }, - "end": { - "line": 1, - "column": 56, - "offset": 55 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 56, - "offset": 55 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Here's the NATO phonetic alphabet", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 57 - }, - "end": { - "line": 3, - "column": 34, - "offset": 90 - }, - "indent": [] - } - }, - { - "type": "footnoteReference", - "identifier": "wiki", - "label": "wiki", - "position": { - "start": { - "line": 3, - "column": 34, - "offset": 90 - }, - "end": { - "line": 3, - "column": 41, - "offset": 97 - }, - "indent": [] - } - }, - { - "type": "footnoteReference", - "identifier": "wiki2", - "label": "wiki2", - "position": { - "start": { - "line": 3, - "column": 41, - "offset": 97 - }, - "end": { - "line": 3, - "column": 49, - "offset": 105 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ": Alfa, Bravo, Charlie, Delta, Echo, Foxtrot, Golf, Hotel, India, Juliet, Kilo, Lima, Mike, November, Oscar, Papa, Quebec, Romeo, Sierra, Tango, Uniform, Victor", - "position": { - "start": { - "line": 3, - "column": 49, - "offset": 105 - }, - "end": { - "line": 3, - "column": 209, - "offset": 265 - }, - "indent": [] - } - }, - { - "type": "footnoteReference", - "identifier": "name", - "label": "name", - "position": { - "start": { - "line": 3, - "column": 209, - "offset": 265 - }, - "end": { - "line": 3, - "column": 216, - "offset": 272 - }, - "indent": [] - } - }, - { - "type": "footnoteReference", - "identifier": "consecutive", - "label": "consecutive", - "position": { - "start": { - "line": 3, - "column": 216, - "offset": 272 - }, - "end": { - "line": 3, - "column": 230, - "offset": 286 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ", Whiskey, X-ray, Yankee, and Zulu.", - "position": { - "start": { - "line": 3, - "column": 230, - "offset": 286 - }, - "end": { - "line": 3, - "column": 265, - "offset": 321 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 57 - }, - "end": { - "line": 3, - "column": 265, - "offset": 321 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And here's some more text.", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 323 - }, - "end": { - "line": 5, - "column": 27, - "offset": 349 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 323 - }, - "end": { - "line": 5, - "column": 27, - "offset": 349 - }, - "indent": [] - } - }, - { - "type": "footnoteDefinition", - "identifier": "wiki", - "label": "wiki", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Read more about it here.", - "position": { - "start": { - "line": 7, - "column": 10, - "offset": 360 - }, - "end": { - "line": 7, - "column": 34, - "offset": 384 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 10, - "offset": 360 - }, - "end": { - "line": 7, - "column": 34, - "offset": 384 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 351 - }, - "end": { - "line": 7, - "column": 34, - "offset": 384 - }, - "indent": [] - } - }, - { - "type": "footnoteDefinition", - "identifier": "wiki2", - "label": "wiki2", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Here's another good article on the subject.", - "position": { - "start": { - "line": 8, - "column": 11, - "offset": 395 - }, - "end": { - "line": 8, - "column": 54, - "offset": 438 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 8, - "column": 11, - "offset": 395 - }, - "end": { - "line": 8, - "column": 54, - "offset": 438 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 8, - "column": 1, - "offset": 385 - }, - "end": { - "line": 8, - "column": 54, - "offset": 438 - }, - "indent": [] - } - }, - { - "type": "footnoteDefinition", - "identifier": "name", - "label": "name", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "A great first name.", - "position": { - "start": { - "line": 9, - "column": 10, - "offset": 448 - }, - "end": { - "line": 9, - "column": 29, - "offset": 467 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 10, - "offset": 448 - }, - "end": { - "line": 9, - "column": 29, - "offset": 467 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 439 - }, - "end": { - "line": 9, - "column": 29, - "offset": 467 - }, - "indent": [] - } - }, - { - "type": "footnoteDefinition", - "identifier": "consecutive", - "label": "consecutive", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "I know.", - "position": { - "start": { - "line": 10, - "column": 17, - "offset": 484 - }, - "end": { - "line": 10, - "column": 24, - "offset": 491 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 10, - "column": 17, - "offset": 484 - }, - "end": { - "line": 10, - "column": 24, - "offset": 491 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 468 - }, - "end": { - "line": 10, - "column": 24, - "offset": 491 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 11, - "column": 1, - "offset": 492 - } - } -} diff --git a/test/fixtures/tree/footnote-consecutive.footnotes.pedantic.json b/test/fixtures/tree/footnote-consecutive.footnotes.pedantic.json deleted file mode 100644 index 6455b6e99..000000000 --- a/test/fixtures/tree/footnote-consecutive.footnotes.pedantic.json +++ /dev/null @@ -1,467 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "International Radiotelephony Spelling Alphabet", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 49, - "offset": 48 - }, - "indent": [] - } - }, - { - "type": "footnoteReference", - "identifier": "wiki", - "label": "wiki", - "position": { - "start": { - "line": 1, - "column": 49, - "offset": 48 - }, - "end": { - "line": 1, - "column": 56, - "offset": 55 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 56, - "offset": 55 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Here's the NATO phonetic alphabet", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 57 - }, - "end": { - "line": 3, - "column": 34, - "offset": 90 - }, - "indent": [] - } - }, - { - "type": "footnoteReference", - "identifier": "wiki", - "label": "wiki", - "position": { - "start": { - "line": 3, - "column": 34, - "offset": 90 - }, - "end": { - "line": 3, - "column": 41, - "offset": 97 - }, - "indent": [] - } - }, - { - "type": "footnoteReference", - "identifier": "wiki2", - "label": "wiki2", - "position": { - "start": { - "line": 3, - "column": 41, - "offset": 97 - }, - "end": { - "line": 3, - "column": 49, - "offset": 105 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ": Alfa, Bravo, Charlie, Delta, Echo, Foxtrot, Golf, Hotel, India, Juliet, Kilo, Lima, Mike, November, Oscar, Papa, Quebec, Romeo, Sierra, Tango, Uniform, Victor", - "position": { - "start": { - "line": 3, - "column": 49, - "offset": 105 - }, - "end": { - "line": 3, - "column": 209, - "offset": 265 - }, - "indent": [] - } - }, - { - "type": "footnoteReference", - "identifier": "name", - "label": "name", - "position": { - "start": { - "line": 3, - "column": 209, - "offset": 265 - }, - "end": { - "line": 3, - "column": 216, - "offset": 272 - }, - "indent": [] - } - }, - { - "type": "footnoteReference", - "identifier": "consecutive", - "label": "consecutive", - "position": { - "start": { - "line": 3, - "column": 216, - "offset": 272 - }, - "end": { - "line": 3, - "column": 230, - "offset": 286 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ", Whiskey, X-ray, Yankee, and Zulu.", - "position": { - "start": { - "line": 3, - "column": 230, - "offset": 286 - }, - "end": { - "line": 3, - "column": 265, - "offset": 321 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 57 - }, - "end": { - "line": 3, - "column": 265, - "offset": 321 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And here's some more text.", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 323 - }, - "end": { - "line": 5, - "column": 27, - "offset": 349 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 323 - }, - "end": { - "line": 5, - "column": 27, - "offset": 349 - }, - "indent": [] - } - }, - { - "type": "footnoteDefinition", - "identifier": "wiki", - "label": "wiki", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Read more about it here.", - "position": { - "start": { - "line": 7, - "column": 10, - "offset": 360 - }, - "end": { - "line": 7, - "column": 34, - "offset": 384 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 10, - "offset": 360 - }, - "end": { - "line": 7, - "column": 34, - "offset": 384 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 351 - }, - "end": { - "line": 7, - "column": 34, - "offset": 384 - }, - "indent": [] - } - }, - { - "type": "footnoteDefinition", - "identifier": "wiki2", - "label": "wiki2", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Here's another good article on the subject.", - "position": { - "start": { - "line": 8, - "column": 11, - "offset": 395 - }, - "end": { - "line": 8, - "column": 54, - "offset": 438 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 8, - "column": 11, - "offset": 395 - }, - "end": { - "line": 8, - "column": 54, - "offset": 438 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 8, - "column": 1, - "offset": 385 - }, - "end": { - "line": 8, - "column": 54, - "offset": 438 - }, - "indent": [] - } - }, - { - "type": "footnoteDefinition", - "identifier": "name", - "label": "name", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "A great first name.", - "position": { - "start": { - "line": 9, - "column": 10, - "offset": 448 - }, - "end": { - "line": 9, - "column": 29, - "offset": 467 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 10, - "offset": 448 - }, - "end": { - "line": 9, - "column": 29, - "offset": 467 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 439 - }, - "end": { - "line": 9, - "column": 29, - "offset": 467 - }, - "indent": [] - } - }, - { - "type": "footnoteDefinition", - "identifier": "consecutive", - "label": "consecutive", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "I know.", - "position": { - "start": { - "line": 10, - "column": 17, - "offset": 484 - }, - "end": { - "line": 10, - "column": 24, - "offset": 491 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 10, - "column": 17, - "offset": 484 - }, - "end": { - "line": 10, - "column": 24, - "offset": 491 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 468 - }, - "end": { - "line": 10, - "column": 24, - "offset": 491 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 11, - "column": 1, - "offset": 492 - } - } -} diff --git a/test/fixtures/tree/footnote-consecutive.json b/test/fixtures/tree/footnote-consecutive.json deleted file mode 100644 index 91a42c609..000000000 --- a/test/fixtures/tree/footnote-consecutive.json +++ /dev/null @@ -1,519 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "International Radiotelephony Spelling Alphabet", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 49, - "offset": 48 - }, - "indent": [] - } - }, - { - "type": "linkReference", - "identifier": "^wiki", - "label": "^wiki", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "^wiki", - "position": { - "start": { - "line": 1, - "column": 50, - "offset": 49 - }, - "end": { - "line": 1, - "column": 55, - "offset": 54 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 49, - "offset": 48 - }, - "end": { - "line": 1, - "column": 56, - "offset": 55 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 56, - "offset": 55 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Here's the NATO phonetic alphabet", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 57 - }, - "end": { - "line": 3, - "column": 34, - "offset": 90 - }, - "indent": [] - } - }, - { - "type": "linkReference", - "identifier": "^wiki2", - "label": "^wiki2", - "referenceType": "full", - "children": [ - { - "type": "text", - "value": "^wiki", - "position": { - "start": { - "line": 3, - "column": 35, - "offset": 91 - }, - "end": { - "line": 3, - "column": 40, - "offset": 96 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 34, - "offset": 90 - }, - "end": { - "line": 3, - "column": 49, - "offset": 105 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ": Alfa, Bravo, Charlie, Delta, Echo, Foxtrot, Golf, Hotel, India, Juliet, Kilo, Lima, Mike, November, Oscar, Papa, Quebec, Romeo, Sierra, Tango, Uniform, Victor", - "position": { - "start": { - "line": 3, - "column": 49, - "offset": 105 - }, - "end": { - "line": 3, - "column": 209, - "offset": 265 - }, - "indent": [] - } - }, - { - "type": "linkReference", - "identifier": "^consecutive", - "label": "^consecutive", - "referenceType": "full", - "children": [ - { - "type": "text", - "value": "^name", - "position": { - "start": { - "line": 3, - "column": 210, - "offset": 266 - }, - "end": { - "line": 3, - "column": 215, - "offset": 271 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 209, - "offset": 265 - }, - "end": { - "line": 3, - "column": 230, - "offset": 286 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ", Whiskey, X-ray, Yankee, and Zulu.", - "position": { - "start": { - "line": 3, - "column": 230, - "offset": 286 - }, - "end": { - "line": 3, - "column": 265, - "offset": 321 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 57 - }, - "end": { - "line": 3, - "column": 265, - "offset": 321 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And here's some more text.", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 323 - }, - "end": { - "line": 5, - "column": 27, - "offset": 349 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 323 - }, - "end": { - "line": 5, - "column": 27, - "offset": 349 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "^wiki", - "label": "^wiki", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "^wiki", - "position": { - "start": { - "line": 7, - "column": 2, - "offset": 352 - }, - "end": { - "line": 7, - "column": 7, - "offset": 357 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 351 - }, - "end": { - "line": 7, - "column": 8, - "offset": 358 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ": Read more about it here.\n", - "position": { - "start": { - "line": 7, - "column": 8, - "offset": 358 - }, - "end": { - "line": 8, - "column": 1, - "offset": 385 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "linkReference", - "identifier": "^wiki2", - "label": "^wiki2", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "^wiki2", - "position": { - "start": { - "line": 8, - "column": 2, - "offset": 386 - }, - "end": { - "line": 8, - "column": 8, - "offset": 392 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 8, - "column": 1, - "offset": 385 - }, - "end": { - "line": 8, - "column": 9, - "offset": 393 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ": Here's another good article on the subject.\n", - "position": { - "start": { - "line": 8, - "column": 9, - "offset": 393 - }, - "end": { - "line": 9, - "column": 1, - "offset": 439 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "linkReference", - "identifier": "^name", - "label": "^name", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "^name", - "position": { - "start": { - "line": 9, - "column": 2, - "offset": 440 - }, - "end": { - "line": 9, - "column": 7, - "offset": 445 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 439 - }, - "end": { - "line": 9, - "column": 8, - "offset": 446 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ": A great first name.\n", - "position": { - "start": { - "line": 9, - "column": 8, - "offset": 446 - }, - "end": { - "line": 10, - "column": 1, - "offset": 468 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "linkReference", - "identifier": "^consecutive", - "label": "^consecutive", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "^consecutive", - "position": { - "start": { - "line": 10, - "column": 2, - "offset": 469 - }, - "end": { - "line": 10, - "column": 14, - "offset": 481 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 468 - }, - "end": { - "line": 10, - "column": 15, - "offset": 482 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ": I know.", - "position": { - "start": { - "line": 10, - "column": 15, - "offset": 482 - }, - "end": { - "line": 10, - "column": 24, - "offset": 491 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 351 - }, - "end": { - "line": 10, - "column": 24, - "offset": 491 - }, - "indent": [ - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 11, - "column": 1, - "offset": 492 - } - } -} diff --git a/test/fixtures/tree/footnote-duplicate.footnotes.json b/test/fixtures/tree/footnote-duplicate.footnotes.json deleted file mode 100644 index 2c9267f62..000000000 --- a/test/fixtures/tree/footnote-duplicate.footnotes.json +++ /dev/null @@ -1,197 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "The NATO phonetic alphabet", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 27, - "offset": 26 - }, - "indent": [] - } - }, - { - "type": "footnoteReference", - "identifier": "wiki", - "label": "wiki", - "position": { - "start": { - "line": 1, - "column": 27, - "offset": 26 - }, - "end": { - "line": 1, - "column": 34, - "offset": 33 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 34, - "offset": 33 - }, - "end": { - "line": 1, - "column": 35, - "offset": 34 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 35, - "offset": 34 - }, - "indent": [] - } - }, - { - "type": "footnoteDefinition", - "identifier": "wiki", - "label": "wiki", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Read more about it here.", - "position": { - "start": { - "line": 3, - "column": 10, - "offset": 45 - }, - "end": { - "line": 3, - "column": 34, - "offset": 69 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 10, - "offset": 45 - }, - "end": { - "line": 3, - "column": 34, - "offset": 69 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 36 - }, - "end": { - "line": 3, - "column": 34, - "offset": 69 - }, - "indent": [] - } - }, - { - "type": "footnoteDefinition", - "identifier": "wiki", - "label": "wiki", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And here.", - "position": { - "start": { - "line": 4, - "column": 10, - "offset": 79 - }, - "end": { - "line": 4, - "column": 19, - "offset": 88 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 10, - "offset": 79 - }, - "end": { - "line": 4, - "column": 19, - "offset": 88 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 70 - }, - "end": { - "line": 4, - "column": 19, - "offset": 88 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 5, - "column": 1, - "offset": 89 - } - } -} diff --git a/test/fixtures/tree/footnote-duplicate.footnotes.pedantic.json b/test/fixtures/tree/footnote-duplicate.footnotes.pedantic.json deleted file mode 100644 index 2c9267f62..000000000 --- a/test/fixtures/tree/footnote-duplicate.footnotes.pedantic.json +++ /dev/null @@ -1,197 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "The NATO phonetic alphabet", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 27, - "offset": 26 - }, - "indent": [] - } - }, - { - "type": "footnoteReference", - "identifier": "wiki", - "label": "wiki", - "position": { - "start": { - "line": 1, - "column": 27, - "offset": 26 - }, - "end": { - "line": 1, - "column": 34, - "offset": 33 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 34, - "offset": 33 - }, - "end": { - "line": 1, - "column": 35, - "offset": 34 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 35, - "offset": 34 - }, - "indent": [] - } - }, - { - "type": "footnoteDefinition", - "identifier": "wiki", - "label": "wiki", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Read more about it here.", - "position": { - "start": { - "line": 3, - "column": 10, - "offset": 45 - }, - "end": { - "line": 3, - "column": 34, - "offset": 69 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 10, - "offset": 45 - }, - "end": { - "line": 3, - "column": 34, - "offset": 69 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 36 - }, - "end": { - "line": 3, - "column": 34, - "offset": 69 - }, - "indent": [] - } - }, - { - "type": "footnoteDefinition", - "identifier": "wiki", - "label": "wiki", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And here.", - "position": { - "start": { - "line": 4, - "column": 10, - "offset": 79 - }, - "end": { - "line": 4, - "column": 19, - "offset": 88 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 10, - "offset": 79 - }, - "end": { - "line": 4, - "column": 19, - "offset": 88 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 70 - }, - "end": { - "line": 4, - "column": 19, - "offset": 88 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 5, - "column": 1, - "offset": 89 - } - } -} diff --git a/test/fixtures/tree/footnote-duplicate.json b/test/fixtures/tree/footnote-duplicate.json deleted file mode 100644 index 64ca743b0..000000000 --- a/test/fixtures/tree/footnote-duplicate.json +++ /dev/null @@ -1,239 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "The NATO phonetic alphabet", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 27, - "offset": 26 - }, - "indent": [] - } - }, - { - "type": "linkReference", - "identifier": "^wiki", - "label": "^wiki", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "^wiki", - "position": { - "start": { - "line": 1, - "column": 28, - "offset": 27 - }, - "end": { - "line": 1, - "column": 33, - "offset": 32 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 27, - "offset": 26 - }, - "end": { - "line": 1, - "column": 34, - "offset": 33 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 34, - "offset": 33 - }, - "end": { - "line": 1, - "column": 35, - "offset": 34 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 35, - "offset": 34 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "^wiki", - "label": "^wiki", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "^wiki", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 37 - }, - "end": { - "line": 3, - "column": 7, - "offset": 42 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 36 - }, - "end": { - "line": 3, - "column": 8, - "offset": 43 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ": Read more about it here.\n", - "position": { - "start": { - "line": 3, - "column": 8, - "offset": 43 - }, - "end": { - "line": 4, - "column": 1, - "offset": 70 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "linkReference", - "identifier": "^wiki", - "label": "^wiki", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "^wiki", - "position": { - "start": { - "line": 4, - "column": 2, - "offset": 71 - }, - "end": { - "line": 4, - "column": 7, - "offset": 76 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 70 - }, - "end": { - "line": 4, - "column": 8, - "offset": 77 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ": And here.", - "position": { - "start": { - "line": 4, - "column": 8, - "offset": 77 - }, - "end": { - "line": 4, - "column": 19, - "offset": 88 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 36 - }, - "end": { - "line": 4, - "column": 19, - "offset": 88 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 5, - "column": 1, - "offset": 89 - } - } -} diff --git a/test/fixtures/tree/footnote-duplicate.pedantic.json b/test/fixtures/tree/footnote-duplicate.pedantic.json deleted file mode 100644 index 64ca743b0..000000000 --- a/test/fixtures/tree/footnote-duplicate.pedantic.json +++ /dev/null @@ -1,239 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "The NATO phonetic alphabet", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 27, - "offset": 26 - }, - "indent": [] - } - }, - { - "type": "linkReference", - "identifier": "^wiki", - "label": "^wiki", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "^wiki", - "position": { - "start": { - "line": 1, - "column": 28, - "offset": 27 - }, - "end": { - "line": 1, - "column": 33, - "offset": 32 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 27, - "offset": 26 - }, - "end": { - "line": 1, - "column": 34, - "offset": 33 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 34, - "offset": 33 - }, - "end": { - "line": 1, - "column": 35, - "offset": 34 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 35, - "offset": 34 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "^wiki", - "label": "^wiki", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "^wiki", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 37 - }, - "end": { - "line": 3, - "column": 7, - "offset": 42 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 36 - }, - "end": { - "line": 3, - "column": 8, - "offset": 43 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ": Read more about it here.\n", - "position": { - "start": { - "line": 3, - "column": 8, - "offset": 43 - }, - "end": { - "line": 4, - "column": 1, - "offset": 70 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "linkReference", - "identifier": "^wiki", - "label": "^wiki", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "^wiki", - "position": { - "start": { - "line": 4, - "column": 2, - "offset": 71 - }, - "end": { - "line": 4, - "column": 7, - "offset": 76 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 70 - }, - "end": { - "line": 4, - "column": 8, - "offset": 77 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ": And here.", - "position": { - "start": { - "line": 4, - "column": 8, - "offset": 77 - }, - "end": { - "line": 4, - "column": 19, - "offset": 88 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 36 - }, - "end": { - "line": 4, - "column": 19, - "offset": 88 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 5, - "column": 1, - "offset": 89 - } - } -} diff --git a/test/fixtures/tree/footnote-empty.output.footnotes.json b/test/fixtures/tree/footnote-empty.output.footnotes.json deleted file mode 100644 index 8a513531c..000000000 --- a/test/fixtures/tree/footnote-empty.output.footnotes.json +++ /dev/null @@ -1,86 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This is a document with ", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 25, - "offset": 24 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "footnotes: true", - "position": { - "start": { - "line": 1, - "column": 25, - "offset": 24 - }, - "end": { - "line": 1, - "column": 42, - "offset": 41 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ", but not actual footnote definition.", - "position": { - "start": { - "line": 1, - "column": 42, - "offset": 41 - }, - "end": { - "line": 1, - "column": 79, - "offset": 78 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 79, - "offset": 78 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 1, - "offset": 79 - } - } -} diff --git a/test/fixtures/tree/footnote-escape.footnotes.json b/test/fixtures/tree/footnote-escape.footnotes.json deleted file mode 100644 index 0c6c096b5..000000000 --- a/test/fixtures/tree/footnote-escape.footnotes.json +++ /dev/null @@ -1,142 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "The NATO phonetic alphabet", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 27, - "offset": 26 - }, - "indent": [] - } - }, - { - "type": "footnoteReference", - "identifier": "wi\\-ki", - "label": "wi\\-ki", - "position": { - "start": { - "line": 1, - "column": 27, - "offset": 26 - }, - "end": { - "line": 1, - "column": 36, - "offset": 35 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 36, - "offset": 35 - }, - "end": { - "line": 1, - "column": 37, - "offset": 36 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 37, - "offset": 36 - }, - "indent": [] - } - }, - { - "type": "footnoteDefinition", - "identifier": "wi\\-ki", - "label": "wi\\-ki", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Read more about it somewhere else.", - "position": { - "start": { - "line": 3, - "column": 12, - "offset": 49 - }, - "end": { - "line": 3, - "column": 46, - "offset": 83 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 12, - "offset": 49 - }, - "end": { - "line": 3, - "column": 46, - "offset": 83 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 38 - }, - "end": { - "line": 3, - "column": 46, - "offset": 83 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 4, - "column": 1, - "offset": 84 - } - } -} diff --git a/test/fixtures/tree/footnote-escape.json b/test/fixtures/tree/footnote-escape.json deleted file mode 100644 index 91d3c4463..000000000 --- a/test/fixtures/tree/footnote-escape.json +++ /dev/null @@ -1,248 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "The NATO phonetic alphabet", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 27, - "offset": 26 - }, - "indent": [] - } - }, - { - "type": "linkReference", - "identifier": "^wi\\-ki", - "label": "^wi\\-ki", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "^wi", - "position": { - "start": { - "line": 1, - "column": 28, - "offset": 27 - }, - "end": { - "line": 1, - "column": 31, - "offset": 30 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "-", - "position": { - "start": { - "line": 1, - "column": 31, - "offset": 30 - }, - "end": { - "line": 1, - "column": 33, - "offset": 32 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "ki", - "position": { - "start": { - "line": 1, - "column": 33, - "offset": 32 - }, - "end": { - "line": 1, - "column": 35, - "offset": 34 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 27, - "offset": 26 - }, - "end": { - "line": 1, - "column": 36, - "offset": 35 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 36, - "offset": 35 - }, - "end": { - "line": 1, - "column": 37, - "offset": 36 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 37, - "offset": 36 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "^wi\\-ki", - "label": "^wi\\-ki", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "^wi", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 39 - }, - "end": { - "line": 3, - "column": 5, - "offset": 42 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "-", - "position": { - "start": { - "line": 3, - "column": 5, - "offset": 42 - }, - "end": { - "line": 3, - "column": 7, - "offset": 44 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "ki", - "position": { - "start": { - "line": 3, - "column": 7, - "offset": 44 - }, - "end": { - "line": 3, - "column": 9, - "offset": 46 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 38 - }, - "end": { - "line": 3, - "column": 10, - "offset": 47 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ": Read more about it somewhere else.", - "position": { - "start": { - "line": 3, - "column": 10, - "offset": 47 - }, - "end": { - "line": 3, - "column": 46, - "offset": 83 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 38 - }, - "end": { - "line": 3, - "column": 46, - "offset": 83 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 4, - "column": 1, - "offset": 84 - } - } -} diff --git a/test/fixtures/tree/footnote-ids.footnotes.json b/test/fixtures/tree/footnote-ids.footnotes.json deleted file mode 100644 index b5680c4b7..000000000 --- a/test/fixtures/tree/footnote-ids.footnotes.json +++ /dev/null @@ -1,228 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This example checks that ", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 26, - "offset": 25 - }, - "indent": [] - } - }, - { - "type": "footnote", - "children": [ - { - "type": "text", - "value": "the generated", - "position": { - "start": { - "line": 1, - "column": 42, - "offset": 41 - }, - "end": { - "line": 1, - "column": 55, - "offset": 54 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 26, - "offset": 25 - }, - "end": { - "line": 1, - "column": 42, - "offset": 41 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " IDs do not overwrite the user's IDs", - "position": { - "start": { - "line": 1, - "column": 42, - "offset": 41 - }, - "end": { - "line": 1, - "column": 78, - "offset": 77 - }, - "indent": [] - } - }, - { - "type": "footnoteReference", - "identifier": "1", - "label": "1", - "position": { - "start": { - "line": 1, - "column": 78, - "offset": 77 - }, - "end": { - "line": 1, - "column": 82, - "offset": 81 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 82, - "offset": 81 - }, - "end": { - "line": 1, - "column": 83, - "offset": 82 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 83, - "offset": 82 - }, - "indent": [] - } - }, - { - "type": "footnoteDefinition", - "identifier": "1", - "label": "1", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Old behavior would, for \"generated\", generate a footnote with an ID set to ", - "position": { - "start": { - "line": 3, - "column": 7, - "offset": 90 - }, - "end": { - "line": 3, - "column": 82, - "offset": 165 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "1", - "position": { - "start": { - "line": 3, - "column": 82, - "offset": 165 - }, - "end": { - "line": 3, - "column": 85, - "offset": 168 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ", thus overwriting this footnote.", - "position": { - "start": { - "line": 3, - "column": 85, - "offset": 168 - }, - "end": { - "line": 3, - "column": 118, - "offset": 201 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 7, - "offset": 90 - }, - "end": { - "line": 3, - "column": 118, - "offset": 201 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 84 - }, - "end": { - "line": 3, - "column": 118, - "offset": 201 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 4, - "column": 1, - "offset": 202 - } - } -} diff --git a/test/fixtures/tree/footnote-ids.json b/test/fixtures/tree/footnote-ids.json deleted file mode 100644 index 0e522e5e8..000000000 --- a/test/fixtures/tree/footnote-ids.json +++ /dev/null @@ -1,269 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This example checks that ", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 26, - "offset": 25 - }, - "indent": [] - } - }, - { - "type": "linkReference", - "identifier": "^the generated", - "label": "^the generated", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "^the generated", - "position": { - "start": { - "line": 1, - "column": 27, - "offset": 26 - }, - "end": { - "line": 1, - "column": 41, - "offset": 40 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 26, - "offset": 25 - }, - "end": { - "line": 1, - "column": 42, - "offset": 41 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " IDs do not overwrite the user's IDs", - "position": { - "start": { - "line": 1, - "column": 42, - "offset": 41 - }, - "end": { - "line": 1, - "column": 78, - "offset": 77 - }, - "indent": [] - } - }, - { - "type": "linkReference", - "identifier": "^1", - "label": "^1", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "^1", - "position": { - "start": { - "line": 1, - "column": 79, - "offset": 78 - }, - "end": { - "line": 1, - "column": 81, - "offset": 80 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 78, - "offset": 77 - }, - "end": { - "line": 1, - "column": 82, - "offset": 81 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 82, - "offset": 81 - }, - "end": { - "line": 1, - "column": 83, - "offset": 82 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 83, - "offset": 82 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "^1", - "label": "^1", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "^1", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 85 - }, - "end": { - "line": 3, - "column": 4, - "offset": 87 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 84 - }, - "end": { - "line": 3, - "column": 5, - "offset": 88 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ": Old behavior would, for \"generated\", generate a footnote with an ID set to ", - "position": { - "start": { - "line": 3, - "column": 5, - "offset": 88 - }, - "end": { - "line": 3, - "column": 82, - "offset": 165 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "1", - "position": { - "start": { - "line": 3, - "column": 82, - "offset": 165 - }, - "end": { - "line": 3, - "column": 85, - "offset": 168 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ", thus overwriting this footnote.", - "position": { - "start": { - "line": 3, - "column": 85, - "offset": 168 - }, - "end": { - "line": 3, - "column": 118, - "offset": 201 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 84 - }, - "end": { - "line": 3, - "column": 118, - "offset": 201 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 4, - "column": 1, - "offset": 202 - } - } -} diff --git a/test/fixtures/tree/footnote-indent.footnotes.json b/test/fixtures/tree/footnote-indent.footnotes.json deleted file mode 100644 index 6b314e14b..000000000 --- a/test/fixtures/tree/footnote-indent.footnotes.json +++ /dev/null @@ -1,142 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "The NATO phonetic alphabet", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 27, - "offset": 26 - }, - "indent": [] - } - }, - { - "type": "footnoteReference", - "identifier": "wiki", - "label": "wiki", - "position": { - "start": { - "line": 1, - "column": 27, - "offset": 26 - }, - "end": { - "line": 1, - "column": 34, - "offset": 33 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 34, - "offset": 33 - }, - "end": { - "line": 1, - "column": 35, - "offset": 34 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 35, - "offset": 34 - }, - "indent": [] - } - }, - { - "type": "footnoteDefinition", - "identifier": "wiki", - "label": "wiki", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Read more about it somewhere else.", - "position": { - "start": { - "line": 3, - "column": 12, - "offset": 47 - }, - "end": { - "line": 3, - "column": 46, - "offset": 81 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 12, - "offset": 47 - }, - "end": { - "line": 3, - "column": 46, - "offset": 81 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 36 - }, - "end": { - "line": 3, - "column": 46, - "offset": 81 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 4, - "column": 1, - "offset": 82 - } - } -} diff --git a/test/fixtures/tree/footnote-indent.json b/test/fixtures/tree/footnote-indent.json deleted file mode 100644 index cd85bf7f6..000000000 --- a/test/fixtures/tree/footnote-indent.json +++ /dev/null @@ -1,197 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "The NATO phonetic alphabet", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 27, - "offset": 26 - }, - "indent": [] - } - }, - { - "type": "linkReference", - "identifier": "^wiki", - "label": "^wiki", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "^wiki", - "position": { - "start": { - "line": 1, - "column": 28, - "offset": 27 - }, - "end": { - "line": 1, - "column": 33, - "offset": 32 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 27, - "offset": 26 - }, - "end": { - "line": 1, - "column": 34, - "offset": 33 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 34, - "offset": 33 - }, - "end": { - "line": 1, - "column": 35, - "offset": 34 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 35, - "offset": 34 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 36 - }, - "end": { - "line": 3, - "column": 3, - "offset": 38 - }, - "indent": [] - } - }, - { - "type": "linkReference", - "identifier": "^wiki", - "label": "^wiki", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "^wiki", - "position": { - "start": { - "line": 3, - "column": 4, - "offset": 39 - }, - "end": { - "line": 3, - "column": 9, - "offset": 44 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 38 - }, - "end": { - "line": 3, - "column": 10, - "offset": 45 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ": Read more about it somewhere else.", - "position": { - "start": { - "line": 3, - "column": 10, - "offset": 45 - }, - "end": { - "line": 3, - "column": 46, - "offset": 81 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 36 - }, - "end": { - "line": 3, - "column": 46, - "offset": 81 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 4, - "column": 1, - "offset": 82 - } - } -} diff --git a/test/fixtures/tree/footnote-inline.footnotes.json b/test/fixtures/tree/footnote-inline.footnotes.json deleted file mode 100644 index 950a6f8a0..000000000 --- a/test/fixtures/tree/footnote-inline.footnotes.json +++ /dev/null @@ -1,139 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This is an example of an inline footnote.", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 42, - "offset": 41 - }, - "indent": [] - } - }, - { - "type": "footnote", - "children": [ - { - "type": "text", - "value": "This is the ", - "position": { - "start": { - "line": 1, - "column": 75, - "offset": 74 - }, - "end": { - "line": 1, - "column": 87, - "offset": 86 - }, - "indent": [] - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "actual", - "position": { - "start": { - "line": 1, - "column": 88, - "offset": 87 - }, - "end": { - "line": 1, - "column": 94, - "offset": 93 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 87, - "offset": 86 - }, - "end": { - "line": 1, - "column": 95, - "offset": 94 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " footnote.", - "position": { - "start": { - "line": 1, - "column": 95, - "offset": 94 - }, - "end": { - "line": 1, - "column": 105, - "offset": 104 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 42, - "offset": 41 - }, - "end": { - "line": 1, - "column": 75, - "offset": 74 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 75, - "offset": 74 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 1, - "offset": 75 - } - } -} diff --git a/test/fixtures/tree/footnote-inline.json b/test/fixtures/tree/footnote-inline.json deleted file mode 100644 index 3241c6d7b..000000000 --- a/test/fixtures/tree/footnote-inline.json +++ /dev/null @@ -1,142 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This is an example of an inline footnote.", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 42, - "offset": 41 - }, - "indent": [] - } - }, - { - "type": "linkReference", - "identifier": "^this is the _actual_ footnote.", - "label": "^This is the _actual_ footnote.", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "^This is the ", - "position": { - "start": { - "line": 1, - "column": 43, - "offset": 42 - }, - "end": { - "line": 1, - "column": 56, - "offset": 55 - }, - "indent": [] - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "actual", - "position": { - "start": { - "line": 1, - "column": 57, - "offset": 56 - }, - "end": { - "line": 1, - "column": 63, - "offset": 62 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 56, - "offset": 55 - }, - "end": { - "line": 1, - "column": 64, - "offset": 63 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " footnote.", - "position": { - "start": { - "line": 1, - "column": 64, - "offset": 63 - }, - "end": { - "line": 1, - "column": 74, - "offset": 73 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 42, - "offset": 41 - }, - "end": { - "line": 1, - "column": 75, - "offset": 74 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 75, - "offset": 74 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 1, - "offset": 75 - } - } -} diff --git a/test/fixtures/tree/footnote-like.footnotes.json b/test/fixtures/tree/footnote-like.footnotes.json deleted file mode 100644 index 400aa6c32..000000000 --- a/test/fixtures/tree/footnote-like.footnotes.json +++ /dev/null @@ -1,268 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This one isn't even ", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 21, - "offset": 20 - }, - "indent": [] - } - }, - { - "type": "linkReference", - "identifier": "defined", - "label": "defined", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "defined", - "position": { - "start": { - "line": 1, - "column": 22, - "offset": 21 - }, - "end": { - "line": 1, - "column": 29, - "offset": 28 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 21, - "offset": 20 - }, - "end": { - "line": 1, - "column": 30, - "offset": 29 - }, - "indent": [] - } - }, - { - "type": "footnoteReference", - "identifier": "foo", - "label": "foo", - "position": { - "start": { - "line": 1, - "column": 30, - "offset": 29 - }, - "end": { - "line": 1, - "column": 36, - "offset": 35 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 36, - "offset": 35 - }, - "end": { - "line": 1, - "column": 37, - "offset": 36 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 37, - "offset": 36 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "footnoteReference", - "identifier": "both", - "label": "both", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 38 - }, - "end": { - "line": 3, - "column": 8, - "offset": 45 - }, - "indent": [] - } - }, - { - "type": "linkReference", - "identifier": "invalid", - "label": "invalid", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "invalid", - "position": { - "start": { - "line": 3, - "column": 9, - "offset": 46 - }, - "end": { - "line": 3, - "column": 16, - "offset": 53 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 8, - "offset": 45 - }, - "end": { - "line": 3, - "column": 17, - "offset": 54 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ", ", - "position": { - "start": { - "line": 3, - "column": 17, - "offset": 54 - }, - "end": { - "line": 3, - "column": 19, - "offset": 56 - }, - "indent": [] - } - }, - { - "type": "footnote", - "children": [ - { - "type": "text", - "value": "this too", - "position": { - "start": { - "line": 3, - "column": 30, - "offset": 67 - }, - "end": { - "line": 3, - "column": 38, - "offset": 75 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 19, - "offset": 56 - }, - "end": { - "line": 3, - "column": 30, - "offset": 67 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "[].", - "position": { - "start": { - "line": 3, - "column": 30, - "offset": 67 - }, - "end": { - "line": 3, - "column": 33, - "offset": 70 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 38 - }, - "end": { - "line": 3, - "column": 33, - "offset": 70 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 4, - "column": 1, - "offset": 71 - } - } -} diff --git a/test/fixtures/tree/footnote-like.json b/test/fixtures/tree/footnote-like.json deleted file mode 100644 index 91919507f..000000000 --- a/test/fixtures/tree/footnote-like.json +++ /dev/null @@ -1,235 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This one isn't even ", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 21, - "offset": 20 - }, - "indent": [] - } - }, - { - "type": "linkReference", - "identifier": "^foo", - "label": "^foo", - "referenceType": "full", - "children": [ - { - "type": "text", - "value": "defined", - "position": { - "start": { - "line": 1, - "column": 22, - "offset": 21 - }, - "end": { - "line": 1, - "column": 29, - "offset": 28 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 21, - "offset": 20 - }, - "end": { - "line": 1, - "column": 36, - "offset": 35 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 36, - "offset": 35 - }, - "end": { - "line": 1, - "column": 37, - "offset": 36 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 37, - "offset": 36 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "invalid", - "label": "invalid", - "referenceType": "full", - "children": [ - { - "type": "text", - "value": "^both", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 39 - }, - "end": { - "line": 3, - "column": 7, - "offset": 44 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 38 - }, - "end": { - "line": 3, - "column": 17, - "offset": 54 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ", ", - "position": { - "start": { - "line": 3, - "column": 17, - "offset": 54 - }, - "end": { - "line": 3, - "column": 19, - "offset": 56 - }, - "indent": [] - } - }, - { - "type": "linkReference", - "identifier": "^this too", - "label": "^this too", - "referenceType": "collapsed", - "children": [ - { - "type": "text", - "value": "^this too", - "position": { - "start": { - "line": 3, - "column": 20, - "offset": 57 - }, - "end": { - "line": 3, - "column": 29, - "offset": 66 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 19, - "offset": 56 - }, - "end": { - "line": 3, - "column": 32, - "offset": 69 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 32, - "offset": 69 - }, - "end": { - "line": 3, - "column": 33, - "offset": 70 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 38 - }, - "end": { - "line": 3, - "column": 33, - "offset": 70 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 4, - "column": 1, - "offset": 71 - } - } -} diff --git a/test/fixtures/tree/footnote-matrix.footnotes.json b/test/fixtures/tree/footnote-matrix.footnotes.json deleted file mode 100644 index fbfffe6b2..000000000 --- a/test/fixtures/tree/footnote-matrix.footnotes.json +++ /dev/null @@ -1,380 +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": "linkReference", - "identifier": "bar", - "label": "bar", - "referenceType": "full", - "children": [ - { - "type": "text", - "value": "foo", - "position": { - "start": { - "line": 1, - "column": 5, - "offset": 4 - }, - "end": { - "line": 1, - "column": 8, - "offset": 7 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 4, - "offset": 3 - }, - "end": { - "line": 1, - "column": 14, - "offset": 13 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 4, - "offset": 3 - }, - "end": { - "line": 1, - "column": 14, - "offset": 13 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 14, - "offset": 13 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "footnoteReference", - "identifier": "foo", - "label": "foo", - "position": { - "start": { - "line": 2, - "column": 4, - "offset": 17 - }, - "end": { - "line": 2, - "column": 10, - "offset": 23 - }, - "indent": [] - } - }, - { - "type": "linkReference", - "identifier": "bar", - "label": "bar", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "bar", - "position": { - "start": { - "line": 2, - "column": 11, - "offset": 24 - }, - "end": { - "line": 2, - "column": 14, - "offset": 27 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 2, - "column": 10, - "offset": 23 - }, - "end": { - "line": 2, - "column": 15, - "offset": 28 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 2, - "column": 4, - "offset": 17 - }, - "end": { - "line": 2, - "column": 15, - "offset": 28 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 2, - "column": 1, - "offset": 14 - }, - "end": { - "line": 2, - "column": 15, - "offset": 28 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "foo", - "label": "foo", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "foo", - "position": { - "start": { - "line": 3, - "column": 5, - "offset": 33 - }, - "end": { - "line": 3, - "column": 8, - "offset": 36 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 4, - "offset": 32 - }, - "end": { - "line": 3, - "column": 9, - "offset": 37 - }, - "indent": [] - } - }, - { - "type": "footnoteReference", - "identifier": "bar", - "label": "bar", - "position": { - "start": { - "line": 3, - "column": 9, - "offset": 37 - }, - "end": { - "line": 3, - "column": 15, - "offset": 43 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 4, - "offset": 32 - }, - "end": { - "line": 3, - "column": 15, - "offset": 43 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 29 - }, - "end": { - "line": 3, - "column": 15, - "offset": 43 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "footnoteReference", - "identifier": "foo", - "label": "foo", - "position": { - "start": { - "line": 4, - "column": 4, - "offset": 47 - }, - "end": { - "line": 4, - "column": 10, - "offset": 53 - }, - "indent": [] - } - }, - { - "type": "footnoteReference", - "identifier": "bar", - "label": "bar", - "position": { - "start": { - "line": 4, - "column": 10, - "offset": 53 - }, - "end": { - "line": 4, - "column": 16, - "offset": 59 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 4, - "offset": 47 - }, - "end": { - "line": 4, - "column": 16, - "offset": 59 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 44 - }, - "end": { - "line": 4, - "column": 16, - "offset": 59 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 4, - "column": 16, - "offset": 59 - }, - "indent": [ - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 5, - "column": 1, - "offset": 60 - } - } -} diff --git a/test/fixtures/tree/footnote-matrix.json b/test/fixtures/tree/footnote-matrix.json deleted file mode 100644 index cbc4905cb..000000000 --- a/test/fixtures/tree/footnote-matrix.json +++ /dev/null @@ -1,346 +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": "linkReference", - "identifier": "bar", - "label": "bar", - "referenceType": "full", - "children": [ - { - "type": "text", - "value": "foo", - "position": { - "start": { - "line": 1, - "column": 5, - "offset": 4 - }, - "end": { - "line": 1, - "column": 8, - "offset": 7 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 4, - "offset": 3 - }, - "end": { - "line": 1, - "column": 14, - "offset": 13 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 4, - "offset": 3 - }, - "end": { - "line": 1, - "column": 14, - "offset": 13 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 14, - "offset": 13 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "bar", - "label": "bar", - "referenceType": "full", - "children": [ - { - "type": "text", - "value": "^foo", - "position": { - "start": { - "line": 2, - "column": 5, - "offset": 18 - }, - "end": { - "line": 2, - "column": 9, - "offset": 22 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 2, - "column": 4, - "offset": 17 - }, - "end": { - "line": 2, - "column": 15, - "offset": 28 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 2, - "column": 4, - "offset": 17 - }, - "end": { - "line": 2, - "column": 15, - "offset": 28 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 2, - "column": 1, - "offset": 14 - }, - "end": { - "line": 2, - "column": 15, - "offset": 28 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "^bar", - "label": "^bar", - "referenceType": "full", - "children": [ - { - "type": "text", - "value": "foo", - "position": { - "start": { - "line": 3, - "column": 5, - "offset": 33 - }, - "end": { - "line": 3, - "column": 8, - "offset": 36 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 4, - "offset": 32 - }, - "end": { - "line": 3, - "column": 15, - "offset": 43 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 4, - "offset": 32 - }, - "end": { - "line": 3, - "column": 15, - "offset": 43 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 29 - }, - "end": { - "line": 3, - "column": 15, - "offset": 43 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "^bar", - "label": "^bar", - "referenceType": "full", - "children": [ - { - "type": "text", - "value": "^foo", - "position": { - "start": { - "line": 4, - "column": 5, - "offset": 48 - }, - "end": { - "line": 4, - "column": 9, - "offset": 52 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 4, - "offset": 47 - }, - "end": { - "line": 4, - "column": 16, - "offset": 59 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 4, - "offset": 47 - }, - "end": { - "line": 4, - "column": 16, - "offset": 59 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 44 - }, - "end": { - "line": 4, - "column": 16, - "offset": 59 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 4, - "column": 16, - "offset": 59 - }, - "indent": [ - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 5, - "column": 1, - "offset": 60 - } - } -} diff --git a/test/fixtures/tree/footnote-multiple.footnotes.json b/test/fixtures/tree/footnote-multiple.footnotes.json deleted file mode 100644 index c43aa8f2b..000000000 --- a/test/fixtures/tree/footnote-multiple.footnotes.json +++ /dev/null @@ -1,231 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "International Radiotelephony Spelling Alphabet", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 49, - "offset": 48 - }, - "indent": [] - } - }, - { - "type": "footnoteReference", - "identifier": "wiki", - "label": "wiki", - "position": { - "start": { - "line": 1, - "column": 49, - "offset": 48 - }, - "end": { - "line": 1, - "column": 56, - "offset": 55 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 56, - "offset": 55 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Here's the NATO phonetic alphabet", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 57 - }, - "end": { - "line": 3, - "column": 34, - "offset": 90 - }, - "indent": [] - } - }, - { - "type": "footnoteReference", - "identifier": "wiki", - "label": "wiki", - "position": { - "start": { - "line": 3, - "column": 34, - "offset": 90 - }, - "end": { - "line": 3, - "column": 41, - "offset": 97 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ": Alfa, Bravo, Charlie, Delta, Echo, Foxtrot, Golf, Hotel, India, Juliet, Kilo, Lima, Mike, November, Oscar, Papa, Quebec, Romeo, Sierra, Tango, Uniform, Victor, Whiskey, X-ray, Yankee, and Zulu.", - "position": { - "start": { - "line": 3, - "column": 41, - "offset": 97 - }, - "end": { - "line": 3, - "column": 236, - "offset": 292 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 57 - }, - "end": { - "line": 3, - "column": 236, - "offset": 292 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And here's some more text.", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 294 - }, - "end": { - "line": 5, - "column": 27, - "offset": 320 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 294 - }, - "end": { - "line": 5, - "column": 27, - "offset": 320 - }, - "indent": [] - } - }, - { - "type": "footnoteDefinition", - "identifier": "wiki", - "label": "wiki", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Read more about it here.", - "position": { - "start": { - "line": 7, - "column": 10, - "offset": 331 - }, - "end": { - "line": 7, - "column": 34, - "offset": 355 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 10, - "offset": 331 - }, - "end": { - "line": 7, - "column": 34, - "offset": 355 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 322 - }, - "end": { - "line": 7, - "column": 34, - "offset": 355 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 356 - } - } -} diff --git a/test/fixtures/tree/footnote-multiple.footnotes.pedantic.json b/test/fixtures/tree/footnote-multiple.footnotes.pedantic.json deleted file mode 100644 index c43aa8f2b..000000000 --- a/test/fixtures/tree/footnote-multiple.footnotes.pedantic.json +++ /dev/null @@ -1,231 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "International Radiotelephony Spelling Alphabet", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 49, - "offset": 48 - }, - "indent": [] - } - }, - { - "type": "footnoteReference", - "identifier": "wiki", - "label": "wiki", - "position": { - "start": { - "line": 1, - "column": 49, - "offset": 48 - }, - "end": { - "line": 1, - "column": 56, - "offset": 55 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 56, - "offset": 55 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Here's the NATO phonetic alphabet", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 57 - }, - "end": { - "line": 3, - "column": 34, - "offset": 90 - }, - "indent": [] - } - }, - { - "type": "footnoteReference", - "identifier": "wiki", - "label": "wiki", - "position": { - "start": { - "line": 3, - "column": 34, - "offset": 90 - }, - "end": { - "line": 3, - "column": 41, - "offset": 97 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ": Alfa, Bravo, Charlie, Delta, Echo, Foxtrot, Golf, Hotel, India, Juliet, Kilo, Lima, Mike, November, Oscar, Papa, Quebec, Romeo, Sierra, Tango, Uniform, Victor, Whiskey, X-ray, Yankee, and Zulu.", - "position": { - "start": { - "line": 3, - "column": 41, - "offset": 97 - }, - "end": { - "line": 3, - "column": 236, - "offset": 292 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 57 - }, - "end": { - "line": 3, - "column": 236, - "offset": 292 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And here's some more text.", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 294 - }, - "end": { - "line": 5, - "column": 27, - "offset": 320 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 294 - }, - "end": { - "line": 5, - "column": 27, - "offset": 320 - }, - "indent": [] - } - }, - { - "type": "footnoteDefinition", - "identifier": "wiki", - "label": "wiki", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Read more about it here.", - "position": { - "start": { - "line": 7, - "column": 10, - "offset": 331 - }, - "end": { - "line": 7, - "column": 34, - "offset": 355 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 10, - "offset": 331 - }, - "end": { - "line": 7, - "column": 34, - "offset": 355 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 322 - }, - "end": { - "line": 7, - "column": 34, - "offset": 355 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 356 - } - } -} diff --git a/test/fixtures/tree/footnote-multiple.json b/test/fixtures/tree/footnote-multiple.json deleted file mode 100644 index a43106eb7..000000000 --- a/test/fixtures/tree/footnote-multiple.json +++ /dev/null @@ -1,289 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "International Radiotelephony Spelling Alphabet", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 49, - "offset": 48 - }, - "indent": [] - } - }, - { - "type": "linkReference", - "identifier": "^wiki", - "label": "^wiki", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "^wiki", - "position": { - "start": { - "line": 1, - "column": 50, - "offset": 49 - }, - "end": { - "line": 1, - "column": 55, - "offset": 54 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 49, - "offset": 48 - }, - "end": { - "line": 1, - "column": 56, - "offset": 55 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 56, - "offset": 55 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Here's the NATO phonetic alphabet", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 57 - }, - "end": { - "line": 3, - "column": 34, - "offset": 90 - }, - "indent": [] - } - }, - { - "type": "linkReference", - "identifier": "^wiki", - "label": "^wiki", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "^wiki", - "position": { - "start": { - "line": 3, - "column": 35, - "offset": 91 - }, - "end": { - "line": 3, - "column": 40, - "offset": 96 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 34, - "offset": 90 - }, - "end": { - "line": 3, - "column": 41, - "offset": 97 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ": Alfa, Bravo, Charlie, Delta, Echo, Foxtrot, Golf, Hotel, India, Juliet, Kilo, Lima, Mike, November, Oscar, Papa, Quebec, Romeo, Sierra, Tango, Uniform, Victor, Whiskey, X-ray, Yankee, and Zulu.", - "position": { - "start": { - "line": 3, - "column": 41, - "offset": 97 - }, - "end": { - "line": 3, - "column": 236, - "offset": 292 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 57 - }, - "end": { - "line": 3, - "column": 236, - "offset": 292 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And here's some more text.", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 294 - }, - "end": { - "line": 5, - "column": 27, - "offset": 320 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 294 - }, - "end": { - "line": 5, - "column": 27, - "offset": 320 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "^wiki", - "label": "^wiki", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "^wiki", - "position": { - "start": { - "line": 7, - "column": 2, - "offset": 323 - }, - "end": { - "line": 7, - "column": 7, - "offset": 328 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 322 - }, - "end": { - "line": 7, - "column": 8, - "offset": 329 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ": Read more about it here.", - "position": { - "start": { - "line": 7, - "column": 8, - "offset": 329 - }, - "end": { - "line": 7, - "column": 34, - "offset": 355 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 322 - }, - "end": { - "line": 7, - "column": 34, - "offset": 355 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 356 - } - } -} diff --git a/test/fixtures/tree/footnote-multiple.pedantic.json b/test/fixtures/tree/footnote-multiple.pedantic.json deleted file mode 100644 index a43106eb7..000000000 --- a/test/fixtures/tree/footnote-multiple.pedantic.json +++ /dev/null @@ -1,289 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "International Radiotelephony Spelling Alphabet", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 49, - "offset": 48 - }, - "indent": [] - } - }, - { - "type": "linkReference", - "identifier": "^wiki", - "label": "^wiki", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "^wiki", - "position": { - "start": { - "line": 1, - "column": 50, - "offset": 49 - }, - "end": { - "line": 1, - "column": 55, - "offset": 54 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 49, - "offset": 48 - }, - "end": { - "line": 1, - "column": 56, - "offset": 55 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 56, - "offset": 55 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Here's the NATO phonetic alphabet", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 57 - }, - "end": { - "line": 3, - "column": 34, - "offset": 90 - }, - "indent": [] - } - }, - { - "type": "linkReference", - "identifier": "^wiki", - "label": "^wiki", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "^wiki", - "position": { - "start": { - "line": 3, - "column": 35, - "offset": 91 - }, - "end": { - "line": 3, - "column": 40, - "offset": 96 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 34, - "offset": 90 - }, - "end": { - "line": 3, - "column": 41, - "offset": 97 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ": Alfa, Bravo, Charlie, Delta, Echo, Foxtrot, Golf, Hotel, India, Juliet, Kilo, Lima, Mike, November, Oscar, Papa, Quebec, Romeo, Sierra, Tango, Uniform, Victor, Whiskey, X-ray, Yankee, and Zulu.", - "position": { - "start": { - "line": 3, - "column": 41, - "offset": 97 - }, - "end": { - "line": 3, - "column": 236, - "offset": 292 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 57 - }, - "end": { - "line": 3, - "column": 236, - "offset": 292 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And here's some more text.", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 294 - }, - "end": { - "line": 5, - "column": 27, - "offset": 320 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 294 - }, - "end": { - "line": 5, - "column": 27, - "offset": 320 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "^wiki", - "label": "^wiki", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "^wiki", - "position": { - "start": { - "line": 7, - "column": 2, - "offset": 323 - }, - "end": { - "line": 7, - "column": 7, - "offset": 328 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 322 - }, - "end": { - "line": 7, - "column": 8, - "offset": 329 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ": Read more about it here.", - "position": { - "start": { - "line": 7, - "column": 8, - "offset": 329 - }, - "end": { - "line": 7, - "column": 34, - "offset": 355 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 322 - }, - "end": { - "line": 7, - "column": 34, - "offset": 355 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 356 - } - } -} diff --git a/test/fixtures/tree/footnote-nested.footnotes.json b/test/fixtures/tree/footnote-nested.footnotes.json deleted file mode 100644 index 36c4d1b8c..000000000 --- a/test/fixtures/tree/footnote-nested.footnotes.json +++ /dev/null @@ -1,212 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "A footnote", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 11, - "offset": 10 - }, - "indent": [] - } - }, - { - "type": "footnoteReference", - "identifier": "1", - "label": "1", - "position": { - "start": { - "line": 1, - "column": 11, - "offset": 10 - }, - "end": { - "line": 1, - "column": 15, - "offset": 14 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 15, - "offset": 14 - }, - "end": { - "line": 1, - "column": 16, - "offset": 15 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 16, - "offset": 15 - }, - "indent": [] - } - }, - { - "type": "footnoteDefinition", - "identifier": "1", - "label": "1", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Including ", - "position": { - "start": { - "line": 3, - "column": 7, - "offset": 23 - }, - "end": { - "line": 3, - "column": 17, - "offset": 33 - }, - "indent": [] - } - }, - { - "type": "footnote", - "children": [ - { - "type": "text", - "value": "another ", - "position": { - "start": { - "line": 3, - "column": 40, - "offset": 56 - }, - "end": { - "line": 3, - "column": 48, - "offset": 64 - }, - "indent": [] - } - }, - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "footnote", - "position": { - "start": { - "line": 3, - "column": 50, - "offset": 66 - }, - "end": { - "line": 3, - "column": 58, - "offset": 74 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 48, - "offset": 64 - }, - "end": { - "line": 3, - "column": 60, - "offset": 76 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 17, - "offset": 33 - }, - "end": { - "line": 3, - "column": 40, - "offset": 56 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 7, - "offset": 23 - }, - "end": { - "line": 3, - "column": 40, - "offset": 56 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 17 - }, - "end": { - "line": 3, - "column": 40, - "offset": 56 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 4, - "column": 1, - "offset": 57 - } - } -} diff --git a/test/fixtures/tree/footnote-nested.json b/test/fixtures/tree/footnote-nested.json deleted file mode 100644 index f00a67cd8..000000000 --- a/test/fixtures/tree/footnote-nested.json +++ /dev/null @@ -1,253 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "A footnote", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 11, - "offset": 10 - }, - "indent": [] - } - }, - { - "type": "linkReference", - "identifier": "^1", - "label": "^1", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "^1", - "position": { - "start": { - "line": 1, - "column": 12, - "offset": 11 - }, - "end": { - "line": 1, - "column": 14, - "offset": 13 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 11, - "offset": 10 - }, - "end": { - "line": 1, - "column": 15, - "offset": 14 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 15, - "offset": 14 - }, - "end": { - "line": 1, - "column": 16, - "offset": 15 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 16, - "offset": 15 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "^1", - "label": "^1", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "^1", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 18 - }, - "end": { - "line": 3, - "column": 4, - "offset": 20 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 17 - }, - "end": { - "line": 3, - "column": 5, - "offset": 21 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ": Including ", - "position": { - "start": { - "line": 3, - "column": 5, - "offset": 21 - }, - "end": { - "line": 3, - "column": 17, - "offset": 33 - }, - "indent": [] - } - }, - { - "type": "linkReference", - "identifier": "^another **footnote**", - "label": "^another **footnote**", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "^another ", - "position": { - "start": { - "line": 3, - "column": 18, - "offset": 34 - }, - "end": { - "line": 3, - "column": 27, - "offset": 43 - }, - "indent": [] - } - }, - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "footnote", - "position": { - "start": { - "line": 3, - "column": 29, - "offset": 45 - }, - "end": { - "line": 3, - "column": 37, - "offset": 53 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 27, - "offset": 43 - }, - "end": { - "line": 3, - "column": 39, - "offset": 55 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 17, - "offset": 33 - }, - "end": { - "line": 3, - "column": 40, - "offset": 56 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 17 - }, - "end": { - "line": 3, - "column": 40, - "offset": 56 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 4, - "column": 1, - "offset": 57 - } - } -} diff --git a/test/fixtures/tree/footnote-or-reference-label.footnotes.json b/test/fixtures/tree/footnote-or-reference-label.footnotes.json deleted file mode 100644 index 5b49cae8a..000000000 --- a/test/fixtures/tree/footnote-or-reference-label.footnotes.json +++ /dev/null @@ -1,166 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "alpha", - "label": "alpha", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "alpha", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 8, - "offset": 7 - }, - "indent": [] - } - }, - { - "type": "footnoteReference", - "identifier": "bravo", - "label": "bravo", - "position": { - "start": { - "line": 1, - "column": 8, - "offset": 7 - }, - "end": { - "line": 1, - "column": 16, - "offset": 15 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 16, - "offset": 15 - }, - "indent": [] - } - }, - { - "type": "footnoteDefinition", - "identifier": "bravo", - "label": "bravo", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Footnote definition.", - "position": { - "start": { - "line": 3, - "column": 11, - "offset": 27 - }, - "end": { - "line": 3, - "column": 31, - "offset": 47 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 11, - "offset": 27 - }, - "end": { - "line": 3, - "column": 31, - "offset": 47 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 17 - }, - "end": { - "line": 3, - "column": 31, - "offset": 47 - }, - "indent": [] - } - }, - { - "type": "definition", - "identifier": "alpha", - "label": "alpha", - "title": null, - "url": "https://example.com", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 49 - }, - "end": { - "line": 5, - "column": 29, - "offset": 77 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 6, - "column": 1, - "offset": 78 - } - } -} diff --git a/test/fixtures/tree/footnote-or-reference-label.json b/test/fixtures/tree/footnote-or-reference-label.json deleted file mode 100644 index 85eae2d4f..000000000 --- a/test/fixtures/tree/footnote-or-reference-label.json +++ /dev/null @@ -1,166 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "^bravo", - "label": "^bravo", - "referenceType": "full", - "children": [ - { - "type": "text", - "value": "alpha", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 16, - "offset": 15 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 16, - "offset": 15 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "^bravo", - "label": "^bravo", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "^bravo", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 18 - }, - "end": { - "line": 3, - "column": 8, - "offset": 24 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 17 - }, - "end": { - "line": 3, - "column": 9, - "offset": 25 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ": Footnote definition.", - "position": { - "start": { - "line": 3, - "column": 9, - "offset": 25 - }, - "end": { - "line": 3, - "column": 31, - "offset": 47 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 17 - }, - "end": { - "line": 3, - "column": 31, - "offset": 47 - }, - "indent": [] - } - }, - { - "type": "definition", - "identifier": "alpha", - "label": "alpha", - "title": null, - "url": "https://example.com", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 49 - }, - "end": { - "line": 5, - "column": 29, - "offset": 77 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 6, - "column": 1, - "offset": 78 - } - } -} diff --git a/test/fixtures/tree/footnote-proto.footnotes.json b/test/fixtures/tree/footnote-proto.footnotes.json deleted file mode 100644 index 355a7f38d..000000000 --- a/test/fixtures/tree/footnote-proto.footnotes.json +++ /dev/null @@ -1,424 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "A footnote", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 11, - "offset": 10 - }, - "indent": [] - } - }, - { - "type": "footnoteReference", - "identifier": "tostring", - "label": "toString", - "position": { - "start": { - "line": 1, - "column": 11, - "offset": 10 - }, - "end": { - "line": 1, - "column": 22, - "offset": 21 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " and ", - "position": { - "start": { - "line": 1, - "column": 22, - "offset": 21 - }, - "end": { - "line": 1, - "column": 27, - "offset": 26 - }, - "indent": [] - } - }, - { - "type": "footnoteReference", - "identifier": "__proto__", - "label": "__proto__", - "position": { - "start": { - "line": 1, - "column": 27, - "offset": 26 - }, - "end": { - "line": 1, - "column": 39, - "offset": 38 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " and ", - "position": { - "start": { - "line": 1, - "column": 39, - "offset": 38 - }, - "end": { - "line": 1, - "column": 44, - "offset": 43 - }, - "indent": [] - } - }, - { - "type": "footnoteReference", - "identifier": "constructor", - "label": "constructor", - "position": { - "start": { - "line": 1, - "column": 44, - "offset": 43 - }, - "end": { - "line": 1, - "column": 58, - "offset": 57 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 58, - "offset": 57 - }, - "end": { - "line": 1, - "column": 59, - "offset": 58 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 59, - "offset": 58 - }, - "indent": [] - } - }, - { - "type": "footnoteDefinition", - "identifier": "tostring", - "label": "toString", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "See ", - "position": { - "start": { - "line": 3, - "column": 14, - "offset": 73 - }, - "end": { - "line": 3, - "column": 18, - "offset": 77 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "Object.prototype.toString()", - "position": { - "start": { - "line": 3, - "column": 18, - "offset": 77 - }, - "end": { - "line": 3, - "column": 47, - "offset": 106 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 47, - "offset": 106 - }, - "end": { - "line": 3, - "column": 48, - "offset": 107 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 14, - "offset": 73 - }, - "end": { - "line": 3, - "column": 48, - "offset": 107 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 60 - }, - "end": { - "line": 3, - "column": 48, - "offset": 107 - }, - "indent": [] - } - }, - { - "type": "footnoteDefinition", - "identifier": "constructor", - "label": "constructor", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "See ", - "position": { - "start": { - "line": 4, - "column": 17, - "offset": 124 - }, - "end": { - "line": 4, - "column": 21, - "offset": 128 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "Object.prototype.valueOf()", - "position": { - "start": { - "line": 4, - "column": 21, - "offset": 128 - }, - "end": { - "line": 4, - "column": 49, - "offset": 156 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 4, - "column": 49, - "offset": 156 - }, - "end": { - "line": 4, - "column": 50, - "offset": 157 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 17, - "offset": 124 - }, - "end": { - "line": 4, - "column": 50, - "offset": 157 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 108 - }, - "end": { - "line": 4, - "column": 50, - "offset": 157 - }, - "indent": [] - } - }, - { - "type": "footnoteDefinition", - "identifier": "__proto__", - "label": "__proto__", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "See ", - "position": { - "start": { - "line": 5, - "column": 15, - "offset": 172 - }, - "end": { - "line": 5, - "column": 19, - "offset": 176 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "Object.prototype.__proto__()", - "position": { - "start": { - "line": 5, - "column": 19, - "offset": 176 - }, - "end": { - "line": 5, - "column": 49, - "offset": 206 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 49, - "offset": 206 - }, - "end": { - "line": 5, - "column": 50, - "offset": 207 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 15, - "offset": 172 - }, - "end": { - "line": 5, - "column": 50, - "offset": 207 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 158 - }, - "end": { - "line": 5, - "column": 50, - "offset": 207 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 6, - "column": 1, - "offset": 208 - } - } -} diff --git a/test/fixtures/tree/footnote-proto.json b/test/fixtures/tree/footnote-proto.json deleted file mode 100644 index d7393549a..000000000 --- a/test/fixtures/tree/footnote-proto.json +++ /dev/null @@ -1,579 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "A footnote", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 11, - "offset": 10 - }, - "indent": [] - } - }, - { - "type": "linkReference", - "identifier": "^tostring", - "label": "^toString", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "^toString", - "position": { - "start": { - "line": 1, - "column": 12, - "offset": 11 - }, - "end": { - "line": 1, - "column": 21, - "offset": 20 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 11, - "offset": 10 - }, - "end": { - "line": 1, - "column": 22, - "offset": 21 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " and ", - "position": { - "start": { - "line": 1, - "column": 22, - "offset": 21 - }, - "end": { - "line": 1, - "column": 27, - "offset": 26 - }, - "indent": [] - } - }, - { - "type": "linkReference", - "identifier": "^__proto__", - "label": "^__proto__", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "^", - "position": { - "start": { - "line": 1, - "column": 28, - "offset": 27 - }, - "end": { - "line": 1, - "column": 29, - "offset": 28 - }, - "indent": [] - } - }, - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "proto", - "position": { - "start": { - "line": 1, - "column": 31, - "offset": 30 - }, - "end": { - "line": 1, - "column": 36, - "offset": 35 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 29, - "offset": 28 - }, - "end": { - "line": 1, - "column": 38, - "offset": 37 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 27, - "offset": 26 - }, - "end": { - "line": 1, - "column": 39, - "offset": 38 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " and ", - "position": { - "start": { - "line": 1, - "column": 39, - "offset": 38 - }, - "end": { - "line": 1, - "column": 44, - "offset": 43 - }, - "indent": [] - } - }, - { - "type": "linkReference", - "identifier": "^constructor", - "label": "^constructor", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "^constructor", - "position": { - "start": { - "line": 1, - "column": 45, - "offset": 44 - }, - "end": { - "line": 1, - "column": 57, - "offset": 56 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 44, - "offset": 43 - }, - "end": { - "line": 1, - "column": 58, - "offset": 57 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 58, - "offset": 57 - }, - "end": { - "line": 1, - "column": 59, - "offset": 58 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 59, - "offset": 58 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "^tostring", - "label": "^toString", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "^toString", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 61 - }, - "end": { - "line": 3, - "column": 11, - "offset": 70 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 60 - }, - "end": { - "line": 3, - "column": 12, - "offset": 71 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ": See ", - "position": { - "start": { - "line": 3, - "column": 12, - "offset": 71 - }, - "end": { - "line": 3, - "column": 18, - "offset": 77 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "Object.prototype.toString()", - "position": { - "start": { - "line": 3, - "column": 18, - "offset": 77 - }, - "end": { - "line": 3, - "column": 47, - "offset": 106 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".\n", - "position": { - "start": { - "line": 3, - "column": 47, - "offset": 106 - }, - "end": { - "line": 4, - "column": 1, - "offset": 108 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "linkReference", - "identifier": "^constructor", - "label": "^constructor", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "^constructor", - "position": { - "start": { - "line": 4, - "column": 2, - "offset": 109 - }, - "end": { - "line": 4, - "column": 14, - "offset": 121 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 108 - }, - "end": { - "line": 4, - "column": 15, - "offset": 122 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ": See ", - "position": { - "start": { - "line": 4, - "column": 15, - "offset": 122 - }, - "end": { - "line": 4, - "column": 21, - "offset": 128 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "Object.prototype.valueOf()", - "position": { - "start": { - "line": 4, - "column": 21, - "offset": 128 - }, - "end": { - "line": 4, - "column": 49, - "offset": 156 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".\n", - "position": { - "start": { - "line": 4, - "column": 49, - "offset": 156 - }, - "end": { - "line": 5, - "column": 1, - "offset": 158 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "linkReference", - "identifier": "^__proto__", - "label": "^__proto__", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "^", - "position": { - "start": { - "line": 5, - "column": 2, - "offset": 159 - }, - "end": { - "line": 5, - "column": 3, - "offset": 160 - }, - "indent": [] - } - }, - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "proto", - "position": { - "start": { - "line": 5, - "column": 5, - "offset": 162 - }, - "end": { - "line": 5, - "column": 10, - "offset": 167 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 3, - "offset": 160 - }, - "end": { - "line": 5, - "column": 12, - "offset": 169 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 158 - }, - "end": { - "line": 5, - "column": 13, - "offset": 170 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ": See ", - "position": { - "start": { - "line": 5, - "column": 13, - "offset": 170 - }, - "end": { - "line": 5, - "column": 19, - "offset": 176 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "Object.prototype.__proto__()", - "position": { - "start": { - "line": 5, - "column": 19, - "offset": 176 - }, - "end": { - "line": 5, - "column": 49, - "offset": 206 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 49, - "offset": 206 - }, - "end": { - "line": 5, - "column": 50, - "offset": 207 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 60 - }, - "end": { - "line": 5, - "column": 50, - "offset": 207 - }, - "indent": [ - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 6, - "column": 1, - "offset": 208 - } - } -} diff --git a/test/fixtures/tree/footnote-trailing-whitespace.footnotes.json b/test/fixtures/tree/footnote-trailing-whitespace.footnotes.json deleted file mode 100644 index 7e542e6fc..000000000 --- a/test/fixtures/tree/footnote-trailing-whitespace.footnotes.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "footnoteDefinition", - "identifier": "1", - "label": "1", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Footnote with trailing newline and space", - "position": { - "start": { - "line": 1, - "column": 7, - "offset": 6 - }, - "end": { - "line": 1, - "column": 47, - "offset": 46 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 7, - "offset": 6 - }, - "end": { - "line": 1, - "column": 47, - "offset": 46 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 47, - "offset": 46 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 3, - "column": 1, - "offset": 49 - } - } -} diff --git a/test/fixtures/tree/footnote-trailing-whitespace.json b/test/fixtures/tree/footnote-trailing-whitespace.json deleted file mode 100644 index ec7483826..000000000 --- a/test/fixtures/tree/footnote-trailing-whitespace.json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "^1", - "label": "^1", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "^1", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 4, - "offset": 3 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 5, - "offset": 4 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ": Footnote with trailing newline and space", - "position": { - "start": { - "line": 1, - "column": 5, - "offset": 4 - }, - "end": { - "line": 1, - "column": 47, - "offset": 46 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 47, - "offset": 46 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 3, - "column": 1, - "offset": 49 - } - } -} diff --git a/test/fixtures/tree/footnote-without-space.footnotes.json b/test/fixtures/tree/footnote-without-space.footnotes.json deleted file mode 100644 index 40e996dc6..000000000 --- a/test/fixtures/tree/footnote-without-space.footnotes.json +++ /dev/null @@ -1,510 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 4, - "offset": 3 - }, - "indent": [] - } - }, - { - "type": "footnoteReference", - "identifier": "abc", - "label": "abc", - "position": { - "start": { - "line": 1, - "column": 4, - "offset": 3 - }, - "end": { - "line": 1, - "column": 10, - "offset": 9 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " bar. foo", - "position": { - "start": { - "line": 1, - "column": 10, - "offset": 9 - }, - "end": { - "line": 1, - "column": 19, - "offset": 18 - }, - "indent": [] - } - }, - { - "type": "footnoteReference", - "identifier": "xyz", - "label": "xyz", - "position": { - "start": { - "line": 1, - "column": 19, - "offset": 18 - }, - "end": { - "line": 1, - "column": 25, - "offset": 24 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " bar", - "position": { - "start": { - "line": 1, - "column": 25, - "offset": 24 - }, - "end": { - "line": 1, - "column": 29, - "offset": 28 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 29, - "offset": 28 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And some more tests for “image like” footnotes, related to:\n", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 30 - }, - "end": { - "line": 4, - "column": 1, - "offset": 90 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "link", - "title": null, - "url": "https://github.com/remarkjs/remark/issues/283", - "children": [ - { - "type": "text", - "value": "https://github.com/remarkjs/remark/issues/283", - "position": { - "start": { - "line": 4, - "column": 2, - "offset": 91 - }, - "end": { - "line": 4, - "column": 47, - "offset": 136 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 90 - }, - "end": { - "line": 4, - "column": 48, - "offset": 137 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ":", - "position": { - "start": { - "line": 4, - "column": 48, - "offset": 137 - }, - "end": { - "line": 4, - "column": 49, - "offset": 138 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 30 - }, - "end": { - "line": 4, - "column": 49, - "offset": 138 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 140 - }, - "end": { - "line": 6, - "column": 6, - "offset": 145 - }, - "indent": [] - } - }, - { - "type": "footnoteReference", - "identifier": "footnote", - "label": "footnote", - "position": { - "start": { - "line": 6, - "column": 6, - "offset": 145 - }, - "end": { - "line": 6, - "column": 17, - "offset": 156 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\nHello!", - "position": { - "start": { - "line": 6, - "column": 17, - "offset": 156 - }, - "end": { - "line": 7, - "column": 7, - "offset": 163 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "footnoteReference", - "identifier": "footnote", - "label": "footnote", - "position": { - "start": { - "line": 7, - "column": 7, - "offset": 163 - }, - "end": { - "line": 7, - "column": 18, - "offset": 174 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\nHello! ", - "position": { - "start": { - "line": 7, - "column": 18, - "offset": 174 - }, - "end": { - "line": 8, - "column": 8, - "offset": 182 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "footnoteReference", - "identifier": "footnote", - "label": "footnote", - "position": { - "start": { - "line": 8, - "column": 8, - "offset": 182 - }, - "end": { - "line": 8, - "column": 19, - "offset": 193 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 140 - }, - "end": { - "line": 8, - "column": 19, - "offset": 193 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "footnoteDefinition", - "identifier": "abc", - "label": "abc", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Baz baz", - "position": { - "start": { - "line": 10, - "column": 9, - "offset": 203 - }, - "end": { - "line": 10, - "column": 16, - "offset": 210 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 10, - "column": 9, - "offset": 203 - }, - "end": { - "line": 10, - "column": 16, - "offset": 210 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 195 - }, - "end": { - "line": 10, - "column": 16, - "offset": 210 - }, - "indent": [] - } - }, - { - "type": "footnoteDefinition", - "identifier": "xyz", - "label": "xyz", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Baz", - "position": { - "start": { - "line": 12, - "column": 9, - "offset": 220 - }, - "end": { - "line": 12, - "column": 12, - "offset": 223 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 9, - "offset": 220 - }, - "end": { - "line": 12, - "column": 12, - "offset": 223 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 212 - }, - "end": { - "line": 12, - "column": 12, - "offset": 223 - }, - "indent": [] - } - }, - { - "type": "footnoteDefinition", - "identifier": "footnote", - "label": "footnote", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Some definition.", - "position": { - "start": { - "line": 14, - "column": 14, - "offset": 238 - }, - "end": { - "line": 14, - "column": 30, - "offset": 254 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 14, - "offset": 238 - }, - "end": { - "line": 14, - "column": 30, - "offset": 254 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 225 - }, - "end": { - "line": 14, - "column": 30, - "offset": 254 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 15, - "column": 1, - "offset": 255 - } - } -} diff --git a/test/fixtures/tree/footnote-without-space.json b/test/fixtures/tree/footnote-without-space.json deleted file mode 100644 index 6f6b68ba1..000000000 --- a/test/fixtures/tree/footnote-without-space.json +++ /dev/null @@ -1,593 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 4, - "offset": 3 - }, - "indent": [] - } - }, - { - "type": "linkReference", - "identifier": "^abc", - "label": "^abc", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "^abc", - "position": { - "start": { - "line": 1, - "column": 5, - "offset": 4 - }, - "end": { - "line": 1, - "column": 9, - "offset": 8 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 4, - "offset": 3 - }, - "end": { - "line": 1, - "column": 10, - "offset": 9 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " bar. foo", - "position": { - "start": { - "line": 1, - "column": 10, - "offset": 9 - }, - "end": { - "line": 1, - "column": 19, - "offset": 18 - }, - "indent": [] - } - }, - { - "type": "linkReference", - "identifier": "^xyz", - "label": "^xyz", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "^xyz", - "position": { - "start": { - "line": 1, - "column": 20, - "offset": 19 - }, - "end": { - "line": 1, - "column": 24, - "offset": 23 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 19, - "offset": 18 - }, - "end": { - "line": 1, - "column": 25, - "offset": 24 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " bar", - "position": { - "start": { - "line": 1, - "column": 25, - "offset": 24 - }, - "end": { - "line": 1, - "column": 29, - "offset": 28 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 29, - "offset": 28 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And some more tests for “image like” footnotes, related to:\n", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 30 - }, - "end": { - "line": 4, - "column": 1, - "offset": 90 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "link", - "title": null, - "url": "https://github.com/remarkjs/remark/issues/283", - "children": [ - { - "type": "text", - "value": "https://github.com/remarkjs/remark/issues/283", - "position": { - "start": { - "line": 4, - "column": 2, - "offset": 91 - }, - "end": { - "line": 4, - "column": 47, - "offset": 136 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 90 - }, - "end": { - "line": 4, - "column": 48, - "offset": 137 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ":", - "position": { - "start": { - "line": 4, - "column": 48, - "offset": 137 - }, - "end": { - "line": 4, - "column": 49, - "offset": 138 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 30 - }, - "end": { - "line": 4, - "column": 49, - "offset": 138 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 140 - }, - "end": { - "line": 6, - "column": 6, - "offset": 145 - }, - "indent": [] - } - }, - { - "type": "linkReference", - "identifier": "^footnote", - "label": "^footnote", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "^footnote", - "position": { - "start": { - "line": 6, - "column": 7, - "offset": 146 - }, - "end": { - "line": 6, - "column": 16, - "offset": 155 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 6, - "offset": 145 - }, - "end": { - "line": 6, - "column": 17, - "offset": 156 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\nHello", - "position": { - "start": { - "line": 6, - "column": 17, - "offset": 156 - }, - "end": { - "line": 7, - "column": 6, - "offset": 162 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "imageReference", - "identifier": "^footnote", - "label": "^footnote", - "referenceType": "shortcut", - "alt": "^footnote", - "position": { - "start": { - "line": 7, - "column": 6, - "offset": 162 - }, - "end": { - "line": 7, - "column": 18, - "offset": 174 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\nHello! ", - "position": { - "start": { - "line": 7, - "column": 18, - "offset": 174 - }, - "end": { - "line": 8, - "column": 8, - "offset": 182 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "linkReference", - "identifier": "^footnote", - "label": "^footnote", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "^footnote", - "position": { - "start": { - "line": 8, - "column": 9, - "offset": 183 - }, - "end": { - "line": 8, - "column": 18, - "offset": 192 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 8, - "column": 8, - "offset": 182 - }, - "end": { - "line": 8, - "column": 19, - "offset": 193 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 140 - }, - "end": { - "line": 8, - "column": 19, - "offset": 193 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "^abc", - "label": "^abc", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "^abc", - "position": { - "start": { - "line": 10, - "column": 2, - "offset": 196 - }, - "end": { - "line": 10, - "column": 6, - "offset": 200 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 195 - }, - "end": { - "line": 10, - "column": 7, - "offset": 201 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ": Baz baz", - "position": { - "start": { - "line": 10, - "column": 7, - "offset": 201 - }, - "end": { - "line": 10, - "column": 16, - "offset": 210 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 195 - }, - "end": { - "line": 10, - "column": 16, - "offset": 210 - }, - "indent": [] - } - }, - { - "type": "definition", - "identifier": "^xyz", - "label": "^xyz", - "title": null, - "url": "Baz", - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 212 - }, - "end": { - "line": 12, - "column": 12, - "offset": 223 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "^footnote", - "label": "^footnote", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "^footnote", - "position": { - "start": { - "line": 14, - "column": 2, - "offset": 226 - }, - "end": { - "line": 14, - "column": 11, - "offset": 235 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 225 - }, - "end": { - "line": 14, - "column": 12, - "offset": 236 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ": Some definition.", - "position": { - "start": { - "line": 14, - "column": 12, - "offset": 236 - }, - "end": { - "line": 14, - "column": 30, - "offset": 254 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 225 - }, - "end": { - "line": 14, - "column": 30, - "offset": 254 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 15, - "column": 1, - "offset": 255 - } - } -} diff --git a/test/fixtures/tree/footnote.footnotes.json b/test/fixtures/tree/footnote.footnotes.json deleted file mode 100644 index 97864b43e..000000000 --- a/test/fixtures/tree/footnote.footnotes.json +++ /dev/null @@ -1,487 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Here is some text containing a footnote", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 40, - "offset": 39 - }, - "indent": [] - } - }, - { - "type": "footnoteReference", - "identifier": "somesamplefootnote", - "label": "somesamplefootnote", - "position": { - "start": { - "line": 1, - "column": 40, - "offset": 39 - }, - "end": { - "line": 1, - "column": 61, - "offset": 60 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ". You can then continue your thought...", - "position": { - "start": { - "line": 1, - "column": 61, - "offset": 60 - }, - "end": { - "line": 1, - "column": 100, - "offset": 99 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 100, - "offset": 99 - }, - "indent": [] - } - }, - { - "type": "footnoteDefinition", - "identifier": "somesamplefootnote", - "label": "somesamplefootnote", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Here is the text of the footnote itself.", - "position": { - "start": { - "line": 3, - "column": 24, - "offset": 124 - }, - "end": { - "line": 3, - "column": 64, - "offset": 164 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 24, - "offset": 124 - }, - "end": { - "line": 3, - "column": 64, - "offset": 164 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 101 - }, - "end": { - "line": 3, - "column": 64, - "offset": 164 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Even go to a new ", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 166 - }, - "end": { - "line": 5, - "column": 18, - "offset": 183 - }, - "indent": [] - } - }, - { - "type": "linkReference", - "identifier": "paragraph", - "label": "paragraph", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "paragraph", - "position": { - "start": { - "line": 5, - "column": 19, - "offset": 184 - }, - "end": { - "line": 5, - "column": 28, - "offset": 193 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 18, - "offset": 183 - }, - "end": { - "line": 5, - "column": 29, - "offset": 194 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " and the footnotes will go to the bottom of the document", - "position": { - "start": { - "line": 5, - "column": 29, - "offset": 194 - }, - "end": { - "line": 5, - "column": 85, - "offset": 250 - }, - "indent": [] - } - }, - { - "type": "footnoteReference", - "identifier": "documentdetails", - "label": "documentdetails", - "position": { - "start": { - "line": 5, - "column": 85, - "offset": 250 - }, - "end": { - "line": 5, - "column": 103, - "offset": 268 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 103, - "offset": 268 - }, - "end": { - "line": 5, - "column": 104, - "offset": 269 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 166 - }, - "end": { - "line": 5, - "column": 104, - "offset": 269 - }, - "indent": [] - } - }, - { - "type": "footnoteDefinition", - "identifier": "documentdetails", - "label": "documentdetails", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Depending on the ", - "position": { - "start": { - "line": 7, - "column": 21, - "offset": 291 - }, - "end": { - "line": 7, - "column": 38, - "offset": 308 - }, - "indent": [] - } - }, - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "final", - "position": { - "start": { - "line": 7, - "column": 40, - "offset": 310 - }, - "end": { - "line": 7, - "column": 45, - "offset": 315 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 38, - "offset": 308 - }, - "end": { - "line": 7, - "column": 47, - "offset": 317 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " form of your document, of course. See the documentation and experiment.", - "position": { - "start": { - "line": 7, - "column": 47, - "offset": 317 - }, - "end": { - "line": 7, - "column": 119, - "offset": 389 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 21, - "offset": 291 - }, - "end": { - "line": 7, - "column": 119, - "offset": 389 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This footnote has a second ", - "position": { - "start": { - "line": 9, - "column": 5, - "offset": 395 - }, - "end": { - "line": 9, - "column": 32, - "offset": 422 - }, - "indent": [] - } - }, - { - "type": "linkReference", - "identifier": "paragraph", - "label": "paragraph", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "paragraph", - "position": { - "start": { - "line": 9, - "column": 33, - "offset": 423 - }, - "end": { - "line": 9, - "column": 42, - "offset": 432 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 32, - "offset": 422 - }, - "end": { - "line": 9, - "column": 43, - "offset": 433 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 9, - "column": 43, - "offset": 433 - }, - "end": { - "line": 9, - "column": 44, - "offset": 434 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 5, - "offset": 395 - }, - "end": { - "line": 9, - "column": 44, - "offset": 434 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 271 - }, - "end": { - "line": 9, - "column": 48, - "offset": 438 - }, - "indent": [ - 1, - 5 - ] - } - }, - { - "type": "definition", - "identifier": "paragraph", - "label": "paragraph", - "title": null, - "url": "http://example.com", - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 436 - }, - "end": { - "line": 11, - "column": 32, - "offset": 467 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 12, - "column": 1, - "offset": 468 - } - } -} diff --git a/test/fixtures/tree/footnote.json b/test/fixtures/tree/footnote.json deleted file mode 100644 index 33a6c945a..000000000 --- a/test/fixtures/tree/footnote.json +++ /dev/null @@ -1,489 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Here is some text containing a footnote", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 40, - "offset": 39 - }, - "indent": [] - } - }, - { - "type": "linkReference", - "identifier": "^somesamplefootnote", - "label": "^somesamplefootnote", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "^somesamplefootnote", - "position": { - "start": { - "line": 1, - "column": 41, - "offset": 40 - }, - "end": { - "line": 1, - "column": 60, - "offset": 59 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 40, - "offset": 39 - }, - "end": { - "line": 1, - "column": 61, - "offset": 60 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ". You can then continue your thought...", - "position": { - "start": { - "line": 1, - "column": 61, - "offset": 60 - }, - "end": { - "line": 1, - "column": 100, - "offset": 99 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 100, - "offset": 99 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "^somesamplefootnote", - "label": "^somesamplefootnote", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "^somesamplefootnote", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 102 - }, - "end": { - "line": 3, - "column": 21, - "offset": 121 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 101 - }, - "end": { - "line": 3, - "column": 22, - "offset": 122 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ": Here is the text of the footnote itself.", - "position": { - "start": { - "line": 3, - "column": 22, - "offset": 122 - }, - "end": { - "line": 3, - "column": 64, - "offset": 164 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 101 - }, - "end": { - "line": 3, - "column": 64, - "offset": 164 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Even go to a new ", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 166 - }, - "end": { - "line": 5, - "column": 18, - "offset": 183 - }, - "indent": [] - } - }, - { - "type": "linkReference", - "identifier": "paragraph", - "label": "paragraph", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "paragraph", - "position": { - "start": { - "line": 5, - "column": 19, - "offset": 184 - }, - "end": { - "line": 5, - "column": 28, - "offset": 193 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 18, - "offset": 183 - }, - "end": { - "line": 5, - "column": 29, - "offset": 194 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " and the footnotes will go to the bottom of the document", - "position": { - "start": { - "line": 5, - "column": 29, - "offset": 194 - }, - "end": { - "line": 5, - "column": 85, - "offset": 250 - }, - "indent": [] - } - }, - { - "type": "linkReference", - "identifier": "^documentdetails", - "label": "^documentdetails", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "^documentdetails", - "position": { - "start": { - "line": 5, - "column": 86, - "offset": 251 - }, - "end": { - "line": 5, - "column": 102, - "offset": 267 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 85, - "offset": 250 - }, - "end": { - "line": 5, - "column": 103, - "offset": 268 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 103, - "offset": 268 - }, - "end": { - "line": 5, - "column": 104, - "offset": 269 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 166 - }, - "end": { - "line": 5, - "column": 104, - "offset": 269 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "^documentdetails", - "label": "^documentdetails", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "^documentdetails", - "position": { - "start": { - "line": 7, - "column": 2, - "offset": 272 - }, - "end": { - "line": 7, - "column": 18, - "offset": 288 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 271 - }, - "end": { - "line": 7, - "column": 19, - "offset": 289 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ": Depending on the ", - "position": { - "start": { - "line": 7, - "column": 19, - "offset": 289 - }, - "end": { - "line": 7, - "column": 38, - "offset": 308 - }, - "indent": [] - } - }, - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "final", - "position": { - "start": { - "line": 7, - "column": 40, - "offset": 310 - }, - "end": { - "line": 7, - "column": 45, - "offset": 315 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 38, - "offset": 308 - }, - "end": { - "line": 7, - "column": 47, - "offset": 317 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " form of your document, of course. See the documentation and experiment.", - "position": { - "start": { - "line": 7, - "column": 47, - "offset": 317 - }, - "end": { - "line": 7, - "column": 119, - "offset": 389 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 271 - }, - "end": { - "line": 7, - "column": 119, - "offset": 389 - }, - "indent": [] - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "This footnote has a second [paragraph].", - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 391 - }, - "end": { - "line": 9, - "column": 44, - "offset": 434 - }, - "indent": [] - } - }, - { - "type": "definition", - "identifier": "paragraph", - "label": "paragraph", - "title": null, - "url": "http://example.com", - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 436 - }, - "end": { - "line": 11, - "column": 32, - "offset": 467 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 12, - "column": 1, - "offset": 468 - } - } -} diff --git a/test/fixtures/tree/footnote.output.footnotes.json b/test/fixtures/tree/footnote.output.footnotes.json deleted file mode 100644 index ac7fabf87..000000000 --- a/test/fixtures/tree/footnote.output.footnotes.json +++ /dev/null @@ -1,592 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Lorem ipsum dolor sit amet", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 27, - "offset": 26 - }, - "indent": [] - } - }, - { - "type": "footnoteReference", - "identifier": "1", - "label": "1", - "position": { - "start": { - "line": 1, - "column": 27, - "offset": 26 - }, - "end": { - "line": 1, - "column": 31, - "offset": 30 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 31, - "offset": 30 - }, - "end": { - "line": 1, - "column": 32, - "offset": 31 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 32, - "offset": 31 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Nulla finibus", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 33 - }, - "end": { - "line": 3, - "column": 14, - "offset": 46 - }, - "indent": [] - } - }, - { - "type": "footnoteReference", - "identifier": "2", - "label": "2", - "position": { - "start": { - "line": 3, - "column": 14, - "offset": 46 - }, - "end": { - "line": 3, - "column": 18, - "offset": 50 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " neque et diam rhoncus convallis.", - "position": { - "start": { - "line": 3, - "column": 18, - "offset": 50 - }, - "end": { - "line": 3, - "column": 51, - "offset": 83 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 33 - }, - "end": { - "line": 3, - "column": 51, - "offset": 83 - }, - "indent": [] - } - }, - { - "type": "footnoteDefinition", - "identifier": "1", - "label": "1", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Consectetur ", - "position": { - "start": { - "line": 5, - "column": 7, - "offset": 91 - }, - "end": { - "line": 5, - "column": 19, - "offset": 103 - }, - "indent": [] - } - }, - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "adipiscing", - "position": { - "start": { - "line": 5, - "column": 21, - "offset": 105 - }, - "end": { - "line": 5, - "column": 31, - "offset": 115 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 19, - "offset": 103 - }, - "end": { - "line": 5, - "column": 33, - "offset": 117 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " elit. Praesent dictum purus ullamcorper ligula semper pellentesque", - "position": { - "start": { - "line": 5, - "column": 33, - "offset": 117 - }, - "end": { - "line": 5, - "column": 100, - "offset": 184 - }, - "indent": [] - } - }, - { - "type": "footnoteReference", - "identifier": "3", - "label": "3", - "position": { - "start": { - "line": 5, - "column": 100, - "offset": 184 - }, - "end": { - "line": 5, - "column": 104, - "offset": 188 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 104, - "offset": 188 - }, - "end": { - "line": 5, - "column": 105, - "offset": 189 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 7, - "offset": 91 - }, - "end": { - "line": 5, - "column": 105, - "offset": 189 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Containing a list.", - "position": { - "start": { - "line": 7, - "column": 9, - "offset": 199 - }, - "end": { - "line": 7, - "column": 27, - "offset": 217 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 9, - "offset": 199 - }, - "end": { - "line": 7, - "column": 27, - "offset": 217 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 5, - "offset": 195 - }, - "end": { - "line": 7, - "column": 27, - "offset": 217 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 5, - "offset": 195 - }, - "end": { - "line": 7, - "column": 27, - "offset": 217 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 85 - }, - "end": { - "line": 7, - "column": 31, - "offset": 221 - }, - "indent": [ - 1, - 5 - ] - } - }, - { - "type": "footnoteDefinition", - "identifier": "2", - "label": "2", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Nam dictum sapien nec sem ultrices fermentum. Nulla ", - "position": { - "start": { - "line": 9, - "column": 7, - "offset": 225 - }, - "end": { - "line": 9, - "column": 59, - "offset": 277 - }, - "indent": [] - } - }, - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "facilisi", - "position": { - "start": { - "line": 9, - "column": 61, - "offset": 279 - }, - "end": { - "line": 9, - "column": 69, - "offset": 287 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 59, - "offset": 277 - }, - "end": { - "line": 9, - "column": 71, - "offset": 289 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ". In et feugiat massa.", - "position": { - "start": { - "line": 9, - "column": 71, - "offset": 289 - }, - "end": { - "line": 9, - "column": 93, - "offset": 311 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 7, - "offset": 225 - }, - "end": { - "line": 9, - "column": 93, - "offset": 311 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 219 - }, - "end": { - "line": 9, - "column": 93, - "offset": 311 - }, - "indent": [] - } - }, - { - "type": "footnoteDefinition", - "identifier": "3", - "label": "3", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Nunc dapibus ipsum ut mi ", - "position": { - "start": { - "line": 11, - "column": 7, - "offset": 319 - }, - "end": { - "line": 11, - "column": 32, - "offset": 344 - }, - "indent": [] - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "ultrices", - "position": { - "start": { - "line": 11, - "column": 33, - "offset": 345 - }, - "end": { - "line": 11, - "column": 41, - "offset": 353 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 32, - "offset": 344 - }, - "end": { - "line": 11, - "column": 42, - "offset": 354 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ", non euismod velit pretium.", - "position": { - "start": { - "line": 11, - "column": 42, - "offset": 354 - }, - "end": { - "line": 11, - "column": 70, - "offset": 382 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 7, - "offset": 319 - }, - "end": { - "line": 11, - "column": 70, - "offset": 382 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 313 - }, - "end": { - "line": 11, - "column": 70, - "offset": 382 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 12, - "column": 1, - "offset": 383 - } - } -} diff --git a/test/fixtures/tree/list-continuation.commonmark.footnotes.json b/test/fixtures/tree/list-continuation.commonmark.footnotes.json deleted file mode 100644 index d4e475f15..000000000 --- a/test/fixtures/tree/list-continuation.commonmark.footnotes.json +++ /dev/null @@ -1,540 +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 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 4, - "offset": 3 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 2, - "column": 1, - "offset": 7 - }, - "end": { - "line": 2, - "column": 4, - "offset": 10 - }, - "indent": [] - } - }, - { - "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 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 4, - "offset": 16 - }, - "end": { - "line": 5, - "column": 7, - "offset": 19 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 13 - }, - "end": { - "line": 5, - "column": 7, - "offset": 19 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 13 - }, - "end": { - "line": 5, - "column": 7, - "offset": 19 - }, - "indent": [] - } - }, - { - "type": "code", - "lang": "js", - "meta": null, - "value": "code();", - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 20 - }, - "end": { - "line": 8, - "column": 4, - "offset": 37 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "foo", - "label": "foo", - "referenceType": "collapsed", - "children": [ - { - "type": "text", - "value": "foo", - "position": { - "start": { - "line": 11, - "column": 5, - "offset": 44 - }, - "end": { - "line": 11, - "column": 8, - "offset": 47 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 4, - "offset": 43 - }, - "end": { - "line": 11, - "column": 11, - "offset": 50 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\n", - "position": { - "start": { - "line": 11, - "column": 11, - "offset": 50 - }, - "end": { - "line": 12, - "column": 1, - "offset": 51 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "linkReference", - "identifier": "foo", - "label": "foo", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "foo", - "position": { - "start": { - "line": 12, - "column": 2, - "offset": 52 - }, - "end": { - "line": 12, - "column": 5, - "offset": 55 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 51 - }, - "end": { - "line": 12, - "column": 6, - "offset": 56 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ": ", - "position": { - "start": { - "line": 12, - "column": 6, - "offset": 56 - }, - "end": { - "line": 12, - "column": 8, - "offset": 58 - }, - "indent": [] - } - }, - { - "type": "link", - "title": null, - "url": "http://google.com", - "children": [ - { - "type": "text", - "value": "http://google.com", - "position": { - "start": { - "line": 12, - "column": 8, - "offset": 58 - }, - "end": { - "line": 12, - "column": 25, - "offset": 75 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 8, - "offset": 58 - }, - "end": { - "line": 12, - "column": 25, - "offset": 75 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 4, - "offset": 43 - }, - "end": { - "line": 12, - "column": 25, - "offset": 75 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 40 - }, - "end": { - "line": 13, - "column": 1, - "offset": 76 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "footnoteReference", - "identifier": "foo", - "label": "foo", - "position": { - "start": { - "line": 15, - "column": 4, - "offset": 81 - }, - "end": { - "line": 15, - "column": 10, - "offset": 87 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\n", - "position": { - "start": { - "line": 15, - "column": 10, - "offset": 87 - }, - "end": { - "line": 16, - "column": 1, - "offset": 88 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "footnoteReference", - "identifier": "foo", - "label": "foo", - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 88 - }, - "end": { - "line": 16, - "column": 7, - "offset": 94 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ": bar baz.", - "position": { - "start": { - "line": 16, - "column": 7, - "offset": 94 - }, - "end": { - "line": 16, - "column": 17, - "offset": 104 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 4, - "offset": 81 - }, - "end": { - "line": 16, - "column": 17, - "offset": 104 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 78 - }, - "end": { - "line": 16, - "column": 17, - "offset": 104 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 40 - }, - "end": { - "line": 16, - "column": 17, - "offset": 104 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 17, - "column": 1, - "offset": 105 - } - } -} diff --git a/test/fixtures/tree/list-continuation.commonmark.footnotes.pedantic.json b/test/fixtures/tree/list-continuation.commonmark.footnotes.pedantic.json deleted file mode 100644 index 4c4a79e3d..000000000 --- a/test/fixtures/tree/list-continuation.commonmark.footnotes.pedantic.json +++ /dev/null @@ -1,503 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "list", - "ordered": true, - "start": 1, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "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 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 4, - "offset": 3 - }, - "end": { - "line": 2, - "column": 4, - "offset": 10 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 3, - "column": 1, - "offset": 11 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "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 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 4, - "offset": 16 - }, - "end": { - "line": 5, - "column": 7, - "offset": 19 - }, - "indent": [] - } - }, - { - "type": "code", - "lang": "js", - "meta": null, - "value": "code();", - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 20 - }, - "end": { - "line": 8, - "column": 4, - "offset": 37 - }, - "indent": [ - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 13 - }, - "end": { - "line": 9, - "column": 1, - "offset": 38 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "foo", - "label": "foo", - "referenceType": "collapsed", - "children": [ - { - "type": "text", - "value": "foo", - "position": { - "start": { - "line": 11, - "column": 5, - "offset": 44 - }, - "end": { - "line": 11, - "column": 8, - "offset": 47 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 4, - "offset": 43 - }, - "end": { - "line": 11, - "column": 11, - "offset": 50 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\n", - "position": { - "start": { - "line": 11, - "column": 11, - "offset": 50 - }, - "end": { - "line": 12, - "column": 1, - "offset": 51 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "linkReference", - "identifier": "foo", - "label": "foo", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "foo", - "position": { - "start": { - "line": 12, - "column": 2, - "offset": 52 - }, - "end": { - "line": 12, - "column": 5, - "offset": 55 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 51 - }, - "end": { - "line": 12, - "column": 6, - "offset": 56 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ": ", - "position": { - "start": { - "line": 12, - "column": 6, - "offset": 56 - }, - "end": { - "line": 12, - "column": 8, - "offset": 58 - }, - "indent": [] - } - }, - { - "type": "link", - "title": null, - "url": "http://google.com", - "children": [ - { - "type": "text", - "value": "http://google.com", - "position": { - "start": { - "line": 12, - "column": 8, - "offset": 58 - }, - "end": { - "line": 12, - "column": 25, - "offset": 75 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 8, - "offset": 58 - }, - "end": { - "line": 12, - "column": 25, - "offset": 75 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 4, - "offset": 43 - }, - "end": { - "line": 12, - "column": 25, - "offset": 75 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 40 - }, - "end": { - "line": 13, - "column": 1, - "offset": 76 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "footnoteReference", - "identifier": "foo", - "label": "foo", - "position": { - "start": { - "line": 15, - "column": 4, - "offset": 81 - }, - "end": { - "line": 15, - "column": 10, - "offset": 87 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\n", - "position": { - "start": { - "line": 15, - "column": 10, - "offset": 87 - }, - "end": { - "line": 16, - "column": 1, - "offset": 88 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "footnoteReference", - "identifier": "foo", - "label": "foo", - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 88 - }, - "end": { - "line": 16, - "column": 7, - "offset": 94 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ": bar baz.", - "position": { - "start": { - "line": 16, - "column": 7, - "offset": 94 - }, - "end": { - "line": 16, - "column": 17, - "offset": 104 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 4, - "offset": 81 - }, - "end": { - "line": 16, - "column": 17, - "offset": 104 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 78 - }, - "end": { - "line": 16, - "column": 17, - "offset": 104 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 16, - "column": 17, - "offset": 104 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 17, - "column": 1, - "offset": 105 - } - } -} diff --git a/test/fixtures/tree/list-continuation.footnotes.json b/test/fixtures/tree/list-continuation.footnotes.json deleted file mode 100644 index 3592486b9..000000000 --- a/test/fixtures/tree/list-continuation.footnotes.json +++ /dev/null @@ -1,456 +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 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 4, - "offset": 3 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 2, - "column": 1, - "offset": 7 - }, - "end": { - "line": 2, - "column": 4, - "offset": 10 - }, - "indent": [] - } - }, - { - "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 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 4, - "offset": 16 - }, - "end": { - "line": 5, - "column": 7, - "offset": 19 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 13 - }, - "end": { - "line": 5, - "column": 7, - "offset": 19 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 13 - }, - "end": { - "line": 5, - "column": 7, - "offset": 19 - }, - "indent": [] - } - }, - { - "type": "code", - "lang": "js", - "meta": null, - "value": "code();", - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 20 - }, - "end": { - "line": 8, - "column": 4, - "offset": 37 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "foo", - "label": "foo", - "referenceType": "collapsed", - "children": [ - { - "type": "text", - "value": "foo", - "position": { - "start": { - "line": 11, - "column": 5, - "offset": 44 - }, - "end": { - "line": 11, - "column": 8, - "offset": 47 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 4, - "offset": 43 - }, - "end": { - "line": 11, - "column": 11, - "offset": 50 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 4, - "offset": 43 - }, - "end": { - "line": 11, - "column": 11, - "offset": 50 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 40 - }, - "end": { - "line": 11, - "column": 11, - "offset": 50 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 40 - }, - "end": { - "line": 11, - "column": 11, - "offset": 50 - }, - "indent": [] - } - }, - { - "type": "definition", - "identifier": "foo", - "label": "foo", - "title": null, - "url": "http://google.com", - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 51 - }, - "end": { - "line": 12, - "column": 25, - "offset": 75 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "footnoteReference", - "identifier": "foo", - "label": "foo", - "position": { - "start": { - "line": 15, - "column": 4, - "offset": 81 - }, - "end": { - "line": 15, - "column": 10, - "offset": 87 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 4, - "offset": 81 - }, - "end": { - "line": 15, - "column": 10, - "offset": 87 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 78 - }, - "end": { - "line": 15, - "column": 10, - "offset": 87 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 78 - }, - "end": { - "line": 15, - "column": 10, - "offset": 87 - }, - "indent": [] - } - }, - { - "type": "footnoteDefinition", - "identifier": "foo", - "label": "foo", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "bar baz.", - "position": { - "start": { - "line": 16, - "column": 9, - "offset": 96 - }, - "end": { - "line": 16, - "column": 17, - "offset": 104 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 9, - "offset": 96 - }, - "end": { - "line": 16, - "column": 17, - "offset": 104 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 88 - }, - "end": { - "line": 16, - "column": 17, - "offset": 104 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 17, - "column": 1, - "offset": 105 - } - } -} diff --git a/test/fixtures/tree/list-continuation.footnotes.pedantic.json b/test/fixtures/tree/list-continuation.footnotes.pedantic.json deleted file mode 100644 index d836fc332..000000000 --- a/test/fixtures/tree/list-continuation.footnotes.pedantic.json +++ /dev/null @@ -1,455 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "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 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 4, - "offset": 3 - }, - "end": { - "line": 2, - "column": 4, - "offset": 10 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 4, - "offset": 10 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 4, - "offset": 10 - }, - "indent": [ - 1 - ] - } - }, - { - "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 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 4, - "offset": 16 - }, - "end": { - "line": 5, - "column": 7, - "offset": 19 - }, - "indent": [] - } - }, - { - "type": "code", - "lang": "js", - "meta": null, - "value": "code();", - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 20 - }, - "end": { - "line": 8, - "column": 4, - "offset": 37 - }, - "indent": [ - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 13 - }, - "end": { - "line": 8, - "column": 4, - "offset": 37 - }, - "indent": [ - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 13 - }, - "end": { - "line": 8, - "column": 4, - "offset": 37 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "foo", - "label": "foo", - "referenceType": "collapsed", - "children": [ - { - "type": "text", - "value": "foo", - "position": { - "start": { - "line": 11, - "column": 5, - "offset": 44 - }, - "end": { - "line": 11, - "column": 8, - "offset": 47 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 4, - "offset": 43 - }, - "end": { - "line": 11, - "column": 11, - "offset": 50 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 4, - "offset": 43 - }, - "end": { - "line": 11, - "column": 11, - "offset": 50 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 40 - }, - "end": { - "line": 11, - "column": 11, - "offset": 50 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 40 - }, - "end": { - "line": 11, - "column": 11, - "offset": 50 - }, - "indent": [] - } - }, - { - "type": "definition", - "identifier": "foo", - "label": "foo", - "title": null, - "url": "http://google.com", - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 51 - }, - "end": { - "line": 12, - "column": 25, - "offset": 75 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "footnoteReference", - "identifier": "foo", - "label": "foo", - "position": { - "start": { - "line": 15, - "column": 4, - "offset": 81 - }, - "end": { - "line": 15, - "column": 10, - "offset": 87 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 4, - "offset": 81 - }, - "end": { - "line": 15, - "column": 10, - "offset": 87 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 78 - }, - "end": { - "line": 15, - "column": 10, - "offset": 87 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 78 - }, - "end": { - "line": 15, - "column": 10, - "offset": 87 - }, - "indent": [] - } - }, - { - "type": "footnoteDefinition", - "identifier": "foo", - "label": "foo", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "bar baz.", - "position": { - "start": { - "line": 16, - "column": 9, - "offset": 96 - }, - "end": { - "line": 16, - "column": 17, - "offset": 104 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 9, - "offset": 96 - }, - "end": { - "line": 16, - "column": 17, - "offset": 104 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 88 - }, - "end": { - "line": 16, - "column": 17, - "offset": 104 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 17, - "column": 1, - "offset": 105 - } - } -} diff --git a/test/fixtures/tree/list-continuation.nogfm.commonmark.footnotes.json b/test/fixtures/tree/list-continuation.nogfm.commonmark.footnotes.json deleted file mode 100644 index acf598ec3..000000000 --- a/test/fixtures/tree/list-continuation.nogfm.commonmark.footnotes.json +++ /dev/null @@ -1,497 +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 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 4, - "offset": 3 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 2, - "column": 1, - "offset": 7 - }, - "end": { - "line": 2, - "column": 4, - "offset": 10 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo\n", - "position": { - "start": { - "line": 5, - "column": 4, - "offset": 16 - }, - "end": { - "line": 6, - "column": 1, - "offset": 20 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "inlineCode", - "value": "js\ncode();\n", - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 20 - }, - "end": { - "line": 8, - "column": 4, - "offset": 37 - }, - "indent": [ - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 4, - "offset": 16 - }, - "end": { - "line": 8, - "column": 4, - "offset": 37 - }, - "indent": [ - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 13 - }, - "end": { - "line": 9, - "column": 1, - "offset": 38 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "foo", - "label": "foo", - "referenceType": "collapsed", - "children": [ - { - "type": "text", - "value": "foo", - "position": { - "start": { - "line": 11, - "column": 5, - "offset": 44 - }, - "end": { - "line": 11, - "column": 8, - "offset": 47 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 4, - "offset": 43 - }, - "end": { - "line": 11, - "column": 11, - "offset": 50 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\n", - "position": { - "start": { - "line": 11, - "column": 11, - "offset": 50 - }, - "end": { - "line": 12, - "column": 1, - "offset": 51 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "linkReference", - "identifier": "foo", - "label": "foo", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "foo", - "position": { - "start": { - "line": 12, - "column": 2, - "offset": 52 - }, - "end": { - "line": 12, - "column": 5, - "offset": 55 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 51 - }, - "end": { - "line": 12, - "column": 6, - "offset": 56 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ": http://google.com", - "position": { - "start": { - "line": 12, - "column": 6, - "offset": 56 - }, - "end": { - "line": 12, - "column": 25, - "offset": 75 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 4, - "offset": 43 - }, - "end": { - "line": 12, - "column": 25, - "offset": 75 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 40 - }, - "end": { - "line": 13, - "column": 1, - "offset": 76 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "footnoteReference", - "identifier": "foo", - "label": "foo", - "position": { - "start": { - "line": 15, - "column": 4, - "offset": 81 - }, - "end": { - "line": 15, - "column": 10, - "offset": 87 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\n", - "position": { - "start": { - "line": 15, - "column": 10, - "offset": 87 - }, - "end": { - "line": 16, - "column": 1, - "offset": 88 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "footnoteReference", - "identifier": "foo", - "label": "foo", - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 88 - }, - "end": { - "line": 16, - "column": 7, - "offset": 94 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ": bar baz.", - "position": { - "start": { - "line": 16, - "column": 7, - "offset": 94 - }, - "end": { - "line": 16, - "column": 17, - "offset": 104 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 4, - "offset": 81 - }, - "end": { - "line": 16, - "column": 17, - "offset": 104 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 78 - }, - "end": { - "line": 16, - "column": 17, - "offset": 104 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 13 - }, - "end": { - "line": 16, - "column": 17, - "offset": 104 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 17, - "column": 1, - "offset": 105 - } - } -} diff --git a/test/fixtures/tree/list-continuation.nogfm.commonmark.footnotes.pedantic.json b/test/fixtures/tree/list-continuation.nogfm.commonmark.footnotes.pedantic.json deleted file mode 100644 index 80db81757..000000000 --- a/test/fixtures/tree/list-continuation.nogfm.commonmark.footnotes.pedantic.json +++ /dev/null @@ -1,470 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "list", - "ordered": true, - "start": 1, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "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 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 4, - "offset": 3 - }, - "end": { - "line": 2, - "column": 4, - "offset": 10 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 3, - "column": 1, - "offset": 11 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo\n", - "position": { - "start": { - "line": 5, - "column": 4, - "offset": 16 - }, - "end": { - "line": 6, - "column": 1, - "offset": 20 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "inlineCode", - "value": "js\ncode();\n", - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 20 - }, - "end": { - "line": 8, - "column": 4, - "offset": 37 - }, - "indent": [ - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 4, - "offset": 16 - }, - "end": { - "line": 8, - "column": 4, - "offset": 37 - }, - "indent": [ - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 13 - }, - "end": { - "line": 9, - "column": 1, - "offset": 38 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "foo", - "label": "foo", - "referenceType": "collapsed", - "children": [ - { - "type": "text", - "value": "foo", - "position": { - "start": { - "line": 11, - "column": 5, - "offset": 44 - }, - "end": { - "line": 11, - "column": 8, - "offset": 47 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 4, - "offset": 43 - }, - "end": { - "line": 11, - "column": 11, - "offset": 50 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\n", - "position": { - "start": { - "line": 11, - "column": 11, - "offset": 50 - }, - "end": { - "line": 12, - "column": 1, - "offset": 51 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "linkReference", - "identifier": "foo", - "label": "foo", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "foo", - "position": { - "start": { - "line": 12, - "column": 2, - "offset": 52 - }, - "end": { - "line": 12, - "column": 5, - "offset": 55 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 51 - }, - "end": { - "line": 12, - "column": 6, - "offset": 56 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ": http://google.com", - "position": { - "start": { - "line": 12, - "column": 6, - "offset": 56 - }, - "end": { - "line": 12, - "column": 25, - "offset": 75 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 4, - "offset": 43 - }, - "end": { - "line": 12, - "column": 25, - "offset": 75 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 40 - }, - "end": { - "line": 13, - "column": 1, - "offset": 76 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "footnoteReference", - "identifier": "foo", - "label": "foo", - "position": { - "start": { - "line": 15, - "column": 4, - "offset": 81 - }, - "end": { - "line": 15, - "column": 10, - "offset": 87 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\n", - "position": { - "start": { - "line": 15, - "column": 10, - "offset": 87 - }, - "end": { - "line": 16, - "column": 1, - "offset": 88 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "footnoteReference", - "identifier": "foo", - "label": "foo", - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 88 - }, - "end": { - "line": 16, - "column": 7, - "offset": 94 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ": bar baz.", - "position": { - "start": { - "line": 16, - "column": 7, - "offset": 94 - }, - "end": { - "line": 16, - "column": 17, - "offset": 104 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 4, - "offset": 81 - }, - "end": { - "line": 16, - "column": 17, - "offset": 104 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 78 - }, - "end": { - "line": 16, - "column": 17, - "offset": 104 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 16, - "column": 17, - "offset": 104 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 17, - "column": 1, - "offset": 105 - } - } -} diff --git a/test/fixtures/tree/list-continuation.nogfm.footnotes.json b/test/fixtures/tree/list-continuation.nogfm.footnotes.json deleted file mode 100644 index 9c4610689..000000000 --- a/test/fixtures/tree/list-continuation.nogfm.footnotes.json +++ /dev/null @@ -1,468 +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 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 4, - "offset": 3 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 2, - "column": 1, - "offset": 7 - }, - "end": { - "line": 2, - "column": 4, - "offset": 10 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo\n", - "position": { - "start": { - "line": 5, - "column": 4, - "offset": 16 - }, - "end": { - "line": 6, - "column": 1, - "offset": 20 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "inlineCode", - "value": "js\ncode();\n", - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 20 - }, - "end": { - "line": 8, - "column": 4, - "offset": 37 - }, - "indent": [ - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 4, - "offset": 16 - }, - "end": { - "line": 8, - "column": 4, - "offset": 37 - }, - "indent": [ - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 13 - }, - "end": { - "line": 8, - "column": 4, - "offset": 37 - }, - "indent": [ - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 13 - }, - "end": { - "line": 8, - "column": 4, - "offset": 37 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "foo", - "label": "foo", - "referenceType": "collapsed", - "children": [ - { - "type": "text", - "value": "foo", - "position": { - "start": { - "line": 11, - "column": 5, - "offset": 44 - }, - "end": { - "line": 11, - "column": 8, - "offset": 47 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 4, - "offset": 43 - }, - "end": { - "line": 11, - "column": 11, - "offset": 50 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 4, - "offset": 43 - }, - "end": { - "line": 11, - "column": 11, - "offset": 50 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 40 - }, - "end": { - "line": 11, - "column": 11, - "offset": 50 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 40 - }, - "end": { - "line": 11, - "column": 11, - "offset": 50 - }, - "indent": [] - } - }, - { - "type": "definition", - "identifier": "foo", - "label": "foo", - "title": null, - "url": "http://google.com", - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 51 - }, - "end": { - "line": 12, - "column": 25, - "offset": 75 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "footnoteReference", - "identifier": "foo", - "label": "foo", - "position": { - "start": { - "line": 15, - "column": 4, - "offset": 81 - }, - "end": { - "line": 15, - "column": 10, - "offset": 87 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 4, - "offset": 81 - }, - "end": { - "line": 15, - "column": 10, - "offset": 87 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 78 - }, - "end": { - "line": 15, - "column": 10, - "offset": 87 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 78 - }, - "end": { - "line": 15, - "column": 10, - "offset": 87 - }, - "indent": [] - } - }, - { - "type": "footnoteDefinition", - "identifier": "foo", - "label": "foo", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "bar baz.", - "position": { - "start": { - "line": 16, - "column": 9, - "offset": 96 - }, - "end": { - "line": 16, - "column": 17, - "offset": 104 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 9, - "offset": 96 - }, - "end": { - "line": 16, - "column": 17, - "offset": 104 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 88 - }, - "end": { - "line": 16, - "column": 17, - "offset": 104 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 17, - "column": 1, - "offset": 105 - } - } -} diff --git a/test/fixtures/tree/list-continuation.nogfm.footnotes.pedantic.json b/test/fixtures/tree/list-continuation.nogfm.footnotes.pedantic.json deleted file mode 100644 index 26c86f099..000000000 --- a/test/fixtures/tree/list-continuation.nogfm.footnotes.pedantic.json +++ /dev/null @@ -1,459 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "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 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 4, - "offset": 3 - }, - "end": { - "line": 2, - "column": 4, - "offset": 10 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 4, - "offset": 10 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 4, - "offset": 10 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo\n", - "position": { - "start": { - "line": 5, - "column": 4, - "offset": 16 - }, - "end": { - "line": 6, - "column": 1, - "offset": 20 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "inlineCode", - "value": "js\ncode();\n", - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 20 - }, - "end": { - "line": 8, - "column": 4, - "offset": 37 - }, - "indent": [ - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 4, - "offset": 16 - }, - "end": { - "line": 8, - "column": 4, - "offset": 37 - }, - "indent": [ - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 13 - }, - "end": { - "line": 8, - "column": 4, - "offset": 37 - }, - "indent": [ - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 13 - }, - "end": { - "line": 8, - "column": 4, - "offset": 37 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "foo", - "label": "foo", - "referenceType": "collapsed", - "children": [ - { - "type": "text", - "value": "foo", - "position": { - "start": { - "line": 11, - "column": 5, - "offset": 44 - }, - "end": { - "line": 11, - "column": 8, - "offset": 47 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 4, - "offset": 43 - }, - "end": { - "line": 11, - "column": 11, - "offset": 50 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 4, - "offset": 43 - }, - "end": { - "line": 11, - "column": 11, - "offset": 50 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 40 - }, - "end": { - "line": 11, - "column": 11, - "offset": 50 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 40 - }, - "end": { - "line": 11, - "column": 11, - "offset": 50 - }, - "indent": [] - } - }, - { - "type": "definition", - "identifier": "foo", - "label": "foo", - "title": null, - "url": "http://google.com", - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 51 - }, - "end": { - "line": 12, - "column": 25, - "offset": 75 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "footnoteReference", - "identifier": "foo", - "label": "foo", - "position": { - "start": { - "line": 15, - "column": 4, - "offset": 81 - }, - "end": { - "line": 15, - "column": 10, - "offset": 87 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 4, - "offset": 81 - }, - "end": { - "line": 15, - "column": 10, - "offset": 87 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 78 - }, - "end": { - "line": 15, - "column": 10, - "offset": 87 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 78 - }, - "end": { - "line": 15, - "column": 10, - "offset": 87 - }, - "indent": [] - } - }, - { - "type": "footnoteDefinition", - "identifier": "foo", - "label": "foo", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "bar baz.", - "position": { - "start": { - "line": 16, - "column": 9, - "offset": 96 - }, - "end": { - "line": 16, - "column": 17, - "offset": 104 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 9, - "offset": 96 - }, - "end": { - "line": 16, - "column": 17, - "offset": 104 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 88 - }, - "end": { - "line": 16, - "column": 17, - "offset": 104 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 17, - "column": 1, - "offset": 105 - } - } -} diff --git a/test/fixtures/tree/nested-references.commonmark.footnotes.json b/test/fixtures/tree/nested-references.commonmark.footnotes.json deleted file mode 100644 index 939ede909..000000000 --- a/test/fixtures/tree/nested-references.commonmark.footnotes.json +++ /dev/null @@ -1,389 +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 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 31, - "offset": 30 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "baz", - "label": "baz", - "referenceType": "full", - "children": [ - { - "type": "imageReference", - "identifier": "bar", - "label": "bar", - "referenceType": "full", - "alt": "Foo", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 33 - }, - "end": { - "line": 3, - "column": 13, - "offset": 44 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 32 - }, - "end": { - "line": 3, - "column": 19, - "offset": 50 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 32 - }, - "end": { - "line": 3, - "column": 19, - "offset": 50 - }, - "indent": [] - } - }, - { - "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 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 52 - }, - "end": { - "line": 5, - "column": 34, - "offset": 85 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "baz", - "label": "baz", - "referenceType": "full", - "children": [ - { - "type": "text", - "value": "[Foo][bar]", - "position": { - "start": { - "line": 7, - "column": 2, - "offset": 88 - }, - "end": { - "line": 7, - "column": 12, - "offset": 98 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 87 - }, - "end": { - "line": 7, - "column": 18, - "offset": 104 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 87 - }, - "end": { - "line": 7, - "column": 18, - "offset": 104 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This nested footnote not work:", - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 106 - }, - "end": { - "line": 9, - "column": 31, - "offset": 136 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 106 - }, - "end": { - "line": 9, - "column": 31, - "offset": 136 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "baz", - "label": "baz", - "referenceType": "full", - "children": [ - { - "type": "footnoteReference", - "identifier": "foo", - "label": "foo", - "position": { - "start": { - "line": 11, - "column": 2, - "offset": 139 - }, - "end": { - "line": 11, - "column": 8, - "offset": 145 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 138 - }, - "end": { - "line": 11, - "column": 14, - "offset": 151 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 138 - }, - "end": { - "line": 11, - "column": 14, - "offset": 151 - }, - "indent": [] - } - }, - { - "type": "definition", - "identifier": "bar", - "label": "bar", - "title": "bar", - "url": "https://bar.com", - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 153 - }, - "end": { - "line": 13, - "column": 29, - "offset": 181 - }, - "indent": [] - } - }, - { - "type": "definition", - "identifier": "baz", - "label": "baz", - "title": "baz", - "url": "https://baz.com", - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 182 - }, - "end": { - "line": 14, - "column": 29, - "offset": 210 - }, - "indent": [] - } - }, - { - "type": "footnoteDefinition", - "identifier": "foo", - "label": "foo", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "A footnote.", - "position": { - "start": { - "line": 16, - "column": 9, - "offset": 220 - }, - "end": { - "line": 16, - "column": 20, - "offset": 231 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 9, - "offset": 220 - }, - "end": { - "line": 16, - "column": 20, - "offset": 231 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 212 - }, - "end": { - "line": 16, - "column": 20, - "offset": 231 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 17, - "column": 1, - "offset": 232 - } - } -} diff --git a/test/fixtures/tree/nested-references.commonmark.json b/test/fixtures/tree/nested-references.commonmark.json index 284918b2c..de84e4cad 100644 --- a/test/fixtures/tree/nested-references.commonmark.json +++ b/test/fixtures/tree/nested-references.commonmark.json @@ -186,97 +186,6 @@ "indent": [] } }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This nested footnote not work:", - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 106 - }, - "end": { - "line": 9, - "column": 31, - "offset": 136 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 106 - }, - "end": { - "line": 9, - "column": 31, - "offset": 136 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "baz", - "label": "baz", - "referenceType": "full", - "children": [ - { - "type": "text", - "value": "[^foo]", - "position": { - "start": { - "line": 11, - "column": 2, - "offset": 139 - }, - "end": { - "line": 11, - "column": 8, - "offset": 145 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 138 - }, - "end": { - "line": 11, - "column": 14, - "offset": 151 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 138 - }, - "end": { - "line": 11, - "column": 14, - "offset": 151 - }, - "indent": [] - } - }, { "type": "definition", "identifier": "bar", @@ -285,14 +194,14 @@ "url": "https://bar.com", "position": { "start": { - "line": 13, + "line": 9, "column": 1, - "offset": 153 + "offset": 106 }, "end": { - "line": 13, + "line": 9, "column": 29, - "offset": 181 + "offset": 134 }, "indent": [] } @@ -305,87 +214,14 @@ "url": "https://baz.com", "position": { "start": { - "line": 14, + "line": 10, "column": 1, - "offset": 182 + "offset": 135 }, "end": { - "line": 14, + "line": 10, "column": 29, - "offset": 210 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "^foo", - "label": "^foo", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "^foo", - "position": { - "start": { - "line": 16, - "column": 2, - "offset": 213 - }, - "end": { - "line": 16, - "column": 6, - "offset": 217 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 212 - }, - "end": { - "line": 16, - "column": 7, - "offset": 218 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ": A footnote.", - "position": { - "start": { - "line": 16, - "column": 7, - "offset": 218 - }, - "end": { - "line": 16, - "column": 20, - "offset": 231 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 212 - }, - "end": { - "line": 16, - "column": 20, - "offset": 231 + "offset": 163 }, "indent": [] } @@ -398,9 +234,9 @@ "offset": 0 }, "end": { - "line": 17, + "line": 11, "column": 1, - "offset": 232 + "offset": 164 } } } diff --git a/test/fixtures/tree/nested-references.footnotes.json b/test/fixtures/tree/nested-references.footnotes.json deleted file mode 100644 index 939ede909..000000000 --- a/test/fixtures/tree/nested-references.footnotes.json +++ /dev/null @@ -1,389 +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 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 31, - "offset": 30 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "baz", - "label": "baz", - "referenceType": "full", - "children": [ - { - "type": "imageReference", - "identifier": "bar", - "label": "bar", - "referenceType": "full", - "alt": "Foo", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 33 - }, - "end": { - "line": 3, - "column": 13, - "offset": 44 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 32 - }, - "end": { - "line": 3, - "column": 19, - "offset": 50 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 32 - }, - "end": { - "line": 3, - "column": 19, - "offset": 50 - }, - "indent": [] - } - }, - { - "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 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 52 - }, - "end": { - "line": 5, - "column": 34, - "offset": 85 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "baz", - "label": "baz", - "referenceType": "full", - "children": [ - { - "type": "text", - "value": "[Foo][bar]", - "position": { - "start": { - "line": 7, - "column": 2, - "offset": 88 - }, - "end": { - "line": 7, - "column": 12, - "offset": 98 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 87 - }, - "end": { - "line": 7, - "column": 18, - "offset": 104 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 87 - }, - "end": { - "line": 7, - "column": 18, - "offset": 104 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This nested footnote not work:", - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 106 - }, - "end": { - "line": 9, - "column": 31, - "offset": 136 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 106 - }, - "end": { - "line": 9, - "column": 31, - "offset": 136 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "baz", - "label": "baz", - "referenceType": "full", - "children": [ - { - "type": "footnoteReference", - "identifier": "foo", - "label": "foo", - "position": { - "start": { - "line": 11, - "column": 2, - "offset": 139 - }, - "end": { - "line": 11, - "column": 8, - "offset": 145 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 138 - }, - "end": { - "line": 11, - "column": 14, - "offset": 151 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 138 - }, - "end": { - "line": 11, - "column": 14, - "offset": 151 - }, - "indent": [] - } - }, - { - "type": "definition", - "identifier": "bar", - "label": "bar", - "title": "bar", - "url": "https://bar.com", - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 153 - }, - "end": { - "line": 13, - "column": 29, - "offset": 181 - }, - "indent": [] - } - }, - { - "type": "definition", - "identifier": "baz", - "label": "baz", - "title": "baz", - "url": "https://baz.com", - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 182 - }, - "end": { - "line": 14, - "column": 29, - "offset": 210 - }, - "indent": [] - } - }, - { - "type": "footnoteDefinition", - "identifier": "foo", - "label": "foo", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "A footnote.", - "position": { - "start": { - "line": 16, - "column": 9, - "offset": 220 - }, - "end": { - "line": 16, - "column": 20, - "offset": 231 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 9, - "offset": 220 - }, - "end": { - "line": 16, - "column": 20, - "offset": 231 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 212 - }, - "end": { - "line": 16, - "column": 20, - "offset": 231 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 17, - "column": 1, - "offset": 232 - } - } -} diff --git a/test/fixtures/tree/nested-references.json b/test/fixtures/tree/nested-references.json index 284918b2c..de84e4cad 100644 --- a/test/fixtures/tree/nested-references.json +++ b/test/fixtures/tree/nested-references.json @@ -186,97 +186,6 @@ "indent": [] } }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This nested footnote not work:", - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 106 - }, - "end": { - "line": 9, - "column": 31, - "offset": 136 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 106 - }, - "end": { - "line": 9, - "column": 31, - "offset": 136 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "baz", - "label": "baz", - "referenceType": "full", - "children": [ - { - "type": "text", - "value": "[^foo]", - "position": { - "start": { - "line": 11, - "column": 2, - "offset": 139 - }, - "end": { - "line": 11, - "column": 8, - "offset": 145 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 138 - }, - "end": { - "line": 11, - "column": 14, - "offset": 151 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 138 - }, - "end": { - "line": 11, - "column": 14, - "offset": 151 - }, - "indent": [] - } - }, { "type": "definition", "identifier": "bar", @@ -285,14 +194,14 @@ "url": "https://bar.com", "position": { "start": { - "line": 13, + "line": 9, "column": 1, - "offset": 153 + "offset": 106 }, "end": { - "line": 13, + "line": 9, "column": 29, - "offset": 181 + "offset": 134 }, "indent": [] } @@ -305,87 +214,14 @@ "url": "https://baz.com", "position": { "start": { - "line": 14, + "line": 10, "column": 1, - "offset": 182 + "offset": 135 }, "end": { - "line": 14, + "line": 10, "column": 29, - "offset": 210 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "^foo", - "label": "^foo", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "^foo", - "position": { - "start": { - "line": 16, - "column": 2, - "offset": 213 - }, - "end": { - "line": 16, - "column": 6, - "offset": 217 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 212 - }, - "end": { - "line": 16, - "column": 7, - "offset": 218 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ": A footnote.", - "position": { - "start": { - "line": 16, - "column": 7, - "offset": 218 - }, - "end": { - "line": 16, - "column": 20, - "offset": 231 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 212 - }, - "end": { - "line": 16, - "column": 20, - "offset": 231 + "offset": 163 }, "indent": [] } @@ -398,9 +234,9 @@ "offset": 0 }, "end": { - "line": 17, + "line": 11, "column": 1, - "offset": 232 + "offset": 164 } } }