diff --git a/doc/getting-started.md b/doc/getting-started.md index 81cedf84c..aa4601d1c 100644 --- a/doc/getting-started.md +++ b/doc/getting-started.md @@ -24,8 +24,6 @@ and written: # Alpha # Bravo charlie **delta** __echo__. - Foxtrot -* Golf -+ Hotel ``` Yields: @@ -35,14 +33,12 @@ Yields: Bravo charlie **delta** **echo**. -- Foxtrot -- Golf -- Hotel +* Foxtrot ``` But, much more can be done, [through plugins][plugins]. -## Command-line +## Command line **remark**’s CLI is a simple way to process Markdown files from the command line. Its interface is provided by [**unified-args**][unified-args]. @@ -108,9 +104,9 @@ The `--save-dev` option stores the dependencies in our `package.json`: "name": "my-package", "version": "1.0.0", + "devDependencies": { -+ "remark-cli": "^6.0.0", -+ "remark-html": "^8.0.0", -+ "remark-preset-lint-markdown-style-guide": "^2.0.0" ++ "remark-cli": "^8.0.0", ++ "remark-html": "^12.0.0", ++ "remark-preset-lint-markdown-style-guide": "^3.0.0" + }, "scripts": { "test": "node test.js" @@ -126,9 +122,9 @@ configuration: "name": "my-package", "version": "1.0.0", "devDependencies": { - "remark-cli": "^6.0.0", - "remark-html": "^8.0.0", - "remark-preset-lint-markdown-style-guide": "^2.0.0" + "remark-cli": "^8.0.0", + "remark-html": "^12.0.0", + "remark-preset-lint-markdown-style-guide": "^3.0.0" }, "scripts": { - "test": "node test.js" diff --git a/doc/plugins.md b/doc/plugins.md index 2d65e0583..f8fa18769 100644 --- a/doc/plugins.md +++ b/doc/plugins.md @@ -38,8 +38,6 @@ See [Creating plugins][create] below. — increase or decrease heading depth * [`remark-bookmarks`](https://github.com/remarkjs/remark-bookmarks) – automatic link manager -* [`remark-bracketed-spans`](https://github.com/sethvincent/remark-bracketed-spans) - – custom syntax for id’s, classes, and data attributes to spans of text * [`remark-breaks`](https://github.com/remarkjs/remark-breaks) – support hard breaks without needing spaces (like on issues) * [`remark-capitalize`](https://github.com/zeit/remark-capitalize) @@ -83,8 +81,6 @@ See [Creating plugins][create] below. — embed local images as base64-encoded data URIs * [`remark-emoji`](https://github.com/rhysd/remark-emoji) — transform Gemoji short-codes to emoji -* [`remark-emoji-to-gemoji`](https://github.com/jackycute/remark-emoji-to-gemoji) - — transform emoji to Gemoji short-codes * [`remark-external-links`](https://github.com/remarkjs/remark-external-links) — add `target` and `rel` attributes to external links * [`remark-extract-frontmatter`](https://github.com/mrzmmr/remark-extract-frontmatter) @@ -101,20 +97,14 @@ See [Creating plugins][create] below. – support frontmatter (yaml, toml, and more) * [`remark-gemoji`](https://github.com/remarkjs/remark-gemoji) — better support for Gemoji shortcodes -* [`remark-gemoji-to-emoji`](https://github.com/jackycute/remark-gemoji-to-emoji) - — transform Gemoji shortcodes to emoji * [`remark-generic-extensions`](https://github.com/medfreeman/remark-generic-extensions) — custom syntax for the CommonMark generic directive extension * [`remark-git-contributors`](https://github.com/remarkjs/remark-git-contributors) — add a table of contributors based on Git history, options, and more * [`remark-github`](https://github.com/remarkjs/remark-github) — autolink references to commits, issues, pull-requests, and users -* [`remark-gitlab-artifact`](https://github.com/temando/remark-gitlab-artifact) - — download artifacts from GitLab projects to live alongside your docs * [`remark-grid-tables`](https://github.com/zestedesavoir/zmarkdown/tree/HEAD/packages/remark-grid-tables#readme) — custom syntax to describe tables (rehype compatible) -* [`remark-graphviz`](https://github.com/temando/remark-graphviz) - — transform [graphviz](https://www.graphviz.org) dot graphs to SVG * [`remark-heading-id`](https://github.com/imcuttle/remark-heading-id) — custom heading id support `{#custom-id}` * [`remark-heading-gap`](https://github.com/remarkjs/remark-heading-gap) @@ -126,9 +116,7 @@ See [Creating plugins][create] below. — add hints/tips/warnings to markdown * [`remark-html`](https://github.com/remarkjs/remark-html) — serialize Markdown as HTML -* [`remark-html-emoji-image`](https://github.com/jackycute/remark-html-emoji-image) - — transform emoji to images -* [`remark-html-katex`](https://github.com/Rokt33r/remark-math/tree/HEAD/packages/remark-html-katex#readme) +* [`remark-html-katex`](https://github.com/remarkjs/remark-math/tree/HEAD/packages/remark-html-katex#readme) — change inline and block math to equations with [KaTeX](https://github.com/Khan/KaTeX) * [`remark-iframes`](https://github.com/zestedesavoir/zmarkdown/tree/HEAD/packages/remark-iframes#readme) — custom syntax to create iframes (new node type, rehype compatible) @@ -155,14 +143,10 @@ See [Creating plugins][create] below. — support for block macros (new node types, rehype compatible) * [`remark-man`](https://github.com/remarkjs/remark-man) — serialize Markdown as man pages (roff) -* [`remark-math`](https://github.com/Rokt33r/remark-math) +* [`remark-math`](https://github.com/remarkjs/remark-math) — custom syntax for math (new node types, rehype compatible) -* [`remark-mermaid`](https://github.com/temando/remark-mermaid) - — transform [mermaid](https://mermaidjs.github.io/) graphs to SVG * [`remark-message-control`](https://github.com/remarkjs/remark-message-control) — turn some or all messages on or off -* [`remark-metadata`](https://github.com/temando/remark-metadata) - — add metadata about the processed file as front matter * [`remark-midas`](https://github.com/remarkjs/remark-midas) — highlight CSS code blocks with [midas](https://github.com/ben-eb/midas) (rehype compatible) @@ -174,8 +158,6 @@ See [Creating plugins][create] below. — transform URLs for youtube, twitter, etc. embeds * [`remark-oembed`](https://github.com/sergioramos/remark-oembed) — transform URLs surrounded by newlines into *asynchronously* loaded embeds -* [`remark-openapi`](https://github.com/temando/remark-openapi) - — transform links to local or remote OpenAPI definitions to tables * [`remark-package-dependencies`](https://github.com/unlight/remark-package-dependencies) — inject your dependencies * [`remark-parse-yaml`](https://github.com/landakram/remark-parse-yaml) @@ -190,8 +172,6 @@ See [Creating plugins][create] below. — compile Markdown to [React](https://github.com/facebook/react) * [`remark-react-codemirror`](https://github.com/craftzdog/remark-react-codemirror) — highlight code blocks for **remark-react** with [CodeMirror](https://codemirror.net) -* [`remark-react-lowlight`](https://github.com/inlinestyle/remark-react-lowlight) - — highlight code blocks for **remark-react** with [lowlight](https://github.com/wooorm/lowlight) * [`remark-redact`](https://github.com/seafoam6/remark-redact) — conceal text matching a regex * [`remark-redactable`](https://github.com/code-dot-org/remark-redactable) @@ -287,11 +267,10 @@ virtual files. ## Using plugins -To use a plugin programmatically, invoke the [`use()`][unified-use] -function. +To use a plugin programmatically, call the [`use()`][unified-use] function. -To use plugin with `remark-cli`, pass a [`--use` flag][unified-args-use] -or specify it in a [configuration file][config-file-use]. +To use plugin with `remark-cli`, pass a [`--use` flag][unified-args-use] or +specify it in a [configuration file][config-file-use]. ## Creating plugins diff --git a/license b/license index 5c1b55c99..d39f9fa6d 100644 --- a/license +++ b/license @@ -1,6 +1,6 @@ (The MIT License) -Copyright (c) 2014-2016 Titus Wormer +Copyright (c) 2014-2020 Titus Wormer Copyright (c) 2011-2014, Christopher Jeffrey (https://github.com/chjj/) Permission is hereby granted, free of charge, to any person obtaining a copy diff --git a/log.txt b/log.txt new file mode 100644 index 000000000..e69de29bb diff --git a/package.json b/package.json index 91700a1e9..a79dff32b 100644 --- a/package.json +++ b/package.json @@ -10,16 +10,14 @@ "url": "https://opencollective.com/unified" }, "devDependencies": { - "bail": "^1.0.0", "browserify": "^16.0.0", "camelcase": "^6.0.0", - "clone": "^2.0.0", "dtslint": "^4.0.0", "execa": "^4.0.0", "lerna": "^3.0.0", "mdast-util-assert": "^3.0.0", - "mdast-util-compact": "^2.0.0", - "mdast-zone": "^4.0.0", + "mdast-util-gfm": "^0.1.0", + "micromark-extension-gfm": "^0.3.0", "nyc": "^15.0.0", "prettier": "^2.0.0", "remark-preset-wooorm": "^7.0.0", @@ -27,22 +25,17 @@ "tinyify": "^3.0.0", "typescript": "^4.0.0", "unified": "^9.1.0", - "unist-builder": "^2.0.0", "unist-util-remove-position": "^3.0.0", - "unist-util-visit": "^2.0.0", - "vfile": "^4.0.0", - "wcwidth": "^1.0.0", "xo": "^0.33.0" }, "scripts": { "postinstall": "lerna bootstrap --no-ci", - "format": "packages/remark-cli/cli.js . -qfo && prettier . --write && xo --fix", + "format": "prettier . -w --loglevel warn && xo --fix", "build-bundle": "browserify packages/remark -s remark > remark.js", "build-mangle": "browserify packages/remark -s remark -p tinyify > remark.min.js", "build": "npm run build-bundle && npm run build-mangle", "test-api": "tape \"packages/*/test.js\" \"test/index.js\"", - "test-api-extensive": "TEST_EXTENDED=true npm run test-api", - "test-coverage": "nyc --reporter lcov tape \"test/index.js\" \"packages/*/test.js\"", + "test-coverage": "nyc --reporter lcov tape \"packages/*/test.js\" \"test/index.js\"", "test-types": "dtslint packages/remark-parse/types && dtslint packages/remark-stringify/types && dtslint packages/remark/types", "test": "npm run format && npm run build && npm run test-coverage && npm run test-types" }, @@ -89,7 +82,6 @@ }, "remarkConfig": { "plugins": [ - "./script/list-of-methods", "preset-wooorm", [ "toc", diff --git a/packages/remark-cli/package.json b/packages/remark-cli/package.json index 45d001186..8ed8e9854 100644 --- a/packages/remark-cli/package.json +++ b/packages/remark-cli/package.json @@ -1,6 +1,6 @@ { "name": "remark-cli", - "version": "8.0.1", + "version": "9.0.0-alpha.1", "description": "CLI to process Markdown with remark", "license": "MIT", "keywords": [ @@ -30,7 +30,7 @@ ], "dependencies": { "markdown-extensions": "^1.1.0", - "remark": "^12.0.0", + "remark": "^13.0.0-alpha.1", "unified-args": "^8.0.0" }, "scripts": { diff --git a/packages/remark-cli/readme.md b/packages/remark-cli/readme.md index 2a860ef43..b1f4e5a93 100644 --- a/packages/remark-cli/readme.md +++ b/packages/remark-cli/readme.md @@ -17,53 +17,6 @@ Command line interface for [**remark**][remark]. * Uses configuration from [`remarkConfig` fields in `package.json` files][config-file] -## Sponsors - -Support this effort and give back by sponsoring on [OpenCollective][collective]! - - - - - - - - - - - - - - - - -
- Gatsby 🥇

- -
- Vercel 🥇

- -
- Netlify

- - -
- Holloway

- -
- ThemeIsle

- -
- BoostIO

- -
- Expo

- -
-
- You? -

-
- ## Install [npm][]: @@ -154,6 +107,53 @@ This project has a [code of conduct][coc]. By interacting with this repository, organization, or community you agree to abide by its terms. +## Sponsor + +Support this effort and give back by sponsoring on [OpenCollective][collective]! + + + + + + + + + + + + + + + + +
+ Gatsby 🥇

+ +
+ Vercel 🥇

+ +
+ Netlify

+ + +
+ Holloway

+ +
+ ThemeIsle

+ +
+ BoostIO

+ +
+ Expo

+ +
+
+ You? +

+
+ ## License [MIT][license] © [Titus Wormer][author] diff --git a/packages/remark-parse/index.js b/packages/remark-parse/index.js index 39cc24a23..9719b7976 100644 --- a/packages/remark-parse/index.js +++ b/packages/remark-parse/index.js @@ -1,17 +1,24 @@ 'use strict' -var unherit = require('unherit') -var xtend = require('xtend') -var Parser = require('./lib/parser.js') - module.exports = parse -parse.Parser = Parser + +var fromMarkdown = require('mdast-util-from-markdown') function parse(options) { - var settings = this.data('settings') - var Local = unherit(Parser) + var self = this - Local.prototype.options = xtend(Local.prototype.options, settings, options) + this.Parser = parse - this.Parser = Local + function parse(doc) { + return fromMarkdown( + doc, + Object.assign({}, self.data('settings'), options, { + // Note: these options are not in the readme. + // The goal is for them to be set by plugins on `data` instead of being + // passed by users. + extensions: self.data('micromarkExtensions') || [], + mdastExtensions: self.data('fromMarkdownExtensions') || [] + }) + ) + } } diff --git a/packages/remark-parse/lib/block-elements.js b/packages/remark-parse/lib/block-elements.js deleted file mode 100644 index c73efac9b..000000000 --- a/packages/remark-parse/lib/block-elements.js +++ /dev/null @@ -1,70 +0,0 @@ -'use strict' - -module.exports = [ - 'address', - 'article', - 'aside', - 'base', - 'basefont', - 'blockquote', - 'body', - 'caption', - 'center', - 'col', - 'colgroup', - 'dd', - 'details', - 'dialog', - 'dir', - 'div', - 'dl', - 'dt', - 'fieldset', - 'figcaption', - 'figure', - 'footer', - 'form', - 'frame', - 'frameset', - 'h1', - 'h2', - 'h3', - 'h4', - 'h5', - 'h6', - 'head', - 'header', - 'hgroup', - 'hr', - 'html', - 'iframe', - 'legend', - 'li', - 'link', - 'main', - 'menu', - 'menuitem', - 'meta', - 'nav', - 'noframes', - 'ol', - 'optgroup', - 'option', - 'p', - 'param', - 'pre', - 'section', - 'source', - 'title', - 'summary', - 'table', - 'tbody', - 'td', - 'tfoot', - 'th', - 'thead', - 'title', - 'tr', - 'track', - 'ul' -] diff --git a/packages/remark-parse/lib/decode.js b/packages/remark-parse/lib/decode.js deleted file mode 100644 index 3a1edc0be..000000000 --- a/packages/remark-parse/lib/decode.js +++ /dev/null @@ -1,58 +0,0 @@ -'use strict' - -var xtend = require('xtend') -var entities = require('parse-entities') - -module.exports = factory - -// Factory to create an entity decoder. -function factory(ctx) { - decoder.raw = decodeRaw - - return decoder - - // Normalize `position` to add an `indent`. - function normalize(position) { - var offsets = ctx.offset - var line = position.line - var result = [] - - while (++line) { - if (!(line in offsets)) { - break - } - - result.push((offsets[line] || 0) + 1) - } - - return {start: position, indent: result} - } - - // Decode `value` (at `position`) into text-nodes. - function decoder(value, position, handler) { - entities(value, { - position: normalize(position), - warning: handleWarning, - text: handler, - reference: handler, - textContext: ctx, - referenceContext: ctx - }) - } - - // Decode `value` (at `position`) into a string. - function decodeRaw(value, position, options) { - return entities( - value, - xtend(options, {position: normalize(position), warning: handleWarning}) - ) - } - - // Handle a warning. - // See for the warnings. - function handleWarning(reason, position, code) { - if (code !== 3) { - ctx.file.message(reason, position) - } - } -} diff --git a/packages/remark-parse/lib/defaults.js b/packages/remark-parse/lib/defaults.js deleted file mode 100644 index 76443a57a..000000000 --- a/packages/remark-parse/lib/defaults.js +++ /dev/null @@ -1,9 +0,0 @@ -'use strict' - -module.exports = { - position: true, - gfm: true, - commonmark: false, - pedantic: false, - blocks: require('./block-elements') -} diff --git a/packages/remark-parse/lib/locate/break.js b/packages/remark-parse/lib/locate/break.js deleted file mode 100644 index f5479e7c6..000000000 --- a/packages/remark-parse/lib/locate/break.js +++ /dev/null @@ -1,17 +0,0 @@ -'use strict' - -module.exports = locate - -function locate(value, fromIndex) { - var index = value.indexOf('\n', fromIndex) - - while (index > fromIndex) { - if (value.charAt(index - 1) !== ' ') { - break - } - - index-- - } - - return index -} diff --git a/packages/remark-parse/lib/locate/code-inline.js b/packages/remark-parse/lib/locate/code-inline.js deleted file mode 100644 index 241971709..000000000 --- a/packages/remark-parse/lib/locate/code-inline.js +++ /dev/null @@ -1,7 +0,0 @@ -'use strict' - -module.exports = locate - -function locate(value, fromIndex) { - return value.indexOf('`', fromIndex) -} diff --git a/packages/remark-parse/lib/locate/delete.js b/packages/remark-parse/lib/locate/delete.js deleted file mode 100644 index 18b2f6305..000000000 --- a/packages/remark-parse/lib/locate/delete.js +++ /dev/null @@ -1,7 +0,0 @@ -'use strict' - -module.exports = locate - -function locate(value, fromIndex) { - return value.indexOf('~~', fromIndex) -} diff --git a/packages/remark-parse/lib/locate/email.js b/packages/remark-parse/lib/locate/email.js deleted file mode 100644 index bd3105d6b..000000000 --- a/packages/remark-parse/lib/locate/email.js +++ /dev/null @@ -1,51 +0,0 @@ -'use strict' - -var decimal = require('is-decimal') -var alphabetical = require('is-alphabetical') - -var plusSign = 43 // '+' -var dash = 45 // '-' -var dot = 46 // '.' -var underscore = 95 // '_' - -module.exports = locate - -// See: -function locate(value, fromIndex) { - var self = this - var at - var position - - if (!this.options.gfm) { - return -1 - } - - at = value.indexOf('@', fromIndex) - - if (at === -1) { - return -1 - } - - position = at - - if (position === fromIndex || !isGfmAtext(value.charCodeAt(position - 1))) { - return locate.call(self, value, at + 1) - } - - while (position > fromIndex && isGfmAtext(value.charCodeAt(position - 1))) { - position-- - } - - return position -} - -function isGfmAtext(code) { - return ( - decimal(code) || - alphabetical(code) || - code === plusSign || - code === dash || - code === dot || - code === underscore - ) -} diff --git a/packages/remark-parse/lib/locate/emphasis.js b/packages/remark-parse/lib/locate/emphasis.js deleted file mode 100644 index afec4ff89..000000000 --- a/packages/remark-parse/lib/locate/emphasis.js +++ /dev/null @@ -1,18 +0,0 @@ -'use strict' - -module.exports = locate - -function locate(value, fromIndex) { - var asterisk = value.indexOf('*', fromIndex) - var underscore = value.indexOf('_', fromIndex) - - if (underscore === -1) { - return asterisk - } - - if (asterisk === -1) { - return underscore - } - - return underscore < asterisk ? underscore : asterisk -} diff --git a/packages/remark-parse/lib/locate/escape.js b/packages/remark-parse/lib/locate/escape.js deleted file mode 100644 index 9f61acff2..000000000 --- a/packages/remark-parse/lib/locate/escape.js +++ /dev/null @@ -1,7 +0,0 @@ -'use strict' - -module.exports = locate - -function locate(value, fromIndex) { - return value.indexOf('\\', fromIndex) -} diff --git a/packages/remark-parse/lib/locate/link.js b/packages/remark-parse/lib/locate/link.js deleted file mode 100644 index df7b33bcf..000000000 --- a/packages/remark-parse/lib/locate/link.js +++ /dev/null @@ -1,16 +0,0 @@ -'use strict' - -module.exports = locate - -function locate(value, fromIndex) { - var link = value.indexOf('[', fromIndex) - var image = value.indexOf('![', fromIndex) - - if (image === -1) { - return link - } - - // Link can never be `-1` if an image is found, so we don’t need to check - // for that :) - return link < image ? link : image -} diff --git a/packages/remark-parse/lib/locate/strong.js b/packages/remark-parse/lib/locate/strong.js deleted file mode 100644 index 44b95cd02..000000000 --- a/packages/remark-parse/lib/locate/strong.js +++ /dev/null @@ -1,18 +0,0 @@ -'use strict' - -module.exports = locate - -function locate(value, fromIndex) { - var asterisk = value.indexOf('**', fromIndex) - var underscore = value.indexOf('__', fromIndex) - - if (underscore === -1) { - return asterisk - } - - if (asterisk === -1) { - return underscore - } - - return underscore < asterisk ? underscore : asterisk -} diff --git a/packages/remark-parse/lib/locate/tag.js b/packages/remark-parse/lib/locate/tag.js deleted file mode 100644 index 6a5d210b4..000000000 --- a/packages/remark-parse/lib/locate/tag.js +++ /dev/null @@ -1,7 +0,0 @@ -'use strict' - -module.exports = locate - -function locate(value, fromIndex) { - return value.indexOf('<', fromIndex) -} diff --git a/packages/remark-parse/lib/locate/url.js b/packages/remark-parse/lib/locate/url.js deleted file mode 100644 index c2cc1beba..000000000 --- a/packages/remark-parse/lib/locate/url.js +++ /dev/null @@ -1,29 +0,0 @@ -'use strict' - -module.exports = locate - -var values = ['www.', 'http://', 'https://'] - -function locate(value, fromIndex) { - var min = -1 - var index - var length - var position - - if (!this.options.gfm) { - return min - } - - length = values.length - index = -1 - - while (++index < length) { - position = value.indexOf(values[index], fromIndex) - - if (position !== -1 && (min === -1 || position < min)) { - min = position - } - } - - return min -} diff --git a/packages/remark-parse/lib/parse.js b/packages/remark-parse/lib/parse.js deleted file mode 100644 index 59aac694b..000000000 --- a/packages/remark-parse/lib/parse.js +++ /dev/null @@ -1,42 +0,0 @@ -'use strict' - -var xtend = require('xtend') -var removePosition = require('unist-util-remove-position') - -module.exports = parse - -var lineFeed = '\n' -var lineBreaksExpression = /\r\n|\r/g - -// Parse the bound file. -function parse() { - var self = this - var value = String(self.file) - var start = {line: 1, column: 1, offset: 0} - var content = xtend(start) - var node - - // Clean non-unix newlines: `\r\n` and `\r` are all changed to `\n`. - // This should not affect positional information. - value = value.replace(lineBreaksExpression, lineFeed) - - // BOM. - if (value.charCodeAt(0) === 0xfeff) { - value = value.slice(1) - - content.column++ - content.offset++ - } - - node = { - type: 'root', - children: self.tokenizeBlock(value, content), - position: {start: start, end: self.eof || xtend(start)} - } - - if (!self.options.position) { - removePosition(node, true) - } - - return node -} diff --git a/packages/remark-parse/lib/parser.js b/packages/remark-parse/lib/parser.js deleted file mode 100644 index fca2cd170..000000000 --- a/packages/remark-parse/lib/parser.js +++ /dev/null @@ -1,147 +0,0 @@ -'use strict' - -var xtend = require('xtend') -var toggle = require('state-toggle') -var vfileLocation = require('vfile-location') -var unescape = require('./unescape') -var decode = require('./decode') -var tokenizer = require('./tokenizer') - -module.exports = Parser - -function Parser(doc, file) { - this.file = file - this.offset = {} - this.options = xtend(this.options) - this.setOptions({}) - - this.inList = false - this.inBlock = false - this.inLink = false - this.atStart = true - - this.toOffset = vfileLocation(file).toOffset - this.unescape = unescape(this, 'escape') - this.decode = decode(this) -} - -var proto = Parser.prototype - -// Expose core. -proto.setOptions = require('./set-options') -proto.parse = require('./parse') - -// Expose `defaults`. -proto.options = require('./defaults') - -// Enter and exit helpers. -proto.exitStart = toggle('atStart', true) -proto.enterList = toggle('inList', false) -proto.enterLink = toggle('inLink', false) -proto.enterBlock = toggle('inBlock', false) - -// Nodes that can interupt a paragraph: -// -// ```markdown -// A paragraph, followed by a thematic break. -// ___ -// ``` -// -// In the above example, the thematic break “interupts” the paragraph. -proto.interruptParagraph = [ - ['thematicBreak'], - ['list'], - ['atxHeading'], - ['fencedCode'], - ['blockquote'], - ['html'], - ['setextHeading', {commonmark: false}], - ['definition', {commonmark: false}] -] - -// Nodes that can interupt a list: -// -// ```markdown -// - One -// ___ -// ``` -// -// In the above example, the thematic break “interupts” the list. -proto.interruptList = [ - ['atxHeading', {pedantic: false}], - ['fencedCode', {pedantic: false}], - ['thematicBreak', {pedantic: false}], - ['definition', {commonmark: false}] -] - -// Nodes that can interupt a blockquote: -// -// ```markdown -// > A paragraph. -// ___ -// ``` -// -// In the above example, the thematic break “interupts” the blockquote. -proto.interruptBlockquote = [ - ['indentedCode', {commonmark: true}], - ['fencedCode', {commonmark: true}], - ['atxHeading', {commonmark: true}], - ['setextHeading', {commonmark: true}], - ['thematicBreak', {commonmark: true}], - ['html', {commonmark: true}], - ['list', {commonmark: true}], - ['definition', {commonmark: false}] -] - -// Handlers. -proto.blockTokenizers = { - blankLine: require('./tokenize/blank-line'), - indentedCode: require('./tokenize/code-indented'), - fencedCode: require('./tokenize/code-fenced'), - blockquote: require('./tokenize/blockquote'), - atxHeading: require('./tokenize/heading-atx'), - thematicBreak: require('./tokenize/thematic-break'), - list: require('./tokenize/list'), - setextHeading: require('./tokenize/heading-setext'), - html: require('./tokenize/html-block'), - definition: require('./tokenize/definition'), - table: require('./tokenize/table'), - paragraph: require('./tokenize/paragraph') -} - -proto.inlineTokenizers = { - escape: require('./tokenize/escape'), - autoLink: require('./tokenize/auto-link'), - url: require('./tokenize/url'), - email: require('./tokenize/email'), - html: require('./tokenize/html-inline'), - link: require('./tokenize/link'), - reference: require('./tokenize/reference'), - strong: require('./tokenize/strong'), - emphasis: require('./tokenize/emphasis'), - deletion: require('./tokenize/delete'), - code: require('./tokenize/code-inline'), - break: require('./tokenize/break'), - text: require('./tokenize/text') -} - -// Expose precedence. -proto.blockMethods = keys(proto.blockTokenizers) -proto.inlineMethods = keys(proto.inlineTokenizers) - -// Tokenizers. -proto.tokenizeBlock = tokenizer('block') -proto.tokenizeInline = tokenizer('inline') -proto.tokenizeFactory = tokenizer - -// Get all keys in `value`. -function keys(value) { - var result = [] - var key - - for (key in value) { - result.push(key) - } - - return result -} diff --git a/packages/remark-parse/lib/set-options.js b/packages/remark-parse/lib/set-options.js deleted file mode 100644 index 5877099e3..000000000 --- a/packages/remark-parse/lib/set-options.js +++ /dev/null @@ -1,46 +0,0 @@ -'use strict' - -var xtend = require('xtend') -var escapes = require('markdown-escapes') -var defaults = require('./defaults') - -module.exports = setOptions - -function setOptions(options) { - var self = this - var current = self.options - var key - var value - - if (options == null) { - options = {} - } else if (typeof options === 'object') { - options = xtend(options) - } else { - throw new Error('Invalid value `' + options + '` for setting `options`') - } - - for (key in defaults) { - value = options[key] - - if (value == null) { - value = current[key] - } - - if ( - (key !== 'blocks' && typeof value !== 'boolean') || - (key === 'blocks' && typeof value !== 'object') - ) { - throw new Error( - 'Invalid value `' + value + '` for setting `options.' + key + '`' - ) - } - - options[key] = value - } - - self.options = options - self.escape = escapes(options) - - return self -} diff --git a/packages/remark-parse/lib/tokenize/auto-link.js b/packages/remark-parse/lib/tokenize/auto-link.js deleted file mode 100644 index f5bcb8900..000000000 --- a/packages/remark-parse/lib/tokenize/auto-link.js +++ /dev/null @@ -1,133 +0,0 @@ -'use strict' - -var whitespace = require('is-whitespace-character') -var decode = require('parse-entities') -var locate = require('../locate/tag') - -module.exports = autoLink -autoLink.locator = locate -autoLink.notInLink = true - -var lessThan = '<' -var greaterThan = '>' -var atSign = '@' -var slash = '/' -var mailto = 'mailto:' -var mailtoLength = mailto.length - -function autoLink(eat, value, silent) { - var self = this - var subvalue = '' - var length = value.length - var index = 0 - var queue = '' - var hasAtCharacter = false - var link = '' - var character - var now - var content - var tokenizers - var exit - - if (value.charAt(0) !== lessThan) { - return - } - - index++ - subvalue = lessThan - - while (index < length) { - character = value.charAt(index) - - if ( - whitespace(character) || - character === greaterThan || - character === atSign || - (character === ':' && value.charAt(index + 1) === slash) - ) { - break - } - - queue += character - index++ - } - - if (!queue) { - return - } - - link += queue - queue = '' - - character = value.charAt(index) - link += character - index++ - - if (character === atSign) { - hasAtCharacter = true - } else { - if (character !== ':' || value.charAt(index + 1) !== slash) { - return - } - - link += slash - index++ - } - - while (index < length) { - character = value.charAt(index) - - if (whitespace(character) || character === greaterThan) { - break - } - - queue += character - index++ - } - - character = value.charAt(index) - - if (!queue || character !== greaterThan) { - return - } - - /* istanbul ignore if - never used (yet) */ - if (silent) { - return true - } - - link += queue - content = link - subvalue += link + character - now = eat.now() - now.column++ - now.offset++ - - if (hasAtCharacter) { - if (link.slice(0, mailtoLength).toLowerCase() === mailto) { - content = content.slice(mailtoLength) - now.column += mailtoLength - now.offset += mailtoLength - } else { - link = mailto + link - } - } - - // Temporarily remove all tokenizers except text in autolinks. - tokenizers = self.inlineTokenizers - self.inlineTokenizers = {text: tokenizers.text} - - exit = self.enterLink() - - content = self.tokenizeInline(content, now) - - self.inlineTokenizers = tokenizers - exit() - - return eat(subvalue)({ - type: 'link', - title: null, - url: decode(link, {nonTerminated: false}), - children: content - }) -} diff --git a/packages/remark-parse/lib/tokenize/blank-line.js b/packages/remark-parse/lib/tokenize/blank-line.js deleted file mode 100644 index 387fd45a5..000000000 --- a/packages/remark-parse/lib/tokenize/blank-line.js +++ /dev/null @@ -1,43 +0,0 @@ -'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 . -var reBlankLine = /^[ \t]*(\n|$)/ - -// 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 - -function blankLine(eat, value, silent) { - var match - var subvalue = '' - var index = 0 - var length = value.length - - while (index < length) { - match = reBlankLine.exec(value.slice(index)) - - if (match == null) { - break - } - - index += match[0].length - subvalue += match[0] - } - - if (subvalue === '') { - return - } - - /* istanbul ignore if - never used (yet) */ - if (silent) { - return true - } - - eat(subvalue) -} diff --git a/packages/remark-parse/lib/tokenize/blockquote.js b/packages/remark-parse/lib/tokenize/blockquote.js deleted file mode 100644 index 2960e85af..000000000 --- a/packages/remark-parse/lib/tokenize/blockquote.js +++ /dev/null @@ -1,124 +0,0 @@ -'use strict' - -var trim = require('trim') -var interrupt = require('../util/interrupt') - -module.exports = blockquote - -var lineFeed = '\n' -var tab = '\t' -var space = ' ' -var greaterThan = '>' - -function blockquote(eat, value, silent) { - var self = this - var offsets = self.offset - var tokenizers = self.blockTokenizers - var interruptors = self.interruptBlockquote - var now = eat.now() - var currentLine = now.line - var length = value.length - var values = [] - var contents = [] - var indents = [] - var add - var index = 0 - var character - var rest - var nextIndex - var content - var line - var startIndex - var prefixed - var exit - - while (index < length) { - character = value.charAt(index) - - if (character !== space && character !== tab) { - break - } - - index++ - } - - if (value.charAt(index) !== greaterThan) { - return - } - - if (silent) { - return true - } - - index = 0 - - while (index < length) { - nextIndex = value.indexOf(lineFeed, index) - startIndex = index - prefixed = false - - if (nextIndex === -1) { - nextIndex = length - } - - while (index < length) { - character = value.charAt(index) - - if (character !== space && character !== tab) { - break - } - - index++ - } - - if (value.charAt(index) === greaterThan) { - index++ - prefixed = true - - if (value.charAt(index) === space) { - index++ - } - } else { - index = startIndex - } - - content = value.slice(index, nextIndex) - - if (!prefixed && !trim(content)) { - index = startIndex - break - } - - if (!prefixed) { - rest = value.slice(index) - - // Check if the following code contains a possible block. - if (interrupt(interruptors, tokenizers, self, [eat, rest, true])) { - break - } - } - - line = startIndex === index ? content : value.slice(startIndex, nextIndex) - - indents.push(index - startIndex) - values.push(line) - contents.push(content) - - index = nextIndex + 1 - } - - index = -1 - length = indents.length - add = eat(values.join(lineFeed)) - - while (++index < length) { - offsets[currentLine] = (offsets[currentLine] || 0) + indents[index] - currentLine++ - } - - exit = self.enterBlock() - contents = self.tokenizeBlock(contents.join(lineFeed), now) - exit() - - return add({type: 'blockquote', children: contents}) -} diff --git a/packages/remark-parse/lib/tokenize/break.js b/packages/remark-parse/lib/tokenize/break.js deleted file mode 100644 index b68ca6d7e..000000000 --- a/packages/remark-parse/lib/tokenize/break.js +++ /dev/null @@ -1,42 +0,0 @@ -'use strict' - -var locate = require('../locate/break') - -module.exports = hardBreak -hardBreak.locator = locate - -var space = ' ' -var lineFeed = '\n' -var minBreakLength = 2 - -function hardBreak(eat, value, silent) { - var length = value.length - var index = -1 - var queue = '' - var character - - while (++index < length) { - character = value.charAt(index) - - if (character === lineFeed) { - if (index < minBreakLength) { - return - } - - /* istanbul ignore if - never used (yet) */ - if (silent) { - return true - } - - queue += character - - return eat(queue)({type: 'break'}) - } - - if (character !== space) { - return - } - - queue += character - } -} diff --git a/packages/remark-parse/lib/tokenize/code-fenced.js b/packages/remark-parse/lib/tokenize/code-fenced.js deleted file mode 100644 index e690814f9..000000000 --- a/packages/remark-parse/lib/tokenize/code-fenced.js +++ /dev/null @@ -1,253 +0,0 @@ -'use strict' - -module.exports = fencedCode - -var lineFeed = '\n' -var tab = '\t' -var space = ' ' -var tilde = '~' -var graveAccent = '`' - -var minFenceCount = 3 -var tabSize = 4 - -function fencedCode(eat, value, silent) { - var self = this - var gfm = self.options.gfm - var length = value.length + 1 - var index = 0 - var subvalue = '' - var fenceCount - var marker - var character - var flag - var lang - var meta - var queue - var content - var exdentedContent - var closing - var exdentedClosing - var indent - var now - - if (!gfm) { - return - } - - // Eat initial spacing. - while (index < length) { - character = value.charAt(index) - - if (character !== space && character !== tab) { - break - } - - subvalue += character - index++ - } - - indent = index - - // Eat the fence. - character = value.charAt(index) - - if (character !== tilde && character !== graveAccent) { - return - } - - index++ - marker = character - fenceCount = 1 - subvalue += character - - while (index < length) { - character = value.charAt(index) - - if (character !== marker) { - break - } - - subvalue += character - fenceCount++ - index++ - } - - if (fenceCount < minFenceCount) { - return - } - - // Eat spacing before flag. - while (index < length) { - character = value.charAt(index) - - if (character !== space && character !== tab) { - break - } - - subvalue += character - index++ - } - - // Eat flag. - flag = '' - queue = '' - - while (index < length) { - character = value.charAt(index) - - if ( - character === lineFeed || - (marker === graveAccent && character === marker) - ) { - break - } - - if (character === space || character === tab) { - queue += character - } else { - flag += queue + character - queue = '' - } - - index++ - } - - character = value.charAt(index) - - if (character && character !== lineFeed) { - return - } - - if (silent) { - return true - } - - now = eat.now() - now.column += subvalue.length - now.offset += subvalue.length - - subvalue += flag - flag = self.decode.raw(self.unescape(flag), now) - - if (queue) { - subvalue += queue - } - - queue = '' - closing = '' - exdentedClosing = '' - content = '' - exdentedContent = '' - var skip = true - - // Eat content. - while (index < length) { - character = value.charAt(index) - content += closing - exdentedContent += exdentedClosing - closing = '' - exdentedClosing = '' - - if (character !== lineFeed) { - content += character - exdentedClosing += character - index++ - continue - } - - // The first line feed is ignored. Others aren’t. - if (skip) { - subvalue += character - skip = false - } else { - closing += character - exdentedClosing += character - } - - queue = '' - index++ - - while (index < length) { - character = value.charAt(index) - - if (character !== space) { - break - } - - queue += character - index++ - } - - closing += queue - exdentedClosing += queue.slice(indent) - - if (queue.length >= tabSize) { - continue - } - - queue = '' - - while (index < length) { - character = value.charAt(index) - - if (character !== marker) { - break - } - - queue += character - index++ - } - - closing += queue - exdentedClosing += queue - - if (queue.length < fenceCount) { - continue - } - - queue = '' - - while (index < length) { - character = value.charAt(index) - - if (character !== space && character !== tab) { - break - } - - closing += character - exdentedClosing += character - index++ - } - - if (!character || character === lineFeed) { - break - } - } - - subvalue += content + closing - - // Get lang and meta from the flag. - index = -1 - length = flag.length - - while (++index < length) { - character = flag.charAt(index) - - if (character === space || character === tab) { - if (!lang) { - lang = flag.slice(0, index) - } - } else if (lang) { - meta = flag.slice(index) - break - } - } - - return eat(subvalue)({ - type: 'code', - lang: lang || flag || null, - meta: meta || null, - value: exdentedContent - }) -} diff --git a/packages/remark-parse/lib/tokenize/code-indented.js b/packages/remark-parse/lib/tokenize/code-indented.js deleted file mode 100644 index 53a666fb6..000000000 --- a/packages/remark-parse/lib/tokenize/code-indented.js +++ /dev/null @@ -1,98 +0,0 @@ -'use strict' - -var repeat = require('repeat-string') -var trim = require('trim-trailing-lines') - -module.exports = indentedCode - -var lineFeed = '\n' -var tab = '\t' -var space = ' ' - -var tabSize = 4 -var codeIndent = repeat(space, tabSize) - -function indentedCode(eat, value, silent) { - var index = -1 - var length = value.length - var subvalue = '' - var content = '' - var subvalueQueue = '' - var contentQueue = '' - var character - var blankQueue - var indent - - while (++index < length) { - character = value.charAt(index) - - if (indent) { - indent = false - - subvalue += subvalueQueue - content += contentQueue - subvalueQueue = '' - contentQueue = '' - - if (character === lineFeed) { - subvalueQueue = character - contentQueue = character - } else { - subvalue += character - content += character - - while (++index < length) { - character = value.charAt(index) - - if (!character || character === lineFeed) { - contentQueue = character - subvalueQueue = character - break - } - - subvalue += character - content += character - } - } - } else if ( - character === space && - value.charAt(index + 1) === character && - value.charAt(index + 2) === character && - value.charAt(index + 3) === character - ) { - subvalueQueue += codeIndent - index += 3 - indent = true - } else if (character === tab) { - subvalueQueue += character - indent = true - } else { - blankQueue = '' - - while (character === tab || character === space) { - blankQueue += character - character = value.charAt(++index) - } - - if (character !== lineFeed) { - break - } - - subvalueQueue += blankQueue + character - contentQueue += character - } - } - - if (content) { - if (silent) { - return true - } - - return eat(subvalue)({ - type: 'code', - lang: null, - meta: null, - value: trim(content) - }) - } -} diff --git a/packages/remark-parse/lib/tokenize/code-inline.js b/packages/remark-parse/lib/tokenize/code-inline.js deleted file mode 100644 index 66da0f354..000000000 --- a/packages/remark-parse/lib/tokenize/code-inline.js +++ /dev/null @@ -1,109 +0,0 @@ -'use strict' - -var locate = require('../locate/code-inline') - -module.exports = inlineCode -inlineCode.locator = locate - -var lineFeed = 10 // '\n' -var space = 32 // ' ' -var graveAccent = 96 // '`' - -function inlineCode(eat, value, silent) { - var length = value.length - var index = 0 - var openingFenceEnd - var closingFenceStart - var closingFenceEnd - var code - var next - var found - - while (index < length) { - if (value.charCodeAt(index) !== graveAccent) { - break - } - - index++ - } - - if (index === 0 || index === length) { - return - } - - openingFenceEnd = index - next = value.charCodeAt(index) - - while (index < length) { - code = next - next = value.charCodeAt(index + 1) - - if (code === graveAccent) { - if (closingFenceStart === undefined) { - closingFenceStart = index - } - - closingFenceEnd = index + 1 - - if ( - next !== graveAccent && - closingFenceEnd - closingFenceStart === openingFenceEnd - ) { - found = true - break - } - } else if (closingFenceStart !== undefined) { - closingFenceStart = undefined - closingFenceEnd = undefined - } - - index++ - } - - if (!found) { - return - } - - /* istanbul ignore if - never used (yet) */ - if (silent) { - return true - } - - // Remove the initial and final space (or line feed), iff they exist and there - // are non-space characters in the content. - index = openingFenceEnd - length = closingFenceStart - code = value.charCodeAt(index) - next = value.charCodeAt(length - 1) - found = false - - if ( - length - index > 2 && - (code === space || code === lineFeed) && - (next === space || next === lineFeed) - ) { - index++ - length-- - - while (index < length) { - code = value.charCodeAt(index) - - if (code !== space && code !== lineFeed) { - found = true - break - } - - index++ - } - - if (found === true) { - openingFenceEnd++ - closingFenceStart-- - } - } - - return eat(value.slice(0, closingFenceEnd))({ - type: 'inlineCode', - value: value.slice(openingFenceEnd, closingFenceStart) - }) -} diff --git a/packages/remark-parse/lib/tokenize/definition.js b/packages/remark-parse/lib/tokenize/definition.js deleted file mode 100644 index ec56f0c41..000000000 --- a/packages/remark-parse/lib/tokenize/definition.js +++ /dev/null @@ -1,273 +0,0 @@ -'use strict' - -var whitespace = require('is-whitespace-character') -var normalize = require('../util/normalize') - -module.exports = definition - -var quotationMark = '"' -var apostrophe = "'" -var backslash = '\\' -var lineFeed = '\n' -var tab = '\t' -var space = ' ' -var leftSquareBracket = '[' -var rightSquareBracket = ']' -var leftParenthesis = '(' -var rightParenthesis = ')' -var colon = ':' -var lessThan = '<' -var greaterThan = '>' - -function definition(eat, value, silent) { - var self = this - var commonmark = self.options.commonmark - var index = 0 - var length = value.length - var subvalue = '' - var beforeURL - var beforeTitle - var queue - var character - var test - var identifier - var url - var title - - while (index < length) { - character = value.charAt(index) - - if (character !== space && character !== tab) { - break - } - - subvalue += character - index++ - } - - character = value.charAt(index) - - if (character !== leftSquareBracket) { - return - } - - index++ - subvalue += character - 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 - } - - identifier = queue - subvalue += queue + rightSquareBracket + colon - index = subvalue.length - queue = '' - - while (index < length) { - character = value.charAt(index) - - if (character !== tab && character !== space && character !== lineFeed) { - break - } - - subvalue += character - index++ - } - - character = value.charAt(index) - queue = '' - beforeURL = subvalue - - if (character === lessThan) { - index++ - - while (index < length) { - character = value.charAt(index) - - if (!isEnclosedURLCharacter(character)) { - break - } - - queue += character - index++ - } - - character = value.charAt(index) - - if (character === isEnclosedURLCharacter.delimiter) { - subvalue += lessThan + queue + character - index++ - } else { - if (commonmark) { - return - } - - index -= queue.length + 1 - queue = '' - } - } - - if (!queue) { - while (index < length) { - character = value.charAt(index) - - if (!isUnclosedURLCharacter(character)) { - break - } - - queue += character - index++ - } - - subvalue += queue - } - - if (!queue) { - return - } - - url = queue - queue = '' - - while (index < length) { - character = value.charAt(index) - - if (character !== tab && character !== space && character !== lineFeed) { - break - } - - queue += character - index++ - } - - character = value.charAt(index) - test = null - - if (character === quotationMark) { - test = quotationMark - } else if (character === apostrophe) { - test = apostrophe - } else if (character === leftParenthesis) { - test = rightParenthesis - } - - if (!test) { - queue = '' - index = subvalue.length - } else if (queue) { - subvalue += queue + character - index = subvalue.length - queue = '' - - while (index < length) { - character = value.charAt(index) - - if (character === test) { - break - } - - if (character === lineFeed) { - index++ - character = value.charAt(index) - - if (character === lineFeed || character === test) { - return - } - - queue += lineFeed - } - - queue += character - index++ - } - - character = value.charAt(index) - - if (character !== test) { - return - } - - beforeTitle = subvalue - subvalue += queue + character - index++ - title = queue - queue = '' - } else { - return - } - - while (index < length) { - character = value.charAt(index) - - if (character !== tab && character !== space) { - break - } - - subvalue += character - index++ - } - - character = value.charAt(index) - - if (!character || character === lineFeed) { - if (silent) { - return true - } - - beforeURL = eat(beforeURL).test().end - url = self.decode.raw(self.unescape(url), beforeURL, {nonTerminated: false}) - - if (title) { - beforeTitle = eat(beforeTitle).test().end - title = self.decode.raw(self.unescape(title), beforeTitle) - } - - return eat(subvalue)({ - type: 'definition', - identifier: normalize(identifier), - label: identifier, - title: title || null, - url: url - }) - } -} - -// Check if `character` can be inside an enclosed URI. -function isEnclosedURLCharacter(character) { - return ( - character !== greaterThan && - character !== leftSquareBracket && - character !== rightSquareBracket - ) -} - -isEnclosedURLCharacter.delimiter = greaterThan - -// Check if `character` can be inside an unclosed URI. -function isUnclosedURLCharacter(character) { - return ( - character !== leftSquareBracket && - character !== rightSquareBracket && - !whitespace(character) - ) -} diff --git a/packages/remark-parse/lib/tokenize/delete.js b/packages/remark-parse/lib/tokenize/delete.js deleted file mode 100644 index 3513634b9..000000000 --- a/packages/remark-parse/lib/tokenize/delete.js +++ /dev/null @@ -1,60 +0,0 @@ -'use strict' - -var whitespace = require('is-whitespace-character') -var locate = require('../locate/delete') - -module.exports = strikethrough -strikethrough.locator = locate - -var tilde = '~' -var fence = '~~' - -function strikethrough(eat, value, silent) { - var self = this - var character = '' - var previous = '' - var preceding = '' - var subvalue = '' - var index - var length - var now - - if ( - !self.options.gfm || - value.charAt(0) !== tilde || - value.charAt(1) !== tilde || - whitespace(value.charAt(2)) - ) { - return - } - - index = 1 - length = value.length - now = eat.now() - now.column += 2 - now.offset += 2 - - while (++index < length) { - character = value.charAt(index) - - if ( - character === tilde && - previous === tilde && - (!preceding || !whitespace(preceding)) - ) { - /* istanbul ignore if - never used (yet) */ - if (silent) { - return true - } - - return eat(fence + subvalue + fence)({ - type: 'delete', - children: self.tokenizeInline(subvalue, now) - }) - } - - subvalue += previous - preceding = previous - previous = character - } -} diff --git a/packages/remark-parse/lib/tokenize/email.js b/packages/remark-parse/lib/tokenize/email.js deleted file mode 100644 index 08a34c91f..000000000 --- a/packages/remark-parse/lib/tokenize/email.js +++ /dev/null @@ -1,114 +0,0 @@ -'use strict' - -var decode = require('parse-entities') -var decimal = require('is-decimal') -var alphabetical = require('is-alphabetical') -var locate = require('../locate/email') - -module.exports = email -email.locator = locate -email.notInLink = true - -var plusSign = 43 // '+' -var dash = 45 // '-' -var dot = 46 // '.' -var atSign = 64 // '@' -var underscore = 95 // '_' - -function email(eat, value, silent) { - var self = this - var gfm = self.options.gfm - var tokenizers = self.inlineTokenizers - var index = 0 - var length = value.length - var firstDot = -1 - var code - var content - var children - var exit - - if (!gfm) { - return - } - - code = value.charCodeAt(index) - - while ( - decimal(code) || - alphabetical(code) || - code === plusSign || - code === dash || - code === dot || - code === underscore - ) { - code = value.charCodeAt(++index) - } - - if (index === 0) { - return - } - - if (code !== atSign) { - return - } - - index++ - - while (index < length) { - code = value.charCodeAt(index) - - if ( - decimal(code) || - alphabetical(code) || - code === dash || - code === dot || - code === underscore - ) { - index++ - - if (firstDot === -1 && code === dot) { - firstDot = index - } - - continue - } - - break - } - - if ( - firstDot === -1 || - firstDot === index || - code === dash || - code === underscore - ) { - return - } - - if (code === dot) { - index-- - } - - content = value.slice(0, index) - - /* istanbul ignore if - never used (yet) */ - if (silent) { - return true - } - - exit = self.enterLink() - - // Temporarily remove all tokenizers except text in url. - self.inlineTokenizers = {text: tokenizers.text} - children = self.tokenizeInline(content, eat.now()) - self.inlineTokenizers = tokenizers - - exit() - - return eat(content)({ - type: 'link', - title: null, - url: 'mailto:' + decode(content, {nonTerminated: false}), - children: children - }) -} diff --git a/packages/remark-parse/lib/tokenize/emphasis.js b/packages/remark-parse/lib/tokenize/emphasis.js deleted file mode 100644 index 9484b5c37..000000000 --- a/packages/remark-parse/lib/tokenize/emphasis.js +++ /dev/null @@ -1,86 +0,0 @@ -'use strict' - -var trim = require('trim') -var word = require('is-word-character') -var whitespace = require('is-whitespace-character') -var locate = require('../locate/emphasis') - -module.exports = emphasis -emphasis.locator = locate - -var asterisk = '*' -var underscore = '_' -var backslash = '\\' - -function emphasis(eat, value, silent) { - var self = this - var index = 0 - var character = value.charAt(index) - var now - var pedantic - var marker - var queue - var subvalue - var length - var previous - - if (character !== asterisk && character !== underscore) { - return - } - - pedantic = self.options.pedantic - subvalue = character - marker = character - length = value.length - index++ - queue = '' - character = '' - - if (pedantic && whitespace(value.charAt(index))) { - return - } - - while (index < length) { - previous = character - character = value.charAt(index) - - if (character === marker && (!pedantic || !whitespace(previous))) { - character = value.charAt(++index) - - if (character !== marker) { - if (!trim(queue) || previous === marker) { - return - } - - if (!pedantic && marker === underscore && word(character)) { - queue += marker - continue - } - - /* istanbul ignore if - never used (yet) */ - if (silent) { - return true - } - - now = eat.now() - now.column++ - now.offset++ - - return eat(subvalue + queue + marker)({ - type: 'emphasis', - children: self.tokenizeInline(queue, now) - }) - } - - queue += marker - } - - if (!pedantic && character === backslash) { - queue += character - character = value.charAt(++index) - } - - queue += character - index++ - } -} diff --git a/packages/remark-parse/lib/tokenize/escape.js b/packages/remark-parse/lib/tokenize/escape.js deleted file mode 100644 index 1cac3532a..000000000 --- a/packages/remark-parse/lib/tokenize/escape.js +++ /dev/null @@ -1,34 +0,0 @@ -'use strict' - -var locate = require('../locate/escape') - -module.exports = escape -escape.locator = locate - -var lineFeed = '\n' -var backslash = '\\' - -function escape(eat, value, silent) { - var self = this - var character - var node - - if (value.charAt(0) === backslash) { - character = value.charAt(1) - - if (self.escape.indexOf(character) !== -1) { - /* istanbul ignore if - never used (yet) */ - if (silent) { - return true - } - - if (character === lineFeed) { - node = {type: 'break'} - } else { - node = {type: 'text', value: character} - } - - return eat(backslash + character)(node) - } - } -} diff --git a/packages/remark-parse/lib/tokenize/heading-atx.js b/packages/remark-parse/lib/tokenize/heading-atx.js deleted file mode 100644 index dfa2849fb..000000000 --- a/packages/remark-parse/lib/tokenize/heading-atx.js +++ /dev/null @@ -1,135 +0,0 @@ -'use strict' - -module.exports = atxHeading - -var lineFeed = '\n' -var tab = '\t' -var space = ' ' -var numberSign = '#' - -var maxFenceCount = 6 - -function atxHeading(eat, value, silent) { - var self = this - var pedantic = self.options.pedantic - var length = value.length + 1 - var index = -1 - var now = eat.now() - var subvalue = '' - var content = '' - var character - var queue - var depth - - // Eat initial spacing. - while (++index < length) { - character = value.charAt(index) - - if (character !== space && character !== tab) { - index-- - break - } - - subvalue += character - } - - // Eat hashes. - depth = 0 - - while (++index <= length) { - character = value.charAt(index) - - if (character !== numberSign) { - index-- - break - } - - subvalue += character - depth++ - } - - if (depth > maxFenceCount) { - return - } - - if (!depth || (!pedantic && value.charAt(index + 1) === numberSign)) { - return - } - - length = value.length + 1 - - // Eat intermediate white-space. - queue = '' - - while (++index < length) { - character = value.charAt(index) - - if (character !== space && character !== tab) { - index-- - break - } - - queue += character - } - - // Exit when not in pedantic mode without spacing. - if (!pedantic && queue.length === 0 && character && character !== lineFeed) { - return - } - - if (silent) { - return true - } - - // Eat content. - subvalue += queue - queue = '' - content = '' - - while (++index < length) { - character = value.charAt(index) - - if (!character || character === lineFeed) { - break - } - - if (character !== space && character !== tab && character !== numberSign) { - content += queue + character - queue = '' - continue - } - - while (character === space || character === tab) { - queue += character - character = value.charAt(++index) - } - - // `#` without a queue is part of the content. - if (!pedantic && content && !queue && character === numberSign) { - content += character - continue - } - - while (character === numberSign) { - queue += character - character = value.charAt(++index) - } - - while (character === space || character === tab) { - queue += character - character = value.charAt(++index) - } - - index-- - } - - now.column += subvalue.length - now.offset += subvalue.length - subvalue += content + queue - - return eat(subvalue)({ - type: 'heading', - depth: depth, - children: self.tokenizeInline(content, now) - }) -} diff --git a/packages/remark-parse/lib/tokenize/heading-setext.js b/packages/remark-parse/lib/tokenize/heading-setext.js deleted file mode 100644 index 142762345..000000000 --- a/packages/remark-parse/lib/tokenize/heading-setext.js +++ /dev/null @@ -1,102 +0,0 @@ -'use strict' - -module.exports = setextHeading - -var lineFeed = '\n' -var tab = '\t' -var space = ' ' -var equalsTo = '=' -var dash = '-' - -var maxIndent = 3 - -var equalsToDepth = 1 -var dashDepth = 2 - -function setextHeading(eat, value, silent) { - var self = this - var now = eat.now() - var length = value.length - var index = -1 - var subvalue = '' - var content - var queue - var character - var marker - var depth - - // Eat initial indentation. - while (++index < length) { - character = value.charAt(index) - - if (character !== space || index >= maxIndent) { - index-- - break - } - - subvalue += character - } - - // Eat content. - content = '' - queue = '' - - while (++index < length) { - character = value.charAt(index) - - if (character === lineFeed) { - index-- - break - } - - if (character === space || character === tab) { - queue += character - } else { - content += queue + character - queue = '' - } - } - - now.column += subvalue.length - now.offset += subvalue.length - subvalue += content + queue - - // Ensure the content is followed by a newline and a valid marker. - character = value.charAt(++index) - marker = value.charAt(++index) - - if (character !== lineFeed || (marker !== equalsTo && marker !== dash)) { - return - } - - subvalue += character - - // Eat Setext-line. - queue = marker - depth = marker === equalsTo ? equalsToDepth : dashDepth - - while (++index < length) { - character = value.charAt(index) - - if (character !== marker) { - if (character !== lineFeed) { - return - } - - index-- - break - } - - queue += character - } - - if (silent) { - return true - } - - return eat(subvalue + queue)({ - type: 'heading', - depth: depth, - children: self.tokenizeInline(content, now) - }) -} diff --git a/packages/remark-parse/lib/tokenize/html-block.js b/packages/remark-parse/lib/tokenize/html-block.js deleted file mode 100644 index 33571f630..000000000 --- a/packages/remark-parse/lib/tokenize/html-block.js +++ /dev/null @@ -1,111 +0,0 @@ -'use strict' - -var openCloseTag = require('../util/html').openCloseTag - -module.exports = blockHtml - -var tab = '\t' -var space = ' ' -var lineFeed = '\n' -var lessThan = '<' - -var rawOpenExpression = /^<(script|pre|style)(?=(\s|>|$))/i -var rawCloseExpression = /<\/(script|pre|style)>/i -var commentOpenExpression = /^/ -var instructionOpenExpression = /^<\?/ -var instructionCloseExpression = /\?>/ -var directiveOpenExpression = /^/ -var cdataOpenExpression = /^/ -var elementCloseExpression = /^$/ -var otherElementOpenExpression = new RegExp(openCloseTag.source + '\\s*$') - -function blockHtml(eat, value, silent) { - var self = this - var blocks = self.options.blocks.join('|') - var elementOpenExpression = new RegExp( - '^|$))', - 'i' - ) - var length = value.length - var index = 0 - var next - var line - var offset - var character - var count - var sequence - var subvalue - - var sequences = [ - [rawOpenExpression, rawCloseExpression, true], - [commentOpenExpression, commentCloseExpression, true], - [instructionOpenExpression, instructionCloseExpression, true], - [directiveOpenExpression, directiveCloseExpression, true], - [cdataOpenExpression, cdataCloseExpression, true], - [elementOpenExpression, elementCloseExpression, true], - [otherElementOpenExpression, elementCloseExpression, false] - ] - - // Eat initial spacing. - while (index < length) { - character = value.charAt(index) - - if (character !== tab && character !== space) { - break - } - - index++ - } - - if (value.charAt(index) !== lessThan) { - return - } - - next = value.indexOf(lineFeed, index + 1) - next = next === -1 ? length : next - line = value.slice(index, next) - offset = -1 - count = sequences.length - - while (++offset < count) { - if (sequences[offset][0].test(line)) { - sequence = sequences[offset] - break - } - } - - if (!sequence) { - return - } - - if (silent) { - return sequence[2] - } - - index = next - - if (!sequence[1].test(line)) { - while (index < length) { - next = value.indexOf(lineFeed, index + 1) - next = next === -1 ? length : next - line = value.slice(index + 1, next) - - if (sequence[1].test(line)) { - if (line) { - index = next - } - - break - } - - index = next - } - } - - subvalue = value.slice(0, index) - - return eat(subvalue)({type: 'html', value: subvalue}) -} diff --git a/packages/remark-parse/lib/tokenize/html-inline.js b/packages/remark-parse/lib/tokenize/html-inline.js deleted file mode 100644 index cca4fb40a..000000000 --- a/packages/remark-parse/lib/tokenize/html-inline.js +++ /dev/null @@ -1,59 +0,0 @@ -'use strict' - -var alphabetical = require('is-alphabetical') -var locate = require('../locate/tag') -var tag = require('../util/html').tag - -module.exports = inlineHTML -inlineHTML.locator = locate - -var lessThan = '<' -var questionMark = '?' -var exclamationMark = '!' -var slash = '/' - -var htmlLinkOpenExpression = /^/i - -function inlineHTML(eat, value, silent) { - var self = this - var length = value.length - var character - var subvalue - - if (value.charAt(0) !== lessThan || length < 3) { - return - } - - character = value.charAt(1) - - if ( - !alphabetical(character) && - character !== questionMark && - character !== exclamationMark && - character !== slash - ) { - return - } - - subvalue = value.match(tag) - - if (!subvalue) { - return - } - - /* istanbul ignore if - not used yet. */ - if (silent) { - return true - } - - subvalue = subvalue[0] - - if (!self.inLink && htmlLinkOpenExpression.test(subvalue)) { - self.inLink = true - } else if (self.inLink && htmlLinkCloseExpression.test(subvalue)) { - self.inLink = false - } - - return eat(subvalue)({type: 'html', value: subvalue}) -} diff --git a/packages/remark-parse/lib/tokenize/link.js b/packages/remark-parse/lib/tokenize/link.js deleted file mode 100644 index e9a0f6dde..000000000 --- a/packages/remark-parse/lib/tokenize/link.js +++ /dev/null @@ -1,367 +0,0 @@ -'use strict' - -var whitespace = require('is-whitespace-character') -var locate = require('../locate/link') - -module.exports = link -link.locator = locate - -var lineFeed = '\n' -var exclamationMark = '!' -var quotationMark = '"' -var apostrophe = "'" -var leftParenthesis = '(' -var rightParenthesis = ')' -var lessThan = '<' -var greaterThan = '>' -var leftSquareBracket = '[' -var backslash = '\\' -var rightSquareBracket = ']' -var graveAccent = '`' - -function link(eat, value, silent) { - var self = this - var subvalue = '' - var index = 0 - var character = value.charAt(0) - var pedantic = self.options.pedantic - var commonmark = self.options.commonmark - var gfm = self.options.gfm - var closed - var count - var opening - var beforeURL - var beforeTitle - var subqueue - var hasMarker - var isImage - var content - var marker - var length - var title - var depth - var queue - var url - var now - var exit - var node - - // Detect whether this is an image. - if (character === exclamationMark) { - isImage = true - subvalue = character - character = value.charAt(++index) - } - - // Eat the opening. - if (character !== leftSquareBracket) { - return - } - - // Exit when this is a link and we’re already inside a link. - if (!isImage && self.inLink) { - return - } - - subvalue += character - queue = '' - index++ - - // Eat the content. - length = value.length - now = eat.now() - depth = 0 - - now.column += index - now.offset += index - - while (index < length) { - character = value.charAt(index) - subqueue = character - - if (character === graveAccent) { - // Inline-code in link content. - count = 1 - - while (value.charAt(index + 1) === graveAccent) { - subqueue += character - index++ - count++ - } - - if (!opening) { - opening = count - } else if (count >= opening) { - opening = 0 - } - } else if (character === backslash) { - // Allow brackets to be escaped. - index++ - subqueue += value.charAt(index) - } else if ((!opening || gfm) && character === leftSquareBracket) { - // In GFM mode, brackets in code still count. In all other modes, - // they don’t. - depth++ - } else if ((!opening || gfm) && character === rightSquareBracket) { - if (depth) { - depth-- - } else { - if (value.charAt(index + 1) !== leftParenthesis) { - return - } - - subqueue += leftParenthesis - closed = true - index++ - - break - } - } - - queue += subqueue - subqueue = '' - index++ - } - - // Eat the content closing. - if (!closed) { - return - } - - content = queue - subvalue += queue + subqueue - index++ - - // Eat white-space. - while (index < length) { - character = value.charAt(index) - - if (!whitespace(character)) { - break - } - - subvalue += character - index++ - } - - // Eat the URL. - character = value.charAt(index) - queue = '' - beforeURL = subvalue - - if (character === lessThan) { - index++ - beforeURL += lessThan - - while (index < length) { - character = value.charAt(index) - - if (character === greaterThan) { - break - } - - if (commonmark && character === lineFeed) { - return - } - - queue += character - index++ - } - - if (value.charAt(index) !== greaterThan) { - return - } - - subvalue += lessThan + queue + greaterThan - url = queue - index++ - } else { - character = null - subqueue = '' - - while (index < length) { - character = value.charAt(index) - - if ( - subqueue && - (character === quotationMark || - character === apostrophe || - (commonmark && character === leftParenthesis)) - ) { - break - } - - if (whitespace(character)) { - if (!pedantic) { - break - } - - subqueue += character - } else { - if (character === leftParenthesis) { - depth++ - } else if (character === rightParenthesis) { - if (depth === 0) { - break - } - - depth-- - } - - queue += subqueue - subqueue = '' - - if (character === backslash) { - queue += backslash - character = value.charAt(++index) - } - - queue += character - } - - index++ - } - - subvalue += queue - url = queue - index = subvalue.length - } - - // Eat white-space. - queue = '' - - while (index < length) { - character = value.charAt(index) - - if (!whitespace(character)) { - break - } - - queue += character - index++ - } - - character = value.charAt(index) - subvalue += queue - - // Eat the title. - if ( - queue && - (character === quotationMark || - character === apostrophe || - (commonmark && character === leftParenthesis)) - ) { - index++ - subvalue += character - queue = '' - marker = character === leftParenthesis ? rightParenthesis : character - beforeTitle = subvalue - - // In commonmark-mode, things are pretty easy: the marker cannot occur - // inside the title. Non-commonmark does, however, support nested - // delimiters. - if (commonmark) { - while (index < length) { - character = value.charAt(index) - - if (character === marker) { - break - } - - if (character === backslash) { - queue += backslash - character = value.charAt(++index) - } - - index++ - queue += character - } - - character = value.charAt(index) - - if (character !== marker) { - return - } - - title = queue - subvalue += queue + character - index++ - - while (index < length) { - character = value.charAt(index) - - if (!whitespace(character)) { - break - } - - subvalue += character - index++ - } - } else { - subqueue = '' - - while (index < length) { - character = value.charAt(index) - - if (character === marker) { - if (hasMarker) { - queue += marker + subqueue - subqueue = '' - } - - hasMarker = true - } else if (!hasMarker) { - queue += character - } else if (character === rightParenthesis) { - subvalue += queue + marker + subqueue - title = queue - break - } else if (whitespace(character)) { - subqueue += character - } else { - queue += marker + subqueue + character - subqueue = '' - hasMarker = false - } - - index++ - } - } - } - - if (value.charAt(index) !== rightParenthesis) { - return - } - - /* istanbul ignore if - never used (yet) */ - if (silent) { - return true - } - - subvalue += rightParenthesis - - url = self.decode.raw(self.unescape(url), eat(beforeURL).test().end, { - nonTerminated: false - }) - - if (title) { - beforeTitle = eat(beforeTitle).test().end - title = self.decode.raw(self.unescape(title), beforeTitle) - } - - node = { - type: isImage ? 'image' : 'link', - title: title || null, - url: url - } - - if (isImage) { - node.alt = self.decode.raw(self.unescape(content), now) || null - } else { - exit = self.enterLink() - node.children = self.tokenizeInline(content, now) - exit() - } - - return eat(subvalue)(node) -} diff --git a/packages/remark-parse/lib/tokenize/list.js b/packages/remark-parse/lib/tokenize/list.js deleted file mode 100644 index d5b54efd9..000000000 --- a/packages/remark-parse/lib/tokenize/list.js +++ /dev/null @@ -1,446 +0,0 @@ -'use strict' - -var trim = require('trim') -var repeat = require('repeat-string') -var decimal = require('is-decimal') -var getIndent = require('../util/get-indentation') -var removeIndent = require('../util/remove-indentation') -var interrupt = require('../util/interrupt') - -module.exports = list - -var asterisk = '*' -var underscore = '_' -var plusSign = '+' -var dash = '-' -var dot = '.' -var space = ' ' -var lineFeed = '\n' -var tab = '\t' -var rightParenthesis = ')' -var lowercaseX = 'x' - -var tabSize = 4 -var looseListItemExpression = /\n\n(?!\s*$)/ -var taskItemExpression = /^\[([ X\tx])][ \t]/ -var bulletExpression = /^([ \t]*)([*+-]|\d+[.)])( {1,4}(?! )| |\t|$|(?=\n))([^\n]*)/ -var pedanticBulletExpression = /^([ \t]*)([*+-]|\d+[.)])([ \t]+)/ -var initialIndentExpression = /^( {1,4}|\t)?/gm - -function list(eat, value, silent) { - var self = this - var commonmark = self.options.commonmark - var pedantic = self.options.pedantic - var tokenizers = self.blockTokenizers - var interuptors = self.interruptList - var index = 0 - var length = value.length - var start = null - var size - var queue - var ordered - var character - var marker - var nextIndex - var startIndex - var prefixed - var currentMarker - var content - var line - var previousEmpty - var empty - var items - var allLines - var emptyLines - var item - var enterTop - var exitBlockquote - var spread = false - var node - var now - var end - var indented - - while (index < length) { - character = value.charAt(index) - - if (character !== tab && character !== space) { - break - } - - index++ - } - - character = value.charAt(index) - - if (character === asterisk || character === plusSign || character === dash) { - marker = character - ordered = false - } else { - ordered = true - queue = '' - - while (index < length) { - character = value.charAt(index) - - if (!decimal(character)) { - break - } - - queue += character - index++ - } - - character = value.charAt(index) - - if ( - !queue || - !(character === dot || (commonmark && character === rightParenthesis)) - ) { - return - } - - /* Slightly abusing `silent` mode, whose goal is to make interrupting - * paragraphs work. - * Well, that’s exactly what we want to do here: don’t interrupt: - * 2. here, because the “list” doesn’t start with `1`. */ - if (silent && queue !== '1') { - return - } - - start = parseInt(queue, 10) - marker = character - } - - character = value.charAt(++index) - - if ( - character !== space && - character !== tab && - (pedantic || (character !== lineFeed && character !== '')) - ) { - return - } - - if (silent) { - return true - } - - index = 0 - items = [] - allLines = [] - emptyLines = [] - - while (index < length) { - nextIndex = value.indexOf(lineFeed, index) - startIndex = index - prefixed = false - indented = false - - if (nextIndex === -1) { - nextIndex = length - } - - size = 0 - - while (index < length) { - character = value.charAt(index) - - if (character === tab) { - size += tabSize - (size % tabSize) - } else if (character === space) { - size++ - } else { - break - } - - index++ - } - - if (item && size >= item.indent) { - indented = true - } - - character = value.charAt(index) - currentMarker = null - - if (!indented) { - if ( - character === asterisk || - character === plusSign || - character === dash - ) { - currentMarker = character - index++ - size++ - } else { - queue = '' - - while (index < length) { - character = value.charAt(index) - - if (!decimal(character)) { - break - } - - queue += character - index++ - } - - character = value.charAt(index) - index++ - - if ( - queue && - (character === dot || (commonmark && character === rightParenthesis)) - ) { - currentMarker = character - size += queue.length + 1 - } - } - - if (currentMarker) { - character = value.charAt(index) - - if (character === tab) { - size += tabSize - (size % tabSize) - index++ - } else if (character === space) { - end = index + tabSize - - while (index < end) { - if (value.charAt(index) !== space) { - break - } - - index++ - size++ - } - - if (index === end && value.charAt(index) === space) { - index -= tabSize - 1 - size -= tabSize - 1 - } - } else if (character !== lineFeed && character !== '') { - currentMarker = null - } - } - } - - if (currentMarker) { - if (!pedantic && marker !== currentMarker) { - break - } - - prefixed = true - } else { - if (!commonmark && !indented && value.charAt(startIndex) === space) { - indented = true - } else if (commonmark && item) { - indented = size >= item.indent || size > tabSize - } - - prefixed = false - index = startIndex - } - - line = value.slice(startIndex, nextIndex) - content = startIndex === index ? line : value.slice(index, nextIndex) - - if ( - currentMarker === asterisk || - currentMarker === underscore || - currentMarker === dash - ) { - if (tokenizers.thematicBreak.call(self, eat, line, true)) { - break - } - } - - previousEmpty = empty - empty = !prefixed && !trim(content).length - - if (indented && item) { - item.value = item.value.concat(emptyLines, line) - allLines = allLines.concat(emptyLines, line) - emptyLines = [] - } else if (prefixed) { - if (emptyLines.length !== 0) { - spread = true - item.value.push('') - item.trail = emptyLines.concat() - } - - item = { - value: [line], - indent: size, - trail: [] - } - - items.push(item) - allLines = allLines.concat(emptyLines, line) - emptyLines = [] - } else if (empty) { - if (previousEmpty && !commonmark) { - break - } - - emptyLines.push(line) - } else { - if (previousEmpty) { - break - } - - if (interrupt(interuptors, tokenizers, self, [eat, line, true])) { - break - } - - item.value = item.value.concat(emptyLines, line) - allLines = allLines.concat(emptyLines, line) - emptyLines = [] - } - - index = nextIndex + 1 - } - - node = eat(allLines.join(lineFeed)).reset({ - type: 'list', - ordered: ordered, - start: start, - spread: spread, - children: [] - }) - - enterTop = self.enterList() - exitBlockquote = self.enterBlock() - index = -1 - length = items.length - - while (++index < length) { - item = items[index].value.join(lineFeed) - now = eat.now() - - eat(item)(listItem(self, item, now), node) - - item = items[index].trail.join(lineFeed) - - if (index !== length - 1) { - item += lineFeed - } - - eat(item) - } - - enterTop() - exitBlockquote() - - return node -} - -function listItem(ctx, value, position) { - var offsets = ctx.offset - var fn = ctx.options.pedantic ? pedanticListItem : normalListItem - var checked = null - var task - var indent - - value = fn.apply(null, arguments) - - if (ctx.options.gfm) { - task = value.match(taskItemExpression) - - if (task) { - indent = task[0].length - checked = task[1].toLowerCase() === lowercaseX - offsets[position.line] += indent - value = value.slice(indent) - } - } - - return { - type: 'listItem', - spread: looseListItemExpression.test(value), - checked: checked, - children: ctx.tokenizeBlock(value, position) - } -} - -// Create a list-item using overly simple mechanics. -function pedanticListItem(ctx, value, position) { - var offsets = ctx.offset - var line = position.line - - // Remove the list-item’s bullet. - value = value.replace(pedanticBulletExpression, replacer) - - // The initial line was also matched by the below, so we reset the `line`. - line = position.line - - return value.replace(initialIndentExpression, replacer) - - // A simple replacer which removed all matches, and adds their length to - // `offset`. - function replacer($0) { - offsets[line] = (offsets[line] || 0) + $0.length - line++ - - return '' - } -} - -// Create a list-item using sane mechanics. -function normalListItem(ctx, value, position) { - var offsets = ctx.offset - var line = position.line - var max - var bullet - var rest - var lines - var trimmedLines - var index - var length - - // Remove the list-item’s bullet. - value = value.replace(bulletExpression, replacer) - - lines = value.split(lineFeed) - - trimmedLines = removeIndent(value, getIndent(max).indent).split(lineFeed) - - // We replaced the initial bullet with something else above, which was used - // to trick `removeIndentation` into removing some more characters when - // possible. However, that could result in the initial line to be stripped - // more than it should be. - trimmedLines[0] = rest - - offsets[line] = (offsets[line] || 0) + bullet.length - line++ - - index = 0 - length = lines.length - - while (++index < length) { - offsets[line] = - (offsets[line] || 0) + lines[index].length - trimmedLines[index].length - line++ - } - - return trimmedLines.join(lineFeed) - - /* eslint-disable-next-line max-params */ - function replacer($0, $1, $2, $3, $4) { - bullet = $1 + $2 + $3 - rest = $4 - - // Make sure that the first nine numbered list items can indent with an - // extra space. That is, when the bullet did not receive an extra final - // space. - if (Number($2) < 10 && bullet.length % 2 === 1) { - $2 = space + $2 - } - - max = $1 + repeat(space, $2.length) + $3 - - return max + rest - } -} diff --git a/packages/remark-parse/lib/tokenize/paragraph.js b/packages/remark-parse/lib/tokenize/paragraph.js deleted file mode 100644 index e8d03a9a1..000000000 --- a/packages/remark-parse/lib/tokenize/paragraph.js +++ /dev/null @@ -1,98 +0,0 @@ -'use strict' - -var trim = require('trim') -var trimTrailingLines = require('trim-trailing-lines') -var interrupt = require('../util/interrupt') - -module.exports = paragraph - -var tab = '\t' -var lineFeed = '\n' -var space = ' ' - -var tabSize = 4 - -// Tokenise paragraph. -function paragraph(eat, value, silent) { - var self = this - var settings = self.options - var commonmark = settings.commonmark - var tokenizers = self.blockTokenizers - var interruptors = self.interruptParagraph - var index = value.indexOf(lineFeed) - var length = value.length - var position - var subvalue - var character - var size - var now - - while (index < length) { - // Eat everything if there’s no following newline. - if (index === -1) { - index = length - break - } - - // Stop if the next character is NEWLINE. - if (value.charAt(index + 1) === lineFeed) { - break - } - - // In commonmark-mode, following indented lines are part of the paragraph. - if (commonmark) { - size = 0 - position = index + 1 - - while (position < length) { - character = value.charAt(position) - - if (character === tab) { - size = tabSize - break - } else if (character === space) { - size++ - } else { - break - } - - position++ - } - - if (size >= tabSize && character !== lineFeed) { - index = value.indexOf(lineFeed, index + 1) - continue - } - } - - subvalue = value.slice(index + 1) - - // Check if the following code contains a possible block. - if (interrupt(interruptors, tokenizers, self, [eat, subvalue, true])) { - break - } - - position = index - index = value.indexOf(lineFeed, index + 1) - - if (index !== -1 && trim(value.slice(position, index)) === '') { - index = position - break - } - } - - subvalue = value.slice(0, index) - - /* istanbul ignore if - never used (yet) */ - if (silent) { - return true - } - - now = eat.now() - subvalue = trimTrailingLines(subvalue) - - return eat(subvalue)({ - type: 'paragraph', - children: self.tokenizeInline(subvalue, now) - }) -} diff --git a/packages/remark-parse/lib/tokenize/reference.js b/packages/remark-parse/lib/tokenize/reference.js deleted file mode 100644 index 420b04d29..000000000 --- a/packages/remark-parse/lib/tokenize/reference.js +++ /dev/null @@ -1,188 +0,0 @@ -'use strict' - -var whitespace = require('is-whitespace-character') -var locate = require('../locate/link') -var normalize = require('../util/normalize') - -module.exports = reference -reference.locator = locate - -var link = 'link' -var image = 'image' -var shortcut = 'shortcut' -var collapsed = 'collapsed' -var full = 'full' -var exclamationMark = '!' -var leftSquareBracket = '[' -var backslash = '\\' -var rightSquareBracket = ']' - -function reference(eat, value, silent) { - var self = this - var commonmark = self.options.commonmark - var character = value.charAt(0) - var index = 0 - var length = value.length - var subvalue = '' - var intro = '' - var type = link - var referenceType = shortcut - var content - var identifier - var now - var node - var exit - var queue - var bracketed - var depth - - // Check whether we’re eating an image. - if (character === exclamationMark) { - type = image - intro = character - character = value.charAt(++index) - } - - if (character !== leftSquareBracket) { - return - } - - index++ - intro += character - queue = '' - - // Eat the text. - depth = 0 - - while (index < length) { - character = value.charAt(index) - - if (character === leftSquareBracket) { - bracketed = true - depth++ - } else if (character === rightSquareBracket) { - if (!depth) { - break - } - - depth-- - } - - if (character === backslash) { - queue += backslash - character = value.charAt(++index) - } - - queue += character - index++ - } - - subvalue = queue - content = queue - character = value.charAt(index) - - if (character !== rightSquareBracket) { - return - } - - index++ - subvalue += character - queue = '' - - if (!commonmark) { - // The original markdown syntax definition explicitly allows for whitespace - // between the link text and link label; commonmark departs from this, in - // part to improve support for shortcut reference links - while (index < length) { - character = value.charAt(index) - - if (!whitespace(character)) { - break - } - - queue += character - index++ - } - } - - character = value.charAt(index) - - if (character === leftSquareBracket) { - identifier = '' - queue += character - index++ - - while (index < length) { - character = value.charAt(index) - - if (character === leftSquareBracket || character === rightSquareBracket) { - break - } - - if (character === backslash) { - identifier += backslash - character = value.charAt(++index) - } - - identifier += character - index++ - } - - character = value.charAt(index) - - if (character === rightSquareBracket) { - referenceType = identifier ? full : collapsed - queue += identifier + character - index++ - } else { - identifier = '' - } - - subvalue += queue - queue = '' - } else { - if (!content) { - return - } - - identifier = content - } - - // Brackets cannot be inside the identifier. - if (referenceType !== full && bracketed) { - return - } - - subvalue = intro + subvalue - - if (type === link && self.inLink) { - return null - } - - /* istanbul ignore if - never used (yet) */ - if (silent) { - return true - } - - now = eat.now() - now.column += intro.length - now.offset += intro.length - identifier = referenceType === full ? identifier : content - - node = { - type: type + 'Reference', - identifier: normalize(identifier), - label: identifier, - referenceType: referenceType - } - - if (type === link) { - exit = self.enterLink() - node.children = self.tokenizeInline(content, now) - exit() - } else { - node.alt = self.decode.raw(self.unescape(content), now) || null - } - - return eat(subvalue)(node) -} diff --git a/packages/remark-parse/lib/tokenize/strong.js b/packages/remark-parse/lib/tokenize/strong.js deleted file mode 100644 index 62d552486..000000000 --- a/packages/remark-parse/lib/tokenize/strong.js +++ /dev/null @@ -1,85 +0,0 @@ -'use strict' - -var trim = require('trim') -var whitespace = require('is-whitespace-character') -var locate = require('../locate/strong') - -module.exports = strong -strong.locator = locate - -var backslash = '\\' -var asterisk = '*' -var underscore = '_' - -function strong(eat, value, silent) { - var self = this - var index = 0 - var character = value.charAt(index) - var now - var pedantic - var marker - var queue - var subvalue - var length - var previous - - if ( - (character !== asterisk && character !== underscore) || - value.charAt(++index) !== character - ) { - return - } - - pedantic = self.options.pedantic - marker = character - subvalue = marker + marker - length = value.length - index++ - queue = '' - character = '' - - if (pedantic && whitespace(value.charAt(index))) { - return - } - - while (index < length) { - previous = character - character = value.charAt(index) - - if ( - character === marker && - value.charAt(index + 1) === marker && - (!pedantic || !whitespace(previous)) - ) { - character = value.charAt(index + 2) - - if (character !== marker) { - if (!trim(queue)) { - return - } - - /* istanbul ignore if - never used (yet) */ - if (silent) { - return true - } - - now = eat.now() - now.column += 2 - now.offset += 2 - - return eat(subvalue + queue + subvalue)({ - type: 'strong', - children: self.tokenizeInline(queue, now) - }) - } - } - - if (!pedantic && character === backslash) { - queue += character - character = value.charAt(++index) - } - - queue += character - index++ - } -} diff --git a/packages/remark-parse/lib/tokenize/table.js b/packages/remark-parse/lib/tokenize/table.js deleted file mode 100644 index 4a3589216..000000000 --- a/packages/remark-parse/lib/tokenize/table.js +++ /dev/null @@ -1,232 +0,0 @@ -'use strict' - -var whitespace = require('is-whitespace-character') - -module.exports = table - -var tab = '\t' -var lineFeed = '\n' -var space = ' ' -var dash = '-' -var colon = ':' -var backslash = '\\' -var verticalBar = '|' - -var minColumns = 1 -var minRows = 2 - -var left = 'left' -var center = 'center' -var right = 'right' - -function table(eat, value, silent) { - var self = this - var index - var alignments - var alignment - var subvalue - var row - var length - var lines - var queue - var character - var hasDash - var align - var cell - var preamble - var now - var position - var lineCount - var line - var rows - var table - var lineIndex - var pipeIndex - var first - - // Exit when not in gfm-mode. - if (!self.options.gfm) { - return - } - - // Get the rows. - // Detecting tables soon is hard, so there are some checks for performance - // here, such as the minimum number of rows, and allowed characters in the - // alignment row. - index = 0 - lineCount = 0 - length = value.length + 1 - lines = [] - - while (index < length) { - lineIndex = value.indexOf(lineFeed, index) - pipeIndex = value.indexOf(verticalBar, index + 1) - - if (lineIndex === -1) { - lineIndex = value.length - } - - if (pipeIndex === -1 || pipeIndex > lineIndex) { - if (lineCount < minRows) { - return - } - - break - } - - lines.push(value.slice(index, lineIndex)) - lineCount++ - index = lineIndex + 1 - } - - // Parse the alignment row. - subvalue = lines.join(lineFeed) - alignments = lines.splice(1, 1)[0] || [] - index = 0 - length = alignments.length - lineCount-- - alignment = false - align = [] - - while (index < length) { - character = alignments.charAt(index) - - if (character === verticalBar) { - hasDash = null - - if (alignment === false) { - if (first === false) { - return - } - } else { - align.push(alignment) - alignment = false - } - - first = false - } else if (character === dash) { - hasDash = true - alignment = alignment || null - } else if (character === colon) { - if (alignment === left) { - alignment = center - } else if (hasDash && alignment === null) { - alignment = right - } else { - alignment = left - } - } else if (!whitespace(character)) { - return - } - - index++ - } - - if (alignment !== false) { - align.push(alignment) - } - - // Exit when without enough columns. - if (align.length < minColumns) { - return - } - - /* istanbul ignore if - never used (yet) */ - if (silent) { - return true - } - - // Parse the rows. - position = -1 - rows = [] - - table = eat(subvalue).reset({type: 'table', align: align, children: rows}) - - while (++position < lineCount) { - line = lines[position] - row = {type: 'tableRow', children: []} - - // Eat a newline character when this is not the first row. - if (position) { - eat(lineFeed) - } - - // Eat the row. - eat(line).reset(row, table) - - length = line.length + 1 - index = 0 - queue = '' - cell = '' - preamble = true - - while (index < length) { - character = line.charAt(index) - - if (character === tab || character === space) { - if (cell) { - queue += character - } else { - eat(character) - } - - index++ - continue - } - - if (character === '' || character === verticalBar) { - if (preamble) { - eat(character) - } else { - if ((cell || character) && !preamble) { - subvalue = cell - - if (queue.length > 1) { - if (character) { - subvalue += queue.slice(0, -1) - queue = queue.charAt(queue.length - 1) - } else { - subvalue += queue - queue = '' - } - } - - now = eat.now() - - eat(subvalue)( - {type: 'tableCell', children: self.tokenizeInline(cell, now)}, - row - ) - } - - eat(queue + character) - - queue = '' - cell = '' - } - } else { - if (queue) { - cell += queue - queue = '' - } - - cell += character - - if (character === backslash && index !== length - 2) { - cell += line.charAt(index + 1) - index++ - } - } - - preamble = false - index++ - } - - // Eat the alignment row. - if (!position) { - eat(lineFeed + alignments) - } - } - - return table -} diff --git a/packages/remark-parse/lib/tokenize/text.js b/packages/remark-parse/lib/tokenize/text.js deleted file mode 100644 index c9085ee30..000000000 --- a/packages/remark-parse/lib/tokenize/text.js +++ /dev/null @@ -1,57 +0,0 @@ -'use strict' - -module.exports = text - -function text(eat, value, silent) { - var self = this - var methods - var tokenizers - var index - var length - var subvalue - var position - var tokenizer - var name - var min - var now - - /* istanbul ignore if - never used (yet) */ - if (silent) { - return true - } - - methods = self.inlineMethods - length = methods.length - tokenizers = self.inlineTokenizers - index = -1 - min = value.length - - while (++index < length) { - name = methods[index] - - if (name === 'text' || !tokenizers[name]) { - continue - } - - tokenizer = tokenizers[name].locator - - if (!tokenizer) { - eat.file.fail('Missing locator: `' + name + '`') - } - - position = tokenizer.call(self, value, 1) - - if (position !== -1 && position < min) { - min = position - } - } - - subvalue = value.slice(0, min) - now = eat.now() - - self.decode(subvalue, now, handler) - - function handler(content, position, source) { - eat(source || content)({type: 'text', value: content}) - } -} diff --git a/packages/remark-parse/lib/tokenize/thematic-break.js b/packages/remark-parse/lib/tokenize/thematic-break.js deleted file mode 100644 index 6844c8c70..000000000 --- a/packages/remark-parse/lib/tokenize/thematic-break.js +++ /dev/null @@ -1,70 +0,0 @@ -'use strict' - -module.exports = thematicBreak - -var tab = '\t' -var lineFeed = '\n' -var space = ' ' -var asterisk = '*' -var dash = '-' -var underscore = '_' - -var maxCount = 3 - -function thematicBreak(eat, value, silent) { - var index = -1 - var length = value.length + 1 - var subvalue = '' - var character - var marker - var markerCount - var queue - - while (++index < length) { - character = value.charAt(index) - - if (character !== tab && character !== space) { - break - } - - subvalue += character - } - - if ( - character !== asterisk && - character !== dash && - character !== underscore - ) { - return - } - - marker = character - subvalue += character - markerCount = 1 - queue = '' - - while (++index < length) { - character = value.charAt(index) - - if (character === marker) { - markerCount++ - subvalue += queue + marker - queue = '' - } else if (character === space) { - queue += character - } else if ( - markerCount >= maxCount && - (!character || character === lineFeed) - ) { - subvalue += queue - - if (silent) { - return true - } - - return eat(subvalue)({type: 'thematicBreak'}) - } else { - return - } - } -} diff --git a/packages/remark-parse/lib/tokenize/url.js b/packages/remark-parse/lib/tokenize/url.js deleted file mode 100644 index 30077cace..000000000 --- a/packages/remark-parse/lib/tokenize/url.js +++ /dev/null @@ -1,210 +0,0 @@ -'use strict' - -var ccount = require('ccount') -var decode = require('parse-entities') -var decimal = require('is-decimal') -var alphabetical = require('is-alphabetical') -var whitespace = require('is-whitespace-character') -var locate = require('../locate/url') - -module.exports = url -url.locator = locate -url.notInLink = true - -var exclamationMark = 33 // '!' -var ampersand = 38 // '&' -var rightParenthesis = 41 // ')' -var asterisk = 42 // '*' -var comma = 44 // ',' -var dash = 45 // '-' -var dot = 46 // '.' -var colon = 58 // ':' -var semicolon = 59 // ';' -var questionMark = 63 // '?' -var lessThan = 60 // '<' -var underscore = 95 // '_' -var tilde = 126 // '~' - -var leftParenthesisCharacter = '(' -var rightParenthesisCharacter = ')' - -function url(eat, value, silent) { - var self = this - var gfm = self.options.gfm - var tokenizers = self.inlineTokenizers - var length = value.length - var previousDot = -1 - var protocolless = false - var dots - var lastTwoPartsStart - var start - var index - var pathStart - var path - var code - var end - var leftCount - var rightCount - var content - var children - var url - var exit - - if (!gfm) { - return - } - - // `WWW.` doesn’t work. - if (value.slice(0, 4) === 'www.') { - protocolless = true - index = 4 - } else if (value.slice(0, 7).toLowerCase() === 'http://') { - index = 7 - } else if (value.slice(0, 8).toLowerCase() === 'https://') { - index = 8 - } else { - return - } - - // Act as if the starting boundary is a dot. - previousDot = index - 1 - - // Parse a valid domain. - start = index - dots = [] - - while (index < length) { - code = value.charCodeAt(index) - - if (code === dot) { - // Dots may not appear after each other. - if (previousDot === index - 1) { - break - } - - dots.push(index) - previousDot = index - index++ - continue - } - - if ( - decimal(code) || - alphabetical(code) || - code === dash || - code === underscore - ) { - index++ - continue - } - - break - } - - // Ignore a final dot: - if (code === dot) { - dots.pop() - index-- - } - - // If there are not dots, exit. - if (dots[0] === undefined) { - return - } - - // If there is an underscore in the last two domain parts, exit: - // `www.example.c_m` and `www.ex_ample.com` are not OK, but - // `www.sub_domain.example.com` is. - lastTwoPartsStart = dots.length < 2 ? start : dots[dots.length - 2] + 1 - - if (value.slice(lastTwoPartsStart, index).indexOf('_') !== -1) { - return - } - - /* istanbul ignore if - never used (yet) */ - if (silent) { - return true - } - - end = index - pathStart = index - - // Parse a path. - while (index < length) { - code = value.charCodeAt(index) - - if (whitespace(code) || code === lessThan) { - break - } - - index++ - - if ( - code === exclamationMark || - code === asterisk || - code === comma || - code === dot || - code === colon || - code === questionMark || - code === underscore || - code === tilde - ) { - // Empty - } else { - end = index - } - } - - index = end - - // If the path ends in a closing paren, and the count of closing parens is - // higher than the opening count, then remove the supefluous closing parens. - if (value.charCodeAt(index - 1) === rightParenthesis) { - path = value.slice(pathStart, index) - leftCount = ccount(path, leftParenthesisCharacter) - rightCount = ccount(path, rightParenthesisCharacter) - - while (rightCount > leftCount) { - index = pathStart + path.lastIndexOf(rightParenthesisCharacter) - path = value.slice(pathStart, index) - rightCount-- - } - } - - if (value.charCodeAt(index - 1) === semicolon) { - // GitHub doesn’t document this, but final semicolons aren’t paret of the - // URL either. - index-- - - // // If the path ends in what looks like an entity, it’s not part of the path. - if (alphabetical(value.charCodeAt(index - 1))) { - end = index - 2 - - while (alphabetical(value.charCodeAt(end))) { - end-- - } - - if (value.charCodeAt(end) === ampersand) { - index = end - } - } - } - - content = value.slice(0, index) - url = decode(content, {nonTerminated: false}) - - if (protocolless) { - url = 'http://' + url - } - - exit = self.enterLink() - - // Temporarily remove all tokenizers except text in url. - self.inlineTokenizers = {text: tokenizers.text} - children = self.tokenizeInline(content, eat.now()) - self.inlineTokenizers = tokenizers - - exit() - - return eat(content)({type: 'link', title: null, url: url, children: children}) -} diff --git a/packages/remark-parse/lib/tokenizer.js b/packages/remark-parse/lib/tokenizer.js deleted file mode 100644 index 42d3cf127..000000000 --- a/packages/remark-parse/lib/tokenizer.js +++ /dev/null @@ -1,318 +0,0 @@ -'use strict' - -module.exports = factory - -// Construct a tokenizer. This creates both `tokenizeInline` and `tokenizeBlock`. -function factory(type) { - return tokenize - - // Tokenizer for a bound `type`. - function tokenize(value, location) { - var self = this - var offset = self.offset - var tokens = [] - var methods = self[type + 'Methods'] - var tokenizers = self[type + 'Tokenizers'] - var line = location.line - var column = location.column - var index - var length - var method - var name - var matched - var valueLength - - // Trim white space only lines. - if (!value) { - return tokens - } - - // Expose on `eat`. - eat.now = now - eat.file = self.file - - // Sync initial offset. - updatePosition('') - - // Iterate over `value`, and iterate over all tokenizers. When one eats - // something, re-iterate with the remaining value. If no tokenizer eats, - // something failed (should not happen) and an exception is thrown. - while (value) { - index = -1 - length = methods.length - matched = false - - while (++index < length) { - 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) && - /* istanbul ignore next */ (!method.notInList || !self.inList) && - /* istanbul ignore next */ (!method.notInBlock || !self.inBlock) && - (!method.notInLink || !self.inLink) - ) { - valueLength = value.length - - method.apply(self, [eat, value]) - - matched = valueLength !== value.length - - if (matched) { - break - } - } - } - - /* istanbul ignore if */ - if (!matched) { - self.file.fail(new Error('Infinite loop'), eat.now()) - } - } - - self.eof = now() - - return tokens - - // Update line, column, and offset based on `value`. - function updatePosition(subvalue) { - var lastIndex = -1 - var index = subvalue.indexOf('\n') - - while (index !== -1) { - line++ - lastIndex = index - index = subvalue.indexOf('\n', index + 1) - } - - if (lastIndex === -1) { - column += subvalue.length - } else { - column = subvalue.length - lastIndex - } - - if (line in offset) { - if (lastIndex !== -1) { - column += offset[line] - } else if (column <= offset[line]) { - column = offset[line] + 1 - } - } - } - - // Get offset. Called before the first character is eaten to retrieve the - // range’s offsets. - function getOffset() { - var indentation = [] - var pos = line + 1 - - // Done. Called when the last character is eaten to retrieve the range’s - // offsets. - return function () { - var last = line + 1 - - while (pos < last) { - indentation.push((offset[pos] || 0) + 1) - - pos++ - } - - return indentation - } - } - - // Get the current position. - function now() { - var pos = {line: line, column: column} - - pos.offset = self.toOffset(pos) - - return pos - } - - // Store position information for a node. - function Position(start) { - this.start = start - this.end = now() - } - - // Throw when a value is incorrectly eaten. This shouldn’t happen but will - // throw on new, incorrect rules. - function validateEat(subvalue) { - /* istanbul ignore if */ - if (value.slice(0, subvalue.length) !== subvalue) { - // Capture stack-trace. - self.file.fail( - new Error( - 'Incorrectly eaten value: please report this warning on https://git.io/vg5Ft' - ), - now() - ) - } - } - - // Mark position and patch `node.position`. - function position() { - var before = now() - - return update - - // Add the position to a node. - function update(node, indent) { - var previous = node.position - var start = previous ? previous.start : before - var combined = [] - var n = previous && previous.end.line - var l = before.line - - node.position = new Position(start) - - // If there was already a `position`, this node was merged. Fixing - // `start` wasn’t hard, but the indent is different. Especially - // because some information, the indent between `n` and `l` wasn’t - // tracked. Luckily, that space is (should be?) empty, so we can - // safely check for it now. - if (previous && indent && previous.indent) { - combined = previous.indent - - if (n < l) { - while (++n < l) { - combined.push((offset[n] || 0) + 1) - } - - combined.push(before.column) - } - - indent = combined.concat(indent) - } - - node.position.indent = indent || [] - - return node - } - } - - // Add `node` to `parent`s children or to `tokens`. Performs merges where - // possible. - function add(node, parent) { - var children = parent ? parent.children : tokens - var previous = children[children.length - 1] - var fn - - if ( - previous && - node.type === previous.type && - (node.type === 'text' || node.type === 'blockquote') && - mergeable(previous) && - mergeable(node) - ) { - fn = node.type === 'text' ? mergeText : mergeBlockquote - node = fn.call(self, previous, node) - } - - if (node !== previous) { - children.push(node) - } - - if (self.atStart && tokens.length !== 0) { - self.exitStart() - } - - return node - } - - // Remove `subvalue` from `value`. `subvalue` must be at the start of - // `value`. - function eat(subvalue) { - var indent = getOffset() - var pos = position() - var current = now() - - validateEat(subvalue) - - apply.reset = reset - reset.test = test - apply.test = test - - value = value.slice(subvalue.length) - - updatePosition(subvalue) - - indent = indent() - - return apply - - // Add the given arguments, add `position` to the returned node, and - // return the node. - function apply(node, parent) { - return pos(add(pos(node), parent), indent) - } - - // Functions just like apply, but resets the content: the line and - // column are reversed, and the eaten value is re-added. This is - // useful for nodes with a single type of content, such as lists and - // tables. See `apply` above for what parameters are expected. - function reset() { - var node = apply.apply(null, arguments) - - line = current.line - column = current.column - value = subvalue + value - - return node - } - - // Test the position, after eating, and reverse to a not-eaten state. - function test() { - var result = pos({}) - - line = current.line - column = current.column - value = subvalue + value - - return result.position - } - } - } -} - -// Check whether a node is mergeable with adjacent nodes. -function mergeable(node) { - var start - var end - - if (node.type !== 'text' || !node.position) { - return true - } - - start = node.position.start - end = node.position.end - - // Only merge nodes which occupy the same size as their `value`. - return ( - start.line !== end.line || end.column - start.column === node.value.length - ) -} - -// Merge two text nodes: `node` into `prev`. -function mergeText(previous, node) { - previous.value += node.value - - return previous -} - -// Merge two blockquotes: `node` into `prev`, unless in CommonMark or gfm modes. -function mergeBlockquote(previous, node) { - if (this.options.commonmark || this.options.gfm) { - return node - } - - previous.children = previous.children.concat(node.children) - - return previous -} diff --git a/packages/remark-parse/lib/unescape.js b/packages/remark-parse/lib/unescape.js deleted file mode 100644 index 18fe26917..000000000 --- a/packages/remark-parse/lib/unescape.js +++ /dev/null @@ -1,36 +0,0 @@ -'use strict' - -module.exports = factory - -var backslash = '\\' - -// Factory to de-escape a value, based on a list at `key` in `ctx`. -function factory(ctx, key) { - return unescape - - // De-escape a string using the expression at `key` in `ctx`. - function unescape(value) { - var previous = 0 - var index = value.indexOf(backslash) - var escape = ctx[key] - var queue = [] - var character - - while (index !== -1) { - queue.push(value.slice(previous, index)) - previous = index + 1 - character = value.charAt(previous) - - // If the following character is not a valid escape, add the slash. - if (!character || escape.indexOf(character) === -1) { - queue.push(backslash) - } - - index = value.indexOf(backslash, previous + 1) - } - - queue.push(value.slice(previous)) - - return queue.join('') - } -} diff --git a/packages/remark-parse/lib/util/get-indentation.js b/packages/remark-parse/lib/util/get-indentation.js deleted file mode 100644 index 14466f4a2..000000000 --- a/packages/remark-parse/lib/util/get-indentation.js +++ /dev/null @@ -1,37 +0,0 @@ -'use strict' - -module.exports = indentation - -var tab = '\t' -var space = ' ' - -var spaceSize = 1 -var tabSize = 4 - -// Gets indentation information for a line. -function indentation(value) { - var index = 0 - var indent = 0 - var character = value.charAt(index) - var stops = {} - var size - var lastIndent = 0 - - while (character === tab || character === space) { - size = character === tab ? tabSize : spaceSize - - indent += size - - if (size > 1) { - indent = Math.floor(indent / size) * size - } - - while (lastIndent < indent) { - stops[++lastIndent] = index - } - - character = value.charAt(++index) - } - - return {indent: indent, stops: stops} -} diff --git a/packages/remark-parse/lib/util/html.js b/packages/remark-parse/lib/util/html.js deleted file mode 100644 index 49b7a38fc..000000000 --- a/packages/remark-parse/lib/util/html.js +++ /dev/null @@ -1,34 +0,0 @@ -'use strict' - -var attributeName = '[a-zA-Z_:][a-zA-Z0-9:._-]*' -var unquoted = '[^"\'=<>`\\u0000-\\u0020]+' -var singleQuoted = "'[^']*'" -var doubleQuoted = '"[^"]*"' -var attributeValue = - '(?:' + unquoted + '|' + singleQuoted + '|' + doubleQuoted + ')' -var attribute = - '(?:\\s+' + attributeName + '(?:\\s*=\\s*' + attributeValue + ')?)' -var openTag = '<[A-Za-z][A-Za-z0-9\\-]*' + attribute + '*\\s*\\/?>' -var closeTag = '<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>' -var comment = '|' -var processing = '<[?].*?[?]>' -var declaration = ']*>' -var cdata = '' - -exports.openCloseTag = new RegExp('^(?:' + openTag + '|' + closeTag + ')') - -exports.tag = new RegExp( - '^(?:' + - openTag + - '|' + - closeTag + - '|' + - comment + - '|' + - processing + - '|' + - declaration + - '|' + - cdata + - ')' -) diff --git a/packages/remark-parse/lib/util/interrupt.js b/packages/remark-parse/lib/util/interrupt.js deleted file mode 100644 index 22a839fc6..000000000 --- a/packages/remark-parse/lib/util/interrupt.js +++ /dev/null @@ -1,35 +0,0 @@ -'use strict' - -module.exports = interrupt - -function interrupt(interruptors, tokenizers, ctx, parameters) { - var length = interruptors.length - var index = -1 - var interruptor - var config - - while (++index < length) { - interruptor = interruptors[index] - config = interruptor[1] || {} - - if ( - config.pedantic !== undefined && - config.pedantic !== ctx.options.pedantic - ) { - continue - } - - if ( - config.commonmark !== undefined && - config.commonmark !== ctx.options.commonmark - ) { - continue - } - - if (tokenizers[interruptor[0]].apply(ctx, parameters)) { - return true - } - } - - return false -} diff --git a/packages/remark-parse/lib/util/is-markdown-whitespace-character.js b/packages/remark-parse/lib/util/is-markdown-whitespace-character.js deleted file mode 100644 index ff6f4bbd4..000000000 --- a/packages/remark-parse/lib/util/is-markdown-whitespace-character.js +++ /dev/null @@ -1,27 +0,0 @@ -'use strict' - -module.exports = whitespace - -var tab = 9 // '\t' -var lineFeed = 10 // '\n' -var lineTabulation = 11 // '\v' -var formFeed = 12 // '\f' -var carriageReturn = 13 // '\r' -var space = 32 // ' ' - -function whitespace(char) { - /* istanbul ignore next - `number` handling for future */ - var code = typeof char === 'number' ? char : char.charCodeAt(0) - - switch (code) { - case tab: - case lineFeed: - case lineTabulation: - case formFeed: - case carriageReturn: - case space: - return true - default: - return false - } -} diff --git a/packages/remark-parse/lib/util/normalize.js b/packages/remark-parse/lib/util/normalize.js deleted file mode 100644 index 7057c0a1e..000000000 --- a/packages/remark-parse/lib/util/normalize.js +++ /dev/null @@ -1,11 +0,0 @@ -'use strict' - -var collapseWhiteSpace = require('collapse-white-space') - -module.exports = normalize - -// Normalize an identifier. Collapses multiple white space characters into a -// single space, and removes casing. -function normalize(value) { - return collapseWhiteSpace(value).toLowerCase() -} diff --git a/packages/remark-parse/lib/util/remove-indentation.js b/packages/remark-parse/lib/util/remove-indentation.js deleted file mode 100644 index f232e6785..000000000 --- a/packages/remark-parse/lib/util/remove-indentation.js +++ /dev/null @@ -1,64 +0,0 @@ -'use strict' - -var trim = require('trim') -var repeat = require('repeat-string') -var getIndent = require('./get-indentation') - -module.exports = indentation - -var lineFeed = '\n' -var space = ' ' -var exclamationMark = '!' - -// Remove the minimum indent from every line in `value`. Supports both tab, -// spaced, and mixed indentation (as well as possible). -function indentation(value, maximum) { - var values = value.split(lineFeed) - var position = values.length + 1 - var minIndent = Infinity - var matrix = [] - var index - var indentation - var stops - - values.unshift(repeat(space, maximum) + exclamationMark) - - while (position--) { - indentation = getIndent(values[position]) - - matrix[position] = indentation.stops - - if (trim(values[position]).length === 0) { - continue - } - - if (indentation.indent) { - if (indentation.indent > 0 && indentation.indent < minIndent) { - minIndent = indentation.indent - } - } else { - minIndent = Infinity - - break - } - } - - if (minIndent !== Infinity) { - position = values.length - - while (position--) { - stops = matrix[position] - index = minIndent - - while (index && !(index in stops)) { - index-- - } - - values[position] = values[position].slice(stops[index] + 1) - } - } - - values.shift() - - return values.join(lineFeed) -} diff --git a/packages/remark-parse/package.json b/packages/remark-parse/package.json index b0eda5718..b2c0fc8ca 100644 --- a/packages/remark-parse/package.json +++ b/packages/remark-parse/package.json @@ -1,6 +1,6 @@ { "name": "remark-parse", - "version": "8.0.3", + "version": "9.0.0-alpha.1", "description": "remark plugin to parse Markdown", "license": "MIT", "keywords": [ @@ -34,26 +34,10 @@ ], "files": [ "index.js", - "lib", "types/index.d.ts" ], "dependencies": { - "ccount": "^1.0.0", - "collapse-white-space": "^1.0.2", - "is-alphabetical": "^1.0.0", - "is-decimal": "^1.0.0", - "is-whitespace-character": "^1.0.0", - "is-word-character": "^1.0.0", - "markdown-escapes": "^1.0.0", - "parse-entities": "^2.0.0", - "repeat-string": "^1.5.4", - "state-toggle": "^1.0.0", - "trim": "0.0.1", - "trim-trailing-lines": "^1.0.0", - "unherit": "^1.0.4", - "unist-util-remove-position": "^2.0.0", - "vfile-location": "^3.0.0", - "xtend": "^4.0.1" + "mdast-util-from-markdown": "^0.7.0" }, "scripts": { "test": "tape test.js" diff --git a/packages/remark-parse/readme.md b/packages/remark-parse/readme.md index ad2ab535d..8e2789ebd 100644 --- a/packages/remark-parse/readme.md +++ b/packages/remark-parse/readme.md @@ -10,56 +10,10 @@ [Parser][] for [**unified**][unified]. Parses Markdown to [**mdast**][mdast] syntax trees. +Built on [micromark][]. Used in the [**remark** processor][remark] but can be used on its own as well. Can be [extended][extend] to change how Markdown is parsed. -## Sponsors - -Support this effort and give back by sponsoring on [OpenCollective][collective]! - - - - - - - - - - - - - - - - -
- Gatsby 🥇

- -
- Vercel 🥇

- -
- Netlify

- - -
- Holloway

- -
- ThemeIsle

- -
- BoostIO

- -
- Expo

- -
-
- You? -

-
- ## Install [npm][]: @@ -78,7 +32,7 @@ var remark2rehype = require('remark-rehype') var html = require('rehype-stringify') var processor = unified() - .use(markdown, {commonmark: true}) + .use(markdown) .use(remark2rehype) .use(html) @@ -87,381 +41,19 @@ process.stdin.pipe(createStream(processor)).pipe(process.stdout) [See **unified** for more examples »][unified] -## Contents - -* [API](#api) - * [`processor().use(parse[, options])`](#processoruseparse-options) - * [`parse.Parser`](#parseparser) -* [Extending the `Parser`](#extending-the-parser) - * [`Parser#blockTokenizers`](#parserblocktokenizers) - * [`Parser#blockMethods`](#parserblockmethods) - * [`Parser#inlineTokenizers`](#parserinlinetokenizers) - * [`Parser#inlineMethods`](#parserinlinemethods) - * [`function tokenizer(eat, value, silent)`](#function-tokenizereat-value-silent) - * [`tokenizer.locator(value, fromIndex)`](#tokenizerlocatorvalue-fromindex) - * [`eat(subvalue)`](#eatsubvalue) - * [`add(node[, parent])`](#addnode-parent) - * [`add.test()`](#addtest) - * [`add.reset(node[, parent])`](#addresetnode-parent) - * [Turning off a tokenizer](#turning-off-a-tokenizer) -* [Security](#security) -* [Contribute](#contribute) -* [License](#license) - ## API [See **unified** for API docs »][unified] -### `processor().use(parse[, options])` +### `processor().use(parse)` Configure the `processor` to read Markdown as input and process [**mdast**][mdast] syntax trees. -##### `options` - -Options can be passed directly, or passed later through -[`processor.data()`][data]. - -###### `options.gfm` - -GFM mode (`boolean`, default: `true`). - -```markdown -hello ~~hi~~ world -``` - -Turns on: - -* [Fenced code blocks](https://help.github.com/articles/creating-and-highlighting-code-blocks#fenced-code-blocks) -* [Autolinking of URLs](https://help.github.com/articles/autolinked-references-and-urls) -* [Deletions (strikethrough)](https://help.github.com/articles/basic-writing-and-formatting-syntax#styling-text) -* [Task lists](https://help.github.com/articles/basic-writing-and-formatting-syntax#task-lists) -* [Tables](https://help.github.com/articles/organizing-information-with-tables) - -###### `options.commonmark` - -CommonMark mode (`boolean`, default: `false`). - -```markdown -This is a paragraph - and this is also part of the preceding paragraph. -``` - -Allows: - -* Empty lines to split block quotes -* Parentheses (`(` and `)`) around link and image titles -* Any escaped [ASCII punctuation][escapes] character -* Closing parenthesis (`)`) as an ordered list marker -* URL definitions in block quotes - -Disallows: - -* Indented code blocks directly following a paragraph -* ATX headings (`# Hash headings`) without spacing after opening hashes or and - before closing hashes -* Setext headings (`Underline headings\n---`) when following a paragraph -* Newlines in link and image titles -* White space in link and image URLs in auto-links (links in brackets, `<` and - `>`) -* Lazy block quote continuation, lines not preceded by a greater than - character (`>`), for lists, code, and thematic breaks - -###### `options.pedantic` - -⚠️ Pedantic was previously used to mimic old-style Markdown mode: no tables, no -fenced code, and with many bugs. -It’s currently still “working”, but please do not use it, it’ll be removed in -the future. - -###### `options.blocks` - -Blocks (`Array.`, default: list of [block HTML elements][blocks]). - -```markdown -foo - -``` - -Defines which HTML elements are seen as block level. - -### `parse.Parser` - -Access to the [parser][], if you need it. - -## Extending the `Parser` - -Typically, using [*transformers*][transformer] to manipulate a syntax tree -produces the desired output. -Sometimes, such as when introducing new syntactic entities with a certain -precedence, interfacing with the parser is necessary. - -If the `remark-parse` plugin is used, it adds a [`Parser`][parser] constructor -function to the `processor`. -Other plugins can add tokenizers to its prototype to change how Markdown is -parsed. - -The below plugin adds a [tokenizer][] for at-mentions. - -```js -module.exports = mentions - -function mentions() { - var Parser = this.Parser - var tokenizers = Parser.prototype.inlineTokenizers - var methods = Parser.prototype.inlineMethods - - // Add an inline tokenizer (defined in the following example). - tokenizers.mention = tokenizeMention - - // Run it just before `text`. - methods.splice(methods.indexOf('text'), 0, 'mention') -} -``` - -### `Parser#blockTokenizers` - -Map of names to [tokenizer][]s (`Object.`). -These tokenizers (such as `fencedCode`, `table`, and `paragraph`) eat from the -start of a value to a line ending. - -See `#blockMethods` below for a list of methods that are included by default. - -### `Parser#blockMethods` - -List of `blockTokenizers` names (`Array.`). -Specifies the order in which tokenizers run. - -Precedence of default block methods is as follows: - - - -* `blankLine` -* `indentedCode` -* `fencedCode` -* `blockquote` -* `atxHeading` -* `thematicBreak` -* `list` -* `setextHeading` -* `html` -* `definition` -* `table` -* `paragraph` - - - -### `Parser#inlineTokenizers` - -Map of names to [tokenizer][]s (`Object.`). -These tokenizers (such as `url`, `reference`, and `emphasis`) eat from the start -of a value. -To increase performance, they depend on [locator][]s. - -See `#inlineMethods` below for a list of methods that are included by default. - -### `Parser#inlineMethods` - -List of `inlineTokenizers` names (`Array.`). -Specifies the order in which tokenizers run. - -Precedence of default inline methods is as follows: - - - -* `escape` -* `autoLink` -* `url` -* `email` -* `html` -* `link` -* `reference` -* `strong` -* `emphasis` -* `deletion` -* `code` -* `break` -* `text` - - - -### `function tokenizer(eat, value, silent)` - -There are two types of tokenizers: block level and inline level. -Both are functions, and work the same, but inline tokenizers must have a -[locator][]. - -The following example shows an inline tokenizer that is added by the mentions -plugin above. - -```js -tokenizeMention.notInLink = true -tokenizeMention.locator = locateMention - -function tokenizeMention(eat, value, silent) { - var match = /^@(\w+)/.exec(value) - - if (match) { - if (silent) { - return true - } - - return eat(match[0])({ - type: 'link', - url: 'https://social-network/' + match[1], - children: [{type: 'text', value: match[0]}] - }) - } -} -``` - -Tokenizers *test* whether a document starts with a certain syntactic entity. -In *silent* mode, they return whether that test passes. -In *normal* mode, they consume that token, a process which is called “eating”. - -Locators enable inline tokenizers to function faster by providing where the next -entity may occur. - -###### Signatures - -* `Node? = tokenizer(eat, value)` -* `boolean? = tokenizer(eat, value, silent)` - -###### Parameters - -* `eat` ([`Function`][eat]) — Eat, when applicable, an entity -* `value` (`string`) — Value which may start an entity -* `silent` (`boolean`, optional) — Whether to detect or consume - -###### Properties +## Extending the parser -* `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 block quotes or lists -* `notInList` (`boolean`) — Whether nodes cannot be in lists -* `notInLink` (`boolean`) — Whether nodes cannot be in links - -###### Returns - -* `boolean?`, in *silent* mode — whether a node can be found at the start of - `value` -* [`Node?`][node], In *normal* mode — If it can be found at the start of - `value` - -### `tokenizer.locator(value, fromIndex)` - -Locators are required for inline tokenizers. -Their role is to keep parsing performant. - -The following example shows a locator that is added by the mentions tokenizer -above. - -```js -function locateMention(value, fromIndex) { - return value.indexOf('@', fromIndex) -} -``` - -Locators enable inline tokenizers to function faster by providing information on -where the next entity *may* occur. -Locators may be wrong, it’s OK if there actually isn’t a node to be found at the -index they return. - -###### Parameters - -* `value` (`string`) — Value which may contain an entity -* `fromIndex` (`number`) — Position to start searching at - -###### Returns - -`number` — Index at which an entity may start, and `-1` otherwise. - -### `eat(subvalue)` - -```js -var add = eat('foo') -``` - -Eat `subvalue`, which is a string at the start of the [tokenized][tokenizer] -`value`. - -###### Parameters - -* `subvalue` (`string`) - Value to eat - -###### Returns - -[`add`][add]. - -### `add(node[, parent])` - -```js -var add = eat('foo') - -add({type: 'text', value: 'foo'}) -``` - -Add [positional information][position] to `node` and add `node` to `parent`. - -###### Parameters - -* `node` ([`Node`][node]) - Node to patch position on and to add -* `parent` ([`Parent`][parent], optional) - Place to add `node` to in the - syntax tree. - Defaults to the currently processed node - -###### Returns - -[`Node`][node] — The given `node`. - -### `add.test()` - -Get the [positional information][position] that would be patched on `node` by -`add`. - -###### Returns - -[`Position`][position]. - -### `add.reset(node[, parent])` - -`add`, but resets the internal position. -Useful for example in lists, where the same content is first eaten for a list, -and later for list items. - -###### Parameters - -* `node` ([`Node`][node]) - Node to patch position on and insert -* `parent` ([`Node`][node], optional) - Place to add `node` to in - the syntax tree. - Defaults to the currently processed node - -###### Returns - -[`Node`][node] — The given node. - -### Turning off a tokenizer - -In some situations, you may want to turn off a tokenizer to avoid parsing that -syntactic feature. - -Preferably, use the [`remark-disable-tokenizers`][remark-disable-tokenizers] -plugin to turn off tokenizers. - -Alternatively, this can be done by replacing the tokenizer from -`blockTokenizers` (or `blockMethods`) or `inlineTokenizers` (or -`inlineMethods`). - -The following example turns off indented code blocks: - -```js -remarkParse.Parser.prototype.blockTokenizers.indentedCode = indentedCode - -function indentedCode() { - return true -} -``` +See [`micromark`][micromark] and [`mdast-util-from-markdown`][from-markdown]. +Then create a wrapper plugin such as `remark-gfm`. ## Security @@ -487,6 +79,53 @@ This project has a [code of conduct][coc]. By interacting with this repository, organization, or community you agree to abide by its terms. +## Sponsor + +Support this effort and give back by sponsoring on [OpenCollective][collective]! + + + + + + + + + + + + + + + + +
+ Gatsby 🥇

+ +
+ Vercel 🥇

+ +
+ Netlify

+ + +
+ Holloway

+ +
+ ThemeIsle

+ +
+ BoostIO

+ +
+ Expo

+ +
+
+ You? +

+
+ ## License [MIT][license] © [Titus Wormer][author] @@ -539,40 +178,20 @@ abide by its terms. [unified]: https://github.com/unifiedjs/unified -[data]: https://github.com/unifiedjs/unified#processordatakey-value - [remark]: https://github.com/remarkjs/remark/tree/main/packages/remark -[blocks]: https://github.com/remarkjs/remark/blob/main/packages/remark-parse/lib/block-elements.js - [mdast]: https://github.com/syntax-tree/mdast -[escapes]: https://spec.commonmark.org/0.29/#backslash-escapes - -[node]: https://github.com/syntax-tree/unist#node - -[parent]: https://github.com/syntax-tree/unist#parent - -[position]: https://github.com/syntax-tree/unist#position - [parser]: https://github.com/unifiedjs/unified#processorparser -[transformer]: https://github.com/unifiedjs/unified#function-transformernode-file-next - [extend]: #extending-the-parser -[tokenizer]: #function-tokenizereat-value-silent - -[locator]: #tokenizerlocatorvalue-fromindex - -[eat]: #eatsubvalue - -[add]: #addnode-parent - -[remark-disable-tokenizers]: https://github.com/zestedesavoir/zmarkdown/tree/HEAD/packages/remark-disable-tokenizers - [xss]: https://en.wikipedia.org/wiki/Cross-site_scripting [rehype]: https://github.com/rehypejs/rehype [sanitize]: https://github.com/rehypejs/rehype-sanitize + +[micromark]: https://github.com/micromark/micromark + +[from-markdown]: https://github.com/syntax-tree/mdast-util-from-markdown diff --git a/packages/remark-parse/test.js b/packages/remark-parse/test.js index 91bc9e6b7..3db02e560 100644 --- a/packages/remark-parse/test.js +++ b/packages/remark-parse/test.js @@ -1,15 +1,13 @@ 'use strict' -var path = require('path') -var fs = require('fs') var test = require('tape') -var vfile = require('vfile') var unified = require('unified') +var gfmSyntax = require('micromark-extension-gfm') +var gfm = require('mdast-util-gfm/from-markdown') +var remove = require('unist-util-remove-position') var parse = require('.') -var Parser = parse.Parser - test('remark().parse(file)', function (t) { t.equal( unified().use(parse).parse('Alfred').children.length, @@ -17,191 +15,58 @@ test('remark().parse(file)', function (t) { 'should accept a `string`' ) - t.throws( - function () { - unified().use(parse).data('settings', {position: 0}).parse('') - }, - /options.position/, - 'should throw when `options.position` is not a boolean' - ) - - t.doesNotThrow(function () { - var parser = new Parser() - parser.setOptions() - }, 'should not throw when setting nothing') - - t.throws( - function () { - var parser = new Parser() - parser.setOptions(true) - }, - /^Error: Invalid value `true` for setting `options`$/, - 'should throw when setting invalid values' - ) - - t.throws( - function () { - unified().use(parse).data('settings', {gfm: Infinity}).parse('') - }, - /options.gfm/, - 'should throw when `options.gfm` is not a boolean' - ) - - t.throws( - function () { - unified().use(parse).data('settings', {pedantic: {}}).parse('') - }, - /options.pedantic/, - 'should throw when `options.pedantic` is not a boolean' - ) - - t.deepEqual( - unified() - .use(parse) - .data('settings', {position: false}) - .parse(''), - { - type: 'root', - children: [ - { - type: 'paragraph', - children: [ - {type: 'html', value: ''}, - {type: 'html', value: ''} - ] - } - ] - }, - 'should work without `blocks`' - ) - - t.deepEqual( - unified() - .use(parse) - .data('settings', {position: false, blocks: ['foo']}) - .parse(''), - { - type: 'root', - children: [{type: 'html', value: ''}] - }, - 'should support given `blocks`' - ) - - t.test('should throw parse errors', function (st) { - var processor = unified().use(parse).use(plugin) - - st.plan(5) - - try { - processor.parse('Hello *World*!') - } catch (error) { - st.equal(error.file, '', 'should pass a filename') - st.equal(error.line, 1, 'should set `line`') - st.equal(error.column, 7, 'should set `column`') - st.equal(error.reason, 'Found it!', 'should set `reason`') - st.equal(error.toString(), '1:7: Found it!', 'should set `message`') - } - - function plugin() { - emphasis.locator = locator - this.Parser.prototype.inlineTokenizers.emphasis = emphasis - - function emphasis(eat, value) { - if (value.charAt(0) === '*') { - eat.file.fail('Found it!', eat.now()) - } - } - - function locator(value, fromIndex) { - return value.indexOf('*', fromIndex) - } - } - }) - - t.test('should warn when missing locators', function (st) { - var processor = unified().use(parse).use(plugin) - - st.throws(function () { - processor.parse(vfile('Hello *World*!')) - }, /1:1: Missing locator: `foo`/) - - st.end() - - function plugin() { - var proto = this.Parser.prototype - var methods = proto.inlineMethods - - // Tokenizer. - function noop() {} - - proto.inlineTokenizers.foo = noop - methods.splice(methods.indexOf('inlineText'), 0, 'foo') - } - }) - - t.test('should warn about entities', function (st) { - var filePath = path.join( - 'test', - 'fixtures', - 'input', - 'entities-advanced.text' - ) - var file = vfile(fs.readFileSync(filePath)) - var notTerminated = - 'Named character references must be terminated by a semicolon' - - unified().use(parse).parse(file) - - st.deepEqual(file.messages.map(String), [ - '1:13: Named character references must be known', - '5:15: ' + notTerminated, - '9:44: ' + notTerminated, - '11:38: ' + notTerminated, - '14:37: ' + notTerminated, - '13:16: ' + notTerminated, - '18:21: ' + notTerminated, - '16:16: ' + notTerminated, - '23:37: ' + notTerminated, - '21:11: ' + notTerminated, - '29:21: ' + notTerminated, - '27:17: ' + notTerminated, - '32:11: ' + notTerminated, - '36:10: ' + notTerminated, - '41:10: ' + notTerminated - ]) - - st.end() - }) - - t.test('should be able to set options', function (st) { + t.test('extensions', function (st) { var tree = unified() + .data('micromarkExtensions', [gfmSyntax()]) + .data('fromMarkdownExtensions', [gfm]) .use(parse) - .use(plugin) - .parse(['', '', '1) Hello World', ''].join('\n')) - - st.equal(tree.children[1].type, 'list') + .parse('* [x] contact@example.com ~~strikethrough~~') + + remove(tree, true) + + st.deepEqual( + tree, + { + type: 'root', + children: [ + { + type: 'list', + ordered: false, + start: null, + spread: false, + children: [ + { + type: 'listItem', + spread: false, + checked: true, + children: [ + { + type: 'paragraph', + children: [ + {type: 'text', value: ''}, + { + type: 'link', + title: null, + url: 'mailto:contact@example.com', + children: [{type: 'text', value: 'contact@example.com'}] + }, + {type: 'text', value: ' '}, + { + type: 'delete', + children: [{type: 'text', value: 'strikethrough'}] + } + ] + } + ] + } + ] + } + ] + }, + 'should work' + ) st.end() - - function plugin() { - var html = this.Parser.prototype.blockTokenizers.html - - this.Parser.prototype.blockTokenizers.html = replacement - - // Set option when an HMTL comment occurs. - function replacement(eat, value) { - var node = //g.exec(value) - var options = {} - - if (node) { - options[node[1]] = true - - this.setOptions(options) - } - - return html.apply(this, arguments) - } - } }) t.end() diff --git a/packages/remark-stringify/index.js b/packages/remark-stringify/index.js index baf7ca411..61211b43e 100644 --- a/packages/remark-stringify/index.js +++ b/packages/remark-stringify/index.js @@ -1,18 +1,23 @@ 'use strict' -var unherit = require('unherit') -var xtend = require('xtend') -var Compiler = require('./lib/compiler.js') - module.exports = stringify -stringify.Compiler = Compiler + +var toMarkdown = require('mdast-util-to-markdown') function stringify(options) { - var Local = unherit(Compiler) - Local.prototype.options = xtend( - Local.prototype.options, - this.data('settings'), - options - ) - this.Compiler = Local + var self = this + + this.Compiler = compile + + function compile(tree) { + return toMarkdown( + tree, + Object.assign({}, self.data('settings'), options, { + // Note: this option is not in the readme. + // The goal is for it to be set by plugins on `data` instead of being + // passed by users. + extensions: self.data('toMarkdownExtensions') || [] + }) + ) + } } diff --git a/packages/remark-stringify/lib/compiler.js b/packages/remark-stringify/lib/compiler.js deleted file mode 100644 index 6c5a221f0..000000000 --- a/packages/remark-stringify/lib/compiler.js +++ /dev/null @@ -1,60 +0,0 @@ -'use strict' - -var xtend = require('xtend') -var toggle = require('state-toggle') - -module.exports = Compiler - -// Construct a new compiler. -function Compiler(tree, file) { - this.inLink = false - this.inTable = false - this.tree = tree - this.file = file - this.options = xtend(this.options) - this.setOptions({}) -} - -var proto = Compiler.prototype - -// Enter and exit helpers. */ -proto.enterLink = toggle('inLink', false) -proto.enterTable = toggle('inTable', false) -proto.enterLinkReference = require('./util/enter-link-reference') - -// Configuration. -proto.options = require('./defaults') -proto.setOptions = require('./set-options') - -proto.compile = require('./macro/compile') -proto.visit = require('./macro/one') -proto.all = require('./macro/all') -proto.block = require('./macro/block') -proto.visitOrderedItems = require('./macro/ordered-items') -proto.visitUnorderedItems = require('./macro/unordered-items') - -// Expose visitors. -proto.visitors = { - root: require('./visitors/root'), - text: require('./visitors/text'), - heading: require('./visitors/heading'), - paragraph: require('./visitors/paragraph'), - blockquote: require('./visitors/blockquote'), - list: require('./visitors/list'), - listItem: require('./visitors/list-item'), - inlineCode: require('./visitors/inline-code'), - code: require('./visitors/code'), - html: require('./visitors/html'), - thematicBreak: require('./visitors/thematic-break'), - strong: require('./visitors/strong'), - emphasis: require('./visitors/emphasis'), - break: require('./visitors/break'), - delete: require('./visitors/delete'), - link: require('./visitors/link'), - linkReference: require('./visitors/link-reference'), - imageReference: require('./visitors/image-reference'), - definition: require('./visitors/definition'), - image: require('./visitors/image'), - table: require('./visitors/table'), - tableCell: require('./visitors/table-cell') -} diff --git a/packages/remark-stringify/lib/defaults.js b/packages/remark-stringify/lib/defaults.js deleted file mode 100644 index 217ae7f28..000000000 --- a/packages/remark-stringify/lib/defaults.js +++ /dev/null @@ -1,28 +0,0 @@ -'use strict' - -module.exports = { - gfm: true, - commonmark: false, - pedantic: false, - entities: 'false', - setext: false, - closeAtx: false, - tableCellPadding: true, - tablePipeAlign: true, - stringLength: stringLength, - incrementListMarker: true, - tightDefinitions: false, - fences: false, - fence: '`', - bullet: '-', - listItemIndent: 'tab', - rule: '*', - ruleSpaces: true, - ruleRepetition: 3, - strong: '*', - emphasis: '_' -} - -function stringLength(value) { - return value.length -} diff --git a/packages/remark-stringify/lib/escape.js b/packages/remark-stringify/lib/escape.js deleted file mode 100644 index 3343d8253..000000000 --- a/packages/remark-stringify/lib/escape.js +++ /dev/null @@ -1,297 +0,0 @@ -'use strict' - -var decimal = require('is-decimal') -var alphanumeric = require('is-alphanumeric') -var whitespace = require('is-whitespace-character') -var escapes = require('markdown-escapes') -var prefix = require('./util/entity-prefix-length') - -module.exports = factory - -var tab = '\t' -var lineFeed = '\n' -var space = ' ' -var numberSign = '#' -var ampersand = '&' -var leftParenthesis = '(' -var rightParenthesis = ')' -var asterisk = '*' -var plusSign = '+' -var dash = '-' -var dot = '.' -var colon = ':' -var lessThan = '<' -var greaterThan = '>' -var leftSquareBracket = '[' -var backslash = '\\' -var rightSquareBracket = ']' -var underscore = '_' -var graveAccent = '`' -var verticalBar = '|' -var tilde = '~' -var exclamationMark = '!' - -var entities = { - '<': '<', - ':': ':', - '&': '&', - '|': '|', - '~': '~' -} - -var shortcut = 'shortcut' -var mailto = 'mailto' -var https = 'https' -var http = 'http' - -var blankExpression = /\n\s*$/ - -// Factory to escape characters. -function factory(options) { - return escape - - // Escape punctuation characters in a node’s value. - function escape(value, node, parent) { - var self = this - var gfm = options.gfm - var commonmark = options.commonmark - var pedantic = options.pedantic - var markers = commonmark ? [dot, rightParenthesis] : [dot] - var siblings = parent && parent.children - var index = siblings && siblings.indexOf(node) - var previous = siblings && siblings[index - 1] - var next = siblings && siblings[index + 1] - var length = value.length - var escapable = escapes(options) - var position = -1 - var queue = [] - var escaped = queue - var afterNewLine - var character - var wordCharBefore - var wordCharAfter - var offset - var replace - - if (previous) { - afterNewLine = text(previous) && blankExpression.test(previous.value) - } else { - afterNewLine = - !parent || parent.type === 'root' || parent.type === 'paragraph' - } - - while (++position < length) { - character = value.charAt(position) - replace = false - - if (character === '\n') { - afterNewLine = true - } else if ( - character === backslash || - character === graveAccent || - character === asterisk || - character === leftSquareBracket || - character === lessThan || - (character === ampersand && prefix(value.slice(position)) > 0) || - (character === rightSquareBracket && self.inLink) || - (gfm && character === tilde && value.charAt(position + 1) === tilde) || - (gfm && - character === verticalBar && - (self.inTable || alignment(value, position))) || - (character === underscore && - // Delegate leading/trailing underscores to the multinode version below. - position > 0 && - position < length - 1 && - (pedantic || - !alphanumeric(value.charAt(position - 1)) || - !alphanumeric(value.charAt(position + 1)))) || - (gfm && !self.inLink && character === colon && protocol(queue.join(''))) - ) { - replace = true - } else if (afterNewLine) { - if ( - character === greaterThan || - character === numberSign || - character === asterisk || - character === dash || - character === plusSign - ) { - replace = true - } else if (decimal(character)) { - offset = position + 1 - - while (offset < length) { - if (!decimal(value.charAt(offset))) { - break - } - - offset++ - } - - if (markers.indexOf(value.charAt(offset)) !== -1) { - next = value.charAt(offset + 1) - - if (!next || next === space || next === tab || next === lineFeed) { - queue.push(value.slice(position, offset)) - position = offset - character = value.charAt(position) - replace = true - } - } - } - } - - if (afterNewLine && !whitespace(character)) { - afterNewLine = false - } - - queue.push(replace ? one(character) : character) - } - - // Multi-node versions. - if (siblings && text(node)) { - // Check for an opening parentheses after a link-reference (which can be - // joined by white-space). - if (previous && previous.referenceType === shortcut) { - position = -1 - length = escaped.length - - while (++position < length) { - character = escaped[position] - - if (character === space || character === tab) { - continue - } - - if (character === leftParenthesis || character === colon) { - escaped[position] = one(character) - } - - break - } - - // If the current node is all spaces / tabs, preceded by a shortcut, - // and followed by a text starting with `(`, escape it. - if ( - text(next) && - position === length && - next.value.charAt(0) === leftParenthesis - ) { - escaped.push(backslash) - } - } - - // Ensure non-auto-links are not seen as links. This pattern needs to - // check the preceding nodes too. - if ( - gfm && - !self.inLink && - text(previous) && - value.charAt(0) === colon && - protocol(previous.value.slice(-6)) - ) { - escaped[0] = one(colon) - } - - // Escape ampersand if it would otherwise start an entity. - if ( - text(next) && - value.charAt(length - 1) === ampersand && - prefix(ampersand + next.value) !== 0 - ) { - escaped[escaped.length - 1] = one(ampersand) - } - - // Escape exclamation marks immediately followed by links. - if ( - next && - next.type === 'link' && - value.charAt(length - 1) === exclamationMark - ) { - escaped[escaped.length - 1] = one(exclamationMark) - } - - // Escape double tildes in GFM. - if ( - gfm && - text(next) && - value.charAt(length - 1) === tilde && - next.value.charAt(0) === tilde - ) { - escaped.splice(-1, 0, backslash) - } - - // Escape underscores, but not mid-word (unless in pedantic mode). - wordCharBefore = text(previous) && alphanumeric(previous.value.slice(-1)) - wordCharAfter = text(next) && alphanumeric(next.value.charAt(0)) - - if (length === 1) { - if ( - value === underscore && - (pedantic || !wordCharBefore || !wordCharAfter) - ) { - escaped.unshift(backslash) - } - } else { - if ( - value.charAt(0) === underscore && - (pedantic || !wordCharBefore || !alphanumeric(value.charAt(1))) - ) { - escaped.unshift(backslash) - } - - if ( - value.charAt(length - 1) === underscore && - (pedantic || - !wordCharAfter || - !alphanumeric(value.charAt(length - 2))) - ) { - escaped.splice(-1, 0, backslash) - } - } - } - - return escaped.join('') - - function one(character) { - return escapable.indexOf(character) === -1 - ? entities[character] - : backslash + character - } - } -} - -// Check if `index` in `value` is inside an alignment row. -function alignment(value, index) { - var start = value.lastIndexOf(lineFeed, index) - var end = value.indexOf(lineFeed, index) - var char - - end = end === -1 ? value.length : end - - while (++start < end) { - char = value.charAt(start) - - if ( - char !== colon && - char !== dash && - char !== space && - char !== verticalBar - ) { - return false - } - } - - return true -} - -// Check if `node` is a text node. -function text(node) { - return node && node.type === 'text' -} - -// Check if `value` ends in a protocol. -function protocol(value) { - var tail = value.slice(-6).toLowerCase() - return tail === mailto || tail.slice(-5) === https || tail.slice(-4) === http -} diff --git a/packages/remark-stringify/lib/macro/all.js b/packages/remark-stringify/lib/macro/all.js deleted file mode 100644 index ae470ee86..000000000 --- a/packages/remark-stringify/lib/macro/all.js +++ /dev/null @@ -1,18 +0,0 @@ -'use strict' - -module.exports = all - -// Visit all children of `parent`. -function all(parent) { - var self = this - var children = parent.children - var length = children.length - var results = [] - var index = -1 - - while (++index < length) { - results[index] = self.visit(children[index], parent) - } - - return results -} diff --git a/packages/remark-stringify/lib/macro/block.js b/packages/remark-stringify/lib/macro/block.js deleted file mode 100644 index 3e7eb85ed..000000000 --- a/packages/remark-stringify/lib/macro/block.js +++ /dev/null @@ -1,60 +0,0 @@ -'use strict' - -module.exports = block - -var lineFeed = '\n' - -var blank = lineFeed + lineFeed -var triple = blank + lineFeed -var comment = blank + '' + blank - -// Stringify a block node with block children (e.g., `root` or `blockquote`). -// Knows about code following a list, or adjacent lists with similar bullets, -// and places an extra line feed between them. -function block(node) { - var self = this - var options = self.options - var fences = options.fences - var gap = options.commonmark ? comment : triple - var definitionGap = options.tightDefinitions ? lineFeed : blank - var values = [] - var children = node.children - var length = children.length - var index = -1 - var previous - var child - - while (++index < length) { - previous = child - child = children[index] - - if (previous) { - // A list preceding another list that are equally ordered, or a - // list preceding an indented code block, need a gap between them, - // so as not to see them as one list, or content of the list, - // respectively. - // - // In commonmark, only something that breaks both up can do that, - // so we opt for an empty, invisible comment. In other flavours, - // two blank lines are fine. - if ( - previous.type === 'list' && - ((child.type === 'list' && previous.ordered === child.ordered) || - (child.type === 'code' && !child.lang && !fences)) - ) { - values.push(gap) - } else if ( - previous.type === 'definition' && - child.type === 'definition' - ) { - values.push(definitionGap) - } else { - values.push(blank) - } - } - - values.push(self.visit(child, node)) - } - - return values.join('') -} diff --git a/packages/remark-stringify/lib/macro/compile.js b/packages/remark-stringify/lib/macro/compile.js deleted file mode 100644 index 8c8530471..000000000 --- a/packages/remark-stringify/lib/macro/compile.js +++ /dev/null @@ -1,10 +0,0 @@ -'use strict' - -var compact = require('mdast-util-compact') - -module.exports = compile - -// Stringify the given tree. -function compile() { - return this.visit(compact(this.tree, this.options.commonmark)) -} diff --git a/packages/remark-stringify/lib/macro/one.js b/packages/remark-stringify/lib/macro/one.js deleted file mode 100644 index 38e5782b4..000000000 --- a/packages/remark-stringify/lib/macro/one.js +++ /dev/null @@ -1,20 +0,0 @@ -'use strict' - -module.exports = one - -function one(node, parent) { - var self = this - var visitors = self.visitors - - // Fail on unknown nodes. - if (typeof visitors[node.type] !== 'function') { - self.file.fail( - new Error( - 'Missing compiler for node of type `' + node.type + '`: `' + node + '`' - ), - node - ) - } - - return visitors[node.type].call(self, node, parent) -} diff --git a/packages/remark-stringify/lib/macro/ordered-items.js b/packages/remark-stringify/lib/macro/ordered-items.js deleted file mode 100644 index 2e2fee2b3..000000000 --- a/packages/remark-stringify/lib/macro/ordered-items.js +++ /dev/null @@ -1,43 +0,0 @@ -'use strict' - -module.exports = orderedItems - -var lineFeed = '\n' -var dot = '.' - -var blank = lineFeed + lineFeed - -// Visit ordered list items. -// -// Starts the list with -// `node.start` and increments each following list item -// bullet by one: -// -// 2. foo -// 3. bar -// -// In `incrementListMarker: false` mode, does not increment -// each marker and stays on `node.start`: -// -// 1. foo -// 1. bar -function orderedItems(node) { - var self = this - var fn = self.visitors.listItem - var increment = self.options.incrementListMarker - var values = [] - var start = node.start - var children = node.children - var length = children.length - var index = -1 - var bullet - - start = start == null ? 1 : start - - while (++index < length) { - bullet = (increment ? start + index : start) + dot - values[index] = fn.call(self, children[index], node, index, bullet) - } - - return values.join(node.spread ? blank : lineFeed) -} diff --git a/packages/remark-stringify/lib/macro/unordered-items.js b/packages/remark-stringify/lib/macro/unordered-items.js deleted file mode 100644 index 4780014f4..000000000 --- a/packages/remark-stringify/lib/macro/unordered-items.js +++ /dev/null @@ -1,24 +0,0 @@ -'use strict' - -module.exports = unorderedItems - -var lineFeed = '\n' - -var blank = lineFeed + lineFeed - -// Visit unordered list items. Uses `options.bullet` as each item’s bullet. -function unorderedItems(node) { - var self = this - var bullet = self.options.bullet - var fn = self.visitors.listItem - var children = node.children - var length = children.length - var index = -1 - var values = [] - - while (++index < length) { - values[index] = fn.call(self, children[index], node, index, bullet) - } - - return values.join(node.spread ? blank : lineFeed) -} diff --git a/packages/remark-stringify/lib/set-options.js b/packages/remark-stringify/lib/set-options.js deleted file mode 100644 index 1f5c343b6..000000000 --- a/packages/remark-stringify/lib/set-options.js +++ /dev/null @@ -1,160 +0,0 @@ -'use strict' - -var xtend = require('xtend') -var encode = require('stringify-entities') -var defaults = require('./defaults') -var escapeFactory = require('./escape') -var identity = require('./util/identity') - -module.exports = setOptions - -// Map of applicable enums. -var maps = { - entities: {true: true, false: true, numbers: true, escape: true}, - bullet: {'*': true, '-': true, '+': true}, - rule: {'-': true, _: true, '*': true}, - listItemIndent: {tab: true, mixed: true, 1: true}, - emphasis: {_: true, '*': true}, - strong: {_: true, '*': true}, - fence: {'`': true, '~': true} -} - -// Expose `validate`. -var validate = { - boolean: validateBoolean, - string: validateString, - number: validateNumber, - function: validateFunction -} - -// Set options. Does not overwrite previously set options. -function setOptions(options) { - var self = this - var current = self.options - var ruleRepetition - var key - - if (options == null) { - options = {} - } else if (typeof options === 'object') { - options = xtend(options) - } else { - throw new Error('Invalid value `' + options + '` for setting `options`') - } - - for (key in defaults) { - validate[typeof defaults[key]](options, key, current[key], maps[key]) - } - - ruleRepetition = options.ruleRepetition - - if (ruleRepetition && ruleRepetition < 3) { - raise(ruleRepetition, 'options.ruleRepetition') - } - - self.encode = encodeFactory(String(options.entities)) - self.escape = escapeFactory(options) - - self.options = options - - return self -} - -// Validate a value to be boolean. Defaults to `def`. Raises an exception with -// `context[name]` when not a boolean. -function validateBoolean(context, name, def) { - var value = context[name] - - if (value == null) { - value = def - } - - if (typeof value !== 'boolean') { - raise(value, 'options.' + name) - } - - context[name] = value -} - -// Validate a value to be boolean. Defaults to `def`. Raises an exception with -// `context[name]` when not a boolean. -function validateNumber(context, name, def) { - var value = context[name] - - if (value == null) { - value = def - } - - if (isNaN(value)) { - raise(value, 'options.' + name) - } - - context[name] = value -} - -// Validate a value to be in `map`. Defaults to `def`. Raises an exception -// with `context[name]` when not in `map`. -function validateString(context, name, def, map) { - var value = context[name] - - if (value == null) { - value = def - } - - value = String(value) - - if (!(value in map)) { - raise(value, 'options.' + name) - } - - context[name] = value -} - -// Validate a value to be function. Defaults to `def`. Raises an exception -// with `context[name]` when not a function. -function validateFunction(context, name, def) { - var value = context[name] - - if (value == null) { - value = def - } - - if (typeof value !== 'function') { - raise(value, 'options.' + name) - } - - context[name] = value -} - -// Factory to encode HTML entities. Creates a no-operation function when -// `type` is `'false'`, a function which encodes using named references when -// `type` is `'true'`, and a function which encodes using numbered references -// when `type` is `'numbers'`. -function encodeFactory(type) { - var options = {} - - if (type === 'false') { - return identity - } - - if (type === 'true') { - options.useNamedReferences = true - } - - if (type === 'escape') { - options.escapeOnly = true - options.useNamedReferences = true - } - - return wrapped - - // Encode HTML entities using the bound options. - function wrapped(value) { - return encode(value, options) - } -} - -// Throw an exception with in its `message` `value` and `name`. -function raise(value, name) { - throw new Error('Invalid value `' + value + '` for setting `' + name + '`') -} diff --git a/packages/remark-stringify/lib/util/copy-identifier-encoding.js b/packages/remark-stringify/lib/util/copy-identifier-encoding.js deleted file mode 100644 index a3de26972..000000000 --- a/packages/remark-stringify/lib/util/copy-identifier-encoding.js +++ /dev/null @@ -1,67 +0,0 @@ -'use strict' - -var entityPrefixLength = require('./entity-prefix-length') - -module.exports = copy - -var ampersand = '&' - -var punctuationExppresion = /[-!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~_]/ - -// For shortcut and collapsed reference links, the contents is also an -// identifier, so we need to restore the original encoding and escaping -// that were present in the source string. -// -// This function takes the unescaped & unencoded value from shortcut’s -// child nodes and the identifier and encodes the former according to -// the latter. -function copy(value, identifier) { - var length = value.length - var count = identifier.length - var result = [] - var position = 0 - var index = 0 - var start - - while (index < length) { - // Take next non-punctuation characters from `value`. - start = index - - while (index < length && !punctuationExppresion.test(value.charAt(index))) { - index += 1 - } - - result.push(value.slice(start, index)) - - // Advance `position` to the next punctuation character. - while ( - position < count && - !punctuationExppresion.test(identifier.charAt(position)) - ) { - position += 1 - } - - // Take next punctuation characters from `identifier`. - start = position - - while ( - position < count && - punctuationExppresion.test(identifier.charAt(position)) - ) { - if (identifier.charAt(position) === ampersand) { - position += entityPrefixLength(identifier.slice(position)) - } - - position += 1 - } - - result.push(identifier.slice(start, position)) - - // Advance `index` to the next non-punctuation character. - while (index < length && punctuationExppresion.test(value.charAt(index))) { - index += 1 - } - } - - return result.join('') -} diff --git a/packages/remark-stringify/lib/util/enclose-title.js b/packages/remark-stringify/lib/util/enclose-title.js deleted file mode 100644 index f11639ffc..000000000 --- a/packages/remark-stringify/lib/util/enclose-title.js +++ /dev/null @@ -1,17 +0,0 @@ -'use strict' - -module.exports = enclose - -var quotationMark = '"' -var apostrophe = "'" - -// There is currently no way to support nested delimiters across Markdown.pl, -// CommonMark, and GitHub (RedCarpet). The following code supports Markdown.pl -// and GitHub. -// CommonMark is not supported when mixing double- and single quotes inside a -// title. -function enclose(title) { - var delimiter = - title.indexOf(quotationMark) === -1 ? quotationMark : apostrophe - return delimiter + title + delimiter -} diff --git a/packages/remark-stringify/lib/util/enclose-uri.js b/packages/remark-stringify/lib/util/enclose-uri.js deleted file mode 100644 index d162de948..000000000 --- a/packages/remark-stringify/lib/util/enclose-uri.js +++ /dev/null @@ -1,33 +0,0 @@ -'use strict' - -var count = require('ccount') - -module.exports = enclose - -var leftParenthesis = '(' -var rightParenthesis = ')' -var lessThan = '<' -var greaterThan = '>' - -var expression = /\s/ - -// Wrap `url` in angle brackets when needed, or when -// forced. -// In links, images, and definitions, the URL part needs -// to be enclosed when it: -// -// - has a length of `0` -// - contains white-space -// - has more or less opening than closing parentheses -function enclose(uri, always) { - if ( - always || - uri.length === 0 || - expression.test(uri) || - count(uri, leftParenthesis) !== count(uri, rightParenthesis) - ) { - return lessThan + uri + greaterThan - } - - return uri -} diff --git a/packages/remark-stringify/lib/util/enter-link-reference.js b/packages/remark-stringify/lib/util/enter-link-reference.js deleted file mode 100644 index d0fe5573b..000000000 --- a/packages/remark-stringify/lib/util/enter-link-reference.js +++ /dev/null @@ -1,33 +0,0 @@ -'use strict' - -var identity = require('./identity') - -module.exports = enter - -// Shortcut and collapsed link references need no escaping and encoding during -// the processing of child nodes (it must be implied from identifier). -// -// This toggler turns encoding and escaping off for shortcut and collapsed -// references. -// -// Implies `enterLink`. -function enter(compiler, node) { - var encode = compiler.encode - var escape = compiler.escape - var exitLink = compiler.enterLink() - - if (node.referenceType !== 'shortcut' && node.referenceType !== 'collapsed') { - return exitLink - } - - compiler.escape = identity - compiler.encode = identity - - return exit - - function exit() { - compiler.encode = encode - compiler.escape = escape - exitLink() - } -} diff --git a/packages/remark-stringify/lib/util/entity-prefix-length.js b/packages/remark-stringify/lib/util/entity-prefix-length.js deleted file mode 100644 index 2ba771cee..000000000 --- a/packages/remark-stringify/lib/util/entity-prefix-length.js +++ /dev/null @@ -1,23 +0,0 @@ -'use strict' - -var decode = require('parse-entities') - -module.exports = length - -var ampersand = '&' - -// Returns the length of HTML entity that is a prefix of the given string -// (excluding the ampersand), 0 if it does not start with an entity. -function length(value) { - var prefix - - /* istanbul ignore if - Currently also tested for at implemention, but we - * keep it here because that’s proper. */ - if (value.charAt(0) !== ampersand) { - return 0 - } - - prefix = value.split(ampersand, 2).join(ampersand) - - return prefix.length - decode(prefix).length -} diff --git a/packages/remark-stringify/lib/util/identity.js b/packages/remark-stringify/lib/util/identity.js deleted file mode 100644 index 45a34f7d8..000000000 --- a/packages/remark-stringify/lib/util/identity.js +++ /dev/null @@ -1,7 +0,0 @@ -'use strict' - -module.exports = identity - -function identity(value) { - return value -} diff --git a/packages/remark-stringify/lib/util/label.js b/packages/remark-stringify/lib/util/label.js deleted file mode 100644 index 5718d7927..000000000 --- a/packages/remark-stringify/lib/util/label.js +++ /dev/null @@ -1,27 +0,0 @@ -'use strict' - -module.exports = label - -var leftSquareBracket = '[' -var rightSquareBracket = ']' - -var shortcut = 'shortcut' -var collapsed = 'collapsed' - -// Stringify a reference label. -// Because link references are easily, mistakingly, created (for example, -// `[foo]`), reference nodes have an extra property depicting how it looked in -// the original document, so stringification can cause minimal changes. -function label(node) { - var type = node.referenceType - - if (type === shortcut) { - return '' - } - - return ( - leftSquareBracket + - (type === collapsed ? '' : node.label || node.identifier) + - rightSquareBracket - ) -} diff --git a/packages/remark-stringify/lib/util/pad.js b/packages/remark-stringify/lib/util/pad.js deleted file mode 100644 index 8f9d085ec..000000000 --- a/packages/remark-stringify/lib/util/pad.js +++ /dev/null @@ -1,26 +0,0 @@ -'use strict' - -var repeat = require('repeat-string') - -module.exports = pad - -var lineFeed = '\n' -var space = ' ' - -var tabSize = 4 - -// Pad `value` with `level * tabSize` spaces. Respects lines. Ignores empty -// lines. -function pad(value, level) { - var values = value.split(lineFeed) - var index = values.length - var padding = repeat(space, level * tabSize) - - while (index--) { - if (values[index].length !== 0) { - values[index] = padding + values[index] - } - } - - return values.join(lineFeed) -} diff --git a/packages/remark-stringify/lib/visitors/blockquote.js b/packages/remark-stringify/lib/visitors/blockquote.js deleted file mode 100644 index 6b5187ae8..000000000 --- a/packages/remark-stringify/lib/visitors/blockquote.js +++ /dev/null @@ -1,22 +0,0 @@ -'use strict' - -module.exports = blockquote - -var lineFeed = '\n' -var space = ' ' -var greaterThan = '>' - -function blockquote(node) { - var values = this.block(node).split(lineFeed) - var result = [] - var length = values.length - var index = -1 - var value - - while (++index < length) { - value = values[index] - result[index] = (value ? space : '') + value - } - - return greaterThan + result.join(lineFeed + greaterThan) -} diff --git a/packages/remark-stringify/lib/visitors/break.js b/packages/remark-stringify/lib/visitors/break.js deleted file mode 100644 index 86e8c16c1..000000000 --- a/packages/remark-stringify/lib/visitors/break.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict' - -module.exports = lineBreak - -var backslash = '\\' -var lineFeed = '\n' -var space = ' ' - -var commonmark = backslash + lineFeed -var normal = space + space + lineFeed - -function lineBreak() { - return this.options.commonmark ? commonmark : normal -} diff --git a/packages/remark-stringify/lib/visitors/code.js b/packages/remark-stringify/lib/visitors/code.js deleted file mode 100644 index 71c0fef12..000000000 --- a/packages/remark-stringify/lib/visitors/code.js +++ /dev/null @@ -1,93 +0,0 @@ -'use strict' - -var streak = require('longest-streak') -var repeat = require('repeat-string') -var pad = require('../util/pad') - -module.exports = code - -var lineFeed = '\n' -var space = ' ' -var tilde = '~' -var graveAccent = '`' - -// Stringify code. -// Creates indented code when: -// -// - No language tag exists -// - Not in `fences: true` mode -// - A non-empty value exists -// -// Otherwise, GFM fenced code is created: -// -// ````markdown -// ```js -// foo(); -// ``` -// ```` -// -// When in ``fence: `~` `` mode, uses tildes as fences: -// -// ```markdown -// ~~~js -// foo(); -// ~~~ -// ``` -// -// Knows about internal fences: -// -// `````markdown -// ````markdown -// ```javascript -// foo(); -// ``` -// ```` -// ````` -function code(node, parent) { - var self = this - var value = node.value - var options = self.options - var marker = options.fence - var info = node.lang || '' - var fence - - if (info && node.meta) { - info += space + node.meta - } - - info = self.encode(self.escape(info, node)) - - // Without (needed) fences. - if ( - !info && - !options.fences && - value && - value.charAt(0) !== lineFeed && - value.charAt(value.length - 1) !== lineFeed - ) { - // Throw when pedantic, in a list item which isn’t compiled using a tab. - if ( - parent && - parent.type === 'listItem' && - options.listItemIndent !== 'tab' && - options.pedantic - ) { - self.file.fail( - 'Cannot indent code properly. See https://git.io/fxKR8', - node.position - ) - } - - return pad(value, 1) - } - - // Backticks in the info string don’t work with backtick fenced code. - // Backticks (and tildes) are fine in tilde fenced code. - if (marker === graveAccent && info.indexOf(graveAccent) !== -1) { - marker = tilde - } - - fence = repeat(marker, Math.max(streak(value, marker) + 1, 3)) - - return fence + info + lineFeed + value + lineFeed + fence -} diff --git a/packages/remark-stringify/lib/visitors/definition.js b/packages/remark-stringify/lib/visitors/definition.js deleted file mode 100644 index 11bd7afef..000000000 --- a/packages/remark-stringify/lib/visitors/definition.js +++ /dev/null @@ -1,36 +0,0 @@ -'use strict' - -var uri = require('../util/enclose-uri') -var title = require('../util/enclose-title') - -module.exports = definition - -var space = ' ' -var colon = ':' -var leftSquareBracket = '[' -var rightSquareBracket = ']' - -// Stringify an URL definition. -// -// Is smart about enclosing `url` (see `encloseURI()`) and `title` (see -// `encloseTitle()`). -// -// ```markdown -// [foo]: 'An "example" e-mail' -// ``` -function definition(node) { - var content = uri(node.url) - - if (node.title) { - content += space + title(node.title) - } - - return ( - leftSquareBracket + - (node.label || node.identifier) + - rightSquareBracket + - colon + - space + - content - ) -} diff --git a/packages/remark-stringify/lib/visitors/delete.js b/packages/remark-stringify/lib/visitors/delete.js deleted file mode 100644 index 0586a9832..000000000 --- a/packages/remark-stringify/lib/visitors/delete.js +++ /dev/null @@ -1,11 +0,0 @@ -'use strict' - -module.exports = strikethrough - -var tilde = '~' - -var fence = tilde + tilde - -function strikethrough(node) { - return fence + this.all(node).join('') + fence -} diff --git a/packages/remark-stringify/lib/visitors/emphasis.js b/packages/remark-stringify/lib/visitors/emphasis.js deleted file mode 100644 index d2fec567b..000000000 --- a/packages/remark-stringify/lib/visitors/emphasis.js +++ /dev/null @@ -1,38 +0,0 @@ -'use strict' - -module.exports = emphasis - -var underscore = '_' -var asterisk = '*' - -// Stringify an `emphasis`. -// -// The marker used is configurable through `emphasis`, which defaults to an -// underscore (`'_'`) but also accepts an asterisk (`'*'`): -// -// ```markdown -// *foo* -// ``` -// -// In `pedantic` mode, text which itself contains an underscore will cause the -// marker to default to an asterisk instead: -// -// ```markdown -// *foo_bar* -// ``` -function emphasis(node) { - var marker = this.options.emphasis - var content = this.all(node).join('') - - // When in pedantic mode, prevent using underscore as the marker when there - // are underscores in the content. - if ( - this.options.pedantic && - marker === underscore && - content.indexOf(marker) !== -1 - ) { - marker = asterisk - } - - return marker + content + marker -} diff --git a/packages/remark-stringify/lib/visitors/heading.js b/packages/remark-stringify/lib/visitors/heading.js deleted file mode 100644 index 9f432d2f5..000000000 --- a/packages/remark-stringify/lib/visitors/heading.js +++ /dev/null @@ -1,51 +0,0 @@ -'use strict' - -var repeat = require('repeat-string') - -module.exports = heading - -var lineFeed = '\n' -var space = ' ' -var numberSign = '#' -var dash = '-' -var equalsTo = '=' - -// Stringify a heading. -// -// In `setext: true` mode and when `depth` is smaller than three, creates a -// setext header: -// -// ```markdown -// Foo -// === -// ``` -// -// Otherwise, an ATX header is generated: -// -// ```markdown -// ### Foo -// ``` -// -// In `closeAtx: true` mode, the header is closed with hashes: -// -// ```markdown -// ### Foo ### -// ``` -function heading(node) { - var self = this - var depth = node.depth - var setext = self.options.setext - var closeAtx = self.options.closeAtx - var content = self.all(node).join('') - var prefix - - if (setext && depth < 3) { - return ( - content + lineFeed + repeat(depth === 1 ? equalsTo : dash, content.length) - ) - } - - prefix = repeat(numberSign, node.depth) - - return prefix + space + content + (closeAtx ? space + prefix : '') -} diff --git a/packages/remark-stringify/lib/visitors/html.js b/packages/remark-stringify/lib/visitors/html.js deleted file mode 100644 index 105cb3760..000000000 --- a/packages/remark-stringify/lib/visitors/html.js +++ /dev/null @@ -1,7 +0,0 @@ -'use strict' - -module.exports = html - -function html(node) { - return node.value -} diff --git a/packages/remark-stringify/lib/visitors/image-reference.js b/packages/remark-stringify/lib/visitors/image-reference.js deleted file mode 100644 index f78be47a0..000000000 --- a/packages/remark-stringify/lib/visitors/image-reference.js +++ /dev/null @@ -1,19 +0,0 @@ -'use strict' - -var label = require('../util/label') - -module.exports = imageReference - -var leftSquareBracket = '[' -var rightSquareBracket = ']' -var exclamationMark = '!' - -function imageReference(node) { - return ( - exclamationMark + - leftSquareBracket + - (this.encode(node.alt, node) || '') + - rightSquareBracket + - label(node) - ) -} diff --git a/packages/remark-stringify/lib/visitors/image.js b/packages/remark-stringify/lib/visitors/image.js deleted file mode 100644 index cc5cebb63..000000000 --- a/packages/remark-stringify/lib/visitors/image.js +++ /dev/null @@ -1,47 +0,0 @@ -'use strict' - -var uri = require('../util/enclose-uri') -var title = require('../util/enclose-title') - -module.exports = image - -var space = ' ' -var leftParenthesis = '(' -var rightParenthesis = ')' -var leftSquareBracket = '[' -var rightSquareBracket = ']' -var exclamationMark = '!' - -// Stringify an image. -// -// Is smart about enclosing `url` (see `encloseURI()`) and `title` (see -// `encloseTitle()`). -// -// ```markdown -// ![foo]( 'My "favourite" icon') -// ``` -// -// Supports named entities in `url`, `alt`, and `title` when in -// `settings.encode` mode. -function image(node) { - var self = this - var content = uri(self.encode(node.url || '', node)) - var exit = self.enterLink() - var alt = self.encode(self.escape(node.alt || '', node)) - - exit() - - if (node.title) { - content += space + title(self.encode(node.title, node)) - } - - return ( - exclamationMark + - leftSquareBracket + - alt + - rightSquareBracket + - leftParenthesis + - content + - rightParenthesis - ) -} diff --git a/packages/remark-stringify/lib/visitors/inline-code.js b/packages/remark-stringify/lib/visitors/inline-code.js deleted file mode 100644 index 51f5b110d..000000000 --- a/packages/remark-stringify/lib/visitors/inline-code.js +++ /dev/null @@ -1,63 +0,0 @@ -'use strict' - -var streak = require('longest-streak') -var repeat = require('repeat-string') - -module.exports = inlineCode - -var graveAccentChar = '`' -var lineFeed = 10 // '\n' -var space = 32 // ' ' -var graveAccent = 96 // '`' - -// Stringify inline code. -// -// Knows about internal ticks (`\``), and ensures one more tick is used to -// enclose the inline code: -// -// ````markdown -// ```foo ``bar`` baz``` -// ```` -// -// Even knows about inital and final ticks: -// -// ``markdown -// `` `foo `` -// `` foo` `` -// ``` -function inlineCode(node) { - var value = node.value - var ticks = repeat(graveAccentChar, streak(value, graveAccentChar) + 1) - var start = ticks - var end = ticks - var head = value.charCodeAt(0) - var tail = value.charCodeAt(value.length - 1) - var wrap = false - var index - var length - - if (head === graveAccent || tail === graveAccent) { - wrap = true - } else if (value.length > 2 && ws(head) && ws(tail)) { - index = 1 - length = value.length - 1 - - while (++index < length) { - if (!ws(value.charCodeAt(index))) { - wrap = true - break - } - } - } - - if (wrap) { - start += ' ' - end = ' ' + end - } - - return start + value + end -} - -function ws(code) { - return code === lineFeed || code === space -} diff --git a/packages/remark-stringify/lib/visitors/link-reference.js b/packages/remark-stringify/lib/visitors/link-reference.js deleted file mode 100644 index 2785bc6eb..000000000 --- a/packages/remark-stringify/lib/visitors/link-reference.js +++ /dev/null @@ -1,27 +0,0 @@ -'use strict' - -var copy = require('../util/copy-identifier-encoding') -var label = require('../util/label') - -module.exports = linkReference - -var leftSquareBracket = '[' -var rightSquareBracket = ']' - -var shortcut = 'shortcut' -var collapsed = 'collapsed' - -function linkReference(node) { - var self = this - var type = node.referenceType - var exit = self.enterLinkReference(self, node) - var value = self.all(node).join('') - - exit() - - if (type === shortcut || type === collapsed) { - value = copy(value, node.label || node.identifier) - } - - return leftSquareBracket + value + rightSquareBracket + label(node) -} diff --git a/packages/remark-stringify/lib/visitors/link.js b/packages/remark-stringify/lib/visitors/link.js deleted file mode 100644 index 4cbde1b72..000000000 --- a/packages/remark-stringify/lib/visitors/link.js +++ /dev/null @@ -1,65 +0,0 @@ -'use strict' - -var uri = require('../util/enclose-uri') -var title = require('../util/enclose-title') - -module.exports = link - -var space = ' ' -var leftSquareBracket = '[' -var rightSquareBracket = ']' -var leftParenthesis = '(' -var rightParenthesis = ')' - -// Expression for a protocol: -// See . -var protocol = /^[a-z][a-z+.-]+:\/?/i - -// Stringify a link. -// -// When no title exists, the compiled `children` equal `url`, and `url` starts -// with a protocol, an auto link is created: -// -// ```markdown -// -// ``` -// -// Otherwise, is smart about enclosing `url` (see `encloseURI()`) and `title` -// (see `encloseTitle()`). -// ``` -// -// ```markdown -// [foo]( 'An "example" e-mail') -// ``` -// -// Supports named entities in the `url` and `title` when in `settings.encode` -// mode. -function link(node) { - var self = this - var content = self.encode(node.url || '', node) - var exit = self.enterLink() - var escaped = self.encode(self.escape(node.url || '', node)) - var value = self.all(node).join('') - - exit() - - if (node.title == null && protocol.test(content) && escaped === value) { - // Backslash escapes do not work in autolinks, so we do not escape. - return uri(self.encode(node.url), true) - } - - content = uri(content) - - if (node.title) { - content += space + title(self.encode(self.escape(node.title, node), node)) - } - - return ( - leftSquareBracket + - value + - rightSquareBracket + - leftParenthesis + - content + - rightParenthesis - ) -} diff --git a/packages/remark-stringify/lib/visitors/list-item.js b/packages/remark-stringify/lib/visitors/list-item.js deleted file mode 100644 index 15de8f81d..000000000 --- a/packages/remark-stringify/lib/visitors/list-item.js +++ /dev/null @@ -1,75 +0,0 @@ -'use strict' - -var repeat = require('repeat-string') -var pad = require('../util/pad') - -module.exports = listItem - -var lineFeed = '\n' -var space = ' ' -var leftSquareBracket = '[' -var rightSquareBracket = ']' -var lowercaseX = 'x' - -var ceil = Math.ceil -var blank = lineFeed + lineFeed - -var tabSize = 4 - -// Stringify a list item. -// -// Prefixes the content with a checked checkbox when `checked: true`: -// -// ```markdown -// [x] foo -// ``` -// -// Prefixes the content with an unchecked checkbox when `checked: false`: -// -// ```markdown -// [ ] foo -// ``` -function listItem(node, parent, position, bullet) { - var self = this - var style = self.options.listItemIndent - var marker = bullet || self.options.bullet - var spread = node.spread == null ? true : node.spread - var checked = node.checked - var children = node.children - var length = children.length - var values = [] - var index = -1 - var value - var indent - var spacing - - while (++index < length) { - values[index] = self.visit(children[index], node) - } - - value = values.join(spread ? blank : lineFeed) - - if (typeof checked === 'boolean') { - // Note: I’d like to be able to only add the space between the check and - // the value, but unfortunately github does not support empty list-items - // with a checkbox :( - value = - leftSquareBracket + - (checked ? lowercaseX : space) + - rightSquareBracket + - space + - value - } - - if (style === '1' || (style === 'mixed' && value.indexOf(lineFeed) === -1)) { - indent = marker.length + 1 - spacing = space - } else { - indent = ceil((marker.length + 1) / tabSize) * tabSize - spacing = repeat(space, indent - marker.length) - } - - return value - ? marker + spacing + pad(value, indent / tabSize).slice(indent) - : marker -} diff --git a/packages/remark-stringify/lib/visitors/list.js b/packages/remark-stringify/lib/visitors/list.js deleted file mode 100644 index a394ab873..000000000 --- a/packages/remark-stringify/lib/visitors/list.js +++ /dev/null @@ -1,8 +0,0 @@ -'use strict' - -module.exports = list - -function list(node) { - var fn = node.ordered ? this.visitOrderedItems : this.visitUnorderedItems - return fn.call(this, node) -} diff --git a/packages/remark-stringify/lib/visitors/paragraph.js b/packages/remark-stringify/lib/visitors/paragraph.js deleted file mode 100644 index a9654e398..000000000 --- a/packages/remark-stringify/lib/visitors/paragraph.js +++ /dev/null @@ -1,7 +0,0 @@ -'use strict' - -module.exports = paragraph - -function paragraph(node) { - return this.all(node).join('') -} diff --git a/packages/remark-stringify/lib/visitors/root.js b/packages/remark-stringify/lib/visitors/root.js deleted file mode 100644 index 88e3c45f7..000000000 --- a/packages/remark-stringify/lib/visitors/root.js +++ /dev/null @@ -1,17 +0,0 @@ -'use strict' - -module.exports = root - -var lineFeed = '\n' - -// Stringify a root. -// Adds a final newline to ensure valid POSIX files. */ -function root(node) { - var doc = this.block(node) - - if (doc.charAt(doc.length - 1) !== lineFeed) { - doc += lineFeed - } - - return doc -} diff --git a/packages/remark-stringify/lib/visitors/strong.js b/packages/remark-stringify/lib/visitors/strong.js deleted file mode 100644 index b7445ac83..000000000 --- a/packages/remark-stringify/lib/visitors/strong.js +++ /dev/null @@ -1,18 +0,0 @@ -'use strict' - -var repeat = require('repeat-string') - -module.exports = strong - -// Stringify a `strong`. -// -// The marker used is configurable by `strong`, which defaults to an asterisk -// (`'*'`) but also accepts an underscore (`'_'`): -// -// ```markdown -// __foo__ -// ``` -function strong(node) { - var marker = repeat(this.options.strong, 2) - return marker + this.all(node).join('') + marker -} diff --git a/packages/remark-stringify/lib/visitors/table-cell.js b/packages/remark-stringify/lib/visitors/table-cell.js deleted file mode 100644 index 9de3dbf88..000000000 --- a/packages/remark-stringify/lib/visitors/table-cell.js +++ /dev/null @@ -1,9 +0,0 @@ -'use strict' - -module.exports = tableCell - -var lineFeed = /\r?\n/g - -function tableCell(node) { - return this.all(node).join('').replace(lineFeed, ' ') -} diff --git a/packages/remark-stringify/lib/visitors/table.js b/packages/remark-stringify/lib/visitors/table.js deleted file mode 100644 index 33771508f..000000000 --- a/packages/remark-stringify/lib/visitors/table.js +++ /dev/null @@ -1,49 +0,0 @@ -'use strict' - -var markdownTable = require('markdown-table') - -module.exports = table - -// Stringify table. -// -// Creates a fenced table. -// The table has aligned delimiters by default, but not in -// `tablePipeAlign: false`: -// -// ```markdown -// | Header 1 | Header 2 | -// | :-: | - | -// | Alpha | Bravo | -// ``` -// -// The table is spaced by default, but not in `tableCellPadding: false`: -// -// ```markdown -// |Foo|Bar| -// |:-:|---| -// |Baz|Qux| -// ``` -function table(node) { - var self = this - var options = self.options - var padding = options.tableCellPadding - var alignDelimiters = options.tablePipeAlign - var stringLength = options.stringLength - var rows = node.children - var index = rows.length - var exit = self.enterTable() - var result = [] - - while (index--) { - result[index] = self.all(rows[index]) - } - - exit() - - return markdownTable(result, { - align: node.align, - alignDelimiters: alignDelimiters, - padding: padding, - stringLength: stringLength - }) -} diff --git a/packages/remark-stringify/lib/visitors/text.js b/packages/remark-stringify/lib/visitors/text.js deleted file mode 100644 index 53d0affff..000000000 --- a/packages/remark-stringify/lib/visitors/text.js +++ /dev/null @@ -1,19 +0,0 @@ -'use strict' - -module.exports = text - -// Stringify text. -// Supports named entities in `settings.encode: true` mode: -// -// ```markdown -// AT&T -// ``` -// -// Supports numbered entities in `settings.encode: numbers` mode: -// -// ```markdown -// AT&T -// ``` -function text(node, parent) { - return this.encode(this.escape(node.value, node, parent), node) -} diff --git a/packages/remark-stringify/lib/visitors/thematic-break.js b/packages/remark-stringify/lib/visitors/thematic-break.js deleted file mode 100644 index 4cd249f8c..000000000 --- a/packages/remark-stringify/lib/visitors/thematic-break.js +++ /dev/null @@ -1,31 +0,0 @@ -'use strict' - -var repeat = require('repeat-string') - -module.exports = thematic - -var space = ' ' - -// Stringify a `thematic-break`. -// The character used is configurable through `rule`: (`'_'`): -// -// ```markdown -// ___ -// ``` -// -// The number of repititions is defined through `ruleRepetition` (`6`): -// -// ```markdown -// ****** -// ``` -// -// Whether spaces delimit each character, is configured through `ruleSpaces` -// (`true`): -// ```markdown -// * * * -// ``` -function thematic() { - var options = this.options - var rule = repeat(options.rule, options.ruleRepetition) - return options.ruleSpaces ? rule.split('').join(space) : rule -} diff --git a/packages/remark-stringify/package.json b/packages/remark-stringify/package.json index 39a0c91c2..9cc24a564 100644 --- a/packages/remark-stringify/package.json +++ b/packages/remark-stringify/package.json @@ -1,6 +1,6 @@ { "name": "remark-stringify", - "version": "8.1.1", + "version": "9.0.0-alpha.1", "description": "remark plugin to compile Markdown", "license": "MIT", "keywords": [ @@ -33,25 +33,11 @@ ], "files": [ "index.js", - "lib", "types/index.d.ts" ], "types": "types/index.d.ts", "dependencies": { - "ccount": "^1.0.0", - "is-alphanumeric": "^1.0.0", - "is-decimal": "^1.0.0", - "is-whitespace-character": "^1.0.0", - "longest-streak": "^2.0.1", - "markdown-escapes": "^1.0.0", - "markdown-table": "^2.0.0", - "mdast-util-compact": "^2.0.0", - "parse-entities": "^2.0.0", - "repeat-string": "^1.5.4", - "state-toggle": "^1.0.0", - "stringify-entities": "^3.0.0", - "unherit": "^1.0.4", - "xtend": "^4.0.1" + "mdast-util-to-markdown": "^0.4.0" }, "scripts": { "test": "tape test.js" diff --git a/packages/remark-stringify/readme.md b/packages/remark-stringify/readme.md index 51f6098cb..81396c644 100644 --- a/packages/remark-stringify/readme.md +++ b/packages/remark-stringify/readme.md @@ -13,53 +13,6 @@ Serializes [**mdast**][mdast] syntax trees to Markdown. Used in the [**remark** processor][remark] but can be used on its own as well. Can be [extended][extend] to change how Markdown is serialized. -## Sponsors - -Support this effort and give back by sponsoring on [OpenCollective][collective]! - - - - - - - - - - - - - - - - -
- Gatsby 🥇

- -
- Vercel 🥇

- -
- Netlify

- - -
- Holloway

- -
- ThemeIsle

- -
- BoostIO

- -
- Expo

- -
-
- You? -

-
- ## Install [npm][]: @@ -77,33 +30,18 @@ var html = require('rehype-parse') var rehype2remark = require('rehype-remark') var stringify = require('remark-stringify') -var processor = unified() - .use(html) - .use(rehype2remark) - .use(stringify, { - bullet: '*', - fence: '~', - fences: true, - incrementListMarker: false - }) +var processor = unified().use(html).use(rehype2remark).use(stringify, { + bullet: '*', + fence: '~', + fences: true, + incrementListMarker: false +}) process.stdin.pipe(createStream(processor)).pipe(process.stdout) ``` [See **unified** for more examples »][unified] -## Contents - -* [API](#api) - * [`processor().use(stringify[, options])`](#processorusestringify-options) - * [`stringify.Compiler`](#stringifycompiler) -* [Extending the `Compiler`](#extending-the-compiler) - * [`Compiler#visitors`](#compilervisitors) - * [`function visitor(node[, parent])`](#function-visitornode-parent) -* [Security](#security) -* [Contribute](#contribute) -* [License](#license) - ## API [See **unified** for API docs »][unified] @@ -113,177 +51,18 @@ process.stdin.pipe(createStream(processor)).pipe(process.stdout) Configure the `processor` to serialize [**mdast**][mdast] syntax trees to Markdown. -##### `options` +###### `options` Options can be passed directly, or passed later through [`processor.data()`][data]. -###### `options.gfm` - -Serialize with the required escapes for GFM compatible Markdown (`boolean`, -default: `true`). - -* Escape pipes (`|`, for tables) -* Escape colons (`:`, for literal URLs) -* Escape tildes (`~`, for strike-through) - -###### `options.commonmark` - -Serialize for CommonMark compatible Markdown (`boolean`, default: `false`). - -* Serialize adjacent block quotes separately -* Escape more characters using slashes, instead of as entities - -###### `options.pedantic` - -⚠️ Pedantic was previously used to mimic old-style Markdown mode: no tables, no -fenced code, and with many bugs. -It’s currently still “working”, but please do not use it, it’ll be removed in -the future. - -###### `options.entities` - -⚠️ `entities` was previously used, but included bugs. -It’s currently still “working”, but please do not use it, it’ll be removed in -the future. - -###### `options.setext` - -Serialize headings, when possible, in Setext-style (`boolean`, default: `false`). -Uses `=` for level one headings and `-` for level two headings. -Other heading levels are serialized as ATX (respecting `closeAtx`). - -###### `options.closeAtx` - -Serialize ATX headings with the same amount of closing hashes as opening hashes -(`boolean`, default: `false`). - -###### `options.tableCellPadding` - -Create tables with a space between cell delimiters (`|`) and content (`boolean`, -default: `true`). - -###### `options.tablePipeAlign` - -Align the delimiters (`|`) between table cells so that they all align nicely and -form a grid (`boolean`, default: `true`). - -###### `options.stringLength` - -Function passed to [`markdown-table`][markdown-table] to detect the length of a -table cell (`Function`, default: [`s => s.length`][string-length]). -Used to pad tables. - -###### `options.fence` - -Marker to use for fenced code blocks (`'~'` or ``'`'``, default: ``'`'``). - -###### `options.fences` - -Create code blocks with a fence instead of indentation if they have no info -string (`boolean`, default: `false`). - -When `false`, code blocks are indented. -Code blocks with an info string are always fenced. - -###### `options.bullet` - -Marker to use for the bullet of unordered list items (`'-'`, `'*'`, or `'+'`, -default: `'-'`). - -###### `options.listItemIndent` - -Style of indentation for list items (`'tab'`, `'mixed'` or `'1'`, default: -`'tab'`). - -* `'tab'`: use a tab stops (4 spaces) -* `'1'`: use one space -* `'mixed'`: use `1` for tight and `tab` for loose list items - -###### `options.incrementListMarker` - -Increment ordered list item numbers (`boolean`, default: `true`). - -When `false`, all list item numbers will be the same. - -###### `options.tightDefinitions` - -Separate definitions with a single line feed (`boolean`, default: `false`). - -When `false`, definitions will have blank lines between them, similar to other -blocks. - -###### `options.rule` +All the formatting options of [`mdast-util-to-markdown`][to-markdown-options] +are supported and will be passed through. -Marker to use for thematic breaks / horizontal rules (`'-'`, `'*'`, or `'_'`, -default: `'*'`). +## Extending the compiler -###### `options.ruleRepetition` - -Number of markers to use for thematic breaks / horizontal rules (`number`, -default: `3`). -Musts be `3` or more. - -###### `options.ruleSpaces` - -Place a space between thematic break (horizontal rule) markers (`boolean`, -default `true`). - -###### `options.strong` - -Marker to use for importance (`'_'` or `'*'`, default `'*'`). - -###### `options.emphasis` - -Marker to use for emphasis (`'_'` or `'*'`, default `'_'`). - -### `stringify.Compiler` - -Access to the [compiler][], if you need it. - -## Extending the `Compiler` - -If the `remark-stringify` plugin is used, it adds a [`Compiler`][compiler] -constructor function to the `processor`. -Other plugins can add visitors to its prototype to change how Markdown is -serialized. - -The below plugin modifies a [visitor][] to add an extra blank line before -headings with a rank of `2`. - -```js -module.exports = gap - -function gap() { - var Compiler = this.Compiler - var visitors = Compiler.prototype.visitors - var original = visitors.heading - - visitors.heading = heading - - function heading(node) { - return (node.depth === 2 ? '\n' : '') + original.apply(this, arguments) - } -} -``` - -### `Compiler#visitors` - -Map of types to [visitor][]s (`Object.`). - -### `function visitor(node[, parent])` - -Serialize `node`. - -###### Parameters - -* `node` ([`Node`][node]) — Node to compile -* `parent` ([`Parent`][parent], optional) — Parent of `node`. - Not available on the root node - -###### Returns - -`string` — Serialized given `node`. +See [`mdast-util-to-markdown`][to-markdown]. +Then create a wrapper plugin such as `remark-gfm`. ## Security @@ -309,6 +88,53 @@ This project has a [code of conduct][coc]. By interacting with this repository, organization, or community you agree to abide by its terms. +## Sponsor + +Support this effort and give back by sponsoring on [OpenCollective][collective]! + + + + + + + + + + + + + + + + +
+ Gatsby 🥇

+ +
+ Vercel 🥇

+ +
+ Netlify

+ + +
+ Holloway

+ +
+ ThemeIsle

+ +
+ BoostIO

+ +
+ Expo

+ +
+
+ You? +

+
+ ## License [MIT][license] © [Titus Wormer][author] @@ -369,20 +195,14 @@ abide by its terms. [mdast]: https://github.com/syntax-tree/mdast -[node]: https://github.com/syntax-tree/unist#node - -[parent]: https://github.com/syntax-tree/unist#parent - -[extend]: #extending-the-compiler - -[visitor]: #function-visitornode-parent - -[markdown-table]: https://github.com/wooorm/markdown-table - -[string-length]: https://github.com/wooorm/markdown-table#stringlengthcell - [xss]: https://en.wikipedia.org/wiki/Cross-site_scripting [rehype]: https://github.com/rehypejs/rehype [sanitize]: https://github.com/rehypejs/rehype-sanitize + +[to-markdown]: https://github.com/syntax-tree/mdast-util-to-markdown + +[to-markdown-options]: https://github.com/syntax-tree/mdast-util-to-markdown#formatting-options + +[extend]: #extending-the-compiler diff --git a/packages/remark-stringify/test.js b/packages/remark-stringify/test.js index cc6becf2f..9f14a2255 100644 --- a/packages/remark-stringify/test.js +++ b/packages/remark-stringify/test.js @@ -1,20 +1,12 @@ 'use strict' var test = require('tape') -var wcwidth = require('wcwidth') -var u = require('unist-builder') -var visit = require('unist-util-visit') var unified = require('unified') var parse = require('../remark-parse') +var gfm = require('mdast-util-gfm/to-markdown') var stringify = require('.') -var Compiler = stringify.Compiler - -var commonmark = {commonmark: true} -var pedantic = {pedantic: true} -var uncollapsable = {start: {line: 1, column: NaN}, end: {line: 1, column: NaN}} - test('remark().stringify(ast, file)', function (t) { t.equal( unified() @@ -36,34 +28,6 @@ test('remark().stringify(ast, file)', function (t) { 'should throw when `ast` is not an object' ) - t.doesNotThrow(function () { - var compiler = new Compiler() - compiler.setOptions() - }, 'should not throw when setting nothing') - - t.throws( - function () { - var compiler = new Compiler() - compiler.setOptions(true) - }, - /^Error: Invalid value `true` for setting `options`$/, - 'should throw when setting invalid values' - ) - - t.test('should ignore nullish numbers', function (st) { - var compiler = new Compiler() - compiler.setOptions({ruleRepetition: null}) - st.equal(compiler.options.ruleRepetition, 3) - st.end() - }) - - t.test('should ignore nullish strings', function (st) { - var compiler = new Compiler() - compiler.setOptions({listItemIndent: null}) - st.equal(compiler.options.listItemIndent, 'tab') - st.end() - }) - t.throws( function () { unified().use(stringify).stringify({type: 'unicorn'}) @@ -77,7 +41,7 @@ test('remark().stringify(ast, file)', function (t) { unified() .use(stringify) .data('settings', {bullet: true}) - .stringify(empty()) + .stringify({type: 'listItem'}) }, /options\.bullet/, 'should throw when `options.bullet` is not a valid list bullet' @@ -88,29 +52,21 @@ test('remark().stringify(ast, file)', function (t) { unified() .use(stringify) .data('settings', {listItemIndent: 'foo'}) - .stringify(empty()) + .stringify({type: 'listItem'}) }, /options\.listItemIndent/, 'should throw when `options.listItemIndent` is not a valid constant' ) - t.throws( - function () { - unified().use(stringify).data('settings', {rule: true}).stringify(empty()) - }, - /options\.rule/, - 'should throw when `options.rule` is not a valid horizontal rule bullet' - ) - t.throws( function () { unified() .use(stringify) - .data('settings', {ruleSpaces: 1}) - .stringify(empty()) + .data('settings', {rule: true}) + .stringify({type: 'thematicBreak'}) }, - /options\.ruleSpaces/, - 'should throw when `options.ruleSpaces` is not a boolean' + /options\.rule/, + 'should throw when `options.rule` is not a valid horizontal rule bullet' ) t.throws( @@ -118,29 +74,18 @@ test('remark().stringify(ast, file)', function (t) { unified() .use(stringify) .data('settings', {ruleRepetition: 1}) - .stringify(empty()) + .stringify({type: 'thematicBreak'}) }, /options\.ruleRepetition/, 'should throw when `options.ruleRepetition` is too low' ) - t.throws( - function () { - unified() - .use(stringify) - .data('settings', {ruleRepetition: NaN}) - .stringify(empty()) - }, - /options\.ruleRepetition/, - 'should throw when `options.ruleRepetition` is `NaN`' - ) - t.throws( function () { unified() .use(stringify) .data('settings', {ruleRepetition: true}) - .stringify(empty()) + .stringify({type: 'thematicBreak'}) }, /options\.ruleRepetition/, 'should throw when `options.ruleRepetition` is not a number' @@ -151,7 +96,7 @@ test('remark().stringify(ast, file)', function (t) { unified() .use(stringify) .data('settings', {emphasis: '-'}) - .stringify(empty()) + .stringify({type: 'emphasis'}) }, /options\.emphasis/, 'should throw when `options.emphasis` is not a valid emphasis marker' @@ -162,133 +107,23 @@ test('remark().stringify(ast, file)', function (t) { unified() .use(stringify) .data('settings', {strong: '-'}) - .stringify(empty()) + .stringify({type: 'strong'}) }, /options\.strong/, 'should throw when `options.strong` is not a valid emphasis marker' ) - t.throws( - function () { - unified().use(stringify).data('settings', {setext: 0}).stringify(empty()) - }, - /options\.setext/, - 'should throw when `options.setext` is not a boolean' - ) - - t.throws( - function () { - unified() - .use(stringify) - .data('settings', {incrementListMarker: -1}) - .stringify(empty()) - }, - /options\.incrementListMarker/, - 'should throw when `options.incrementListMarker` is not a boolean' - ) - - t.throws( - function () { - unified() - .use(stringify) - .data('settings', {tightDefinitions: 'blank'}) - .stringify(empty()) - }, - /options\.tightDefinitions/, - 'should throw when `options.tightDefinitions` is not a boolean' - ) - t.throws( function () { unified() .use(stringify) - .data('settings', {fences: NaN}) - .stringify(empty()) - }, - /options\.fences/, - 'should throw when `options.fences` is not a boolean' - ) - - t.throws( - function () { - unified().use(stringify).data('settings', {fence: '-'}).stringify(empty()) + .data('settings', {fence: '-'}) + .stringify({type: 'code'}) }, /options\.fence/, 'should throw when `options.fence` is not a valid fence marker' ) - t.throws( - function () { - unified() - .use(stringify) - .data('settings', {closeAtx: NaN}) - .stringify(empty()) - }, - /options\.closeAtx/, - 'should throw when `options.closeAtx` is not a boolean' - ) - - t.throws( - function () { - unified() - .use(stringify) - .data('settings', {tableCellPadding: '?'}) - .stringify(empty()) - }, - /options\.tableCellPadding/, - 'should throw when `options.tableCellPadding` is not a boolean' - ) - - t.throws( - function () { - unified() - .use(stringify) - .data('settings', {tablePipeAlign: '.'}) - .stringify(empty()) - }, - /options\.tablePipeAlign/, - 'should throw when `options.tablePipeAlign` is not a boolean' - ) - - t.throws( - function () { - unified() - .use(stringify) - .data('settings', {stringLength: 1}) - .stringify(empty()) - }, - /options\.stringLength/, - 'should throw when `options.stringLength` is not a function' - ) - - t.test('should handle underscores in emphasis in pedantic mode', function ( - st - ) { - st.plan(2) - - var example = '*alpha_bravo*\n' - - // Without pedantic mode, emphasis always defaults to underscores. - st.equal( - unified().use(parse).use(stringify).processSync(example).toString(), - '_alpha_bravo_\n', - 'baseline' - ) - - // With pedantic mode, emphasis will default to asterisks if the text to be - // emphasized contains underscores. - st.equal( - unified() - .use(parse) - .use(stringify) - .use({settings: {pedantic: true}}) - .processSync(example) - .toString(), - '*alpha\\_bravo*\n', - 'pedantic' - ) - }) - t.test('should support optional list fields', function (st) { st.equal( toString({ @@ -297,15 +132,12 @@ test('remark().stringify(ast, file)', function (t) { { type: 'listItem', children: [ - { - type: 'paragraph', - children: [{type: 'text', value: 'alpha'}] - } + {type: 'paragraph', children: [{type: 'text', value: 'alpha'}]} ] } ] }), - '- alpha', + '* alpha\n', 'no ordered, start, or spread' ) @@ -317,15 +149,12 @@ test('remark().stringify(ast, file)', function (t) { { type: 'listItem', children: [ - { - type: 'paragraph', - children: [{type: 'text', value: 'bravo'}] - } + {type: 'paragraph', children: [{type: 'text', value: 'bravo'}]} ] } ] }), - '- bravo', + '* bravo\n', 'start; no ordered or spread' ) @@ -337,24 +166,18 @@ test('remark().stringify(ast, file)', function (t) { { type: 'listItem', children: [ - { - type: 'paragraph', - children: [{type: 'text', value: 'charlie'}] - } + {type: 'paragraph', children: [{type: 'text', value: 'charlie'}]} ] }, { type: 'listItem', children: [ - { - type: 'paragraph', - children: [{type: 'text', value: 'delta'}] - } + {type: 'paragraph', children: [{type: 'text', value: 'delta'}]} ] } ] }), - '- charlie\n\n- delta', + '* charlie\n\n* delta\n', 'spread; no ordered or start' ) @@ -374,7 +197,7 @@ test('remark().stringify(ast, file)', function (t) { } ] }), - '1. echo', + '1. echo\n', 'ordered; no start or spread' ) @@ -387,24 +210,18 @@ test('remark().stringify(ast, file)', function (t) { { type: 'listItem', children: [ - { - type: 'paragraph', - children: [{type: 'text', value: 'foxtrot'}] - } + {type: 'paragraph', children: [{type: 'text', value: 'foxtrot'}]} ] }, { type: 'listItem', children: [ - { - type: 'paragraph', - children: [{type: 'text', value: 'golf'}] - } + {type: 'paragraph', children: [{type: 'text', value: 'golf'}]} ] } ] }), - '1. foxtrot\n\n2. golf', + '1. foxtrot\n\n2. golf\n', 'ordered and spread; no start' ) @@ -418,24 +235,18 @@ test('remark().stringify(ast, file)', function (t) { { type: 'listItem', children: [ - { - type: 'paragraph', - children: [{type: 'text', value: 'hotel'}] - } + {type: 'paragraph', children: [{type: 'text', value: 'hotel'}]} ] }, { type: 'listItem', children: [ - { - type: 'paragraph', - children: [{type: 'text', value: 'india'}] - } + {type: 'paragraph', children: [{type: 'text', value: 'india'}]} ] } ] }), - '3. hotel\n\n4. india', + '3. hotel\n\n4. india\n', 'ordered, spread, and start' ) @@ -448,54 +259,31 @@ test('remark().stringify(ast, file)', function (t) { t.test('should support optional list item fields', function (st) { var children = [ - { - type: 'paragraph', - children: [{type: 'text', value: 'alpha'}] - }, + {type: 'paragraph', children: [{type: 'text', value: 'alpha'}]}, { type: 'blockquote', children: [ - { - type: 'paragraph', - children: [{type: 'text', value: 'bravo'}] - } + {type: 'paragraph', children: [{type: 'text', value: 'bravo'}]} ] } ] st.equal( toString({type: 'listItem', children: children}), - '- alpha\n\n > bravo', - 'no checked or spread' - ) - - st.equal( - toString({type: 'listItem', checked: true, children: children}), - '- [x] alpha\n\n > bravo', - 'checked; no spread' + '* alpha\n\n > bravo\n', + 'no spread' ) st.equal( toString({type: 'listItem', spread: true, children: children}), - '- alpha\n\n > bravo', - 'spread: true; no checked' + '* alpha\n\n > bravo\n', + 'spread: true' ) st.equal( toString({type: 'listItem', spread: false, children: children}), - '- alpha\n > bravo', - 'spread: false; no checked' - ) - - st.equal( - toString({ - type: 'listItem', - checked: false, - spread: false, - children: children - }), - '- [ ] alpha\n > bravo', - 'spread and checked' + '* alpha\n > bravo\n', + 'spread: false' ) st.end() @@ -506,13 +294,7 @@ test('remark().stringify(ast, file)', function (t) { }) t.test('should support empty list items', function (st) { - st.equal(toString({type: 'listItem', children: []}), '-', 'no checked') - - st.equal( - toString({type: 'listItem', checked: true, children: []}), - '- [x] ', - 'checked' - ) + st.equal(toString({type: 'listItem', children: []}), '*\n') st.end() @@ -521,57 +303,6 @@ test('remark().stringify(ast, file)', function (t) { } }) - t.test( - 'emphasis in pedantic mode should support a variety of contained inline content', - function (st) { - // Data-driven tests in the format: [name, input, expected] - var tests = [ - ['words with asterisks', '*inner content*', '_inner content_\n'], - ['words with underscores', '_inner content_', '_inner content_\n'], - ['links', '*[](http://some_url.com)*', '*[](http://some_url.com)*\n'], - [ - 'underscores inside asterisks', - '*inner content _with_ emphasis*', - '*inner content _with_ emphasis*\n' - ], - [ - 'asterisks inside underscores', - '_inner content *with* emphasis_', - '*inner content _with_ emphasis*\n' - ], - [ - 'images', - '*![](http://some_url.com/img.jpg)*', - '*![](http://some_url.com/img.jpg)*\n' - ], - [ - 'inline code with asterisks', - '*content `with` code*', - '_content `with` code_\n' - ], - [ - 'inline code with underscores', - '_content `with` code_', - '_content `with` code_\n' - ] - ] - - st.plan(tests.length) - tests.forEach(function (test) { - st.equal( - unified() - .use(parse) - .use(stringify) - .use({settings: {pedantic: true}}) - .processSync(test[1]) - .toString(), - test[2], - test[0] - ) - }) - } - ) - t.test('should process references with casing properly', function (st) { // Data-driven tests in the format: [name, value] var tests = [ @@ -589,8 +320,12 @@ test('remark().stringify(ast, file)', function (t) { function each(test) { st.equal( - unified().use(parse).use(stringify).processSync(test[1]).toString(), - test[1] + '\n', + unified() + .use(parse) + .use(stringify) + .processSync(test[1] + '\n\n[bravo]: #\n') + .toString(), + test[1] + '\n\n[bravo]: #\n', test[0] ) } @@ -598,12 +333,8 @@ test('remark().stringify(ast, file)', function (t) { t.test('should process associations without label', function (st) { st.equal( - toString({ - type: 'definition', - identifier: 'a', - url: 'example.com' - }), - '[a]: example.com', + toString({type: 'definition', identifier: 'a', url: 'example.com'}), + '[a]: example.com\n', 'definition' ) @@ -613,17 +344,13 @@ test('remark().stringify(ast, file)', function (t) { identifier: 'a', children: [{type: 'text', value: 'b'}] }), - '[b][a]', + '[b][a]\n', 'link reference' ) st.equal( - toString({ - type: 'imageReference', - identifier: 'a', - alt: 'b' - }), - '![b][a]', + toString({type: 'imageReference', identifier: 'a', alt: 'b'}), + '![b][a]\n', 'image reference' ) @@ -634,129 +361,13 @@ test('remark().stringify(ast, file)', function (t) { } }) - t.test('should support `stringLength`', function (st) { - st.plan(2) - - var example = [ - '| alpha | bravo |', - '| ----- | ------- |', - '| 中文 | charlie |', - '' - ].join('\n') - - st.equal( - unified().use(parse).use(stringify).processSync(example).toString(), - [ - '| alpha | bravo |', - '| ----- | ------- |', - '| 中文 | charlie |', - '' - ].join('\n'), - 'baseline' - ) - - st.equal( - unified() - .use(parse) - .use(stringify) - .use({settings: {stringLength: wcwidth}}) - .processSync(example) - .toString(), - [ - '| alpha | bravo |', - '| ----- | ------- |', - '| 中文 | charlie |', - '' - ].join('\n'), - 'custom `stringLength`' - ) - }) - - t.test('should support valid strings', function (st) { - var compiler = new Compiler() - st.equal(compiler.options.listItemIndent, 'tab') - compiler.setOptions({listItemIndent: 'mixed'}) - st.equal(compiler.options.listItemIndent, 'mixed') - st.end() - }) - - t.test('should support valid numbers', function (st) { - var compiler = new Compiler() - st.equal(compiler.options.ruleRepetition, 3) - compiler.setOptions({ruleRepetition: 5}) - st.equal(compiler.options.ruleRepetition, 5) - st.end() - }) - - t.test('should support valid booleans', function (st) { - var compiler = new Compiler() - st.equal(compiler.options.setext, false) - compiler.setOptions({setext: true}) - st.equal(compiler.options.setext, true) - st.end() - }) - - t.test('should support valid enums', function (st) { - var compiler = new Compiler() - st.equal(compiler.options.strong, '*') - compiler.setOptions({strong: '_'}) - st.equal(compiler.options.strong, '_') - st.end() - }) - - t.test('should support valid functions', function (st) { - // Coverage: - stringLength() - - var compiler = new Compiler() - compiler.setOptions({stringLength: stringLength}) - st.equal(compiler.options.stringLength, stringLength) - st.end() - - function stringLength() {} - }) - - t.test('should be able to set options', function (st) { - var processor = unified().use(parse).use(stringify).use(plugin) - - var tree = processor.parse( - ['', '', '# Hello World', ''].join('\n') - ) - - st.equal( - processor.stringify(tree), - ['', '', 'Hello World', '===========', ''].join('\n') - ) - - function plugin() { - var html = processor.Compiler.prototype.visitors.html - - processor.Compiler.prototype.visitors.html = replacement - - // Set option when an HTML comment occurs. - function replacement(node) { - var value = node.value - var result = //g.exec(value) - var options = {} - - options[result[1]] = true - - this.setOptions(options) - - return html.apply(this, arguments) - } - } - - st.end() - }) - t.test('should stringify mailto links properly', function (st) { st.plan(3) var example = '[example@foo.com](mailto:example@foo.com)' st.equal( unified().use(parse).use(stringify).processSync(example).toString(), - example + '\n', + '\n', 'url is `mailto:` plus link text' ) @@ -767,543 +378,228 @@ test('remark().stringify(ast, file)', function (t) { 'url is link text' ) - example = '[example](mailto:example@foo.com)' + example = '[example](mailto:example@foo.com)\n' st.equal( unified().use(parse).use(stringify).processSync(example).toString(), - example + '\n', + example, 'url is not link text' ) }) - t.equal( - unified() - .use(stringify) - .stringify( - u('root', [ - u('table', [ - u('tableRow', [ - u('tableCell', [u('text', 'Alpha')]), - u('tableCell', [u('text', 'Bravo\ncharlie')]) - ]), - u('tableRow', [ - u('tableCell', [u('text', 'Delta')]), - u('tableCell', [u('text', 'Echo \n foxtrott')]) - ]) - ]) - ]) - ) - .toString(), - [ - '| Alpha | Bravo charlie |', - '| ----- | --------------- |', - '| Delta | Echo foxtrott |', - '' - ].join('\n'), - 'should not stringify line feeds in tables' - ) - t.end() }) test('stringify escapes', function (t) { - t.equal(toString('a\\b'), 'a\\\\b', '`\\`') - t.equal(toString('a`b'), 'a\\`b', '`` ` ``') - t.equal(toString('a*b'), 'a\\*b', '`*`') - t.equal(toString('a[b'), 'a\\[b', '`[`') - t.equal(toString('a)', + t.equal(toString('a\\b'), 'a\\b\n', '`\\`') + t.equal(toString('a\\-b'), 'a\\\\-b\n', '`\\` followed by punctuation') + t.equal(toString('a`b'), 'a\\`b\n', '`` ` ``') + t.equal(toString('a*b'), 'a\\*b\n', '`*`') + t.equal(toString('a[b'), 'a\\[b\n', '`[`') + t.equal(toString('a)', '`]` (in images)') - - t.equal(toString('![a'), '!\\[a', '`!` before `[`') - - t.equal(toString('a~b'), 'a~b', '`~`') - t.equal(toString('a~~b'), 'a\\~~b', '`~~`') - - t.equal(toString('a|b'), 'a|b', '`|`') - t.equal(toString('| -- |'), '\\| -- \\|', '`|` (table-like)') - - t.equal( - toString(u('table', [u('tableRow', [u('tableCell', [u('text', 'a|b')])])])), - '| a\\|b |\n| ---- |', - '`|` (in cells)' - ) - - t.equal(toString('a_b'), 'a_b', '`_` (in words)') - t.equal(toString('a_b', pedantic), 'a\\_b', '`_` (in words, pedantic)') - t.equal(toString(' _b'), ' \\_b', '`_` after `\\b`') - t.equal(toString('a_ '), 'a\\_ ', '`_` before `\\b`') - - t.equal(toString('a:b'), 'a:b', '`:`') - t.equal(toString('http:b'), 'http:b', '`:` (in `http:`)') - t.equal( - toString('http:b', commonmark), - 'http\\:b', - '`:` (in `http:`, commonmark)' - ) - t.equal(toString('https:b'), 'https:b', '`:` (in `https:`)') - t.equal( - toString('https:b', commonmark), - 'https\\:b', - '`:` (in `https:`, commonmark)' - ) - t.equal(toString('mailto:b'), 'mailto:b', '`:` (in `mailto:`)') - t.equal( - toString('mailto:b', commonmark), - 'mailto\\:b', - '`:` (in `mailto:`, commonmark)' - ) - - t.equal(toString('>a'), '\\>a', '`>` (without parent)') - t.equal( - toString(u('paragraph', [u('text', '>a')])), - '\\>a', - '`>` (in paragraph)' - ) - t.equal( - toString(u('strong', [u('text', '>a')])), - '**>a**', - '`>` (in non-paragraph)' - ) - t.equal( - toString(u('strong', [u('text', 'a'), u('text', '>b')])), - '**a>b**', - '`>` (after sibling)' - ) - t.equal( - toString(u('strong', [u('text', '\n'), u('text', '>b')])), - '**\n\\>b**', - '`>` (after newline)' - ) - - t.equal(toString('#a'), '\\#a', '`#` (without parent)') - t.equal( - toString(u('paragraph', [u('text', '#a')])), - '\\#a', - '`#` (in paragraph)' - ) - t.equal( - toString(u('strong', [u('text', '#a')])), - '**#a**', - '`#` (in non-paragraph)' - ) - t.equal( - toString(u('strong', [u('text', 'a'), u('text', '#b')])), - '**a#b**', - '`#` (after sibling)' - ) - t.equal( - toString(u('strong', [u('text', '\n'), u('text', '#b')])), - '**\n\\#b**', - '`#` (after newline)' - ) - - // Both bullet and emphasis marker. - t.equal(toString('*a'), '\\*a', '`*` (without parent)') - t.equal( - toString(u('paragraph', [u('text', '*a')])), - '\\*a', - '`*` (in paragraph)' - ) - t.equal( - toString(u('strong', [u('text', '*a')])), - '**\\*a**', - '`*` (in non-paragraph)' - ) - t.equal( - toString(u('strong', [u('text', 'a'), u('text', '*b')])), - '**a\\*b**', - '`*` (after sibling)' - ) - t.equal( - toString(u('strong', [u('text', '\n'), u('text', '*b')])), - '**\n\\*b**', - '`*` (after newline)' - ) - - t.equal(toString('-a'), '\\-a', '`-` (without parent)') - t.equal( - toString(u('paragraph', [u('text', '-a')])), - '\\-a', - '`-` (in paragraph)' - ) - t.equal( - toString(u('strong', [u('text', '-a')])), - '**-a**', - '`-` (in non-paragraph)' - ) - t.equal( - toString(u('strong', [u('text', 'a'), u('text', '-b')])), - '**a-b**', - '`-` (after sibling)' - ) - t.equal( - toString(u('strong', [u('text', '\n'), u('text', '-b')])), - '**\n\\-b**', - '`-` (after newline)' - ) - - t.equal(toString('+a'), '\\+a', '`+` (without parent)') - t.equal( - toString(u('paragraph', [u('text', '+a')])), - '\\+a', - '`+` (in paragraph)' - ) - t.equal( - toString(u('strong', [u('text', '+a')])), - '**+a**', - '`+` (in non-paragraph)' - ) - t.equal( - toString(u('strong', [u('text', 'a'), u('text', '+b')])), - '**a+b**', - '`+` (after sibling)' - ) - t.equal( - toString(u('strong', [u('text', '\n'), u('text', '+b')])), - '**\n\\+b**', - '`+` (after newline)' - ) - - t.equal(toString('.a'), '.a', '`.`') - t.equal(toString('1.a'), '1.a', '`.` (without parent, without space)') - t.equal(toString('1. '), '1\\. ', '`.` (without parent, with space)') - t.equal(toString('1.\t'), '1\\.\t', '`.` (without parent, with tab)') - t.equal(toString('1.\n'), '1\\.\n', '`.` (without parent, with newline)') - t.equal(toString('1.'), '1\\.', '`.` (without parent, with EOF)') - t.equal( - toString(u('paragraph', [u('text', '1.a')])), - '1.a', - '`1.` (in paragraph, without space)' - ) - t.equal( - toString(u('paragraph', [u('text', '1. ')])), - '1\\. ', - '`1.` (in paragraph, with space)' - ) - t.equal( - toString(u('paragraph', [u('text', '1.\t')])), - '1\\.\t', - '`1.` (in paragraph, with tab)' - ) - t.equal( - toString(u('paragraph', [u('text', '1.\n')])), - '1\\.\n', - '`1.` (in paragraph, with newline)' - ) - t.equal( - toString(u('paragraph', [u('text', '1.')])), - '1\\.', - '`1.` (in paragraph, with EOF)' - ) - t.equal( - toString(u('strong', [u('text', '1.a')])), - '**1.a**', - '`1.` (in non-paragraph)' - ) - t.equal( - toString(u('strong', [u('text', 'a'), u('text', '1.b')])), - '**a1.b**', - '`1.` (after sibling)' - ) - t.equal( - toString(u('strong', [u('text', '\n'), u('text', '1.b')])), - '**\n1.b**', - '`1.` (after newline)' - ) - t.equal( - toString(u('strong', [u('text', '\n'), u('text', '1. ')])), - '**\n1\\. **', - '`1.` (after newline, with space)' - ) - t.equal( - toString(u('strong', [u('text', '\n'), u('text', '1.\t')])), - '**\n1\\.\t**', - '`1.` (after newline, with tab)' - ) - t.equal( - toString(u('strong', [u('text', '\n'), u('text', '1.\n')])), - '**\n1\\.\n**', - '`1.` (after newline, with newline)' - ) - t.equal( - toString(u('strong', [u('text', '\n'), u('text', '1.')])), - '**\n1\\.**', - '`1.` (after newline, with EOL)' - ) - - t.equal(toString(')a'), ')a', '`)`') - t.equal(toString('1)a'), '1)a', '`)` (default)') - t.equal( - toString('1)a', commonmark), - '1)a', - '`)` (commonmark, without parent)' - ) - t.equal( - toString('1) ', commonmark), - '1\\) ', - '`)` (commonmark, without parent, with space)' - ) - t.equal( - toString('1)\t', commonmark), - '1\\)\t', - '`)` (commonmark, without parent, with tab)' - ) - t.equal( - toString('1)\n', commonmark), - '1\\)\n', - '`)` (commonmark, without parent, with newline)' - ) - t.equal( - toString('1)', commonmark), - '1\\)', - '`)` (commonmark, without parent, with EOL)' - ) - t.equal( - toString(u('paragraph', [u('text', '1)a')]), commonmark), - '1)a', - '`1)` (in paragraph)' - ) - t.equal( - toString(u('paragraph', [u('text', '1) ')]), commonmark), - '1\\) ', - '`1)` (in paragraph, with space)' - ) - t.equal( - toString(u('paragraph', [u('text', '1)\t')]), commonmark), - '1\\)\t', - '`1)` (in paragraph, with tab)' - ) - t.equal( - toString(u('paragraph', [u('text', '1)\n')]), commonmark), - '1\\)\n', - '`1)` (in paragraph, with newline)' - ) - t.equal( - toString(u('paragraph', [u('text', '1)')]), commonmark), - '1\\)', - '`1)` (in paragraph, with EOL)' - ) - t.equal( - toString(u('strong', [u('text', '1)a')]), commonmark), - '**1)a**', - '`1)` (in non-paragraph)' - ) - t.equal( - toString(u('strong', [u('text', 'a'), u('text', '1)b')]), commonmark), - '**a1)b**', - '`1)` (after sibling)' - ) t.equal( - toString(u('strong', [u('text', '\n'), u('text', '1)b')]), commonmark), - '**\n1)b**', - '`1)` (after newline)' - ) - t.equal( - toString(u('strong', [u('text', '\n'), u('text', '1) ')]), commonmark), - '**\n1\\) **', - '`1)` (after newline, with space)' - ) - t.equal( - toString(u('strong', [u('text', '\n'), u('text', '1)\t')]), commonmark), - '**\n1\\)\t**', - '`1)` (after newline, with tab)' - ) - t.equal( - toString(u('strong', [u('text', '\n'), u('text', '1)\n')]), commonmark), - '**\n1\\)\n**', - '`1)` (after newline, with newline)' - ) - t.equal( - toString(u('strong', [u('text', '\n'), u('text', '1)')]), commonmark), - '**\n1\\)**', - '`1)` (after newline, with EOL)' - ) - - t.equal( - toString( - u('paragraph', [ - u( - 'linkReference', - { - identifier: 'foo', - referenceType: 'shortcut' - }, - [u('text', 'a')] - ), - u('text', '(b') - ]) - ), - '[a]\\(b', - '`(` after shortcut link-reference' - ) - - t.equal( - toString( - u('paragraph', [ - u( - 'linkReference', - { - identifier: 'foo', - referenceType: 'shortcut' - }, - [u('text', 'a')] - ), - u('text', ' \t(b') - ]) - ), - '[a] \t\\(b', - '`(` after spaced shortcut link-reference' - ) - - t.equal( - toString( - u('paragraph', [ - u( - 'linkReference', - { - identifier: 'foo', - referenceType: 'shortcut' - }, - [u('text', 'a')] - ), - u('text', ':b') - ]) - ), - '[a]:b', - '`:` after shortcut link-reference' - ) - - t.equal( - toString( - u('paragraph', [ - u( - 'linkReference', - { - identifier: 'foo', - referenceType: 'shortcut' - }, - [u('text', 'a')] - ), - u('text', ' \t:b') - ]) - ), - '[a] \t:b', - '`:` after spaced shortcut link-reference' - ) - - t.equal( - toString(u('paragraph', [u('text', 'http'), u('text', ':')])), - 'http:', - '`:` with protocol in previous node' - ) - - t.equal( - toString(u('paragraph', [u('text', '&'), u('text', 'amp;')])), - '&amp;', - '`&` with entity in next node' - ) - - t.equal( - toString(u('paragraph', [u('text', 'a~'), u('text', '~b')])), - 'a\\~~b', - '`~~` split over two nodes' - ) - - t.equal( - toString(u('paragraph', [u('text', 'a'), u('text', '_'), u('text', 'b')])), - 'a_b', - '`_` split over nodes' - ) - - t.equal( - toString( - u('paragraph', [u('text', 'a'), u('text', '_'), u('text', 'b')]), - pedantic - ), - 'a\\_b', - '`_` split over nodes (pedantic)' - ) - - t.equal( - toString(u('paragraph', [u('text', ' '), u('text', '_'), u('text', 'b')])), - ' \\_b', - '`_` split over nodes (no word character before)' - ) - - t.equal( - toString(u('paragraph', [u('text', ' _'), u('text', 'b')])), - ' \\_b', - '`_` split over nodes (no word character before, #2)' - ) - - t.equal( - toString(u('paragraph', [u('text', 'a'), u('text', '_'), u('text', ' ')])), - 'a\\_ ', - '`_` split over nodes (no word character after)' - ) - - t.equal( - toString(u('paragraph', [u('text', 'a'), u('text', '_ ')])), - 'a\\_ ', - '`_` split over nodes (no word character after, #2)' - ) - - t.equal( - toString(u('paragraph', [u('text', '!'), u('link', [u('text', 'a')])])), - '\\![a](<>)', + toString({type: 'image', alt: 'a]b'}), + '![a\\]b]()\n', + '`]` (in images)' + ) + t.equal(toString('![a'), '\\!\\[a\n', '`!` before `[`') + t.equal(toString('a~b'), 'a~b\n', '`~`') + t.equal(toString('a|b'), 'a|b\n', '`|`') + t.equal(toString('a_b'), 'a_b\n', '`_` (in words)') + t.equal(toString('a _b'), 'a \\_b\n', '`_` after `\\b`') + t.equal(toString('a_ b'), 'a\\_ b\n', '`_` before `\\b`') + t.equal(toString('a:b'), 'a:b\n', '`:`') + t.equal(toString('>a'), '\\>a\n', '`>` (at the start of a line)') + t.equal(toString('a>b'), 'a>b\n', '`>` (in phrasing)') + t.equal(toString('#a'), '\\#a\n', '`#` (at the start of a line)') + t.equal(toString('a#b'), 'a#b\n', '`#` (in phrasing)') + t.equal(toString('*a'), '\\*a\n', '`*` (at the start of a line)') + t.equal(toString('a*b'), 'a\\*b\n', '`*` (in content)') + t.equal(toString('-a'), '\\-a\n', '`-` (at the start of a line)') + t.equal(toString('a-b'), 'a-b\n', '`-` (in phrasing)') + t.equal(toString('+a'), '\\+a\n', '`+` (at the start of the line)') + t.equal(toString('+a'), '\\+a\n', '`+` (phrasing)') + t.equal(toString('.a'), '.a\n', '`.`') + t.equal(toString('1.a'), '1\\.a\n', '`.` (after digit)') + t.equal(toString('1. '), '1\\. \n', '`.` (after digit, with space)') + t.equal(toString('1.\t'), '1\\.\t\n', '`.` (after digit, with tab)') + t.equal(toString('1.\n'), '1\\.\n', '`.` (after digit, with newline)') + t.equal(toString('1.'), '1\\.\n', '`.` (after digit, with EOF)') + t.equal(toString('1.a'), '1\\.a\n', '`1.` (after digit, without space)') + t.equal(toString('1. '), '1\\. \n', '`1.` (after digit, with space)') + t.equal(toString('1.\t'), '1\\.\t\n', '`1.` (after digit, with tab)') + t.equal(toString('1.\n'), '1\\.\n', '`1.` (after digit, with newline)') + t.equal(toString('1.'), '1\\.\n', '`1.` (after digit, with EOF)') + t.equal(toString(')a'), ')a\n', '`)`') + t.equal(toString('1)a'), '1\\)a\n', '`)` (after digit)') + t.equal(toString('1) '), '1\\) \n', '`)` (after digit, with space)') + t.equal(toString('1)\t'), '1\\)\t\n', '`)` (after digit, with tab)') + t.equal(toString('1)\n'), '1\\)\n', '`)` (after digit, with newline)') + t.equal(toString('1)'), '1\\)\n', '`)` (after digit, with EOL)') + t.equal(toString('a](b'), 'a]\\(b\n', '`(` after `]`') + t.equal( + toString({ + type: 'paragraph', + children: [ + {type: 'text', value: '!'}, + {type: 'link', children: [{type: 'text', value: 'a'}]} + ] + }), + '\\![a]()\n', '! immediately followed by a link' ) t.end() }) -test('definition separators', function (t) { - var tree = u('root', [ - u('definition', {identifier: 'foo', url: 'first'}), - u('definition', {identifier: 'bar', url: 'second'}) - ]) - - t.equal( - toString(tree, {tightDefinitions: false}), - '[foo]: first\n\n[bar]: second\n', - 'blank line between definitions' - ) +test('extensions', function (t) { + var doc = unified() + .data('toMarkdownExtensions', [gfm()]) + .use(stringify) + .stringify({ + type: 'root', + children: [ + {type: 'heading', depth: 1, children: [{type: 'text', value: 'GFM'}]}, + { + type: 'heading', + depth: 2, + children: [{type: 'text', value: 'Autolink literals'}] + }, + { + type: 'paragraph', + children: [ + { + type: 'link', + title: null, + url: 'http://www.example.com', + children: [{type: 'text', value: 'www.example.com'}] + }, + {type: 'text', value: ', '}, + { + type: 'link', + title: null, + url: 'https://example.com', + children: [{type: 'text', value: 'https://example.com'}] + }, + {type: 'text', value: ', and '}, + { + type: 'link', + title: null, + url: 'mailto:contact@example.com', + children: [{type: 'text', value: 'contact@example.com'}] + }, + {type: 'text', value: '.'} + ] + }, + { + type: 'heading', + depth: 2, + children: [{type: 'text', value: 'Strikethrough'}] + }, + { + type: 'paragraph', + children: [ + { + type: 'delete', + children: [{type: 'text', value: 'one'}] + }, + {type: 'text', value: ' or '}, + { + type: 'delete', + children: [{type: 'text', value: 'two'}] + }, + {type: 'text', value: ' tildes.'} + ] + }, + {type: 'heading', depth: 2, children: [{type: 'text', value: 'Table'}]}, + { + type: 'table', + align: [null, 'left', 'right', 'center'], + children: [ + { + type: 'tableRow', + children: [ + {type: 'tableCell', children: [{type: 'text', value: 'a'}]}, + {type: 'tableCell', children: [{type: 'text', value: 'b'}]}, + {type: 'tableCell', children: [{type: 'text', value: 'c'}]}, + {type: 'tableCell', children: [{type: 'text', value: 'd'}]} + ] + } + ] + }, + { + type: 'heading', + depth: 2, + children: [{type: 'text', value: 'Tasklist'}] + }, + { + type: 'list', + ordered: false, + start: null, + spread: false, + children: [ + { + type: 'listItem', + spread: false, + checked: false, + children: [ + {type: 'paragraph', children: [{type: 'text', value: 'to do'}]} + ] + }, + { + type: 'listItem', + spread: false, + checked: true, + children: [ + {type: 'paragraph', children: [{type: 'text', value: 'done'}]} + ] + } + ] + } + ] + }) t.equal( - toString(tree, {tightDefinitions: true}), - '[foo]: first\n[bar]: second\n', - 'no blank line between definitions' + doc, + [ + '# GFM', + '', + '## Autolink literals', + '', + '[www.example.com](http://www.example.com), , and .', + '', + '## Strikethrough', + '', + '~~one~~ or ~~two~~ tildes.', + '', + '## Table', + '', + '| a | b | c | d |', + '| - | :- | -: | :-: |', + '', + '## Tasklist', + '', + '* [ ] to do', + '* [x] done', + '' + ].join('\n') ) t.end() }) function toString(value, options) { - var tree = typeof value === 'string' ? u('text', value) : value - - visit(tree, function (node) { - node.position = uncollapsable - }) - - return unified() - .use(stringify) - .data('settings', options || {}) - .stringify(tree) -} + var tree = + typeof value === 'string' + ? {type: 'paragraph', children: [{type: 'text', value: value}]} + : value -function empty() { - return {type: 'root', children: []} + return unified().use(stringify, options).stringify(tree) } diff --git a/packages/remark/package.json b/packages/remark/package.json index 09f52fd57..083c289f7 100644 --- a/packages/remark/package.json +++ b/packages/remark/package.json @@ -1,6 +1,6 @@ { "name": "remark", - "version": "12.0.1", + "version": "13.0.0-alpha.1", "description": "Markdown processor powered by plugins part of the unified collective", "license": "MIT", "keywords": [ @@ -35,8 +35,8 @@ ], "types": "types/index.d.ts", "dependencies": { - "remark-parse": "^8.0.0", - "remark-stringify": "^8.0.0", + "remark-parse": "^9.0.0-alpha.1", + "remark-stringify": "^9.0.0-alpha.1", "unified": "^9.1.0" }, "scripts": { diff --git a/packages/remark/readme.md b/packages/remark/readme.md index 23fb07ba6..afa3a4842 100644 --- a/packages/remark/readme.md +++ b/packages/remark/readme.md @@ -9,6 +9,7 @@ [![Chat][chat-badge]][chat] [**unified**][unified] processor to parse and serialize Markdown. +Built on [micromark][]. Powered by [plugins][]. Part of the [unified][] collective. @@ -22,53 +23,6 @@ Don’t need the parser? Or compiler? [That’s OK: use **unified** directly][unified-usage]. -## Sponsors - -Support this effort and give back by sponsoring on [OpenCollective][collective]! - - - - - - - - - - - - - - - - -
- Gatsby 🥇

- -
- Vercel 🥇

- -
- Netlify

- - -
- Holloway

- -
- ThemeIsle

- -
- BoostIO

- -
- Expo

- -
-
- You? -

-
- ## Install [npm][]: @@ -94,7 +48,7 @@ var report = require('vfile-reporter') remark() .use(recommended) .use(html) - .process('## Hello world!', function(err, file) { + .process('## Hello world!', function (err, file) { console.error(report(err || file)) console.log(String(file)) }) @@ -121,8 +75,8 @@ This example prettifies Markdown and configures [`remark-parse`][parse] and var remark = require('remark') remark() - .data('settings', {commonmark: true, emphasis: '*', strong: '*'}) - .process('_Emphasis_ and __importance__', function(err, file) { + .data('settings', {emphasis: '*', strong: '*'}) + .process('_Emphasis_ and __importance__', function (err, file) { if (err) throw err console.log(String(file)) }) @@ -143,10 +97,8 @@ This example prettifies Markdown and configures [`remark-parse`][parse] and var remark = require('remark') remark() - .use({ - settings: {commonmark: true, emphasis: '*', strong: '*'} - }) - .process('_Emphasis_ and __importance__', function(err, file) { + .use({settings: {emphasis: '*', strong: '*'}}) + .process('_Emphasis_ and __importance__', function (err, file) { if (err) throw err console.log(String(file)) }) @@ -186,6 +138,53 @@ This project has a [code of conduct][coc]. By interacting with this repository, organization, or community you agree to abide by its terms. +## Sponsor + +Support this effort and give back by sponsoring on [OpenCollective][collective]! + + + + + + + + + + + + + + + + +
+ Gatsby 🥇

+ +
+ Vercel 🥇

+ +
+ Netlify

+ + +
+ Holloway

+ +
+ ThemeIsle

+ +
+ BoostIO

+ +
+ Expo

+ +
+
+ You? +

+
+ ## License [MIT][license] © [Titus Wormer][author] @@ -257,3 +256,5 @@ abide by its terms. [rehype]: https://github.com/rehypejs/rehype [sanitize]: https://github.com/rehypejs/rehype-sanitize + +[micromark]: https://github.com/micromark/micromark diff --git a/packages/remark/test.js b/packages/remark/test.js index 6985457bf..ee765dee4 100644 --- a/packages/remark/test.js +++ b/packages/remark/test.js @@ -6,34 +6,15 @@ var remark = require('.') test('remark().processSync(value)', function (t) { t.equal( remark().processSync('*foo*').toString(), - '_foo_\n', + '*foo*\n', 'should parse and stringify a file' ) - t.equal( - remark() - .data('settings', {commonmark: true}) - .processSync('1) foo') - .toString(), - '1. foo\n', - 'should accept parse options' - ) - t.equal( remark().data('settings', {closeAtx: true}).processSync('# foo').toString(), '# foo #\n', 'should accept stringify options' ) - t.throws( - function () { - remark() - .data('settings', {pedantic: true, listItemIndent: '1'}) - .processSync(['* List', '', ' code()'].join('\n')) - }, - /Cannot indent code properly. See https:\/\/git.io\/fxKR8/, - 'should throw when `pedantic` is `true`, `listItemIndent` is not `tab`, and compiling code in a list-item' - ) - t.end() }) diff --git a/readme.md b/readme.md index 54dc6f4d7..1eaa06a0c 100644 --- a/readme.md +++ b/readme.md @@ -23,8 +23,11 @@ style (`remark-lint`)][remark-lint], [transforming safely to React contents (`remark-toc`)][remark-toc], or [compiling to man pages (`remark-man`)][remark-man]. -On top of that, remark is part of the [unified][website] -[collective][governance]. +Internally, remark now uses [**`micromark`**][micromark], a new, fast, and tiny +CommonMark compliant Markdown tokenizer. +It can be GFM compliant with `remark-gfm`. + +Finally, remark is part of the [unified][website] [collective][governance]. Learn more about us: * Visit [`unifiedjs.com`][website] and peruse its [Learn][] section for an @@ -34,14 +37,41 @@ Learn more about us: * Follow us on [Twitter][] to see what we’re up to * Check out [Contribute][] below to find out how to help out -This repository contains the following projects: +## Packages + +This repository contains the following packages: * [`remark-parse`][parse] — Parse Markdown to syntax trees * [`remark-stringify`][stringify] — Serialize syntax trees to Markdown * [`remark`][api] — Programmatic interface with both `remark-parse` and `remark-stringify` * [`remark-cli`][cli] — Command line interface wrapping `remark` -## Sponsors +## Security + +As Markdown is sometimes used for HTML, and improper use of HTML can open you up +to a [cross-site scripting (XSS)][xss] attack, use of remark can also be unsafe. +When going to HTML, use remark in combination with the [**rehype**][rehype] +ecosystem, and use [`rehype-sanitize`][sanitize] to make the tree safe. + +Use of remark plugins could also open you up to other attacks. +Carefully assess each plugin and the risks involved in using them. + +## Contribute + +See [`contributing.md`][contributing] in [`remarkjs/.github`][health] for ways +to get started. +See [`support.md`][support] for ways to get help. +Ideas for new plugins and tools can be posted in [`remarkjs/ideas`][ideas]. +Join us in [Discussions][chat] to chat with the community and contributors. + +A curated list of awesome resources can be found in [**awesome +remark**][awesome]. + +This project has a [code of conduct][coc]. +By interacting with this repository, organization, or community you agree to +abide by its terms. + +## Sponsor Support this effort and give back by sponsoring on [OpenCollective][collective]! @@ -88,31 +118,6 @@ Support this effort and give back by sponsoring on [OpenCollective][collective]! -## Security - -As Markdown is sometimes used for HTML, and improper use of HTML can open you up -to a [cross-site scripting (XSS)][xss] attack, use of remark can also be unsafe. -When going to HTML, use remark in combination with the [**rehype**][rehype] -ecosystem, and use [`rehype-sanitize`][sanitize] to make the tree safe. - -Use of remark plugins could also open you up to other attacks. -Carefully assess each plugin and the risks involved in using them. - -## Contribute - -See [`contributing.md`][contributing] in [`remarkjs/.github`][health] for ways -to get started. -See [`support.md`][support] for ways to get help. -Ideas for new plugins and tools can be posted in [`remarkjs/ideas`][ideas]. -Join us in [Discussions][chat] to chat with the community and contributors. - -A curated list of awesome resources can be found in [**awesome -remark**][awesome]. - -This project has a [code of conduct][coc]. -By interacting with this repository, organization, or community you agree to -abide by its terms. - ## License [MIT](license) © [Titus Wormer](https://wooorm.com) @@ -196,3 +201,5 @@ abide by its terms. [rehype]: https://github.com/rehypejs/rehype [sanitize]: https://github.com/rehypejs/rehype-sanitize + +[micromark]: https://github.com/micromark/micromark diff --git a/script/list-of-methods.js b/script/list-of-methods.js deleted file mode 100644 index ab7d48b67..000000000 --- a/script/list-of-methods.js +++ /dev/null @@ -1,36 +0,0 @@ -'use strict' - -var zone = require('mdast-zone') -var u = require('unist-builder') -var proto = require('../packages/remark-parse').Parser.prototype - -module.exports = listOfMethods - -function listOfMethods() { - return transformer -} - -function transformer(tree) { - zone(tree, 'methods-block', replace('blockMethods')) - zone(tree, 'methods-inline', replace('inlineMethods')) -} - -function replace(name) { - var list = proto[name] - - return replace - - function replace(start, nodes, end) { - return [ - start, - u( - 'list', - {ordered: false}, - list.map(function (name) { - return u('listItem', [u('paragraph', [u('inlineCode', name)])]) - }) - ), - end - ] - } -} diff --git a/script/regenerate-fixtures.js b/script/regenerate-fixtures.js index e5eddccc1..2abec8636 100644 --- a/script/regenerate-fixtures.js +++ b/script/regenerate-fixtures.js @@ -5,28 +5,31 @@ var path = require('path') var remark = require('../packages/remark') var fixtures = require('../test/fixtures') +var base = path.join('test', 'fixtures', 'tree') +var generated = [] + fixtures.forEach(function (fixture) { + var stem = path.basename(fixture.name, path.extname(fixture.name)) var input = fixture.input - var name = fixture.name - var mapping = fixture.mapping - - Object.keys(mapping).forEach(function (key) { - var filename = name + (key ? '.' + key : key) + '.json' - var result + var result - try { - result = remark() - .data('settings', fixture.possibilities[key]) - .parse(input) - } catch (error) { - console.log('Cannot regenerate `' + filename + '`') - throw error - } + try { + result = remark().parse(input) + } catch (error) { + console.log('Cannot regenerate `' + stem + '`') + throw error + } - result = JSON.stringify(result, null, 2) + '\n' + fs.writeFileSync( + path.join(base, stem + '.json'), + JSON.stringify(result, null, 2) + '\n' + ) - filename = filename.replace(/\*/g, '-asterisk-') + generated.push(stem + '.json') +}) - fs.writeFileSync(path.join('test', 'fixtures', 'tree', filename), result) - }) +fs.readdirSync(base).forEach(function (basename) { + if (basename.charAt(0) !== '.' && !generated.includes(basename)) { + console.warn('Unused fixture: `%s`', basename) + } }) diff --git a/test/fixtures/commonmark.json b/test/fixtures/commonmark.json deleted file mode 100644 index 2dbf3cc1e..000000000 --- a/test/fixtures/commonmark.json +++ /dev/null @@ -1,4994 +0,0 @@ -[ - { - "end_line": 355, - "section": "Tabs", - "html": "
foo\tbaz\t\tbim\n
\n", - "markdown": "\tfoo\tbaz\t\tbim\n", - "example": 1, - "start_line": 350 - }, - { - "end_line": 362, - "section": "Tabs", - "html": "
foo\tbaz\t\tbim\n
\n", - "markdown": " \tfoo\tbaz\t\tbim\n", - "example": 2, - "start_line": 357 - }, - { - "end_line": 371, - "section": "Tabs", - "html": "
a\ta\nὐ\ta\n
\n", - "markdown": " a\ta\n ὐ\ta\n", - "example": 3, - "start_line": 364 - }, - { - "end_line": 388, - "section": "Tabs", - "html": "
    \n
  • \n

    foo

    \n

    bar

    \n
  • \n
\n", - "markdown": " - foo\n\n\tbar\n", - "example": 4, - "start_line": 377 - }, - { - "end_line": 402, - "section": "Tabs", - "html": "
    \n
  • \n

    foo

    \n
      bar\n
    \n
  • \n
\n", - "markdown": "- foo\n\n\t\tbar\n", - "example": 5, - "start_line": 390 - }, - { - "end_line": 420, - "section": "Tabs", - "html": "
\n
  foo\n
\n
\n", - "markdown": ">\t\tfoo\n", - "example": 6, - "start_line": 413 - }, - { - "end_line": 431, - "section": "Tabs", - "html": "
    \n
  • \n
      foo\n
    \n
  • \n
\n", - "markdown": "-\t\tfoo\n", - "example": 7, - "start_line": 422 - }, - { - "end_line": 441, - "section": "Tabs", - "html": "
foo\nbar\n
\n", - "markdown": " foo\n\tbar\n", - "example": 8, - "start_line": 434 - }, - { - "end_line": 459, - "section": "Tabs", - "html": "
    \n
  • foo\n
      \n
    • bar\n
        \n
      • baz
      • \n
      \n
    • \n
    \n
  • \n
\n", - "markdown": " - foo\n - bar\n\t - baz\n", - "example": 9, - "start_line": 443 - }, - { - "end_line": 465, - "section": "Tabs", - "html": "

Foo

\n", - "markdown": "#\tFoo\n", - "example": 10, - "start_line": 461 - }, - { - "end_line": 471, - "section": "Tabs", - "html": "
\n", - "markdown": "*\t*\t*\t\n", - "example": 11, - "start_line": 467 - }, - { - "end_line": 502, - "section": "Precedence", - "html": "
    \n
  • `one
  • \n
  • two`
  • \n
\n", - "markdown": "- `one\n- two`\n", - "example": 12, - "start_line": 494 - }, - { - "end_line": 541, - "section": "Thematic breaks", - "html": "
\n
\n
\n", - "markdown": "***\n---\n___\n", - "example": 13, - "start_line": 533 - }, - { - "end_line": 550, - "section": "Thematic breaks", - "html": "

+++

\n", - "markdown": "+++\n", - "example": 14, - "start_line": 546 - }, - { - "end_line": 557, - "section": "Thematic breaks", - "html": "

===

\n", - "markdown": "===\n", - "example": 15, - "start_line": 553 - }, - { - "end_line": 570, - "section": "Thematic breaks", - "html": "

--\n**\n__

\n", - "markdown": "--\n**\n__\n", - "example": 16, - "start_line": 562 - }, - { - "end_line": 583, - "section": "Thematic breaks", - "html": "
\n
\n
\n", - "markdown": " ***\n ***\n ***\n", - "example": 17, - "start_line": 575 - }, - { - "end_line": 593, - "section": "Thematic breaks", - "html": "
***\n
\n", - "markdown": " ***\n", - "example": 18, - "start_line": 588 - }, - { - "end_line": 602, - "section": "Thematic breaks", - "html": "

Foo\n***

\n", - "markdown": "Foo\n ***\n", - "example": 19, - "start_line": 596 - }, - { - "end_line": 611, - "section": "Thematic breaks", - "html": "
\n", - "markdown": "_____________________________________\n", - "example": 20, - "start_line": 607 - }, - { - "end_line": 620, - "section": "Thematic breaks", - "html": "
\n", - "markdown": " - - -\n", - "example": 21, - "start_line": 616 - }, - { - "end_line": 627, - "section": "Thematic breaks", - "html": "
\n", - "markdown": " ** * ** * ** * **\n", - "example": 22, - "start_line": 623 - }, - { - "end_line": 634, - "section": "Thematic breaks", - "html": "
\n", - "markdown": "- - - -\n", - "example": 23, - "start_line": 630 - }, - { - "end_line": 643, - "section": "Thematic breaks", - "html": "
\n", - "markdown": "- - - - \n", - "example": 24, - "start_line": 639 - }, - { - "end_line": 658, - "section": "Thematic breaks", - "html": "

_ _ _ _ a

\n

a------

\n

---a---

\n", - "markdown": "_ _ _ _ a\n\na------\n\n---a---\n", - "example": 25, - "start_line": 648 - }, - { - "end_line": 668, - "section": "Thematic breaks", - "html": "

-

\n", - "markdown": " *-*\n", - "example": 26, - "start_line": 664 - }, - { - "end_line": 685, - "section": "Thematic breaks", - "html": "
    \n
  • foo
  • \n
\n
\n
    \n
  • bar
  • \n
\n", - "markdown": "- foo\n***\n- bar\n", - "example": 27, - "start_line": 673 - }, - { - "end_line": 698, - "section": "Thematic breaks", - "html": "

Foo

\n
\n

bar

\n", - "markdown": "Foo\n***\nbar\n", - "example": 28, - "start_line": 690 - }, - { - "end_line": 714, - "section": "Thematic breaks", - "html": "

Foo

\n

bar

\n", - "markdown": "Foo\n---\nbar\n", - "example": 29, - "start_line": 707 - }, - { - "end_line": 732, - "section": "Thematic breaks", - "html": "
    \n
  • Foo
  • \n
\n
\n
    \n
  • Bar
  • \n
\n", - "markdown": "* Foo\n* * *\n* Bar\n", - "example": 30, - "start_line": 720 - }, - { - "end_line": 747, - "section": "Thematic breaks", - "html": "
    \n
  • Foo
  • \n
  • \n
    \n
  • \n
\n", - "markdown": "- Foo\n- * * *\n", - "example": 31, - "start_line": 737 - }, - { - "end_line": 780, - "section": "ATX headings", - "html": "

foo

\n

foo

\n

foo

\n

foo

\n
foo
\n
foo
\n", - "markdown": "# foo\n## foo\n### foo\n#### foo\n##### foo\n###### foo\n", - "example": 32, - "start_line": 766 - }, - { - "end_line": 789, - "section": "ATX headings", - "html": "

####### foo

\n", - "markdown": "####### foo\n", - "example": 33, - "start_line": 785 - }, - { - "end_line": 807, - "section": "ATX headings", - "html": "

#5 bolt

\n

#hashtag

\n", - "markdown": "#5 bolt\n\n#hashtag\n", - "example": 34, - "start_line": 800 - }, - { - "end_line": 816, - "section": "ATX headings", - "html": "

## foo

\n", - "markdown": "\\## foo\n", - "example": 35, - "start_line": 812 - }, - { - "end_line": 825, - "section": "ATX headings", - "html": "

foo bar *baz*

\n", - "markdown": "# foo *bar* \\*baz\\*\n", - "example": 36, - "start_line": 821 - }, - { - "end_line": 834, - "section": "ATX headings", - "html": "

foo

\n", - "markdown": "# foo \n", - "example": 37, - "start_line": 830 - }, - { - "end_line": 847, - "section": "ATX headings", - "html": "

foo

\n

foo

\n

foo

\n", - "markdown": " ### foo\n ## foo\n # foo\n", - "example": 38, - "start_line": 839 - }, - { - "end_line": 857, - "section": "ATX headings", - "html": "
# foo\n
\n", - "markdown": " # foo\n", - "example": 39, - "start_line": 852 - }, - { - "end_line": 866, - "section": "ATX headings", - "html": "

foo\n# bar

\n", - "markdown": "foo\n # bar\n", - "example": 40, - "start_line": 860 - }, - { - "end_line": 877, - "section": "ATX headings", - "html": "

foo

\n

bar

\n", - "markdown": "## foo ##\n ### bar ###\n", - "example": 41, - "start_line": 871 - }, - { - "end_line": 888, - "section": "ATX headings", - "html": "

foo

\n
foo
\n", - "markdown": "# foo ##################################\n##### foo ##\n", - "example": 42, - "start_line": 882 - }, - { - "end_line": 897, - "section": "ATX headings", - "html": "

foo

\n", - "markdown": "### foo ### \n", - "example": 43, - "start_line": 893 - }, - { - "end_line": 908, - "section": "ATX headings", - "html": "

foo ### b

\n", - "markdown": "### foo ### b\n", - "example": 44, - "start_line": 904 - }, - { - "end_line": 917, - "section": "ATX headings", - "html": "

foo#

\n", - "markdown": "# foo#\n", - "example": 45, - "start_line": 913 - }, - { - "end_line": 931, - "section": "ATX headings", - "html": "

foo ###

\n

foo ###

\n

foo #

\n", - "markdown": "### foo \\###\n## foo #\\##\n# foo \\#\n", - "example": 46, - "start_line": 923 - }, - { - "end_line": 945, - "section": "ATX headings", - "html": "
\n

foo

\n
\n", - "markdown": "****\n## foo\n****\n", - "example": 47, - "start_line": 937 - }, - { - "end_line": 956, - "section": "ATX headings", - "html": "

Foo bar

\n

baz

\n

Bar foo

\n", - "markdown": "Foo bar\n# baz\nBar foo\n", - "example": 48, - "start_line": 948 - }, - { - "end_line": 969, - "section": "ATX headings", - "html": "

\n

\n

\n", - "markdown": "## \n#\n### ###\n", - "example": 49, - "start_line": 961 - }, - { - "end_line": 1013, - "section": "Setext headings", - "html": "

Foo bar

\n

Foo bar

\n", - "markdown": "Foo *bar*\n=========\n\nFoo *bar*\n---------\n", - "example": 50, - "start_line": 1004 - }, - { - "end_line": 1025, - "section": "Setext headings", - "html": "

Foo bar\nbaz

\n", - "markdown": "Foo *bar\nbaz*\n====\n", - "example": 51, - "start_line": 1018 - }, - { - "end_line": 1039, - "section": "Setext headings", - "html": "

Foo

\n

Foo

\n", - "markdown": "Foo\n-------------------------\n\nFoo\n=\n", - "example": 52, - "start_line": 1030 - }, - { - "end_line": 1058, - "section": "Setext headings", - "html": "

Foo

\n

Foo

\n

Foo

\n", - "markdown": " Foo\n---\n\n Foo\n-----\n\n Foo\n ===\n", - "example": 53, - "start_line": 1045 - }, - { - "end_line": 1076, - "section": "Setext headings", - "html": "
Foo\n---\n\nFoo\n
\n
\n", - "markdown": " Foo\n ---\n\n Foo\n---\n", - "example": 54, - "start_line": 1063 - }, - { - "end_line": 1087, - "section": "Setext headings", - "html": "

Foo

\n", - "markdown": "Foo\n ---- \n", - "example": 55, - "start_line": 1082 - }, - { - "end_line": 1098, - "section": "Setext headings", - "html": "

Foo\n---

\n", - "markdown": "Foo\n ---\n", - "example": 56, - "start_line": 1092 - }, - { - "end_line": 1114, - "section": "Setext headings", - "html": "

Foo\n= =

\n

Foo

\n
\n", - "markdown": "Foo\n= =\n\nFoo\n--- -\n", - "example": 57, - "start_line": 1103 - }, - { - "end_line": 1124, - "section": "Setext headings", - "html": "

Foo

\n", - "markdown": "Foo \n-----\n", - "example": 58, - "start_line": 1119 - }, - { - "end_line": 1134, - "section": "Setext headings", - "html": "

Foo\\

\n", - "markdown": "Foo\\\n----\n", - "example": 59, - "start_line": 1129 - }, - { - "end_line": 1153, - "section": "Setext headings", - "html": "

`Foo

\n

`

\n

<a title="a lot

\n

of dashes"/>

\n", - "markdown": "`Foo\n----\n`\n\n
\n", - "example": 60, - "start_line": 1140 - }, - { - "end_line": 1167, - "section": "Setext headings", - "html": "
\n

Foo

\n
\n
\n", - "markdown": "> Foo\n---\n", - "example": 61, - "start_line": 1159 - }, - { - "end_line": 1180, - "section": "Setext headings", - "html": "
\n

foo\nbar\n===

\n
\n", - "markdown": "> foo\nbar\n===\n", - "example": 62, - "start_line": 1170 - }, - { - "end_line": 1191, - "section": "Setext headings", - "html": "
    \n
  • Foo
  • \n
\n
\n", - "markdown": "- Foo\n---\n", - "example": 63, - "start_line": 1183 - }, - { - "end_line": 1205, - "section": "Setext headings", - "html": "

Foo\nBar

\n", - "markdown": "Foo\nBar\n---\n", - "example": 64, - "start_line": 1198 - }, - { - "end_line": 1223, - "section": "Setext headings", - "html": "
\n

Foo

\n

Bar

\n

Baz

\n", - "markdown": "---\nFoo\n---\nBar\n---\nBaz\n", - "example": 65, - "start_line": 1211 - }, - { - "end_line": 1233, - "section": "Setext headings", - "html": "

====

\n", - "markdown": "\n====\n", - "example": 66, - "start_line": 1228 - }, - { - "end_line": 1246, - "section": "Setext headings", - "html": "
\n
\n", - "markdown": "---\n---\n", - "example": 67, - "start_line": 1240 - }, - { - "end_line": 1257, - "section": "Setext headings", - "html": "
    \n
  • foo
  • \n
\n
\n", - "markdown": "- foo\n-----\n", - "example": 68, - "start_line": 1249 - }, - { - "end_line": 1267, - "section": "Setext headings", - "html": "
foo\n
\n
\n", - "markdown": " foo\n---\n", - "example": 69, - "start_line": 1260 - }, - { - "end_line": 1278, - "section": "Setext headings", - "html": "
\n

foo

\n
\n
\n", - "markdown": "> foo\n-----\n", - "example": 70, - "start_line": 1270 - }, - { - "end_line": 1289, - "section": "Setext headings", - "html": "

> foo

\n", - "markdown": "\\> foo\n------\n", - "example": 71, - "start_line": 1284 - }, - { - "end_line": 1325, - "section": "Setext headings", - "html": "

Foo

\n

bar

\n

baz

\n", - "markdown": "Foo\n\nbar\n---\nbaz\n", - "example": 72, - "start_line": 1315 - }, - { - "end_line": 1343, - "section": "Setext headings", - "html": "

Foo\nbar

\n
\n

baz

\n", - "markdown": "Foo\nbar\n\n---\n\nbaz\n", - "example": 73, - "start_line": 1331 - }, - { - "end_line": 1359, - "section": "Setext headings", - "html": "

Foo\nbar

\n
\n

baz

\n", - "markdown": "Foo\nbar\n* * *\nbaz\n", - "example": 74, - "start_line": 1349 - }, - { - "end_line": 1374, - "section": "Setext headings", - "html": "

Foo\nbar\n---\nbaz

\n", - "markdown": "Foo\nbar\n\\---\nbaz\n", - "example": 75, - "start_line": 1364 - }, - { - "end_line": 1399, - "section": "Indented code blocks", - "html": "
a simple\n  indented code block\n
\n", - "markdown": " a simple\n indented code block\n", - "example": 76, - "start_line": 1392 - }, - { - "end_line": 1417, - "section": "Indented code blocks", - "html": "
    \n
  • \n

    foo

    \n

    bar

    \n
  • \n
\n", - "markdown": " - foo\n\n bar\n", - "example": 77, - "start_line": 1406 - }, - { - "end_line": 1433, - "section": "Indented code blocks", - "html": "
    \n
  1. \n

    foo

    \n
      \n
    • bar
    • \n
    \n
  2. \n
\n", - "markdown": "1. foo\n\n - bar\n", - "example": 78, - "start_line": 1420 - }, - { - "end_line": 1451, - "section": "Indented code blocks", - "html": "
<a/>\n*hi*\n\n- one\n
\n", - "markdown": "
\n *hi*\n\n - one\n", - "example": 79, - "start_line": 1440 - }, - { - "end_line": 1473, - "section": "Indented code blocks", - "html": "
chunk1\n\nchunk2\n\n\n\nchunk3\n
\n", - "markdown": " chunk1\n\n chunk2\n \n \n \n chunk3\n", - "example": 80, - "start_line": 1456 - }, - { - "end_line": 1488, - "section": "Indented code blocks", - "html": "
chunk1\n  \n  chunk2\n
\n", - "markdown": " chunk1\n \n chunk2\n", - "example": 81, - "start_line": 1479 - }, - { - "end_line": 1501, - "section": "Indented code blocks", - "html": "

Foo\nbar

\n", - "markdown": "Foo\n bar\n\n", - "example": 82, - "start_line": 1494 - }, - { - "end_line": 1515, - "section": "Indented code blocks", - "html": "
foo\n
\n

bar

\n", - "markdown": " foo\nbar\n", - "example": 83, - "start_line": 1508 - }, - { - "end_line": 1536, - "section": "Indented code blocks", - "html": "

Heading

\n
foo\n
\n

Heading

\n
foo\n
\n
\n", - "markdown": "# Heading\n foo\nHeading\n------\n foo\n----\n", - "example": 84, - "start_line": 1521 - }, - { - "end_line": 1548, - "section": "Indented code blocks", - "html": "
    foo\nbar\n
\n", - "markdown": " foo\n bar\n", - "example": 85, - "start_line": 1541 - }, - { - "end_line": 1563, - "section": "Indented code blocks", - "html": "
foo\n
\n", - "markdown": "\n \n foo\n \n\n", - "example": 86, - "start_line": 1554 - }, - { - "end_line": 1573, - "section": "Indented code blocks", - "html": "
foo  \n
\n", - "markdown": " foo \n", - "example": 87, - "start_line": 1568 - }, - { - "end_line": 1632, - "section": "Fenced code blocks", - "html": "
<\n >\n
\n", - "markdown": "```\n<\n >\n```\n", - "example": 88, - "start_line": 1623 - }, - { - "end_line": 1646, - "section": "Fenced code blocks", - "html": "
<\n >\n
\n", - "markdown": "~~~\n<\n >\n~~~\n", - "example": 89, - "start_line": 1637 - }, - { - "end_line": 1656, - "section": "Fenced code blocks", - "html": "

foo

\n", - "markdown": "``\nfoo\n``\n", - "example": 90, - "start_line": 1650 - }, - { - "end_line": 1670, - "section": "Fenced code blocks", - "html": "
aaa\n~~~\n
\n", - "markdown": "```\naaa\n~~~\n```\n", - "example": 91, - "start_line": 1661 - }, - { - "end_line": 1682, - "section": "Fenced code blocks", - "html": "
aaa\n```\n
\n", - "markdown": "~~~\naaa\n```\n~~~\n", - "example": 92, - "start_line": 1673 - }, - { - "end_line": 1696, - "section": "Fenced code blocks", - "html": "
aaa\n```\n
\n", - "markdown": "````\naaa\n```\n``````\n", - "example": 93, - "start_line": 1687 - }, - { - "end_line": 1708, - "section": "Fenced code blocks", - "html": "
aaa\n~~~\n
\n", - "markdown": "~~~~\naaa\n~~~\n~~~~\n", - "example": 94, - "start_line": 1699 - }, - { - "end_line": 1718, - "section": "Fenced code blocks", - "html": "
\n", - "markdown": "```\n", - "example": 95, - "start_line": 1714 - }, - { - "end_line": 1731, - "section": "Fenced code blocks", - "html": "
\n```\naaa\n
\n", - "markdown": "`````\n\n```\naaa\n", - "example": 96, - "start_line": 1721 - }, - { - "end_line": 1745, - "section": "Fenced code blocks", - "html": "
\n
aaa\n
\n
\n

bbb

\n", - "markdown": "> ```\n> aaa\n\nbbb\n", - "example": 97, - "start_line": 1734 - }, - { - "end_line": 1759, - "section": "Fenced code blocks", - "html": "
\n  \n
\n", - "markdown": "```\n\n \n```\n", - "example": 98, - "start_line": 1750 - }, - { - "end_line": 1769, - "section": "Fenced code blocks", - "html": "
\n", - "markdown": "```\n```\n", - "example": 99, - "start_line": 1764 - }, - { - "end_line": 1785, - "section": "Fenced code blocks", - "html": "
aaa\naaa\n
\n", - "markdown": " ```\n aaa\naaa\n```\n", - "example": 100, - "start_line": 1776 - }, - { - "end_line": 1799, - "section": "Fenced code blocks", - "html": "
aaa\naaa\naaa\n
\n", - "markdown": " ```\naaa\n aaa\naaa\n ```\n", - "example": 101, - "start_line": 1788 - }, - { - "end_line": 1813, - "section": "Fenced code blocks", - "html": "
aaa\n aaa\naaa\n
\n", - "markdown": " ```\n aaa\n aaa\n aaa\n ```\n", - "example": 102, - "start_line": 1802 - }, - { - "end_line": 1827, - "section": "Fenced code blocks", - "html": "
```\naaa\n```\n
\n", - "markdown": " ```\n aaa\n ```\n", - "example": 103, - "start_line": 1818 - }, - { - "end_line": 1840, - "section": "Fenced code blocks", - "html": "
aaa\n
\n", - "markdown": "```\naaa\n ```\n", - "example": 104, - "start_line": 1833 - }, - { - "end_line": 1850, - "section": "Fenced code blocks", - "html": "
aaa\n
\n", - "markdown": " ```\naaa\n ```\n", - "example": 105, - "start_line": 1843 - }, - { - "end_line": 1863, - "section": "Fenced code blocks", - "html": "
aaa\n    ```\n
\n", - "markdown": "```\naaa\n ```\n", - "example": 106, - "start_line": 1855 - }, - { - "end_line": 1875, - "section": "Fenced code blocks", - "html": "

\naaa

\n", - "markdown": "``` ```\naaa\n", - "example": 107, - "start_line": 1869 - }, - { - "end_line": 1886, - "section": "Fenced code blocks", - "html": "
aaa\n~~~ ~~\n
\n", - "markdown": "~~~~~~\naaa\n~~~ ~~\n", - "example": 108, - "start_line": 1878 - }, - { - "end_line": 1903, - "section": "Fenced code blocks", - "html": "

foo

\n
bar\n
\n

baz

\n", - "markdown": "foo\n```\nbar\n```\nbaz\n", - "example": 109, - "start_line": 1892 - }, - { - "end_line": 1921, - "section": "Fenced code blocks", - "html": "

foo

\n
bar\n
\n

baz

\n", - "markdown": "foo\n---\n~~~\nbar\n~~~\n# baz\n", - "example": 110, - "start_line": 1909 - }, - { - "end_line": 1940, - "section": "Fenced code blocks", - "html": "
def foo(x)\n  return 3\nend\n
\n", - "markdown": "```ruby\ndef foo(x)\n return 3\nend\n```\n", - "example": 111, - "start_line": 1929 - }, - { - "end_line": 1954, - "section": "Fenced code blocks", - "html": "
def foo(x)\n  return 3\nend\n
\n", - "markdown": "~~~~ ruby startline=3 $%@#$\ndef foo(x)\n return 3\nend\n~~~~~~~\n", - "example": 112, - "start_line": 1943 - }, - { - "end_line": 1962, - "section": "Fenced code blocks", - "html": "
\n", - "markdown": "````;\n````\n", - "example": 113, - "start_line": 1957 - }, - { - "end_line": 1973, - "section": "Fenced code blocks", - "html": "

aa\nfoo

\n", - "markdown": "``` aa ```\nfoo\n", - "example": 114, - "start_line": 1967 - }, - { - "end_line": 1985, - "section": "Fenced code blocks", - "html": "
``` aaa\n
\n", - "markdown": "```\n``` aaa\n```\n", - "example": 115, - "start_line": 1978 - }, - { - "end_line": 2070, - "section": "HTML blocks", - "html": "
\n
\n**Hello**,\n

world.\n

\n
\n", - "markdown": "
\n
\n**Hello**,\n\n_world_.\n
\n
\n", - "example": 116, - "start_line": 2055 - }, - { - "end_line": 2103, - "section": "HTML blocks", - "html": "\n \n \n \n
\n hi\n
\n

okay.

\n", - "markdown": "\n \n \n \n
\n hi\n
\n\nokay.\n", - "example": 117, - "start_line": 2084 - }, - { - "end_line": 2114, - "section": "HTML blocks", - "html": "
\n*foo*\n", - "example": 119, - "start_line": 2119 - }, - { - "end_line": 2140, - "section": "HTML blocks", - "html": "
\n

Markdown

\n
\n", - "markdown": "
\n\n*Markdown*\n\n
\n", - "example": 120, - "start_line": 2130 - }, - { - "end_line": 2154, - "section": "HTML blocks", - "html": "
\n
\n", - "markdown": "
\n
\n", - "example": 121, - "start_line": 2146 - }, - { - "end_line": 2165, - "section": "HTML blocks", - "html": "
\n
\n", - "markdown": "
\n
\n", - "example": 122, - "start_line": 2157 - }, - { - "end_line": 2178, - "section": "HTML blocks", - "html": "
\n*foo*\n

bar

\n", - "markdown": "
\n*foo*\n\n*bar*\n", - "example": 123, - "start_line": 2169 - }, - { - "end_line": 2191, - "section": "HTML blocks", - "html": "\n", - "markdown": "\n", - "example": 127, - "start_line": 2218 - }, - { - "end_line": 2233, - "section": "HTML blocks", - "html": "
\nfoo\n
\n", - "markdown": "
\nfoo\n
\n", - "example": 128, - "start_line": 2225 - }, - { - "end_line": 2252, - "section": "HTML blocks", - "html": "
\n``` c\nint x = 33;\n```\n", - "markdown": "
\n``` c\nint x = 33;\n```\n", - "example": 129, - "start_line": 2242 - }, - { - "end_line": 2267, - "section": "HTML blocks", - "html": "\n*bar*\n\n", - "markdown": "\n*bar*\n\n", - "example": 130, - "start_line": 2259 - }, - { - "end_line": 2280, - "section": "HTML blocks", - "html": "\n*bar*\n\n", - "markdown": "\n*bar*\n\n", - "example": 131, - "start_line": 2272 - }, - { - "end_line": 2291, - "section": "HTML blocks", - "html": "\n*bar*\n\n", - "markdown": "\n*bar*\n\n", - "example": 132, - "start_line": 2283 - }, - { - "end_line": 2300, - "section": "HTML blocks", - "html": "\n*bar*\n", - "markdown": "\n*bar*\n", - "example": 133, - "start_line": 2294 - }, - { - "end_line": 2317, - "section": "HTML blocks", - "html": "\n*foo*\n\n", - "markdown": "\n*foo*\n\n", - "example": 134, - "start_line": 2309 - }, - { - "end_line": 2334, - "section": "HTML blocks", - "html": "\n

foo

\n
\n", - "markdown": "\n\n*foo*\n\n\n", - "example": 135, - "start_line": 2324 - }, - { - "end_line": 2346, - "section": "HTML blocks", - "html": "

foo

\n", - "markdown": "*foo*\n", - "example": 136, - "start_line": 2342 - }, - { - "end_line": 2374, - "section": "HTML blocks", - "html": "
\nimport Text.HTML.TagSoup\n\nmain :: IO ()\nmain = print $ parseTags tags\n
\n

okay

\n", - "markdown": "
\nimport Text.HTML.TagSoup\n\nmain :: IO ()\nmain = print $ parseTags tags\n
\nokay\n", - "example": 137, - "start_line": 2358 - }, - { - "end_line": 2393, - "section": "HTML blocks", - "html": "\n

okay

\n", - "markdown": "\nokay\n", - "example": 138, - "start_line": 2379 - }, - { - "end_line": 2414, - "section": "HTML blocks", - "html": "\nh1 {color:red;}\n\np {color:blue;}\n\n

okay

\n", - "markdown": "\nh1 {color:red;}\n\np {color:blue;}\n\nokay\n", - "example": 139, - "start_line": 2398 - }, - { - "end_line": 2431, - "section": "HTML blocks", - "html": "\n\nfoo\n", - "markdown": "\n\nfoo\n", - "example": 140, - "start_line": 2421 - }, - { - "end_line": 2445, - "section": "HTML blocks", - "html": "
\n
\nfoo\n
\n

bar

\n", - "markdown": ">
\n> foo\n\nbar\n", - "example": 141, - "start_line": 2434 - }, - { - "end_line": 2458, - "section": "HTML blocks", - "html": "
    \n
  • \n
    \n
  • \n
  • foo
  • \n
\n", - "markdown": "-
\n- foo\n", - "example": 142, - "start_line": 2448 - }, - { - "end_line": 2469, - "section": "HTML blocks", - "html": "\n

foo

\n", - "markdown": "\n*foo*\n", - "example": 143, - "start_line": 2463 - }, - { - "end_line": 2478, - "section": "HTML blocks", - "html": "*bar*\n

baz

\n", - "markdown": "*bar*\n*baz*\n", - "example": 144, - "start_line": 2472 - }, - { - "end_line": 2492, - "section": "HTML blocks", - "html": "1. *bar*\n", - "markdown": "1. *bar*\n", - "example": 145, - "start_line": 2484 - }, - { - "end_line": 2509, - "section": "HTML blocks", - "html": "\n

okay

\n", - "markdown": "\nokay\n", - "example": 146, - "start_line": 2497 - }, - { - "end_line": 2529, - "section": "HTML blocks", - "html": "';\n\n?>\n

okay

\n", - "markdown": "';\n\n?>\nokay\n", - "example": 147, - "start_line": 2515 - }, - { - "end_line": 2538, - "section": "HTML blocks", - "html": "\n", - "markdown": "\n", - "example": 148, - "start_line": 2534 - }, - { - "end_line": 2571, - "section": "HTML blocks", - "html": "\n

okay

\n", - "markdown": "\nokay\n", - "example": 149, - "start_line": 2543 - }, - { - "end_line": 2584, - "section": "HTML blocks", - "html": " \n
<!-- foo -->\n
\n", - "markdown": " \n\n \n", - "example": 150, - "start_line": 2576 - }, - { - "end_line": 2595, - "section": "HTML blocks", - "html": "
\n
<div>\n
\n", - "markdown": "
\n\n
\n", - "example": 151, - "start_line": 2587 - }, - { - "end_line": 2611, - "section": "HTML blocks", - "html": "

Foo

\n
\nbar\n
\n", - "markdown": "Foo\n
\nbar\n
\n", - "example": 152, - "start_line": 2601 - }, - { - "end_line": 2627, - "section": "HTML blocks", - "html": "
\nbar\n
\n*foo*\n", - "markdown": "
\nbar\n
\n*foo*\n", - "example": 153, - "start_line": 2617 - }, - { - "end_line": 2640, - "section": "HTML blocks", - "html": "

Foo\n\nbaz

\n", - "markdown": "Foo\n\nbaz\n", - "example": 154, - "start_line": 2632 - }, - { - "end_line": 2683, - "section": "HTML blocks", - "html": "
\n

Emphasized text.

\n
\n", - "markdown": "
\n\n*Emphasized* text.\n\n
\n", - "example": 155, - "start_line": 2673 - }, - { - "end_line": 2694, - "section": "HTML blocks", - "html": "
\n*Emphasized* text.\n
\n", - "markdown": "
\n*Emphasized* text.\n
\n", - "example": 156, - "start_line": 2686 - }, - { - "end_line": 2728, - "section": "HTML blocks", - "html": "\n\n\n\n
\nHi\n
\n", - "markdown": "\n\n\n\n\n\n\n\n
\nHi\n
\n", - "example": 157, - "start_line": 2708 - }, - { - "end_line": 2756, - "section": "HTML blocks", - "html": "\n \n
<td>\n  Hi\n</td>\n
\n \n
\n", - "markdown": "\n\n \n\n \n\n \n\n
\n Hi\n
\n", - "example": 158, - "start_line": 2735 - }, - { - "end_line": 2789, - "section": "Link reference definitions", - "html": "

foo

\n", - "markdown": "[foo]: /url \"title\"\n\n[foo]\n", - "example": 159, - "start_line": 2783 - }, - { - "end_line": 2800, - "section": "Link reference definitions", - "html": "

foo

\n", - "markdown": " [foo]: \n /url \n 'the title' \n\n[foo]\n", - "example": 160, - "start_line": 2792 - }, - { - "end_line": 2809, - "section": "Link reference definitions", - "html": "

Foo*bar]

\n", - "markdown": "[Foo*bar\\]]:my_(url) 'title (with parens)'\n\n[Foo*bar\\]]\n", - "example": 161, - "start_line": 2803 - }, - { - "end_line": 2820, - "section": "Link reference definitions", - "html": "

Foo bar

\n", - "markdown": "[Foo bar]:\n\n'title'\n\n[Foo bar]\n", - "example": 162, - "start_line": 2812 - }, - { - "end_line": 2839, - "section": "Link reference definitions", - "html": "

foo

\n", - "markdown": "[foo]: /url '\ntitle\nline1\nline2\n'\n\n[foo]\n", - "example": 163, - "start_line": 2825 - }, - { - "end_line": 2854, - "section": "Link reference definitions", - "html": "

[foo]: /url 'title

\n

with blank line'

\n

[foo]

\n", - "markdown": "[foo]: /url 'title\n\nwith blank line'\n\n[foo]\n", - "example": 164, - "start_line": 2844 - }, - { - "end_line": 2866, - "section": "Link reference definitions", - "html": "

foo

\n", - "markdown": "[foo]:\n/url\n\n[foo]\n", - "example": 165, - "start_line": 2859 - }, - { - "end_line": 2878, - "section": "Link reference definitions", - "html": "

[foo]:

\n

[foo]

\n", - "markdown": "[foo]:\n\n[foo]\n", - "example": 166, - "start_line": 2871 - }, - { - "end_line": 2890, - "section": "Link reference definitions", - "html": "

foo

\n", - "markdown": "[foo]: /url\\bar\\*baz \"foo\\\"bar\\baz\"\n\n[foo]\n", - "example": 167, - "start_line": 2884 - }, - { - "end_line": 2901, - "section": "Link reference definitions", - "html": "

foo

\n", - "markdown": "[foo]\n\n[foo]: url\n", - "example": 168, - "start_line": 2895 - }, - { - "end_line": 2914, - "section": "Link reference definitions", - "html": "

foo

\n", - "markdown": "[foo]\n\n[foo]: first\n[foo]: second\n", - "example": 169, - "start_line": 2907 - }, - { - "end_line": 2926, - "section": "Link reference definitions", - "html": "

Foo

\n", - "markdown": "[FOO]: /url\n\n[Foo]\n", - "example": 170, - "start_line": 2920 - }, - { - "end_line": 2935, - "section": "Link reference definitions", - "html": "

αγω

\n", - "markdown": "[ΑΓΩ]: /φου\n\n[αγω]\n", - "example": 171, - "start_line": 2929 - }, - { - "end_line": 2944, - "section": "Link reference definitions", - "html": "", - "markdown": "[foo]: /url\n", - "example": 172, - "start_line": 2941 - }, - { - "end_line": 2956, - "section": "Link reference definitions", - "html": "

bar

\n", - "markdown": "[\nfoo\n]: /url\nbar\n", - "example": 173, - "start_line": 2949 - }, - { - "end_line": 2966, - "section": "Link reference definitions", - "html": "

[foo]: /url "title" ok

\n", - "markdown": "[foo]: /url \"title\" ok\n", - "example": 174, - "start_line": 2962 - }, - { - "end_line": 2976, - "section": "Link reference definitions", - "html": "

"title" ok

\n", - "markdown": "[foo]: /url\n\"title\" ok\n", - "example": 175, - "start_line": 2971 - }, - { - "end_line": 2990, - "section": "Link reference definitions", - "html": "
[foo]: /url "title"\n
\n

[foo]

\n", - "markdown": " [foo]: /url \"title\"\n\n[foo]\n", - "example": 176, - "start_line": 2982 - }, - { - "end_line": 3006, - "section": "Link reference definitions", - "html": "
[foo]: /url\n
\n

[foo]

\n", - "markdown": "```\n[foo]: /url\n```\n\n[foo]\n", - "example": 177, - "start_line": 2996 - }, - { - "end_line": 3020, - "section": "Link reference definitions", - "html": "

Foo\n[bar]: /baz

\n

[bar]

\n", - "markdown": "Foo\n[bar]: /baz\n\n[bar]\n", - "example": 178, - "start_line": 3011 - }, - { - "end_line": 3035, - "section": "Link reference definitions", - "html": "

Foo

\n
\n

bar

\n
\n", - "markdown": "# [Foo]\n[foo]: /url\n> bar\n", - "example": 179, - "start_line": 3026 - }, - { - "end_line": 3054, - "section": "Link reference definitions", - "html": "

foo,\nbar,\nbaz

\n", - "markdown": "[foo]: /foo-url \"foo\"\n[bar]: /bar-url\n \"bar\"\n[baz]: /baz-url\n\n[foo],\n[bar],\n[baz]\n", - "example": 180, - "start_line": 3041 - }, - { - "end_line": 3070, - "section": "Link reference definitions", - "html": "

foo

\n
\n
\n", - "markdown": "[foo]\n\n> [foo]: /url\n", - "example": 181, - "start_line": 3062 - }, - { - "end_line": 3092, - "section": "Paragraphs", - "html": "

aaa

\n

bbb

\n", - "markdown": "aaa\n\nbbb\n", - "example": 182, - "start_line": 3085 - }, - { - "end_line": 3108, - "section": "Paragraphs", - "html": "

aaa\nbbb

\n

ccc\nddd

\n", - "markdown": "aaa\nbbb\n\nccc\nddd\n", - "example": 183, - "start_line": 3097 - }, - { - "end_line": 3121, - "section": "Paragraphs", - "html": "

aaa

\n

bbb

\n", - "markdown": "aaa\n\n\nbbb\n", - "example": 184, - "start_line": 3113 - }, - { - "end_line": 3132, - "section": "Paragraphs", - "html": "

aaa\nbbb

\n", - "markdown": " aaa\n bbb\n", - "example": 185, - "start_line": 3126 - }, - { - "end_line": 3146, - "section": "Paragraphs", - "html": "

aaa\nbbb\nccc

\n", - "markdown": "aaa\n bbb\n ccc\n", - "example": 186, - "start_line": 3138 - }, - { - "end_line": 3158, - "section": "Paragraphs", - "html": "

aaa\nbbb

\n", - "markdown": " aaa\nbbb\n", - "example": 187, - "start_line": 3152 - }, - { - "end_line": 3168, - "section": "Paragraphs", - "html": "
aaa\n
\n

bbb

\n", - "markdown": " aaa\nbbb\n", - "example": 188, - "start_line": 3161 - }, - { - "end_line": 3181, - "section": "Paragraphs", - "html": "

aaa
\nbbb

\n", - "markdown": "aaa \nbbb \n", - "example": 189, - "start_line": 3175 - }, - { - "end_line": 3204, - "section": "Blank lines", - "html": "

aaa

\n

aaa

\n", - "markdown": " \n\naaa\n \n\n# aaa\n\n \n", - "example": 190, - "start_line": 3192 - }, - { - "end_line": 3268, - "section": "Block quotes", - "html": "
\n

Foo

\n

bar\nbaz

\n
\n", - "markdown": "> # Foo\n> bar\n> baz\n", - "example": 191, - "start_line": 3258 - }, - { - "end_line": 3283, - "section": "Block quotes", - "html": "
\n

Foo

\n

bar\nbaz

\n
\n", - "markdown": "># Foo\n>bar\n> baz\n", - "example": 192, - "start_line": 3273 - }, - { - "end_line": 3298, - "section": "Block quotes", - "html": "
\n

Foo

\n

bar\nbaz

\n
\n", - "markdown": " > # Foo\n > bar\n > baz\n", - "example": 193, - "start_line": 3288 - }, - { - "end_line": 3312, - "section": "Block quotes", - "html": "
> # Foo\n> bar\n> baz\n
\n", - "markdown": " > # Foo\n > bar\n > baz\n", - "example": 194, - "start_line": 3303 - }, - { - "end_line": 3328, - "section": "Block quotes", - "html": "
\n

Foo

\n

bar\nbaz

\n
\n", - "markdown": "> # Foo\n> bar\nbaz\n", - "example": 195, - "start_line": 3318 - }, - { - "end_line": 3344, - "section": "Block quotes", - "html": "
\n

bar\nbaz\nfoo

\n
\n", - "markdown": "> bar\nbaz\n> foo\n", - "example": 196, - "start_line": 3334 - }, - { - "end_line": 3366, - "section": "Block quotes", - "html": "
\n

foo

\n
\n
\n", - "markdown": "> foo\n---\n", - "example": 197, - "start_line": 3358 - }, - { - "end_line": 3390, - "section": "Block quotes", - "html": "
\n
    \n
  • foo
  • \n
\n
\n
    \n
  • bar
  • \n
\n", - "markdown": "> - foo\n- bar\n", - "example": 198, - "start_line": 3378 - }, - { - "end_line": 3406, - "section": "Block quotes", - "html": "
\n
foo\n
\n
\n
bar\n
\n", - "markdown": "> foo\n bar\n", - "example": 199, - "start_line": 3396 - }, - { - "end_line": 3419, - "section": "Block quotes", - "html": "
\n
\n
\n

foo

\n
\n", - "markdown": "> ```\nfoo\n```\n", - "example": 200, - "start_line": 3409 - }, - { - "end_line": 3433, - "section": "Block quotes", - "html": "
\n

foo\n- bar

\n
\n", - "markdown": "> foo\n - bar\n", - "example": 201, - "start_line": 3425 - }, - { - "end_line": 3454, - "section": "Block quotes", - "html": "
\n
\n", - "markdown": ">\n", - "example": 202, - "start_line": 3449 - }, - { - "end_line": 3464, - "section": "Block quotes", - "html": "
\n
\n", - "markdown": ">\n> \n> \n", - "example": 203, - "start_line": 3457 - }, - { - "end_line": 3477, - "section": "Block quotes", - "html": "
\n

foo

\n
\n", - "markdown": ">\n> foo\n> \n", - "example": 204, - "start_line": 3469 - }, - { - "end_line": 3493, - "section": "Block quotes", - "html": "
\n

foo

\n
\n
\n

bar

\n
\n", - "markdown": "> foo\n\n> bar\n", - "example": 205, - "start_line": 3482 - }, - { - "end_line": 3512, - "section": "Block quotes", - "html": "
\n

foo\nbar

\n
\n", - "markdown": "> foo\n> bar\n", - "example": 206, - "start_line": 3504 - }, - { - "end_line": 3526, - "section": "Block quotes", - "html": "
\n

foo

\n

bar

\n
\n", - "markdown": "> foo\n>\n> bar\n", - "example": 207, - "start_line": 3517 - }, - { - "end_line": 3539, - "section": "Block quotes", - "html": "

foo

\n
\n

bar

\n
\n", - "markdown": "foo\n> bar\n", - "example": 208, - "start_line": 3531 - }, - { - "end_line": 3557, - "section": "Block quotes", - "html": "
\n

aaa

\n
\n
\n
\n

bbb

\n
\n", - "markdown": "> aaa\n***\n> bbb\n", - "example": 209, - "start_line": 3545 - }, - { - "end_line": 3571, - "section": "Block quotes", - "html": "
\n

bar\nbaz

\n
\n", - "markdown": "> bar\nbaz\n", - "example": 210, - "start_line": 3563 - }, - { - "end_line": 3583, - "section": "Block quotes", - "html": "
\n

bar

\n
\n

baz

\n", - "markdown": "> bar\n\nbaz\n", - "example": 211, - "start_line": 3574 - }, - { - "end_line": 3595, - "section": "Block quotes", - "html": "
\n

bar

\n
\n

baz

\n", - "markdown": "> bar\n>\nbaz\n", - "example": 212, - "start_line": 3586 - }, - { - "end_line": 3614, - "section": "Block quotes", - "html": "
\n
\n
\n

foo\nbar

\n
\n
\n
\n", - "markdown": "> > > foo\nbar\n", - "example": 213, - "start_line": 3602 - }, - { - "end_line": 3631, - "section": "Block quotes", - "html": "
\n
\n
\n

foo\nbar\nbaz

\n
\n
\n
\n", - "markdown": ">>> foo\n> bar\n>>baz\n", - "example": 214, - "start_line": 3617 - }, - { - "end_line": 3651, - "section": "Block quotes", - "html": "
\n
code\n
\n
\n
\n

not code

\n
\n", - "markdown": "> code\n\n> not code\n", - "example": 215, - "start_line": 3639 - }, - { - "end_line": 3709, - "section": "List items", - "html": "

A paragraph\nwith two lines.

\n
indented code\n
\n
\n

A block quote.

\n
\n", - "markdown": "A paragraph\nwith two lines.\n\n indented code\n\n> A block quote.\n", - "example": 216, - "start_line": 3694 - }, - { - "end_line": 3735, - "section": "List items", - "html": "
    \n
  1. \n

    A paragraph\nwith two lines.

    \n
    indented code\n
    \n
    \n

    A block quote.

    \n
    \n
  2. \n
\n", - "markdown": "1. A paragraph\n with two lines.\n\n indented code\n\n > A block quote.\n", - "example": 217, - "start_line": 3716 - }, - { - "end_line": 3758, - "section": "List items", - "html": "
    \n
  • one
  • \n
\n

two

\n", - "markdown": "- one\n\n two\n", - "example": 218, - "start_line": 3749 - }, - { - "end_line": 3772, - "section": "List items", - "html": "
    \n
  • \n

    one

    \n

    two

    \n
  • \n
\n", - "markdown": "- one\n\n two\n", - "example": 219, - "start_line": 3761 - }, - { - "end_line": 3785, - "section": "List items", - "html": "
    \n
  • one
  • \n
\n
 two\n
\n", - "markdown": " - one\n\n two\n", - "example": 220, - "start_line": 3775 - }, - { - "end_line": 3799, - "section": "List items", - "html": "
    \n
  • \n

    one

    \n

    two

    \n
  • \n
\n", - "markdown": " - one\n\n two\n", - "example": 221, - "start_line": 3788 - }, - { - "end_line": 3825, - "section": "List items", - "html": "
\n
\n
    \n
  1. \n

    one

    \n

    two

    \n
  2. \n
\n
\n
\n", - "markdown": " > > 1. one\n>>\n>> two\n", - "example": 222, - "start_line": 3810 - }, - { - "end_line": 3850, - "section": "List items", - "html": "
\n
\n
    \n
  • one
  • \n
\n

two

\n
\n
\n", - "markdown": ">>- one\n>>\n > > two\n", - "example": 223, - "start_line": 3837 - }, - { - "end_line": 3863, - "section": "List items", - "html": "

-one

\n

2.two

\n", - "markdown": "-one\n\n2.two\n", - "example": 224, - "start_line": 3856 - }, - { - "end_line": 3881, - "section": "List items", - "html": "
    \n
  • \n

    foo

    \n

    bar

    \n
  • \n
\n", - "markdown": "- foo\n\n\n bar\n", - "example": 225, - "start_line": 3869 - }, - { - "end_line": 3908, - "section": "List items", - "html": "
    \n
  1. \n

    foo

    \n
    bar\n
    \n

    baz

    \n
    \n

    bam

    \n
    \n
  2. \n
\n", - "markdown": "1. foo\n\n ```\n bar\n ```\n\n baz\n\n > bam\n", - "example": 226, - "start_line": 3886 - }, - { - "end_line": 3932, - "section": "List items", - "html": "
    \n
  • \n

    Foo

    \n
    bar\n\n\nbaz\n
    \n
  • \n
\n", - "markdown": "- Foo\n\n bar\n\n\n baz\n", - "example": 227, - "start_line": 3914 - }, - { - "end_line": 3942, - "section": "List items", - "html": "
    \n
  1. ok
  2. \n
\n", - "markdown": "123456789. ok\n", - "example": 228, - "start_line": 3936 - }, - { - "end_line": 3949, - "section": "List items", - "html": "

1234567890. not ok

\n", - "markdown": "1234567890. not ok\n", - "example": 229, - "start_line": 3945 - }, - { - "end_line": 3960, - "section": "List items", - "html": "
    \n
  1. ok
  2. \n
\n", - "markdown": "0. ok\n", - "example": 230, - "start_line": 3954 - }, - { - "end_line": 3969, - "section": "List items", - "html": "
    \n
  1. ok
  2. \n
\n", - "markdown": "003. ok\n", - "example": 231, - "start_line": 3963 - }, - { - "end_line": 3978, - "section": "List items", - "html": "

-1. not ok

\n", - "markdown": "-1. not ok\n", - "example": 232, - "start_line": 3974 - }, - { - "end_line": 4010, - "section": "List items", - "html": "
    \n
  • \n

    foo

    \n
    bar\n
    \n
  • \n
\n", - "markdown": "- foo\n\n bar\n", - "example": 233, - "start_line": 3998 - }, - { - "end_line": 4027, - "section": "List items", - "html": "
    \n
  1. \n

    foo

    \n
    bar\n
    \n
  2. \n
\n", - "markdown": " 10. foo\n\n bar\n", - "example": 234, - "start_line": 4015 - }, - { - "end_line": 4046, - "section": "List items", - "html": "
indented code\n
\n

paragraph

\n
more code\n
\n", - "markdown": " indented code\n\nparagraph\n\n more code\n", - "example": 235, - "start_line": 4034 - }, - { - "end_line": 4065, - "section": "List items", - "html": "
    \n
  1. \n
    indented code\n
    \n

    paragraph

    \n
    more code\n
    \n
  2. \n
\n", - "markdown": "1. indented code\n\n paragraph\n\n more code\n", - "example": 236, - "start_line": 4049 - }, - { - "end_line": 4087, - "section": "List items", - "html": "
    \n
  1. \n
     indented code\n
    \n

    paragraph

    \n
    more code\n
    \n
  2. \n
\n", - "markdown": "1. indented code\n\n paragraph\n\n more code\n", - "example": 237, - "start_line": 4071 - }, - { - "end_line": 4105, - "section": "List items", - "html": "

foo

\n

bar

\n", - "markdown": " foo\n\nbar\n", - "example": 238, - "start_line": 4098 - }, - { - "end_line": 4117, - "section": "List items", - "html": "
    \n
  • foo
  • \n
\n

bar

\n", - "markdown": "- foo\n\n bar\n", - "example": 239, - "start_line": 4108 - }, - { - "end_line": 4136, - "section": "List items", - "html": "
    \n
  • \n

    foo

    \n

    bar

    \n
  • \n
\n", - "markdown": "- foo\n\n bar\n", - "example": 240, - "start_line": 4125 - }, - { - "end_line": 4174, - "section": "List items", - "html": "
    \n
  • foo
  • \n
  • \n
    bar\n
    \n
  • \n
  • \n
    baz\n
    \n
  • \n
\n", - "markdown": "-\n foo\n-\n ```\n bar\n ```\n-\n baz\n", - "example": 241, - "start_line": 4153 - }, - { - "end_line": 4186, - "section": "List items", - "html": "
    \n
  • foo
  • \n
\n", - "markdown": "- \n foo\n", - "example": 242, - "start_line": 4179 - }, - { - "end_line": 4202, - "section": "List items", - "html": "
    \n
  • \n
\n

foo

\n", - "markdown": "-\n\n foo\n", - "example": 243, - "start_line": 4193 - }, - { - "end_line": 4217, - "section": "List items", - "html": "
    \n
  • foo
  • \n
  • \n
  • bar
  • \n
\n", - "markdown": "- foo\n-\n- bar\n", - "example": 244, - "start_line": 4207 - }, - { - "end_line": 4232, - "section": "List items", - "html": "
    \n
  • foo
  • \n
  • \n
  • bar
  • \n
\n", - "markdown": "- foo\n- \n- bar\n", - "example": 245, - "start_line": 4222 - }, - { - "end_line": 4247, - "section": "List items", - "html": "
    \n
  1. foo
  2. \n
  3. \n
  4. bar
  5. \n
\n", - "markdown": "1. foo\n2.\n3. bar\n", - "example": 246, - "start_line": 4237 - }, - { - "end_line": 4258, - "section": "List items", - "html": "
    \n
  • \n
\n", - "markdown": "*\n", - "example": 247, - "start_line": 4252 - }, - { - "end_line": 4273, - "section": "List items", - "html": "

foo\n*

\n

foo\n1.

\n", - "markdown": "foo\n*\n\nfoo\n1.\n", - "example": 248, - "start_line": 4262 - }, - { - "end_line": 4303, - "section": "List items", - "html": "
    \n
  1. \n

    A paragraph\nwith two lines.

    \n
    indented code\n
    \n
    \n

    A block quote.

    \n
    \n
  2. \n
\n", - "markdown": " 1. A paragraph\n with two lines.\n\n indented code\n\n > A block quote.\n", - "example": 249, - "start_line": 4284 - }, - { - "end_line": 4327, - "section": "List items", - "html": "
    \n
  1. \n

    A paragraph\nwith two lines.

    \n
    indented code\n
    \n
    \n

    A block quote.

    \n
    \n
  2. \n
\n", - "markdown": " 1. A paragraph\n with two lines.\n\n indented code\n\n > A block quote.\n", - "example": 250, - "start_line": 4308 - }, - { - "end_line": 4351, - "section": "List items", - "html": "
    \n
  1. \n

    A paragraph\nwith two lines.

    \n
    indented code\n
    \n
    \n

    A block quote.

    \n
    \n
  2. \n
\n", - "markdown": " 1. A paragraph\n with two lines.\n\n indented code\n\n > A block quote.\n", - "example": 251, - "start_line": 4332 - }, - { - "end_line": 4371, - "section": "List items", - "html": "
1.  A paragraph\n    with two lines.\n\n        indented code\n\n    > A block quote.\n
\n", - "markdown": " 1. A paragraph\n with two lines.\n\n indented code\n\n > A block quote.\n", - "example": 252, - "start_line": 4356 - }, - { - "end_line": 4405, - "section": "List items", - "html": "
    \n
  1. \n

    A paragraph\nwith two lines.

    \n
    indented code\n
    \n
    \n

    A block quote.

    \n
    \n
  2. \n
\n", - "markdown": " 1. A paragraph\nwith two lines.\n\n indented code\n\n > A block quote.\n", - "example": 253, - "start_line": 4386 - }, - { - "end_line": 4418, - "section": "List items", - "html": "
    \n
  1. A paragraph\nwith two lines.
  2. \n
\n", - "markdown": " 1. A paragraph\n with two lines.\n", - "example": 254, - "start_line": 4410 - }, - { - "end_line": 4437, - "section": "List items", - "html": "
\n
    \n
  1. \n
    \n

    Blockquote\ncontinued here.

    \n
    \n
  2. \n
\n
\n", - "markdown": "> 1. > Blockquote\ncontinued here.\n", - "example": 255, - "start_line": 4423 - }, - { - "end_line": 4454, - "section": "List items", - "html": "
\n
    \n
  1. \n
    \n

    Blockquote\ncontinued here.

    \n
    \n
  2. \n
\n
\n", - "markdown": "> 1. > Blockquote\n> continued here.\n", - "example": 256, - "start_line": 4440 - }, - { - "end_line": 4488, - "section": "List items", - "html": "
    \n
  • foo\n
      \n
    • bar\n
        \n
      • baz\n
          \n
        • boo
        • \n
        \n
      • \n
      \n
    • \n
    \n
  • \n
\n", - "markdown": "- foo\n - bar\n - baz\n - boo\n", - "example": 257, - "start_line": 4467 - }, - { - "end_line": 4505, - "section": "List items", - "html": "
    \n
  • foo
  • \n
  • bar
  • \n
  • baz
  • \n
  • boo
  • \n
\n", - "markdown": "- foo\n - bar\n - baz\n - boo\n", - "example": 258, - "start_line": 4493 - }, - { - "end_line": 4521, - "section": "List items", - "html": "
    \n
  1. foo\n
      \n
    • bar
    • \n
    \n
  2. \n
\n", - "markdown": "10) foo\n - bar\n", - "example": 259, - "start_line": 4510 - }, - { - "end_line": 4536, - "section": "List items", - "html": "
    \n
  1. foo
  2. \n
\n
    \n
  • bar
  • \n
\n", - "markdown": "10) foo\n - bar\n", - "example": 260, - "start_line": 4526 - }, - { - "end_line": 4551, - "section": "List items", - "html": "
    \n
  • \n
      \n
    • foo
    • \n
    \n
  • \n
\n", - "markdown": "- - foo\n", - "example": 261, - "start_line": 4541 - }, - { - "end_line": 4568, - "section": "List items", - "html": "
    \n
  1. \n
      \n
    • \n
        \n
      1. foo
      2. \n
      \n
    • \n
    \n
  2. \n
\n", - "markdown": "1. - 2. foo\n", - "example": 262, - "start_line": 4554 - }, - { - "end_line": 4587, - "section": "List items", - "html": "
    \n
  • \n

    Foo

    \n
  • \n
  • \n

    Bar

    \nbaz
  • \n
\n", - "markdown": "- # Foo\n- Bar\n ---\n baz\n", - "example": 263, - "start_line": 4573 - }, - { - "end_line": 4821, - "section": "Lists", - "html": "
    \n
  • foo
  • \n
  • bar
  • \n
\n
    \n
  • baz
  • \n
\n", - "markdown": "- foo\n- bar\n+ baz\n", - "example": 264, - "start_line": 4809 - }, - { - "end_line": 4836, - "section": "Lists", - "html": "
    \n
  1. foo
  2. \n
  3. bar
  4. \n
\n
    \n
  1. baz
  2. \n
\n", - "markdown": "1. foo\n2. bar\n3) baz\n", - "example": 265, - "start_line": 4824 - }, - { - "end_line": 4853, - "section": "Lists", - "html": "

Foo

\n
    \n
  • bar
  • \n
  • baz
  • \n
\n", - "markdown": "Foo\n- bar\n- baz\n", - "example": 266, - "start_line": 4843 - }, - { - "end_line": 4926, - "section": "Lists", - "html": "

The number of windows in my house is\n14. The number of doors is 6.

\n", - "markdown": "The number of windows in my house is\n14. The number of doors is 6.\n", - "example": 267, - "start_line": 4920 - }, - { - "end_line": 4938, - "section": "Lists", - "html": "

The number of windows in my house is

\n
    \n
  1. The number of doors is 6.
  2. \n
\n", - "markdown": "The number of windows in my house is\n1. The number of doors is 6.\n", - "example": 268, - "start_line": 4930 - }, - { - "end_line": 4963, - "section": "Lists", - "html": "
    \n
  • \n

    foo

    \n
  • \n
  • \n

    bar

    \n
  • \n
  • \n

    baz

    \n
  • \n
\n", - "markdown": "- foo\n\n- bar\n\n\n- baz\n", - "example": 269, - "start_line": 4944 - }, - { - "end_line": 4987, - "section": "Lists", - "html": "
    \n
  • foo\n
      \n
    • bar\n
        \n
      • \n

        baz

        \n

        bim

        \n
      • \n
      \n
    • \n
    \n
  • \n
\n", - "markdown": "- foo\n - bar\n - baz\n\n\n bim\n", - "example": 270, - "start_line": 4965 - }, - { - "end_line": 5013, - "section": "Lists", - "html": "
    \n
  • foo
  • \n
  • bar
  • \n
\n\n
    \n
  • baz
  • \n
  • bim
  • \n
\n", - "markdown": "- foo\n- bar\n\n\n\n- baz\n- bim\n", - "example": 271, - "start_line": 4995 - }, - { - "end_line": 5039, - "section": "Lists", - "html": "
    \n
  • \n

    foo

    \n

    notcode

    \n
  • \n
  • \n

    foo

    \n
  • \n
\n\n
code\n
\n", - "markdown": "- foo\n\n notcode\n\n- foo\n\n\n\n code\n", - "example": 272, - "start_line": 5016 - }, - { - "end_line": 5069, - "section": "Lists", - "html": "
    \n
  • a
  • \n
  • b
  • \n
  • c
  • \n
  • d
  • \n
  • e
  • \n
  • f
  • \n
  • g
  • \n
  • h
  • \n
  • i
  • \n
\n", - "markdown": "- a\n - b\n - c\n - d\n - e\n - f\n - g\n - h\n- i\n", - "example": 273, - "start_line": 5047 - }, - { - "end_line": 5090, - "section": "Lists", - "html": "
    \n
  1. \n

    a

    \n
  2. \n
  3. \n

    b

    \n
  4. \n
  5. \n

    c

    \n
  6. \n
\n", - "markdown": "1. a\n\n 2. b\n\n 3. c\n", - "example": 274, - "start_line": 5072 - }, - { - "end_line": 5113, - "section": "Lists", - "html": "
    \n
  • \n

    a

    \n
  • \n
  • \n

    b

    \n
  • \n
  • \n

    c

    \n
  • \n
\n", - "markdown": "- a\n- b\n\n- c\n", - "example": 275, - "start_line": 5096 - }, - { - "end_line": 5133, - "section": "Lists", - "html": "
    \n
  • \n

    a

    \n
  • \n
  • \n
  • \n

    c

    \n
  • \n
\n", - "markdown": "* a\n*\n\n* c\n", - "example": 276, - "start_line": 5118 - }, - { - "end_line": 5159, - "section": "Lists", - "html": "
    \n
  • \n

    a

    \n
  • \n
  • \n

    b

    \n

    c

    \n
  • \n
  • \n

    d

    \n
  • \n
\n", - "markdown": "- a\n- b\n\n c\n- d\n", - "example": 277, - "start_line": 5140 - }, - { - "end_line": 5180, - "section": "Lists", - "html": "
    \n
  • \n

    a

    \n
  • \n
  • \n

    b

    \n
  • \n
  • \n

    d

    \n
  • \n
\n", - "markdown": "- a\n- b\n\n [ref]: /url\n- d\n", - "example": 278, - "start_line": 5162 - }, - { - "end_line": 5204, - "section": "Lists", - "html": "
    \n
  • a
  • \n
  • \n
    b\n\n\n
    \n
  • \n
  • c
  • \n
\n", - "markdown": "- a\n- ```\n b\n\n\n ```\n- c\n", - "example": 279, - "start_line": 5185 - }, - { - "end_line": 5229, - "section": "Lists", - "html": "
    \n
  • a\n
      \n
    • \n

      b

      \n

      c

      \n
    • \n
    \n
  • \n
  • d
  • \n
\n", - "markdown": "- a\n - b\n\n c\n- d\n", - "example": 280, - "start_line": 5211 - }, - { - "end_line": 5249, - "section": "Lists", - "html": "
    \n
  • a\n
    \n

    b

    \n
    \n
  • \n
  • c
  • \n
\n", - "markdown": "* a\n > b\n >\n* c\n", - "example": 281, - "start_line": 5235 - }, - { - "end_line": 5273, - "section": "Lists", - "html": "
    \n
  • a\n
    \n

    b

    \n
    \n
    c\n
    \n
  • \n
  • d
  • \n
\n", - "markdown": "- a\n > b\n ```\n c\n ```\n- d\n", - "example": 282, - "start_line": 5255 - }, - { - "end_line": 5284, - "section": "Lists", - "html": "
    \n
  • a
  • \n
\n", - "markdown": "- a\n", - "example": 283, - "start_line": 5278 - }, - { - "end_line": 5298, - "section": "Lists", - "html": "
    \n
  • a\n
      \n
    • b
    • \n
    \n
  • \n
\n", - "markdown": "- a\n - b\n", - "example": 284, - "start_line": 5287 - }, - { - "end_line": 5318, - "section": "Lists", - "html": "
    \n
  1. \n
    foo\n
    \n

    bar

    \n
  2. \n
\n", - "markdown": "1. ```\n foo\n ```\n\n bar\n", - "example": 285, - "start_line": 5304 - }, - { - "end_line": 5338, - "section": "Lists", - "html": "
    \n
  • \n

    foo

    \n
      \n
    • bar
    • \n
    \n

    baz

    \n
  • \n
\n", - "markdown": "* foo\n * bar\n\n baz\n", - "example": 286, - "start_line": 5323 - }, - { - "end_line": 5366, - "section": "Lists", - "html": "
    \n
  • \n

    a

    \n
      \n
    • b
    • \n
    • c
    • \n
    \n
  • \n
  • \n

    d

    \n
      \n
    • e
    • \n
    • f
    • \n
    \n
  • \n
\n", - "markdown": "- a\n - b\n - c\n\n- d\n - e\n - f\n", - "example": 287, - "start_line": 5341 - }, - { - "end_line": 5379, - "section": "Inlines", - "html": "

hilo`

\n", - "markdown": "`hi`lo`\n", - "example": 288, - "start_line": 5375 - }, - { - "end_line": 5393, - "section": "Backslash escapes", - "html": "

!"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~

\n", - "markdown": "\\!\\\"\\#\\$\\%\\&\\'\\(\\)\\*\\+\\,\\-\\.\\/\\:\\;\\<\\=\\>\\?\\@\\[\\\\\\]\\^\\_\\`\\{\\|\\}\\~\n", - "example": 289, - "start_line": 5389 - }, - { - "end_line": 5403, - "section": "Backslash escapes", - "html": "

\\\t\\A\\a\\ \\3\\φ\\«

\n", - "markdown": "\\\t\\A\\a\\ \\3\\φ\\«\n", - "example": 290, - "start_line": 5399 - }, - { - "end_line": 5427, - "section": "Backslash escapes", - "html": "

*not emphasized*\n<br/> not a tag\n[not a link](/foo)\n`not code`\n1. not a list\n* not a list\n# not a heading\n[foo]: /url "not a reference"

\n", - "markdown": "\\*not emphasized*\n\\
not a tag\n\\[not a link](/foo)\n\\`not code`\n1\\. not a list\n\\* not a list\n\\# not a heading\n\\[foo]: /url \"not a reference\"\n", - "example": 291, - "start_line": 5409 - }, - { - "end_line": 5436, - "section": "Backslash escapes", - "html": "

\\emphasis

\n", - "markdown": "\\\\*emphasis*\n", - "example": 292, - "start_line": 5432 - }, - { - "end_line": 5447, - "section": "Backslash escapes", - "html": "

foo
\nbar

\n", - "markdown": "foo\\\nbar\n", - "example": 293, - "start_line": 5441 - }, - { - "end_line": 5457, - "section": "Backslash escapes", - "html": "

\\[\\`

\n", - "markdown": "`` \\[\\` ``\n", - "example": 294, - "start_line": 5453 - }, - { - "end_line": 5465, - "section": "Backslash escapes", - "html": "
\\[\\]\n
\n", - "markdown": " \\[\\]\n", - "example": 295, - "start_line": 5460 - }, - { - "end_line": 5475, - "section": "Backslash escapes", - "html": "
\\[\\]\n
\n", - "markdown": "~~~\n\\[\\]\n~~~\n", - "example": 296, - "start_line": 5468 - }, - { - "end_line": 5482, - "section": "Backslash escapes", - "html": "

http://example.com?find=\\*

\n", - "markdown": "\n", - "example": 297, - "start_line": 5478 - }, - { - "end_line": 5489, - "section": "Backslash escapes", - "html": "\n", - "markdown": "\n", - "example": 298, - "start_line": 5485 - }, - { - "end_line": 5499, - "section": "Backslash escapes", - "html": "

foo

\n", - "markdown": "[foo](/bar\\* \"ti\\*tle\")\n", - "example": 299, - "start_line": 5495 - }, - { - "end_line": 5508, - "section": "Backslash escapes", - "html": "

foo

\n", - "markdown": "[foo]\n\n[foo]: /bar\\* \"ti\\*tle\"\n", - "example": 300, - "start_line": 5502 - }, - { - "end_line": 5518, - "section": "Backslash escapes", - "html": "
foo\n
\n", - "markdown": "``` foo\\+bar\nfoo\n```\n", - "example": 301, - "start_line": 5511 - }, - { - "end_line": 5546, - "section": "Entity and numeric character references", - "html": "

  & © Æ Ď\n¾ ℋ ⅆ\n∲ ≧̸

\n", - "markdown": "  & © Æ Ď\n¾ ℋ ⅆ\n∲ ≧̸\n", - "example": 302, - "start_line": 5538 - }, - { - "end_line": 5561, - "section": "Entity and numeric character references", - "html": "

# Ӓ Ϡ � �

\n", - "markdown": "# Ӓ Ϡ � �\n", - "example": 303, - "start_line": 5557 - }, - { - "end_line": 5574, - "section": "Entity and numeric character references", - "html": "

" ആ ಫ

\n", - "markdown": "" ആ ಫ\n", - "example": 304, - "start_line": 5570 - }, - { - "end_line": 5585, - "section": "Entity and numeric character references", - "html": "

&nbsp &x; &#; &#x;\n&ThisIsNotDefined; &hi?;

\n", - "markdown": "  &x; &#; &#x;\n&ThisIsNotDefined; &hi?;\n", - "example": 305, - "start_line": 5579 - }, - { - "end_line": 5596, - "section": "Entity and numeric character references", - "html": "

&copy

\n", - "markdown": "©\n", - "example": 306, - "start_line": 5592 - }, - { - "end_line": 5606, - "section": "Entity and numeric character references", - "html": "

&MadeUpEntity;

\n", - "markdown": "&MadeUpEntity;\n", - "example": 307, - "start_line": 5602 - }, - { - "end_line": 5617, - "section": "Entity and numeric character references", - "html": "\n", - "markdown": "\n", - "example": 308, - "start_line": 5613 - }, - { - "end_line": 5624, - "section": "Entity and numeric character references", - "html": "

foo

\n", - "markdown": "[foo](/föö \"föö\")\n", - "example": 309, - "start_line": 5620 - }, - { - "end_line": 5633, - "section": "Entity and numeric character references", - "html": "

foo

\n", - "markdown": "[foo]\n\n[foo]: /föö \"föö\"\n", - "example": 310, - "start_line": 5627 - }, - { - "end_line": 5643, - "section": "Entity and numeric character references", - "html": "
foo\n
\n", - "markdown": "``` föö\nfoo\n```\n", - "example": 311, - "start_line": 5636 - }, - { - "end_line": 5653, - "section": "Entity and numeric character references", - "html": "

f&ouml;&ouml;

\n", - "markdown": "`föö`\n", - "example": 312, - "start_line": 5649 - }, - { - "end_line": 5661, - "section": "Entity and numeric character references", - "html": "
f&ouml;f&ouml;\n
\n", - "markdown": " föfö\n", - "example": 313, - "start_line": 5656 - }, - { - "end_line": 5682, - "section": "Code spans", - "html": "

foo

\n", - "markdown": "`foo`\n", - "example": 314, - "start_line": 5678 - }, - { - "end_line": 5692, - "section": "Code spans", - "html": "

foo ` bar

\n", - "markdown": "`` foo ` bar ``\n", - "example": 315, - "start_line": 5688 - }, - { - "end_line": 5702, - "section": "Code spans", - "html": "

``

\n", - "markdown": "` `` `\n", - "example": 316, - "start_line": 5698 - }, - { - "end_line": 5713, - "section": "Code spans", - "html": "

foo

\n", - "markdown": "``\nfoo\n``\n", - "example": 317, - "start_line": 5707 - }, - { - "end_line": 5724, - "section": "Code spans", - "html": "

foo bar baz

\n", - "markdown": "`foo bar\n baz`\n", - "example": 318, - "start_line": 5719 - }, - { - "end_line": 5734, - "section": "Code spans", - "html": "

a  b

\n", - "markdown": "`a  b`\n", - "example": 319, - "start_line": 5730 - }, - { - "end_line": 5754, - "section": "Code spans", - "html": "

foo `` bar

\n", - "markdown": "`foo `` bar`\n", - "example": 320, - "start_line": 5750 - }, - { - "end_line": 5764, - "section": "Code spans", - "html": "

foo\\bar`

\n", - "markdown": "`foo\\`bar`\n", - "example": 321, - "start_line": 5760 - }, - { - "end_line": 5780, - "section": "Code spans", - "html": "

*foo*

\n", - "markdown": "*foo`*`\n", - "example": 322, - "start_line": 5776 - }, - { - "end_line": 5789, - "section": "Code spans", - "html": "

[not a link](/foo)

\n", - "markdown": "[not a `link](/foo`)\n", - "example": 323, - "start_line": 5785 - }, - { - "end_line": 5799, - "section": "Code spans", - "html": "

<a href="">`

\n", - "markdown": "``\n", - "example": 324, - "start_line": 5795 - }, - { - "end_line": 5808, - "section": "Code spans", - "html": "

`

\n", - "markdown": "`\n", - "example": 325, - "start_line": 5804 - }, - { - "end_line": 5817, - "section": "Code spans", - "html": "

<http://foo.bar.baz>`

\n", - "markdown": "``\n", - "example": 326, - "start_line": 5813 - }, - { - "end_line": 5826, - "section": "Code spans", - "html": "

http://foo.bar.`baz`

\n", - "markdown": "`\n", - "example": 327, - "start_line": 5822 - }, - { - "end_line": 5836, - "section": "Code spans", - "html": "

```foo``

\n", - "markdown": "```foo``\n", - "example": 328, - "start_line": 5832 - }, - { - "end_line": 5843, - "section": "Code spans", - "html": "

`foo

\n", - "markdown": "`foo\n", - "example": 329, - "start_line": 5839 - }, - { - "end_line": 5852, - "section": "Code spans", - "html": "

`foobar

\n", - "markdown": "`foo``bar``\n", - "example": 330, - "start_line": 5848 - }, - { - "end_line": 6065, - "section": "Emphasis and strong emphasis", - "html": "

foo bar

\n", - "markdown": "*foo bar*\n", - "example": 331, - "start_line": 6061 - }, - { - "end_line": 6075, - "section": "Emphasis and strong emphasis", - "html": "

a * foo bar*

\n", - "markdown": "a * foo bar*\n", - "example": 332, - "start_line": 6071 - }, - { - "end_line": 6086, - "section": "Emphasis and strong emphasis", - "html": "

a*"foo"*

\n", - "markdown": "a*\"foo\"*\n", - "example": 333, - "start_line": 6082 - }, - { - "end_line": 6095, - "section": "Emphasis and strong emphasis", - "html": "

* a *

\n", - "markdown": "* a *\n", - "example": 334, - "start_line": 6091 - }, - { - "end_line": 6104, - "section": "Emphasis and strong emphasis", - "html": "

foobar

\n", - "markdown": "foo*bar*\n", - "example": 335, - "start_line": 6100 - }, - { - "end_line": 6111, - "section": "Emphasis and strong emphasis", - "html": "

5678

\n", - "markdown": "5*6*78\n", - "example": 336, - "start_line": 6107 - }, - { - "end_line": 6120, - "section": "Emphasis and strong emphasis", - "html": "

foo bar

\n", - "markdown": "_foo bar_\n", - "example": 337, - "start_line": 6116 - }, - { - "end_line": 6130, - "section": "Emphasis and strong emphasis", - "html": "

_ foo bar_

\n", - "markdown": "_ foo bar_\n", - "example": 338, - "start_line": 6126 - }, - { - "end_line": 6140, - "section": "Emphasis and strong emphasis", - "html": "

a_"foo"_

\n", - "markdown": "a_\"foo\"_\n", - "example": 339, - "start_line": 6136 - }, - { - "end_line": 6149, - "section": "Emphasis and strong emphasis", - "html": "

foo_bar_

\n", - "markdown": "foo_bar_\n", - "example": 340, - "start_line": 6145 - }, - { - "end_line": 6156, - "section": "Emphasis and strong emphasis", - "html": "

5_6_78

\n", - "markdown": "5_6_78\n", - "example": 341, - "start_line": 6152 - }, - { - "end_line": 6163, - "section": "Emphasis and strong emphasis", - "html": "

пристаням_стремятся_

\n", - "markdown": "пристаням_стремятся_\n", - "example": 342, - "start_line": 6159 - }, - { - "end_line": 6173, - "section": "Emphasis and strong emphasis", - "html": "

aa_"bb"_cc

\n", - "markdown": "aa_\"bb\"_cc\n", - "example": 343, - "start_line": 6169 - }, - { - "end_line": 6184, - "section": "Emphasis and strong emphasis", - "html": "

foo-(bar)

\n", - "markdown": "foo-_(bar)_\n", - "example": 344, - "start_line": 6180 - }, - { - "end_line": 6196, - "section": "Emphasis and strong emphasis", - "html": "

_foo*

\n", - "markdown": "_foo*\n", - "example": 345, - "start_line": 6192 - }, - { - "end_line": 6206, - "section": "Emphasis and strong emphasis", - "html": "

*foo bar *

\n", - "markdown": "*foo bar *\n", - "example": 346, - "start_line": 6202 - }, - { - "end_line": 6217, - "section": "Emphasis and strong emphasis", - "html": "

*foo bar\n*

\n", - "markdown": "*foo bar\n*\n", - "example": 347, - "start_line": 6211 - }, - { - "end_line": 6228, - "section": "Emphasis and strong emphasis", - "html": "

*(*foo)

\n", - "markdown": "*(*foo)\n", - "example": 348, - "start_line": 6224 - }, - { - "end_line": 6238, - "section": "Emphasis and strong emphasis", - "html": "

(foo)

\n", - "markdown": "*(*foo*)*\n", - "example": 349, - "start_line": 6234 - }, - { - "end_line": 6247, - "section": "Emphasis and strong emphasis", - "html": "

foobar

\n", - "markdown": "*foo*bar\n", - "example": 350, - "start_line": 6243 - }, - { - "end_line": 6260, - "section": "Emphasis and strong emphasis", - "html": "

_foo bar _

\n", - "markdown": "_foo bar _\n", - "example": 351, - "start_line": 6256 - }, - { - "end_line": 6270, - "section": "Emphasis and strong emphasis", - "html": "

_(_foo)

\n", - "markdown": "_(_foo)\n", - "example": 352, - "start_line": 6266 - }, - { - "end_line": 6279, - "section": "Emphasis and strong emphasis", - "html": "

(foo)

\n", - "markdown": "_(_foo_)_\n", - "example": 353, - "start_line": 6275 - }, - { - "end_line": 6288, - "section": "Emphasis and strong emphasis", - "html": "

_foo_bar

\n", - "markdown": "_foo_bar\n", - "example": 354, - "start_line": 6284 - }, - { - "end_line": 6295, - "section": "Emphasis and strong emphasis", - "html": "

_пристаням_стремятся

\n", - "markdown": "_пристаням_стремятся\n", - "example": 355, - "start_line": 6291 - }, - { - "end_line": 6302, - "section": "Emphasis and strong emphasis", - "html": "

foo_bar_baz

\n", - "markdown": "_foo_bar_baz_\n", - "example": 356, - "start_line": 6298 - }, - { - "end_line": 6313, - "section": "Emphasis and strong emphasis", - "html": "

(bar).

\n", - "markdown": "_(bar)_.\n", - "example": 357, - "start_line": 6309 - }, - { - "end_line": 6322, - "section": "Emphasis and strong emphasis", - "html": "

foo bar

\n", - "markdown": "**foo bar**\n", - "example": 358, - "start_line": 6318 - }, - { - "end_line": 6332, - "section": "Emphasis and strong emphasis", - "html": "

** foo bar**

\n", - "markdown": "** foo bar**\n", - "example": 359, - "start_line": 6328 - }, - { - "end_line": 6343, - "section": "Emphasis and strong emphasis", - "html": "

a**"foo"**

\n", - "markdown": "a**\"foo\"**\n", - "example": 360, - "start_line": 6339 - }, - { - "end_line": 6352, - "section": "Emphasis and strong emphasis", - "html": "

foobar

\n", - "markdown": "foo**bar**\n", - "example": 361, - "start_line": 6348 - }, - { - "end_line": 6361, - "section": "Emphasis and strong emphasis", - "html": "

foo bar

\n", - "markdown": "__foo bar__\n", - "example": 362, - "start_line": 6357 - }, - { - "end_line": 6371, - "section": "Emphasis and strong emphasis", - "html": "

__ foo bar__

\n", - "markdown": "__ foo bar__\n", - "example": 363, - "start_line": 6367 - }, - { - "end_line": 6381, - "section": "Emphasis and strong emphasis", - "html": "

__\nfoo bar__

\n", - "markdown": "__\nfoo bar__\n", - "example": 364, - "start_line": 6375 - }, - { - "end_line": 6391, - "section": "Emphasis and strong emphasis", - "html": "

a__"foo"__

\n", - "markdown": "a__\"foo\"__\n", - "example": 365, - "start_line": 6387 - }, - { - "end_line": 6400, - "section": "Emphasis and strong emphasis", - "html": "

foo__bar__

\n", - "markdown": "foo__bar__\n", - "example": 366, - "start_line": 6396 - }, - { - "end_line": 6407, - "section": "Emphasis and strong emphasis", - "html": "

5__6__78

\n", - "markdown": "5__6__78\n", - "example": 367, - "start_line": 6403 - }, - { - "end_line": 6414, - "section": "Emphasis and strong emphasis", - "html": "

пристаням__стремятся__

\n", - "markdown": "пристаням__стремятся__\n", - "example": 368, - "start_line": 6410 - }, - { - "end_line": 6421, - "section": "Emphasis and strong emphasis", - "html": "

foo, bar, baz

\n", - "markdown": "__foo, __bar__, baz__\n", - "example": 369, - "start_line": 6417 - }, - { - "end_line": 6432, - "section": "Emphasis and strong emphasis", - "html": "

foo-(bar)

\n", - "markdown": "foo-__(bar)__\n", - "example": 370, - "start_line": 6428 - }, - { - "end_line": 6445, - "section": "Emphasis and strong emphasis", - "html": "

**foo bar **

\n", - "markdown": "**foo bar **\n", - "example": 371, - "start_line": 6441 - }, - { - "end_line": 6458, - "section": "Emphasis and strong emphasis", - "html": "

**(**foo)

\n", - "markdown": "**(**foo)\n", - "example": 372, - "start_line": 6454 - }, - { - "end_line": 6468, - "section": "Emphasis and strong emphasis", - "html": "

(foo)

\n", - "markdown": "*(**foo**)*\n", - "example": 373, - "start_line": 6464 - }, - { - "end_line": 6477, - "section": "Emphasis and strong emphasis", - "html": "

Gomphocarpus (Gomphocarpus physocarpus, syn.\nAsclepias physocarpa)

\n", - "markdown": "**Gomphocarpus (*Gomphocarpus physocarpus*, syn.\n*Asclepias physocarpa*)**\n", - "example": 374, - "start_line": 6471 - }, - { - "end_line": 6484, - "section": "Emphasis and strong emphasis", - "html": "

foo "bar" foo

\n", - "markdown": "**foo \"*bar*\" foo**\n", - "example": 375, - "start_line": 6480 - }, - { - "end_line": 6493, - "section": "Emphasis and strong emphasis", - "html": "

foobar

\n", - "markdown": "**foo**bar\n", - "example": 376, - "start_line": 6489 - }, - { - "end_line": 6505, - "section": "Emphasis and strong emphasis", - "html": "

__foo bar __

\n", - "markdown": "__foo bar __\n", - "example": 377, - "start_line": 6501 - }, - { - "end_line": 6515, - "section": "Emphasis and strong emphasis", - "html": "

__(__foo)

\n", - "markdown": "__(__foo)\n", - "example": 378, - "start_line": 6511 - }, - { - "end_line": 6525, - "section": "Emphasis and strong emphasis", - "html": "

(foo)

\n", - "markdown": "_(__foo__)_\n", - "example": 379, - "start_line": 6521 - }, - { - "end_line": 6534, - "section": "Emphasis and strong emphasis", - "html": "

__foo__bar

\n", - "markdown": "__foo__bar\n", - "example": 380, - "start_line": 6530 - }, - { - "end_line": 6541, - "section": "Emphasis and strong emphasis", - "html": "

__пристаням__стремятся

\n", - "markdown": "__пристаням__стремятся\n", - "example": 381, - "start_line": 6537 - }, - { - "end_line": 6548, - "section": "Emphasis and strong emphasis", - "html": "

foo__bar__baz

\n", - "markdown": "__foo__bar__baz__\n", - "example": 382, - "start_line": 6544 - }, - { - "end_line": 6559, - "section": "Emphasis and strong emphasis", - "html": "

(bar).

\n", - "markdown": "__(bar)__.\n", - "example": 383, - "start_line": 6555 - }, - { - "end_line": 6571, - "section": "Emphasis and strong emphasis", - "html": "

foo bar

\n", - "markdown": "*foo [bar](/url)*\n", - "example": 384, - "start_line": 6567 - }, - { - "end_line": 6580, - "section": "Emphasis and strong emphasis", - "html": "

foo\nbar

\n", - "markdown": "*foo\nbar*\n", - "example": 385, - "start_line": 6574 - }, - { - "end_line": 6590, - "section": "Emphasis and strong emphasis", - "html": "

foo bar baz

\n", - "markdown": "_foo __bar__ baz_\n", - "example": 386, - "start_line": 6586 - }, - { - "end_line": 6597, - "section": "Emphasis and strong emphasis", - "html": "

foo bar baz

\n", - "markdown": "_foo _bar_ baz_\n", - "example": 387, - "start_line": 6593 - }, - { - "end_line": 6604, - "section": "Emphasis and strong emphasis", - "html": "

foo bar

\n", - "markdown": "__foo_ bar_\n", - "example": 388, - "start_line": 6600 - }, - { - "end_line": 6611, - "section": "Emphasis and strong emphasis", - "html": "

foo bar

\n", - "markdown": "*foo *bar**\n", - "example": 389, - "start_line": 6607 - }, - { - "end_line": 6618, - "section": "Emphasis and strong emphasis", - "html": "

foo bar baz

\n", - "markdown": "*foo **bar** baz*\n", - "example": 390, - "start_line": 6614 - }, - { - "end_line": 6624, - "section": "Emphasis and strong emphasis", - "html": "

foobarbaz

\n", - "markdown": "*foo**bar**baz*\n", - "example": 391, - "start_line": 6620 - }, - { - "end_line": 6649, - "section": "Emphasis and strong emphasis", - "html": "

foo bar

\n", - "markdown": "***foo** bar*\n", - "example": 392, - "start_line": 6645 - }, - { - "end_line": 6656, - "section": "Emphasis and strong emphasis", - "html": "

foo bar

\n", - "markdown": "*foo **bar***\n", - "example": 393, - "start_line": 6652 - }, - { - "end_line": 6663, - "section": "Emphasis and strong emphasis", - "html": "

foobar

\n", - "markdown": "*foo**bar***\n", - "example": 394, - "start_line": 6659 - }, - { - "end_line": 6672, - "section": "Emphasis and strong emphasis", - "html": "

foo bar baz bim bop

\n", - "markdown": "*foo **bar *baz* bim** bop*\n", - "example": 395, - "start_line": 6668 - }, - { - "end_line": 6679, - "section": "Emphasis and strong emphasis", - "html": "

foo bar

\n", - "markdown": "*foo [*bar*](/url)*\n", - "example": 396, - "start_line": 6675 - }, - { - "end_line": 6688, - "section": "Emphasis and strong emphasis", - "html": "

** is not an empty emphasis

\n", - "markdown": "** is not an empty emphasis\n", - "example": 397, - "start_line": 6684 - }, - { - "end_line": 6695, - "section": "Emphasis and strong emphasis", - "html": "

**** is not an empty strong emphasis

\n", - "markdown": "**** is not an empty strong emphasis\n", - "example": 398, - "start_line": 6691 - }, - { - "end_line": 6708, - "section": "Emphasis and strong emphasis", - "html": "

foo bar

\n", - "markdown": "**foo [bar](/url)**\n", - "example": 399, - "start_line": 6704 - }, - { - "end_line": 6717, - "section": "Emphasis and strong emphasis", - "html": "

foo\nbar

\n", - "markdown": "**foo\nbar**\n", - "example": 400, - "start_line": 6711 - }, - { - "end_line": 6727, - "section": "Emphasis and strong emphasis", - "html": "

foo bar baz

\n", - "markdown": "__foo _bar_ baz__\n", - "example": 401, - "start_line": 6723 - }, - { - "end_line": 6734, - "section": "Emphasis and strong emphasis", - "html": "

foo bar baz

\n", - "markdown": "__foo __bar__ baz__\n", - "example": 402, - "start_line": 6730 - }, - { - "end_line": 6741, - "section": "Emphasis and strong emphasis", - "html": "

foo bar

\n", - "markdown": "____foo__ bar__\n", - "example": 403, - "start_line": 6737 - }, - { - "end_line": 6748, - "section": "Emphasis and strong emphasis", - "html": "

foo bar

\n", - "markdown": "**foo **bar****\n", - "example": 404, - "start_line": 6744 - }, - { - "end_line": 6755, - "section": "Emphasis and strong emphasis", - "html": "

foo bar baz

\n", - "markdown": "**foo *bar* baz**\n", - "example": 405, - "start_line": 6751 - }, - { - "end_line": 6762, - "section": "Emphasis and strong emphasis", - "html": "

foobarbaz

\n", - "markdown": "**foo*bar*baz**\n", - "example": 406, - "start_line": 6758 - }, - { - "end_line": 6769, - "section": "Emphasis and strong emphasis", - "html": "

foo bar

\n", - "markdown": "***foo* bar**\n", - "example": 407, - "start_line": 6765 - }, - { - "end_line": 6776, - "section": "Emphasis and strong emphasis", - "html": "

foo bar

\n", - "markdown": "**foo *bar***\n", - "example": 408, - "start_line": 6772 - }, - { - "end_line": 6787, - "section": "Emphasis and strong emphasis", - "html": "

foo bar baz\nbim bop

\n", - "markdown": "**foo *bar **baz**\nbim* bop**\n", - "example": 409, - "start_line": 6781 - }, - { - "end_line": 6794, - "section": "Emphasis and strong emphasis", - "html": "

foo bar

\n", - "markdown": "**foo [*bar*](/url)**\n", - "example": 410, - "start_line": 6790 - }, - { - "end_line": 6803, - "section": "Emphasis and strong emphasis", - "html": "

__ is not an empty emphasis

\n", - "markdown": "__ is not an empty emphasis\n", - "example": 411, - "start_line": 6799 - }, - { - "end_line": 6810, - "section": "Emphasis and strong emphasis", - "html": "

____ is not an empty strong emphasis

\n", - "markdown": "____ is not an empty strong emphasis\n", - "example": 412, - "start_line": 6806 - }, - { - "end_line": 6820, - "section": "Emphasis and strong emphasis", - "html": "

foo ***

\n", - "markdown": "foo ***\n", - "example": 413, - "start_line": 6816 - }, - { - "end_line": 6827, - "section": "Emphasis and strong emphasis", - "html": "

foo *

\n", - "markdown": "foo *\\**\n", - "example": 414, - "start_line": 6823 - }, - { - "end_line": 6834, - "section": "Emphasis and strong emphasis", - "html": "

foo _

\n", - "markdown": "foo *_*\n", - "example": 415, - "start_line": 6830 - }, - { - "end_line": 6841, - "section": "Emphasis and strong emphasis", - "html": "

foo *****

\n", - "markdown": "foo *****\n", - "example": 416, - "start_line": 6837 - }, - { - "end_line": 6848, - "section": "Emphasis and strong emphasis", - "html": "

foo *

\n", - "markdown": "foo **\\***\n", - "example": 417, - "start_line": 6844 - }, - { - "end_line": 6855, - "section": "Emphasis and strong emphasis", - "html": "

foo _

\n", - "markdown": "foo **_**\n", - "example": 418, - "start_line": 6851 - }, - { - "end_line": 6866, - "section": "Emphasis and strong emphasis", - "html": "

*foo

\n", - "markdown": "**foo*\n", - "example": 419, - "start_line": 6862 - }, - { - "end_line": 6873, - "section": "Emphasis and strong emphasis", - "html": "

foo*

\n", - "markdown": "*foo**\n", - "example": 420, - "start_line": 6869 - }, - { - "end_line": 6880, - "section": "Emphasis and strong emphasis", - "html": "

*foo

\n", - "markdown": "***foo**\n", - "example": 421, - "start_line": 6876 - }, - { - "end_line": 6887, - "section": "Emphasis and strong emphasis", - "html": "

***foo

\n", - "markdown": "****foo*\n", - "example": 422, - "start_line": 6883 - }, - { - "end_line": 6894, - "section": "Emphasis and strong emphasis", - "html": "

foo*

\n", - "markdown": "**foo***\n", - "example": 423, - "start_line": 6890 - }, - { - "end_line": 6901, - "section": "Emphasis and strong emphasis", - "html": "

foo***

\n", - "markdown": "*foo****\n", - "example": 424, - "start_line": 6897 - }, - { - "end_line": 6911, - "section": "Emphasis and strong emphasis", - "html": "

foo ___

\n", - "markdown": "foo ___\n", - "example": 425, - "start_line": 6907 - }, - { - "end_line": 6918, - "section": "Emphasis and strong emphasis", - "html": "

foo _

\n", - "markdown": "foo _\\__\n", - "example": 426, - "start_line": 6914 - }, - { - "end_line": 6925, - "section": "Emphasis and strong emphasis", - "html": "

foo *

\n", - "markdown": "foo _*_\n", - "example": 427, - "start_line": 6921 - }, - { - "end_line": 6932, - "section": "Emphasis and strong emphasis", - "html": "

foo _____

\n", - "markdown": "foo _____\n", - "example": 428, - "start_line": 6928 - }, - { - "end_line": 6939, - "section": "Emphasis and strong emphasis", - "html": "

foo _

\n", - "markdown": "foo __\\___\n", - "example": 429, - "start_line": 6935 - }, - { - "end_line": 6946, - "section": "Emphasis and strong emphasis", - "html": "

foo *

\n", - "markdown": "foo __*__\n", - "example": 430, - "start_line": 6942 - }, - { - "end_line": 6953, - "section": "Emphasis and strong emphasis", - "html": "

_foo

\n", - "markdown": "__foo_\n", - "example": 431, - "start_line": 6949 - }, - { - "end_line": 6964, - "section": "Emphasis and strong emphasis", - "html": "

foo_

\n", - "markdown": "_foo__\n", - "example": 432, - "start_line": 6960 - }, - { - "end_line": 6971, - "section": "Emphasis and strong emphasis", - "html": "

_foo

\n", - "markdown": "___foo__\n", - "example": 433, - "start_line": 6967 - }, - { - "end_line": 6978, - "section": "Emphasis and strong emphasis", - "html": "

___foo

\n", - "markdown": "____foo_\n", - "example": 434, - "start_line": 6974 - }, - { - "end_line": 6985, - "section": "Emphasis and strong emphasis", - "html": "

foo_

\n", - "markdown": "__foo___\n", - "example": 435, - "start_line": 6981 - }, - { - "end_line": 6992, - "section": "Emphasis and strong emphasis", - "html": "

foo___

\n", - "markdown": "_foo____\n", - "example": 436, - "start_line": 6988 - }, - { - "end_line": 7002, - "section": "Emphasis and strong emphasis", - "html": "

foo

\n", - "markdown": "**foo**\n", - "example": 437, - "start_line": 6998 - }, - { - "end_line": 7009, - "section": "Emphasis and strong emphasis", - "html": "

foo

\n", - "markdown": "*_foo_*\n", - "example": 438, - "start_line": 7005 - }, - { - "end_line": 7016, - "section": "Emphasis and strong emphasis", - "html": "

foo

\n", - "markdown": "__foo__\n", - "example": 439, - "start_line": 7012 - }, - { - "end_line": 7023, - "section": "Emphasis and strong emphasis", - "html": "

foo

\n", - "markdown": "_*foo*_\n", - "example": 440, - "start_line": 7019 - }, - { - "end_line": 7033, - "section": "Emphasis and strong emphasis", - "html": "

foo

\n", - "markdown": "****foo****\n", - "example": 441, - "start_line": 7029 - }, - { - "end_line": 7040, - "section": "Emphasis and strong emphasis", - "html": "

foo

\n", - "markdown": "____foo____\n", - "example": 442, - "start_line": 7036 - }, - { - "end_line": 7051, - "section": "Emphasis and strong emphasis", - "html": "

foo

\n", - "markdown": "******foo******\n", - "example": 443, - "start_line": 7047 - }, - { - "end_line": 7060, - "section": "Emphasis and strong emphasis", - "html": "

foo

\n", - "markdown": "***foo***\n", - "example": 444, - "start_line": 7056 - }, - { - "end_line": 7067, - "section": "Emphasis and strong emphasis", - "html": "

foo

\n", - "markdown": "_____foo_____\n", - "example": 445, - "start_line": 7063 - }, - { - "end_line": 7076, - "section": "Emphasis and strong emphasis", - "html": "

foo _bar baz_

\n", - "markdown": "*foo _bar* baz_\n", - "example": 446, - "start_line": 7072 - }, - { - "end_line": 7083, - "section": "Emphasis and strong emphasis", - "html": "

foo bar *baz bim bam

\n", - "markdown": "*foo __bar *baz bim__ bam*\n", - "example": 447, - "start_line": 7079 - }, - { - "end_line": 7092, - "section": "Emphasis and strong emphasis", - "html": "

**foo bar baz

\n", - "markdown": "**foo **bar baz**\n", - "example": 448, - "start_line": 7088 - }, - { - "end_line": 7099, - "section": "Emphasis and strong emphasis", - "html": "

*foo bar baz

\n", - "markdown": "*foo *bar baz*\n", - "example": 449, - "start_line": 7095 - }, - { - "end_line": 7108, - "section": "Emphasis and strong emphasis", - "html": "

*bar*

\n", - "markdown": "*[bar*](/url)\n", - "example": 450, - "start_line": 7104 - }, - { - "end_line": 7115, - "section": "Emphasis and strong emphasis", - "html": "

_foo bar_

\n", - "markdown": "_foo [bar_](/url)\n", - "example": 451, - "start_line": 7111 - }, - { - "end_line": 7122, - "section": "Emphasis and strong emphasis", - "html": "

*

\n", - "markdown": "*\n", - "example": 452, - "start_line": 7118 - }, - { - "end_line": 7129, - "section": "Emphasis and strong emphasis", - "html": "

**

\n", - "markdown": "**\n", - "example": 453, - "start_line": 7125 - }, - { - "end_line": 7136, - "section": "Emphasis and strong emphasis", - "html": "

__

\n", - "markdown": "__\n", - "example": 454, - "start_line": 7132 - }, - { - "end_line": 7143, - "section": "Emphasis and strong emphasis", - "html": "

a *

\n", - "markdown": "*a `*`*\n", - "example": 455, - "start_line": 7139 - }, - { - "end_line": 7150, - "section": "Emphasis and strong emphasis", - "html": "

a _

\n", - "markdown": "_a `_`_\n", - "example": 456, - "start_line": 7146 - }, - { - "end_line": 7157, - "section": "Emphasis and strong emphasis", - "html": "

**ahttp://foo.bar/?q=**

\n", - "markdown": "**a\n", - "example": 457, - "start_line": 7153 - }, - { - "end_line": 7164, - "section": "Emphasis and strong emphasis", - "html": "

__ahttp://foo.bar/?q=__

\n", - "markdown": "__a\n", - "example": 458, - "start_line": 7160 - }, - { - "end_line": 7245, - "section": "Links", - "html": "

link

\n", - "markdown": "[link](/uri \"title\")\n", - "example": 459, - "start_line": 7241 - }, - { - "end_line": 7254, - "section": "Links", - "html": "

link

\n", - "markdown": "[link](/uri)\n", - "example": 460, - "start_line": 7250 - }, - { - "end_line": 7263, - "section": "Links", - "html": "

link

\n", - "markdown": "[link]()\n", - "example": 461, - "start_line": 7259 - }, - { - "end_line": 7270, - "section": "Links", - "html": "

link

\n", - "markdown": "[link](<>)\n", - "example": 462, - "start_line": 7266 - }, - { - "end_line": 7280, - "section": "Links", - "html": "

[link](/my uri)

\n", - "markdown": "[link](/my uri)\n", - "example": 463, - "start_line": 7276 - }, - { - "end_line": 7287, - "section": "Links", - "html": "

[link](</my uri>)

\n", - "markdown": "[link]()\n", - "example": 464, - "start_line": 7283 - }, - { - "end_line": 7296, - "section": "Links", - "html": "

[link](foo\nbar)

\n", - "markdown": "[link](foo\nbar)\n", - "example": 465, - "start_line": 7290 - }, - { - "end_line": 7305, - "section": "Links", - "html": "

[link]()

\n", - "markdown": "[link]()\n", - "example": 466, - "start_line": 7299 - }, - { - "end_line": 7313, - "section": "Links", - "html": "

link

\n", - "markdown": "[link](\\(foo\\))\n", - "example": 467, - "start_line": 7309 - }, - { - "end_line": 7322, - "section": "Links", - "html": "

link

\n", - "markdown": "[link](foo(and(bar)))\n", - "example": 468, - "start_line": 7318 - }, - { - "end_line": 7331, - "section": "Links", - "html": "

link

\n", - "markdown": "[link](foo\\(and\\(bar\\))\n", - "example": 469, - "start_line": 7327 - }, - { - "end_line": 7338, - "section": "Links", - "html": "

link

\n", - "markdown": "[link]()\n", - "example": 470, - "start_line": 7334 - }, - { - "end_line": 7348, - "section": "Links", - "html": "

link

\n", - "markdown": "[link](foo\\)\\:)\n", - "example": 471, - "start_line": 7344 - }, - { - "end_line": 7363, - "section": "Links", - "html": "

link

\n

link

\n

link

\n", - "markdown": "[link](#fragment)\n\n[link](http://example.com#fragment)\n\n[link](http://example.com?foo=3#frag)\n", - "example": 472, - "start_line": 7353 - }, - { - "end_line": 7373, - "section": "Links", - "html": "

link

\n", - "markdown": "[link](foo\\bar)\n", - "example": 473, - "start_line": 7369 - }, - { - "end_line": 7389, - "section": "Links", - "html": "

link

\n", - "markdown": "[link](foo%20bä)\n", - "example": 474, - "start_line": 7385 - }, - { - "end_line": 7400, - "section": "Links", - "html": "

link

\n", - "markdown": "[link](\"title\")\n", - "example": 475, - "start_line": 7396 - }, - { - "end_line": 7413, - "section": "Links", - "html": "

link\nlink\nlink

\n", - "markdown": "[link](/url \"title\")\n[link](/url 'title')\n[link](/url (title))\n", - "example": 476, - "start_line": 7405 - }, - { - "end_line": 7423, - "section": "Links", - "html": "

link

\n", - "markdown": "[link](/url \"title \\\""\")\n", - "example": 477, - "start_line": 7419 - }, - { - "end_line": 7433, - "section": "Links", - "html": "

link

\n", - "markdown": "[link](/url \"title\")\n", - "example": 478, - "start_line": 7429 - }, - { - "end_line": 7442, - "section": "Links", - "html": "

[link](/url "title "and" title")

\n", - "markdown": "[link](/url \"title \"and\" title\")\n", - "example": 479, - "start_line": 7438 - }, - { - "end_line": 7451, - "section": "Links", - "html": "

link

\n", - "markdown": "[link](/url 'title \"and\" title')\n", - "example": 480, - "start_line": 7447 - }, - { - "end_line": 7476, - "section": "Links", - "html": "

link

\n", - "markdown": "[link]( /uri\n \"title\" )\n", - "example": 481, - "start_line": 7471 - }, - { - "end_line": 7486, - "section": "Links", - "html": "

[link] (/uri)

\n", - "markdown": "[link] (/uri)\n", - "example": 482, - "start_line": 7482 - }, - { - "end_line": 7496, - "section": "Links", - "html": "

link [foo [bar]]

\n", - "markdown": "[link [foo [bar]]](/uri)\n", - "example": 483, - "start_line": 7492 - }, - { - "end_line": 7503, - "section": "Links", - "html": "

[link] bar](/uri)

\n", - "markdown": "[link] bar](/uri)\n", - "example": 484, - "start_line": 7499 - }, - { - "end_line": 7510, - "section": "Links", - "html": "

[link bar

\n", - "markdown": "[link [bar](/uri)\n", - "example": 485, - "start_line": 7506 - }, - { - "end_line": 7517, - "section": "Links", - "html": "

link [bar

\n", - "markdown": "[link \\[bar](/uri)\n", - "example": 486, - "start_line": 7513 - }, - { - "end_line": 7526, - "section": "Links", - "html": "

link foo bar #

\n", - "markdown": "[link *foo **bar** `#`*](/uri)\n", - "example": 487, - "start_line": 7522 - }, - { - "end_line": 7533, - "section": "Links", - "html": "

\"moon\"

\n", - "markdown": "[![moon](moon.jpg)](/uri)\n", - "example": 488, - "start_line": 7529 - }, - { - "end_line": 7542, - "section": "Links", - "html": "

[foo bar](/uri)

\n", - "markdown": "[foo [bar](/uri)](/uri)\n", - "example": 489, - "start_line": 7538 - }, - { - "end_line": 7549, - "section": "Links", - "html": "

[foo [bar baz](/uri)](/uri)

\n", - "markdown": "[foo *[bar [baz](/uri)](/uri)*](/uri)\n", - "example": 490, - "start_line": 7545 - }, - { - "end_line": 7556, - "section": "Links", - "html": "

\"[foo](uri2)\"

\n", - "markdown": "![[[foo](uri1)](uri2)](uri3)\n", - "example": 491, - "start_line": 7552 - }, - { - "end_line": 7566, - "section": "Links", - "html": "

*foo*

\n", - "markdown": "*[foo*](/uri)\n", - "example": 492, - "start_line": 7562 - }, - { - "end_line": 7573, - "section": "Links", - "html": "

foo *bar

\n", - "markdown": "[foo *bar](baz*)\n", - "example": 493, - "start_line": 7569 - }, - { - "end_line": 7583, - "section": "Links", - "html": "

foo [bar baz]

\n", - "markdown": "*foo [bar* baz]\n", - "example": 494, - "start_line": 7579 - }, - { - "end_line": 7593, - "section": "Links", - "html": "

[foo

\n", - "markdown": "[foo \n", - "example": 495, - "start_line": 7589 - }, - { - "end_line": 7600, - "section": "Links", - "html": "

[foo](/uri)

\n", - "markdown": "[foo`](/uri)`\n", - "example": 496, - "start_line": 7596 - }, - { - "end_line": 7607, - "section": "Links", - "html": "

[foohttp://example.com/?search=](uri)

\n", - "markdown": "[foo\n", - "example": 497, - "start_line": 7603 - }, - { - "end_line": 7647, - "section": "Links", - "html": "

foo

\n", - "markdown": "[foo][bar]\n\n[bar]: /url \"title\"\n", - "example": 498, - "start_line": 7641 - }, - { - "end_line": 7662, - "section": "Links", - "html": "

link [foo [bar]]

\n", - "markdown": "[link [foo [bar]]][ref]\n\n[ref]: /uri\n", - "example": 499, - "start_line": 7656 - }, - { - "end_line": 7671, - "section": "Links", - "html": "

link [bar

\n", - "markdown": "[link \\[bar][ref]\n\n[ref]: /uri\n", - "example": 500, - "start_line": 7665 - }, - { - "end_line": 7682, - "section": "Links", - "html": "

link foo bar #

\n", - "markdown": "[link *foo **bar** `#`*][ref]\n\n[ref]: /uri\n", - "example": 501, - "start_line": 7676 - }, - { - "end_line": 7691, - "section": "Links", - "html": "

\"moon\"

\n", - "markdown": "[![moon](moon.jpg)][ref]\n\n[ref]: /uri\n", - "example": 502, - "start_line": 7685 - }, - { - "end_line": 7702, - "section": "Links", - "html": "

[foo bar]ref

\n", - "markdown": "[foo [bar](/uri)][ref]\n\n[ref]: /uri\n", - "example": 503, - "start_line": 7696 - }, - { - "end_line": 7711, - "section": "Links", - "html": "

[foo bar baz]ref

\n", - "markdown": "[foo *bar [baz][ref]*][ref]\n\n[ref]: /uri\n", - "example": 504, - "start_line": 7705 - }, - { - "end_line": 7726, - "section": "Links", - "html": "

*foo*

\n", - "markdown": "*[foo*][ref]\n\n[ref]: /uri\n", - "example": 505, - "start_line": 7720 - }, - { - "end_line": 7735, - "section": "Links", - "html": "

foo *bar

\n", - "markdown": "[foo *bar][ref]\n\n[ref]: /uri\n", - "example": 506, - "start_line": 7729 - }, - { - "end_line": 7747, - "section": "Links", - "html": "

[foo

\n", - "markdown": "[foo \n\n[ref]: /uri\n", - "example": 507, - "start_line": 7741 - }, - { - "end_line": 7756, - "section": "Links", - "html": "

[foo][ref]

\n", - "markdown": "[foo`][ref]`\n\n[ref]: /uri\n", - "example": 508, - "start_line": 7750 - }, - { - "end_line": 7765, - "section": "Links", - "html": "

[foohttp://example.com/?search=][ref]

\n", - "markdown": "[foo\n\n[ref]: /uri\n", - "example": 509, - "start_line": 7759 - }, - { - "end_line": 7776, - "section": "Links", - "html": "

foo

\n", - "markdown": "[foo][BaR]\n\n[bar]: /url \"title\"\n", - "example": 510, - "start_line": 7770 - }, - { - "end_line": 7787, - "section": "Links", - "html": "

Толпой is a Russian word.

\n", - "markdown": "[Толпой][Толпой] is a Russian word.\n\n[ТОЛПОЙ]: /url\n", - "example": 511, - "start_line": 7781 - }, - { - "end_line": 7800, - "section": "Links", - "html": "

Baz

\n", - "markdown": "[Foo\n bar]: /url\n\n[Baz][Foo bar]\n", - "example": 512, - "start_line": 7793 - }, - { - "end_line": 7812, - "section": "Links", - "html": "

[foo] bar

\n", - "markdown": "[foo] [bar]\n\n[bar]: /url \"title\"\n", - "example": 513, - "start_line": 7806 - }, - { - "end_line": 7823, - "section": "Links", - "html": "

[foo]\nbar

\n", - "markdown": "[foo]\n[bar]\n\n[bar]: /url \"title\"\n", - "example": 514, - "start_line": 7815 - }, - { - "end_line": 7864, - "section": "Links", - "html": "

bar

\n", - "markdown": "[foo]: /url1\n\n[foo]: /url2\n\n[bar][foo]\n", - "example": 515, - "start_line": 7856 - }, - { - "end_line": 7877, - "section": "Links", - "html": "

[bar][foo!]

\n", - "markdown": "[bar][foo\\!]\n\n[foo!]: /url\n", - "example": 516, - "start_line": 7871 - }, - { - "end_line": 7890, - "section": "Links", - "html": "

[foo][ref[]

\n

[ref[]: /uri

\n", - "markdown": "[foo][ref[]\n\n[ref[]: /uri\n", - "example": 517, - "start_line": 7883 - }, - { - "end_line": 7900, - "section": "Links", - "html": "

[foo][ref[bar]]

\n

[ref[bar]]: /uri

\n", - "markdown": "[foo][ref[bar]]\n\n[ref[bar]]: /uri\n", - "example": 518, - "start_line": 7893 - }, - { - "end_line": 7910, - "section": "Links", - "html": "

[[[foo]]]

\n

[[[foo]]]: /url

\n", - "markdown": "[[[foo]]]\n\n[[[foo]]]: /url\n", - "example": 519, - "start_line": 7903 - }, - { - "end_line": 7919, - "section": "Links", - "html": "

foo

\n", - "markdown": "[foo][ref\\[]\n\n[ref\\[]: /uri\n", - "example": 520, - "start_line": 7913 - }, - { - "end_line": 7930, - "section": "Links", - "html": "

bar\\

\n", - "markdown": "[bar\\\\]: /uri\n\n[bar\\\\]\n", - "example": 521, - "start_line": 7924 - }, - { - "end_line": 7942, - "section": "Links", - "html": "

[]

\n

[]: /uri

\n", - "markdown": "[]\n\n[]: /uri\n", - "example": 522, - "start_line": 7935 - }, - { - "end_line": 7956, - "section": "Links", - "html": "

[\n]

\n

[\n]: /uri

\n", - "markdown": "[\n ]\n\n[\n ]: /uri\n", - "example": 523, - "start_line": 7945 - }, - { - "end_line": 7974, - "section": "Links", - "html": "

foo

\n", - "markdown": "[foo][]\n\n[foo]: /url \"title\"\n", - "example": 524, - "start_line": 7968 - }, - { - "end_line": 7983, - "section": "Links", - "html": "

foo bar

\n", - "markdown": "[*foo* bar][]\n\n[*foo* bar]: /url \"title\"\n", - "example": 525, - "start_line": 7977 - }, - { - "end_line": 7994, - "section": "Links", - "html": "

Foo

\n", - "markdown": "[Foo][]\n\n[foo]: /url \"title\"\n", - "example": 526, - "start_line": 7988 - }, - { - "end_line": 8009, - "section": "Links", - "html": "

foo\n[]

\n", - "markdown": "[foo] \n[]\n\n[foo]: /url \"title\"\n", - "example": 527, - "start_line": 8001 - }, - { - "end_line": 8027, - "section": "Links", - "html": "

foo

\n", - "markdown": "[foo]\n\n[foo]: /url \"title\"\n", - "example": 528, - "start_line": 8021 - }, - { - "end_line": 8036, - "section": "Links", - "html": "

foo bar

\n", - "markdown": "[*foo* bar]\n\n[*foo* bar]: /url \"title\"\n", - "example": 529, - "start_line": 8030 - }, - { - "end_line": 8045, - "section": "Links", - "html": "

[foo bar]

\n", - "markdown": "[[*foo* bar]]\n\n[*foo* bar]: /url \"title\"\n", - "example": 530, - "start_line": 8039 - }, - { - "end_line": 8054, - "section": "Links", - "html": "

[[bar foo

\n", - "markdown": "[[bar [foo]\n\n[foo]: /url\n", - "example": 531, - "start_line": 8048 - }, - { - "end_line": 8065, - "section": "Links", - "html": "

Foo

\n", - "markdown": "[Foo]\n\n[foo]: /url \"title\"\n", - "example": 532, - "start_line": 8059 - }, - { - "end_line": 8076, - "section": "Links", - "html": "

foo bar

\n", - "markdown": "[foo] bar\n\n[foo]: /url\n", - "example": 533, - "start_line": 8070 - }, - { - "end_line": 8088, - "section": "Links", - "html": "

[foo]

\n", - "markdown": "\\[foo]\n\n[foo]: /url \"title\"\n", - "example": 534, - "start_line": 8082 - }, - { - "end_line": 8100, - "section": "Links", - "html": "

*foo*

\n", - "markdown": "[foo*]: /url\n\n*[foo*]\n", - "example": 535, - "start_line": 8094 - }, - { - "end_line": 8113, - "section": "Links", - "html": "

foo

\n", - "markdown": "[foo][bar]\n\n[foo]: /url1\n[bar]: /url2\n", - "example": 536, - "start_line": 8106 - }, - { - "end_line": 8121, - "section": "Links", - "html": "

foo

\n", - "markdown": "[foo][]\n\n[foo]: /url1\n", - "example": 537, - "start_line": 8115 - }, - { - "end_line": 8131, - "section": "Links", - "html": "

foo

\n", - "markdown": "[foo]()\n\n[foo]: /url1\n", - "example": 538, - "start_line": 8125 - }, - { - "end_line": 8139, - "section": "Links", - "html": "

foo(not a link)

\n", - "markdown": "[foo](not a link)\n\n[foo]: /url1\n", - "example": 539, - "start_line": 8133 - }, - { - "end_line": 8150, - "section": "Links", - "html": "

[foo]bar

\n", - "markdown": "[foo][bar][baz]\n\n[baz]: /url\n", - "example": 540, - "start_line": 8144 - }, - { - "end_line": 8163, - "section": "Links", - "html": "

foobaz

\n", - "markdown": "[foo][bar][baz]\n\n[baz]: /url1\n[bar]: /url2\n", - "example": 541, - "start_line": 8156 - }, - { - "end_line": 8176, - "section": "Links", - "html": "

[foo]bar

\n", - "markdown": "[foo][bar][baz]\n\n[baz]: /url1\n[foo]: /url2\n", - "example": 542, - "start_line": 8169 - }, - { - "end_line": 8196, - "section": "Images", - "html": "

\"foo\"

\n", - "markdown": "![foo](/url \"title\")\n", - "example": 543, - "start_line": 8192 - }, - { - "end_line": 8205, - "section": "Images", - "html": "

\"foo

\n", - "markdown": "![foo *bar*]\n\n[foo *bar*]: train.jpg \"train & tracks\"\n", - "example": 544, - "start_line": 8199 - }, - { - "end_line": 8212, - "section": "Images", - "html": "

\"foo

\n", - "markdown": "![foo ![bar](/url)](/url2)\n", - "example": 545, - "start_line": 8208 - }, - { - "end_line": 8219, - "section": "Images", - "html": "

\"foo

\n", - "markdown": "![foo [bar](/url)](/url2)\n", - "example": 546, - "start_line": 8215 - }, - { - "end_line": 8235, - "section": "Images", - "html": "

\"foo

\n", - "markdown": "![foo *bar*][]\n\n[foo *bar*]: train.jpg \"train & tracks\"\n", - "example": 547, - "start_line": 8229 - }, - { - "end_line": 8244, - "section": "Images", - "html": "

\"foo

\n", - "markdown": "![foo *bar*][foobar]\n\n[FOOBAR]: train.jpg \"train & tracks\"\n", - "example": 548, - "start_line": 8238 - }, - { - "end_line": 8251, - "section": "Images", - "html": "

\"foo\"

\n", - "markdown": "![foo](train.jpg)\n", - "example": 549, - "start_line": 8247 - }, - { - "end_line": 8258, - "section": "Images", - "html": "

My \"foo

\n", - "markdown": "My ![foo bar](/path/to/train.jpg \"title\" )\n", - "example": 550, - "start_line": 8254 - }, - { - "end_line": 8265, - "section": "Images", - "html": "

\"foo\"

\n", - "markdown": "![foo]()\n", - "example": 551, - "start_line": 8261 - }, - { - "end_line": 8272, - "section": "Images", - "html": "

\"\"

\n", - "markdown": "![](/url)\n", - "example": 552, - "start_line": 8268 - }, - { - "end_line": 8283, - "section": "Images", - "html": "

\"foo\"

\n", - "markdown": "![foo][bar]\n\n[bar]: /url\n", - "example": 553, - "start_line": 8277 - }, - { - "end_line": 8292, - "section": "Images", - "html": "

\"foo\"

\n", - "markdown": "![foo][bar]\n\n[BAR]: /url\n", - "example": 554, - "start_line": 8286 - }, - { - "end_line": 8303, - "section": "Images", - "html": "

\"foo\"

\n", - "markdown": "![foo][]\n\n[foo]: /url \"title\"\n", - "example": 555, - "start_line": 8297 - }, - { - "end_line": 8312, - "section": "Images", - "html": "

\"foo

\n", - "markdown": "![*foo* bar][]\n\n[*foo* bar]: /url \"title\"\n", - "example": 556, - "start_line": 8306 - }, - { - "end_line": 8323, - "section": "Images", - "html": "

\"Foo\"

\n", - "markdown": "![Foo][]\n\n[foo]: /url \"title\"\n", - "example": 557, - "start_line": 8317 - }, - { - "end_line": 8337, - "section": "Images", - "html": "

\"foo\"\n[]

\n", - "markdown": "![foo] \n[]\n\n[foo]: /url \"title\"\n", - "example": 558, - "start_line": 8329 - }, - { - "end_line": 8348, - "section": "Images", - "html": "

\"foo\"

\n", - "markdown": "![foo]\n\n[foo]: /url \"title\"\n", - "example": 559, - "start_line": 8342 - }, - { - "end_line": 8357, - "section": "Images", - "html": "

\"foo

\n", - "markdown": "![*foo* bar]\n\n[*foo* bar]: /url \"title\"\n", - "example": 560, - "start_line": 8351 - }, - { - "end_line": 8369, - "section": "Images", - "html": "

![[foo]]

\n

[[foo]]: /url "title"

\n", - "markdown": "![[foo]]\n\n[[foo]]: /url \"title\"\n", - "example": 561, - "start_line": 8362 - }, - { - "end_line": 8380, - "section": "Images", - "html": "

\"Foo\"

\n", - "markdown": "![Foo]\n\n[foo]: /url \"title\"\n", - "example": 562, - "start_line": 8374 - }, - { - "end_line": 8392, - "section": "Images", - "html": "

![foo]

\n", - "markdown": "!\\[foo]\n\n[foo]: /url \"title\"\n", - "example": 563, - "start_line": 8386 - }, - { - "end_line": 8404, - "section": "Images", - "html": "

!foo

\n", - "markdown": "\\![foo]\n\n[foo]: /url \"title\"\n", - "example": 564, - "start_line": 8398 - }, - { - "end_line": 8435, - "section": "Autolinks", - "html": "

http://foo.bar.baz

\n", - "markdown": "\n", - "example": 565, - "start_line": 8431 - }, - { - "end_line": 8442, - "section": "Autolinks", - "html": "

http://foo.bar.baz/test?q=hello&id=22&boolean

\n", - "markdown": "\n", - "example": 566, - "start_line": 8438 - }, - { - "end_line": 8449, - "section": "Autolinks", - "html": "

irc://foo.bar:2233/baz

\n", - "markdown": "\n", - "example": 567, - "start_line": 8445 - }, - { - "end_line": 8458, - "section": "Autolinks", - "html": "

MAILTO:FOO@BAR.BAZ

\n", - "markdown": "\n", - "example": 568, - "start_line": 8454 - }, - { - "end_line": 8470, - "section": "Autolinks", - "html": "

a+b+c:d

\n", - "markdown": "\n", - "example": 569, - "start_line": 8466 - }, - { - "end_line": 8477, - "section": "Autolinks", - "html": "

made-up-scheme://foo,bar

\n", - "markdown": "\n", - "example": 570, - "start_line": 8473 - }, - { - "end_line": 8484, - "section": "Autolinks", - "html": "

http://../

\n", - "markdown": "\n", - "example": 571, - "start_line": 8480 - }, - { - "end_line": 8491, - "section": "Autolinks", - "html": "

localhost:5001/foo

\n", - "markdown": "\n", - "example": 572, - "start_line": 8487 - }, - { - "end_line": 8500, - "section": "Autolinks", - "html": "

<http://foo.bar/baz bim>

\n", - "markdown": "\n", - "example": 573, - "start_line": 8496 - }, - { - "end_line": 8509, - "section": "Autolinks", - "html": "

http://example.com/\\[\\

\n", - "markdown": "\n", - "example": 574, - "start_line": 8505 - }, - { - "end_line": 8531, - "section": "Autolinks", - "html": "

foo@bar.example.com

\n", - "markdown": "\n", - "example": 575, - "start_line": 8527 - }, - { - "end_line": 8538, - "section": "Autolinks", - "html": "

foo+special@Bar.baz-bar0.com

\n", - "markdown": "\n", - "example": 576, - "start_line": 8534 - }, - { - "end_line": 8547, - "section": "Autolinks", - "html": "

<foo+@bar.example.com>

\n", - "markdown": "\n", - "example": 577, - "start_line": 8543 - }, - { - "end_line": 8556, - "section": "Autolinks", - "html": "

<>

\n", - "markdown": "<>\n", - "example": 578, - "start_line": 8552 - }, - { - "end_line": 8563, - "section": "Autolinks", - "html": "

< http://foo.bar >

\n", - "markdown": "< http://foo.bar >\n", - "example": 579, - "start_line": 8559 - }, - { - "end_line": 8570, - "section": "Autolinks", - "html": "

<m:abc>

\n", - "markdown": "\n", - "example": 580, - "start_line": 8566 - }, - { - "end_line": 8577, - "section": "Autolinks", - "html": "

<foo.bar.baz>

\n", - "markdown": "\n", - "example": 581, - "start_line": 8573 - }, - { - "end_line": 8584, - "section": "Autolinks", - "html": "

http://example.com

\n", - "markdown": "http://example.com\n", - "example": 582, - "start_line": 8580 - }, - { - "end_line": 8591, - "section": "Autolinks", - "html": "

foo@bar.example.com

\n", - "markdown": "foo@bar.example.com\n", - "example": 583, - "start_line": 8587 - }, - { - "end_line": 8673, - "section": "Raw HTML", - "html": "

\n", - "markdown": "\n", - "example": 584, - "start_line": 8669 - }, - { - "end_line": 8682, - "section": "Raw HTML", - "html": "

\n", - "markdown": "\n", - "example": 585, - "start_line": 8678 - }, - { - "end_line": 8693, - "section": "Raw HTML", - "html": "

\n", - "markdown": "\n", - "example": 586, - "start_line": 8687 - }, - { - "end_line": 8704, - "section": "Raw HTML", - "html": "

\n", - "markdown": "\n", - "example": 587, - "start_line": 8698 - }, - { - "end_line": 8713, - "section": "Raw HTML", - "html": "

Foo

\n", - "markdown": "Foo \n", - "example": 588, - "start_line": 8709 - }, - { - "end_line": 8722, - "section": "Raw HTML", - "html": "

<33> <__>

\n", - "markdown": "<33> <__>\n", - "example": 589, - "start_line": 8718 - }, - { - "end_line": 8731, - "section": "Raw HTML", - "html": "

<a h*#ref="hi">

\n", - "markdown": "
\n", - "example": 590, - "start_line": 8727 - }, - { - "end_line": 8740, - "section": "Raw HTML", - "html": "

<a href="hi'> <a href=hi'>

\n", - "markdown": "
\n", - "example": 591, - "start_line": 8736 - }, - { - "end_line": 8751, - "section": "Raw HTML", - "html": "

< a><\nfoo><bar/ >

\n", - "markdown": "< a><\nfoo>\n", - "example": 592, - "start_line": 8745 - }, - { - "end_line": 8760, - "section": "Raw HTML", - "html": "

<a href='bar'title=title>

\n", - "markdown": "
\n", - "example": 593, - "start_line": 8756 - }, - { - "end_line": 8769, - "section": "Raw HTML", - "html": "

\n", - "markdown": "\n", - "example": 594, - "start_line": 8765 - }, - { - "end_line": 8778, - "section": "Raw HTML", - "html": "

</a href="foo">

\n", - "markdown": "\n", - "example": 595, - "start_line": 8774 - }, - { - "end_line": 8789, - "section": "Raw HTML", - "html": "

foo

\n", - "markdown": "foo \n", - "example": 596, - "start_line": 8783 - }, - { - "end_line": 8796, - "section": "Raw HTML", - "html": "

foo <!-- not a comment -- two hyphens -->

\n", - "markdown": "foo \n", - "example": 597, - "start_line": 8792 - }, - { - "end_line": 8808, - "section": "Raw HTML", - "html": "

foo <!--> foo -->

\n

foo <!-- foo--->

\n", - "markdown": "foo foo -->\n\nfoo \n", - "example": 598, - "start_line": 8801 - }, - { - "end_line": 8817, - "section": "Raw HTML", - "html": "

foo

\n", - "markdown": "foo \n", - "example": 599, - "start_line": 8813 - }, - { - "end_line": 8826, - "section": "Raw HTML", - "html": "

foo

\n", - "markdown": "foo \n", - "example": 600, - "start_line": 8822 - }, - { - "end_line": 8835, - "section": "Raw HTML", - "html": "

foo &<]]>

\n", - "markdown": "foo &<]]>\n", - "example": 601, - "start_line": 8831 - }, - { - "end_line": 8845, - "section": "Raw HTML", - "html": "

foo

\n", - "markdown": "foo \n", - "example": 602, - "start_line": 8841 - }, - { - "end_line": 8854, - "section": "Raw HTML", - "html": "

foo

\n", - "markdown": "foo \n", - "example": 603, - "start_line": 8850 - }, - { - "end_line": 8861, - "section": "Raw HTML", - "html": "

<a href=""">

\n", - "markdown": "
\n", - "example": 604, - "start_line": 8857 - }, - { - "end_line": 8877, - "section": "Hard line breaks", - "html": "

foo
\nbaz

\n", - "markdown": "foo \nbaz\n", - "example": 605, - "start_line": 8871 - }, - { - "end_line": 8889, - "section": "Hard line breaks", - "html": "

foo
\nbaz

\n", - "markdown": "foo\\\nbaz\n", - "example": 606, - "start_line": 8883 - }, - { - "end_line": 8900, - "section": "Hard line breaks", - "html": "

foo
\nbaz

\n", - "markdown": "foo \nbaz\n", - "example": 607, - "start_line": 8894 - }, - { - "end_line": 8911, - "section": "Hard line breaks", - "html": "

foo
\nbar

\n", - "markdown": "foo \n bar\n", - "example": 608, - "start_line": 8905 - }, - { - "end_line": 8920, - "section": "Hard line breaks", - "html": "

foo
\nbar

\n", - "markdown": "foo\\\n bar\n", - "example": 609, - "start_line": 8914 - }, - { - "end_line": 8932, - "section": "Hard line breaks", - "html": "

foo
\nbar

\n", - "markdown": "*foo \nbar*\n", - "example": 610, - "start_line": 8926 - }, - { - "end_line": 8941, - "section": "Hard line breaks", - "html": "

foo
\nbar

\n", - "markdown": "*foo\\\nbar*\n", - "example": 611, - "start_line": 8935 - }, - { - "end_line": 8951, - "section": "Hard line breaks", - "html": "

code span

\n", - "markdown": "`code \nspan`\n", - "example": 612, - "start_line": 8946 - }, - { - "end_line": 8959, - "section": "Hard line breaks", - "html": "

code\\ span

\n", - "markdown": "`code\\\nspan`\n", - "example": 613, - "start_line": 8954 - }, - { - "end_line": 8970, - "section": "Hard line breaks", - "html": "

\n", - "markdown": "\n", - "example": 614, - "start_line": 8964 - }, - { - "end_line": 8979, - "section": "Hard line breaks", - "html": "

\n", - "markdown": "\n", - "example": 615, - "start_line": 8973 - }, - { - "end_line": 8990, - "section": "Hard line breaks", - "html": "

foo\\

\n", - "markdown": "foo\\\n", - "example": 616, - "start_line": 8986 - }, - { - "end_line": 8997, - "section": "Hard line breaks", - "html": "

foo

\n", - "markdown": "foo \n", - "example": 617, - "start_line": 8993 - }, - { - "end_line": 9004, - "section": "Hard line breaks", - "html": "

foo\\

\n", - "markdown": "### foo\\\n", - "example": 618, - "start_line": 9000 - }, - { - "end_line": 9011, - "section": "Hard line breaks", - "html": "

foo

\n", - "markdown": "### foo \n", - "example": 619, - "start_line": 9007 - }, - { - "end_line": 9028, - "section": "Soft line breaks", - "html": "

foo\nbaz

\n", - "markdown": "foo\nbaz\n", - "example": 620, - "start_line": 9022 - }, - { - "end_line": 9040, - "section": "Soft line breaks", - "html": "

foo\nbaz

\n", - "markdown": "foo \n baz\n", - "example": 621, - "start_line": 9034 - }, - { - "end_line": 9058, - "section": "Textual content", - "html": "

hello $.;'there

\n", - "markdown": "hello $.;'there\n", - "example": 622, - "start_line": 9054 - }, - { - "end_line": 9065, - "section": "Textual content", - "html": "

Foo χρῆν

\n", - "markdown": "Foo χρῆν\n", - "example": 623, - "start_line": 9061 - }, - { - "end_line": 9074, - "section": "Textual content", - "html": "

Multiple spaces

\n", - "markdown": "Multiple spaces\n", - "example": 624, - "start_line": 9070 - } -] \ No newline at end of file diff --git a/test/fixtures/index.js b/test/fixtures/index.js index fce44e28a..72524cb54 100644 --- a/test/fixtures/index.js +++ b/test/fixtures/index.js @@ -3,78 +3,56 @@ var fs = require('fs') var path = require('path') var camelcase = require('camelcase') -var clone = require('clone') -var parseDefaults = require('../../packages/remark-parse/lib/defaults.js') -var stringifyDefaults = require('../../packages/remark-stringify/lib/defaults.js') - -var own = {}.hasOwnProperty -var read = fs.readFileSync -var exists = fs.existsSync -var stat = fs.statSync -var join = path.join +// See var defaults = { - parse: parseDefaults, - stringify: stringifyDefaults -} - -var typeMap = { - true: 'all', - false: 'physical' + bullet: '*', + closeAtx: false, + emphasis: '*', + fence: '`', + fences: false, + incrementListMarker: true, + listItemIndent: 'tab', + quote: '"', + rule: '*', + ruleSpaces: true, + ruleRepetition: 3, + setext: false, + strong: '*', + tightDefinitions: false } -var TYPE = typeMap[Boolean(process.env.TEST_EXTENDED)] - -// Defaults. -var keys = Object.keys(defaults.parse) -keys.splice(keys.indexOf('blocks'), 1) - -// Create a single source with all parse options turned to their default values. -var sources = [keys.join('.')] - -// Create all possible `parse` values. -keys.forEach(function (key) { - sources = [].concat.apply( - sources, - sources.map(function (source) { - return source - .split('.') - .map(function (subkey) { - return subkey === key ? 'no' + key : subkey - }) - .join('.') - }) - ) -}) - -// Parse a `string` `value` into a javascript value. -function augment(key, value) { - if (!value) { - value = key.slice(0, 2) !== 'no' - - if (!value) { - key = key.slice(2) +module.exports = fs + .readdirSync(path.join(__dirname, 'input')) + .filter(function (filepath) { + return filepath.indexOf('.') !== 0 + }) + .map(function (basename) { + var stem = path.basename(basename, path.extname(basename)) + var settings = parseOptions(stem.replace(/-asterisk-/g, '*')) + var input = String(fs.readFileSync(path.join(__dirname, 'input', basename))) + var treePath = path.join(__dirname, 'tree', stem + '.json') + var tree + + if (fs.existsSync(treePath)) { + tree = JSON.parse(fs.readFileSync(treePath)) } - } - key = camelcase(key) - - if (own.call(augment, key)) { - value = augment[key](value) - } - - return {key: key, value: value} -} - -augment.ruleRepetition = Number + return { + name: basename, + input: input, + tree: tree, + stringify: settings.stringify, + output: settings.output + } + }) // Parse options from a filename. function parseOptions(name) { var index = -1 var parts = name.split('.') - var results = [] var length = parts.length - var options = clone(defaults) + var options = {stringify: Object.assign({}, defaults)} var part var augmented var key @@ -88,162 +66,29 @@ function parseOptions(name) { if (key === 'output') { options[key] = value - } else { - if (key in defaults.parse && value !== options.parse[key]) { - options.parse[key] = value - - results.push(parts[index]) - } - - if (key in defaults.stringify && value !== options.stringify[key]) { - options.stringify[key] = value - - // Protect common options from `parse` and `stringify` from - // appearing twice. - if (results.indexOf(parts[index]) < 0) { - results.push(parts[index]) - } - } + } else if (key in defaults && value !== options.stringify[key]) { + options.stringify[key] = value } } - options.source = results.join('.') - return options } -// Cache all possible options. -// -// Virtual options are generated when no fixtures exist, whereas physical -// options are only used whn a file exists. -var virtual = {} -var physical = {} -var all = {} - -sources.forEach(function (source) { - var options = parseOptions(source) - - source = options.source - - // `position` and `blocks` are such a tiny feature, but result in lots of - // duplicate fixtures, that I've ignored it for the virtual options. - if ( - options.parse.position !== defaults.parse.position || - options.parse.blocks !== defaults.parse.blocks - ) { - physical[source] = options.parse - } else { - virtual[source] = options.parse - } - - all[source] = options.parse -}) - -// Get the difference between two objects. Greatly simplified because `options` -// and `compate` consist solely of booleans, and all properties exist in both. -function difference(options, compare) { - var count = 0 - - Object.keys(options).forEach(function (key) { - if (options[key] !== compare[key]) { - count++ - } - }) - - return count -} - -// Find the closest fixture for a `source` in all `fixtures`. Returns a key of -// a fixture. -function resolveFixture(source, fixtures, options) { - var minimum = Infinity - var resolved - var offset - - Object.keys(fixtures).forEach(function (key) { - offset = difference(options[source], options[key]) +// Parse a `string` `value` into a javascript value. +function augment(key, value) { + if (!value) { + value = key.slice(0, 2) !== 'no' - if (offset < minimum) { - minimum = offset - resolved = key + if (!value) { + key = key.slice(2) } - }) - - return resolved -} + } -// Find the closest fixture for all `options`. Returns an object mapping -// options sources to fixture names. -function resolveFixtures(fixtures, options) { - var resolved = {} + key = camelcase(key) - Object.keys(options).forEach(function (source) { - resolved[source] = resolveFixture(source, fixtures, options) - }) + if (key === 'ruleRepetition') { + value = Number(value) + } - return resolved + return {key: key, value: value} } - -// Gather fixtures. -var tests = fs - .readdirSync(join(__dirname, 'input')) - .filter(function (filepath) { - return filepath.indexOf('.') !== 0 - }) - .map(function (filepath) { - var filename = filepath.split('.').slice(0, -1) - var name = filename.join('.').replace(/-asterisk-/g, '*') - var settings = parseOptions(name) - var input = read(join(__dirname, 'input', filepath), 'utf-8') - var fixtures = {} - var possibilities = {} - var resolved - - Object.keys(all).forEach(function (source) { - var treename - var tree - - treename = [filename.join('.'), source ? '.' + source : '', '.json'].join( - '' - ) - - tree = join(__dirname, 'tree', treename) - - if (exists(tree)) { - fixtures[source] = JSON.parse(read(tree, 'utf-8')) - - possibilities[source] = all[source] - } else if ( - TYPE === typeMap.true && - source in virtual && - !settings.output - ) { - possibilities[source] = all[source] - } - }) - - if (Object.keys(fixtures).length === 0) { - throw new Error('Missing fixture for `' + name + '`') - } - - resolved = resolveFixtures(fixtures, possibilities) - - if (settings.output) { - if (Object.keys(fixtures).length > 1) { - throw new Error('Multiple fixtures for output `' + name + '`') - } - } - - return { - input: input, - possibilities: possibilities, - mapping: resolved, - trees: fixtures, - stringify: settings.stringify, - output: settings.output, - size: stat(join(__dirname, 'input', filepath)).size, - name: name - } - }) - -module.exports = tests diff --git a/test/fixtures/input/auto-link-output.output.text b/test/fixtures/input/auto-link-output.output.text deleted file mode 100644 index 4a53c9642..000000000 --- a/test/fixtures/input/auto-link-output.output.text +++ /dev/null @@ -1,6 +0,0 @@ -Link: . - -Link to an email: [somename@example.com](mailto:somename@example.com). - -Link without protocol, which should not render as an auto-link -because they are easily mistaken for HTML: [google.com](google.com). diff --git a/test/fixtures/input/entities-advanced.text b/test/fixtures/input/entities-advanced.text index 4c12c26f2..8fc8f0f8e 100644 --- a/test/fixtures/input/entities-advanced.text +++ b/test/fixtures/input/entities-advanced.text @@ -2,47 +2,47 @@ > Entities even work in the language flag of fenced code blocks: -> ```some©language +> ```some©language > alert('Hello'); > ``` -> And in an auto-link: +> And in an auto-link: -> Foo and bar and http://example©xample.com and baz. +> Foo and bar and http://example©xample.com and baz. -> Or in [l©nks]( -> ~/some©file "in some pl©ce") +> Or in [l©nks]( +> ~/some©file "in some pl©ce") -> Or in [l©lnks]( -> <~/some©file> -> "in some pl©ce") +> Or in [l©lnks]( +> <~/some©file> +> "in some pl©ce") > Or in ![ -> l©nks +> l©nks > ]( -> ~/some©file "in some pl©ce") +> ~/some©file "in some pl©ce") *** -> Or in ![l©lnks]( -> <~/some©file> -> "in some pl©ce") +> Or in ![l©lnks]( +> <~/some©file> +> "in some pl©ce") > Or in ![ -> l©nks +> l©nks > ][12] -> [1]: http://example©xample.com "in some -> pl©ce" +> [1]: http://example©xample.com "in some +> pl©ce" > [ > 1 -> ]: http://example©xample.com "in some -> pl©ce" +> ]: http://example©xample.com "in some +> pl©ce" *** -> But, entities are not interpreted in `inline cöde`, or in +> But, entities are not interpreted in `inline cöde`, or in > code blocks: -> CÖDE block. +> CÖDE block. diff --git a/test/fixtures/input/entities.output.entities.text b/test/fixtures/input/entities.output.entities.text deleted file mode 100644 index 8c8c8ada5..000000000 --- a/test/fixtures/input/entities.output.entities.text +++ /dev/null @@ -1,53 +0,0 @@ -# Entities - -Plain text: - -AT&T with entity, AT&T with numeric entity, AT&T without entity. - -Fenced code language flags: - -```AT&T -Something in the AT&T language -``` - -```AT&T -Something in the AT&T language -``` - -Automatic links: - -, , and . - -Link `href`: - -[With entity](http://at&t.com), [numeric entity](http://at&t.com), [without entity](http://at&t.com). - -Link `title`: - -[With entity](http://att.com "AT&T"), [numeric entity](http://att.com "AT&T"), [without entity](http://example.com "AT&T"). - -Image `src`: - -![With entity](http://at&t.com/fav.ico), ![numeric entity](http://at&t.com/fav.ico), ![without entity](http://at&t.com/fav.ico). - -Image `alt`: - -![AT&T with entity](http://att.com/fav.ico), ![AT&T with numeric entity](http://att.com/fav.ico), ![AT&T without entity](http://att.com/fav.ico). - -Image `title`: - -![With entity](http://att.com/fav.ico "AT&T"), ![numeric entity](http://att.com/fav.ico "AT&T"), ![without entity](http://att.com/fav.ico "AT&T"). - -Image Reference `alt`: - -![AT&T with entity][favicon], ![AT&T with numeric entity][favicon], ![AT&T without entity][favicon]. - -[favicon]: http://att.com/fav.ico "ATT favicon" - -Shortcut and collapsed references: - -[foo&bar], [foo&bar][], [foo&bar], [foo&bar][]. - -[foo&bar]: http://example.com - -[foo&bar]: http://example.com diff --git a/test/fixtures/input/entities.output.entities=escape.text b/test/fixtures/input/entities.output.entities=escape.text deleted file mode 100644 index 870c1eeb1..000000000 --- a/test/fixtures/input/entities.output.entities=escape.text +++ /dev/null @@ -1,53 +0,0 @@ -# Entities - -Plain text: - -AT&T with entity, AT&T with numeric entity, AT&T without entity. - -Fenced code language flags: - -```AT&T -Something in the AT&T language -``` - -```AT&T -Something in the AT&T language -``` - -Automatic links: - -, , and . - -Link `href`: - -[With entity](http://at&t.com), [numeric entity](http://at&t.com), [without entity](http://at&t.com). - -Link `title`: - -[With entity](http://att.com "AT&T"), [numeric entity](http://att.com "AT&T"), [without entity](http://example.com "AT&T"). - -Image `src`: - -![With entity](http://at&t.com/fav.ico), ![numeric entity](http://at&t.com/fav.ico), ![without entity](http://at&t.com/fav.ico). - -Image `alt`: - -![AT&T with entity](http://att.com/fav.ico), ![AT&T with numeric entity](http://att.com/fav.ico), ![AT&T without entity](http://att.com/fav.ico). - -Image `title`: - -![With entity](http://att.com/fav.ico "AT&T"), ![numeric entity](http://att.com/fav.ico "AT&T"), ![without entity](http://att.com/fav.ico "AT&T"). - -Image Reference `alt`: - -![AT&T with entity][favicon], ![AT&T with numeric entity][favicon], ![AT&T without entity][favicon]. - -[favicon]: http://att.com/fav.ico "ATT favicon" - -Shortcut and collapsed references: - -[foo&bar], [foo&bar][], [foo&bar], [foo&bar][]. - -[foo&bar]: http://example.com - -[foo&bar]: http://example.com diff --git a/test/fixtures/input/entities.output.entities=numbers.text b/test/fixtures/input/entities.output.entities=numbers.text deleted file mode 100644 index c2d6e0f63..000000000 --- a/test/fixtures/input/entities.output.entities=numbers.text +++ /dev/null @@ -1,53 +0,0 @@ -# Entities - -Plain text: - -AT&T with entity, AT&T with numeric entity, AT&T without entity. - -Fenced code language flags: - -```AT&T -Something in the AT&T language -``` - -```AT&T -Something in the AT&T language -``` - -Automatic links: - -, , and . - -Link `href`: - -[With entity](http://at&t.com), [numeric entity](http://at&t.com), [without entity](http://at&t.com). - -Link `title`: - -[With entity](http://att.com "AT&T"), [numeric entity](http://att.com "AT&T"), [without entity](http://example.com "AT&T"). - -Image `src`: - -![With entity](http://at&t.com/fav.ico), ![numeric entity](http://at&t.com/fav.ico), ![without entity](http://at&t.com/fav.ico). - -Image `alt`: - -![AT&T with entity](http://att.com/fav.ico), ![AT&T with numeric entity](http://att.com/fav.ico), ![AT&T without entity](http://att.com/fav.ico). - -Image `title`: - -![With entity](http://att.com/fav.ico "AT&T"), ![numeric entity](http://att.com/fav.ico "AT&T"), ![without entity](http://att.com/fav.ico "AT&T"). - -Image Reference `alt`: - -![AT&T with entity][favicon], ![AT&T with numeric entity][favicon], ![AT&T without entity][favicon]. - -[favicon]: http://att.com/fav.ico "ATT favicon" - -Shortcut and collapsed references: - -[foo&bar], [foo&bar][], [foo&bar], [foo&bar][]. - -[foo&bar]: http://example.com - -[foo&bar]: http://example.com diff --git a/test/fixtures/input/entities.output.noentities.text b/test/fixtures/input/entities.output.noentities.text deleted file mode 100644 index d3b9b05a6..000000000 --- a/test/fixtures/input/entities.output.noentities.text +++ /dev/null @@ -1,53 +0,0 @@ -# Entities - -Plain text: - -AT&T with entity, AT&T with numeric entity, AT&T without entity. - -Fenced code language flags: - -```AT&T -Something in the AT&T language -``` - -```AT&T -Something in the AT&T language -``` - -Automatic links: - -, , and . - -Link `href`: - -[With entity](http://at&t.com), [numeric entity](http://at&t.com), [without entity](http://at&t.com). - -Link `title`: - -[With entity](http://att.com "AT&T"), [numeric entity](http://att.com "AT&T"), [without entity](http://example.com "AT&T"). - -Image `src`: - -![With entity](http://at&t.com/fav.ico), ![numeric entity](http://at&t.com/fav.ico), ![without entity](http://at&t.com/fav.ico). - -Image `alt`: - -![AT&T with entity](http://att.com/fav.ico), ![AT&T with numeric entity](http://att.com/fav.ico), ![AT&T without entity](http://att.com/fav.ico). - -Image `title`: - -![With entity](http://att.com/fav.ico "AT&T"), ![numeric entity](http://att.com/fav.ico "AT&T"), ![without entity](http://att.com/fav.ico "AT&T"). - -Image Reference `alt`: - -![AT&T with entity][favicon], ![AT&T with numeric entity][favicon], ![AT&T without entity][favicon]. - -[favicon]: http://att.com/fav.ico "ATT favicon" - -Shortcut and collapsed references: - -[foo&bar], [foo&bar][], [foo&bar], [foo&bar][]. - -[foo&bar]: http://example.com - -[foo&bar]: http://example.com diff --git a/test/fixtures/input/entities.text b/test/fixtures/input/entities.text index e51ba3bce..7333edf8b 100644 --- a/test/fixtures/input/entities.text +++ b/test/fixtures/input/entities.text @@ -14,7 +14,7 @@ alert('Hello'); Or in [línks](~/some—file "in some plæce") -Or in ![ímages](~/an–image.png "© Someone") +Or in ![ímages](~/an–image.png "© Someone") But, entities are not interpreted in `inline cöde`, or in code blocks: diff --git a/test/fixtures/input/gh-218.text b/test/fixtures/input/gh-218.text new file mode 100644 index 000000000..0194f7251 --- /dev/null +++ b/test/fixtures/input/gh-218.text @@ -0,0 +1,5 @@ +1. first header +========== + +2. second header +--------------- diff --git a/test/fixtures/input/gh-324.text b/test/fixtures/input/gh-324.text new file mode 100644 index 000000000..b8d5aa7e4 --- /dev/null +++ b/test/fixtures/input/gh-324.text @@ -0,0 +1 @@ +[1][Test Text](http://example.com) diff --git a/test/fixtures/input/gh-398.text b/test/fixtures/input/gh-398.text new file mode 100644 index 000000000..568648317 --- /dev/null +++ b/test/fixtures/input/gh-398.text @@ -0,0 +1 @@ +*foo ***bar*** baz* diff --git a/test/fixtures/input/gh-402.text b/test/fixtures/input/gh-402.text new file mode 100644 index 000000000..caf7710a5 --- /dev/null +++ b/test/fixtures/input/gh-402.text @@ -0,0 +1,6 @@ +1. One + Two + + ``` bash + npm install --save sqlite3 + ``` diff --git a/test/fixtures/input/gh-407.text b/test/fixtures/input/gh-407.text new file mode 100644 index 000000000..cca720a24 --- /dev/null +++ b/test/fixtures/input/gh-407.text @@ -0,0 +1,8 @@ +foo +* + +foo ++ + +foo +1. diff --git a/test/fixtures/input/gh-450.text b/test/fixtures/input/gh-450.text new file mode 100644 index 000000000..5110a2b6f --- /dev/null +++ b/test/fixtures/input/gh-450.text @@ -0,0 +1 @@ +[ ] brackets with white space inside diff --git a/test/fixtures/input/gh-459.text b/test/fixtures/input/gh-459.text new file mode 100644 index 000000000..776111df5 --- /dev/null +++ b/test/fixtures/input/gh-459.text @@ -0,0 +1,3 @@ +**[Link](https://**)** + +__[Link](https://__)__ diff --git a/test/fixtures/input/gh-493.text b/test/fixtures/input/gh-493.text new file mode 100644 index 000000000..4491144d7 --- /dev/null +++ b/test/fixtures/input/gh-493.text @@ -0,0 +1,7 @@ +aa_bb `aa_bb` + +aa_bb `aa_ bb` + +aa_bb `aa _bb` + +aa**bb `aa**bb` diff --git a/test/fixtures/input/gh-494.text b/test/fixtures/input/gh-494.text new file mode 100644 index 000000000..b788ba09f --- /dev/null +++ b/test/fixtures/input/gh-494.text @@ -0,0 +1,3 @@ +` + a +` diff --git a/test/fixtures/input/gh-497.text b/test/fixtures/input/gh-497.text new file mode 100644 index 000000000..fc02dc658 --- /dev/null +++ b/test/fixtures/input/gh-497.text @@ -0,0 +1,5 @@ +[one] +[two] +[three] +[four] +[five] diff --git a/test/fixtures/input/gh-504.text b/test/fixtures/input/gh-504.text new file mode 100644 index 000000000..51285c805 --- /dev/null +++ b/test/fixtures/input/gh-504.text @@ -0,0 +1 @@ +***bold-italic** italic* diff --git a/test/fixtures/input/gh-517.text b/test/fixtures/input/gh-517.text new file mode 100644 index 000000000..3391a808f --- /dev/null +++ b/test/fixtures/input/gh-517.text @@ -0,0 +1 @@ + 1. test diff --git a/test/fixtures/input/gh-521.output.text b/test/fixtures/input/gh-521.output.text new file mode 100644 index 000000000..91d66cb38 --- /dev/null +++ b/test/fixtures/input/gh-521.output.text @@ -0,0 +1 @@ +1\. test diff --git a/test/fixtures/input/gh-523.text b/test/fixtures/input/gh-523.text new file mode 100644 index 000000000..5e8eab54d --- /dev/null +++ b/test/fixtures/input/gh-523.text @@ -0,0 +1,3 @@ +- Test + - Test +Test diff --git a/test/fixtures/input/hr-list-break.text b/test/fixtures/input/hr-list-break.nooutput.text similarity index 100% rename from test/fixtures/input/hr-list-break.text rename to test/fixtures/input/hr-list-break.nooutput.text diff --git a/test/fixtures/input/list-item-indent.list-item-indent=1.output.text b/test/fixtures/input/list-item-indent.list-item-indent=1.output.text index 272e9602c..4804db88c 100644 --- a/test/fixtures/input/list-item-indent.list-item-indent=1.output.text +++ b/test/fixtures/input/list-item-indent.list-item-indent=1.output.text @@ -25,9 +25,9 @@ -- foo bar baz. +* foo bar baz. -- foo bar baz. +* foo bar baz. foo bar baz. diff --git a/test/fixtures/input/list-item-indent.list-item-indent=mixed.output.text b/test/fixtures/input/list-item-indent.list-item-indent=mixed.output.text index 1c22546db..4804db88c 100644 --- a/test/fixtures/input/list-item-indent.list-item-indent=mixed.output.text +++ b/test/fixtures/input/list-item-indent.list-item-indent=mixed.output.text @@ -10,8 +10,8 @@ -1. foo bar baz. - foo bar baz. +1. foo bar baz. + foo bar baz. @@ -20,14 +20,14 @@ -999. foo bar baz. - foo bar baz. +999. foo bar baz. + foo bar baz. -- foo bar baz. +* foo bar baz. -- foo bar baz. - foo bar baz. +* foo bar baz. + foo bar baz. diff --git a/test/fixtures/input/list-item-indent.list-item-indent=tab.output.text b/test/fixtures/input/list-item-indent.list-item-indent=tab.output.text index f18072f4f..f03f535f5 100644 --- a/test/fixtures/input/list-item-indent.list-item-indent=tab.output.text +++ b/test/fixtures/input/list-item-indent.list-item-indent=tab.output.text @@ -25,9 +25,9 @@ -- foo bar baz. +* foo bar baz. -- foo bar baz. +* foo bar baz. foo bar baz. diff --git a/test/fixtures/input/no-positionals.nooutput.text b/test/fixtures/input/no-positionals.nooutput.text deleted file mode 100644 index a174adcb7..000000000 --- a/test/fixtures/input/no-positionals.nooutput.text +++ /dev/null @@ -1,14 +0,0 @@ -This document tests for the working of `position: false` as a parse -option. - -> Block-quotes -> -> * With list items. - -Another block-quote: - -> 1. And another list. - -Some [deeply **nested _elements_**](http://example.com) - -An entity: ©, and an warning entity: ©. diff --git a/test/fixtures/input/reference-link-escape.nooutput.text b/test/fixtures/input/reference-link-escape.nooutput.text index bb0b941b3..837cad417 100644 --- a/test/fixtures/input/reference-link-escape.nooutput.text +++ b/test/fixtures/input/reference-link-escape.nooutput.text @@ -1,4 +1,4 @@ -[b\*r*][b\-r], [b\*r*][], [b\*r*]. +[a][b\*r*], [b\*r*][], [b\*r*]. ![foo][b\*r*], ![b\*r*][], ![b\*r*]. diff --git a/test/fixtures/input/remarkjs-remark-lint-gh-111.text b/test/fixtures/input/remarkjs-remark-lint-gh-111.text new file mode 100644 index 000000000..7b35a8aa8 --- /dev/null +++ b/test/fixtures/input/remarkjs-remark-lint-gh-111.text @@ -0,0 +1,8 @@ +1. **Fork** +2. **Clone** + + git clone +3. **Configure remotes** + + cd + git remote add upstream diff --git a/test/fixtures/input/stringify-escape.output.commonmark.text b/test/fixtures/input/stringify-escape.output.commonmark.text deleted file mode 100644 index 48ce134ce..000000000 --- a/test/fixtures/input/stringify-escape.output.commonmark.text +++ /dev/null @@ -1,81 +0,0 @@ -Characters that should be escaped in general: - -\\ \` \* \[ - -Characters that shouldn't: - -{}]()#+-.!>"$%',/:;=?@^~ - -Underscores are \_escaped\_ unless they appear in_the_middle_of_a_word. - -Ampersands are escaped only when they would otherwise start an entity: - -- \©cat \& \& -- But: ©cat; `≬` &foo; & AT&T &c - -Open parenthesis should be escaped after a shortcut reference: - -[ref]\(text) - -And after a shortcut reference and a space (for GitHub): - -[ref] \(text) - -Hyphen should be escaped at the beginning of a line: - -\- not a list item -\- not a list item - \+ not a list item - -Same for angle brackets: - -\> not a block quote - -And hash signs: - -\# not a heading - \## not a subheading - -Text under a shortcut reference should be preserved verbatim: - -- [two*three] -- [two\*three] -- [a\a] -- [a\\a] -- [a\\\a] -- [a_a\_a] - -**GFM:** - -Colon should be escaped in URLs: - -- http\://user:password@host:port/path?key=value#fragment -- https\://user:password@host:port/path?key=value#fragment - -Double tildes should be \~~escaped\~~. -And here: foo\~~. - -Pipes should not be escaped here: | - -| here | they | -| ------ | -------- | -| should | tho\|ugh | - -And here: - -| here | they | -\| ---- \| ----- \| -| should | though | - -And here: - -here | they -\---- \| ------ -should | though - -**Commonmark:** - -Open angle bracket should be escaped: - -- \
\
-- \ diff --git a/test/fixtures/input/stringify-escape.output.nogfm.commonmark.text b/test/fixtures/input/stringify-escape.output.nogfm.commonmark.text deleted file mode 100644 index fc258304e..000000000 --- a/test/fixtures/input/stringify-escape.output.nogfm.commonmark.text +++ /dev/null @@ -1,81 +0,0 @@ -Characters that should be escaped in general: - -\\ \` \* \[ - -Characters that shouldn't: - -{}]()#+-.!>"$%',/:;=?@^~ - -Underscores are \_escaped\_ unless they appear in_the_middle_of_a_word. - -Ampersands are escaped only when they would otherwise start an entity: - -- \©cat \& \& -- But: ©cat; `≬` &foo; & AT&T &c - -Open parenthesis should be escaped after a shortcut reference: - -[ref]\(text) - -And after a shortcut reference and a space (for GitHub): - -[ref] \(text) - -Hyphen should be escaped at the beginning of a line: - -\- not a list item -\- not a list item - \+ not a list item - -Same for angle brackets: - -\> not a block quote - -And hash signs: - -\# not a heading - \## not a subheading - -Text under a shortcut reference should be preserved verbatim: - -- [two*three] -- [two\*three] -- [a\a] -- [a\\a] -- [a\\\a] -- [a_a\_a] - -**GFM:** - -Colon should not be escaped in URLs: - -- http://user:password@host:port/path?key=value#fragment -- https://user:password@host:port/path?key=value#fragment - -Double tildes should not be ~~escaped~~. -Nor here: foo~~. - -Pipes should not be escaped here: | - -| here | they | -| ------ | -------- | -| should | nei|ther | - -Nor here: - -| here | they | -| ------ | ------ | -| should | though | - -Nor here: - -here | they -\----- | ------ -should | though - -**Commonmark:** - -Open angle bracket should be escaped: - -- \
\
-- \ diff --git a/test/fixtures/input/stringify-escape.output.nogfm.text b/test/fixtures/input/stringify-escape.output.nogfm.text deleted file mode 100644 index aa29786f1..000000000 --- a/test/fixtures/input/stringify-escape.output.nogfm.text +++ /dev/null @@ -1,81 +0,0 @@ -Characters that should be escaped in general: - -\\ \` \* \[ - -Characters that shouldn't: - -{}]()#+-.!>"$%',/:;=?@^~ - -Underscores are \_escaped\_ unless they appear in_the_middle_of_a_word. - -Ampersands are escaped only when they would otherwise start an entity: - -- &copycat &amp; &#x26 -- But: ©cat; `≬` &foo; & AT&T &c - -Open parenthesis should be escaped after a shortcut reference: - -[ref]\(text) - -And after a shortcut reference and a space (for GitHub): - -[ref] \(text) - -Hyphen should be escaped at the beginning of a line: - -\- not a list item -\- not a list item - \+ not a list item - -Same for angle brackets: - -\> not a block quote - -And hash signs: - -\# not a heading - \## not a subheading - -Text under a shortcut reference should be preserved verbatim: - -- [two*three] -- [two\*three] -- [a\a] -- [a\\a] -- [a\\\a] -- [a_a\_a] - -**GFM:** - -Colon should not be escaped in URLs: - -- http://user:password@host:port/path?key=value#fragment -- https://user:password@host:port/path?key=value#fragment - -Double tildes should not be ~~escaped~~. -Nor here: foo~~. - -Pipes should not be escaped here: | - -| here | they | -| ------ | -------- | -| should | nei|ther | - -Nor here: - -| here | they | -| ------ | ------ | -| should | though | - -Nor here: - -here | they -\----- | ------ -should | though - -**Commonmark:** - -Open angle bracket should be escaped: - -- <div></div> -- <http:google.com> diff --git a/test/fixtures/input/stringify-escape.output.noposition.pedantic.text b/test/fixtures/input/stringify-escape.output.noposition.pedantic.text deleted file mode 100644 index f92abade5..000000000 --- a/test/fixtures/input/stringify-escape.output.noposition.pedantic.text +++ /dev/null @@ -1,81 +0,0 @@ -Characters that should be escaped in general: - -\\ \` \* \[ \_ - -Characters that shouldn't: - -{}]()#+-.!>"$%',/:;=?@^~ - -Underscores are always \_escaped\_, even when they appear in\_the\_middle\_of\_a\_word. - -Ampersands are escaped only when they would otherwise start an entity: - -- &copycat &amp; &#x26 -- But: ©cat; `≬` &foo; & AT&T &c - -Open parenthesis should be escaped after a shortcut reference: - -[ref]\(text) - -And after a shortcut reference and a space (for GitHub): - -[ref] \(text) - -Hyphen should be escaped at the beginning of a line: - -\- not a list item -\- not a list item - \+ not a list item - -Same for angle brackets: - -\> not a block quote - -And hash signs: - -\# not a heading - \## not a subheading - -Text under a shortcut reference should be preserved verbatim: - -- [two*three] -- [two\*three] -- [a\a] -- [a\\a] -- [a\\\a] -- [a_a\_a] - -**GFM:** - -Colon should be escaped in URLs: - -- http://user:password@host:port/path?key=value#fragment -- https://user:password@host:port/path?key=value#fragment - -Double tildes should be \~~escaped\~~. -And here: foo\~~. - -Pipes should not be escaped here: | - -| here | they | -| ------ | -------- | -| should | tho\|ugh | - -And here: - -| here | they | -\| ---- \| ----- \| -| should | though | - -And here: - -here | they -\---- \| ------ -should | though - -**Commonmark:** - -Open angle bracket should be escaped: - -- <div></div> -- <http:google.com> diff --git a/test/fixtures/input/stringify-escape.output.pedantic.text b/test/fixtures/input/stringify-escape.output.pedantic.text deleted file mode 100644 index f92abade5..000000000 --- a/test/fixtures/input/stringify-escape.output.pedantic.text +++ /dev/null @@ -1,81 +0,0 @@ -Characters that should be escaped in general: - -\\ \` \* \[ \_ - -Characters that shouldn't: - -{}]()#+-.!>"$%',/:;=?@^~ - -Underscores are always \_escaped\_, even when they appear in\_the\_middle\_of\_a\_word. - -Ampersands are escaped only when they would otherwise start an entity: - -- &copycat &amp; &#x26 -- But: ©cat; `≬` &foo; & AT&T &c - -Open parenthesis should be escaped after a shortcut reference: - -[ref]\(text) - -And after a shortcut reference and a space (for GitHub): - -[ref] \(text) - -Hyphen should be escaped at the beginning of a line: - -\- not a list item -\- not a list item - \+ not a list item - -Same for angle brackets: - -\> not a block quote - -And hash signs: - -\# not a heading - \## not a subheading - -Text under a shortcut reference should be preserved verbatim: - -- [two*three] -- [two\*three] -- [a\a] -- [a\\a] -- [a\\\a] -- [a_a\_a] - -**GFM:** - -Colon should be escaped in URLs: - -- http://user:password@host:port/path?key=value#fragment -- https://user:password@host:port/path?key=value#fragment - -Double tildes should be \~~escaped\~~. -And here: foo\~~. - -Pipes should not be escaped here: | - -| here | they | -| ------ | -------- | -| should | tho\|ugh | - -And here: - -| here | they | -\| ---- \| ----- \| -| should | though | - -And here: - -here | they -\---- \| ------ -should | though - -**Commonmark:** - -Open angle bracket should be escaped: - -- <div></div> -- <http:google.com> diff --git a/test/fixtures/input/stringify-escape.output.text b/test/fixtures/input/stringify-escape.output.text deleted file mode 100644 index 58e46aa7f..000000000 --- a/test/fixtures/input/stringify-escape.output.text +++ /dev/null @@ -1,81 +0,0 @@ -Characters that should be escaped in general: - -\\ \` \* \[ - -Characters that shouldn't: - -{}]()#+-.!>"$%',/:;=?@^~ - -Underscores are \_escaped\_ unless they appear in_the_middle_of_a_word. - -Ampersands are escaped only when they would otherwise start an entity: - -- &copycat &amp; &#x26 -- But: ©cat; `≬` &foo; & AT&T &c - -Open parenthesis should be escaped after a shortcut reference: - -[ref]\(text) - -And after a shortcut reference and a space (for GitHub): - -[ref] \(text) - -Hyphen should be escaped at the beginning of a line: - -\- not a list item -\- not a list item - \+ not a list item - -Same for angle brackets: - -\> not a block quote - -And hash signs: - -\# not a heading - \## not a subheading - -Text under a shortcut reference should be preserved verbatim: - -- [two*three] -- [two\*three] -- [a\a] -- [a\\a] -- [a\\\a] -- [a_a\_a] - -**GFM:** - -Colon should be escaped in URLs: - -- http://user:password@host:port/path?key=value#fragment -- https://user:password@host:port/path?key=value#fragment - -Double tildes should be \~~escaped\~~. -And here: foo\~~. - -Pipes should not be escaped here: | - -| here | they | -| ------ | -------- | -| should | tho\|ugh | - -And here: - -| here | they | -\| ---- \| ----- \| -| should | though | - -And here: - -here | they -\---- \| ------ -should | though - -**Commonmark:** - -Open angle bracket should be escaped: - -- <div></div> -- <http:google.com> diff --git a/test/fixtures/input/table-cell-padding.output.notable-cell-padding.text b/test/fixtures/input/table-cell-padding.output.notable-cell-padding.text deleted file mode 100644 index 48c0dfdb1..000000000 --- a/test/fixtures/input/table-cell-padding.output.notable-cell-padding.text +++ /dev/null @@ -1,4 +0,0 @@ -|Header 1|Header 2| -|--------|-------:| -|Cell 1 | Cell 2| -|Cell 3 | Cell 4| diff --git a/test/fixtures/input/table-cell-padding.output.text b/test/fixtures/input/table-cell-padding.output.text deleted file mode 100644 index 169f9cb0a..000000000 --- a/test/fixtures/input/table-cell-padding.output.text +++ /dev/null @@ -1,4 +0,0 @@ -| Header 1 | Header 2 | -| -------- | -------: | -| Cell 1 | Cell 2 | -| Cell 3 | Cell 4 | diff --git a/test/fixtures/input/table-empty-initial-cell.text b/test/fixtures/input/table-empty-initial-cell.text deleted file mode 100644 index 0ef1c2b16..000000000 --- a/test/fixtures/input/table-empty-initial-cell.text +++ /dev/null @@ -1,4 +0,0 @@ -| | a|c| -|--|:----:|:---| -|a|b|c| -|a|b|c| diff --git a/test/fixtures/input/table-escaped-pipes.nooutput.text b/test/fixtures/input/table-escaped-pipes.nooutput.text deleted file mode 100644 index aa22557ce..000000000 --- a/test/fixtures/input/table-escaped-pipes.nooutput.text +++ /dev/null @@ -1,6 +0,0 @@ -| First | Second | third | -| ----- | ------ | ----- | -| first | second | third | -| first | second \| second | third \| -| first | second \\| third \\| -| first | second \\\| second | third \\\| diff --git a/test/fixtures/input/table-in-list.text b/test/fixtures/input/table-in-list.text deleted file mode 100644 index 3530d3b9e..000000000 --- a/test/fixtures/input/table-in-list.text +++ /dev/null @@ -1,11 +0,0 @@ -* Unordered: - - | A | B | - | - | - | - | 1 | 2 | - -* Ordered: - - | A | B | - | - | - | - | 1 | 2 | diff --git a/test/fixtures/input/table-invalid-alignment.text b/test/fixtures/input/table-invalid-alignment.text deleted file mode 100644 index 32d1388b8..000000000 --- a/test/fixtures/input/table-invalid-alignment.text +++ /dev/null @@ -1,17 +0,0 @@ -Missing alignment characters: - -| a | b | c | -| |---|---| -| d | e | f | - -* * * - -| a | b | c | -|---|---| | -| d | e | f | - -Invalid characters: - -| a | b | c | -|---|-*-|---| -| d | e | f | diff --git a/test/fixtures/input/table-loose.output.text b/test/fixtures/input/table-loose.output.text deleted file mode 100644 index f1dd35f20..000000000 --- a/test/fixtures/input/table-loose.output.text +++ /dev/null @@ -1,4 +0,0 @@ -| Header 1 | Header 2 | -| -------- | -------- | -| Cell 1 | Cell 2 | -| Cell 3 | Cell 4 | diff --git a/test/fixtures/input/table-loose.text b/test/fixtures/input/table-loose.text deleted file mode 100644 index d1b2f9b91..000000000 --- a/test/fixtures/input/table-loose.text +++ /dev/null @@ -1,4 +0,0 @@ -Header 1 | Header 2 --------- | -------- -Cell 1 | Cell 2 -Cell 3 | Cell 4 diff --git a/test/fixtures/input/table-no-body.text b/test/fixtures/input/table-no-body.text deleted file mode 100644 index 917ddd172..000000000 --- a/test/fixtures/input/table-no-body.text +++ /dev/null @@ -1,4 +0,0 @@ -# Foo - -| Name | GitHub | Twitter | -| ---- | ------ | ------- | diff --git a/test/fixtures/input/table-no-end-of-line.text b/test/fixtures/input/table-no-end-of-line.text deleted file mode 100644 index d6922dd41..000000000 --- a/test/fixtures/input/table-no-end-of-line.text +++ /dev/null @@ -1,3 +0,0 @@ -|foo|bar| -|-|-| -|1|2| \ No newline at end of file diff --git a/test/fixtures/input/table-one-column.text b/test/fixtures/input/table-one-column.text deleted file mode 100644 index c877056bd..000000000 --- a/test/fixtures/input/table-one-column.text +++ /dev/null @@ -1,5 +0,0 @@ -This is a table: - -| a | -| - | -| b | diff --git a/test/fixtures/input/table-one-row.text b/test/fixtures/input/table-one-row.text deleted file mode 100644 index 27b21e8a2..000000000 --- a/test/fixtures/input/table-one-row.text +++ /dev/null @@ -1,4 +0,0 @@ -This is a table: - -| a | b | c | -| - | - | - | diff --git a/test/fixtures/input/table-pipe-align.output.notable-pipe-align.text b/test/fixtures/input/table-pipe-align.output.notable-pipe-align.text deleted file mode 100644 index 5a68372cb..000000000 --- a/test/fixtures/input/table-pipe-align.output.notable-pipe-align.text +++ /dev/null @@ -1,4 +0,0 @@ -| Header 1 | Header 2 | -| - | - | -| Cell 1 | Cell 2 | -| Cell 3 | Cell 4 | diff --git a/test/fixtures/input/table-pipe-align.output.text b/test/fixtures/input/table-pipe-align.output.text deleted file mode 100644 index f1dd35f20..000000000 --- a/test/fixtures/input/table-pipe-align.output.text +++ /dev/null @@ -1,4 +0,0 @@ -| Header 1 | Header 2 | -| -------- | -------- | -| Cell 1 | Cell 2 | -| Cell 3 | Cell 4 | diff --git a/test/fixtures/input/table.text b/test/fixtures/input/table.text deleted file mode 100644 index 1f1a7f2ad..000000000 --- a/test/fixtures/input/table.text +++ /dev/null @@ -1,21 +0,0 @@ -| Heading 1 | **H**eading 2 -| --------- | --------- -| Cell 1 | Cell 2 -| Cell 3 | Cell 4 - -| Header 1 | Header 2 | Header 3 | Header 4 | -| :------: | -------: | :------- | -------- | -| Cell 1 | Cell 2 | Cell 3 | Cell 4 | -| Cell 5 | Cell 6 | Cell 7 | Cell 8 | - - Test code - -Header 1 | Header 2 --------- | -------- -Cell 1 | Cell 2 -Cell 3 | Cell 4 - -Header 1|Header 2|Header 3|Header 4 -:-------|:------:|-------:|-------- -Cell 1 |Cell 2 |Cell 3 |Cell 4 -*Cell 5*|Cell 6 |Cell 7 |Cell 8 diff --git a/test/fixtures/input/tables-with-pipes-and-code.text b/test/fixtures/input/tables-with-pipes-and-code.text deleted file mode 100644 index a4de2d1a5..000000000 --- a/test/fixtures/input/tables-with-pipes-and-code.text +++ /dev/null @@ -1,22 +0,0 @@ -Grave accent in cell: - -| A | B | -|--------------|---| -| ` | C | - -Escaped grave accent in inline code in cell (is not an escape): - -| A | -|-----| -| `\` | - -“Empty” inline code: - -| 1 | 2 | 3 | -|---|------|----| -| a | `` | | -| b | `` | `` | -| c | ` | ` | -| d | `|` | -| e | `\|` | | -| f | \| | | diff --git a/test/fixtures/input/task-list-ordered.text b/test/fixtures/input/task-list-ordered.text deleted file mode 100644 index 73ea2176d..000000000 --- a/test/fixtures/input/task-list-ordered.text +++ /dev/null @@ -1,6 +0,0 @@ -1. [ ] Mercury; -2. [] Venus (this one’s invalid); -3. [x] Earth: - 1. [x] Moon. -4. [ ] Mars; -8. [] Neptune (this one’s also invalid). diff --git a/test/fixtures/input/task-list-unordered-asterisk.text b/test/fixtures/input/task-list-unordered-asterisk.text deleted file mode 100644 index eab007fbb..000000000 --- a/test/fixtures/input/task-list-unordered-asterisk.text +++ /dev/null @@ -1,6 +0,0 @@ -* [ ] Mercury; -* [] Venus (this one’s invalid); -* [x] Earth: - * [x] Moon. -* [ ] Mars; -* [] Neptune (this one’s also invalid). diff --git a/test/fixtures/input/task-list-unordered-dash.text b/test/fixtures/input/task-list-unordered-dash.text deleted file mode 100644 index 4e0eca214..000000000 --- a/test/fixtures/input/task-list-unordered-dash.text +++ /dev/null @@ -1,6 +0,0 @@ -- [ ] Mercury; -- [] Venus (this one’s invalid); -- [x] Earth: - - [x] Moon. -- [ ] Mars; -- [] Neptune (this one’s also invalid). diff --git a/test/fixtures/input/task-list-unordered-plus.text b/test/fixtures/input/task-list-unordered-plus.text deleted file mode 100644 index 6bfaf81c7..000000000 --- a/test/fixtures/input/task-list-unordered-plus.text +++ /dev/null @@ -1,6 +0,0 @@ -+ [ ] Mercury; -+ [] Venus (this one’s invalid); -+ [x] Earth: - + [x] Moon. -+ [ ] Mars; -+ [] Neptune (this one’s also invalid). diff --git a/test/fixtures/input/task-list.text b/test/fixtures/input/task-list.text deleted file mode 100644 index 2033e826d..000000000 --- a/test/fixtures/input/task-list.text +++ /dev/null @@ -1,102 +0,0 @@ -Empty items -=========== - -* [ ] -* [ ] - -1. [x] -2. [X] - -Single space -============ - -* [ ] -* [ ] - -1. [x] -2. [X] - -Tab -=== - -* [ ] -* [ ] - -1. [x] -2. [X] - -No white space with content -=========================== - -* [ ]Hello; -* [ ]World; - -1. [x]Foo. -2. [X]Bar - -Single space with content -========================= - -* [ ] Hello; -* [ ] World; - -1. [x] Foo. -2. [X] World :D - -Single tab with content -======================= - -* [ ] Hello; -* [ ] World; - -1. [x] Foo. -2. [X] Hello. - -Multiple spaces with content -============================ - -* [ ] Hello; -* [ ] World; - -1. [x] Foo. -3. [X] Bar. - -Multiple tabs with content -========================== - -* [ ] Hello; -* [ ] World; - -1. [x] Foo. -2. [X] Bar. - -Mixed tabs and spaces -===================== - -* [ ] Hello; - -1. [x] World; - -* [ ] Hello; -* [ ] World. - -2. [X] Bar. - -Line breaks -=========== - -* [ -] Hello; - -1. [ -] Hello; - -Multiple unfinished characters -============================== - -* [ ] Hello; - -1. [ - ] World; -2. [ ] Hello; -3. [ ] World. diff --git a/test/fixtures/tree/amps-and-angles-encoding.json b/test/fixtures/tree/amps-and-angles-encoding.json index 97fd4b776..42fa966a2 100644 --- a/test/fixtures/tree/amps-and-angles-encoding.json +++ b/test/fixtures/tree/amps-and-angles-encoding.json @@ -17,8 +17,7 @@ "line": 1, "column": 37, "offset": 36 - }, - "indent": [] + } } } ], @@ -32,8 +31,7 @@ "line": 1, "column": 37, "offset": 36 - }, - "indent": [] + } } }, { @@ -41,53 +39,18 @@ "children": [ { "type": "text", - "value": "AT", + "value": "AT&T is another way to write it.", "position": { "start": { "line": 3, "column": 1, "offset": 38 }, - "end": { - "line": 3, - "column": 3, - "offset": 40 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "&", - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 40 - }, - "end": { - "line": 3, - "column": 8, - "offset": 45 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "T is another way to write it.", - "position": { - "start": { - "line": 3, - "column": 8, - "offset": 45 - }, "end": { "line": 3, "column": 37, "offset": 74 - }, - "indent": [] + } } } ], @@ -101,8 +64,7 @@ "line": 3, "column": 37, "offset": 74 - }, - "indent": [] + } } }, { @@ -121,8 +83,7 @@ "line": 5, "column": 13, "offset": 88 - }, - "indent": [] + } } } ], @@ -136,8 +97,7 @@ "line": 5, "column": 13, "offset": 88 - }, - "indent": [] + } } }, { @@ -156,8 +116,7 @@ "line": 7, "column": 7, "offset": 96 - }, - "indent": [] + } } } ], @@ -171,8 +130,7 @@ "line": 7, "column": 7, "offset": 96 - }, - "indent": [] + } } }, { @@ -191,8 +149,7 @@ "line": 9, "column": 7, "offset": 104 - }, - "indent": [] + } } } ], @@ -206,8 +163,7 @@ "line": 9, "column": 7, "offset": 104 - }, - "indent": [] + } } }, { @@ -215,7 +171,7 @@ "children": [ { "type": "text", - "value": "Here's a ", + "value": "Here's a [link] ", "position": { "start": { "line": 11, @@ -224,49 +180,46 @@ }, "end": { "line": 11, - "column": 10, - "offset": 115 - }, - "indent": [] + "column": 17, + "offset": 122 + } } }, { "type": "linkReference", - "identifier": "1", - "label": "1", - "referenceType": "full", "children": [ { "type": "text", - "value": "link", + "value": "1", "position": { "start": { "line": 11, - "column": 11, - "offset": 116 + "column": 18, + "offset": 123 }, "end": { "line": 11, - "column": 15, - "offset": 120 - }, - "indent": [] + "column": 19, + "offset": 124 + } } } ], "position": { "start": { "line": 11, - "column": 10, - "offset": 115 + "column": 17, + "offset": 122 }, "end": { "line": 11, "column": 20, "offset": 125 - }, - "indent": [] - } + } + }, + "identifier": "1", + "label": "1", + "referenceType": "shortcut" }, { "type": "text", @@ -281,8 +234,7 @@ "line": 11, "column": 50, "offset": 155 - }, - "indent": [] + } } } ], @@ -296,8 +248,7 @@ "line": 11, "column": 50, "offset": 155 - }, - "indent": [] + } } }, { @@ -305,7 +256,7 @@ "children": [ { "type": "text", - "value": "Here's a link with an amersand in the link text: ", + "value": "Here's a link with an amersand in the link text: [AT&T] ", "position": { "start": { "line": 13, @@ -314,49 +265,46 @@ }, "end": { "line": 13, - "column": 50, - "offset": 206 - }, - "indent": [] + "column": 57, + "offset": 213 + } } }, { "type": "linkReference", - "identifier": "2", - "label": "2", - "referenceType": "full", "children": [ { "type": "text", - "value": "AT&T", + "value": "2", "position": { "start": { "line": 13, - "column": 51, - "offset": 207 + "column": 58, + "offset": 214 }, "end": { "line": 13, - "column": 55, - "offset": 211 - }, - "indent": [] + "column": 59, + "offset": 215 + } } } ], "position": { "start": { "line": 13, - "column": 50, - "offset": 206 + "column": 57, + "offset": 213 }, "end": { "line": 13, "column": 60, "offset": 216 - }, - "indent": [] - } + } + }, + "identifier": "2", + "label": "2", + "referenceType": "shortcut" }, { "type": "text", @@ -371,8 +319,7 @@ "line": 13, "column": 61, "offset": 217 - }, - "indent": [] + } } } ], @@ -386,8 +333,7 @@ "line": 13, "column": 61, "offset": 217 - }, - "indent": [] + } } }, { @@ -406,8 +352,7 @@ "line": 15, "column": 18, "offset": 236 - }, - "indent": [] + } } }, { @@ -428,8 +373,7 @@ "line": 15, "column": 23, "offset": 241 - }, - "indent": [] + } } } ], @@ -443,8 +387,7 @@ "line": 15, "column": 45, "offset": 263 - }, - "indent": [] + } } }, { @@ -460,8 +403,7 @@ "line": 15, "column": 46, "offset": 264 - }, - "indent": [] + } } } ], @@ -475,8 +417,7 @@ "line": 15, "column": 46, "offset": 264 - }, - "indent": [] + } } }, { @@ -495,8 +436,7 @@ "line": 17, "column": 18, "offset": 283 - }, - "indent": [] + } } }, { @@ -517,8 +457,7 @@ "line": 17, "column": 23, "offset": 288 - }, - "indent": [] + } } } ], @@ -532,8 +471,7 @@ "line": 17, "column": 47, "offset": 312 - }, - "indent": [] + } } }, { @@ -549,8 +487,7 @@ "line": 17, "column": 48, "offset": 313 - }, - "indent": [] + } } } ], @@ -564,8 +501,7 @@ "line": 17, "column": 48, "offset": 313 - }, - "indent": [] + } } }, { @@ -584,8 +520,7 @@ "line": 20, "column": 37, "offset": 352 - }, - "indent": [] + } } }, { @@ -604,8 +539,7 @@ "line": 21, "column": 29, "offset": 381 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/auto-link-invalid.commonmark.json b/test/fixtures/tree/auto-link-invalid.commonmark.json deleted file mode 100644 index 571c3847d..000000000 --- a/test/fixtures/tree/auto-link-invalid.commonmark.json +++ /dev/null @@ -1,192 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 20 - }, - "end": { - "line": 5, - "column": 19, - "offset": 38 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 20 - }, - "end": { - "line": 5, - "column": 19, - "offset": 38 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "", + "type": "link", + "title": null, + "url": "mailto:foobarbaz", + "children": [ + { + "type": "text", + "value": "mailto:foobarbaz", + "position": { + "start": { + "line": 5, + "column": 2, + "offset": 21 + }, + "end": { + "line": 5, + "column": 18, + "offset": 37 + } + } + } + ], "position": { "start": { "line": 5, @@ -87,8 +102,7 @@ "line": 5, "column": 19, "offset": 38 - }, - "indent": [] + } } } ], @@ -102,8 +116,7 @@ "line": 5, "column": 19, "offset": 38 - }, - "indent": [] + } } }, { @@ -122,8 +135,7 @@ "line": 7, "column": 14, "offset": 53 - }, - "indent": [] + } } } ], @@ -137,8 +149,7 @@ "line": 7, "column": 14, "offset": 53 - }, - "indent": [] + } } }, { @@ -157,8 +168,7 @@ "line": 9, "column": 6, "offset": 60 - }, - "indent": [] + } } } ], @@ -172,8 +182,7 @@ "line": 9, "column": 6, "offset": 60 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/auto-link-invalid.nogfm.json b/test/fixtures/tree/auto-link-invalid.nogfm.json deleted file mode 100644 index 571c3847d..000000000 --- a/test/fixtures/tree/auto-link-invalid.nogfm.json +++ /dev/null @@ -1,192 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 20 - }, - "end": { - "line": 5, - "column": 19, - "offset": 38 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 20 - }, - "end": { - "line": 5, - "column": 19, - "offset": 38 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "", - "position": { - "start": { - "line": 23, - "column": 15, - "offset": 207 - }, - "end": { - "line": 23, - "column": 17, - "offset": 209 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 23, - "column": 1, - "offset": 193 - }, - "end": { - "line": 23, - "column": 17, - "offset": 209 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hash: ", - "position": { - "start": { - "line": 25, - "column": 1, - "offset": 211 - }, - "end": { - "line": 25, - "column": 7, - "offset": 217 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "#", - "position": { - "start": { - "line": 25, - "column": 7, - "offset": 217 - }, - "end": { - "line": 25, - "column": 9, - "offset": 219 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 25, - "column": 1, - "offset": 211 - }, - "end": { - "line": 25, - "column": 9, - "offset": 219 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Period: ", - "position": { - "start": { - "line": 27, - "column": 1, - "offset": 221 - }, - "end": { - "line": 27, - "column": 9, - "offset": 229 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 27, - "column": 9, - "offset": 229 - }, - "end": { - "line": 27, - "column": 11, - "offset": 231 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 27, - "column": 1, - "offset": 221 - }, - "end": { - "line": 27, - "column": 11, - "offset": 231 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Bang: ", - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 233 - }, - "end": { - "line": 29, - "column": 7, - "offset": 239 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "!", - "position": { - "start": { - "line": 29, - "column": 7, - "offset": 239 - }, - "end": { - "line": 29, - "column": 9, - "offset": 241 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 233 - }, - "end": { - "line": 29, - "column": 9, - "offset": 241 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Plus: ", - "position": { - "start": { - "line": 31, - "column": 1, - "offset": 243 - }, - "end": { - "line": 31, - "column": 7, - "offset": 249 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "+", - "position": { - "start": { - "line": 31, - "column": 7, - "offset": 249 - }, - "end": { - "line": 31, - "column": 9, - "offset": 251 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 31, - "column": 1, - "offset": 243 - }, - "end": { - "line": 31, - "column": 9, - "offset": 251 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Minus: ", - "position": { - "start": { - "line": 33, - "column": 1, - "offset": 253 - }, - "end": { - "line": 33, - "column": 8, - "offset": 260 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "-", - "position": { - "start": { - "line": 33, - "column": 8, - "offset": 260 - }, - "end": { - "line": 33, - "column": 10, - "offset": 262 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 33, - "column": 1, - "offset": 253 - }, - "end": { - "line": 33, - "column": 10, - "offset": 262 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "GFM:", - "position": { - "start": { - "line": 35, - "column": 3, - "offset": 266 - }, - "end": { - "line": 35, - "column": 7, - "offset": 270 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 35, - "column": 1, - "offset": 264 - }, - "end": { - "line": 35, - "column": 9, - "offset": 272 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 35, - "column": 1, - "offset": 264 - }, - "end": { - "line": 35, - "column": 9, - "offset": 272 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Pipe: ", - "position": { - "start": { - "line": 37, - "column": 1, - "offset": 274 - }, - "end": { - "line": 37, - "column": 7, - "offset": 280 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "|", - "position": { - "start": { - "line": 37, - "column": 7, - "offset": 280 - }, - "end": { - "line": 37, - "column": 9, - "offset": 282 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 37, - "column": 1, - "offset": 274 - }, - "end": { - "line": 37, - "column": 9, - "offset": 282 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Tilde: ", - "position": { - "start": { - "line": 39, - "column": 1, - "offset": 284 - }, - "end": { - "line": 39, - "column": 8, - "offset": 291 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "~", - "position": { - "start": { - "line": 39, - "column": 8, - "offset": 291 - }, - "end": { - "line": 39, - "column": 10, - "offset": 293 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 39, - "column": 1, - "offset": 284 - }, - "end": { - "line": 39, - "column": 10, - "offset": 293 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "Commonmark:", - "position": { - "start": { - "line": 41, - "column": 3, - "offset": 297 - }, - "end": { - "line": 41, - "column": 14, - "offset": 308 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 41, - "column": 1, - "offset": 295 - }, - "end": { - "line": 41, - "column": 16, - "offset": 310 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 41, - "column": 1, - "offset": 295 - }, - "end": { - "line": 41, - "column": 16, - "offset": 310 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Quote: ", - "position": { - "start": { - "line": 43, - "column": 1, - "offset": 312 - }, - "end": { - "line": 43, - "column": 8, - "offset": 319 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\"", - "position": { - "start": { - "line": 43, - "column": 8, - "offset": 319 - }, - "end": { - "line": 43, - "column": 10, - "offset": 321 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 43, - "column": 1, - "offset": 312 - }, - "end": { - "line": 43, - "column": 10, - "offset": 321 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Dollar: ", - "position": { - "start": { - "line": 45, - "column": 1, - "offset": 323 - }, - "end": { - "line": 45, - "column": 9, - "offset": 331 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "$", - "position": { - "start": { - "line": 45, - "column": 9, - "offset": 331 - }, - "end": { - "line": 45, - "column": 11, - "offset": 333 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 45, - "column": 1, - "offset": 323 - }, - "end": { - "line": 45, - "column": 11, - "offset": 333 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Percentage: ", - "position": { - "start": { - "line": 47, - "column": 1, - "offset": 335 - }, - "end": { - "line": 47, - "column": 13, - "offset": 347 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "%", - "position": { - "start": { - "line": 47, - "column": 13, - "offset": 347 - }, - "end": { - "line": 47, - "column": 15, - "offset": 349 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 47, - "column": 1, - "offset": 335 - }, - "end": { - "line": 47, - "column": 15, - "offset": 349 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Ampersand: ", - "position": { - "start": { - "line": 49, - "column": 1, - "offset": 351 - }, - "end": { - "line": 49, - "column": 12, - "offset": 362 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "&", - "position": { - "start": { - "line": 49, - "column": 12, - "offset": 362 - }, - "end": { - "line": 49, - "column": 14, - "offset": 364 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 49, - "column": 1, - "offset": 351 - }, - "end": { - "line": 49, - "column": 14, - "offset": 364 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Single quote: ", - "position": { - "start": { - "line": 51, - "column": 1, - "offset": 366 - }, - "end": { - "line": 51, - "column": 15, - "offset": 380 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "'", - "position": { - "start": { - "line": 51, - "column": 15, - "offset": 380 - }, - "end": { - "line": 51, - "column": 17, - "offset": 382 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 51, - "column": 1, - "offset": 366 - }, - "end": { - "line": 51, - "column": 17, - "offset": 382 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Comma: ", - "position": { - "start": { - "line": 53, - "column": 1, - "offset": 384 - }, - "end": { - "line": 53, - "column": 8, - "offset": 391 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ",", - "position": { - "start": { - "line": 53, - "column": 8, - "offset": 391 - }, - "end": { - "line": 53, - "column": 10, - "offset": 393 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 53, - "column": 1, - "offset": 384 - }, - "end": { - "line": 53, - "column": 10, - "offset": 393 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Forward slash: ", - "position": { - "start": { - "line": 55, - "column": 1, - "offset": 395 - }, - "end": { - "line": 55, - "column": 16, - "offset": 410 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "/", - "position": { - "start": { - "line": 55, - "column": 16, - "offset": 410 - }, - "end": { - "line": 55, - "column": 18, - "offset": 412 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 55, - "column": 1, - "offset": 395 - }, - "end": { - "line": 55, - "column": 18, - "offset": 412 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Colon: ", - "position": { - "start": { - "line": 57, - "column": 1, - "offset": 414 - }, - "end": { - "line": 57, - "column": 8, - "offset": 421 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ":", - "position": { - "start": { - "line": 57, - "column": 8, - "offset": 421 - }, - "end": { - "line": 57, - "column": 10, - "offset": 423 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 57, - "column": 1, - "offset": 414 - }, - "end": { - "line": 57, - "column": 10, - "offset": 423 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Semicolon: ", - "position": { - "start": { - "line": 59, - "column": 1, - "offset": 425 - }, - "end": { - "line": 59, - "column": 12, - "offset": 436 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ";", - "position": { - "start": { - "line": 59, - "column": 12, - "offset": 436 - }, - "end": { - "line": 59, - "column": 14, - "offset": 438 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 59, - "column": 1, - "offset": 425 - }, - "end": { - "line": 59, - "column": 14, - "offset": 438 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Less-than: ", - "position": { - "start": { - "line": 61, - "column": 1, - "offset": 440 - }, - "end": { - "line": 61, - "column": 12, - "offset": 451 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "<", - "position": { - "start": { - "line": 61, - "column": 12, - "offset": 451 - }, - "end": { - "line": 61, - "column": 14, - "offset": 453 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 61, - "column": 1, - "offset": 440 - }, - "end": { - "line": 61, - "column": 14, - "offset": 453 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Equals: ", - "position": { - "start": { - "line": 63, - "column": 1, - "offset": 455 - }, - "end": { - "line": 63, - "column": 9, - "offset": 463 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "=", - "position": { - "start": { - "line": 63, - "column": 9, - "offset": 463 - }, - "end": { - "line": 63, - "column": 11, - "offset": 465 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 63, - "column": 1, - "offset": 455 - }, - "end": { - "line": 63, - "column": 11, - "offset": 465 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Question mark: ", - "position": { - "start": { - "line": 65, - "column": 1, - "offset": 467 - }, - "end": { - "line": 65, - "column": 16, - "offset": 482 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "?", - "position": { - "start": { - "line": 65, - "column": 16, - "offset": 482 - }, - "end": { - "line": 65, - "column": 18, - "offset": 484 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 65, - "column": 1, - "offset": 467 - }, - "end": { - "line": 65, - "column": 18, - "offset": 484 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "At-sign: ", - "position": { - "start": { - "line": 67, - "column": 1, - "offset": 486 - }, - "end": { - "line": 67, - "column": 10, - "offset": 495 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "@", - "position": { - "start": { - "line": 67, - "column": 10, - "offset": 495 - }, - "end": { - "line": 67, - "column": 12, - "offset": 497 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 67, - "column": 1, - "offset": 486 - }, - "end": { - "line": 67, - "column": 12, - "offset": 497 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Caret: ", - "position": { - "start": { - "line": 69, - "column": 1, - "offset": 499 - }, - "end": { - "line": 69, - "column": 8, - "offset": 506 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "^", - "position": { - "start": { - "line": 69, - "column": 8, - "offset": 506 - }, - "end": { - "line": 69, - "column": 10, - "offset": 508 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 69, - "column": 1, - "offset": 499 - }, - "end": { - "line": 69, - "column": 10, - "offset": 508 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "New line: ", - "position": { - "start": { - "line": 71, - "column": 1, - "offset": 510 - }, - "end": { - "line": 71, - "column": 11, - "offset": 520 - }, - "indent": [] - } - }, - { - "type": "break", - "position": { - "start": { - "line": 71, - "column": 11, - "offset": 520 - }, - "end": { - "line": 72, - "column": 1, - "offset": 522 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "only works in paragraphs.", - "position": { - "start": { - "line": 72, - "column": 1, - "offset": 522 - }, - "end": { - "line": 72, - "column": 26, - "offset": 547 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 71, - "column": 1, - "offset": 510 - }, - "end": { - "line": 72, - "column": 26, - "offset": 547 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "These should not, because they occur within a code block:", - "position": { - "start": { - "line": 74, - "column": 1, - "offset": 549 - }, - "end": { - "line": 74, - "column": 58, - "offset": 606 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 74, - "column": 1, - "offset": 549 - }, - "end": { - "line": 74, - "column": 58, - "offset": 606 - }, - "indent": [] - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "Backslash: \\\\\n\nBacktick: \\`\n\nAsterisk: \\*\n\nUnderscore: \\_\n\nLeft brace: \\{\n\nRight brace: \\}\n\nLeft bracket: \\[\n\nRight bracket: \\]\n\nLeft paren: \\(\n\nRight paren: \\)\n\nGreater-than: \\>\n\nHash: \\#\n\nPeriod: \\.\n\nBang: \\!\n\nPlus: \\+\n\nMinus: \\-", - "position": { - "start": { - "line": 76, - "column": 1, - "offset": 608 - }, - "end": { - "line": 106, - "column": 11, - "offset": 855 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "GFM:", - "position": { - "start": { - "line": 108, - "column": 3, - "offset": 859 - }, - "end": { - "line": 108, - "column": 7, - "offset": 863 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 108, - "column": 1, - "offset": 857 - }, - "end": { - "line": 108, - "column": 9, - "offset": 865 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 108, - "column": 1, - "offset": 857 - }, - "end": { - "line": 108, - "column": 9, - "offset": 865 - }, - "indent": [] - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "Pipe: \\|\n\nTilde: \\~", - "position": { - "start": { - "line": 110, - "column": 1, - "offset": 867 - }, - "end": { - "line": 112, - "column": 11, - "offset": 888 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "Commonmark:", - "position": { - "start": { - "line": 114, - "column": 3, - "offset": 892 - }, - "end": { - "line": 114, - "column": 14, - "offset": 903 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 114, - "column": 1, - "offset": 890 - }, - "end": { - "line": 114, - "column": 16, - "offset": 905 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 114, - "column": 1, - "offset": 890 - }, - "end": { - "line": 114, - "column": 16, - "offset": 905 - }, - "indent": [] - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "Quote: \\\"\n\nDollar: \\$\n\nPercentage: \\%\n\nAmpersand: \\&\n\nSingle quote: \\'\n\nComma: \\,\n\nForward slash: \\/\n\nColon: \\:\n\nSemicolon: \\;\n\nLess-than: \\<\n\nEquals: \\=\n\nQuestion mark: \\?\n\nAt-sign: \\@\n\nCaret: \\^\n\nNew line: \\\nonly works in paragraphs.", - "position": { - "start": { - "line": 116, - "column": 1, - "offset": 907 - }, - "end": { - "line": 145, - "column": 27, - "offset": 1158 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Nor should these, which occur in code spans:", - "position": { - "start": { - "line": 148, - "column": 1, - "offset": 1161 - }, - "end": { - "line": 148, - "column": 45, - "offset": 1205 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 148, - "column": 1, - "offset": 1161 - }, - "end": { - "line": 148, - "column": 45, - "offset": 1205 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Backslash: ", - "position": { - "start": { - "line": 150, - "column": 1, - "offset": 1207 - }, - "end": { - "line": 150, - "column": 12, - "offset": 1218 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "\\\\", - "position": { - "start": { - "line": 150, - "column": 12, - "offset": 1218 - }, - "end": { - "line": 150, - "column": 16, - "offset": 1222 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 150, - "column": 1, - "offset": 1207 - }, - "end": { - "line": 150, - "column": 16, - "offset": 1222 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Backtick: ", - "position": { - "start": { - "line": 152, - "column": 1, - "offset": 1224 - }, - "end": { - "line": 152, - "column": 11, - "offset": 1234 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "\\`", - "position": { - "start": { - "line": 152, - "column": 11, - "offset": 1234 - }, - "end": { - "line": 152, - "column": 19, - "offset": 1242 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 152, - "column": 1, - "offset": 1224 - }, - "end": { - "line": 152, - "column": 19, - "offset": 1242 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Asterisk: ", - "position": { - "start": { - "line": 154, - "column": 1, - "offset": 1244 - }, - "end": { - "line": 154, - "column": 11, - "offset": 1254 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "\\*", - "position": { - "start": { - "line": 154, - "column": 11, - "offset": 1254 - }, - "end": { - "line": 154, - "column": 15, - "offset": 1258 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 154, - "column": 1, - "offset": 1244 - }, - "end": { - "line": 154, - "column": 15, - "offset": 1258 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Underscore: ", - "position": { - "start": { - "line": 156, - "column": 1, - "offset": 1260 - }, - "end": { - "line": 156, - "column": 13, - "offset": 1272 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "\\_", - "position": { - "start": { - "line": 156, - "column": 13, - "offset": 1272 - }, - "end": { - "line": 156, - "column": 17, - "offset": 1276 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 156, - "column": 1, - "offset": 1260 - }, - "end": { - "line": 156, - "column": 17, - "offset": 1276 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Left brace: ", - "position": { - "start": { - "line": 158, - "column": 1, - "offset": 1278 - }, - "end": { - "line": 158, - "column": 13, - "offset": 1290 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "\\{", - "position": { - "start": { - "line": 158, - "column": 13, - "offset": 1290 - }, - "end": { - "line": 158, - "column": 17, - "offset": 1294 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 158, - "column": 1, - "offset": 1278 - }, - "end": { - "line": 158, - "column": 17, - "offset": 1294 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Right brace: ", - "position": { - "start": { - "line": 160, - "column": 1, - "offset": 1296 - }, - "end": { - "line": 160, - "column": 14, - "offset": 1309 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "\\}", - "position": { - "start": { - "line": 160, - "column": 14, - "offset": 1309 - }, - "end": { - "line": 160, - "column": 18, - "offset": 1313 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 160, - "column": 1, - "offset": 1296 - }, - "end": { - "line": 160, - "column": 18, - "offset": 1313 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Left bracket: ", - "position": { - "start": { - "line": 162, - "column": 1, - "offset": 1315 - }, - "end": { - "line": 162, - "column": 15, - "offset": 1329 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "\\[", - "position": { - "start": { - "line": 162, - "column": 15, - "offset": 1329 - }, - "end": { - "line": 162, - "column": 19, - "offset": 1333 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 162, - "column": 1, - "offset": 1315 - }, - "end": { - "line": 162, - "column": 19, - "offset": 1333 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Right bracket: ", - "position": { - "start": { - "line": 164, - "column": 1, - "offset": 1335 - }, - "end": { - "line": 164, - "column": 16, - "offset": 1350 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "\\]", - "position": { - "start": { - "line": 164, - "column": 16, - "offset": 1350 - }, - "end": { - "line": 164, - "column": 20, - "offset": 1354 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 164, - "column": 1, - "offset": 1335 - }, - "end": { - "line": 164, - "column": 20, - "offset": 1354 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Left paren: ", - "position": { - "start": { - "line": 166, - "column": 1, - "offset": 1356 - }, - "end": { - "line": 166, - "column": 13, - "offset": 1368 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "\\(", - "position": { - "start": { - "line": 166, - "column": 13, - "offset": 1368 - }, - "end": { - "line": 166, - "column": 17, - "offset": 1372 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 166, - "column": 1, - "offset": 1356 - }, - "end": { - "line": 166, - "column": 17, - "offset": 1372 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Right paren: ", - "position": { - "start": { - "line": 168, - "column": 1, - "offset": 1374 - }, - "end": { - "line": 168, - "column": 14, - "offset": 1387 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "\\)", - "position": { - "start": { - "line": 168, - "column": 14, - "offset": 1387 - }, - "end": { - "line": 168, - "column": 18, - "offset": 1391 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 168, - "column": 1, - "offset": 1374 - }, - "end": { - "line": 168, - "column": 18, - "offset": 1391 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Greater-than: ", - "position": { - "start": { - "line": 170, - "column": 1, - "offset": 1393 - }, - "end": { - "line": 170, - "column": 15, - "offset": 1407 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "\\>", - "position": { - "start": { - "line": 170, - "column": 15, - "offset": 1407 - }, - "end": { - "line": 170, - "column": 19, - "offset": 1411 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 170, - "column": 1, - "offset": 1393 - }, - "end": { - "line": 170, - "column": 19, - "offset": 1411 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hash: ", - "position": { - "start": { - "line": 172, - "column": 1, - "offset": 1413 - }, - "end": { - "line": 172, - "column": 7, - "offset": 1419 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "\\#", - "position": { - "start": { - "line": 172, - "column": 7, - "offset": 1419 - }, - "end": { - "line": 172, - "column": 11, - "offset": 1423 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 172, - "column": 1, - "offset": 1413 - }, - "end": { - "line": 172, - "column": 11, - "offset": 1423 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Period: ", - "position": { - "start": { - "line": 174, - "column": 1, - "offset": 1425 - }, - "end": { - "line": 174, - "column": 9, - "offset": 1433 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "\\.", - "position": { - "start": { - "line": 174, - "column": 9, - "offset": 1433 - }, - "end": { - "line": 174, - "column": 13, - "offset": 1437 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 174, - "column": 1, - "offset": 1425 - }, - "end": { - "line": 174, - "column": 13, - "offset": 1437 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Bang: ", - "position": { - "start": { - "line": 176, - "column": 1, - "offset": 1439 - }, - "end": { - "line": 176, - "column": 7, - "offset": 1445 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "\\!", - "position": { - "start": { - "line": 176, - "column": 7, - "offset": 1445 - }, - "end": { - "line": 176, - "column": 11, - "offset": 1449 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 176, - "column": 1, - "offset": 1439 - }, - "end": { - "line": 176, - "column": 11, - "offset": 1449 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Plus: ", - "position": { - "start": { - "line": 178, - "column": 1, - "offset": 1451 - }, - "end": { - "line": 178, - "column": 7, - "offset": 1457 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "\\+", - "position": { - "start": { - "line": 178, - "column": 7, - "offset": 1457 - }, - "end": { - "line": 178, - "column": 11, - "offset": 1461 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 178, - "column": 1, - "offset": 1451 - }, - "end": { - "line": 178, - "column": 11, - "offset": 1461 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Minus: ", - "position": { - "start": { - "line": 180, - "column": 1, - "offset": 1463 - }, - "end": { - "line": 180, - "column": 8, - "offset": 1470 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "\\-", - "position": { - "start": { - "line": 180, - "column": 8, - "offset": 1470 - }, - "end": { - "line": 180, - "column": 12, - "offset": 1474 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 180, - "column": 1, - "offset": 1463 - }, - "end": { - "line": 180, - "column": 12, - "offset": 1474 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "GFM:", - "position": { - "start": { - "line": 182, - "column": 3, - "offset": 1478 - }, - "end": { - "line": 182, - "column": 7, - "offset": 1482 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 182, - "column": 1, - "offset": 1476 - }, - "end": { - "line": 182, - "column": 9, - "offset": 1484 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 182, - "column": 1, - "offset": 1476 - }, - "end": { - "line": 182, - "column": 9, - "offset": 1484 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Pipe: ", - "position": { - "start": { - "line": 184, - "column": 1, - "offset": 1486 - }, - "end": { - "line": 184, - "column": 7, - "offset": 1492 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "\\|", - "position": { - "start": { - "line": 184, - "column": 7, - "offset": 1492 - }, - "end": { - "line": 184, - "column": 11, - "offset": 1496 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 184, - "column": 1, - "offset": 1486 - }, - "end": { - "line": 184, - "column": 11, - "offset": 1496 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Tilde: ", - "position": { - "start": { - "line": 186, - "column": 1, - "offset": 1498 - }, - "end": { - "line": 186, - "column": 8, - "offset": 1505 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "\\~", - "position": { - "start": { - "line": 186, - "column": 8, - "offset": 1505 - }, - "end": { - "line": 186, - "column": 12, - "offset": 1509 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 186, - "column": 1, - "offset": 1498 - }, - "end": { - "line": 186, - "column": 12, - "offset": 1509 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "Commonmark:", - "position": { - "start": { - "line": 188, - "column": 3, - "offset": 1513 - }, - "end": { - "line": 188, - "column": 14, - "offset": 1524 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 188, - "column": 1, - "offset": 1511 - }, - "end": { - "line": 188, - "column": 16, - "offset": 1526 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 188, - "column": 1, - "offset": 1511 - }, - "end": { - "line": 188, - "column": 16, - "offset": 1526 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Quote: ", - "position": { - "start": { - "line": 190, - "column": 1, - "offset": 1528 - }, - "end": { - "line": 190, - "column": 8, - "offset": 1535 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "\\\"", - "position": { - "start": { - "line": 190, - "column": 8, - "offset": 1535 - }, - "end": { - "line": 190, - "column": 12, - "offset": 1539 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 190, - "column": 1, - "offset": 1528 - }, - "end": { - "line": 190, - "column": 12, - "offset": 1539 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Dollar: ", - "position": { - "start": { - "line": 192, - "column": 1, - "offset": 1541 - }, - "end": { - "line": 192, - "column": 9, - "offset": 1549 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "\\$", - "position": { - "start": { - "line": 192, - "column": 9, - "offset": 1549 - }, - "end": { - "line": 192, - "column": 13, - "offset": 1553 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 192, - "column": 1, - "offset": 1541 - }, - "end": { - "line": 192, - "column": 13, - "offset": 1553 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Percentage: ", - "position": { - "start": { - "line": 194, - "column": 1, - "offset": 1555 - }, - "end": { - "line": 194, - "column": 13, - "offset": 1567 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "\\%", - "position": { - "start": { - "line": 194, - "column": 13, - "offset": 1567 - }, - "end": { - "line": 194, - "column": 17, - "offset": 1571 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 194, - "column": 1, - "offset": 1555 - }, - "end": { - "line": 194, - "column": 17, - "offset": 1571 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Ampersand: ", - "position": { - "start": { - "line": 196, - "column": 1, - "offset": 1573 - }, - "end": { - "line": 196, - "column": 12, - "offset": 1584 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "\\&", - "position": { - "start": { - "line": 196, - "column": 12, - "offset": 1584 - }, - "end": { - "line": 196, - "column": 16, - "offset": 1588 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 196, - "column": 1, - "offset": 1573 - }, - "end": { - "line": 196, - "column": 16, - "offset": 1588 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Single quote: ", - "position": { - "start": { - "line": 198, - "column": 1, - "offset": 1590 - }, - "end": { - "line": 198, - "column": 15, - "offset": 1604 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "\\'", - "position": { - "start": { - "line": 198, - "column": 15, - "offset": 1604 - }, - "end": { - "line": 198, - "column": 19, - "offset": 1608 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 198, - "column": 1, - "offset": 1590 - }, - "end": { - "line": 198, - "column": 19, - "offset": 1608 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Comma: ", - "position": { - "start": { - "line": 200, - "column": 1, - "offset": 1610 - }, - "end": { - "line": 200, - "column": 8, - "offset": 1617 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "\\,", - "position": { - "start": { - "line": 200, - "column": 8, - "offset": 1617 - }, - "end": { - "line": 200, - "column": 12, - "offset": 1621 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 200, - "column": 1, - "offset": 1610 - }, - "end": { - "line": 200, - "column": 12, - "offset": 1621 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Forward slash: ", - "position": { - "start": { - "line": 202, - "column": 1, - "offset": 1623 - }, - "end": { - "line": 202, - "column": 16, - "offset": 1638 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "\\/", - "position": { - "start": { - "line": 202, - "column": 16, - "offset": 1638 - }, - "end": { - "line": 202, - "column": 20, - "offset": 1642 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 202, - "column": 1, - "offset": 1623 - }, - "end": { - "line": 202, - "column": 20, - "offset": 1642 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Colon: ", - "position": { - "start": { - "line": 204, - "column": 1, - "offset": 1644 - }, - "end": { - "line": 204, - "column": 8, - "offset": 1651 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "\\:", - "position": { - "start": { - "line": 204, - "column": 8, - "offset": 1651 - }, - "end": { - "line": 204, - "column": 12, - "offset": 1655 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 204, - "column": 1, - "offset": 1644 - }, - "end": { - "line": 204, - "column": 12, - "offset": 1655 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Semicolon: ", - "position": { - "start": { - "line": 206, - "column": 1, - "offset": 1657 - }, - "end": { - "line": 206, - "column": 12, - "offset": 1668 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "\\;", - "position": { - "start": { - "line": 206, - "column": 12, - "offset": 1668 - }, - "end": { - "line": 206, - "column": 16, - "offset": 1672 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 206, - "column": 1, - "offset": 1657 - }, - "end": { - "line": 206, - "column": 16, - "offset": 1672 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Less-than: ", - "position": { - "start": { - "line": 208, - "column": 1, - "offset": 1674 - }, - "end": { - "line": 208, - "column": 12, - "offset": 1685 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "\\<", - "position": { - "start": { - "line": 208, - "column": 12, - "offset": 1685 - }, - "end": { - "line": 208, - "column": 16, - "offset": 1689 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 208, - "column": 1, - "offset": 1674 - }, - "end": { - "line": 208, - "column": 16, - "offset": 1689 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Equals: ", - "position": { - "start": { - "line": 210, - "column": 1, - "offset": 1691 - }, - "end": { - "line": 210, - "column": 9, - "offset": 1699 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "\\=", - "position": { - "start": { - "line": 210, - "column": 9, - "offset": 1699 - }, - "end": { - "line": 210, - "column": 13, - "offset": 1703 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 210, - "column": 1, - "offset": 1691 - }, - "end": { - "line": 210, - "column": 13, - "offset": 1703 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Question mark: ", - "position": { - "start": { - "line": 212, - "column": 1, - "offset": 1705 - }, - "end": { - "line": 212, - "column": 16, - "offset": 1720 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "\\?", - "position": { - "start": { - "line": 212, - "column": 16, - "offset": 1720 - }, - "end": { - "line": 212, - "column": 20, - "offset": 1724 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 212, - "column": 1, - "offset": 1705 - }, - "end": { - "line": 212, - "column": 20, - "offset": 1724 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "At-sign: ", - "position": { - "start": { - "line": 214, - "column": 1, - "offset": 1726 - }, - "end": { - "line": 214, - "column": 10, - "offset": 1735 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "\\@", - "position": { - "start": { - "line": 214, - "column": 10, - "offset": 1735 - }, - "end": { - "line": 214, - "column": 14, - "offset": 1739 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 214, - "column": 1, - "offset": 1726 - }, - "end": { - "line": 214, - "column": 14, - "offset": 1739 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Caret: ", - "position": { - "start": { - "line": 216, - "column": 1, - "offset": 1741 - }, - "end": { - "line": 216, - "column": 8, - "offset": 1748 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "\\^", - "position": { - "start": { - "line": 216, - "column": 8, - "offset": 1748 - }, - "end": { - "line": 216, - "column": 12, - "offset": 1752 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 216, - "column": 1, - "offset": 1741 - }, - "end": { - "line": 216, - "column": 12, - "offset": 1752 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "New line: ", - "position": { - "start": { - "line": 218, - "column": 1, - "offset": 1754 - }, - "end": { - "line": 218, - "column": 11, - "offset": 1764 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "\\\n", - "position": { - "start": { - "line": 218, - "column": 11, - "offset": 1764 - }, - "end": { - "line": 219, - "column": 2, - "offset": 1768 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": " only works in paragraphs.", - "position": { - "start": { - "line": 219, - "column": 2, - "offset": 1768 - }, - "end": { - "line": 219, - "column": 28, - "offset": 1794 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 218, - "column": 1, - "offset": 1754 - }, - "end": { - "line": 219, - "column": 28, - "offset": 1794 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "These should get escaped, even though they're matching pairs for\nother Markdown constructs:", - "position": { - "start": { - "line": 221, - "column": 1, - "offset": 1796 - }, - "end": { - "line": 222, - "column": 27, - "offset": 1887 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 221, - "column": 1, - "offset": 1796 - }, - "end": { - "line": 222, - "column": 27, - "offset": 1887 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "*", - "position": { - "start": { - "line": 224, - "column": 1, - "offset": 1889 - }, - "end": { - "line": 224, - "column": 3, - "offset": 1891 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "asterisks", - "position": { - "start": { - "line": 224, - "column": 3, - "offset": 1891 - }, - "end": { - "line": 224, - "column": 12, - "offset": 1900 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "*", - "position": { - "start": { - "line": 224, - "column": 12, - "offset": 1900 - }, - "end": { - "line": 224, - "column": 14, - "offset": 1902 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 224, - "column": 1, - "offset": 1889 - }, - "end": { - "line": 224, - "column": 14, - "offset": 1902 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "_", - "position": { - "start": { - "line": 226, - "column": 1, - "offset": 1904 - }, - "end": { - "line": 226, - "column": 3, - "offset": 1906 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "underscores", - "position": { - "start": { - "line": 226, - "column": 3, - "offset": 1906 - }, - "end": { - "line": 226, - "column": 14, - "offset": 1917 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "_", - "position": { - "start": { - "line": 226, - "column": 14, - "offset": 1917 - }, - "end": { - "line": 226, - "column": 16, - "offset": 1919 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 226, - "column": 1, - "offset": 1904 - }, - "end": { - "line": 226, - "column": 16, - "offset": 1919 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "`", - "position": { - "start": { - "line": 228, - "column": 1, - "offset": 1921 - }, - "end": { - "line": 228, - "column": 3, - "offset": 1923 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "backticks", - "position": { - "start": { - "line": 228, - "column": 3, - "offset": 1923 - }, - "end": { - "line": 228, - "column": 12, - "offset": 1932 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "`", - "position": { - "start": { - "line": 228, - "column": 12, - "offset": 1932 - }, - "end": { - "line": 228, - "column": 14, - "offset": 1934 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 228, - "column": 1, - "offset": 1921 - }, - "end": { - "line": 228, - "column": 14, - "offset": 1934 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This is a code span with a literal backslash-backtick sequence: ", - "position": { - "start": { - "line": 230, - "column": 1, - "offset": 1936 - }, - "end": { - "line": 230, - "column": 65, - "offset": 2000 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "\\`", - "position": { - "start": { - "line": 230, - "column": 65, - "offset": 2000 - }, - "end": { - "line": 230, - "column": 73, - "offset": 2008 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 230, - "column": 1, - "offset": 1936 - }, - "end": { - "line": 230, - "column": 73, - "offset": 2008 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This is a tag with unescaped backticks ", - "position": { - "start": { - "line": 232, - "column": 1, - "offset": 2010 - }, - "end": { - "line": 232, - "column": 40, - "offset": 2049 - }, - "indent": [] - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 232, - "column": 40, - "offset": 2049 - }, - "end": { - "line": 232, - "column": 61, - "offset": 2070 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "bar", - "position": { - "start": { - "line": 232, - "column": 61, - "offset": 2070 - }, - "end": { - "line": 232, - "column": 64, - "offset": 2073 - }, - "indent": [] - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 232, - "column": 64, - "offset": 2073 - }, - "end": { - "line": 232, - "column": 71, - "offset": 2080 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 232, - "column": 71, - "offset": 2080 - }, - "end": { - "line": 232, - "column": 72, - "offset": 2081 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 232, - "column": 1, - "offset": 2010 - }, - "end": { - "line": 232, - "column": 72, - "offset": 2081 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This is a tag with backslashes ", - "position": { - "start": { - "line": 234, - "column": 1, - "offset": 2083 - }, - "end": { - "line": 234, - "column": 32, - "offset": 2114 - }, - "indent": [] - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 234, - "column": 32, - "offset": 2114 - }, - "end": { - "line": 234, - "column": 61, - "offset": 2143 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "bar", - "position": { - "start": { - "line": 234, - "column": 61, - "offset": 2143 - }, - "end": { - "line": 234, - "column": 64, - "offset": 2146 - }, - "indent": [] - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 234, - "column": 64, - "offset": 2146 - }, - "end": { - "line": 234, - "column": 71, - "offset": 2153 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 234, - "column": 71, - "offset": 2153 - }, - "end": { - "line": 234, - "column": 72, - "offset": 2154 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 234, - "column": 1, - "offset": 2083 - }, - "end": { - "line": 234, - "column": 72, - "offset": 2154 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 235, - "column": 1, - "offset": 2155 - } - } -} diff --git a/test/fixtures/tree/backslash-escapes.json b/test/fixtures/tree/backslash-escapes.json index fe17fcce2..3022e1f1b 100644 --- a/test/fixtures/tree/backslash-escapes.json +++ b/test/fixtures/tree/backslash-escapes.json @@ -17,8 +17,7 @@ "line": 1, "column": 30, "offset": 29 - }, - "indent": [] + } } } ], @@ -32,8 +31,7 @@ "line": 1, "column": 30, "offset": 29 - }, - "indent": [] + } } }, { @@ -41,36 +39,18 @@ "children": [ { "type": "text", - "value": "Backslash: ", + "value": "Backslash: \\", "position": { "start": { "line": 3, "column": 1, "offset": 31 }, - "end": { - "line": 3, - "column": 12, - "offset": 42 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\\", - "position": { - "start": { - "line": 3, - "column": 12, - "offset": 42 - }, "end": { "line": 3, "column": 14, "offset": 44 - }, - "indent": [] + } } } ], @@ -84,8 +64,7 @@ "line": 3, "column": 14, "offset": 44 - }, - "indent": [] + } } }, { @@ -93,36 +72,18 @@ "children": [ { "type": "text", - "value": "Backtick: ", + "value": "Backtick: `", "position": { "start": { "line": 5, "column": 1, "offset": 46 }, - "end": { - "line": 5, - "column": 11, - "offset": 56 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "`", - "position": { - "start": { - "line": 5, - "column": 11, - "offset": 56 - }, "end": { "line": 5, "column": 13, "offset": 58 - }, - "indent": [] + } } } ], @@ -136,8 +97,7 @@ "line": 5, "column": 13, "offset": 58 - }, - "indent": [] + } } }, { @@ -145,36 +105,18 @@ "children": [ { "type": "text", - "value": "Asterisk: ", + "value": "Asterisk: *", "position": { "start": { "line": 7, "column": 1, "offset": 60 }, - "end": { - "line": 7, - "column": 11, - "offset": 70 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "*", - "position": { - "start": { - "line": 7, - "column": 11, - "offset": 70 - }, "end": { "line": 7, "column": 13, "offset": 72 - }, - "indent": [] + } } } ], @@ -188,8 +130,7 @@ "line": 7, "column": 13, "offset": 72 - }, - "indent": [] + } } }, { @@ -197,36 +138,18 @@ "children": [ { "type": "text", - "value": "Underscore: ", + "value": "Underscore: _", "position": { "start": { "line": 9, "column": 1, "offset": 74 }, - "end": { - "line": 9, - "column": 13, - "offset": 86 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "_", - "position": { - "start": { - "line": 9, - "column": 13, - "offset": 86 - }, "end": { "line": 9, "column": 15, "offset": 88 - }, - "indent": [] + } } } ], @@ -240,8 +163,7 @@ "line": 9, "column": 15, "offset": 88 - }, - "indent": [] + } } }, { @@ -249,36 +171,18 @@ "children": [ { "type": "text", - "value": "Left brace: ", + "value": "Left brace: {", "position": { "start": { "line": 11, "column": 1, "offset": 90 }, - "end": { - "line": 11, - "column": 13, - "offset": 102 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "{", - "position": { - "start": { - "line": 11, - "column": 13, - "offset": 102 - }, "end": { "line": 11, "column": 15, "offset": 104 - }, - "indent": [] + } } } ], @@ -292,8 +196,7 @@ "line": 11, "column": 15, "offset": 104 - }, - "indent": [] + } } }, { @@ -301,36 +204,18 @@ "children": [ { "type": "text", - "value": "Right brace: ", + "value": "Right brace: }", "position": { "start": { "line": 13, "column": 1, "offset": 106 }, - "end": { - "line": 13, - "column": 14, - "offset": 119 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "}", - "position": { - "start": { - "line": 13, - "column": 14, - "offset": 119 - }, "end": { "line": 13, "column": 16, "offset": 121 - }, - "indent": [] + } } } ], @@ -344,8 +229,7 @@ "line": 13, "column": 16, "offset": 121 - }, - "indent": [] + } } }, { @@ -353,36 +237,18 @@ "children": [ { "type": "text", - "value": "Left bracket: ", + "value": "Left bracket: [", "position": { "start": { "line": 15, "column": 1, "offset": 123 }, - "end": { - "line": 15, - "column": 15, - "offset": 137 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "[", - "position": { - "start": { - "line": 15, - "column": 15, - "offset": 137 - }, "end": { "line": 15, "column": 17, "offset": 139 - }, - "indent": [] + } } } ], @@ -396,8 +262,7 @@ "line": 15, "column": 17, "offset": 139 - }, - "indent": [] + } } }, { @@ -405,36 +270,18 @@ "children": [ { "type": "text", - "value": "Right bracket: ", + "value": "Right bracket: ]", "position": { "start": { "line": 17, "column": 1, "offset": 141 }, - "end": { - "line": 17, - "column": 16, - "offset": 156 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "]", - "position": { - "start": { - "line": 17, - "column": 16, - "offset": 156 - }, "end": { "line": 17, "column": 18, "offset": 158 - }, - "indent": [] + } } } ], @@ -448,8 +295,7 @@ "line": 17, "column": 18, "offset": 158 - }, - "indent": [] + } } }, { @@ -457,36 +303,18 @@ "children": [ { "type": "text", - "value": "Left paren: ", + "value": "Left paren: (", "position": { "start": { "line": 19, "column": 1, "offset": 160 }, - "end": { - "line": 19, - "column": 13, - "offset": 172 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(", - "position": { - "start": { - "line": 19, - "column": 13, - "offset": 172 - }, "end": { "line": 19, "column": 15, "offset": 174 - }, - "indent": [] + } } } ], @@ -500,8 +328,7 @@ "line": 19, "column": 15, "offset": 174 - }, - "indent": [] + } } }, { @@ -509,36 +336,18 @@ "children": [ { "type": "text", - "value": "Right paren: ", + "value": "Right paren: )", "position": { "start": { "line": 21, "column": 1, "offset": 176 }, - "end": { - "line": 21, - "column": 14, - "offset": 189 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ")", - "position": { - "start": { - "line": 21, - "column": 14, - "offset": 189 - }, "end": { "line": 21, "column": 16, "offset": 191 - }, - "indent": [] + } } } ], @@ -552,8 +361,7 @@ "line": 21, "column": 16, "offset": 191 - }, - "indent": [] + } } }, { @@ -561,36 +369,18 @@ "children": [ { "type": "text", - "value": "Greater-than: ", + "value": "Greater-than: >", "position": { "start": { "line": 23, "column": 1, "offset": 193 }, - "end": { - "line": 23, - "column": 15, - "offset": 207 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ">", - "position": { - "start": { - "line": 23, - "column": 15, - "offset": 207 - }, "end": { "line": 23, "column": 17, "offset": 209 - }, - "indent": [] + } } } ], @@ -604,8 +394,7 @@ "line": 23, "column": 17, "offset": 209 - }, - "indent": [] + } } }, { @@ -613,36 +402,18 @@ "children": [ { "type": "text", - "value": "Hash: ", + "value": "Hash: #", "position": { "start": { "line": 25, "column": 1, "offset": 211 }, - "end": { - "line": 25, - "column": 7, - "offset": 217 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "#", - "position": { - "start": { - "line": 25, - "column": 7, - "offset": 217 - }, "end": { "line": 25, "column": 9, "offset": 219 - }, - "indent": [] + } } } ], @@ -656,8 +427,7 @@ "line": 25, "column": 9, "offset": 219 - }, - "indent": [] + } } }, { @@ -665,36 +435,18 @@ "children": [ { "type": "text", - "value": "Period: ", + "value": "Period: .", "position": { "start": { "line": 27, "column": 1, "offset": 221 }, - "end": { - "line": 27, - "column": 9, - "offset": 229 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 27, - "column": 9, - "offset": 229 - }, "end": { "line": 27, "column": 11, "offset": 231 - }, - "indent": [] + } } } ], @@ -708,8 +460,7 @@ "line": 27, "column": 11, "offset": 231 - }, - "indent": [] + } } }, { @@ -717,36 +468,18 @@ "children": [ { "type": "text", - "value": "Bang: ", + "value": "Bang: !", "position": { "start": { "line": 29, "column": 1, "offset": 233 }, - "end": { - "line": 29, - "column": 7, - "offset": 239 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "!", - "position": { - "start": { - "line": 29, - "column": 7, - "offset": 239 - }, "end": { "line": 29, "column": 9, "offset": 241 - }, - "indent": [] + } } } ], @@ -760,45 +493,26 @@ "line": 29, "column": 9, "offset": 241 - }, - "indent": [] + } } }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Plus: ", - "position": { - "start": { - "line": 31, - "column": 1, - "offset": 243 - }, - "end": { - "line": 31, - "column": 7, - "offset": 249 - }, - "indent": [] - } - }, + { + "type": "paragraph", + "children": [ { "type": "text", - "value": "+", + "value": "Plus: +", "position": { "start": { "line": 31, - "column": 7, - "offset": 249 + "column": 1, + "offset": 243 }, "end": { "line": 31, "column": 9, "offset": 251 - }, - "indent": [] + } } } ], @@ -812,8 +526,7 @@ "line": 31, "column": 9, "offset": 251 - }, - "indent": [] + } } }, { @@ -821,36 +534,18 @@ "children": [ { "type": "text", - "value": "Minus: ", + "value": "Minus: -", "position": { "start": { "line": 33, "column": 1, "offset": 253 }, - "end": { - "line": 33, - "column": 8, - "offset": 260 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "-", - "position": { - "start": { - "line": 33, - "column": 8, - "offset": 260 - }, "end": { "line": 33, "column": 10, "offset": 262 - }, - "indent": [] + } } } ], @@ -864,8 +559,7 @@ "line": 33, "column": 10, "offset": 262 - }, - "indent": [] + } } }, { @@ -887,8 +581,7 @@ "line": 35, "column": 7, "offset": 270 - }, - "indent": [] + } } } ], @@ -902,8 +595,7 @@ "line": 35, "column": 9, "offset": 272 - }, - "indent": [] + } } } ], @@ -917,8 +609,7 @@ "line": 35, "column": 9, "offset": 272 - }, - "indent": [] + } } }, { @@ -926,36 +617,18 @@ "children": [ { "type": "text", - "value": "Pipe: ", + "value": "Pipe: |", "position": { "start": { "line": 37, "column": 1, "offset": 274 }, - "end": { - "line": 37, - "column": 7, - "offset": 280 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "|", - "position": { - "start": { - "line": 37, - "column": 7, - "offset": 280 - }, "end": { "line": 37, "column": 9, "offset": 282 - }, - "indent": [] + } } } ], @@ -969,8 +642,7 @@ "line": 37, "column": 9, "offset": 282 - }, - "indent": [] + } } }, { @@ -978,36 +650,18 @@ "children": [ { "type": "text", - "value": "Tilde: ", + "value": "Tilde: ~", "position": { "start": { "line": 39, "column": 1, "offset": 284 }, - "end": { - "line": 39, - "column": 8, - "offset": 291 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "~", - "position": { - "start": { - "line": 39, - "column": 8, - "offset": 291 - }, "end": { "line": 39, "column": 10, "offset": 293 - }, - "indent": [] + } } } ], @@ -1021,8 +675,7 @@ "line": 39, "column": 10, "offset": 293 - }, - "indent": [] + } } }, { @@ -1044,8 +697,7 @@ "line": 41, "column": 14, "offset": 308 - }, - "indent": [] + } } } ], @@ -1059,8 +711,7 @@ "line": 41, "column": 16, "offset": 310 - }, - "indent": [] + } } } ], @@ -1074,8 +725,7 @@ "line": 41, "column": 16, "offset": 310 - }, - "indent": [] + } } }, { @@ -1083,7 +733,7 @@ "children": [ { "type": "text", - "value": "Quote: \\\"", + "value": "Quote: \"", "position": { "start": { "line": 43, @@ -1094,8 +744,7 @@ "line": 43, "column": 10, "offset": 321 - }, - "indent": [] + } } } ], @@ -1109,8 +758,7 @@ "line": 43, "column": 10, "offset": 321 - }, - "indent": [] + } } }, { @@ -1118,7 +766,7 @@ "children": [ { "type": "text", - "value": "Dollar: \\$", + "value": "Dollar: $", "position": { "start": { "line": 45, @@ -1129,8 +777,7 @@ "line": 45, "column": 11, "offset": 333 - }, - "indent": [] + } } } ], @@ -1144,8 +791,7 @@ "line": 45, "column": 11, "offset": 333 - }, - "indent": [] + } } }, { @@ -1153,7 +799,7 @@ "children": [ { "type": "text", - "value": "Percentage: \\%", + "value": "Percentage: %", "position": { "start": { "line": 47, @@ -1164,8 +810,7 @@ "line": 47, "column": 15, "offset": 349 - }, - "indent": [] + } } } ], @@ -1179,8 +824,7 @@ "line": 47, "column": 15, "offset": 349 - }, - "indent": [] + } } }, { @@ -1188,7 +832,7 @@ "children": [ { "type": "text", - "value": "Ampersand: \\&", + "value": "Ampersand: &", "position": { "start": { "line": 49, @@ -1199,8 +843,7 @@ "line": 49, "column": 14, "offset": 364 - }, - "indent": [] + } } } ], @@ -1214,8 +857,7 @@ "line": 49, "column": 14, "offset": 364 - }, - "indent": [] + } } }, { @@ -1223,7 +865,7 @@ "children": [ { "type": "text", - "value": "Single quote: \\'", + "value": "Single quote: '", "position": { "start": { "line": 51, @@ -1234,8 +876,7 @@ "line": 51, "column": 17, "offset": 382 - }, - "indent": [] + } } } ], @@ -1249,8 +890,7 @@ "line": 51, "column": 17, "offset": 382 - }, - "indent": [] + } } }, { @@ -1258,7 +898,7 @@ "children": [ { "type": "text", - "value": "Comma: \\,", + "value": "Comma: ,", "position": { "start": { "line": 53, @@ -1269,8 +909,7 @@ "line": 53, "column": 10, "offset": 393 - }, - "indent": [] + } } } ], @@ -1284,8 +923,7 @@ "line": 53, "column": 10, "offset": 393 - }, - "indent": [] + } } }, { @@ -1293,7 +931,7 @@ "children": [ { "type": "text", - "value": "Forward slash: \\/", + "value": "Forward slash: /", "position": { "start": { "line": 55, @@ -1304,8 +942,7 @@ "line": 55, "column": 18, "offset": 412 - }, - "indent": [] + } } } ], @@ -1319,8 +956,7 @@ "line": 55, "column": 18, "offset": 412 - }, - "indent": [] + } } }, { @@ -1328,7 +964,7 @@ "children": [ { "type": "text", - "value": "Colon: \\:", + "value": "Colon: :", "position": { "start": { "line": 57, @@ -1339,8 +975,7 @@ "line": 57, "column": 10, "offset": 423 - }, - "indent": [] + } } } ], @@ -1354,8 +989,7 @@ "line": 57, "column": 10, "offset": 423 - }, - "indent": [] + } } }, { @@ -1363,7 +997,7 @@ "children": [ { "type": "text", - "value": "Semicolon: \\;", + "value": "Semicolon: ;", "position": { "start": { "line": 59, @@ -1374,8 +1008,7 @@ "line": 59, "column": 14, "offset": 438 - }, - "indent": [] + } } } ], @@ -1389,8 +1022,7 @@ "line": 59, "column": 14, "offset": 438 - }, - "indent": [] + } } }, { @@ -1398,7 +1030,7 @@ "children": [ { "type": "text", - "value": "Less-than: \\<", + "value": "Less-than: <", "position": { "start": { "line": 61, @@ -1409,8 +1041,7 @@ "line": 61, "column": 14, "offset": 453 - }, - "indent": [] + } } } ], @@ -1424,8 +1055,7 @@ "line": 61, "column": 14, "offset": 453 - }, - "indent": [] + } } }, { @@ -1433,7 +1063,7 @@ "children": [ { "type": "text", - "value": "Equals: \\=", + "value": "Equals: =", "position": { "start": { "line": 63, @@ -1444,8 +1074,7 @@ "line": 63, "column": 11, "offset": 465 - }, - "indent": [] + } } } ], @@ -1459,8 +1088,7 @@ "line": 63, "column": 11, "offset": 465 - }, - "indent": [] + } } }, { @@ -1468,7 +1096,7 @@ "children": [ { "type": "text", - "value": "Question mark: \\?", + "value": "Question mark: ?", "position": { "start": { "line": 65, @@ -1479,8 +1107,7 @@ "line": 65, "column": 18, "offset": 484 - }, - "indent": [] + } } } ], @@ -1494,8 +1121,7 @@ "line": 65, "column": 18, "offset": 484 - }, - "indent": [] + } } }, { @@ -1503,7 +1129,7 @@ "children": [ { "type": "text", - "value": "At-sign: \\@", + "value": "At-sign: @", "position": { "start": { "line": 67, @@ -1514,8 +1140,7 @@ "line": 67, "column": 12, "offset": 497 - }, - "indent": [] + } } } ], @@ -1529,8 +1154,7 @@ "line": 67, "column": 12, "offset": 497 - }, - "indent": [] + } } }, { @@ -1538,7 +1162,7 @@ "children": [ { "type": "text", - "value": "Caret: \\^", + "value": "Caret: ^", "position": { "start": { "line": 69, @@ -1549,8 +1173,7 @@ "line": 69, "column": 10, "offset": 508 - }, - "indent": [] + } } } ], @@ -1564,8 +1187,7 @@ "line": 69, "column": 10, "offset": 508 - }, - "indent": [] + } } }, { @@ -1573,21 +1195,49 @@ "children": [ { "type": "text", - "value": "New line: \\\nonly works in paragraphs.", + "value": "New line: ", "position": { "start": { "line": 71, "column": 1, "offset": 510 }, + "end": { + "line": 71, + "column": 11, + "offset": 520 + } + } + }, + { + "type": "break", + "position": { + "start": { + "line": 71, + "column": 11, + "offset": 520 + }, + "end": { + "line": 72, + "column": 1, + "offset": 522 + } + } + }, + { + "type": "text", + "value": "only works in paragraphs.", + "position": { + "start": { + "line": 72, + "column": 1, + "offset": 522 + }, "end": { "line": 72, "column": 26, "offset": 547 - }, - "indent": [ - 1 - ] + } } } ], @@ -1601,10 +1251,7 @@ "line": 72, "column": 26, "offset": 547 - }, - "indent": [ - 1 - ] + } } }, { @@ -1623,8 +1270,7 @@ "line": 74, "column": 58, "offset": 606 - }, - "indent": [] + } } } ], @@ -1638,8 +1284,7 @@ "line": 74, "column": 58, "offset": 606 - }, - "indent": [] + } } }, { @@ -1657,39 +1302,7 @@ "line": 106, "column": 11, "offset": 855 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] + } } }, { @@ -1711,8 +1324,7 @@ "line": 108, "column": 7, "offset": 863 - }, - "indent": [] + } } } ], @@ -1726,8 +1338,7 @@ "line": 108, "column": 9, "offset": 865 - }, - "indent": [] + } } } ], @@ -1741,8 +1352,7 @@ "line": 108, "column": 9, "offset": 865 - }, - "indent": [] + } } }, { @@ -1760,11 +1370,7 @@ "line": 112, "column": 11, "offset": 888 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -1786,8 +1392,7 @@ "line": 114, "column": 14, "offset": 903 - }, - "indent": [] + } } } ], @@ -1801,8 +1406,7 @@ "line": 114, "column": 16, "offset": 905 - }, - "indent": [] + } } } ], @@ -1816,8 +1420,7 @@ "line": 114, "column": 16, "offset": 905 - }, - "indent": [] + } } }, { @@ -1835,38 +1438,7 @@ "line": 145, "column": 27, "offset": 1158 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] + } } }, { @@ -1885,8 +1457,7 @@ "line": 148, "column": 45, "offset": 1205 - }, - "indent": [] + } } } ], @@ -1900,8 +1471,7 @@ "line": 148, "column": 45, "offset": 1205 - }, - "indent": [] + } } }, { @@ -1920,8 +1490,7 @@ "line": 150, "column": 12, "offset": 1218 - }, - "indent": [] + } } }, { @@ -1937,8 +1506,7 @@ "line": 150, "column": 16, "offset": 1222 - }, - "indent": [] + } } } ], @@ -1952,8 +1520,7 @@ "line": 150, "column": 16, "offset": 1222 - }, - "indent": [] + } } }, { @@ -1972,8 +1539,7 @@ "line": 152, "column": 11, "offset": 1234 - }, - "indent": [] + } } }, { @@ -1989,8 +1555,7 @@ "line": 152, "column": 19, "offset": 1242 - }, - "indent": [] + } } } ], @@ -2004,8 +1569,7 @@ "line": 152, "column": 19, "offset": 1242 - }, - "indent": [] + } } }, { @@ -2024,8 +1588,7 @@ "line": 154, "column": 11, "offset": 1254 - }, - "indent": [] + } } }, { @@ -2041,8 +1604,7 @@ "line": 154, "column": 15, "offset": 1258 - }, - "indent": [] + } } } ], @@ -2056,8 +1618,7 @@ "line": 154, "column": 15, "offset": 1258 - }, - "indent": [] + } } }, { @@ -2076,8 +1637,7 @@ "line": 156, "column": 13, "offset": 1272 - }, - "indent": [] + } } }, { @@ -2093,8 +1653,7 @@ "line": 156, "column": 17, "offset": 1276 - }, - "indent": [] + } } } ], @@ -2108,8 +1667,7 @@ "line": 156, "column": 17, "offset": 1276 - }, - "indent": [] + } } }, { @@ -2128,8 +1686,7 @@ "line": 158, "column": 13, "offset": 1290 - }, - "indent": [] + } } }, { @@ -2145,8 +1702,7 @@ "line": 158, "column": 17, "offset": 1294 - }, - "indent": [] + } } } ], @@ -2160,8 +1716,7 @@ "line": 158, "column": 17, "offset": 1294 - }, - "indent": [] + } } }, { @@ -2180,8 +1735,7 @@ "line": 160, "column": 14, "offset": 1309 - }, - "indent": [] + } } }, { @@ -2197,8 +1751,7 @@ "line": 160, "column": 18, "offset": 1313 - }, - "indent": [] + } } } ], @@ -2212,8 +1765,7 @@ "line": 160, "column": 18, "offset": 1313 - }, - "indent": [] + } } }, { @@ -2232,8 +1784,7 @@ "line": 162, "column": 15, "offset": 1329 - }, - "indent": [] + } } }, { @@ -2249,8 +1800,7 @@ "line": 162, "column": 19, "offset": 1333 - }, - "indent": [] + } } } ], @@ -2264,8 +1814,7 @@ "line": 162, "column": 19, "offset": 1333 - }, - "indent": [] + } } }, { @@ -2284,8 +1833,7 @@ "line": 164, "column": 16, "offset": 1350 - }, - "indent": [] + } } }, { @@ -2301,8 +1849,7 @@ "line": 164, "column": 20, "offset": 1354 - }, - "indent": [] + } } } ], @@ -2316,8 +1863,7 @@ "line": 164, "column": 20, "offset": 1354 - }, - "indent": [] + } } }, { @@ -2336,8 +1882,7 @@ "line": 166, "column": 13, "offset": 1368 - }, - "indent": [] + } } }, { @@ -2353,8 +1898,7 @@ "line": 166, "column": 17, "offset": 1372 - }, - "indent": [] + } } } ], @@ -2368,8 +1912,7 @@ "line": 166, "column": 17, "offset": 1372 - }, - "indent": [] + } } }, { @@ -2388,8 +1931,7 @@ "line": 168, "column": 14, "offset": 1387 - }, - "indent": [] + } } }, { @@ -2405,8 +1947,7 @@ "line": 168, "column": 18, "offset": 1391 - }, - "indent": [] + } } } ], @@ -2420,8 +1961,7 @@ "line": 168, "column": 18, "offset": 1391 - }, - "indent": [] + } } }, { @@ -2440,8 +1980,7 @@ "line": 170, "column": 15, "offset": 1407 - }, - "indent": [] + } } }, { @@ -2457,8 +1996,7 @@ "line": 170, "column": 19, "offset": 1411 - }, - "indent": [] + } } } ], @@ -2472,8 +2010,7 @@ "line": 170, "column": 19, "offset": 1411 - }, - "indent": [] + } } }, { @@ -2492,8 +2029,7 @@ "line": 172, "column": 7, "offset": 1419 - }, - "indent": [] + } } }, { @@ -2509,8 +2045,7 @@ "line": 172, "column": 11, "offset": 1423 - }, - "indent": [] + } } } ], @@ -2524,8 +2059,7 @@ "line": 172, "column": 11, "offset": 1423 - }, - "indent": [] + } } }, { @@ -2544,8 +2078,7 @@ "line": 174, "column": 9, "offset": 1433 - }, - "indent": [] + } } }, { @@ -2561,8 +2094,7 @@ "line": 174, "column": 13, "offset": 1437 - }, - "indent": [] + } } } ], @@ -2576,8 +2108,7 @@ "line": 174, "column": 13, "offset": 1437 - }, - "indent": [] + } } }, { @@ -2596,8 +2127,7 @@ "line": 176, "column": 7, "offset": 1445 - }, - "indent": [] + } } }, { @@ -2613,8 +2143,7 @@ "line": 176, "column": 11, "offset": 1449 - }, - "indent": [] + } } } ], @@ -2628,8 +2157,7 @@ "line": 176, "column": 11, "offset": 1449 - }, - "indent": [] + } } }, { @@ -2648,8 +2176,7 @@ "line": 178, "column": 7, "offset": 1457 - }, - "indent": [] + } } }, { @@ -2665,8 +2192,7 @@ "line": 178, "column": 11, "offset": 1461 - }, - "indent": [] + } } } ], @@ -2680,8 +2206,7 @@ "line": 178, "column": 11, "offset": 1461 - }, - "indent": [] + } } }, { @@ -2700,8 +2225,7 @@ "line": 180, "column": 8, "offset": 1470 - }, - "indent": [] + } } }, { @@ -2717,8 +2241,7 @@ "line": 180, "column": 12, "offset": 1474 - }, - "indent": [] + } } } ], @@ -2732,8 +2255,7 @@ "line": 180, "column": 12, "offset": 1474 - }, - "indent": [] + } } }, { @@ -2755,8 +2277,7 @@ "line": 182, "column": 7, "offset": 1482 - }, - "indent": [] + } } } ], @@ -2770,8 +2291,7 @@ "line": 182, "column": 9, "offset": 1484 - }, - "indent": [] + } } } ], @@ -2785,8 +2305,7 @@ "line": 182, "column": 9, "offset": 1484 - }, - "indent": [] + } } }, { @@ -2805,8 +2324,7 @@ "line": 184, "column": 7, "offset": 1492 - }, - "indent": [] + } } }, { @@ -2822,8 +2340,7 @@ "line": 184, "column": 11, "offset": 1496 - }, - "indent": [] + } } } ], @@ -2837,8 +2354,7 @@ "line": 184, "column": 11, "offset": 1496 - }, - "indent": [] + } } }, { @@ -2857,8 +2373,7 @@ "line": 186, "column": 8, "offset": 1505 - }, - "indent": [] + } } }, { @@ -2874,8 +2389,7 @@ "line": 186, "column": 12, "offset": 1509 - }, - "indent": [] + } } } ], @@ -2889,8 +2403,7 @@ "line": 186, "column": 12, "offset": 1509 - }, - "indent": [] + } } }, { @@ -2912,8 +2425,7 @@ "line": 188, "column": 14, "offset": 1524 - }, - "indent": [] + } } } ], @@ -2927,8 +2439,7 @@ "line": 188, "column": 16, "offset": 1526 - }, - "indent": [] + } } } ], @@ -2942,8 +2453,7 @@ "line": 188, "column": 16, "offset": 1526 - }, - "indent": [] + } } }, { @@ -2962,8 +2472,7 @@ "line": 190, "column": 8, "offset": 1535 - }, - "indent": [] + } } }, { @@ -2979,8 +2488,7 @@ "line": 190, "column": 12, "offset": 1539 - }, - "indent": [] + } } } ], @@ -2994,8 +2502,7 @@ "line": 190, "column": 12, "offset": 1539 - }, - "indent": [] + } } }, { @@ -3014,8 +2521,7 @@ "line": 192, "column": 9, "offset": 1549 - }, - "indent": [] + } } }, { @@ -3031,8 +2537,7 @@ "line": 192, "column": 13, "offset": 1553 - }, - "indent": [] + } } } ], @@ -3046,8 +2551,7 @@ "line": 192, "column": 13, "offset": 1553 - }, - "indent": [] + } } }, { @@ -3066,8 +2570,7 @@ "line": 194, "column": 13, "offset": 1567 - }, - "indent": [] + } } }, { @@ -3083,8 +2586,7 @@ "line": 194, "column": 17, "offset": 1571 - }, - "indent": [] + } } } ], @@ -3098,8 +2600,7 @@ "line": 194, "column": 17, "offset": 1571 - }, - "indent": [] + } } }, { @@ -3118,8 +2619,7 @@ "line": 196, "column": 12, "offset": 1584 - }, - "indent": [] + } } }, { @@ -3135,8 +2635,7 @@ "line": 196, "column": 16, "offset": 1588 - }, - "indent": [] + } } } ], @@ -3150,8 +2649,7 @@ "line": 196, "column": 16, "offset": 1588 - }, - "indent": [] + } } }, { @@ -3170,8 +2668,7 @@ "line": 198, "column": 15, "offset": 1604 - }, - "indent": [] + } } }, { @@ -3187,8 +2684,7 @@ "line": 198, "column": 19, "offset": 1608 - }, - "indent": [] + } } } ], @@ -3202,8 +2698,7 @@ "line": 198, "column": 19, "offset": 1608 - }, - "indent": [] + } } }, { @@ -3222,8 +2717,7 @@ "line": 200, "column": 8, "offset": 1617 - }, - "indent": [] + } } }, { @@ -3239,8 +2733,7 @@ "line": 200, "column": 12, "offset": 1621 - }, - "indent": [] + } } } ], @@ -3254,8 +2747,7 @@ "line": 200, "column": 12, "offset": 1621 - }, - "indent": [] + } } }, { @@ -3274,8 +2766,7 @@ "line": 202, "column": 16, "offset": 1638 - }, - "indent": [] + } } }, { @@ -3291,8 +2782,7 @@ "line": 202, "column": 20, "offset": 1642 - }, - "indent": [] + } } } ], @@ -3306,8 +2796,7 @@ "line": 202, "column": 20, "offset": 1642 - }, - "indent": [] + } } }, { @@ -3326,8 +2815,7 @@ "line": 204, "column": 8, "offset": 1651 - }, - "indent": [] + } } }, { @@ -3343,8 +2831,7 @@ "line": 204, "column": 12, "offset": 1655 - }, - "indent": [] + } } } ], @@ -3358,8 +2845,7 @@ "line": 204, "column": 12, "offset": 1655 - }, - "indent": [] + } } }, { @@ -3378,8 +2864,7 @@ "line": 206, "column": 12, "offset": 1668 - }, - "indent": [] + } } }, { @@ -3395,8 +2880,7 @@ "line": 206, "column": 16, "offset": 1672 - }, - "indent": [] + } } } ], @@ -3410,8 +2894,7 @@ "line": 206, "column": 16, "offset": 1672 - }, - "indent": [] + } } }, { @@ -3430,8 +2913,7 @@ "line": 208, "column": 12, "offset": 1685 - }, - "indent": [] + } } }, { @@ -3447,8 +2929,7 @@ "line": 208, "column": 16, "offset": 1689 - }, - "indent": [] + } } } ], @@ -3462,8 +2943,7 @@ "line": 208, "column": 16, "offset": 1689 - }, - "indent": [] + } } }, { @@ -3482,8 +2962,7 @@ "line": 210, "column": 9, "offset": 1699 - }, - "indent": [] + } } }, { @@ -3499,8 +2978,7 @@ "line": 210, "column": 13, "offset": 1703 - }, - "indent": [] + } } } ], @@ -3514,8 +2992,7 @@ "line": 210, "column": 13, "offset": 1703 - }, - "indent": [] + } } }, { @@ -3534,8 +3011,7 @@ "line": 212, "column": 16, "offset": 1720 - }, - "indent": [] + } } }, { @@ -3551,8 +3027,7 @@ "line": 212, "column": 20, "offset": 1724 - }, - "indent": [] + } } } ], @@ -3566,8 +3041,7 @@ "line": 212, "column": 20, "offset": 1724 - }, - "indent": [] + } } }, { @@ -3586,8 +3060,7 @@ "line": 214, "column": 10, "offset": 1735 - }, - "indent": [] + } } }, { @@ -3603,8 +3076,7 @@ "line": 214, "column": 14, "offset": 1739 - }, - "indent": [] + } } } ], @@ -3618,8 +3090,7 @@ "line": 214, "column": 14, "offset": 1739 - }, - "indent": [] + } } }, { @@ -3638,8 +3109,7 @@ "line": 216, "column": 8, "offset": 1748 - }, - "indent": [] + } } }, { @@ -3655,8 +3125,7 @@ "line": 216, "column": 12, "offset": 1752 - }, - "indent": [] + } } } ], @@ -3670,8 +3139,7 @@ "line": 216, "column": 12, "offset": 1752 - }, - "indent": [] + } } }, { @@ -3690,8 +3158,7 @@ "line": 218, "column": 11, "offset": 1764 - }, - "indent": [] + } } }, { @@ -3707,10 +3174,7 @@ "line": 219, "column": 2, "offset": 1768 - }, - "indent": [ - 1 - ] + } } }, { @@ -3726,8 +3190,7 @@ "line": 219, "column": 28, "offset": 1794 - }, - "indent": [] + } } } ], @@ -3741,10 +3204,7 @@ "line": 219, "column": 28, "offset": 1794 - }, - "indent": [ - 1 - ] + } } }, { @@ -3763,10 +3223,7 @@ "line": 222, "column": 27, "offset": 1887 - }, - "indent": [ - 1 - ] + } } } ], @@ -3780,10 +3237,7 @@ "line": 222, "column": 27, "offset": 1887 - }, - "indent": [ - 1 - ] + } } }, { @@ -3791,53 +3245,18 @@ "children": [ { "type": "text", - "value": "*", + "value": "*asterisks*", "position": { "start": { "line": 224, "column": 1, "offset": 1889 }, - "end": { - "line": 224, - "column": 3, - "offset": 1891 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "asterisks", - "position": { - "start": { - "line": 224, - "column": 3, - "offset": 1891 - }, - "end": { - "line": 224, - "column": 12, - "offset": 1900 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "*", - "position": { - "start": { - "line": 224, - "column": 12, - "offset": 1900 - }, "end": { "line": 224, "column": 14, "offset": 1902 - }, - "indent": [] + } } } ], @@ -3851,8 +3270,7 @@ "line": 224, "column": 14, "offset": 1902 - }, - "indent": [] + } } }, { @@ -3860,53 +3278,18 @@ "children": [ { "type": "text", - "value": "_", + "value": "_underscores_", "position": { "start": { "line": 226, "column": 1, "offset": 1904 }, - "end": { - "line": 226, - "column": 3, - "offset": 1906 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "underscores", - "position": { - "start": { - "line": 226, - "column": 3, - "offset": 1906 - }, - "end": { - "line": 226, - "column": 14, - "offset": 1917 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "_", - "position": { - "start": { - "line": 226, - "column": 14, - "offset": 1917 - }, "end": { "line": 226, "column": 16, "offset": 1919 - }, - "indent": [] + } } } ], @@ -3920,8 +3303,7 @@ "line": 226, "column": 16, "offset": 1919 - }, - "indent": [] + } } }, { @@ -3929,53 +3311,18 @@ "children": [ { "type": "text", - "value": "`", + "value": "`backticks`", "position": { "start": { "line": 228, "column": 1, "offset": 1921 }, - "end": { - "line": 228, - "column": 3, - "offset": 1923 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "backticks", - "position": { - "start": { - "line": 228, - "column": 3, - "offset": 1923 - }, - "end": { - "line": 228, - "column": 12, - "offset": 1932 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "`", - "position": { - "start": { - "line": 228, - "column": 12, - "offset": 1932 - }, "end": { "line": 228, "column": 14, "offset": 1934 - }, - "indent": [] + } } } ], @@ -3989,8 +3336,7 @@ "line": 228, "column": 14, "offset": 1934 - }, - "indent": [] + } } }, { @@ -4009,8 +3355,7 @@ "line": 230, "column": 65, "offset": 2000 - }, - "indent": [] + } } }, { @@ -4026,8 +3371,7 @@ "line": 230, "column": 73, "offset": 2008 - }, - "indent": [] + } } } ], @@ -4041,8 +3385,7 @@ "line": 230, "column": 73, "offset": 2008 - }, - "indent": [] + } } }, { @@ -4061,8 +3404,7 @@ "line": 232, "column": 40, "offset": 2049 - }, - "indent": [] + } } }, { @@ -4078,8 +3420,7 @@ "line": 232, "column": 61, "offset": 2070 - }, - "indent": [] + } } }, { @@ -4095,8 +3436,7 @@ "line": 232, "column": 64, "offset": 2073 - }, - "indent": [] + } } }, { @@ -4112,8 +3452,7 @@ "line": 232, "column": 71, "offset": 2080 - }, - "indent": [] + } } }, { @@ -4129,8 +3468,7 @@ "line": 232, "column": 72, "offset": 2081 - }, - "indent": [] + } } } ], @@ -4144,8 +3482,7 @@ "line": 232, "column": 72, "offset": 2081 - }, - "indent": [] + } } }, { @@ -4164,8 +3501,7 @@ "line": 234, "column": 32, "offset": 2114 - }, - "indent": [] + } } }, { @@ -4181,8 +3517,7 @@ "line": 234, "column": 61, "offset": 2143 - }, - "indent": [] + } } }, { @@ -4198,8 +3533,7 @@ "line": 234, "column": 64, "offset": 2146 - }, - "indent": [] + } } }, { @@ -4215,8 +3549,7 @@ "line": 234, "column": 71, "offset": 2153 - }, - "indent": [] + } } }, { @@ -4232,8 +3565,7 @@ "line": 234, "column": 72, "offset": 2154 - }, - "indent": [] + } } } ], @@ -4247,8 +3579,7 @@ "line": 234, "column": 72, "offset": 2154 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/backslash-escapes.nogfm.json b/test/fixtures/tree/backslash-escapes.nogfm.json deleted file mode 100644 index ffbe93d0b..000000000 --- a/test/fixtures/tree/backslash-escapes.nogfm.json +++ /dev/null @@ -1,4233 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "These should all get escaped:", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 30, - "offset": 29 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 30, - "offset": 29 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Backslash: ", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 31 - }, - "end": { - "line": 3, - "column": 12, - "offset": 42 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\\", - "position": { - "start": { - "line": 3, - "column": 12, - "offset": 42 - }, - "end": { - "line": 3, - "column": 14, - "offset": 44 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 31 - }, - "end": { - "line": 3, - "column": 14, - "offset": 44 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Backtick: ", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 46 - }, - "end": { - "line": 5, - "column": 11, - "offset": 56 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "`", - "position": { - "start": { - "line": 5, - "column": 11, - "offset": 56 - }, - "end": { - "line": 5, - "column": 13, - "offset": 58 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 46 - }, - "end": { - "line": 5, - "column": 13, - "offset": 58 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Asterisk: ", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 60 - }, - "end": { - "line": 7, - "column": 11, - "offset": 70 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "*", - "position": { - "start": { - "line": 7, - "column": 11, - "offset": 70 - }, - "end": { - "line": 7, - "column": 13, - "offset": 72 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 60 - }, - "end": { - "line": 7, - "column": 13, - "offset": 72 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Underscore: ", - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 74 - }, - "end": { - "line": 9, - "column": 13, - "offset": 86 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "_", - "position": { - "start": { - "line": 9, - "column": 13, - "offset": 86 - }, - "end": { - "line": 9, - "column": 15, - "offset": 88 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 74 - }, - "end": { - "line": 9, - "column": 15, - "offset": 88 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Left brace: ", - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 90 - }, - "end": { - "line": 11, - "column": 13, - "offset": 102 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "{", - "position": { - "start": { - "line": 11, - "column": 13, - "offset": 102 - }, - "end": { - "line": 11, - "column": 15, - "offset": 104 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 90 - }, - "end": { - "line": 11, - "column": 15, - "offset": 104 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Right brace: ", - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 106 - }, - "end": { - "line": 13, - "column": 14, - "offset": 119 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "}", - "position": { - "start": { - "line": 13, - "column": 14, - "offset": 119 - }, - "end": { - "line": 13, - "column": 16, - "offset": 121 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 106 - }, - "end": { - "line": 13, - "column": 16, - "offset": 121 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Left bracket: ", - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 123 - }, - "end": { - "line": 15, - "column": 15, - "offset": 137 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "[", - "position": { - "start": { - "line": 15, - "column": 15, - "offset": 137 - }, - "end": { - "line": 15, - "column": 17, - "offset": 139 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 123 - }, - "end": { - "line": 15, - "column": 17, - "offset": 139 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Right bracket: ", - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 141 - }, - "end": { - "line": 17, - "column": 16, - "offset": 156 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "]", - "position": { - "start": { - "line": 17, - "column": 16, - "offset": 156 - }, - "end": { - "line": 17, - "column": 18, - "offset": 158 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 141 - }, - "end": { - "line": 17, - "column": 18, - "offset": 158 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Left paren: ", - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 160 - }, - "end": { - "line": 19, - "column": 13, - "offset": 172 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(", - "position": { - "start": { - "line": 19, - "column": 13, - "offset": 172 - }, - "end": { - "line": 19, - "column": 15, - "offset": 174 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 160 - }, - "end": { - "line": 19, - "column": 15, - "offset": 174 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Right paren: ", - "position": { - "start": { - "line": 21, - "column": 1, - "offset": 176 - }, - "end": { - "line": 21, - "column": 14, - "offset": 189 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ")", - "position": { - "start": { - "line": 21, - "column": 14, - "offset": 189 - }, - "end": { - "line": 21, - "column": 16, - "offset": 191 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 1, - "offset": 176 - }, - "end": { - "line": 21, - "column": 16, - "offset": 191 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Greater-than: ", - "position": { - "start": { - "line": 23, - "column": 1, - "offset": 193 - }, - "end": { - "line": 23, - "column": 15, - "offset": 207 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ">", - "position": { - "start": { - "line": 23, - "column": 15, - "offset": 207 - }, - "end": { - "line": 23, - "column": 17, - "offset": 209 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 23, - "column": 1, - "offset": 193 - }, - "end": { - "line": 23, - "column": 17, - "offset": 209 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hash: ", - "position": { - "start": { - "line": 25, - "column": 1, - "offset": 211 - }, - "end": { - "line": 25, - "column": 7, - "offset": 217 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "#", - "position": { - "start": { - "line": 25, - "column": 7, - "offset": 217 - }, - "end": { - "line": 25, - "column": 9, - "offset": 219 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 25, - "column": 1, - "offset": 211 - }, - "end": { - "line": 25, - "column": 9, - "offset": 219 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Period: ", - "position": { - "start": { - "line": 27, - "column": 1, - "offset": 221 - }, - "end": { - "line": 27, - "column": 9, - "offset": 229 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 27, - "column": 9, - "offset": 229 - }, - "end": { - "line": 27, - "column": 11, - "offset": 231 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 27, - "column": 1, - "offset": 221 - }, - "end": { - "line": 27, - "column": 11, - "offset": 231 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Bang: ", - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 233 - }, - "end": { - "line": 29, - "column": 7, - "offset": 239 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "!", - "position": { - "start": { - "line": 29, - "column": 7, - "offset": 239 - }, - "end": { - "line": 29, - "column": 9, - "offset": 241 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 233 - }, - "end": { - "line": 29, - "column": 9, - "offset": 241 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Plus: ", - "position": { - "start": { - "line": 31, - "column": 1, - "offset": 243 - }, - "end": { - "line": 31, - "column": 7, - "offset": 249 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "+", - "position": { - "start": { - "line": 31, - "column": 7, - "offset": 249 - }, - "end": { - "line": 31, - "column": 9, - "offset": 251 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 31, - "column": 1, - "offset": 243 - }, - "end": { - "line": 31, - "column": 9, - "offset": 251 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Minus: ", - "position": { - "start": { - "line": 33, - "column": 1, - "offset": 253 - }, - "end": { - "line": 33, - "column": 8, - "offset": 260 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "-", - "position": { - "start": { - "line": 33, - "column": 8, - "offset": 260 - }, - "end": { - "line": 33, - "column": 10, - "offset": 262 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 33, - "column": 1, - "offset": 253 - }, - "end": { - "line": 33, - "column": 10, - "offset": 262 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "GFM:", - "position": { - "start": { - "line": 35, - "column": 3, - "offset": 266 - }, - "end": { - "line": 35, - "column": 7, - "offset": 270 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 35, - "column": 1, - "offset": 264 - }, - "end": { - "line": 35, - "column": 9, - "offset": 272 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 35, - "column": 1, - "offset": 264 - }, - "end": { - "line": 35, - "column": 9, - "offset": 272 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Pipe: \\|", - "position": { - "start": { - "line": 37, - "column": 1, - "offset": 274 - }, - "end": { - "line": 37, - "column": 9, - "offset": 282 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 37, - "column": 1, - "offset": 274 - }, - "end": { - "line": 37, - "column": 9, - "offset": 282 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Tilde: \\~", - "position": { - "start": { - "line": 39, - "column": 1, - "offset": 284 - }, - "end": { - "line": 39, - "column": 10, - "offset": 293 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 39, - "column": 1, - "offset": 284 - }, - "end": { - "line": 39, - "column": 10, - "offset": 293 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "Commonmark:", - "position": { - "start": { - "line": 41, - "column": 3, - "offset": 297 - }, - "end": { - "line": 41, - "column": 14, - "offset": 308 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 41, - "column": 1, - "offset": 295 - }, - "end": { - "line": 41, - "column": 16, - "offset": 310 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 41, - "column": 1, - "offset": 295 - }, - "end": { - "line": 41, - "column": 16, - "offset": 310 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Quote: \\\"", - "position": { - "start": { - "line": 43, - "column": 1, - "offset": 312 - }, - "end": { - "line": 43, - "column": 10, - "offset": 321 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 43, - "column": 1, - "offset": 312 - }, - "end": { - "line": 43, - "column": 10, - "offset": 321 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Dollar: \\$", - "position": { - "start": { - "line": 45, - "column": 1, - "offset": 323 - }, - "end": { - "line": 45, - "column": 11, - "offset": 333 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 45, - "column": 1, - "offset": 323 - }, - "end": { - "line": 45, - "column": 11, - "offset": 333 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Percentage: \\%", - "position": { - "start": { - "line": 47, - "column": 1, - "offset": 335 - }, - "end": { - "line": 47, - "column": 15, - "offset": 349 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 47, - "column": 1, - "offset": 335 - }, - "end": { - "line": 47, - "column": 15, - "offset": 349 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Ampersand: \\&", - "position": { - "start": { - "line": 49, - "column": 1, - "offset": 351 - }, - "end": { - "line": 49, - "column": 14, - "offset": 364 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 49, - "column": 1, - "offset": 351 - }, - "end": { - "line": 49, - "column": 14, - "offset": 364 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Single quote: \\'", - "position": { - "start": { - "line": 51, - "column": 1, - "offset": 366 - }, - "end": { - "line": 51, - "column": 17, - "offset": 382 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 51, - "column": 1, - "offset": 366 - }, - "end": { - "line": 51, - "column": 17, - "offset": 382 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Comma: \\,", - "position": { - "start": { - "line": 53, - "column": 1, - "offset": 384 - }, - "end": { - "line": 53, - "column": 10, - "offset": 393 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 53, - "column": 1, - "offset": 384 - }, - "end": { - "line": 53, - "column": 10, - "offset": 393 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Forward slash: \\/", - "position": { - "start": { - "line": 55, - "column": 1, - "offset": 395 - }, - "end": { - "line": 55, - "column": 18, - "offset": 412 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 55, - "column": 1, - "offset": 395 - }, - "end": { - "line": 55, - "column": 18, - "offset": 412 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Colon: \\:", - "position": { - "start": { - "line": 57, - "column": 1, - "offset": 414 - }, - "end": { - "line": 57, - "column": 10, - "offset": 423 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 57, - "column": 1, - "offset": 414 - }, - "end": { - "line": 57, - "column": 10, - "offset": 423 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Semicolon: \\;", - "position": { - "start": { - "line": 59, - "column": 1, - "offset": 425 - }, - "end": { - "line": 59, - "column": 14, - "offset": 438 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 59, - "column": 1, - "offset": 425 - }, - "end": { - "line": 59, - "column": 14, - "offset": 438 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Less-than: \\<", - "position": { - "start": { - "line": 61, - "column": 1, - "offset": 440 - }, - "end": { - "line": 61, - "column": 14, - "offset": 453 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 61, - "column": 1, - "offset": 440 - }, - "end": { - "line": 61, - "column": 14, - "offset": 453 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Equals: \\=", - "position": { - "start": { - "line": 63, - "column": 1, - "offset": 455 - }, - "end": { - "line": 63, - "column": 11, - "offset": 465 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 63, - "column": 1, - "offset": 455 - }, - "end": { - "line": 63, - "column": 11, - "offset": 465 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Question mark: \\?", - "position": { - "start": { - "line": 65, - "column": 1, - "offset": 467 - }, - "end": { - "line": 65, - "column": 18, - "offset": 484 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 65, - "column": 1, - "offset": 467 - }, - "end": { - "line": 65, - "column": 18, - "offset": 484 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "At-sign: \\@", - "position": { - "start": { - "line": 67, - "column": 1, - "offset": 486 - }, - "end": { - "line": 67, - "column": 12, - "offset": 497 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 67, - "column": 1, - "offset": 486 - }, - "end": { - "line": 67, - "column": 12, - "offset": 497 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Caret: \\^", - "position": { - "start": { - "line": 69, - "column": 1, - "offset": 499 - }, - "end": { - "line": 69, - "column": 10, - "offset": 508 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 69, - "column": 1, - "offset": 499 - }, - "end": { - "line": 69, - "column": 10, - "offset": 508 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "New line: \\\nonly works in paragraphs.", - "position": { - "start": { - "line": 71, - "column": 1, - "offset": 510 - }, - "end": { - "line": 72, - "column": 26, - "offset": 547 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 71, - "column": 1, - "offset": 510 - }, - "end": { - "line": 72, - "column": 26, - "offset": 547 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "These should not, because they occur within a code block:", - "position": { - "start": { - "line": 74, - "column": 1, - "offset": 549 - }, - "end": { - "line": 74, - "column": 58, - "offset": 606 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 74, - "column": 1, - "offset": 549 - }, - "end": { - "line": 74, - "column": 58, - "offset": 606 - }, - "indent": [] - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "Backslash: \\\\\n\nBacktick: \\`\n\nAsterisk: \\*\n\nUnderscore: \\_\n\nLeft brace: \\{\n\nRight brace: \\}\n\nLeft bracket: \\[\n\nRight bracket: \\]\n\nLeft paren: \\(\n\nRight paren: \\)\n\nGreater-than: \\>\n\nHash: \\#\n\nPeriod: \\.\n\nBang: \\!\n\nPlus: \\+\n\nMinus: \\-", - "position": { - "start": { - "line": 76, - "column": 1, - "offset": 608 - }, - "end": { - "line": 106, - "column": 11, - "offset": 855 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "GFM:", - "position": { - "start": { - "line": 108, - "column": 3, - "offset": 859 - }, - "end": { - "line": 108, - "column": 7, - "offset": 863 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 108, - "column": 1, - "offset": 857 - }, - "end": { - "line": 108, - "column": 9, - "offset": 865 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 108, - "column": 1, - "offset": 857 - }, - "end": { - "line": 108, - "column": 9, - "offset": 865 - }, - "indent": [] - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "Pipe: \\|\n\nTilde: \\~", - "position": { - "start": { - "line": 110, - "column": 1, - "offset": 867 - }, - "end": { - "line": 112, - "column": 11, - "offset": 888 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "Commonmark:", - "position": { - "start": { - "line": 114, - "column": 3, - "offset": 892 - }, - "end": { - "line": 114, - "column": 14, - "offset": 903 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 114, - "column": 1, - "offset": 890 - }, - "end": { - "line": 114, - "column": 16, - "offset": 905 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 114, - "column": 1, - "offset": 890 - }, - "end": { - "line": 114, - "column": 16, - "offset": 905 - }, - "indent": [] - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "Quote: \\\"\n\nDollar: \\$\n\nPercentage: \\%\n\nAmpersand: \\&\n\nSingle quote: \\'\n\nComma: \\,\n\nForward slash: \\/\n\nColon: \\:\n\nSemicolon: \\;\n\nLess-than: \\<\n\nEquals: \\=\n\nQuestion mark: \\?\n\nAt-sign: \\@\n\nCaret: \\^\n\nNew line: \\\nonly works in paragraphs.", - "position": { - "start": { - "line": 116, - "column": 1, - "offset": 907 - }, - "end": { - "line": 145, - "column": 27, - "offset": 1158 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Nor should these, which occur in code spans:", - "position": { - "start": { - "line": 148, - "column": 1, - "offset": 1161 - }, - "end": { - "line": 148, - "column": 45, - "offset": 1205 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 148, - "column": 1, - "offset": 1161 - }, - "end": { - "line": 148, - "column": 45, - "offset": 1205 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Backslash: ", - "position": { - "start": { - "line": 150, - "column": 1, - "offset": 1207 - }, - "end": { - "line": 150, - "column": 12, - "offset": 1218 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "\\\\", - "position": { - "start": { - "line": 150, - "column": 12, - "offset": 1218 - }, - "end": { - "line": 150, - "column": 16, - "offset": 1222 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 150, - "column": 1, - "offset": 1207 - }, - "end": { - "line": 150, - "column": 16, - "offset": 1222 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Backtick: ", - "position": { - "start": { - "line": 152, - "column": 1, - "offset": 1224 - }, - "end": { - "line": 152, - "column": 11, - "offset": 1234 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "\\`", - "position": { - "start": { - "line": 152, - "column": 11, - "offset": 1234 - }, - "end": { - "line": 152, - "column": 19, - "offset": 1242 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 152, - "column": 1, - "offset": 1224 - }, - "end": { - "line": 152, - "column": 19, - "offset": 1242 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Asterisk: ", - "position": { - "start": { - "line": 154, - "column": 1, - "offset": 1244 - }, - "end": { - "line": 154, - "column": 11, - "offset": 1254 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "\\*", - "position": { - "start": { - "line": 154, - "column": 11, - "offset": 1254 - }, - "end": { - "line": 154, - "column": 15, - "offset": 1258 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 154, - "column": 1, - "offset": 1244 - }, - "end": { - "line": 154, - "column": 15, - "offset": 1258 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Underscore: ", - "position": { - "start": { - "line": 156, - "column": 1, - "offset": 1260 - }, - "end": { - "line": 156, - "column": 13, - "offset": 1272 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "\\_", - "position": { - "start": { - "line": 156, - "column": 13, - "offset": 1272 - }, - "end": { - "line": 156, - "column": 17, - "offset": 1276 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 156, - "column": 1, - "offset": 1260 - }, - "end": { - "line": 156, - "column": 17, - "offset": 1276 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Left brace: ", - "position": { - "start": { - "line": 158, - "column": 1, - "offset": 1278 - }, - "end": { - "line": 158, - "column": 13, - "offset": 1290 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "\\{", - "position": { - "start": { - "line": 158, - "column": 13, - "offset": 1290 - }, - "end": { - "line": 158, - "column": 17, - "offset": 1294 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 158, - "column": 1, - "offset": 1278 - }, - "end": { - "line": 158, - "column": 17, - "offset": 1294 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Right brace: ", - "position": { - "start": { - "line": 160, - "column": 1, - "offset": 1296 - }, - "end": { - "line": 160, - "column": 14, - "offset": 1309 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "\\}", - "position": { - "start": { - "line": 160, - "column": 14, - "offset": 1309 - }, - "end": { - "line": 160, - "column": 18, - "offset": 1313 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 160, - "column": 1, - "offset": 1296 - }, - "end": { - "line": 160, - "column": 18, - "offset": 1313 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Left bracket: ", - "position": { - "start": { - "line": 162, - "column": 1, - "offset": 1315 - }, - "end": { - "line": 162, - "column": 15, - "offset": 1329 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "\\[", - "position": { - "start": { - "line": 162, - "column": 15, - "offset": 1329 - }, - "end": { - "line": 162, - "column": 19, - "offset": 1333 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 162, - "column": 1, - "offset": 1315 - }, - "end": { - "line": 162, - "column": 19, - "offset": 1333 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Right bracket: ", - "position": { - "start": { - "line": 164, - "column": 1, - "offset": 1335 - }, - "end": { - "line": 164, - "column": 16, - "offset": 1350 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "\\]", - "position": { - "start": { - "line": 164, - "column": 16, - "offset": 1350 - }, - "end": { - "line": 164, - "column": 20, - "offset": 1354 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 164, - "column": 1, - "offset": 1335 - }, - "end": { - "line": 164, - "column": 20, - "offset": 1354 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Left paren: ", - "position": { - "start": { - "line": 166, - "column": 1, - "offset": 1356 - }, - "end": { - "line": 166, - "column": 13, - "offset": 1368 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "\\(", - "position": { - "start": { - "line": 166, - "column": 13, - "offset": 1368 - }, - "end": { - "line": 166, - "column": 17, - "offset": 1372 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 166, - "column": 1, - "offset": 1356 - }, - "end": { - "line": 166, - "column": 17, - "offset": 1372 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Right paren: ", - "position": { - "start": { - "line": 168, - "column": 1, - "offset": 1374 - }, - "end": { - "line": 168, - "column": 14, - "offset": 1387 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "\\)", - "position": { - "start": { - "line": 168, - "column": 14, - "offset": 1387 - }, - "end": { - "line": 168, - "column": 18, - "offset": 1391 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 168, - "column": 1, - "offset": 1374 - }, - "end": { - "line": 168, - "column": 18, - "offset": 1391 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Greater-than: ", - "position": { - "start": { - "line": 170, - "column": 1, - "offset": 1393 - }, - "end": { - "line": 170, - "column": 15, - "offset": 1407 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "\\>", - "position": { - "start": { - "line": 170, - "column": 15, - "offset": 1407 - }, - "end": { - "line": 170, - "column": 19, - "offset": 1411 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 170, - "column": 1, - "offset": 1393 - }, - "end": { - "line": 170, - "column": 19, - "offset": 1411 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hash: ", - "position": { - "start": { - "line": 172, - "column": 1, - "offset": 1413 - }, - "end": { - "line": 172, - "column": 7, - "offset": 1419 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "\\#", - "position": { - "start": { - "line": 172, - "column": 7, - "offset": 1419 - }, - "end": { - "line": 172, - "column": 11, - "offset": 1423 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 172, - "column": 1, - "offset": 1413 - }, - "end": { - "line": 172, - "column": 11, - "offset": 1423 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Period: ", - "position": { - "start": { - "line": 174, - "column": 1, - "offset": 1425 - }, - "end": { - "line": 174, - "column": 9, - "offset": 1433 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "\\.", - "position": { - "start": { - "line": 174, - "column": 9, - "offset": 1433 - }, - "end": { - "line": 174, - "column": 13, - "offset": 1437 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 174, - "column": 1, - "offset": 1425 - }, - "end": { - "line": 174, - "column": 13, - "offset": 1437 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Bang: ", - "position": { - "start": { - "line": 176, - "column": 1, - "offset": 1439 - }, - "end": { - "line": 176, - "column": 7, - "offset": 1445 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "\\!", - "position": { - "start": { - "line": 176, - "column": 7, - "offset": 1445 - }, - "end": { - "line": 176, - "column": 11, - "offset": 1449 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 176, - "column": 1, - "offset": 1439 - }, - "end": { - "line": 176, - "column": 11, - "offset": 1449 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Plus: ", - "position": { - "start": { - "line": 178, - "column": 1, - "offset": 1451 - }, - "end": { - "line": 178, - "column": 7, - "offset": 1457 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "\\+", - "position": { - "start": { - "line": 178, - "column": 7, - "offset": 1457 - }, - "end": { - "line": 178, - "column": 11, - "offset": 1461 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 178, - "column": 1, - "offset": 1451 - }, - "end": { - "line": 178, - "column": 11, - "offset": 1461 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Minus: ", - "position": { - "start": { - "line": 180, - "column": 1, - "offset": 1463 - }, - "end": { - "line": 180, - "column": 8, - "offset": 1470 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "\\-", - "position": { - "start": { - "line": 180, - "column": 8, - "offset": 1470 - }, - "end": { - "line": 180, - "column": 12, - "offset": 1474 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 180, - "column": 1, - "offset": 1463 - }, - "end": { - "line": 180, - "column": 12, - "offset": 1474 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "GFM:", - "position": { - "start": { - "line": 182, - "column": 3, - "offset": 1478 - }, - "end": { - "line": 182, - "column": 7, - "offset": 1482 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 182, - "column": 1, - "offset": 1476 - }, - "end": { - "line": 182, - "column": 9, - "offset": 1484 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 182, - "column": 1, - "offset": 1476 - }, - "end": { - "line": 182, - "column": 9, - "offset": 1484 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Pipe: ", - "position": { - "start": { - "line": 184, - "column": 1, - "offset": 1486 - }, - "end": { - "line": 184, - "column": 7, - "offset": 1492 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "\\|", - "position": { - "start": { - "line": 184, - "column": 7, - "offset": 1492 - }, - "end": { - "line": 184, - "column": 11, - "offset": 1496 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 184, - "column": 1, - "offset": 1486 - }, - "end": { - "line": 184, - "column": 11, - "offset": 1496 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Tilde: ", - "position": { - "start": { - "line": 186, - "column": 1, - "offset": 1498 - }, - "end": { - "line": 186, - "column": 8, - "offset": 1505 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "\\~", - "position": { - "start": { - "line": 186, - "column": 8, - "offset": 1505 - }, - "end": { - "line": 186, - "column": 12, - "offset": 1509 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 186, - "column": 1, - "offset": 1498 - }, - "end": { - "line": 186, - "column": 12, - "offset": 1509 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "Commonmark:", - "position": { - "start": { - "line": 188, - "column": 3, - "offset": 1513 - }, - "end": { - "line": 188, - "column": 14, - "offset": 1524 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 188, - "column": 1, - "offset": 1511 - }, - "end": { - "line": 188, - "column": 16, - "offset": 1526 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 188, - "column": 1, - "offset": 1511 - }, - "end": { - "line": 188, - "column": 16, - "offset": 1526 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Quote: ", - "position": { - "start": { - "line": 190, - "column": 1, - "offset": 1528 - }, - "end": { - "line": 190, - "column": 8, - "offset": 1535 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "\\\"", - "position": { - "start": { - "line": 190, - "column": 8, - "offset": 1535 - }, - "end": { - "line": 190, - "column": 12, - "offset": 1539 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 190, - "column": 1, - "offset": 1528 - }, - "end": { - "line": 190, - "column": 12, - "offset": 1539 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Dollar: ", - "position": { - "start": { - "line": 192, - "column": 1, - "offset": 1541 - }, - "end": { - "line": 192, - "column": 9, - "offset": 1549 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "\\$", - "position": { - "start": { - "line": 192, - "column": 9, - "offset": 1549 - }, - "end": { - "line": 192, - "column": 13, - "offset": 1553 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 192, - "column": 1, - "offset": 1541 - }, - "end": { - "line": 192, - "column": 13, - "offset": 1553 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Percentage: ", - "position": { - "start": { - "line": 194, - "column": 1, - "offset": 1555 - }, - "end": { - "line": 194, - "column": 13, - "offset": 1567 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "\\%", - "position": { - "start": { - "line": 194, - "column": 13, - "offset": 1567 - }, - "end": { - "line": 194, - "column": 17, - "offset": 1571 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 194, - "column": 1, - "offset": 1555 - }, - "end": { - "line": 194, - "column": 17, - "offset": 1571 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Ampersand: ", - "position": { - "start": { - "line": 196, - "column": 1, - "offset": 1573 - }, - "end": { - "line": 196, - "column": 12, - "offset": 1584 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "\\&", - "position": { - "start": { - "line": 196, - "column": 12, - "offset": 1584 - }, - "end": { - "line": 196, - "column": 16, - "offset": 1588 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 196, - "column": 1, - "offset": 1573 - }, - "end": { - "line": 196, - "column": 16, - "offset": 1588 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Single quote: ", - "position": { - "start": { - "line": 198, - "column": 1, - "offset": 1590 - }, - "end": { - "line": 198, - "column": 15, - "offset": 1604 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "\\'", - "position": { - "start": { - "line": 198, - "column": 15, - "offset": 1604 - }, - "end": { - "line": 198, - "column": 19, - "offset": 1608 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 198, - "column": 1, - "offset": 1590 - }, - "end": { - "line": 198, - "column": 19, - "offset": 1608 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Comma: ", - "position": { - "start": { - "line": 200, - "column": 1, - "offset": 1610 - }, - "end": { - "line": 200, - "column": 8, - "offset": 1617 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "\\,", - "position": { - "start": { - "line": 200, - "column": 8, - "offset": 1617 - }, - "end": { - "line": 200, - "column": 12, - "offset": 1621 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 200, - "column": 1, - "offset": 1610 - }, - "end": { - "line": 200, - "column": 12, - "offset": 1621 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Forward slash: ", - "position": { - "start": { - "line": 202, - "column": 1, - "offset": 1623 - }, - "end": { - "line": 202, - "column": 16, - "offset": 1638 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "\\/", - "position": { - "start": { - "line": 202, - "column": 16, - "offset": 1638 - }, - "end": { - "line": 202, - "column": 20, - "offset": 1642 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 202, - "column": 1, - "offset": 1623 - }, - "end": { - "line": 202, - "column": 20, - "offset": 1642 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Colon: ", - "position": { - "start": { - "line": 204, - "column": 1, - "offset": 1644 - }, - "end": { - "line": 204, - "column": 8, - "offset": 1651 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "\\:", - "position": { - "start": { - "line": 204, - "column": 8, - "offset": 1651 - }, - "end": { - "line": 204, - "column": 12, - "offset": 1655 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 204, - "column": 1, - "offset": 1644 - }, - "end": { - "line": 204, - "column": 12, - "offset": 1655 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Semicolon: ", - "position": { - "start": { - "line": 206, - "column": 1, - "offset": 1657 - }, - "end": { - "line": 206, - "column": 12, - "offset": 1668 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "\\;", - "position": { - "start": { - "line": 206, - "column": 12, - "offset": 1668 - }, - "end": { - "line": 206, - "column": 16, - "offset": 1672 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 206, - "column": 1, - "offset": 1657 - }, - "end": { - "line": 206, - "column": 16, - "offset": 1672 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Less-than: ", - "position": { - "start": { - "line": 208, - "column": 1, - "offset": 1674 - }, - "end": { - "line": 208, - "column": 12, - "offset": 1685 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "\\<", - "position": { - "start": { - "line": 208, - "column": 12, - "offset": 1685 - }, - "end": { - "line": 208, - "column": 16, - "offset": 1689 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 208, - "column": 1, - "offset": 1674 - }, - "end": { - "line": 208, - "column": 16, - "offset": 1689 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Equals: ", - "position": { - "start": { - "line": 210, - "column": 1, - "offset": 1691 - }, - "end": { - "line": 210, - "column": 9, - "offset": 1699 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "\\=", - "position": { - "start": { - "line": 210, - "column": 9, - "offset": 1699 - }, - "end": { - "line": 210, - "column": 13, - "offset": 1703 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 210, - "column": 1, - "offset": 1691 - }, - "end": { - "line": 210, - "column": 13, - "offset": 1703 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Question mark: ", - "position": { - "start": { - "line": 212, - "column": 1, - "offset": 1705 - }, - "end": { - "line": 212, - "column": 16, - "offset": 1720 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "\\?", - "position": { - "start": { - "line": 212, - "column": 16, - "offset": 1720 - }, - "end": { - "line": 212, - "column": 20, - "offset": 1724 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 212, - "column": 1, - "offset": 1705 - }, - "end": { - "line": 212, - "column": 20, - "offset": 1724 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "At-sign: ", - "position": { - "start": { - "line": 214, - "column": 1, - "offset": 1726 - }, - "end": { - "line": 214, - "column": 10, - "offset": 1735 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "\\@", - "position": { - "start": { - "line": 214, - "column": 10, - "offset": 1735 - }, - "end": { - "line": 214, - "column": 14, - "offset": 1739 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 214, - "column": 1, - "offset": 1726 - }, - "end": { - "line": 214, - "column": 14, - "offset": 1739 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Caret: ", - "position": { - "start": { - "line": 216, - "column": 1, - "offset": 1741 - }, - "end": { - "line": 216, - "column": 8, - "offset": 1748 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "\\^", - "position": { - "start": { - "line": 216, - "column": 8, - "offset": 1748 - }, - "end": { - "line": 216, - "column": 12, - "offset": 1752 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 216, - "column": 1, - "offset": 1741 - }, - "end": { - "line": 216, - "column": 12, - "offset": 1752 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "New line: ", - "position": { - "start": { - "line": 218, - "column": 1, - "offset": 1754 - }, - "end": { - "line": 218, - "column": 11, - "offset": 1764 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "\\\n", - "position": { - "start": { - "line": 218, - "column": 11, - "offset": 1764 - }, - "end": { - "line": 219, - "column": 2, - "offset": 1768 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": " only works in paragraphs.", - "position": { - "start": { - "line": 219, - "column": 2, - "offset": 1768 - }, - "end": { - "line": 219, - "column": 28, - "offset": 1794 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 218, - "column": 1, - "offset": 1754 - }, - "end": { - "line": 219, - "column": 28, - "offset": 1794 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "These should get escaped, even though they're matching pairs for\nother Markdown constructs:", - "position": { - "start": { - "line": 221, - "column": 1, - "offset": 1796 - }, - "end": { - "line": 222, - "column": 27, - "offset": 1887 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 221, - "column": 1, - "offset": 1796 - }, - "end": { - "line": 222, - "column": 27, - "offset": 1887 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "*", - "position": { - "start": { - "line": 224, - "column": 1, - "offset": 1889 - }, - "end": { - "line": 224, - "column": 3, - "offset": 1891 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "asterisks", - "position": { - "start": { - "line": 224, - "column": 3, - "offset": 1891 - }, - "end": { - "line": 224, - "column": 12, - "offset": 1900 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "*", - "position": { - "start": { - "line": 224, - "column": 12, - "offset": 1900 - }, - "end": { - "line": 224, - "column": 14, - "offset": 1902 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 224, - "column": 1, - "offset": 1889 - }, - "end": { - "line": 224, - "column": 14, - "offset": 1902 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "_", - "position": { - "start": { - "line": 226, - "column": 1, - "offset": 1904 - }, - "end": { - "line": 226, - "column": 3, - "offset": 1906 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "underscores", - "position": { - "start": { - "line": 226, - "column": 3, - "offset": 1906 - }, - "end": { - "line": 226, - "column": 14, - "offset": 1917 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "_", - "position": { - "start": { - "line": 226, - "column": 14, - "offset": 1917 - }, - "end": { - "line": 226, - "column": 16, - "offset": 1919 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 226, - "column": 1, - "offset": 1904 - }, - "end": { - "line": 226, - "column": 16, - "offset": 1919 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "`", - "position": { - "start": { - "line": 228, - "column": 1, - "offset": 1921 - }, - "end": { - "line": 228, - "column": 3, - "offset": 1923 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "backticks", - "position": { - "start": { - "line": 228, - "column": 3, - "offset": 1923 - }, - "end": { - "line": 228, - "column": 12, - "offset": 1932 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "`", - "position": { - "start": { - "line": 228, - "column": 12, - "offset": 1932 - }, - "end": { - "line": 228, - "column": 14, - "offset": 1934 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 228, - "column": 1, - "offset": 1921 - }, - "end": { - "line": 228, - "column": 14, - "offset": 1934 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This is a code span with a literal backslash-backtick sequence: ", - "position": { - "start": { - "line": 230, - "column": 1, - "offset": 1936 - }, - "end": { - "line": 230, - "column": 65, - "offset": 2000 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "\\`", - "position": { - "start": { - "line": 230, - "column": 65, - "offset": 2000 - }, - "end": { - "line": 230, - "column": 73, - "offset": 2008 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 230, - "column": 1, - "offset": 1936 - }, - "end": { - "line": 230, - "column": 73, - "offset": 2008 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This is a tag with unescaped backticks ", - "position": { - "start": { - "line": 232, - "column": 1, - "offset": 2010 - }, - "end": { - "line": 232, - "column": 40, - "offset": 2049 - }, - "indent": [] - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 232, - "column": 40, - "offset": 2049 - }, - "end": { - "line": 232, - "column": 61, - "offset": 2070 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "bar", - "position": { - "start": { - "line": 232, - "column": 61, - "offset": 2070 - }, - "end": { - "line": 232, - "column": 64, - "offset": 2073 - }, - "indent": [] - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 232, - "column": 64, - "offset": 2073 - }, - "end": { - "line": 232, - "column": 71, - "offset": 2080 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 232, - "column": 71, - "offset": 2080 - }, - "end": { - "line": 232, - "column": 72, - "offset": 2081 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 232, - "column": 1, - "offset": 2010 - }, - "end": { - "line": 232, - "column": 72, - "offset": 2081 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This is a tag with backslashes ", - "position": { - "start": { - "line": 234, - "column": 1, - "offset": 2083 - }, - "end": { - "line": 234, - "column": 32, - "offset": 2114 - }, - "indent": [] - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 234, - "column": 32, - "offset": 2114 - }, - "end": { - "line": 234, - "column": 61, - "offset": 2143 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "bar", - "position": { - "start": { - "line": 234, - "column": 61, - "offset": 2143 - }, - "end": { - "line": 234, - "column": 64, - "offset": 2146 - }, - "indent": [] - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 234, - "column": 64, - "offset": 2146 - }, - "end": { - "line": 234, - "column": 71, - "offset": 2153 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 234, - "column": 71, - "offset": 2153 - }, - "end": { - "line": 234, - "column": 72, - "offset": 2154 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 234, - "column": 1, - "offset": 2083 - }, - "end": { - "line": 234, - "column": 72, - "offset": 2154 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 235, - "column": 1, - "offset": 2155 - } - } -} diff --git a/test/fixtures/tree/block-elements.json b/test/fixtures/tree/block-elements.json index e038df53b..d7e625b05 100644 --- a/test/fixtures/tree/block-elements.json +++ b/test/fixtures/tree/block-elements.json @@ -5,7 +5,7 @@ "type": "list", "ordered": false, "start": null, - "spread": false, + "spread": true, "children": [ { "type": "listItem", @@ -28,10 +28,7 @@ "line": 2, "column": 18, "offset": 75 - }, - "indent": [ - 5 - ] + } } } ], @@ -45,10 +42,7 @@ "line": 2, "column": 18, "offset": 75 - }, - "indent": [ - 5 - ] + } } } ], @@ -62,35 +56,9 @@ "line": 2, "column": 18, "offset": 75 - }, - "indent": [ - 1 - ] + } } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 18, - "offset": 75 }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ { "type": "listItem", "spread": false, @@ -112,8 +80,7 @@ "line": 5, "column": 26, "offset": 103 - }, - "indent": [] + } } } ], @@ -127,8 +94,7 @@ "line": 5, "column": 26, "offset": 103 - }, - "indent": [] + } } } ], @@ -142,23 +108,21 @@ "line": 5, "column": 26, "offset": 103 - }, - "indent": [] + } } } ], "position": { "start": { - "line": 5, + "line": 1, "column": 1, - "offset": 78 + "offset": 0 }, "end": { "line": 5, "column": 26, "offset": 103 - }, - "indent": [] + } } }, { @@ -168,7 +132,7 @@ "type": "list", "ordered": false, "start": null, - "spread": false, + "spread": true, "children": [ { "type": "listItem", @@ -191,8 +155,7 @@ "line": 7, "column": 48, "offset": 152 - }, - "indent": [] + } } } ], @@ -206,46 +169,23 @@ "line": 7, "column": 48, "offset": 152 - }, - "indent": [] + } } } ], "position": { "start": { "line": 7, - "column": 3, - "offset": 107 + "column": 4, + "offset": 108 }, "end": { "line": 7, "column": 48, "offset": 152 - }, - "indent": [] + } } - } - ], - "position": { - "start": { - "line": 7, - "column": 3, - "offset": 107 - }, - "end": { - "line": 7, - "column": 48, - "offset": 152 }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ { "type": "listItem", "spread": false, @@ -267,8 +207,7 @@ "line": 10, "column": 29, "offset": 185 - }, - "indent": [] + } } } ], @@ -282,38 +221,35 @@ "line": 10, "column": 29, "offset": 185 - }, - "indent": [] + } } } ], "position": { "start": { "line": 10, - "column": 3, - "offset": 159 + "column": 4, + "offset": 160 }, "end": { "line": 10, "column": 29, "offset": 185 - }, - "indent": [] + } } } ], "position": { "start": { - "line": 10, - "column": 3, - "offset": 159 + "line": 7, + "column": 4, + "offset": 108 }, "end": { "line": 10, "column": 29, "offset": 185 - }, - "indent": [] + } } } ], @@ -327,12 +263,7 @@ "line": 10, "column": 29, "offset": 185 - }, - "indent": [ - 1, - 1, - 1 - ] + } } }, { @@ -362,8 +293,7 @@ "line": 12, "column": 28, "offset": 214 - }, - "indent": [] + } } } ], @@ -377,15 +307,14 @@ "line": 12, "column": 28, "offset": 214 - }, - "indent": [] + } } }, { "type": "list", "ordered": true, "start": 1, - "spread": false, + "spread": true, "children": [ { "type": "listItem", @@ -408,8 +337,7 @@ "line": 14, "column": 24, "offset": 239 - }, - "indent": [] + } } } ], @@ -423,8 +351,7 @@ "line": 14, "column": 24, "offset": 239 - }, - "indent": [] + } } } ], @@ -438,8 +365,59 @@ "line": 14, "column": 24, "offset": 239 + } + } + }, + { + "type": "listItem", + "spread": false, + "checked": null, + "children": [ + { + "type": "paragraph", + "children": [ + { + "type": "text", + "value": "Second sublist.", + "position": { + "start": { + "line": 17, + "column": 10, + "offset": 251 + }, + "end": { + "line": 17, + "column": 25, + "offset": 266 + } + } + } + ], + "position": { + "start": { + "line": 17, + "column": 10, + "offset": 251 + }, + "end": { + "line": 17, + "column": 25, + "offset": 266 + } + } + } + ], + "position": { + "start": { + "line": 17, + "column": 5, + "offset": 246 }, - "indent": [] + "end": { + "line": 17, + "column": 25, + "offset": 266 + } } } ], @@ -450,11 +428,10 @@ "offset": 220 }, "end": { - "line": 14, - "column": 24, - "offset": 239 - }, - "indent": [] + "line": 17, + "column": 25, + "offset": 266 + } } } ], @@ -465,14 +442,10 @@ "offset": 187 }, "end": { - "line": 14, - "column": 24, - "offset": 239 - }, - "indent": [ - 1, - 1 - ] + "line": 17, + "column": 25, + "offset": 266 + } } } ], @@ -482,34 +455,11 @@ "column": 1, "offset": 187 }, - "end": { - "line": 14, - "column": 24, - "offset": 239 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "1. Second sublist.", - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 242 - }, "end": { "line": 17, "column": 25, "offset": 266 - }, - "indent": [] + } } }, { @@ -528,8 +478,7 @@ "line": 19, "column": 48, "offset": 315 - }, - "indent": [] + } } } ], @@ -543,8 +492,7 @@ "line": 19, "column": 48, "offset": 315 - }, - "indent": [] + } } }, { @@ -555,7 +503,7 @@ "children": [ { "type": "listItem", - "spread": false, + "spread": true, "checked": null, "children": [ { @@ -574,8 +522,7 @@ "line": 21, "column": 34, "offset": 350 - }, - "indent": [] + } } } ], @@ -589,8 +536,40 @@ "line": 21, "column": 34, "offset": 350 + } + } + }, + { + "type": "paragraph", + "children": [ + { + "type": "text", + "value": "And this is code();", + "position": { + "start": { + "line": 24, + "column": 5, + "offset": 357 + }, + "end": { + "line": 24, + "column": 24, + "offset": 376 + } + } + } + ], + "position": { + "start": { + "line": 24, + "column": 5, + "offset": 357 }, - "indent": [] + "end": { + "line": 24, + "column": 24, + "offset": 376 + } } } ], @@ -601,11 +580,10 @@ "offset": 317 }, "end": { - "line": 21, - "column": 34, - "offset": 350 - }, - "indent": [] + "line": 24, + "column": 24, + "offset": 376 + } } } ], @@ -615,31 +593,11 @@ "column": 1, "offset": 317 }, - "end": { - "line": 21, - "column": 34, - "offset": 350 - }, - "indent": [] - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "And this is code();", - "position": { - "start": { - "line": 24, - "column": 1, - "offset": 353 - }, "end": { "line": 24, "column": 24, "offset": 376 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/blockquote-indented.json b/test/fixtures/tree/blockquote-indented.json index 3519af95d..c0a017416 100644 --- a/test/fixtures/tree/blockquote-indented.json +++ b/test/fixtures/tree/blockquote-indented.json @@ -20,10 +20,7 @@ "line": 2, "column": 7, "offset": 15 - }, - "indent": [ - 4 - ] + } } } ], @@ -37,27 +34,21 @@ "line": 2, "column": 7, "offset": 15 - }, - "indent": [ - 4 - ] + } } } ], "position": { "start": { "line": 1, - "column": 1, - "offset": 0 + "column": 4, + "offset": 3 }, "end": { "line": 2, "column": 7, "offset": 15 - }, - "indent": [ - 1 - ] + } } } ], diff --git a/test/fixtures/tree/blockquote-lazy-code.commonmark.json b/test/fixtures/tree/blockquote-lazy-code.commonmark.json deleted file mode 100644 index 79909615e..000000000 --- a/test/fixtures/tree/blockquote-lazy-code.commonmark.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "blockquote", - "children": [ - { - "type": "code", - "lang": null, - "meta": null, - "value": "foo", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 10, - "offset": 9 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 10, - "offset": 9 - }, - "indent": [] - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "bar", - "position": { - "start": { - "line": 2, - "column": 1, - "offset": 10 - }, - "end": { - "line": 2, - "column": 8, - "offset": 17 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 3, - "column": 1, - "offset": 18 - } - } -} diff --git a/test/fixtures/tree/blockquote-lazy-code.json b/test/fixtures/tree/blockquote-lazy-code.json index e498b11b1..2f8cd54f0 100644 --- a/test/fixtures/tree/blockquote-lazy-code.json +++ b/test/fixtures/tree/blockquote-lazy-code.json @@ -8,7 +8,7 @@ "type": "code", "lang": null, "meta": null, - "value": "foo\nbar", + "value": "foo", "position": { "start": { "line": 1, @@ -16,13 +16,10 @@ "offset": 2 }, "end": { - "line": 2, - "column": 8, - "offset": 17 - }, - "indent": [ - 1 - ] + "line": 1, + "column": 10, + "offset": 9 + } } } ], @@ -32,14 +29,29 @@ "column": 1, "offset": 0 }, + "end": { + "line": 1, + "column": 10, + "offset": 9 + } + } + }, + { + "type": "code", + "lang": null, + "meta": null, + "value": "bar", + "position": { + "start": { + "line": 2, + "column": 1, + "offset": 10 + }, "end": { "line": 2, "column": 8, "offset": 17 - }, - "indent": [ - 1 - ] + } } } ], diff --git a/test/fixtures/tree/blockquote-lazy-fence.commonmark.json b/test/fixtures/tree/blockquote-lazy-fence.commonmark.json deleted file mode 100644 index dd9d47b3c..000000000 --- a/test/fixtures/tree/blockquote-lazy-fence.commonmark.json +++ /dev/null @@ -1,346 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "blockquote", - "children": [ - { - "type": "code", - "lang": null, - "meta": null, - "value": "aNormalCodeBlockInABlockqoute();", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 3, - "column": 6, - "offset": 46 - }, - "indent": [ - 3, - 3 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 3, - "column": 6, - "offset": 46 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "A paragraph.", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 48 - }, - "end": { - "line": 5, - "column": 13, - "offset": 60 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 48 - }, - "end": { - "line": 5, - "column": 13, - "offset": 60 - }, - "indent": [] - } - }, - { - "type": "blockquote", - "children": [ - { - "type": "code", - "lang": null, - "meta": null, - "value": "thisIsAlsoSomeCodeInABlockquote();", - "position": { - "start": { - "line": 7, - "column": 3, - "offset": 64 - }, - "end": { - "line": 9, - "column": 6, - "offset": 108 - }, - "indent": [ - 1, - 3 - ] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 62 - }, - "end": { - "line": 9, - "column": 6, - "offset": 108 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "A paragraph.", - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 110 - }, - "end": { - "line": 11, - "column": 13, - "offset": 122 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 110 - }, - "end": { - "line": 11, - "column": 13, - "offset": 122 - }, - "indent": [] - } - }, - { - "type": "blockquote", - "children": [ - { - "type": "code", - "lang": null, - "meta": null, - "value": "aNonTerminatedCodeBlockInABlockquote();", - "position": { - "start": { - "line": 13, - "column": 3, - "offset": 126 - }, - "end": { - "line": 14, - "column": 40, - "offset": 169 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 124 - }, - "end": { - "line": 14, - "column": 40, - "offset": 169 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "aNewCodeBlockFollowingTheBlockQuote();", - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 170 - }, - "end": { - "line": 17, - "column": 4, - "offset": 216 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "A paragraph.", - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 218 - }, - "end": { - "line": 19, - "column": 13, - "offset": 230 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 218 - }, - "end": { - "line": 19, - "column": 13, - "offset": 230 - }, - "indent": [] - } - }, - { - "type": "blockquote", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Something in a blockquote.", - "position": { - "start": { - "line": 21, - "column": 3, - "offset": 234 - }, - "end": { - "line": 21, - "column": 29, - "offset": 260 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 3, - "offset": 234 - }, - "end": { - "line": 21, - "column": 29, - "offset": 260 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 1, - "offset": 232 - }, - "end": { - "line": 21, - "column": 29, - "offset": 260 - }, - "indent": [] - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "aNewCodeBlock();", - "position": { - "start": { - "line": 22, - "column": 1, - "offset": 261 - }, - "end": { - "line": 24, - "column": 4, - "offset": 285 - }, - "indent": [ - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 25, - "column": 1, - "offset": 286 - } - } -} diff --git a/test/fixtures/tree/blockquote-lazy-fence.json b/test/fixtures/tree/blockquote-lazy-fence.json index 72de3cb0b..3350113c4 100644 --- a/test/fixtures/tree/blockquote-lazy-fence.json +++ b/test/fixtures/tree/blockquote-lazy-fence.json @@ -19,11 +19,7 @@ "line": 3, "column": 6, "offset": 46 - }, - "indent": [ - 3, - 3 - ] + } } } ], @@ -37,11 +33,7 @@ "line": 3, "column": 6, "offset": 46 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -60,8 +52,7 @@ "line": 5, "column": 13, "offset": 60 - }, - "indent": [] + } } } ], @@ -75,8 +66,7 @@ "line": 5, "column": 13, "offset": 60 - }, - "indent": [] + } } }, { @@ -86,7 +76,7 @@ "type": "code", "lang": null, "meta": null, - "value": "thisIsAlsoSomeCodeInABlockquote();", + "value": "", "position": { "start": { "line": 7, @@ -94,14 +84,10 @@ "offset": 64 }, "end": { - "line": 9, - "column": 6, - "offset": 108 - }, - "indent": [ - 1, - 3 - ] + "line": 8, + "column": 1, + "offset": 68 + } } } ], @@ -112,14 +98,78 @@ "offset": 62 }, "end": { + "line": 8, + "column": 1, + "offset": 68 + } + } + }, + { + "type": "paragraph", + "children": [ + { + "type": "text", + "value": "thisIsAlsoSomeCodeInABlockquote();", + "position": { + "start": { + "line": 8, + "column": 1, + "offset": 68 + }, + "end": { + "line": 8, + "column": 35, + "offset": 102 + } + } + } + ], + "position": { + "start": { + "line": 8, + "column": 1, + "offset": 68 + }, + "end": { + "line": 8, + "column": 35, + "offset": 102 + } + } + }, + { + "type": "blockquote", + "children": [ + { + "type": "code", + "lang": null, + "meta": null, + "value": "", + "position": { + "start": { + "line": 9, + "column": 3, + "offset": 105 + }, + "end": { + "line": 10, + "column": 1, + "offset": 109 + } + } + } + ], + "position": { + "start": { "line": 9, - "column": 6, - "offset": 108 + "column": 1, + "offset": 103 }, - "indent": [ - 1, - 1 - ] + "end": { + "line": 10, + "column": 1, + "offset": 109 + } } }, { @@ -138,8 +188,7 @@ "line": 11, "column": 13, "offset": 122 - }, - "indent": [] + } } } ], @@ -153,8 +202,7 @@ "line": 11, "column": 13, "offset": 122 - }, - "indent": [] + } } }, { @@ -164,7 +212,7 @@ "type": "code", "lang": null, "meta": null, - "value": "aNonTerminatedCodeBlockInABlockquote();", + "value": "", "position": { "start": { "line": 13, @@ -172,88 +220,75 @@ "offset": 126 }, "end": { - "line": 15, - "column": 4, - "offset": 173 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "aNewCodeBlockFollowingTheBlockQuote();", - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 174 - }, - "end": { - "line": 16, - "column": 39, - "offset": 212 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, + "line": 14, "column": 1, - "offset": 174 - }, - "end": { - "line": 16, - "column": 39, - "offset": 212 - }, - "indent": [] + "offset": 130 + } } + } + ], + "position": { + "start": { + "line": 13, + "column": 1, + "offset": 124 }, + "end": { + "line": 14, + "column": 1, + "offset": 130 + } + } + }, + { + "type": "paragraph", + "children": [ { - "type": "code", - "lang": null, - "meta": null, - "value": "", + "type": "text", + "value": "aNonTerminatedCodeBlockInABlockquote();", "position": { "start": { - "line": 17, + "line": 14, "column": 1, - "offset": 213 + "offset": 130 }, "end": { - "line": 17, - "column": 4, - "offset": 216 - }, - "indent": [] + "line": 14, + "column": 40, + "offset": 169 + } } } ], "position": { "start": { - "line": 13, + "line": 14, "column": 1, - "offset": 124 + "offset": 130 + }, + "end": { + "line": 14, + "column": 40, + "offset": 169 + } + } + }, + { + "type": "code", + "lang": null, + "meta": null, + "value": "aNewCodeBlockFollowingTheBlockQuote();", + "position": { + "start": { + "line": 15, + "column": 1, + "offset": 170 }, "end": { "line": 17, "column": 4, "offset": 216 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] + } } }, { @@ -272,8 +307,7 @@ "line": 19, "column": 13, "offset": 230 - }, - "indent": [] + } } } ], @@ -287,8 +321,7 @@ "line": 19, "column": 13, "offset": 230 - }, - "indent": [] + } } }, { @@ -310,8 +343,7 @@ "line": 21, "column": 29, "offset": 260 - }, - "indent": [] + } } } ], @@ -325,30 +357,7 @@ "line": 21, "column": 29, "offset": 260 - }, - "indent": [] - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "aNewCodeBlock();", - "position": { - "start": { - "line": 22, - "column": 1, - "offset": 261 - }, - "end": { - "line": 24, - "column": 4, - "offset": 285 - }, - "indent": [ - 1, - 1 - ] + } } } ], @@ -358,16 +367,29 @@ "column": 1, "offset": 232 }, + "end": { + "line": 21, + "column": 29, + "offset": 260 + } + } + }, + { + "type": "code", + "lang": null, + "meta": null, + "value": "aNewCodeBlock();", + "position": { + "start": { + "line": 22, + "column": 1, + "offset": 261 + }, "end": { "line": 24, "column": 4, "offset": 285 - }, - "indent": [ - 1, - 1, - 1 - ] + } } } ], diff --git a/test/fixtures/tree/blockquote-lazy-fence.nogfm.commonmark.json b/test/fixtures/tree/blockquote-lazy-fence.nogfm.commonmark.json deleted file mode 100644 index 1155910a0..000000000 --- a/test/fixtures/tree/blockquote-lazy-fence.nogfm.commonmark.json +++ /dev/null @@ -1,415 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "blockquote", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "inlineCode", - "value": "aNormalCodeBlockInABlockqoute();", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 3, - "column": 6, - "offset": 46 - }, - "indent": [ - 3, - 3 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 3, - "column": 6, - "offset": 46 - }, - "indent": [ - 3, - 3 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 3, - "column": 6, - "offset": 46 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "A paragraph.", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 48 - }, - "end": { - "line": 5, - "column": 13, - "offset": 60 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 48 - }, - "end": { - "line": 5, - "column": 13, - "offset": 60 - }, - "indent": [] - } - }, - { - "type": "blockquote", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "inlineCode", - "value": "thisIsAlsoSomeCodeInABlockquote();", - "position": { - "start": { - "line": 7, - "column": 3, - "offset": 64 - }, - "end": { - "line": 9, - "column": 6, - "offset": 108 - }, - "indent": [ - 1, - 3 - ] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 3, - "offset": 64 - }, - "end": { - "line": 9, - "column": 6, - "offset": 108 - }, - "indent": [ - 1, - 3 - ] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 62 - }, - "end": { - "line": 9, - "column": 6, - "offset": 108 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "A paragraph.", - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 110 - }, - "end": { - "line": 11, - "column": 13, - "offset": 122 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 110 - }, - "end": { - "line": 11, - "column": 13, - "offset": 122 - }, - "indent": [] - } - }, - { - "type": "blockquote", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "inlineCode", - "value": "aNonTerminatedCodeBlockInABlockquote();", - "position": { - "start": { - "line": 13, - "column": 3, - "offset": 126 - }, - "end": { - "line": 15, - "column": 4, - "offset": 173 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "text", - "value": "\naNewCodeBlockFollowingTheBlockQuote();\n```", - "position": { - "start": { - "line": 15, - "column": 4, - "offset": 173 - }, - "end": { - "line": 17, - "column": 4, - "offset": 216 - }, - "indent": [ - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 3, - "offset": 126 - }, - "end": { - "line": 17, - "column": 4, - "offset": 216 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 124 - }, - "end": { - "line": 17, - "column": 4, - "offset": 216 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "A paragraph.", - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 218 - }, - "end": { - "line": 19, - "column": 13, - "offset": 230 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 218 - }, - "end": { - "line": 19, - "column": 13, - "offset": 230 - }, - "indent": [] - } - }, - { - "type": "blockquote", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Something in a blockquote.\n", - "position": { - "start": { - "line": 21, - "column": 3, - "offset": 234 - }, - "end": { - "line": 22, - "column": 1, - "offset": 261 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "inlineCode", - "value": "aNewCodeBlock();", - "position": { - "start": { - "line": 22, - "column": 1, - "offset": 261 - }, - "end": { - "line": 24, - "column": 4, - "offset": 285 - }, - "indent": [ - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 3, - "offset": 234 - }, - "end": { - "line": 24, - "column": 4, - "offset": 285 - }, - "indent": [ - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 1, - "offset": 232 - }, - "end": { - "line": 24, - "column": 4, - "offset": 285 - }, - "indent": [ - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 25, - "column": 1, - "offset": 286 - } - } -} diff --git a/test/fixtures/tree/blockquote-lazy-fence.nogfm.json b/test/fixtures/tree/blockquote-lazy-fence.nogfm.json deleted file mode 100644 index 1155910a0..000000000 --- a/test/fixtures/tree/blockquote-lazy-fence.nogfm.json +++ /dev/null @@ -1,415 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "blockquote", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "inlineCode", - "value": "aNormalCodeBlockInABlockqoute();", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 3, - "column": 6, - "offset": 46 - }, - "indent": [ - 3, - 3 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 3, - "column": 6, - "offset": 46 - }, - "indent": [ - 3, - 3 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 3, - "column": 6, - "offset": 46 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "A paragraph.", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 48 - }, - "end": { - "line": 5, - "column": 13, - "offset": 60 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 48 - }, - "end": { - "line": 5, - "column": 13, - "offset": 60 - }, - "indent": [] - } - }, - { - "type": "blockquote", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "inlineCode", - "value": "thisIsAlsoSomeCodeInABlockquote();", - "position": { - "start": { - "line": 7, - "column": 3, - "offset": 64 - }, - "end": { - "line": 9, - "column": 6, - "offset": 108 - }, - "indent": [ - 1, - 3 - ] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 3, - "offset": 64 - }, - "end": { - "line": 9, - "column": 6, - "offset": 108 - }, - "indent": [ - 1, - 3 - ] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 62 - }, - "end": { - "line": 9, - "column": 6, - "offset": 108 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "A paragraph.", - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 110 - }, - "end": { - "line": 11, - "column": 13, - "offset": 122 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 110 - }, - "end": { - "line": 11, - "column": 13, - "offset": 122 - }, - "indent": [] - } - }, - { - "type": "blockquote", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "inlineCode", - "value": "aNonTerminatedCodeBlockInABlockquote();", - "position": { - "start": { - "line": 13, - "column": 3, - "offset": 126 - }, - "end": { - "line": 15, - "column": 4, - "offset": 173 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "text", - "value": "\naNewCodeBlockFollowingTheBlockQuote();\n```", - "position": { - "start": { - "line": 15, - "column": 4, - "offset": 173 - }, - "end": { - "line": 17, - "column": 4, - "offset": 216 - }, - "indent": [ - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 3, - "offset": 126 - }, - "end": { - "line": 17, - "column": 4, - "offset": 216 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 124 - }, - "end": { - "line": 17, - "column": 4, - "offset": 216 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "A paragraph.", - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 218 - }, - "end": { - "line": 19, - "column": 13, - "offset": 230 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 218 - }, - "end": { - "line": 19, - "column": 13, - "offset": 230 - }, - "indent": [] - } - }, - { - "type": "blockquote", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Something in a blockquote.\n", - "position": { - "start": { - "line": 21, - "column": 3, - "offset": 234 - }, - "end": { - "line": 22, - "column": 1, - "offset": 261 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "inlineCode", - "value": "aNewCodeBlock();", - "position": { - "start": { - "line": 22, - "column": 1, - "offset": 261 - }, - "end": { - "line": 24, - "column": 4, - "offset": 285 - }, - "indent": [ - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 3, - "offset": 234 - }, - "end": { - "line": 24, - "column": 4, - "offset": 285 - }, - "indent": [ - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 1, - "offset": 232 - }, - "end": { - "line": 24, - "column": 4, - "offset": 285 - }, - "indent": [ - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 25, - "column": 1, - "offset": 286 - } - } -} diff --git a/test/fixtures/tree/blockquote-lazy-list.commonmark.json b/test/fixtures/tree/blockquote-lazy-list.commonmark.json deleted file mode 100644 index d7b178526..000000000 --- a/test/fixtures/tree/blockquote-lazy-list.commonmark.json +++ /dev/null @@ -1,146 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "blockquote", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This is a blockquote.", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 24, - "offset": 23 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 24, - "offset": 23 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 24, - "offset": 23 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And in normal mode this is an internal list, but in commonmark this is a top level list.", - "position": { - "start": { - "line": 2, - "column": 3, - "offset": 26 - }, - "end": { - "line": 2, - "column": 91, - "offset": 114 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 2, - "column": 3, - "offset": 26 - }, - "end": { - "line": 2, - "column": 91, - "offset": 114 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 2, - "column": 1, - "offset": 24 - }, - "end": { - "line": 2, - "column": 91, - "offset": 114 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 2, - "column": 1, - "offset": 24 - }, - "end": { - "line": 2, - "column": 91, - "offset": 114 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 3, - "column": 1, - "offset": 115 - } - } -} diff --git a/test/fixtures/tree/blockquote-lazy-list.json b/test/fixtures/tree/blockquote-lazy-list.json index 2b87bd7ad..7f66f0603 100644 --- a/test/fixtures/tree/blockquote-lazy-list.json +++ b/test/fixtures/tree/blockquote-lazy-list.json @@ -20,8 +20,7 @@ "line": 1, "column": 24, "offset": 23 - }, - "indent": [] + } } } ], @@ -35,42 +34,40 @@ "line": 1, "column": 24, "offset": 23 - }, - "indent": [] + } } + } + ], + "position": { + "start": { + "line": 1, + "column": 1, + "offset": 0 }, + "end": { + "line": 1, + "column": 24, + "offset": 23 + } + } + }, + { + "type": "list", + "ordered": false, + "start": null, + "spread": false, + "children": [ { - "type": "list", - "ordered": false, - "start": null, + "type": "listItem", "spread": false, + "checked": null, "children": [ { - "type": "listItem", - "spread": false, - "checked": null, + "type": "paragraph", "children": [ { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And in normal mode this is an internal list, but in commonmark this is a top level list.", - "position": { - "start": { - "line": 2, - "column": 3, - "offset": 26 - }, - "end": { - "line": 2, - "column": 91, - "offset": 114 - }, - "indent": [] - } - } - ], + "type": "text", + "value": "And in normal mode this is an internal list, but in commonmark this is a top level list.", "position": { "start": { "line": 2, @@ -81,23 +78,21 @@ "line": 2, "column": 91, "offset": 114 - }, - "indent": [] + } } } ], "position": { "start": { "line": 2, - "column": 1, - "offset": 24 + "column": 3, + "offset": 26 }, "end": { "line": 2, "column": 91, "offset": 114 - }, - "indent": [] + } } } ], @@ -111,25 +106,21 @@ "line": 2, "column": 91, "offset": 114 - }, - "indent": [] + } } } ], "position": { "start": { - "line": 1, + "line": 2, "column": 1, - "offset": 0 + "offset": 24 }, "end": { "line": 2, "column": 91, "offset": 114 - }, - "indent": [ - 1 - ] + } } } ], diff --git a/test/fixtures/tree/blockquote-lazy-list.nogfm.commonmark.json b/test/fixtures/tree/blockquote-lazy-list.nogfm.commonmark.json deleted file mode 100644 index d7b178526..000000000 --- a/test/fixtures/tree/blockquote-lazy-list.nogfm.commonmark.json +++ /dev/null @@ -1,146 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "blockquote", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This is a blockquote.", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 24, - "offset": 23 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 24, - "offset": 23 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 24, - "offset": 23 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And in normal mode this is an internal list, but in commonmark this is a top level list.", - "position": { - "start": { - "line": 2, - "column": 3, - "offset": 26 - }, - "end": { - "line": 2, - "column": 91, - "offset": 114 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 2, - "column": 3, - "offset": 26 - }, - "end": { - "line": 2, - "column": 91, - "offset": 114 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 2, - "column": 1, - "offset": 24 - }, - "end": { - "line": 2, - "column": 91, - "offset": 114 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 2, - "column": 1, - "offset": 24 - }, - "end": { - "line": 2, - "column": 91, - "offset": 114 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 3, - "column": 1, - "offset": 115 - } - } -} diff --git a/test/fixtures/tree/blockquote-lazy-list.nogfm.json b/test/fixtures/tree/blockquote-lazy-list.nogfm.json deleted file mode 100644 index 2b87bd7ad..000000000 --- a/test/fixtures/tree/blockquote-lazy-list.nogfm.json +++ /dev/null @@ -1,148 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "blockquote", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This is a blockquote.", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 24, - "offset": 23 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 24, - "offset": 23 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And in normal mode this is an internal list, but in commonmark this is a top level list.", - "position": { - "start": { - "line": 2, - "column": 3, - "offset": 26 - }, - "end": { - "line": 2, - "column": 91, - "offset": 114 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 2, - "column": 3, - "offset": 26 - }, - "end": { - "line": 2, - "column": 91, - "offset": 114 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 2, - "column": 1, - "offset": 24 - }, - "end": { - "line": 2, - "column": 91, - "offset": 114 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 2, - "column": 1, - "offset": 24 - }, - "end": { - "line": 2, - "column": 91, - "offset": 114 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 91, - "offset": 114 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 3, - "column": 1, - "offset": 115 - } - } -} diff --git a/test/fixtures/tree/blockquote-lazy-rule.commonmark.json b/test/fixtures/tree/blockquote-lazy-rule.commonmark.json deleted file mode 100644 index e139df259..000000000 --- a/test/fixtures/tree/blockquote-lazy-rule.commonmark.json +++ /dev/null @@ -1,86 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "blockquote", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This is a blockquote. Followed by a rule.", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 44, - "offset": 43 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 44, - "offset": 43 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 44, - "offset": 43 - }, - "indent": [] - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 2, - "column": 1, - "offset": 44 - }, - "end": { - "line": 2, - "column": 6, - "offset": 49 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 3, - "column": 1, - "offset": 50 - } - } -} diff --git a/test/fixtures/tree/blockquote-lazy-rule.json b/test/fixtures/tree/blockquote-lazy-rule.json index d565dba13..8c2e7f49e 100644 --- a/test/fixtures/tree/blockquote-lazy-rule.json +++ b/test/fixtures/tree/blockquote-lazy-rule.json @@ -20,8 +20,7 @@ "line": 1, "column": 44, "offset": 43 - }, - "indent": [] + } } } ], @@ -35,24 +34,7 @@ "line": 1, "column": 44, "offset": 43 - }, - "indent": [] - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 2, - "column": 1, - "offset": 44 - }, - "end": { - "line": 2, - "column": 6, - "offset": 49 - }, - "indent": [] + } } } ], @@ -62,14 +44,26 @@ "column": 1, "offset": 0 }, + "end": { + "line": 1, + "column": 44, + "offset": 43 + } + } + }, + { + "type": "thematicBreak", + "position": { + "start": { + "line": 2, + "column": 1, + "offset": 44 + }, "end": { "line": 2, "column": 6, "offset": 49 - }, - "indent": [ - 1 - ] + } } } ], diff --git a/test/fixtures/tree/blockquote-list-item.json b/test/fixtures/tree/blockquote-list-item.json index edf349480..0575f34df 100644 --- a/test/fixtures/tree/blockquote-list-item.json +++ b/test/fixtures/tree/blockquote-list-item.json @@ -17,8 +17,7 @@ "line": 1, "column": 39, "offset": 38 - }, - "indent": [] + } } } ], @@ -32,8 +31,7 @@ "line": 1, "column": 39, "offset": 38 - }, - "indent": [] + } } }, { @@ -63,8 +61,7 @@ "line": 3, "column": 8, "offset": 47 - }, - "indent": [] + } } } ], @@ -78,8 +75,7 @@ "line": 3, "column": 8, "offset": 47 - }, - "indent": [] + } } }, { @@ -101,8 +97,7 @@ "line": 4, "column": 10, "offset": 57 - }, - "indent": [] + } } } ], @@ -116,8 +111,7 @@ "line": 4, "column": 10, "offset": 57 - }, - "indent": [] + } } } ], @@ -131,8 +125,7 @@ "line": 4, "column": 10, "offset": 57 - }, - "indent": [] + } } } ], @@ -146,10 +139,7 @@ "line": 4, "column": 10, "offset": 57 - }, - "indent": [ - 1 - ] + } } } ], @@ -163,10 +153,7 @@ "line": 4, "column": 10, "offset": 57 - }, - "indent": [ - 1 - ] + } } } ], diff --git a/test/fixtures/tree/blockquotes-empty-lines.output.json b/test/fixtures/tree/blockquotes-empty-lines.output.json index b35cd5cd3..adcac5aa6 100644 --- a/test/fixtures/tree/blockquotes-empty-lines.output.json +++ b/test/fixtures/tree/blockquotes-empty-lines.output.json @@ -20,8 +20,7 @@ "line": 1, "column": 48, "offset": 47 - }, - "indent": [] + } } } ], @@ -35,8 +34,7 @@ "line": 1, "column": 48, "offset": 47 - }, - "indent": [] + } } }, { @@ -55,8 +53,7 @@ "line": 3, "column": 48, "offset": 97 - }, - "indent": [] + } } } ], @@ -70,8 +67,7 @@ "line": 3, "column": 48, "offset": 97 - }, - "indent": [] + } } } ], @@ -85,11 +81,7 @@ "line": 3, "column": 48, "offset": 97 - }, - "indent": [ - 1, - 1 - ] + } } } ], diff --git a/test/fixtures/tree/blockquotes-with-code-blocks.json b/test/fixtures/tree/blockquotes-with-code-blocks.json index 16a004e33..f01a0889a 100644 --- a/test/fixtures/tree/blockquotes-with-code-blocks.json +++ b/test/fixtures/tree/blockquotes-with-code-blocks.json @@ -20,8 +20,7 @@ "line": 1, "column": 11, "offset": 10 - }, - "indent": [] + } } } ], @@ -35,8 +34,7 @@ "line": 1, "column": 11, "offset": 10 - }, - "indent": [] + } } }, { @@ -54,11 +52,7 @@ "line": 5, "column": 8, "offset": 67 - }, - "indent": [ - 3, - 3 - ] + } } }, { @@ -77,8 +71,7 @@ "line": 7, "column": 6, "offset": 76 - }, - "indent": [] + } } } ], @@ -92,8 +85,7 @@ "line": 7, "column": 6, "offset": 76 - }, - "indent": [] + } } }, { @@ -111,11 +103,7 @@ "line": 11, "column": 8, "offset": 134 - }, - "indent": [ - 3, - 3 - ] + } } } ], @@ -129,19 +117,7 @@ "line": 11, "column": 8, "offset": 134 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] + } } } ], diff --git a/test/fixtures/tree/blockquotes.commonmark.json b/test/fixtures/tree/blockquotes.commonmark.json deleted file mode 100644 index 8feedbcbc..000000000 --- a/test/fixtures/tree/blockquotes.commonmark.json +++ /dev/null @@ -1,123 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "blockquote", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This is a blockquote.", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 24, - "offset": 23 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 24, - "offset": 23 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 24, - "offset": 23 - }, - "indent": [] - } - }, - { - "type": "blockquote", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This is, in commonmark mode and gfm mode, another blockquote.", - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 27 - }, - "end": { - "line": 3, - "column": 64, - "offset": 88 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 27 - }, - "end": { - "line": 3, - "column": 64, - "offset": 88 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 25 - }, - "end": { - "line": 3, - "column": 64, - "offset": 88 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 4, - "column": 1, - "offset": 89 - } - } -} diff --git a/test/fixtures/tree/blockquotes.json b/test/fixtures/tree/blockquotes.json index 8feedbcbc..dce2caa78 100644 --- a/test/fixtures/tree/blockquotes.json +++ b/test/fixtures/tree/blockquotes.json @@ -20,8 +20,7 @@ "line": 1, "column": 24, "offset": 23 - }, - "indent": [] + } } } ], @@ -35,8 +34,7 @@ "line": 1, "column": 24, "offset": 23 - }, - "indent": [] + } } } ], @@ -50,8 +48,7 @@ "line": 1, "column": 24, "offset": 23 - }, - "indent": [] + } } }, { @@ -73,8 +70,7 @@ "line": 3, "column": 64, "offset": 88 - }, - "indent": [] + } } } ], @@ -88,8 +84,7 @@ "line": 3, "column": 64, "offset": 88 - }, - "indent": [] + } } } ], @@ -103,8 +98,7 @@ "line": 3, "column": 64, "offset": 88 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/bom.json b/test/fixtures/tree/bom.json index ff4d29520..4d935d628 100644 --- a/test/fixtures/tree/bom.json +++ b/test/fixtures/tree/bom.json @@ -11,30 +11,28 @@ "position": { "start": { "line": 1, - "column": 4, - "offset": 3 + "column": 3, + "offset": 2 }, "end": { "line": 1, - "column": 20, - "offset": 19 - }, - "indent": [] + "column": 19, + "offset": 18 + } } } ], "position": { "start": { "line": 1, - "column": 2, - "offset": 1 + "column": 1, + "offset": 0 }, "end": { "line": 1, - "column": 20, - "offset": 19 - }, - "indent": [] + "column": 19, + "offset": 18 + } } }, { @@ -47,14 +45,13 @@ "start": { "line": 3, "column": 1, - "offset": 21 + "offset": 20 }, "end": { "line": 3, "column": 35, - "offset": 55 - }, - "indent": [] + "offset": 54 + } } } ], @@ -62,14 +59,13 @@ "start": { "line": 3, "column": 1, - "offset": 21 + "offset": 20 }, "end": { "line": 3, "column": 35, - "offset": 55 - }, - "indent": [] + "offset": 54 + } } } ], @@ -82,7 +78,7 @@ "end": { "line": 4, "column": 1, - "offset": 56 + "offset": 55 } } } diff --git a/test/fixtures/tree/breaks-hard.commonmark.json b/test/fixtures/tree/breaks-hard.commonmark.json deleted file mode 100644 index 39a514be5..000000000 --- a/test/fixtures/tree/breaks-hard.commonmark.json +++ /dev/null @@ -1,447 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "These are not breaks:", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 22, - "offset": 21 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 22, - "offset": 21 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Look at the\npretty line\nbreaks.", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 23 - }, - "end": { - "line": 5, - "column": 8, - "offset": 54 - }, - "indent": [ - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 23 - }, - "end": { - "line": 5, - "column": 8, - "offset": 54 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "These are breaks:", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 56 - }, - "end": { - "line": 7, - "column": 18, - "offset": 73 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 56 - }, - "end": { - "line": 7, - "column": 18, - "offset": 73 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Look at the", - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 75 - }, - "end": { - "line": 9, - "column": 12, - "offset": 86 - }, - "indent": [] - } - }, - { - "type": "break", - "position": { - "start": { - "line": 9, - "column": 12, - "offset": 86 - }, - "end": { - "line": 10, - "column": 1, - "offset": 89 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "pretty line", - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 89 - }, - "end": { - "line": 10, - "column": 12, - "offset": 100 - }, - "indent": [] - } - }, - { - "type": "break", - "position": { - "start": { - "line": 10, - "column": 12, - "offset": 100 - }, - "end": { - "line": 11, - "column": 1, - "offset": 103 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "breaks.", - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 103 - }, - "end": { - "line": 11, - "column": 8, - "offset": 110 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 75 - }, - "end": { - "line": 11, - "column": 8, - "offset": 110 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "In ", - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 112 - }, - "end": { - "line": 13, - "column": 4, - "offset": 115 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "commonmark: true", - "position": { - "start": { - "line": 13, - "column": 4, - "offset": 115 - }, - "end": { - "line": 13, - "column": 22, - "offset": 133 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " mode, an escaped newline character is exposed as a ", - "position": { - "start": { - "line": 13, - "column": 22, - "offset": 133 - }, - "end": { - "line": 13, - "column": 74, - "offset": 185 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "break", - "position": { - "start": { - "line": 13, - "column": 74, - "offset": 185 - }, - "end": { - "line": 13, - "column": 81, - "offset": 192 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " node:", - "position": { - "start": { - "line": 13, - "column": 81, - "offset": 192 - }, - "end": { - "line": 13, - "column": 87, - "offset": 198 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 112 - }, - "end": { - "line": 13, - "column": 87, - "offset": 198 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Look at the", - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 200 - }, - "end": { - "line": 15, - "column": 12, - "offset": 211 - }, - "indent": [] - } - }, - { - "type": "break", - "position": { - "start": { - "line": 15, - "column": 12, - "offset": 211 - }, - "end": { - "line": 16, - "column": 1, - "offset": 213 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "pretty line", - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 213 - }, - "end": { - "line": 16, - "column": 12, - "offset": 224 - }, - "indent": [] - } - }, - { - "type": "break", - "position": { - "start": { - "line": 16, - "column": 12, - "offset": 224 - }, - "end": { - "line": 17, - "column": 1, - "offset": 226 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "breaks.", - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 226 - }, - "end": { - "line": 17, - "column": 8, - "offset": 233 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 200 - }, - "end": { - "line": 17, - "column": 8, - "offset": 233 - }, - "indent": [ - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 18, - "column": 1, - "offset": 234 - } - } -} diff --git a/test/fixtures/tree/breaks-hard.json b/test/fixtures/tree/breaks-hard.json index 649104869..0866751b8 100644 --- a/test/fixtures/tree/breaks-hard.json +++ b/test/fixtures/tree/breaks-hard.json @@ -17,8 +17,7 @@ "line": 1, "column": 22, "offset": 21 - }, - "indent": [] + } } } ], @@ -32,8 +31,7 @@ "line": 1, "column": 22, "offset": 21 - }, - "indent": [] + } } }, { @@ -52,11 +50,7 @@ "line": 5, "column": 8, "offset": 54 - }, - "indent": [ - 1, - 1 - ] + } } } ], @@ -70,11 +64,7 @@ "line": 5, "column": 8, "offset": 54 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -93,8 +83,7 @@ "line": 7, "column": 18, "offset": 73 - }, - "indent": [] + } } } ], @@ -108,8 +97,7 @@ "line": 7, "column": 18, "offset": 73 - }, - "indent": [] + } } }, { @@ -128,8 +116,7 @@ "line": 9, "column": 12, "offset": 86 - }, - "indent": [] + } } }, { @@ -144,10 +131,7 @@ "line": 10, "column": 1, "offset": 89 - }, - "indent": [ - 1 - ] + } } }, { @@ -163,8 +147,7 @@ "line": 10, "column": 12, "offset": 100 - }, - "indent": [] + } } }, { @@ -179,10 +162,7 @@ "line": 11, "column": 1, "offset": 103 - }, - "indent": [ - 1 - ] + } } }, { @@ -198,8 +178,7 @@ "line": 11, "column": 8, "offset": 110 - }, - "indent": [] + } } } ], @@ -213,11 +192,7 @@ "line": 11, "column": 8, "offset": 110 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -236,8 +211,7 @@ "line": 13, "column": 4, "offset": 115 - }, - "indent": [] + } } }, { @@ -253,8 +227,7 @@ "line": 13, "column": 22, "offset": 133 - }, - "indent": [] + } } }, { @@ -270,8 +243,7 @@ "line": 13, "column": 74, "offset": 185 - }, - "indent": [] + } } }, { @@ -287,8 +259,7 @@ "line": 13, "column": 81, "offset": 192 - }, - "indent": [] + } } }, { @@ -304,8 +275,7 @@ "line": 13, "column": 87, "offset": 198 - }, - "indent": [] + } } } ], @@ -319,8 +289,7 @@ "line": 13, "column": 87, "offset": 198 - }, - "indent": [] + } } }, { @@ -328,22 +297,80 @@ "children": [ { "type": "text", - "value": "Look at the\\\npretty line\\\nbreaks.", + "value": "Look at the", "position": { "start": { "line": 15, "column": 1, "offset": 200 }, + "end": { + "line": 15, + "column": 12, + "offset": 211 + } + } + }, + { + "type": "break", + "position": { + "start": { + "line": 15, + "column": 12, + "offset": 211 + }, + "end": { + "line": 16, + "column": 1, + "offset": 213 + } + } + }, + { + "type": "text", + "value": "pretty line", + "position": { + "start": { + "line": 16, + "column": 1, + "offset": 213 + }, + "end": { + "line": 16, + "column": 12, + "offset": 224 + } + } + }, + { + "type": "break", + "position": { + "start": { + "line": 16, + "column": 12, + "offset": 224 + }, + "end": { + "line": 17, + "column": 1, + "offset": 226 + } + } + }, + { + "type": "text", + "value": "breaks.", + "position": { + "start": { + "line": 17, + "column": 1, + "offset": 226 + }, "end": { "line": 17, "column": 8, "offset": 233 - }, - "indent": [ - 1, - 1 - ] + } } } ], @@ -357,11 +384,7 @@ "line": 17, "column": 8, "offset": 233 - }, - "indent": [ - 1, - 1 - ] + } } } ], diff --git a/test/fixtures/tree/breaks-hard.nogfm.commonmark.json b/test/fixtures/tree/breaks-hard.nogfm.commonmark.json deleted file mode 100644 index 39a514be5..000000000 --- a/test/fixtures/tree/breaks-hard.nogfm.commonmark.json +++ /dev/null @@ -1,447 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "These are not breaks:", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 22, - "offset": 21 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 22, - "offset": 21 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Look at the\npretty line\nbreaks.", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 23 - }, - "end": { - "line": 5, - "column": 8, - "offset": 54 - }, - "indent": [ - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 23 - }, - "end": { - "line": 5, - "column": 8, - "offset": 54 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "These are breaks:", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 56 - }, - "end": { - "line": 7, - "column": 18, - "offset": 73 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 56 - }, - "end": { - "line": 7, - "column": 18, - "offset": 73 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Look at the", - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 75 - }, - "end": { - "line": 9, - "column": 12, - "offset": 86 - }, - "indent": [] - } - }, - { - "type": "break", - "position": { - "start": { - "line": 9, - "column": 12, - "offset": 86 - }, - "end": { - "line": 10, - "column": 1, - "offset": 89 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "pretty line", - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 89 - }, - "end": { - "line": 10, - "column": 12, - "offset": 100 - }, - "indent": [] - } - }, - { - "type": "break", - "position": { - "start": { - "line": 10, - "column": 12, - "offset": 100 - }, - "end": { - "line": 11, - "column": 1, - "offset": 103 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "breaks.", - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 103 - }, - "end": { - "line": 11, - "column": 8, - "offset": 110 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 75 - }, - "end": { - "line": 11, - "column": 8, - "offset": 110 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "In ", - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 112 - }, - "end": { - "line": 13, - "column": 4, - "offset": 115 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "commonmark: true", - "position": { - "start": { - "line": 13, - "column": 4, - "offset": 115 - }, - "end": { - "line": 13, - "column": 22, - "offset": 133 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " mode, an escaped newline character is exposed as a ", - "position": { - "start": { - "line": 13, - "column": 22, - "offset": 133 - }, - "end": { - "line": 13, - "column": 74, - "offset": 185 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "break", - "position": { - "start": { - "line": 13, - "column": 74, - "offset": 185 - }, - "end": { - "line": 13, - "column": 81, - "offset": 192 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " node:", - "position": { - "start": { - "line": 13, - "column": 81, - "offset": 192 - }, - "end": { - "line": 13, - "column": 87, - "offset": 198 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 112 - }, - "end": { - "line": 13, - "column": 87, - "offset": 198 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Look at the", - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 200 - }, - "end": { - "line": 15, - "column": 12, - "offset": 211 - }, - "indent": [] - } - }, - { - "type": "break", - "position": { - "start": { - "line": 15, - "column": 12, - "offset": 211 - }, - "end": { - "line": 16, - "column": 1, - "offset": 213 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "pretty line", - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 213 - }, - "end": { - "line": 16, - "column": 12, - "offset": 224 - }, - "indent": [] - } - }, - { - "type": "break", - "position": { - "start": { - "line": 16, - "column": 12, - "offset": 224 - }, - "end": { - "line": 17, - "column": 1, - "offset": 226 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "breaks.", - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 226 - }, - "end": { - "line": 17, - "column": 8, - "offset": 233 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 200 - }, - "end": { - "line": 17, - "column": 8, - "offset": 233 - }, - "indent": [ - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 18, - "column": 1, - "offset": 234 - } - } -} diff --git a/test/fixtures/tree/breaks-hard.nogfm.json b/test/fixtures/tree/breaks-hard.nogfm.json deleted file mode 100644 index 649104869..000000000 --- a/test/fixtures/tree/breaks-hard.nogfm.json +++ /dev/null @@ -1,380 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "These are not breaks:", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 22, - "offset": 21 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 22, - "offset": 21 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Look at the\npretty line\nbreaks.", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 23 - }, - "end": { - "line": 5, - "column": 8, - "offset": 54 - }, - "indent": [ - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 23 - }, - "end": { - "line": 5, - "column": 8, - "offset": 54 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "These are breaks:", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 56 - }, - "end": { - "line": 7, - "column": 18, - "offset": 73 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 56 - }, - "end": { - "line": 7, - "column": 18, - "offset": 73 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Look at the", - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 75 - }, - "end": { - "line": 9, - "column": 12, - "offset": 86 - }, - "indent": [] - } - }, - { - "type": "break", - "position": { - "start": { - "line": 9, - "column": 12, - "offset": 86 - }, - "end": { - "line": 10, - "column": 1, - "offset": 89 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "pretty line", - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 89 - }, - "end": { - "line": 10, - "column": 12, - "offset": 100 - }, - "indent": [] - } - }, - { - "type": "break", - "position": { - "start": { - "line": 10, - "column": 12, - "offset": 100 - }, - "end": { - "line": 11, - "column": 1, - "offset": 103 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "breaks.", - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 103 - }, - "end": { - "line": 11, - "column": 8, - "offset": 110 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 75 - }, - "end": { - "line": 11, - "column": 8, - "offset": 110 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "In ", - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 112 - }, - "end": { - "line": 13, - "column": 4, - "offset": 115 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "commonmark: true", - "position": { - "start": { - "line": 13, - "column": 4, - "offset": 115 - }, - "end": { - "line": 13, - "column": 22, - "offset": 133 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " mode, an escaped newline character is exposed as a ", - "position": { - "start": { - "line": 13, - "column": 22, - "offset": 133 - }, - "end": { - "line": 13, - "column": 74, - "offset": 185 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "break", - "position": { - "start": { - "line": 13, - "column": 74, - "offset": 185 - }, - "end": { - "line": 13, - "column": 81, - "offset": 192 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " node:", - "position": { - "start": { - "line": 13, - "column": 81, - "offset": 192 - }, - "end": { - "line": 13, - "column": 87, - "offset": 198 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 112 - }, - "end": { - "line": 13, - "column": 87, - "offset": 198 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Look at the\\\npretty line\\\nbreaks.", - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 200 - }, - "end": { - "line": 17, - "column": 8, - "offset": 233 - }, - "indent": [ - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 200 - }, - "end": { - "line": 17, - "column": 8, - "offset": 233 - }, - "indent": [ - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 18, - "column": 1, - "offset": 234 - } - } -} diff --git a/test/fixtures/tree/case-insensitive-refs.json b/test/fixtures/tree/case-insensitive-refs.json index 3142ea6a1..46c68bcae 100644 --- a/test/fixtures/tree/case-insensitive-refs.json +++ b/test/fixtures/tree/case-insensitive-refs.json @@ -6,9 +6,6 @@ "children": [ { "type": "linkReference", - "identifier": "hi", - "label": "hi", - "referenceType": "shortcut", "children": [ { "type": "text", @@ -23,8 +20,7 @@ "line": 1, "column": 4, "offset": 3 - }, - "indent": [] + } } } ], @@ -38,9 +34,11 @@ "line": 1, "column": 5, "offset": 4 - }, - "indent": [] - } + } + }, + "identifier": "hi", + "label": "hi", + "referenceType": "shortcut" } ], "position": { @@ -53,8 +51,7 @@ "line": 1, "column": 5, "offset": 4 - }, - "indent": [] + } } }, { @@ -73,8 +70,7 @@ "line": 3, "column": 11, "offset": 16 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/code-block-indentation.nooutput.json b/test/fixtures/tree/code-block-indentation.nooutput.json index 921f60dc5..aee34cdc5 100644 --- a/test/fixtures/tree/code-block-indentation.nooutput.json +++ b/test/fixtures/tree/code-block-indentation.nooutput.json @@ -17,11 +17,7 @@ "line": 3, "column": 53, "offset": 166 - }, - "indent": [ - 1, - 1 - ] + } } } ], @@ -35,11 +31,7 @@ "line": 3, "column": 53, "offset": 166 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -57,13 +49,7 @@ "line": 9, "column": 4, "offset": 242 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] + } } }, { @@ -82,8 +68,7 @@ "line": 11, "column": 7, "offset": 250 - }, - "indent": [] + } } } ], @@ -97,8 +82,7 @@ "line": 11, "column": 7, "offset": 250 - }, - "indent": [] + } } }, { @@ -109,20 +93,14 @@ "position": { "start": { "line": 13, - "column": 1, - "offset": 252 + "column": 3, + "offset": 254 }, "end": { "line": 17, "column": 6, "offset": 299 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] + } } }, { @@ -141,8 +119,7 @@ "line": 19, "column": 7, "offset": 307 - }, - "indent": [] + } } } ], @@ -156,8 +133,7 @@ "line": 19, "column": 7, "offset": 307 - }, - "indent": [] + } } }, { @@ -168,20 +144,14 @@ "position": { "start": { "line": 21, - "column": 1, - "offset": 309 + "column": 2, + "offset": 310 }, "end": { "line": 25, "column": 5, "offset": 351 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] + } } } ], diff --git a/test/fixtures/tree/code-block-indentation.nooutput.nogfm.json b/test/fixtures/tree/code-block-indentation.nooutput.nogfm.json deleted file mode 100644 index 85e6e4187..000000000 --- a/test/fixtures/tree/code-block-indentation.nooutput.nogfm.json +++ /dev/null @@ -1,392 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Fenced code blocks are normally not exdented, however,\nwhen the initial fence is indented by spaces, the value of\nthe code is exdented by up to that amount of spaces.", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 3, - "column": 53, - "offset": 166 - }, - "indent": [ - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 3, - "column": 53, - "offset": 166 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "```\n This is a code block...", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 168 - }, - "end": { - "line": 6, - "column": 28, - "offset": 199 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 168 - }, - "end": { - "line": 6, - "column": 28, - "offset": 199 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "...which is not exdented.", - "position": { - "start": { - "line": 8, - "column": 1, - "offset": 209 - }, - "end": { - "line": 8, - "column": 30, - "offset": 238 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "```", - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 239 - }, - "end": { - "line": 9, - "column": 4, - "offset": 242 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 239 - }, - "end": { - "line": 9, - "column": 4, - "offset": 242 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "But...", - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 244 - }, - "end": { - "line": 11, - "column": 7, - "offset": 250 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 244 - }, - "end": { - "line": 11, - "column": 7, - "offset": 250 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": " ```\n This one...", - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 252 - }, - "end": { - "line": 14, - "column": 16, - "offset": 273 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 252 - }, - "end": { - "line": 14, - "column": 16, - "offset": 273 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "...is.", - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 283 - }, - "end": { - "line": 16, - "column": 11, - "offset": 293 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": " ```", - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 294 - }, - "end": { - "line": 17, - "column": 6, - "offset": 299 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 294 - }, - "end": { - "line": 17, - "column": 6, - "offset": 299 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And...", - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 301 - }, - "end": { - "line": 19, - "column": 7, - "offset": 307 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 301 - }, - "end": { - "line": 19, - "column": 7, - "offset": 307 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": " ```\nSo is this...", - "position": { - "start": { - "line": 21, - "column": 1, - "offset": 309 - }, - "end": { - "line": 22, - "column": 14, - "offset": 327 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 1, - "offset": 309 - }, - "end": { - "line": 22, - "column": 14, - "offset": 327 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": " ...one.\n ```", - "position": { - "start": { - "line": 24, - "column": 1, - "offset": 336 - }, - "end": { - "line": 25, - "column": 5, - "offset": 351 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 24, - "column": 1, - "offset": 336 - }, - "end": { - "line": 25, - "column": 5, - "offset": 351 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 26, - "column": 1, - "offset": 352 - } - } -} diff --git a/test/fixtures/tree/code-block-nesting-bug.json b/test/fixtures/tree/code-block-nesting-bug.json index 9818ba106..8600a8cab 100644 --- a/test/fixtures/tree/code-block-nesting-bug.json +++ b/test/fixtures/tree/code-block-nesting-bug.json @@ -17,10 +17,7 @@ "line": 2, "column": 64, "offset": 132 - }, - "indent": [ - 1 - ] + } } } ], @@ -34,10 +31,7 @@ "line": 2, "column": 64, "offset": 132 - }, - "indent": [ - 1 - ] + } } }, { @@ -56,8 +50,7 @@ "line": 4, "column": 21, "offset": 154 - }, - "indent": [] + } } }, { @@ -78,8 +71,7 @@ "line": 4, "column": 67, "offset": 200 - }, - "indent": [] + } } } ], @@ -93,8 +85,7 @@ "line": 4, "column": 68, "offset": 201 - }, - "indent": [] + } } }, { @@ -110,8 +101,7 @@ "line": 4, "column": 69, "offset": 202 - }, - "indent": [] + } } } ], @@ -125,8 +115,7 @@ "line": 4, "column": 69, "offset": 202 - }, - "indent": [] + } } }, { @@ -145,8 +134,7 @@ "line": 6, "column": 59, "offset": 262 - }, - "indent": [] + } } } ], @@ -160,8 +148,7 @@ "line": 6, "column": 59, "offset": 262 - }, - "indent": [] + } } }, { @@ -179,13 +166,7 @@ "line": 12, "column": 5, "offset": 291 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] + } } }, { @@ -204,8 +185,7 @@ "line": 14, "column": 36, "offset": 328 - }, - "indent": [] + } } } ], @@ -219,8 +199,7 @@ "line": 14, "column": 36, "offset": 328 - }, - "indent": [] + } } }, { @@ -238,13 +217,7 @@ "line": 20, "column": 5, "offset": 357 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] + } } }, { @@ -263,8 +236,7 @@ "line": 22, "column": 14, "offset": 372 - }, - "indent": [] + } } } ], @@ -278,8 +250,7 @@ "line": 22, "column": 14, "offset": 372 - }, - "indent": [] + } } }, { @@ -297,13 +268,7 @@ "line": 28, "column": 5, "offset": 401 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] + } } }, { @@ -321,13 +286,7 @@ "line": 34, "column": 5, "offset": 430 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] + } } } ], diff --git a/test/fixtures/tree/code-block-nesting-bug.nooutput.nogfm.pedantic.json b/test/fixtures/tree/code-block-nesting-bug.nooutput.nogfm.pedantic.json deleted file mode 100644 index 1f677e6c8..000000000 --- a/test/fixtures/tree/code-block-nesting-bug.nooutput.nogfm.pedantic.json +++ /dev/null @@ -1,377 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "GitHub, thus RedCarpet, has a bug where “nested” fenced code blocks,\neven with shorter fences, can exit their actual “parent” block.", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 64, - "offset": 132 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 64, - "offset": 132 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Note that this bug does not occur on indented code-blocks.", - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 134 - }, - "end": { - "line": 4, - "column": 59, - "offset": 192 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 134 - }, - "end": { - "line": 4, - "column": 59, - "offset": 192 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "inlineCode", - "value": "foo\n```bar\nbaz\n```", - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 194 - }, - "end": { - "line": 10, - "column": 5, - "offset": 221 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 194 - }, - "end": { - "line": 10, - "column": 5, - "offset": 221 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Even with a different fence marker:", - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 223 - }, - "end": { - "line": 12, - "column": 36, - "offset": 258 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 223 - }, - "end": { - "line": 12, - "column": 36, - "offset": 258 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "inlineCode", - "value": "foo\n~~~bar\nbaz\n~~~", - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 260 - }, - "end": { - "line": 18, - "column": 5, - "offset": 287 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 260 - }, - "end": { - "line": 18, - "column": 5, - "offset": 287 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And reversed:", - "position": { - "start": { - "line": 20, - "column": 1, - "offset": 289 - }, - "end": { - "line": 20, - "column": 14, - "offset": 302 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 1, - "offset": 289 - }, - "end": { - "line": 20, - "column": 14, - "offset": 302 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "~~~~foo\n~~~bar\nbaz\n~~~\n~~~~", - "position": { - "start": { - "line": 22, - "column": 1, - "offset": 304 - }, - "end": { - "line": 26, - "column": 5, - "offset": 331 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 22, - "column": 1, - "offset": 304 - }, - "end": { - "line": 26, - "column": 5, - "offset": 331 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "~~~~foo\n", - "position": { - "start": { - "line": 28, - "column": 1, - "offset": 333 - }, - "end": { - "line": 29, - "column": 1, - "offset": 341 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "inlineCode", - "value": "bar\nbaz", - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 341 - }, - "end": { - "line": 31, - "column": 4, - "offset": 355 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "text", - "value": "\n~~~~", - "position": { - "start": { - "line": 31, - "column": 4, - "offset": 355 - }, - "end": { - "line": 32, - "column": 5, - "offset": 360 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 28, - "column": 1, - "offset": 333 - }, - "end": { - "line": 32, - "column": 5, - "offset": 360 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 33, - "column": 1, - "offset": 361 - } - } -} diff --git a/test/fixtures/tree/code-block-nesting-bug.nooutput.pedantic.json b/test/fixtures/tree/code-block-nesting-bug.nooutput.pedantic.json deleted file mode 100644 index 4d46bb6ab..000000000 --- a/test/fixtures/tree/code-block-nesting-bug.nooutput.pedantic.json +++ /dev/null @@ -1,253 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "GitHub, thus RedCarpet, has a bug where “nested” fenced code blocks,\neven with shorter fences, can exit their actual “parent” block.", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 64, - "offset": 132 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 64, - "offset": 132 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Note that this bug does not occur on indented code-blocks.", - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 134 - }, - "end": { - "line": 4, - "column": 59, - "offset": 192 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 134 - }, - "end": { - "line": 4, - "column": 59, - "offset": 192 - }, - "indent": [] - } - }, - { - "type": "code", - "lang": "foo", - "value": "```bar\nbaz\n```", - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 194 - }, - "end": { - "line": 10, - "column": 5, - "offset": 221 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Even with a different fence marker:", - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 223 - }, - "end": { - "line": 12, - "column": 36, - "offset": 258 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 223 - }, - "end": { - "line": 12, - "column": 36, - "offset": 258 - }, - "indent": [] - } - }, - { - "type": "code", - "lang": "foo", - "value": "~~~bar\nbaz\n~~~", - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 260 - }, - "end": { - "line": 18, - "column": 5, - "offset": 287 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And reversed:", - "position": { - "start": { - "line": 20, - "column": 1, - "offset": 289 - }, - "end": { - "line": 20, - "column": 14, - "offset": 302 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 1, - "offset": 289 - }, - "end": { - "line": 20, - "column": 14, - "offset": 302 - }, - "indent": [] - } - }, - { - "type": "code", - "lang": "foo", - "value": "~~~bar\nbaz\n~~~", - "position": { - "start": { - "line": 22, - "column": 1, - "offset": 304 - }, - "end": { - "line": 26, - "column": 5, - "offset": 331 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "code", - "lang": "foo", - "value": "```bar\nbaz\n```", - "position": { - "start": { - "line": 28, - "column": 1, - "offset": 333 - }, - "end": { - "line": 32, - "column": 5, - "offset": 360 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 33, - "column": 1, - "offset": 361 - } - } -} diff --git a/test/fixtures/tree/code-block.output.fence=`.json b/test/fixtures/tree/code-block.output.fence=`.json index e842717af..b9d72d134 100644 --- a/test/fixtures/tree/code-block.output.fence=`.json +++ b/test/fixtures/tree/code-block.output.fence=`.json @@ -17,8 +17,7 @@ "line": 1, "column": 7, "offset": 6 - }, - "indent": [] + } } } ], @@ -32,8 +31,7 @@ "line": 1, "column": 7, "offset": 6 - }, - "indent": [] + } } }, { @@ -51,11 +49,7 @@ "line": 5, "column": 4, "offset": 48 - }, - "indent": [ - 1, - 1 - ] + } } } ], diff --git a/test/fixtures/tree/code-block.output.fence=~.json b/test/fixtures/tree/code-block.output.fence=~.json index 5746c4857..f67b77fa3 100644 --- a/test/fixtures/tree/code-block.output.fence=~.json +++ b/test/fixtures/tree/code-block.output.fence=~.json @@ -17,8 +17,7 @@ "line": 1, "column": 8, "offset": 7 - }, - "indent": [] + } } } ], @@ -32,8 +31,7 @@ "line": 1, "column": 8, "offset": 7 - }, - "indent": [] + } } }, { @@ -51,11 +49,7 @@ "line": 5, "column": 4, "offset": 49 - }, - "indent": [ - 1, - 1 - ] + } } } ], diff --git a/test/fixtures/tree/code-blocks.json b/test/fixtures/tree/code-blocks.json index f6ced3f25..6db7df0e4 100644 --- a/test/fixtures/tree/code-blocks.json +++ b/test/fixtures/tree/code-blocks.json @@ -13,13 +13,10 @@ "offset": 0 }, "end": { - "line": 2, - "column": 2, - "offset": 31 - }, - "indent": [ - 1 - ] + "line": 1, + "column": 30, + "offset": 29 + } } }, { @@ -38,8 +35,7 @@ "line": 3, "column": 14, "offset": 45 - }, - "indent": [] + } } } ], @@ -53,8 +49,7 @@ "line": 3, "column": 14, "offset": 45 - }, - "indent": [] + } } }, { @@ -72,8 +67,7 @@ "line": 5, "column": 34, "offset": 80 - }, - "indent": [] + } } }, { @@ -92,8 +86,7 @@ "line": 7, "column": 14, "offset": 95 - }, - "indent": [] + } } } ], @@ -107,8 +100,7 @@ "line": 7, "column": 14, "offset": 95 - }, - "indent": [] + } } }, { @@ -126,10 +118,7 @@ "line": 10, "column": 31, "offset": 154 - }, - "indent": [ - 1 - ] + } } }, { @@ -148,8 +137,7 @@ "line": 12, "column": 14, "offset": 169 - }, - "indent": [] + } } } ], @@ -163,8 +151,7 @@ "line": 12, "column": 14, "offset": 169 - }, - "indent": [] + } } }, { @@ -182,8 +169,7 @@ "line": 14, "column": 29, "offset": 199 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/code-blocks.output.fences.json b/test/fixtures/tree/code-blocks.output.fences.json index 8f814176f..83b6321b7 100644 --- a/test/fixtures/tree/code-blocks.output.fences.json +++ b/test/fixtures/tree/code-blocks.output.fences.json @@ -17,8 +17,7 @@ "line": 1, "column": 27, "offset": 26 - }, - "indent": [] + } } } ], @@ -32,8 +31,7 @@ "line": 1, "column": 27, "offset": 26 - }, - "indent": [] + } } }, { @@ -51,11 +49,7 @@ "line": 5, "column": 4, "offset": 58 - }, - "indent": [ - 1, - 1 - ] + } } } ], diff --git a/test/fixtures/tree/code-blocks.output.json b/test/fixtures/tree/code-blocks.output.json index a7db5db7c..50466d216 100644 --- a/test/fixtures/tree/code-blocks.output.json +++ b/test/fixtures/tree/code-blocks.output.json @@ -17,8 +17,7 @@ "line": 1, "column": 31, "offset": 30 - }, - "indent": [] + } } } ], @@ -32,8 +31,7 @@ "line": 1, "column": 31, "offset": 30 - }, - "indent": [] + } } }, { @@ -51,8 +49,7 @@ "line": 3, "column": 27, "offset": 58 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/code-blocks.pedantic.json b/test/fixtures/tree/code-blocks.pedantic.json deleted file mode 100644 index f6ced3f25..000000000 --- a/test/fixtures/tree/code-blocks.pedantic.json +++ /dev/null @@ -1,202 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "code", - "lang": null, - "meta": null, - "value": "code block on the first line", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 2, - "offset": 31 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Regular text.", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 32 - }, - "end": { - "line": 3, - "column": 14, - "offset": 45 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 32 - }, - "end": { - "line": 3, - "column": 14, - "offset": 45 - }, - "indent": [] - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "code block indented by spaces", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 47 - }, - "end": { - "line": 5, - "column": 34, - "offset": 80 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Regular text.", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 82 - }, - "end": { - "line": 7, - "column": 14, - "offset": 95 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 82 - }, - "end": { - "line": 7, - "column": 14, - "offset": 95 - }, - "indent": [] - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "the lines in this block \nall contain trailing spaces ", - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 97 - }, - "end": { - "line": 10, - "column": 31, - "offset": 154 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Regular Text.", - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 156 - }, - "end": { - "line": 12, - "column": 14, - "offset": 169 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 156 - }, - "end": { - "line": 12, - "column": 14, - "offset": 169 - }, - "indent": [] - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "code block on the last line", - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 171 - }, - "end": { - "line": 14, - "column": 29, - "offset": 199 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 15, - "column": 1, - "offset": 200 - } - } -} diff --git a/test/fixtures/tree/code-inline-whitespace.json b/test/fixtures/tree/code-inline-whitespace.json index 4fcdc0c26..945a98574 100644 --- a/test/fixtures/tree/code-inline-whitespace.json +++ b/test/fixtures/tree/code-inline-whitespace.json @@ -17,8 +17,7 @@ "line": 1, "column": 38, "offset": 37 - }, - "indent": [] + } } }, { @@ -34,8 +33,7 @@ "line": 1, "column": 51, "offset": 50 - }, - "indent": [] + } } }, { @@ -51,10 +49,7 @@ "line": 2, "column": 17, "offset": 67 - }, - "indent": [ - 1 - ] + } } }, { @@ -70,8 +65,7 @@ "line": 2, "column": 26, "offset": 76 - }, - "indent": [] + } } }, { @@ -87,10 +81,7 @@ "line": 3, "column": 48, "offset": 124 - }, - "indent": [ - 1 - ] + } } }, { @@ -106,8 +97,7 @@ "line": 3, "column": 61, "offset": 137 - }, - "indent": [] + } } } ], @@ -121,11 +111,7 @@ "line": 3, "column": 61, "offset": 137 - }, - "indent": [ - 1, - 1 - ] + } } } ], diff --git a/test/fixtures/tree/code-spans.json b/test/fixtures/tree/code-spans.json index d39a8b62e..5657145aa 100644 --- a/test/fixtures/tree/code-spans.json +++ b/test/fixtures/tree/code-spans.json @@ -17,8 +17,7 @@ "line": 1, "column": 12, "offset": 11 - }, - "indent": [] + } } }, { @@ -34,8 +33,7 @@ "line": 1, "column": 34, "offset": 33 - }, - "indent": [] + } } }, { @@ -51,8 +49,7 @@ "line": 1, "column": 38, "offset": 37 - }, - "indent": [] + } } } ], @@ -66,8 +63,7 @@ "line": 1, "column": 38, "offset": 37 - }, - "indent": [] + } } }, { @@ -86,8 +82,7 @@ "line": 3, "column": 36, "offset": 74 - }, - "indent": [] + } } }, { @@ -103,8 +98,7 @@ "line": 3, "column": 57, "offset": 95 - }, - "indent": [] + } } }, { @@ -120,8 +114,7 @@ "line": 3, "column": 66, "offset": 104 - }, - "indent": [] + } } }, { @@ -137,8 +130,7 @@ "line": 3, "column": 73, "offset": 111 - }, - "indent": [] + } } } ], @@ -152,8 +144,7 @@ "line": 3, "column": 73, "offset": 111 - }, - "indent": [] + } } }, { @@ -172,8 +163,7 @@ "line": 5, "column": 20, "offset": 132 - }, - "indent": [] + } } }, { @@ -189,8 +179,7 @@ "line": 5, "column": 37, "offset": 149 - }, - "indent": [] + } } }, { @@ -206,8 +195,7 @@ "line": 5, "column": 53, "offset": 165 - }, - "indent": [] + } } } ], @@ -221,8 +209,7 @@ "line": 5, "column": 53, "offset": 165 - }, - "indent": [] + } } }, { @@ -241,8 +228,7 @@ "line": 7, "column": 40, "offset": 206 - }, - "indent": [] + } } } ], @@ -256,8 +242,7 @@ "line": 7, "column": 40, "offset": 206 - }, - "indent": [] + } } }, { @@ -276,8 +261,7 @@ "line": 9, "column": 20, "offset": 227 - }, - "indent": [] + } } }, { @@ -293,8 +277,7 @@ "line": 9, "column": 36, "offset": 243 - }, - "indent": [] + } } }, { @@ -310,8 +293,7 @@ "line": 9, "column": 37, "offset": 244 - }, - "indent": [] + } } } ], @@ -325,8 +307,7 @@ "line": 9, "column": 37, "offset": 244 - }, - "indent": [] + } } }, { @@ -345,8 +326,7 @@ "line": 11, "column": 11, "offset": 256 - }, - "indent": [] + } } }, { @@ -362,8 +342,7 @@ "line": 11, "column": 17, "offset": 262 - }, - "indent": [] + } } }, { @@ -379,8 +358,7 @@ "line": 11, "column": 18, "offset": 263 - }, - "indent": [] + } } } ], @@ -394,8 +372,7 @@ "line": 11, "column": 18, "offset": 263 - }, - "indent": [] + } } }, { @@ -414,11 +391,7 @@ "line": 15, "column": 3, "offset": 298 - }, - "indent": [ - 1, - 1 - ] + } } } ], @@ -432,11 +405,7 @@ "line": 15, "column": 3, "offset": 298 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -455,8 +424,7 @@ "line": 17, "column": 12, "offset": 311 - }, - "indent": [] + } } }, { @@ -472,10 +440,7 @@ "line": 18, "column": 7, "offset": 328 - }, - "indent": [ - 1 - ] + } } }, { @@ -491,8 +456,7 @@ "line": 18, "column": 8, "offset": 329 - }, - "indent": [] + } } } ], @@ -506,10 +470,7 @@ "line": 18, "column": 8, "offset": 329 - }, - "indent": [ - 1 - ] + } } }, { @@ -528,8 +489,7 @@ "line": 20, "column": 10, "offset": 340 - }, - "indent": [] + } } }, { @@ -545,8 +505,7 @@ "line": 20, "column": 22, "offset": 352 - }, - "indent": [] + } } } ], @@ -560,8 +519,7 @@ "line": 20, "column": 22, "offset": 352 - }, - "indent": [] + } } }, { @@ -580,8 +538,7 @@ "line": 22, "column": 5, "offset": 358 - }, - "indent": [] + } } }, { @@ -597,8 +554,7 @@ "line": 22, "column": 12, "offset": 365 - }, - "indent": [] + } } }, { @@ -614,8 +570,7 @@ "line": 22, "column": 30, "offset": 383 - }, - "indent": [] + } } } ], @@ -629,8 +584,7 @@ "line": 22, "column": 30, "offset": 383 - }, - "indent": [] + } } }, { @@ -649,8 +603,7 @@ "line": 24, "column": 18, "offset": 402 - }, - "indent": [] + } } }, { @@ -666,8 +619,7 @@ "line": 24, "column": 21, "offset": 405 - }, - "indent": [] + } } }, { @@ -683,8 +635,7 @@ "line": 24, "column": 22, "offset": 406 - }, - "indent": [] + } } } ], @@ -698,8 +649,7 @@ "line": 24, "column": 22, "offset": 406 - }, - "indent": [] + } } }, { @@ -718,8 +668,7 @@ "line": 26, "column": 18, "offset": 425 - }, - "indent": [] + } } }, { @@ -735,8 +684,7 @@ "line": 26, "column": 24, "offset": 431 - }, - "indent": [] + } } }, { @@ -752,8 +700,7 @@ "line": 26, "column": 25, "offset": 432 - }, - "indent": [] + } } } ], @@ -767,8 +714,7 @@ "line": 26, "column": 25, "offset": 432 - }, - "indent": [] + } } }, { @@ -787,8 +733,7 @@ "line": 28, "column": 18, "offset": 451 - }, - "indent": [] + } } }, { @@ -804,10 +749,7 @@ "line": 29, "column": 2, "offset": 454 - }, - "indent": [ - 1 - ] + } } }, { @@ -823,8 +765,7 @@ "line": 29, "column": 3, "offset": 455 - }, - "indent": [] + } } } ], @@ -838,10 +779,7 @@ "line": 29, "column": 3, "offset": 455 - }, - "indent": [ - 1 - ] + } } } ], diff --git a/test/fixtures/tree/def-blocks.commonmark.json b/test/fixtures/tree/def-blocks.commonmark.json deleted file mode 100644 index f25549f55..000000000 --- a/test/fixtures/tree/def-blocks.commonmark.json +++ /dev/null @@ -1,622 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "blockquote", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "hello\n", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 2, - "column": 3, - "offset": 10 - }, - "indent": [ - 3 - ] - } - }, - { - "type": "linkReference", - "identifier": "1", - "label": "1", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "1", - "position": { - "start": { - "line": 2, - "column": 4, - "offset": 11 - }, - "end": { - "line": 2, - "column": 5, - "offset": 12 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 2, - "column": 3, - "offset": 10 - }, - "end": { - "line": 2, - "column": 6, - "offset": 13 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ": hello", - "position": { - "start": { - "line": 2, - "column": 6, - "offset": 13 - }, - "end": { - "line": 2, - "column": 13, - "offset": 20 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 2, - "column": 13, - "offset": 20 - }, - "indent": [ - 3 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 13, - "offset": 20 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 22 - }, - "end": { - "line": 4, - "column": 6, - "offset": 27 - }, - "indent": [] - } - }, - { - "type": "blockquote", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "hello\n", - "position": { - "start": { - "line": 6, - "column": 3, - "offset": 31 - }, - "end": { - "line": 7, - "column": 1, - "offset": 37 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "linkReference", - "identifier": "2", - "label": "2", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "2", - "position": { - "start": { - "line": 7, - "column": 2, - "offset": 38 - }, - "end": { - "line": 7, - "column": 3, - "offset": 39 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 37 - }, - "end": { - "line": 7, - "column": 4, - "offset": 40 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ": hello", - "position": { - "start": { - "line": 7, - "column": 4, - "offset": 40 - }, - "end": { - "line": 7, - "column": 11, - "offset": 47 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 3, - "offset": 31 - }, - "end": { - "line": 7, - "column": 11, - "offset": 47 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 29 - }, - "end": { - "line": 7, - "column": 11, - "offset": 47 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "hello", - "position": { - "start": { - "line": 10, - "column": 3, - "offset": 52 - }, - "end": { - "line": 10, - "column": 8, - "offset": 57 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 10, - "column": 3, - "offset": 52 - }, - "end": { - "line": 10, - "column": 8, - "offset": 57 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 50 - }, - "end": { - "line": 10, - "column": 8, - "offset": 57 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "definition", - "identifier": "3", - "label": "3", - "title": null, - "url": "hello", - "position": { - "start": { - "line": 11, - "column": 3, - "offset": 60 - }, - "end": { - "line": 11, - "column": 13, - "offset": 70 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 58 - }, - "end": { - "line": 12, - "column": 1, - "offset": 71 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "hello\n", - "position": { - "start": { - "line": 14, - "column": 3, - "offset": 75 - }, - "end": { - "line": 15, - "column": 1, - "offset": 81 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "linkReference", - "identifier": "4", - "label": "4", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "4", - "position": { - "start": { - "line": 15, - "column": 2, - "offset": 82 - }, - "end": { - "line": 15, - "column": 3, - "offset": 83 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 81 - }, - "end": { - "line": 15, - "column": 4, - "offset": 84 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ": hello", - "position": { - "start": { - "line": 15, - "column": 4, - "offset": 84 - }, - "end": { - "line": 15, - "column": 11, - "offset": 91 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 3, - "offset": 75 - }, - "end": { - "line": 15, - "column": 11, - "offset": 91 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 73 - }, - "end": { - "line": 15, - "column": 11, - "offset": 91 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 50 - }, - "end": { - "line": 15, - "column": 11, - "offset": 91 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "blockquote", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo\nbar\n", - "position": { - "start": { - "line": 18, - "column": 3, - "offset": 96 - }, - "end": { - "line": 20, - "column": 1, - "offset": 106 - }, - "indent": [ - 3, - 1 - ] - } - }, - { - "type": "linkReference", - "identifier": "1", - "label": "1", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "1", - "position": { - "start": { - "line": 20, - "column": 2, - "offset": 107 - }, - "end": { - "line": 20, - "column": 3, - "offset": 108 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 1, - "offset": 106 - }, - "end": { - "line": 20, - "column": 4, - "offset": 109 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ": foo\nbar", - "position": { - "start": { - "line": 20, - "column": 4, - "offset": 109 - }, - "end": { - "line": 21, - "column": 6, - "offset": 120 - }, - "indent": [ - 3 - ] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 3, - "offset": 96 - }, - "end": { - "line": 21, - "column": 6, - "offset": 120 - }, - "indent": [ - 3, - 1, - 3 - ] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 94 - }, - "end": { - "line": 21, - "column": 6, - "offset": 120 - }, - "indent": [ - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 22, - "column": 1, - "offset": 121 - } - } -} diff --git a/test/fixtures/tree/def-blocks.json b/test/fixtures/tree/def-blocks.json index d88570a63..8c1db9cbb 100644 --- a/test/fixtures/tree/def-blocks.json +++ b/test/fixtures/tree/def-blocks.json @@ -9,7 +9,7 @@ "children": [ { "type": "text", - "value": "hello", + "value": "hello\n[1]: hello", "position": { "start": { "line": 1, @@ -17,11 +17,10 @@ "offset": 2 }, "end": { - "line": 1, - "column": 8, - "offset": 7 - }, - "indent": [] + "line": 2, + "column": 13, + "offset": 20 + } } } ], @@ -31,32 +30,11 @@ "column": 3, "offset": 2 }, - "end": { - "line": 1, - "column": 8, - "offset": 7 - }, - "indent": [] - } - }, - { - "type": "definition", - "identifier": "1", - "label": "1", - "title": null, - "url": "hello", - "position": { - "start": { - "line": 2, - "column": 3, - "offset": 10 - }, "end": { "line": 2, "column": 13, "offset": 20 - }, - "indent": [] + } } } ], @@ -70,10 +48,7 @@ "line": 2, "column": 13, "offset": 20 - }, - "indent": [ - 1 - ] + } } }, { @@ -88,8 +63,7 @@ "line": 4, "column": 6, "offset": 27 - }, - "indent": [] + } } }, { @@ -100,7 +74,7 @@ "children": [ { "type": "text", - "value": "hello", + "value": "hello\n[2]: hello", "position": { "start": { "line": 6, @@ -108,11 +82,10 @@ "offset": 31 }, "end": { - "line": 6, - "column": 8, - "offset": 36 - }, - "indent": [] + "line": 7, + "column": 11, + "offset": 47 + } } } ], @@ -123,11 +96,10 @@ "offset": 31 }, "end": { - "line": 6, - "column": 8, - "offset": 36 - }, - "indent": [] + "line": 7, + "column": 11, + "offset": 47 + } } } ], @@ -137,39 +109,18 @@ "column": 1, "offset": 29 }, - "end": { - "line": 6, - "column": 8, - "offset": 36 - }, - "indent": [] - } - }, - { - "type": "definition", - "identifier": "2", - "label": "2", - "title": null, - "url": "hello", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 37 - }, "end": { "line": 7, "column": 11, "offset": 47 - }, - "indent": [] + } } }, { "type": "list", "ordered": false, "start": null, - "spread": false, + "spread": true, "children": [ { "type": "listItem", @@ -192,8 +143,7 @@ "line": 10, "column": 8, "offset": 57 - }, - "indent": [] + } } } ], @@ -207,8 +157,7 @@ "line": 10, "column": 8, "offset": 57 - }, - "indent": [] + } } } ], @@ -222,8 +171,7 @@ "line": 10, "column": 8, "offset": 57 - }, - "indent": [] + } } }, { @@ -247,8 +195,7 @@ "line": 11, "column": 13, "offset": 70 - }, - "indent": [] + } } } ], @@ -262,33 +209,9 @@ "line": 11, "column": 13, "offset": 70 - }, - "indent": [] + } } - } - ], - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 50 }, - "end": { - "line": 11, - "column": 13, - "offset": 70 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ { "type": "listItem", "spread": false, @@ -299,7 +222,7 @@ "children": [ { "type": "text", - "value": "hello", + "value": "hello\n[4]: hello", "position": { "start": { "line": 14, @@ -307,11 +230,10 @@ "offset": 75 }, "end": { - "line": 14, - "column": 8, - "offset": 80 - }, - "indent": [] + "line": 15, + "column": 11, + "offset": 91 + } } } ], @@ -322,11 +244,10 @@ "offset": 75 }, "end": { - "line": 14, - "column": 8, - "offset": 80 - }, - "indent": [] + "line": 15, + "column": 11, + "offset": 91 + } } } ], @@ -337,46 +258,24 @@ "offset": 73 }, "end": { - "line": 14, - "column": 8, - "offset": 80 - }, - "indent": [] + "line": 15, + "column": 11, + "offset": 91 + } } } ], "position": { "start": { - "line": 14, - "column": 1, - "offset": 73 - }, - "end": { - "line": 14, - "column": 8, - "offset": 80 - }, - "indent": [] - } - }, - { - "type": "definition", - "identifier": "4", - "label": "4", - "title": null, - "url": "hello", - "position": { - "start": { - "line": 15, + "line": 10, "column": 1, - "offset": 81 + "offset": 50 }, "end": { "line": 15, "column": 11, "offset": 91 - }, - "indent": [] + } } }, { @@ -387,128 +286,46 @@ "children": [ { "type": "text", - "value": "foo\nbar", + "value": "foo\nbar\n[1]: foo\nbar", "position": { "start": { "line": 18, "column": 3, "offset": 96 }, - "end": { - "line": 19, - "column": 6, - "offset": 105 - }, - "indent": [ - 3 - ] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 3, - "offset": 96 - }, - "end": { - "line": 19, - "column": 6, - "offset": 105 - }, - "indent": [ - 3 - ] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 94 - }, - "end": { - "line": 19, - "column": 6, - "offset": 105 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "definition", - "identifier": "1", - "label": "1", - "title": null, - "url": "foo", - "position": { - "start": { - "line": 20, - "column": 1, - "offset": 106 - }, - "end": { - "line": 20, - "column": 9, - "offset": 114 - }, - "indent": [] - } - }, - { - "type": "blockquote", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "bar", - "position": { - "start": { - "line": 21, - "column": 3, - "offset": 117 - }, "end": { "line": 21, "column": 6, "offset": 120 - }, - "indent": [] + } } } ], "position": { "start": { - "line": 21, + "line": 18, "column": 3, - "offset": 117 + "offset": 96 }, "end": { "line": 21, "column": 6, "offset": 120 - }, - "indent": [] + } } } ], "position": { "start": { - "line": 21, + "line": 18, "column": 1, - "offset": 115 + "offset": 94 }, "end": { "line": 21, "column": 6, "offset": 120 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/definition-in-list-and-blockquote.json b/test/fixtures/tree/definition-in-list-and-blockquote.json index 382377c7a..cadfecee2 100644 --- a/test/fixtures/tree/definition-in-list-and-blockquote.json +++ b/test/fixtures/tree/definition-in-list-and-blockquote.json @@ -6,9 +6,6 @@ "children": [ { "type": "linkReference", - "identifier": "1", - "label": "1", - "referenceType": "full", "children": [ { "type": "text", @@ -23,8 +20,7 @@ "line": 1, "column": 7, "offset": 6 - }, - "indent": [] + } } } ], @@ -38,9 +34,11 @@ "line": 1, "column": 11, "offset": 10 - }, - "indent": [] - } + } + }, + "identifier": "1", + "label": "1", + "referenceType": "full" }, { "type": "text", @@ -55,15 +53,11 @@ "line": 1, "column": 13, "offset": 12 - }, - "indent": [] + } } }, { "type": "linkReference", - "identifier": "2", - "label": "2", - "referenceType": "full", "children": [ { "type": "text", @@ -78,8 +72,7 @@ "line": 1, "column": 19, "offset": 18 - }, - "indent": [] + } } } ], @@ -93,9 +86,11 @@ "line": 1, "column": 23, "offset": 22 - }, - "indent": [] - } + } + }, + "identifier": "2", + "label": "2", + "referenceType": "full" }, { "type": "text", @@ -110,8 +105,7 @@ "line": 1, "column": 24, "offset": 23 - }, - "indent": [] + } } } ], @@ -125,8 +119,7 @@ "line": 1, "column": 24, "offset": 23 - }, - "indent": [] + } } }, { @@ -156,8 +149,7 @@ "line": 3, "column": 22, "offset": 46 - }, - "indent": [] + } } } ], @@ -171,8 +163,7 @@ "line": 3, "column": 22, "offset": 46 - }, - "indent": [] + } } }, { @@ -191,8 +182,7 @@ "line": 5, "column": 13, "offset": 60 - }, - "indent": [] + } } } ], @@ -206,11 +196,7 @@ "line": 5, "column": 13, "offset": 60 - }, - "indent": [ - 1, - 1 - ] + } } } ], @@ -224,11 +210,7 @@ "line": 5, "column": 13, "offset": 60 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -250,8 +232,7 @@ "line": 7, "column": 28, "offset": 89 - }, - "indent": [] + } } } ], @@ -265,8 +246,7 @@ "line": 7, "column": 28, "offset": 89 - }, - "indent": [] + } } }, { @@ -285,8 +265,7 @@ "line": 9, "column": 13, "offset": 104 - }, - "indent": [] + } } } ], @@ -300,11 +279,7 @@ "line": 9, "column": 13, "offset": 104 - }, - "indent": [ - 1, - 1 - ] + } } } ], diff --git a/test/fixtures/tree/definition-newline.commonmark.json b/test/fixtures/tree/definition-newline.commonmark.json deleted file mode 100644 index e82ee82b6..000000000 --- a/test/fixtures/tree/definition-newline.commonmark.json +++ /dev/null @@ -1,425 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "baz", - "label": "baz", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "baz", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 5, - "offset": 4 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 6, - "offset": 5 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ": /url (\n)", - "position": { - "start": { - "line": 1, - "column": 6, - "offset": 5 - }, - "end": { - "line": 2, - "column": 2, - "offset": 15 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 2, - "offset": 15 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "foo", - "label": "foo", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "foo", - "position": { - "start": { - "line": 4, - "column": 2, - "offset": 18 - }, - "end": { - "line": 4, - "column": 5, - "offset": 21 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 17 - }, - "end": { - "line": 4, - "column": 6, - "offset": 22 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ": /url \"\n\"", - "position": { - "start": { - "line": 4, - "column": 6, - "offset": 22 - }, - "end": { - "line": 5, - "column": 2, - "offset": 32 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 17 - }, - "end": { - "line": 5, - "column": 2, - "offset": 32 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "bar", - "label": "bar", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "bar", - "position": { - "start": { - "line": 7, - "column": 2, - "offset": 35 - }, - "end": { - "line": 7, - "column": 5, - "offset": 38 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 34 - }, - "end": { - "line": 7, - "column": 6, - "offset": 39 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ": /url '\n'\n", - "position": { - "start": { - "line": 7, - "column": 6, - "offset": 39 - }, - "end": { - "line": 9, - "column": 1, - "offset": 50 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "linkReference", - "identifier": "baz", - "label": "baz", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "baz", - "position": { - "start": { - "line": 9, - "column": 2, - "offset": 51 - }, - "end": { - "line": 9, - "column": 5, - "offset": 54 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 50 - }, - "end": { - "line": 9, - "column": 6, - "offset": 55 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ": /url (foo\nbar)", - "position": { - "start": { - "line": 9, - "column": 6, - "offset": 55 - }, - "end": { - "line": 10, - "column": 5, - "offset": 71 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 34 - }, - "end": { - "line": 10, - "column": 5, - "offset": 71 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "definition", - "identifier": "baz", - "label": "baz", - "title": "foo\nbar", - "url": "/url", - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 73 - }, - "end": { - "line": 13, - "column": 5, - "offset": 94 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "definition", - "identifier": "baz", - "label": "baz", - "title": "foo\nbar", - "url": "/url", - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 96 - }, - "end": { - "line": 16, - "column": 5, - "offset": 117 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "baz", - "label": "baz", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "baz", - "position": { - "start": { - "line": 18, - "column": 2, - "offset": 120 - }, - "end": { - "line": 18, - "column": 5, - "offset": 123 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 119 - }, - "end": { - "line": 18, - "column": 6, - "offset": 124 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ": /url 'foo", - "position": { - "start": { - "line": 18, - "column": 6, - "offset": 124 - }, - "end": { - "line": 18, - "column": 17, - "offset": 135 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 119 - }, - "end": { - "line": 18, - "column": 17, - "offset": 135 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 18, - "column": 17, - "offset": 135 - } - } -} diff --git a/test/fixtures/tree/definition-newline.json b/test/fixtures/tree/definition-newline.json index 6d43b85eb..8ce627101 100644 --- a/test/fixtures/tree/definition-newline.json +++ b/test/fixtures/tree/definition-newline.json @@ -2,66 +2,11 @@ "type": "root", "children": [ { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "baz", - "label": "baz", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "baz", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 5, - "offset": 4 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 6, - "offset": 5 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ": /url (\n)", - "position": { - "start": { - "line": 1, - "column": 6, - "offset": 5 - }, - "end": { - "line": 2, - "column": 2, - "offset": 15 - }, - "indent": [ - 1 - ] - } - } - ], + "type": "definition", + "identifier": "baz", + "label": "baz", + "title": "\n", + "url": "/url", "position": { "start": { "line": 1, @@ -72,73 +17,15 @@ "line": 2, "column": 2, "offset": 15 - }, - "indent": [ - 1 - ] + } } }, { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "foo", - "label": "foo", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "foo", - "position": { - "start": { - "line": 4, - "column": 2, - "offset": 18 - }, - "end": { - "line": 4, - "column": 5, - "offset": 21 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 17 - }, - "end": { - "line": 4, - "column": 6, - "offset": 22 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ": /url \"\n\"", - "position": { - "start": { - "line": 4, - "column": 6, - "offset": 22 - }, - "end": { - "line": 5, - "column": 2, - "offset": 32 - }, - "indent": [ - 1 - ] - } - } - ], + "type": "definition", + "identifier": "foo", + "label": "foo", + "title": "\n", + "url": "/url", "position": { "start": { "line": 4, @@ -149,73 +36,15 @@ "line": 5, "column": 2, "offset": 32 - }, - "indent": [ - 1 - ] + } } }, { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "bar", - "label": "bar", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "bar", - "position": { - "start": { - "line": 7, - "column": 2, - "offset": 35 - }, - "end": { - "line": 7, - "column": 5, - "offset": 38 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 34 - }, - "end": { - "line": 7, - "column": 6, - "offset": 39 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ": /url '\n'", - "position": { - "start": { - "line": 7, - "column": 6, - "offset": 39 - }, - "end": { - "line": 8, - "column": 2, - "offset": 49 - }, - "indent": [ - 1 - ] - } - } - ], + "type": "definition", + "identifier": "bar", + "label": "bar", + "title": "\n", + "url": "/url", "position": { "start": { "line": 7, @@ -226,10 +55,7 @@ "line": 8, "column": 2, "offset": 49 - }, - "indent": [ - 1 - ] + } } }, { @@ -248,10 +74,7 @@ "line": 10, "column": 5, "offset": 71 - }, - "indent": [ - 1 - ] + } } }, { @@ -270,10 +93,7 @@ "line": 13, "column": 5, "offset": 94 - }, - "indent": [ - 1 - ] + } } }, { @@ -292,10 +112,7 @@ "line": 16, "column": 5, "offset": 117 - }, - "indent": [ - 1 - ] + } } }, { @@ -303,9 +120,6 @@ "children": [ { "type": "linkReference", - "identifier": "baz", - "label": "baz", - "referenceType": "shortcut", "children": [ { "type": "text", @@ -320,8 +134,7 @@ "line": 18, "column": 5, "offset": 123 - }, - "indent": [] + } } } ], @@ -335,9 +148,11 @@ "line": 18, "column": 6, "offset": 124 - }, - "indent": [] - } + } + }, + "identifier": "baz", + "label": "baz", + "referenceType": "shortcut" }, { "type": "text", @@ -352,8 +167,7 @@ "line": 18, "column": 17, "offset": 135 - }, - "indent": [] + } } } ], @@ -367,8 +181,7 @@ "line": 18, "column": 17, "offset": 135 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/definition-unclosed-attribute.json b/test/fixtures/tree/definition-unclosed-attribute.json index e36b83dec..9e5fbedde 100644 --- a/test/fixtures/tree/definition-unclosed-attribute.json +++ b/test/fixtures/tree/definition-unclosed-attribute.json @@ -5,58 +5,19 @@ "type": "paragraph", "children": [ { - "type": "linkReference", - "identifier": "baz", - "label": "baz", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "baz", - "position": { - "start": { - "line": 2, - "column": 2, - "offset": 2 - }, - "end": { - "line": 2, - "column": 5, - "offset": 5 - }, - "indent": [] - } - } - ], + "type": "text", + "value": "[baz]: /url (there", "position": { "start": { "line": 2, "column": 1, "offset": 1 }, - "end": { - "line": 2, - "column": 6, - "offset": 6 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ": /url (there", - "position": { - "start": { - "line": 2, - "column": 6, - "offset": 6 - }, "end": { "line": 2, "column": 19, "offset": 19 - }, - "indent": [] + } } } ], @@ -70,66 +31,26 @@ "line": 2, "column": 19, "offset": 19 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "linkReference", - "identifier": "foo", - "label": "foo", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "foo", - "position": { - "start": { - "line": 4, - "column": 2, - "offset": 22 - }, - "end": { - "line": 4, - "column": 5, - "offset": 25 - }, - "indent": [] - } - } - ], + "type": "text", + "value": "[foo]: /url \"there", "position": { "start": { "line": 4, "column": 1, "offset": 21 }, - "end": { - "line": 4, - "column": 6, - "offset": 26 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ": /url \"there", - "position": { - "start": { - "line": 4, - "column": 6, - "offset": 26 - }, "end": { "line": 4, "column": 19, "offset": 39 - }, - "indent": [] + } } } ], @@ -143,66 +64,26 @@ "line": 4, "column": 19, "offset": 39 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "linkReference", - "identifier": "bar", - "label": "bar", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "bar", - "position": { - "start": { - "line": 6, - "column": 2, - "offset": 42 - }, - "end": { - "line": 6, - "column": 5, - "offset": 45 - }, - "indent": [] - } - } - ], + "type": "text", + "value": "[bar]: /url 'there", "position": { "start": { "line": 6, "column": 1, "offset": 41 }, - "end": { - "line": 6, - "column": 6, - "offset": 46 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ": /url 'there", - "position": { - "start": { - "line": 6, - "column": 6, - "offset": 46 - }, "end": { "line": 6, "column": 19, "offset": 59 - }, - "indent": [] + } } } ], @@ -216,66 +97,26 @@ "line": 6, "column": 19, "offset": 59 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "linkReference", - "identifier": "baz", - "label": "baz", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "baz", - "position": { - "start": { - "line": 8, - "column": 2, - "offset": 62 - }, - "end": { - "line": 8, - "column": 5, - "offset": 65 - }, - "indent": [] - } - } - ], + "type": "text", + "value": "[baz]: url (", "position": { "start": { "line": 8, "column": 1, "offset": 61 }, - "end": { - "line": 8, - "column": 6, - "offset": 66 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ": url (", - "position": { - "start": { - "line": 8, - "column": 6, - "offset": 66 - }, "end": { "line": 8, "column": 13, "offset": 73 - }, - "indent": [] + } } } ], @@ -289,66 +130,26 @@ "line": 8, "column": 13, "offset": 73 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "linkReference", - "identifier": "foo", - "label": "foo", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "foo", - "position": { - "start": { - "line": 10, - "column": 2, - "offset": 76 - }, - "end": { - "line": 10, - "column": 5, - "offset": 79 - }, - "indent": [] - } - } - ], + "type": "text", + "value": "[foo]: url \"", "position": { "start": { "line": 10, "column": 1, "offset": 75 }, - "end": { - "line": 10, - "column": 6, - "offset": 80 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ": url \"", - "position": { - "start": { - "line": 10, - "column": 6, - "offset": 80 - }, "end": { "line": 10, "column": 13, "offset": 87 - }, - "indent": [] + } } } ], @@ -362,66 +163,26 @@ "line": 10, "column": 13, "offset": 87 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "linkReference", - "identifier": "bar", - "label": "bar", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "bar", - "position": { - "start": { - "line": 12, - "column": 2, - "offset": 90 - }, - "end": { - "line": 12, - "column": 5, - "offset": 93 - }, - "indent": [] - } - } - ], + "type": "text", + "value": "[bar]: /url '", "position": { "start": { "line": 12, "column": 1, "offset": 89 }, - "end": { - "line": 12, - "column": 6, - "offset": 94 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ": /url '", - "position": { - "start": { - "line": 12, - "column": 6, - "offset": 94 - }, "end": { "line": 12, "column": 14, "offset": 102 - }, - "indent": [] + } } } ], @@ -435,66 +196,26 @@ "line": 12, "column": 14, "offset": 102 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "linkReference", - "identifier": "baz", - "label": "baz", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "baz", - "position": { - "start": { - "line": 14, - "column": 2, - "offset": 105 - }, - "end": { - "line": 14, - "column": 5, - "offset": 108 - }, - "indent": [] - } - } - ], + "type": "text", + "value": "[baz]: ", "position": { "start": { "line": 14, "column": 1, "offset": 104 }, - "end": { - "line": 14, - "column": 6, - "offset": 109 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ": ", - "position": { - "start": { - "line": 14, - "column": 6, - "offset": 109 - }, "end": { "line": 14, "column": 8, "offset": 111 - }, - "indent": [] + } } }, { @@ -510,8 +231,7 @@ "line": 14, "column": 13, "offset": 116 - }, - "indent": [] + } } }, { @@ -527,8 +247,7 @@ "line": 14, "column": 14, "offset": 117 - }, - "indent": [] + } } } ], @@ -542,66 +261,26 @@ "line": 14, "column": 14, "offset": 117 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "linkReference", - "identifier": "foo", - "label": "foo", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "foo", - "position": { - "start": { - "line": 16, - "column": 2, - "offset": 120 - }, - "end": { - "line": 16, - "column": 5, - "offset": 123 - }, - "indent": [] - } - } - ], + "type": "text", + "value": "[foo]: ", "position": { "start": { "line": 16, "column": 1, "offset": 119 }, - "end": { - "line": 16, - "column": 6, - "offset": 124 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ": ", - "position": { - "start": { - "line": 16, - "column": 6, - "offset": 124 - }, "end": { "line": 16, "column": 8, "offset": 126 - }, - "indent": [] + } } }, { @@ -617,8 +296,7 @@ "line": 16, "column": 13, "offset": 131 - }, - "indent": [] + } } }, { @@ -634,8 +312,7 @@ "line": 16, "column": 14, "offset": 132 - }, - "indent": [] + } } } ], @@ -649,66 +326,26 @@ "line": 16, "column": 14, "offset": 132 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "linkReference", - "identifier": "bar", - "label": "bar", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "bar", - "position": { - "start": { - "line": 18, - "column": 2, - "offset": 135 - }, - "end": { - "line": 18, - "column": 5, - "offset": 138 - }, - "indent": [] - } - } - ], + "type": "text", + "value": "[bar]: ", "position": { "start": { "line": 18, "column": 1, "offset": 134 }, - "end": { - "line": 18, - "column": 6, - "offset": 139 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ": ", - "position": { - "start": { - "line": 18, - "column": 6, - "offset": 139 - }, "end": { "line": 18, "column": 8, "offset": 141 - }, - "indent": [] + } } }, { @@ -724,8 +361,7 @@ "line": 18, "column": 13, "offset": 146 - }, - "indent": [] + } } }, { @@ -741,8 +377,7 @@ "line": 18, "column": 14, "offset": 147 - }, - "indent": [] + } } } ], @@ -756,8 +391,7 @@ "line": 18, "column": 14, "offset": 147 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/definition-unclosed.commonmark.json b/test/fixtures/tree/definition-unclosed.commonmark.json deleted file mode 100644 index 6a4815c0f..000000000 --- a/test/fixtures/tree/definition-unclosed.commonmark.json +++ /dev/null @@ -1,236 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "foo", - "label": "foo", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "foo", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 5, - "offset": 4 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 6, - "offset": 5 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ":", - "position": { - "start": { - "line": 1, - "column": 6, - "offset": 5 - }, - "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": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "bar", - "label": "bar", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "bar", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 9 - }, - "end": { - "line": 3, - "column": 5, - "offset": 12 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 8 - }, - "end": { - "line": 3, - "column": 6, - "offset": 13 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ": ", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 16 - }, - "end": { - "line": 3, - "column": 34, - "offset": 49 - }, - "indent": [] - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 51 - }, - "end": { - "line": 7, - "column": 4, - "offset": 85 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "What follows is not an HTML comment because it contains\ntwo consecutive dashes:\n", - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 87 - }, - "end": { - "line": 11, - "column": 1, - "offset": 167 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "link", - "title": null, - "url": "https://html.spec.whatwg.org/multipage/syntax.html#comments", - "children": [ - { - "type": "text", - "value": "https://html.spec.whatwg.org/multipage/syntax.html#comments", - "position": { - "start": { - "line": 11, - "column": 2, - "offset": 168 - }, - "end": { - "line": 11, - "column": 61, - "offset": 227 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 167 - }, - "end": { - "line": 11, - "column": 62, - "offset": 228 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 11, - "column": 62, - "offset": 228 - }, - "end": { - "line": 11, - "column": 63, - "offset": 229 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 87 - }, - "end": { - "line": 11, - "column": 63, - "offset": 229 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 231 - }, - "end": { - "line": 13, - "column": 51, - "offset": 281 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "But this is fine (in commonmark):", - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 283 - }, - "end": { - "line": 15, - "column": 34, - "offset": 316 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 283 - }, - "end": { - "line": 15, - "column": 34, - "offset": 316 - }, - "indent": [] - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 318 - }, - "end": { - "line": 17, - "column": 41, - "offset": 358 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And, this is wrong (in commonmark):", - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 360 - }, - "end": { - "line": 19, - "column": 36, - "offset": 395 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 360 - }, - "end": { - "line": 19, - "column": 36, - "offset": 395 - }, - "indent": [] - } - }, - { - "type": "html", - "value": "-->", - "position": { - "start": { - "line": 21, - "column": 1, - "offset": 397 - }, - "end": { - "line": 21, - "column": 9, - "offset": 405 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "The end.", - "position": { - "start": { - "line": 23, - "column": 1, - "offset": 407 - }, - "end": { - "line": 23, - "column": 9, - "offset": 415 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 23, - "column": 1, - "offset": 407 - }, - "end": { - "line": 23, - "column": 9, - "offset": 415 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 24, - "column": 1, - "offset": 416 - } - } -} diff --git a/test/fixtures/tree/html-comments.json b/test/fixtures/tree/html-comments.json index c5902d82d..621f18c9a 100644 --- a/test/fixtures/tree/html-comments.json +++ b/test/fixtures/tree/html-comments.json @@ -17,8 +17,7 @@ "line": 1, "column": 15, "offset": 14 - }, - "indent": [] + } } } ], @@ -32,8 +31,7 @@ "line": 1, "column": 15, "offset": 14 - }, - "indent": [] + } } }, { @@ -49,8 +47,7 @@ "line": 3, "column": 34, "offset": 49 - }, - "indent": [] + } } }, { @@ -66,11 +63,7 @@ "line": 7, "column": 4, "offset": 85 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -89,11 +82,7 @@ "line": 11, "column": 1, "offset": 167 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -114,8 +103,7 @@ "line": 11, "column": 61, "offset": 227 - }, - "indent": [] + } } } ], @@ -129,8 +117,7 @@ "line": 11, "column": 62, "offset": 228 - }, - "indent": [] + } } }, { @@ -146,8 +133,7 @@ "line": 11, "column": 63, "offset": 229 - }, - "indent": [] + } } } ], @@ -161,11 +147,7 @@ "line": 11, "column": 63, "offset": 229 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -181,8 +163,7 @@ "line": 13, "column": 51, "offset": 281 - }, - "indent": [] + } } }, { @@ -201,8 +182,7 @@ "line": 15, "column": 34, "offset": 316 - }, - "indent": [] + } } } ], @@ -216,8 +196,7 @@ "line": 15, "column": 34, "offset": 316 - }, - "indent": [] + } } }, { @@ -233,8 +212,7 @@ "line": 17, "column": 41, "offset": 358 - }, - "indent": [] + } } }, { @@ -253,8 +231,7 @@ "line": 19, "column": 36, "offset": 395 - }, - "indent": [] + } } } ], @@ -268,8 +245,7 @@ "line": 19, "column": 36, "offset": 395 - }, - "indent": [] + } } }, { @@ -285,8 +261,7 @@ "line": 21, "column": 9, "offset": 405 - }, - "indent": [] + } } }, { @@ -305,8 +280,7 @@ "line": 23, "column": 9, "offset": 415 - }, - "indent": [] + } } } ], @@ -320,8 +294,7 @@ "line": 23, "column": 9, "offset": 415 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/html-declaration.json b/test/fixtures/tree/html-declaration.json index 32075fcba..4c18fb593 100644 --- a/test/fixtures/tree/html-declaration.json +++ b/test/fixtures/tree/html-declaration.json @@ -14,8 +14,7 @@ "line": 1, "column": 16, "offset": 15 - }, - "indent": [] + } } }, { @@ -34,8 +33,7 @@ "line": 3, "column": 5, "offset": 21 - }, - "indent": [] + } } }, { @@ -51,8 +49,7 @@ "line": 3, "column": 18, "offset": 34 - }, - "indent": [] + } } } ], @@ -66,8 +63,7 @@ "line": 3, "column": 18, "offset": 34 - }, - "indent": [] + } } }, { @@ -83,8 +79,7 @@ "line": 5, "column": 16, "offset": 51 - }, - "indent": [] + } } }, { @@ -100,8 +95,7 @@ "line": 7, "column": 10, "offset": 62 - }, - "indent": [] + } } }, { @@ -117,8 +111,7 @@ "line": 9, "column": 11, "offset": 74 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/html-indented.json b/test/fixtures/tree/html-indented.json index 2ecdc880c..ead67e743 100644 --- a/test/fixtures/tree/html-indented.json +++ b/test/fixtures/tree/html-indented.json @@ -14,11 +14,7 @@ "line": 3, "column": 9, "offset": 25 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -34,11 +30,7 @@ "line": 8, "column": 10, "offset": 55 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -54,8 +46,7 @@ "line": 11, "column": 18, "offset": 75 - }, - "indent": [] + } } }, { @@ -71,8 +62,7 @@ "line": 14, "column": 16, "offset": 93 - }, - "indent": [] + } } }, { @@ -91,8 +81,7 @@ "line": 17, "column": 7, "offset": 102 - }, - "indent": [] + } } }, { @@ -108,8 +97,7 @@ "line": 17, "column": 19, "offset": 114 - }, - "indent": [] + } } } ], @@ -123,8 +111,7 @@ "line": 17, "column": 19, "offset": 114 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/html-processing-instruction.json b/test/fixtures/tree/html-processing-instruction.json index f7d1a52a9..2a687c9c9 100644 --- a/test/fixtures/tree/html-processing-instruction.json +++ b/test/fixtures/tree/html-processing-instruction.json @@ -14,11 +14,7 @@ "line": 3, "column": 3, "offset": 20 - }, - "indent": [ - 1, - 1 - ] + } } } ], diff --git a/test/fixtures/tree/html-simple.json b/test/fixtures/tree/html-simple.json index 951923aab..1a1575711 100644 --- a/test/fixtures/tree/html-simple.json +++ b/test/fixtures/tree/html-simple.json @@ -17,8 +17,7 @@ "line": 1, "column": 23, "offset": 22 - }, - "indent": [] + } } } ], @@ -32,8 +31,7 @@ "line": 1, "column": 23, "offset": 22 - }, - "indent": [] + } } }, { @@ -49,11 +47,7 @@ "line": 5, "column": 7, "offset": 41 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -72,8 +66,7 @@ "line": 7, "column": 37, "offset": 79 - }, - "indent": [] + } } } ], @@ -87,8 +80,7 @@ "line": 7, "column": 37, "offset": 79 - }, - "indent": [] + } } }, { @@ -106,11 +98,7 @@ "line": 11, "column": 8, "offset": 101 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -129,8 +117,7 @@ "line": 13, "column": 16, "offset": 118 - }, - "indent": [] + } } } ], @@ -144,8 +131,7 @@ "line": 13, "column": 16, "offset": 118 - }, - "indent": [] + } } }, { @@ -163,8 +149,7 @@ "line": 15, "column": 16, "offset": 135 - }, - "indent": [] + } } }, { @@ -183,8 +168,7 @@ "line": 17, "column": 13, "offset": 149 - }, - "indent": [] + } } } ], @@ -198,8 +182,7 @@ "line": 17, "column": 13, "offset": 149 - }, - "indent": [] + } } }, { @@ -215,15 +198,7 @@ "line": 25, "column": 7, "offset": 202 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1 - ] + } } }, { @@ -242,8 +217,7 @@ "line": 27, "column": 37, "offset": 240 - }, - "indent": [] + } } } ], @@ -257,8 +231,7 @@ "line": 27, "column": 37, "offset": 240 - }, - "indent": [] + } } }, { @@ -274,8 +247,7 @@ "line": 29, "column": 17, "offset": 258 - }, - "indent": [] + } } }, { @@ -294,8 +266,7 @@ "line": 31, "column": 11, "offset": 270 - }, - "indent": [] + } } } ], @@ -309,8 +280,7 @@ "line": 31, "column": 11, "offset": 270 - }, - "indent": [] + } } }, { @@ -326,12 +296,7 @@ "line": 36, "column": 4, "offset": 290 - }, - "indent": [ - 1, - 1, - 1 - ] + } } }, { @@ -350,8 +315,7 @@ "line": 38, "column": 12, "offset": 303 - }, - "indent": [] + } } } ], @@ -365,8 +329,7 @@ "line": 38, "column": 12, "offset": 303 - }, - "indent": [] + } } }, { @@ -384,8 +347,7 @@ "line": 40, "column": 18, "offset": 322 - }, - "indent": [] + } } }, { @@ -404,8 +366,7 @@ "line": 42, "column": 54, "offset": 377 - }, - "indent": [] + } } } ], @@ -419,8 +380,7 @@ "line": 42, "column": 54, "offset": 377 - }, - "indent": [] + } } }, { @@ -436,8 +396,7 @@ "line": 44, "column": 16, "offset": 394 - }, - "indent": [] + } } }, { @@ -456,8 +415,7 @@ "line": 46, "column": 6, "offset": 401 - }, - "indent": [] + } } } ], @@ -471,8 +429,7 @@ "line": 46, "column": 6, "offset": 401 - }, - "indent": [] + } } }, { @@ -487,13 +444,10 @@ "offset": 403 }, "end": { - "line": 49, - "column": 2, - "offset": 410 - }, - "indent": [ - 1 - ] + "line": 48, + "column": 6, + "offset": 408 + } } }, { @@ -512,8 +466,7 @@ "line": 50, "column": 6, "offset": 416 - }, - "indent": [] + } } } ], @@ -527,8 +480,7 @@ "line": 50, "column": 6, "offset": 416 - }, - "indent": [] + } } }, { @@ -544,8 +496,7 @@ "line": 52, "column": 5, "offset": 422 - }, - "indent": [] + } } }, { @@ -561,8 +512,7 @@ "line": 54, "column": 5, "offset": 428 - }, - "indent": [] + } } }, { @@ -578,8 +528,7 @@ "line": 56, "column": 5, "offset": 434 - }, - "indent": [] + } } }, { @@ -595,8 +544,7 @@ "line": 58, "column": 8, "offset": 443 - }, - "indent": [] + } } }, { @@ -612,8 +560,7 @@ "line": 60, "column": 7, "offset": 451 - }, - "indent": [] + } } }, { @@ -629,8 +576,7 @@ "line": 62, "column": 6, "offset": 458 - }, - "indent": [] + } } }, { @@ -646,8 +592,7 @@ "line": 64, "column": 28, "offset": 487 - }, - "indent": [] + } } }, { @@ -663,8 +608,7 @@ "line": 66, "column": 27, "offset": 515 - }, - "indent": [] + } } }, { @@ -680,8 +624,7 @@ "line": 68, "column": 27, "offset": 543 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/html-tags.json b/test/fixtures/tree/html-tags.json index 8cf541e41..d71dc472e 100644 --- a/test/fixtures/tree/html-tags.json +++ b/test/fixtures/tree/html-tags.json @@ -18,8 +18,7 @@ "line": 1, "column": 8, "offset": 7 - }, - "indent": [] + } } } ], @@ -33,8 +32,7 @@ "line": 1, "column": 8, "offset": 7 - }, - "indent": [] + } } }, { @@ -50,8 +48,7 @@ "line": 3, "column": 10, "offset": 18 - }, - "indent": [] + } } }, { @@ -67,8 +64,7 @@ "line": 6, "column": 10, "offset": 30 - }, - "indent": [] + } } }, { @@ -84,8 +80,7 @@ "line": 9, "column": 10, "offset": 42 - }, - "indent": [] + } } }, { @@ -104,8 +99,7 @@ "line": 12, "column": 11, "offset": 55 - }, - "indent": [] + } } } ], @@ -119,8 +113,7 @@ "line": 12, "column": 11, "offset": 55 - }, - "indent": [] + } } }, { @@ -136,8 +129,7 @@ "line": 15, "column": 14, "offset": 71 - }, - "indent": [] + } } }, { @@ -153,8 +145,7 @@ "line": 18, "column": 18, "offset": 91 - }, - "indent": [] + } } }, { @@ -170,8 +161,7 @@ "line": 21, "column": 18, "offset": 111 - }, - "indent": [] + } } }, { @@ -187,8 +177,7 @@ "line": 24, "column": 18, "offset": 131 - }, - "indent": [] + } } }, { @@ -204,8 +193,7 @@ "line": 27, "column": 19, "offset": 152 - }, - "indent": [] + } } }, { @@ -221,8 +209,7 @@ "line": 30, "column": 11, "offset": 165 - }, - "indent": [] + } } }, { @@ -241,8 +228,7 @@ "line": 33, "column": 12, "offset": 179 - }, - "indent": [] + } } } ], @@ -256,8 +242,7 @@ "line": 33, "column": 12, "offset": 179 - }, - "indent": [] + } } }, { @@ -273,8 +258,7 @@ "line": 36, "column": 11, "offset": 192 - }, - "indent": [] + } } }, { @@ -290,8 +274,7 @@ "line": 39, "column": 11, "offset": 205 - }, - "indent": [] + } } }, { @@ -307,8 +290,7 @@ "line": 42, "column": 11, "offset": 218 - }, - "indent": [] + } } }, { @@ -324,8 +306,7 @@ "line": 45, "column": 13, "offset": 233 - }, - "indent": [] + } } }, { @@ -344,8 +325,7 @@ "line": 48, "column": 14, "offset": 249 - }, - "indent": [] + } } } ], @@ -359,8 +339,7 @@ "line": 48, "column": 14, "offset": 249 - }, - "indent": [] + } } }, { @@ -376,8 +355,7 @@ "line": 51, "column": 10, "offset": 261 - }, - "indent": [] + } } }, { @@ -393,8 +371,7 @@ "line": 54, "column": 12, "offset": 275 - }, - "indent": [] + } } }, { @@ -414,8 +391,7 @@ "line": 57, "column": 9, "offset": 286 - }, - "indent": [] + } } } ], @@ -429,8 +405,7 @@ "line": 57, "column": 9, "offset": 286 - }, - "indent": [] + } } }, { @@ -446,8 +421,7 @@ "line": 59, "column": 7, "offset": 294 - }, - "indent": [] + } } }, { @@ -463,8 +437,7 @@ "line": 62, "column": 7, "offset": 303 - }, - "indent": [] + } } }, { @@ -480,8 +453,7 @@ "line": 65, "column": 7, "offset": 312 - }, - "indent": [] + } } }, { @@ -500,8 +472,7 @@ "line": 68, "column": 8, "offset": 322 - }, - "indent": [] + } } } ], @@ -515,8 +486,7 @@ "line": 68, "column": 8, "offset": 322 - }, - "indent": [] + } } }, { @@ -532,8 +502,7 @@ "line": 71, "column": 8, "offset": 332 - }, - "indent": [] + } } }, { @@ -552,8 +521,7 @@ "line": 74, "column": 9, "offset": 343 - }, - "indent": [] + } } } ], @@ -567,8 +535,7 @@ "line": 74, "column": 9, "offset": 343 - }, - "indent": [] + } } }, { @@ -584,8 +551,7 @@ "line": 77, "column": 8, "offset": 353 - }, - "indent": [] + } } }, { @@ -601,8 +567,7 @@ "line": 80, "column": 8, "offset": 363 - }, - "indent": [] + } } }, { @@ -618,8 +583,7 @@ "line": 83, "column": 8, "offset": 373 - }, - "indent": [] + } } }, { @@ -635,8 +599,7 @@ "line": 86, "column": 10, "offset": 385 - }, - "indent": [] + } } }, { @@ -655,8 +618,7 @@ "line": 89, "column": 9, "offset": 396 - }, - "indent": [] + } } } ], @@ -670,8 +632,7 @@ "line": 89, "column": 9, "offset": 396 - }, - "indent": [] + } } }, { @@ -690,8 +651,7 @@ "line": 92, "column": 7, "offset": 405 - }, - "indent": [] + } } } ], @@ -705,8 +665,7 @@ "line": 92, "column": 7, "offset": 405 - }, - "indent": [] + } } }, { @@ -714,7 +673,7 @@ "children": [ { "type": "text", - "value": ".", - "position": { - "start": { - "line": 15, - "column": 27, - "offset": 299 - }, - "end": { - "line": 15, - "column": 37, - "offset": 309 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 273 - }, - "end": { - "line": 15, - "column": 37, - "offset": 309 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "<", - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 311 - }, - "end": { - "line": 17, - "column": 2, - "offset": 312 - }, - "indent": [] - } - }, - { - "type": "link", - "title": null, - "url": "https://example.com?bravo", - "children": [ - { - "type": "text", - "value": "https://example.com?bravo", - "position": { - "start": { - "line": 17, - "column": 2, - "offset": 312 - }, - "end": { - "line": 17, - "column": 27, - "offset": 337 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 17, - "column": 2, - "offset": 312 - }, - "end": { - "line": 17, - "column": 27, - "offset": 337 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\tcharlie>.", - "position": { - "start": { - "line": 17, - "column": 27, - "offset": 337 - }, - "end": { - "line": 17, - "column": 37, - "offset": 347 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 311 - }, - "end": { - "line": 17, - "column": 37, - "offset": 347 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "<", - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 349 - }, - "end": { - "line": 19, - "column": 2, - "offset": 350 - }, - "indent": [] - } - }, - { - "type": "link", - "title": null, - "url": "https://example.com?bravo", - "children": [ - { - "type": "text", - "value": "https://example.com?bravo", - "position": { - "start": { - "line": 19, - "column": 2, - "offset": 350 - }, - "end": { - "line": 19, - "column": 27, - "offset": 375 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 19, - "column": 2, - "offset": 350 - }, - "end": { - "line": 19, - "column": 27, - "offset": 375 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\ncharlie>.", - "position": { - "start": { - "line": 19, - "column": 27, - "offset": 375 - }, - "end": { - "line": 20, - "column": 10, - "offset": 385 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 349 - }, - "end": { - "line": 20, - "column": 10, - "offset": 385 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "https://example.com?bravo", - "children": [ - { - "type": "text", - "value": "https://example.com?bravo", - "position": { - "start": { - "line": 22, - "column": 1, - "offset": 387 - }, - "end": { - "line": 22, - "column": 26, - "offset": 412 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 22, - "column": 1, - "offset": 387 - }, - "end": { - "line": 22, - "column": 26, - "offset": 412 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " charlie.", - "position": { - "start": { - "line": 22, - "column": 26, - "offset": 412 - }, - "end": { - "line": 22, - "column": 35, - "offset": 421 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 22, - "column": 1, - "offset": 387 - }, - "end": { - "line": 22, - "column": 35, - "offset": 421 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "https://example.com?bravo", - "children": [ - { - "type": "text", - "value": "https://example.com?bravo", - "position": { - "start": { - "line": 24, - "column": 1, - "offset": 423 - }, - "end": { - "line": 24, - "column": 26, - "offset": 448 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 24, - "column": 1, - "offset": 423 - }, - "end": { - "line": 24, - "column": 26, - "offset": 448 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\tcharlie.", - "position": { - "start": { - "line": 24, - "column": 26, - "offset": 448 - }, - "end": { - "line": 24, - "column": 35, - "offset": 457 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 24, - "column": 1, - "offset": 423 - }, - "end": { - "line": 24, - "column": 35, - "offset": 457 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "https://example.com?bravo", - "children": [ - { - "type": "text", - "value": "https://example.com?bravo", - "position": { - "start": { - "line": 26, - "column": 1, - "offset": 459 - }, - "end": { - "line": 26, - "column": 26, - "offset": 484 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 26, - "column": 1, - "offset": 459 - }, - "end": { - "line": 26, - "column": 26, - "offset": 484 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\ncharlie.", - "position": { - "start": { - "line": 26, - "column": 26, - "offset": 484 - }, - "end": { - "line": 27, - "column": 9, - "offset": 493 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 26, - "column": 1, - "offset": 459 - }, - "end": { - "line": 27, - "column": 9, - "offset": 493 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 28, - "column": 1, - "offset": 494 - } - } -} diff --git a/test/fixtures/tree/link-whitespace.json b/test/fixtures/tree/link-whitespace.json index f60d6aae2..296a8490e 100644 --- a/test/fixtures/tree/link-whitespace.json +++ b/test/fixtures/tree/link-whitespace.json @@ -5,112 +5,19 @@ "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": [] - } - } - ], + "type": "text", + "value": "[alpha](https://example.com?bravo charlie).", "position": { "start": { "line": 1, "column": 1, "offset": 0 }, - "end": { - "line": 1, - "column": 8, - "offset": 7 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(", - "position": { - "start": { - "line": 1, - "column": 8, - "offset": 7 - }, - "end": { - "line": 1, - "column": 9, - "offset": 8 - }, - "indent": [] - } - }, - { - "type": "link", - "title": null, - "url": "https://example.com?bravo", - "children": [ - { - "type": "text", - "value": "https://example.com?bravo", - "position": { - "start": { - "line": 1, - "column": 9, - "offset": 8 - }, - "end": { - "line": 1, - "column": 34, - "offset": 33 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 9, - "offset": 8 - }, - "end": { - "line": 1, - "column": 34, - "offset": 33 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " charlie).", - "position": { - "start": { - "line": 1, - "column": 34, - "offset": 33 - }, "end": { "line": 1, "column": 44, "offset": 43 - }, - "indent": [] + } } } ], @@ -124,120 +31,26 @@ "line": 1, "column": 44, "offset": 43 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "linkReference", - "identifier": "alpha", - "label": "alpha", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "alpha", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 46 - }, - "end": { - "line": 3, - "column": 7, - "offset": 51 - }, - "indent": [] - } - } - ], + "type": "text", + "value": "[alpha](https://example.com?bravo\tcharlie).", "position": { "start": { "line": 3, "column": 1, "offset": 45 }, - "end": { - "line": 3, - "column": 8, - "offset": 52 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(", - "position": { - "start": { - "line": 3, - "column": 8, - "offset": 52 - }, - "end": { - "line": 3, - "column": 9, - "offset": 53 - }, - "indent": [] - } - }, - { - "type": "link", - "title": null, - "url": "https://example.com?bravo", - "children": [ - { - "type": "text", - "value": "https://example.com?bravo", - "position": { - "start": { - "line": 3, - "column": 9, - "offset": 53 - }, - "end": { - "line": 3, - "column": 34, - "offset": 78 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 9, - "offset": 53 - }, - "end": { - "line": 3, - "column": 34, - "offset": 78 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\tcharlie).", - "position": { - "start": { - "line": 3, - "column": 34, - "offset": 78 - }, "end": { "line": 3, "column": 44, "offset": 88 - }, - "indent": [] + } } } ], @@ -251,122 +64,26 @@ "line": 3, "column": 44, "offset": 88 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "linkReference", - "identifier": "alpha", - "label": "alpha", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "alpha", - "position": { - "start": { - "line": 5, - "column": 2, - "offset": 91 - }, - "end": { - "line": 5, - "column": 7, - "offset": 96 - }, - "indent": [] - } - } - ], + "type": "text", + "value": "[alpha](https://example.com?bravo\ncharlie).", "position": { "start": { "line": 5, "column": 1, "offset": 90 }, - "end": { - "line": 5, - "column": 8, - "offset": 97 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(", - "position": { - "start": { - "line": 5, - "column": 8, - "offset": 97 - }, - "end": { - "line": 5, - "column": 9, - "offset": 98 - }, - "indent": [] - } - }, - { - "type": "link", - "title": null, - "url": "https://example.com?bravo", - "children": [ - { - "type": "text", - "value": "https://example.com?bravo", - "position": { - "start": { - "line": 5, - "column": 9, - "offset": 98 - }, - "end": { - "line": 5, - "column": 34, - "offset": 123 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 9, - "offset": 98 - }, - "end": { - "line": 5, - "column": 34, - "offset": 123 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\ncharlie).", - "position": { - "start": { - "line": 5, - "column": 34, - "offset": 123 - }, "end": { "line": 6, "column": 10, "offset": 133 - }, - "indent": [ - 1 - ] + } } } ], @@ -380,104 +97,26 @@ "line": 6, "column": 10, "offset": 133 - }, - "indent": [ - 1 - ] + } } }, { "type": "paragraph", "children": [ { - "type": "imageReference", - "identifier": "alpha", - "label": "alpha", - "referenceType": "shortcut", - "alt": "alpha", + "type": "text", + "value": "![alpha](https://example.com?bravo charlie).", "position": { "start": { "line": 8, "column": 1, "offset": 135 }, - "end": { - "line": 8, - "column": 9, - "offset": 143 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(", - "position": { - "start": { - "line": 8, - "column": 9, - "offset": 143 - }, - "end": { - "line": 8, - "column": 10, - "offset": 144 - }, - "indent": [] - } - }, - { - "type": "link", - "title": null, - "url": "https://example.com?bravo", - "children": [ - { - "type": "text", - "value": "https://example.com?bravo", - "position": { - "start": { - "line": 8, - "column": 10, - "offset": 144 - }, - "end": { - "line": 8, - "column": 35, - "offset": 169 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 8, - "column": 10, - "offset": 144 - }, - "end": { - "line": 8, - "column": 35, - "offset": 169 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " charlie).", - "position": { - "start": { - "line": 8, - "column": 35, - "offset": 169 - }, "end": { "line": 8, "column": 45, "offset": 179 - }, - "indent": [] + } } } ], @@ -491,102 +130,26 @@ "line": 8, "column": 45, "offset": 179 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "imageReference", - "identifier": "alpha", - "label": "alpha", - "referenceType": "shortcut", - "alt": "alpha", + "type": "text", + "value": "![alpha](https://example.com?bravo\tcharlie).", "position": { "start": { "line": 10, "column": 1, "offset": 181 }, - "end": { - "line": 10, - "column": 9, - "offset": 189 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(", - "position": { - "start": { - "line": 10, - "column": 9, - "offset": 189 - }, - "end": { - "line": 10, - "column": 10, - "offset": 190 - }, - "indent": [] - } - }, - { - "type": "link", - "title": null, - "url": "https://example.com?bravo", - "children": [ - { - "type": "text", - "value": "https://example.com?bravo", - "position": { - "start": { - "line": 10, - "column": 10, - "offset": 190 - }, - "end": { - "line": 10, - "column": 35, - "offset": 215 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 10, - "column": 10, - "offset": 190 - }, - "end": { - "line": 10, - "column": 35, - "offset": 215 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\tcharlie).", - "position": { - "start": { - "line": 10, - "column": 35, - "offset": 215 - }, "end": { "line": 10, "column": 45, "offset": 225 - }, - "indent": [] + } } } ], @@ -600,104 +163,26 @@ "line": 10, "column": 45, "offset": 225 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "imageReference", - "identifier": "alpha", - "label": "alpha", - "referenceType": "shortcut", - "alt": "alpha", + "type": "text", + "value": "![alpha](https://example.com?bravo\ncharlie).", "position": { "start": { "line": 12, "column": 1, "offset": 227 }, - "end": { - "line": 12, - "column": 9, - "offset": 235 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(", - "position": { - "start": { - "line": 12, - "column": 9, - "offset": 235 - }, - "end": { - "line": 12, - "column": 10, - "offset": 236 - }, - "indent": [] - } - }, - { - "type": "link", - "title": null, - "url": "https://example.com?bravo", - "children": [ - { - "type": "text", - "value": "https://example.com?bravo", - "position": { - "start": { - "line": 12, - "column": 10, - "offset": 236 - }, - "end": { - "line": 12, - "column": 35, - "offset": 261 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 10, - "offset": 236 - }, - "end": { - "line": 12, - "column": 35, - "offset": 261 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\ncharlie).", - "position": { - "start": { - "line": 12, - "column": 35, - "offset": 261 - }, "end": { "line": 13, "column": 10, "offset": 271 - }, - "indent": [ - 1 - ] + } } } ], @@ -711,10 +196,7 @@ "line": 13, "column": 10, "offset": 271 - }, - "indent": [ - 1 - ] + } } }, { @@ -722,73 +204,18 @@ "children": [ { "type": "text", - "value": "<", + "value": ".", "position": { "start": { "line": 15, "column": 1, "offset": 273 }, - "end": { - "line": 15, - "column": 2, - "offset": 274 - }, - "indent": [] - } - }, - { - "type": "link", - "title": null, - "url": "https://example.com?bravo", - "children": [ - { - "type": "text", - "value": "https://example.com?bravo", - "position": { - "start": { - "line": 15, - "column": 2, - "offset": 274 - }, - "end": { - "line": 15, - "column": 27, - "offset": 299 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 2, - "offset": 274 - }, - "end": { - "line": 15, - "column": 27, - "offset": 299 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " charlie>.", - "position": { - "start": { - "line": 15, - "column": 27, - "offset": 299 - }, "end": { "line": 15, "column": 37, "offset": 309 - }, - "indent": [] + } } } ], @@ -802,8 +229,7 @@ "line": 15, "column": 37, "offset": 309 - }, - "indent": [] + } } }, { @@ -811,73 +237,18 @@ "children": [ { "type": "text", - "value": "<", + "value": ".", "position": { "start": { "line": 17, "column": 1, "offset": 311 }, - "end": { - "line": 17, - "column": 2, - "offset": 312 - }, - "indent": [] - } - }, - { - "type": "link", - "title": null, - "url": "https://example.com?bravo", - "children": [ - { - "type": "text", - "value": "https://example.com?bravo", - "position": { - "start": { - "line": 17, - "column": 2, - "offset": 312 - }, - "end": { - "line": 17, - "column": 27, - "offset": 337 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 17, - "column": 2, - "offset": 312 - }, - "end": { - "line": 17, - "column": 27, - "offset": 337 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\tcharlie>.", - "position": { - "start": { - "line": 17, - "column": 27, - "offset": 337 - }, "end": { "line": 17, "column": 37, "offset": 347 - }, - "indent": [] + } } } ], @@ -891,8 +262,7 @@ "line": 17, "column": 37, "offset": 347 - }, - "indent": [] + } } }, { @@ -900,75 +270,18 @@ "children": [ { "type": "text", - "value": "<", + "value": ".", "position": { "start": { "line": 19, "column": 1, "offset": 349 }, - "end": { - "line": 19, - "column": 2, - "offset": 350 - }, - "indent": [] - } - }, - { - "type": "link", - "title": null, - "url": "https://example.com?bravo", - "children": [ - { - "type": "text", - "value": "https://example.com?bravo", - "position": { - "start": { - "line": 19, - "column": 2, - "offset": 350 - }, - "end": { - "line": 19, - "column": 27, - "offset": 375 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 19, - "column": 2, - "offset": 350 - }, - "end": { - "line": 19, - "column": 27, - "offset": 375 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\ncharlie>.", - "position": { - "start": { - "line": 19, - "column": 27, - "offset": 375 - }, "end": { "line": 20, "column": 10, "offset": 385 - }, - "indent": [ - 1 - ] + } } } ], @@ -982,67 +295,26 @@ "line": 20, "column": 10, "offset": 385 - }, - "indent": [ - 1 - ] + } } }, { "type": "paragraph", "children": [ { - "type": "link", - "title": null, - "url": "https://example.com?bravo", - "children": [ - { - "type": "text", - "value": "https://example.com?bravo", - "position": { - "start": { - "line": 22, - "column": 1, - "offset": 387 - }, - "end": { - "line": 22, - "column": 26, - "offset": 412 - }, - "indent": [] - } - } - ], + "type": "text", + "value": "https://example.com?bravo charlie.", "position": { "start": { "line": 22, "column": 1, "offset": 387 }, - "end": { - "line": 22, - "column": 26, - "offset": 412 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " charlie.", - "position": { - "start": { - "line": 22, - "column": 26, - "offset": 412 - }, "end": { "line": 22, "column": 35, "offset": 421 - }, - "indent": [] + } } } ], @@ -1056,65 +328,26 @@ "line": 22, "column": 35, "offset": 421 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "link", - "title": null, - "url": "https://example.com?bravo", - "children": [ - { - "type": "text", - "value": "https://example.com?bravo", - "position": { - "start": { - "line": 24, - "column": 1, - "offset": 423 - }, - "end": { - "line": 24, - "column": 26, - "offset": 448 - }, - "indent": [] - } - } - ], + "type": "text", + "value": "https://example.com?bravo\tcharlie.", "position": { "start": { "line": 24, "column": 1, "offset": 423 }, - "end": { - "line": 24, - "column": 26, - "offset": 448 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\tcharlie.", - "position": { - "start": { - "line": 24, - "column": 26, - "offset": 448 - }, "end": { "line": 24, "column": 35, "offset": 457 - }, - "indent": [] + } } } ], @@ -1128,67 +361,26 @@ "line": 24, "column": 35, "offset": 457 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "link", - "title": null, - "url": "https://example.com?bravo", - "children": [ - { - "type": "text", - "value": "https://example.com?bravo", - "position": { - "start": { - "line": 26, - "column": 1, - "offset": 459 - }, - "end": { - "line": 26, - "column": 26, - "offset": 484 - }, - "indent": [] - } - } - ], + "type": "text", + "value": "https://example.com?bravo\ncharlie.", "position": { "start": { "line": 26, "column": 1, "offset": 459 }, - "end": { - "line": 26, - "column": 26, - "offset": 484 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\ncharlie.", - "position": { - "start": { - "line": 26, - "column": 26, - "offset": 484 - }, "end": { "line": 27, "column": 9, "offset": 493 - }, - "indent": [ - 1 - ] + } } } ], @@ -1202,10 +394,7 @@ "line": 27, "column": 9, "offset": 493 - }, - "indent": [ - 1 - ] + } } } ], diff --git a/test/fixtures/tree/link-whitespace.pedantic.json b/test/fixtures/tree/link-whitespace.pedantic.json deleted file mode 100644 index 0311de8eb..000000000 --- a/test/fixtures/tree/link-whitespace.pedantic.json +++ /dev/null @@ -1,894 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "https://example.com?bravo charlie", - "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": 43, - "offset": 42 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 43, - "offset": 42 - }, - "end": { - "line": 1, - "column": 44, - "offset": 43 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 44, - "offset": 43 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "https://example.com?bravo\tcharlie", - "children": [ - { - "type": "text", - "value": "alpha", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 46 - }, - "end": { - "line": 3, - "column": 7, - "offset": 51 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 45 - }, - "end": { - "line": 3, - "column": 43, - "offset": 87 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 43, - "offset": 87 - }, - "end": { - "line": 3, - "column": 44, - "offset": 88 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 45 - }, - "end": { - "line": 3, - "column": 44, - "offset": 88 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "https://example.com?bravo\ncharlie", - "children": [ - { - "type": "text", - "value": "alpha", - "position": { - "start": { - "line": 5, - "column": 2, - "offset": 91 - }, - "end": { - "line": 5, - "column": 7, - "offset": 96 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 90 - }, - "end": { - "line": 6, - "column": 9, - "offset": 132 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 6, - "column": 9, - "offset": 132 - }, - "end": { - "line": 6, - "column": 10, - "offset": 133 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 90 - }, - "end": { - "line": 6, - "column": 10, - "offset": 133 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "https://example.com?bravo charlie", - "alt": "alpha", - "position": { - "start": { - "line": 8, - "column": 1, - "offset": 135 - }, - "end": { - "line": 8, - "column": 44, - "offset": 178 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 8, - "column": 44, - "offset": 178 - }, - "end": { - "line": 8, - "column": 45, - "offset": 179 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 8, - "column": 1, - "offset": 135 - }, - "end": { - "line": 8, - "column": 45, - "offset": 179 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "https://example.com?bravo\tcharlie", - "alt": "alpha", - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 181 - }, - "end": { - "line": 10, - "column": 44, - "offset": 224 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 10, - "column": 44, - "offset": 224 - }, - "end": { - "line": 10, - "column": 45, - "offset": 225 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 181 - }, - "end": { - "line": 10, - "column": 45, - "offset": 225 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "https://example.com?bravo\ncharlie", - "alt": "alpha", - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 227 - }, - "end": { - "line": 13, - "column": 9, - "offset": 270 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 13, - "column": 9, - "offset": 270 - }, - "end": { - "line": 13, - "column": 10, - "offset": 271 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 227 - }, - "end": { - "line": 13, - "column": 10, - "offset": 271 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "<", - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 273 - }, - "end": { - "line": 15, - "column": 2, - "offset": 274 - }, - "indent": [] - } - }, - { - "type": "link", - "title": null, - "url": "https://example.com?bravo", - "children": [ - { - "type": "text", - "value": "https://example.com?bravo", - "position": { - "start": { - "line": 15, - "column": 2, - "offset": 274 - }, - "end": { - "line": 15, - "column": 27, - "offset": 299 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 2, - "offset": 274 - }, - "end": { - "line": 15, - "column": 27, - "offset": 299 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " charlie>.", - "position": { - "start": { - "line": 15, - "column": 27, - "offset": 299 - }, - "end": { - "line": 15, - "column": 37, - "offset": 309 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 273 - }, - "end": { - "line": 15, - "column": 37, - "offset": 309 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "<", - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 311 - }, - "end": { - "line": 17, - "column": 2, - "offset": 312 - }, - "indent": [] - } - }, - { - "type": "link", - "title": null, - "url": "https://example.com?bravo", - "children": [ - { - "type": "text", - "value": "https://example.com?bravo", - "position": { - "start": { - "line": 17, - "column": 2, - "offset": 312 - }, - "end": { - "line": 17, - "column": 27, - "offset": 337 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 17, - "column": 2, - "offset": 312 - }, - "end": { - "line": 17, - "column": 27, - "offset": 337 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\tcharlie>.", - "position": { - "start": { - "line": 17, - "column": 27, - "offset": 337 - }, - "end": { - "line": 17, - "column": 37, - "offset": 347 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 311 - }, - "end": { - "line": 17, - "column": 37, - "offset": 347 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "<", - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 349 - }, - "end": { - "line": 19, - "column": 2, - "offset": 350 - }, - "indent": [] - } - }, - { - "type": "link", - "title": null, - "url": "https://example.com?bravo", - "children": [ - { - "type": "text", - "value": "https://example.com?bravo", - "position": { - "start": { - "line": 19, - "column": 2, - "offset": 350 - }, - "end": { - "line": 19, - "column": 27, - "offset": 375 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 19, - "column": 2, - "offset": 350 - }, - "end": { - "line": 19, - "column": 27, - "offset": 375 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\ncharlie>.", - "position": { - "start": { - "line": 19, - "column": 27, - "offset": 375 - }, - "end": { - "line": 20, - "column": 10, - "offset": 385 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 349 - }, - "end": { - "line": 20, - "column": 10, - "offset": 385 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "https://example.com?bravo", - "children": [ - { - "type": "text", - "value": "https://example.com?bravo", - "position": { - "start": { - "line": 22, - "column": 1, - "offset": 387 - }, - "end": { - "line": 22, - "column": 26, - "offset": 412 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 22, - "column": 1, - "offset": 387 - }, - "end": { - "line": 22, - "column": 26, - "offset": 412 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " charlie.", - "position": { - "start": { - "line": 22, - "column": 26, - "offset": 412 - }, - "end": { - "line": 22, - "column": 35, - "offset": 421 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 22, - "column": 1, - "offset": 387 - }, - "end": { - "line": 22, - "column": 35, - "offset": 421 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "https://example.com?bravo", - "children": [ - { - "type": "text", - "value": "https://example.com?bravo", - "position": { - "start": { - "line": 24, - "column": 1, - "offset": 423 - }, - "end": { - "line": 24, - "column": 26, - "offset": 448 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 24, - "column": 1, - "offset": 423 - }, - "end": { - "line": 24, - "column": 26, - "offset": 448 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\tcharlie.", - "position": { - "start": { - "line": 24, - "column": 26, - "offset": 448 - }, - "end": { - "line": 24, - "column": 35, - "offset": 457 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 24, - "column": 1, - "offset": 423 - }, - "end": { - "line": 24, - "column": 35, - "offset": 457 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "https://example.com?bravo", - "children": [ - { - "type": "text", - "value": "https://example.com?bravo", - "position": { - "start": { - "line": 26, - "column": 1, - "offset": 459 - }, - "end": { - "line": 26, - "column": 26, - "offset": 484 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 26, - "column": 1, - "offset": 459 - }, - "end": { - "line": 26, - "column": 26, - "offset": 484 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\ncharlie.", - "position": { - "start": { - "line": 26, - "column": 26, - "offset": 484 - }, - "end": { - "line": 27, - "column": 9, - "offset": 493 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 26, - "column": 1, - "offset": 459 - }, - "end": { - "line": 27, - "column": 9, - "offset": 493 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 28, - "column": 1, - "offset": 494 - } - } -} diff --git a/test/fixtures/tree/link-with-spaces.json b/test/fixtures/tree/link-with-spaces.json index 2f1640b63..8009733e3 100644 --- a/test/fixtures/tree/link-with-spaces.json +++ b/test/fixtures/tree/link-with-spaces.json @@ -22,8 +22,7 @@ "line": 1, "column": 7, "offset": 6 - }, - "indent": [] + } } } ], @@ -37,8 +36,7 @@ "line": 1, "column": 40, "offset": 39 - }, - "indent": [] + } } } ], @@ -52,8 +50,7 @@ "line": 1, "column": 40, "offset": 39 - }, - "indent": [] + } } }, { @@ -77,8 +74,7 @@ "line": 3, "column": 7, "offset": 47 - }, - "indent": [] + } } } ], @@ -92,8 +88,7 @@ "line": 3, "column": 54, "offset": 94 - }, - "indent": [] + } } } ], @@ -107,8 +102,7 @@ "line": 3, "column": 54, "offset": 94 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/links-inline-style.commonmark.json b/test/fixtures/tree/links-inline-style.commonmark.json deleted file mode 100644 index aa2584569..000000000 --- a/test/fixtures/tree/links-inline-style.commonmark.json +++ /dev/null @@ -1,612 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Just a ", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 8, - "offset": 7 - }, - "indent": [] - } - }, - { - "type": "link", - "title": null, - "url": "/url/", - "children": [ - { - "type": "text", - "value": "URL", - "position": { - "start": { - "line": 1, - "column": 9, - "offset": 8 - }, - "end": { - "line": 1, - "column": 12, - "offset": 11 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 8, - "offset": 7 - }, - "end": { - "line": 1, - "column": 20, - "offset": 19 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 20, - "offset": 19 - }, - "end": { - "line": 1, - "column": 21, - "offset": 20 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 21, - "offset": 20 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "title", - "url": "/url/", - "children": [ - { - "type": "text", - "value": "URL and title", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 23 - }, - "end": { - "line": 3, - "column": 15, - "offset": 36 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 22 - }, - "end": { - "line": 3, - "column": 31, - "offset": 52 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 31, - "offset": 52 - }, - "end": { - "line": 3, - "column": 32, - "offset": 53 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 22 - }, - "end": { - "line": 3, - "column": 32, - "offset": 53 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "title preceded by two spaces", - "url": "/url/", - "children": [ - { - "type": "text", - "value": "URL and title", - "position": { - "start": { - "line": 5, - "column": 2, - "offset": 56 - }, - "end": { - "line": 5, - "column": 15, - "offset": 69 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 55 - }, - "end": { - "line": 5, - "column": 55, - "offset": 109 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 55, - "offset": 109 - }, - "end": { - "line": 5, - "column": 56, - "offset": 110 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 55 - }, - "end": { - "line": 5, - "column": 56, - "offset": 110 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "title preceded by a tab", - "url": "/url/", - "children": [ - { - "type": "text", - "value": "URL and title", - "position": { - "start": { - "line": 7, - "column": 2, - "offset": 113 - }, - "end": { - "line": 7, - "column": 15, - "offset": 126 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 112 - }, - "end": { - "line": 7, - "column": 49, - "offset": 160 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 49, - "offset": 160 - }, - "end": { - "line": 7, - "column": 50, - "offset": 161 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 112 - }, - "end": { - "line": 7, - "column": 50, - "offset": 161 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "title has spaces afterward", - "url": "/url/", - "children": [ - { - "type": "text", - "value": "URL and title", - "position": { - "start": { - "line": 9, - "column": 2, - "offset": 164 - }, - "end": { - "line": 9, - "column": 15, - "offset": 177 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 163 - }, - "end": { - "line": 9, - "column": 54, - "offset": 216 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 9, - "column": 54, - "offset": 216 - }, - "end": { - "line": 9, - "column": 55, - "offset": 217 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 163 - }, - "end": { - "line": 9, - "column": 55, - "offset": 217 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "url and title", - "label": "URL and title", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "URL and title", - "position": { - "start": { - "line": 11, - "column": 2, - "offset": 220 - }, - "end": { - "line": 11, - "column": 15, - "offset": 233 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 219 - }, - "end": { - "line": 11, - "column": 16, - "offset": 234 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "( /url/has space ).", - "position": { - "start": { - "line": 11, - "column": 16, - "offset": 234 - }, - "end": { - "line": 11, - "column": 35, - "offset": 253 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 219 - }, - "end": { - "line": 11, - "column": 35, - "offset": 253 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "url and title", - "label": "URL and title", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "URL and title", - "position": { - "start": { - "line": 13, - "column": 2, - "offset": 256 - }, - "end": { - "line": 13, - "column": 15, - "offset": 269 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 255 - }, - "end": { - "line": 13, - "column": 16, - "offset": 270 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "( /url/has space/ \"url has space and title\").", - "position": { - "start": { - "line": 13, - "column": 16, - "offset": 270 - }, - "end": { - "line": 13, - "column": 61, - "offset": 315 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 255 - }, - "end": { - "line": 13, - "column": 61, - "offset": 315 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "", - "children": [ - { - "type": "text", - "value": "Empty", - "position": { - "start": { - "line": 15, - "column": 2, - "offset": 318 - }, - "end": { - "line": 15, - "column": 7, - "offset": 323 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 317 - }, - "end": { - "line": 15, - "column": 10, - "offset": 326 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 15, - "column": 10, - "offset": 326 - }, - "end": { - "line": 15, - "column": 11, - "offset": 327 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 317 - }, - "end": { - "line": 15, - "column": 11, - "offset": 327 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 16, - "column": 1, - "offset": 328 - } - } -} diff --git a/test/fixtures/tree/links-inline-style.json b/test/fixtures/tree/links-inline-style.json index aa2584569..11e4a55d9 100644 --- a/test/fixtures/tree/links-inline-style.json +++ b/test/fixtures/tree/links-inline-style.json @@ -17,8 +17,7 @@ "line": 1, "column": 8, "offset": 7 - }, - "indent": [] + } } }, { @@ -39,8 +38,7 @@ "line": 1, "column": 12, "offset": 11 - }, - "indent": [] + } } } ], @@ -54,8 +52,7 @@ "line": 1, "column": 20, "offset": 19 - }, - "indent": [] + } } }, { @@ -71,8 +68,7 @@ "line": 1, "column": 21, "offset": 20 - }, - "indent": [] + } } } ], @@ -86,8 +82,7 @@ "line": 1, "column": 21, "offset": 20 - }, - "indent": [] + } } }, { @@ -111,8 +106,7 @@ "line": 3, "column": 15, "offset": 36 - }, - "indent": [] + } } } ], @@ -126,8 +120,7 @@ "line": 3, "column": 31, "offset": 52 - }, - "indent": [] + } } }, { @@ -143,8 +136,7 @@ "line": 3, "column": 32, "offset": 53 - }, - "indent": [] + } } } ], @@ -158,8 +150,7 @@ "line": 3, "column": 32, "offset": 53 - }, - "indent": [] + } } }, { @@ -183,8 +174,7 @@ "line": 5, "column": 15, "offset": 69 - }, - "indent": [] + } } } ], @@ -198,8 +188,7 @@ "line": 5, "column": 55, "offset": 109 - }, - "indent": [] + } } }, { @@ -215,8 +204,7 @@ "line": 5, "column": 56, "offset": 110 - }, - "indent": [] + } } } ], @@ -230,8 +218,7 @@ "line": 5, "column": 56, "offset": 110 - }, - "indent": [] + } } }, { @@ -255,8 +242,7 @@ "line": 7, "column": 15, "offset": 126 - }, - "indent": [] + } } } ], @@ -270,8 +256,7 @@ "line": 7, "column": 49, "offset": 160 - }, - "indent": [] + } } }, { @@ -287,8 +272,7 @@ "line": 7, "column": 50, "offset": 161 - }, - "indent": [] + } } } ], @@ -302,8 +286,7 @@ "line": 7, "column": 50, "offset": 161 - }, - "indent": [] + } } }, { @@ -327,8 +310,7 @@ "line": 9, "column": 15, "offset": 177 - }, - "indent": [] + } } } ], @@ -342,8 +324,7 @@ "line": 9, "column": 54, "offset": 216 - }, - "indent": [] + } } }, { @@ -359,8 +340,7 @@ "line": 9, "column": 55, "offset": 217 - }, - "indent": [] + } } } ], @@ -374,66 +354,26 @@ "line": 9, "column": 55, "offset": 217 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "linkReference", - "identifier": "url and title", - "label": "URL and title", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "URL and title", - "position": { - "start": { - "line": 11, - "column": 2, - "offset": 220 - }, - "end": { - "line": 11, - "column": 15, - "offset": 233 - }, - "indent": [] - } - } - ], + "type": "text", + "value": "[URL and title]( /url/has space ).", "position": { "start": { "line": 11, "column": 1, "offset": 219 }, - "end": { - "line": 11, - "column": 16, - "offset": 234 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "( /url/has space ).", - "position": { - "start": { - "line": 11, - "column": 16, - "offset": 234 - }, "end": { "line": 11, "column": 35, "offset": 253 - }, - "indent": [] + } } } ], @@ -447,66 +387,26 @@ "line": 11, "column": 35, "offset": 253 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "linkReference", - "identifier": "url and title", - "label": "URL and title", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "URL and title", - "position": { - "start": { - "line": 13, - "column": 2, - "offset": 256 - }, - "end": { - "line": 13, - "column": 15, - "offset": 269 - }, - "indent": [] - } - } - ], + "type": "text", + "value": "[URL and title]( /url/has space/ \"url has space and title\").", "position": { "start": { "line": 13, "column": 1, "offset": 255 }, - "end": { - "line": 13, - "column": 16, - "offset": 270 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "( /url/has space/ \"url has space and title\").", - "position": { - "start": { - "line": 13, - "column": 16, - "offset": 270 - }, "end": { "line": 13, "column": 61, "offset": 315 - }, - "indent": [] + } } } ], @@ -520,8 +420,7 @@ "line": 13, "column": 61, "offset": 315 - }, - "indent": [] + } } }, { @@ -545,8 +444,7 @@ "line": 15, "column": 7, "offset": 323 - }, - "indent": [] + } } } ], @@ -560,8 +458,7 @@ "line": 15, "column": 10, "offset": 326 - }, - "indent": [] + } } }, { @@ -577,8 +474,7 @@ "line": 15, "column": 11, "offset": 327 - }, - "indent": [] + } } } ], @@ -592,8 +488,7 @@ "line": 15, "column": 11, "offset": 327 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/links-reference-proto.json b/test/fixtures/tree/links-reference-proto.json index 406a2146a..7c069af35 100644 --- a/test/fixtures/tree/links-reference-proto.json +++ b/test/fixtures/tree/links-reference-proto.json @@ -17,15 +17,11 @@ "line": 1, "column": 3, "offset": 2 - }, - "indent": [] + } } }, { "type": "linkReference", - "identifier": "tostring", - "label": "toString", - "referenceType": "full", "children": [ { "type": "text", @@ -40,8 +36,7 @@ "line": 1, "column": 11, "offset": 10 - }, - "indent": [] + } } } ], @@ -55,9 +50,11 @@ "line": 1, "column": 22, "offset": 21 - }, - "indent": [] - } + } + }, + "identifier": "tostring", + "label": "toString", + "referenceType": "full" }, { "type": "text", @@ -72,15 +69,11 @@ "line": 1, "column": 24, "offset": 23 - }, - "indent": [] + } } }, { "type": "linkReference", - "identifier": "constructor", - "label": "constructor", - "referenceType": "full", "children": [ { "type": "text", @@ -95,8 +88,7 @@ "line": 1, "column": 34, "offset": 33 - }, - "indent": [] + } } } ], @@ -110,9 +102,11 @@ "line": 1, "column": 48, "offset": 47 - }, - "indent": [] - } + } + }, + "identifier": "constructor", + "label": "constructor", + "referenceType": "full" }, { "type": "text", @@ -127,15 +121,11 @@ "line": 1, "column": 54, "offset": 53 - }, - "indent": [] + } } }, { "type": "linkReference", - "identifier": "__proto__", - "label": "__proto__", - "referenceType": "full", "children": [ { "type": "text", @@ -150,8 +140,7 @@ "line": 1, "column": 63, "offset": 62 - }, - "indent": [] + } } } ], @@ -165,9 +154,11 @@ "line": 1, "column": 75, "offset": 74 - }, - "indent": [] - } + } + }, + "identifier": "__proto__", + "label": "__proto__", + "referenceType": "full" }, { "type": "text", @@ -182,8 +173,7 @@ "line": 1, "column": 81, "offset": 80 - }, - "indent": [] + } } } ], @@ -197,8 +187,7 @@ "line": 1, "column": 81, "offset": 80 - }, - "indent": [] + } } }, { @@ -217,8 +206,7 @@ "line": 3, "column": 31, "offset": 112 - }, - "indent": [] + } } }, { @@ -237,8 +225,7 @@ "line": 4, "column": 33, "offset": 145 - }, - "indent": [] + } } }, { @@ -257,8 +244,7 @@ "line": 5, "column": 36, "offset": 181 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/links-reference-style.json b/test/fixtures/tree/links-reference-style.json index aea2583cc..d7685389c 100644 --- a/test/fixtures/tree/links-reference-style.json +++ b/test/fixtures/tree/links-reference-style.json @@ -6,7 +6,7 @@ "children": [ { "type": "text", - "value": "Foo ", + "value": "Foo [bar] ", "position": { "start": { "line": 1, @@ -15,49 +15,46 @@ }, "end": { "line": 1, - "column": 5, - "offset": 4 - }, - "indent": [] + "column": 11, + "offset": 10 + } } }, { "type": "linkReference", - "identifier": "1", - "label": "1", - "referenceType": "full", "children": [ { "type": "text", - "value": "bar", + "value": "1", "position": { "start": { "line": 1, - "column": 6, - "offset": 5 + "column": 12, + "offset": 11 }, "end": { "line": 1, - "column": 9, - "offset": 8 - }, - "indent": [] + "column": 13, + "offset": 12 + } } } ], "position": { "start": { "line": 1, - "column": 5, - "offset": 4 + "column": 11, + "offset": 10 }, "end": { "line": 1, "column": 14, "offset": 13 - }, - "indent": [] - } + } + }, + "identifier": "1", + "label": "1", + "referenceType": "shortcut" }, { "type": "text", @@ -72,8 +69,7 @@ "line": 1, "column": 15, "offset": 14 - }, - "indent": [] + } } } ], @@ -87,8 +83,7 @@ "line": 1, "column": 15, "offset": 14 - }, - "indent": [] + } } }, { @@ -107,15 +102,11 @@ "line": 3, "column": 5, "offset": 20 - }, - "indent": [] + } } }, { "type": "linkReference", - "identifier": "1", - "label": "1", - "referenceType": "full", "children": [ { "type": "text", @@ -130,8 +121,7 @@ "line": 3, "column": 9, "offset": 24 - }, - "indent": [] + } } } ], @@ -145,9 +135,11 @@ "line": 3, "column": 13, "offset": 28 - }, - "indent": [] - } + } + }, + "identifier": "1", + "label": "1", + "referenceType": "full" }, { "type": "text", @@ -162,8 +154,7 @@ "line": 3, "column": 14, "offset": 29 - }, - "indent": [] + } } } ], @@ -177,8 +168,7 @@ "line": 3, "column": 14, "offset": 29 - }, - "indent": [] + } } }, { @@ -186,7 +176,7 @@ "children": [ { "type": "text", - "value": "Foo ", + "value": "Foo [bar]\n", "position": { "start": { "line": 5, @@ -194,52 +184,47 @@ "offset": 31 }, "end": { - "line": 5, - "column": 5, - "offset": 35 - }, - "indent": [] + "line": 6, + "column": 1, + "offset": 41 + } } }, { "type": "linkReference", - "identifier": "1", - "label": "1", - "referenceType": "full", "children": [ { "type": "text", - "value": "bar", + "value": "1", "position": { "start": { - "line": 5, - "column": 6, - "offset": 36 + "line": 6, + "column": 2, + "offset": 42 }, "end": { - "line": 5, - "column": 9, - "offset": 39 - }, - "indent": [] + "line": 6, + "column": 3, + "offset": 43 + } } } ], "position": { "start": { - "line": 5, - "column": 5, - "offset": 35 + "line": 6, + "column": 1, + "offset": 41 }, "end": { "line": 6, "column": 4, "offset": 44 - }, - "indent": [ - 1 - ] - } + } + }, + "identifier": "1", + "label": "1", + "referenceType": "shortcut" }, { "type": "text", @@ -254,8 +239,7 @@ "line": 6, "column": 5, "offset": 45 - }, - "indent": [] + } } } ], @@ -269,10 +253,7 @@ "line": 6, "column": 5, "offset": 45 - }, - "indent": [ - 1 - ] + } } }, { @@ -291,8 +272,7 @@ "line": 8, "column": 20, "offset": 66 - }, - "indent": [] + } } }, { @@ -300,7 +280,7 @@ "children": [ { "type": "text", - "value": "With ", + "value": "With [embedded [brackets]] ", "position": { "start": { "line": 11, @@ -309,100 +289,46 @@ }, "end": { "line": 11, - "column": 6, - "offset": 74 - }, - "indent": [] + "column": 30, + "offset": 98 + } } }, { "type": "linkReference", - "identifier": "b", - "label": "b", - "referenceType": "full", "children": [ { "type": "text", - "value": "embedded ", - "position": { - "start": { - "line": 11, - "column": 7, - "offset": 75 - }, - "end": { - "line": 11, - "column": 16, - "offset": 84 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "[", - "position": { - "start": { - "line": 11, - "column": 16, - "offset": 84 - }, - "end": { - "line": 11, - "column": 18, - "offset": 86 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "brackets", - "position": { - "start": { - "line": 11, - "column": 18, - "offset": 86 - }, - "end": { - "line": 11, - "column": 26, - "offset": 94 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "]", + "value": "b", "position": { "start": { "line": 11, - "column": 26, - "offset": 94 + "column": 31, + "offset": 99 }, "end": { "line": 11, - "column": 28, - "offset": 96 - }, - "indent": [] + "column": 32, + "offset": 100 + } } } ], "position": { "start": { "line": 11, - "column": 6, - "offset": 74 + "column": 30, + "offset": 98 }, "end": { "line": 11, "column": 33, "offset": 101 - }, - "indent": [] - } + } + }, + "identifier": "b", + "label": "b", + "referenceType": "shortcut" }, { "type": "text", @@ -417,8 +343,7 @@ "line": 11, "column": 34, "offset": 102 - }, - "indent": [] + } } } ], @@ -432,8 +357,7 @@ "line": 11, "column": 34, "offset": 102 - }, - "indent": [] + } } }, { @@ -452,15 +376,11 @@ "line": 14, "column": 10, "offset": 114 - }, - "indent": [] + } } }, { "type": "linkReference", - "identifier": "once", - "label": "once", - "referenceType": "collapsed", "children": [ { "type": "text", @@ -475,8 +395,7 @@ "line": 14, "column": 15, "offset": 119 - }, - "indent": [] + } } } ], @@ -490,9 +409,11 @@ "line": 14, "column": 18, "offset": 122 - }, - "indent": [] - } + } + }, + "identifier": "once", + "label": "once", + "referenceType": "collapsed" }, { "type": "text", @@ -507,8 +428,7 @@ "line": 14, "column": 19, "offset": 123 - }, - "indent": [] + } } } ], @@ -522,8 +442,7 @@ "line": 14, "column": 19, "offset": 123 - }, - "indent": [] + } } }, { @@ -542,15 +461,11 @@ "line": 16, "column": 10, "offset": 134 - }, - "indent": [] + } } }, { "type": "linkReference", - "identifier": "twice", - "label": "twice", - "referenceType": "collapsed", "children": [ { "type": "text", @@ -565,8 +480,7 @@ "line": 16, "column": 16, "offset": 140 - }, - "indent": [] + } } } ], @@ -580,9 +494,11 @@ "line": 16, "column": 19, "offset": 143 - }, - "indent": [] - } + } + }, + "identifier": "twice", + "label": "twice", + "referenceType": "collapsed" }, { "type": "text", @@ -597,8 +513,7 @@ "line": 16, "column": 20, "offset": 144 - }, - "indent": [] + } } } ], @@ -612,8 +527,7 @@ "line": 16, "column": 20, "offset": 144 - }, - "indent": [] + } } }, { @@ -632,15 +546,11 @@ "line": 18, "column": 10, "offset": 155 - }, - "indent": [] + } } }, { "type": "linkReference", - "identifier": "thrice", - "label": "thrice", - "referenceType": "collapsed", "children": [ { "type": "text", @@ -655,8 +565,7 @@ "line": 18, "column": 17, "offset": 162 - }, - "indent": [] + } } } ], @@ -670,9 +579,11 @@ "line": 18, "column": 20, "offset": 165 - }, - "indent": [] - } + } + }, + "identifier": "thrice", + "label": "thrice", + "referenceType": "collapsed" }, { "type": "text", @@ -687,8 +598,7 @@ "line": 18, "column": 21, "offset": 166 - }, - "indent": [] + } } } ], @@ -702,8 +612,7 @@ "line": 18, "column": 21, "offset": 166 - }, - "indent": [] + } } }, { @@ -711,74 +620,18 @@ "children": [ { "type": "text", - "value": "Indented ", + "value": "Indented [four][] times.", "position": { "start": { "line": 20, "column": 1, "offset": 168 }, - "end": { - "line": 20, - "column": 10, - "offset": 177 - }, - "indent": [] - } - }, - { - "type": "linkReference", - "identifier": "four", - "label": "four", - "referenceType": "collapsed", - "children": [ - { - "type": "text", - "value": "four", - "position": { - "start": { - "line": 20, - "column": 11, - "offset": 178 - }, - "end": { - "line": 20, - "column": 15, - "offset": 182 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 10, - "offset": 177 - }, - "end": { - "line": 20, - "column": 18, - "offset": 185 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " times.", - "position": { - "start": { - "line": 20, - "column": 18, - "offset": 185 - }, "end": { "line": 20, "column": 25, "offset": 192 - }, - "indent": [] + } } } ], @@ -792,8 +645,7 @@ "line": 20, "column": 25, "offset": 192 - }, - "indent": [] + } } }, { @@ -805,15 +657,14 @@ "position": { "start": { "line": 22, - "column": 1, - "offset": 194 + "column": 2, + "offset": 195 }, "end": { "line": 22, "column": 14, "offset": 207 - }, - "indent": [] + } } }, { @@ -825,15 +676,14 @@ "position": { "start": { "line": 24, - "column": 1, - "offset": 209 + "column": 3, + "offset": 211 }, "end": { "line": 24, "column": 16, "offset": 224 - }, - "indent": [] + } } }, { @@ -845,15 +695,14 @@ "position": { "start": { "line": 26, - "column": 1, - "offset": 226 + "column": 4, + "offset": 229 }, "end": { "line": 26, "column": 18, "offset": 243 - }, - "indent": [] + } } }, { @@ -871,8 +720,7 @@ "line": 28, "column": 17, "offset": 261 - }, - "indent": [] + } } }, { @@ -891,8 +739,7 @@ "line": 31, "column": 11, "offset": 274 - }, - "indent": [] + } } }, { @@ -907,8 +754,7 @@ "line": 33, "column": 6, "offset": 281 - }, - "indent": [] + } } }, { @@ -916,9 +762,6 @@ "children": [ { "type": "linkReference", - "identifier": "this", - "label": "this", - "referenceType": "full", "children": [ { "type": "text", @@ -933,8 +776,7 @@ "line": 35, "column": 6, "offset": 288 - }, - "indent": [] + } } } ], @@ -946,49 +788,101 @@ }, "end": { "line": 35, - "column": 14, - "offset": 296 - }, - "indent": [] - } + "column": 7, + "offset": 289 + } + }, + "identifier": "this", + "label": "this", + "referenceType": "shortcut" }, { "type": "text", - "value": " should work", + "value": " ", "position": { "start": { "line": 35, - "column": 14, - "offset": 296 + "column": 7, + "offset": 289 }, "end": { "line": 35, - "column": 26, - "offset": 308 - }, - "indent": [] + "column": 8, + "offset": 290 + } } - } - ], - "position": { - "start": { - "line": 35, - "column": 1, - "offset": 283 - }, - "end": { - "line": 35, - "column": 26, - "offset": 308 }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ { - "type": "text", + "type": "linkReference", + "children": [ + { + "type": "text", + "value": "this", + "position": { + "start": { + "line": 35, + "column": 9, + "offset": 291 + }, + "end": { + "line": 35, + "column": 13, + "offset": 295 + } + } + } + ], + "position": { + "start": { + "line": 35, + "column": 8, + "offset": 290 + }, + "end": { + "line": 35, + "column": 14, + "offset": 296 + } + }, + "identifier": "this", + "label": "this", + "referenceType": "shortcut" + }, + { + "type": "text", + "value": " should work", + "position": { + "start": { + "line": 35, + "column": 14, + "offset": 296 + }, + "end": { + "line": 35, + "column": 26, + "offset": 308 + } + } + } + ], + "position": { + "start": { + "line": 35, + "column": 1, + "offset": 283 + }, + "end": { + "line": 35, + "column": 26, + "offset": 308 + } + } + }, + { + "type": "paragraph", + "children": [ + { + "type": "text", "value": "So should ", "position": { "start": { @@ -1000,15 +894,11 @@ "line": 37, "column": 11, "offset": 320 - }, - "indent": [] + } } }, { "type": "linkReference", - "identifier": "this", - "label": "this", - "referenceType": "full", "children": [ { "type": "text", @@ -1023,8 +913,7 @@ "line": 37, "column": 16, "offset": 325 - }, - "indent": [] + } } } ], @@ -1038,9 +927,11 @@ "line": 37, "column": 23, "offset": 332 - }, - "indent": [] - } + } + }, + "identifier": "this", + "label": "this", + "referenceType": "full" }, { "type": "text", @@ -1055,8 +946,7 @@ "line": 37, "column": 24, "offset": 333 - }, - "indent": [] + } } } ], @@ -1070,8 +960,7 @@ "line": 37, "column": 24, "offset": 333 - }, - "indent": [] + } } }, { @@ -1090,15 +979,11 @@ "line": 39, "column": 5, "offset": 339 - }, - "indent": [] + } } }, { "type": "linkReference", - "identifier": "this", - "label": "this", - "referenceType": "collapsed", "children": [ { "type": "text", @@ -1113,8 +998,7 @@ "line": 39, "column": 10, "offset": 344 - }, - "indent": [] + } } } ], @@ -1126,27 +1010,28 @@ }, "end": { "line": 39, - "column": 14, - "offset": 348 - }, - "indent": [] - } + "column": 11, + "offset": 345 + } + }, + "identifier": "this", + "label": "this", + "referenceType": "shortcut" }, { "type": "text", - "value": ".", + "value": " [].", "position": { "start": { "line": 39, - "column": 14, - "offset": 348 + "column": 11, + "offset": 345 }, "end": { "line": 39, "column": 15, "offset": 349 - }, - "indent": [] + } } } ], @@ -1160,8 +1045,7 @@ "line": 39, "column": 15, "offset": 349 - }, - "indent": [] + } } }, { @@ -1180,15 +1064,11 @@ "line": 41, "column": 5, "offset": 355 - }, - "indent": [] + } } }, { "type": "linkReference", - "identifier": "this", - "label": "this", - "referenceType": "collapsed", "children": [ { "type": "text", @@ -1203,8 +1083,7 @@ "line": 41, "column": 10, "offset": 360 - }, - "indent": [] + } } } ], @@ -1218,9 +1097,11 @@ "line": 41, "column": 13, "offset": 363 - }, - "indent": [] - } + } + }, + "identifier": "this", + "label": "this", + "referenceType": "collapsed" }, { "type": "text", @@ -1235,8 +1116,7 @@ "line": 41, "column": 14, "offset": 364 - }, - "indent": [] + } } } ], @@ -1250,8 +1130,7 @@ "line": 41, "column": 14, "offset": 364 - }, - "indent": [] + } } }, { @@ -1270,15 +1149,11 @@ "line": 43, "column": 5, "offset": 370 - }, - "indent": [] + } } }, { "type": "linkReference", - "identifier": "this", - "label": "this", - "referenceType": "shortcut", "children": [ { "type": "text", @@ -1293,8 +1168,7 @@ "line": 43, "column": 10, "offset": 375 - }, - "indent": [] + } } } ], @@ -1308,9 +1182,11 @@ "line": 43, "column": 11, "offset": 376 - }, - "indent": [] - } + } + }, + "identifier": "this", + "label": "this", + "referenceType": "shortcut" }, { "type": "text", @@ -1325,8 +1201,7 @@ "line": 43, "column": 12, "offset": 377 - }, - "indent": [] + } } } ], @@ -1340,8 +1215,7 @@ "line": 43, "column": 12, "offset": 377 - }, - "indent": [] + } } }, { @@ -1349,74 +1223,18 @@ "children": [ { "type": "text", - "value": "But not ", + "value": "But not [that] [].", "position": { "start": { "line": 45, "column": 1, "offset": 379 }, - "end": { - "line": 45, - "column": 9, - "offset": 387 - }, - "indent": [] - } - }, - { - "type": "linkReference", - "identifier": "that", - "label": "that", - "referenceType": "collapsed", - "children": [ - { - "type": "text", - "value": "that", - "position": { - "start": { - "line": 45, - "column": 10, - "offset": 388 - }, - "end": { - "line": 45, - "column": 14, - "offset": 392 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 45, - "column": 9, - "offset": 387 - }, - "end": { - "line": 45, - "column": 18, - "offset": 396 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 45, - "column": 18, - "offset": 396 - }, "end": { "line": 45, "column": 19, "offset": 397 - }, - "indent": [] + } } } ], @@ -1430,8 +1248,7 @@ "line": 45, "column": 19, "offset": 397 - }, - "indent": [] + } } }, { @@ -1439,74 +1256,18 @@ "children": [ { "type": "text", - "value": "Nor ", + "value": "Nor [that][].", "position": { "start": { "line": 47, "column": 1, "offset": 399 }, - "end": { - "line": 47, - "column": 5, - "offset": 403 - }, - "indent": [] - } - }, - { - "type": "linkReference", - "identifier": "that", - "label": "that", - "referenceType": "collapsed", - "children": [ - { - "type": "text", - "value": "that", - "position": { - "start": { - "line": 47, - "column": 6, - "offset": 404 - }, - "end": { - "line": 47, - "column": 10, - "offset": 408 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 47, - "column": 5, - "offset": 403 - }, - "end": { - "line": 47, - "column": 13, - "offset": 411 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 47, - "column": 13, - "offset": 411 - }, "end": { "line": 47, "column": 14, "offset": 412 - }, - "indent": [] + } } } ], @@ -1520,8 +1281,7 @@ "line": 47, "column": 14, "offset": 412 - }, - "indent": [] + } } }, { @@ -1529,74 +1289,18 @@ "children": [ { "type": "text", - "value": "Nor ", + "value": "Nor [that].", "position": { "start": { "line": 49, "column": 1, "offset": 414 }, - "end": { - "line": 49, - "column": 5, - "offset": 418 - }, - "indent": [] - } - }, - { - "type": "linkReference", - "identifier": "that", - "label": "that", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "that", - "position": { - "start": { - "line": 49, - "column": 6, - "offset": 419 - }, - "end": { - "line": 49, - "column": 10, - "offset": 423 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 49, - "column": 5, - "offset": 418 - }, - "end": { - "line": 49, - "column": 11, - "offset": 424 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 49, - "column": 11, - "offset": 424 - }, "end": { "line": 49, "column": 12, "offset": 425 - }, - "indent": [] + } } } ], @@ -1610,8 +1314,7 @@ "line": 49, "column": 12, "offset": 425 - }, - "indent": [] + } } }, { @@ -1630,15 +1333,11 @@ "line": 51, "column": 29, "offset": 455 - }, - "indent": [] + } } }, { "type": "linkReference", - "identifier": "this", - "label": "this", - "referenceType": "collapsed", "children": [ { "type": "text", @@ -1653,8 +1352,7 @@ "line": 51, "column": 34, "offset": 460 - }, - "indent": [] + } } } ], @@ -1668,9 +1366,11 @@ "line": 51, "column": 37, "offset": 463 - }, - "indent": [] - } + } + }, + "identifier": "this", + "label": "this", + "referenceType": "collapsed" }, { "type": "text", @@ -1685,8 +1385,7 @@ "line": 51, "column": 50, "offset": 476 - }, - "indent": [] + } } } ], @@ -1700,8 +1399,7 @@ "line": 51, "column": 50, "offset": 476 - }, - "indent": [] + } } }, { @@ -1720,15 +1418,11 @@ "line": 53, "column": 12, "offset": 489 - }, - "indent": [] + } } }, { "type": "linkReference", - "identifier": "this", - "label": "this", - "referenceType": "shortcut", "children": [ { "type": "text", @@ -1743,8 +1437,7 @@ "line": 53, "column": 17, "offset": 494 - }, - "indent": [] + } } } ], @@ -1758,9 +1451,11 @@ "line": 53, "column": 18, "offset": 495 - }, - "indent": [] - } + } + }, + "identifier": "this", + "label": "this", + "referenceType": "shortcut" }, { "type": "text", @@ -1775,8 +1470,7 @@ "line": 53, "column": 20, "offset": 497 - }, - "indent": [] + } } } ], @@ -1790,8 +1484,7 @@ "line": 53, "column": 20, "offset": 497 - }, - "indent": [] + } } }, { @@ -1810,8 +1503,7 @@ "line": 55, "column": 15, "offset": 513 - }, - "indent": [] + } } }, { @@ -1832,8 +1524,7 @@ "line": 55, "column": 20, "offset": 518 - }, - "indent": [] + } } } ], @@ -1847,8 +1538,7 @@ "line": 55, "column": 38, "offset": 536 - }, - "indent": [] + } } }, { @@ -1864,8 +1554,7 @@ "line": 55, "column": 64, "offset": 562 - }, - "indent": [] + } } } ], @@ -1879,8 +1568,7 @@ "line": 55, "column": 64, "offset": 562 - }, - "indent": [] + } } }, { @@ -1888,87 +1576,18 @@ "children": [ { "type": "text", - "value": "Backslashing should suppress ", + "value": "Backslashing should suppress [this] and [this].", "position": { "start": { "line": 57, "column": 1, "offset": 564 }, - "end": { - "line": 57, - "column": 30, - "offset": 593 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "[", - "position": { - "start": { - "line": 57, - "column": 30, - "offset": 593 - }, - "end": { - "line": 57, - "column": 32, - "offset": 595 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "this] and [this", - "position": { - "start": { - "line": 57, - "column": 32, - "offset": 595 - }, - "end": { - "line": 57, - "column": 47, - "offset": 610 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "]", - "position": { - "start": { - "line": 57, - "column": 47, - "offset": 610 - }, - "end": { - "line": 57, - "column": 49, - "offset": 612 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 57, - "column": 49, - "offset": 612 - }, "end": { "line": 57, "column": 50, "offset": 613 - }, - "indent": [] + } } } ], @@ -1982,8 +1601,7 @@ "line": 57, "column": 50, "offset": 613 - }, - "indent": [] + } } }, { @@ -2002,8 +1620,7 @@ "line": 59, "column": 12, "offset": 626 - }, - "indent": [] + } } }, { @@ -2018,8 +1635,7 @@ "line": 62, "column": 6, "offset": 634 - }, - "indent": [] + } } }, { @@ -2038,15 +1654,11 @@ "line": 64, "column": 22, "offset": 657 - }, - "indent": [] + } } }, { "type": "linkReference", - "identifier": "link breaks", - "label": "link\nbreaks", - "referenceType": "shortcut", "children": [ { "type": "text", @@ -2061,10 +1673,7 @@ "line": 65, "column": 7, "offset": 669 - }, - "indent": [ - 1 - ] + } } } ], @@ -2078,11 +1687,11 @@ "line": 65, "column": 8, "offset": 670 - }, - "indent": [ - 1 - ] - } + } + }, + "identifier": "link breaks", + "label": "link\nbreaks", + "referenceType": "shortcut" }, { "type": "text", @@ -2097,8 +1706,7 @@ "line": 65, "column": 22, "offset": 684 - }, - "indent": [] + } } } ], @@ -2112,10 +1720,7 @@ "line": 65, "column": 22, "offset": 684 - }, - "indent": [ - 1 - ] + } } }, { @@ -2134,19 +1739,15 @@ "line": 67, "column": 26, "offset": 711 - }, - "indent": [] + } } }, { "type": "linkReference", - "identifier": "link breaks", - "label": "link \nbreaks", - "referenceType": "shortcut", "children": [ { "type": "text", - "value": "link \nbreaks", + "value": "link\nbreaks", "position": { "start": { "line": 67, @@ -2157,10 +1758,7 @@ "line": 68, "column": 7, "offset": 724 - }, - "indent": [ - 1 - ] + } } } ], @@ -2174,11 +1772,11 @@ "line": 68, "column": 8, "offset": 725 - }, - "indent": [ - 1 - ] - } + } + }, + "identifier": "link breaks", + "label": "link\nbreaks", + "referenceType": "shortcut" }, { "type": "text", @@ -2193,8 +1791,7 @@ "line": 68, "column": 52, "offset": 769 - }, - "indent": [] + } } } ], @@ -2208,10 +1805,7 @@ "line": 68, "column": 52, "offset": 769 - }, - "indent": [ - 1 - ] + } } }, { @@ -2230,8 +1824,7 @@ "line": 71, "column": 21, "offset": 792 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/links-shortcut-references.json b/test/fixtures/tree/links-shortcut-references.json index 46b6ba2a9..c0c801b14 100644 --- a/test/fixtures/tree/links-shortcut-references.json +++ b/test/fixtures/tree/links-shortcut-references.json @@ -17,15 +17,11 @@ "line": 1, "column": 13, "offset": 12 - }, - "indent": [] + } } }, { "type": "linkReference", - "identifier": "simple case", - "label": "simple case", - "referenceType": "shortcut", "children": [ { "type": "text", @@ -40,8 +36,7 @@ "line": 1, "column": 25, "offset": 24 - }, - "indent": [] + } } } ], @@ -55,9 +50,11 @@ "line": 1, "column": 26, "offset": 25 - }, - "indent": [] - } + } + }, + "identifier": "simple case", + "label": "simple case", + "referenceType": "shortcut" }, { "type": "text", @@ -72,8 +69,7 @@ "line": 1, "column": 27, "offset": 26 - }, - "indent": [] + } } } ], @@ -87,8 +83,7 @@ "line": 1, "column": 27, "offset": 26 - }, - "indent": [] + } } }, { @@ -107,8 +102,7 @@ "line": 3, "column": 23, "offset": 50 - }, - "indent": [] + } } }, { @@ -127,15 +121,11 @@ "line": 7, "column": 16, "offset": 69 - }, - "indent": [] + } } }, { "type": "linkReference", - "identifier": "line break", - "label": "line\nbreak", - "referenceType": "shortcut", "children": [ { "type": "text", @@ -150,10 +140,7 @@ "line": 8, "column": 6, "offset": 80 - }, - "indent": [ - 1 - ] + } } } ], @@ -167,11 +154,11 @@ "line": 8, "column": 7, "offset": 81 - }, - "indent": [ - 1 - ] - } + } + }, + "identifier": "line break", + "label": "line\nbreak", + "referenceType": "shortcut" }, { "type": "text", @@ -186,8 +173,7 @@ "line": 8, "column": 8, "offset": 82 - }, - "indent": [] + } } } ], @@ -201,10 +187,7 @@ "line": 8, "column": 8, "offset": 82 - }, - "indent": [ - 1 - ] + } } }, { @@ -223,19 +206,15 @@ "line": 10, "column": 16, "offset": 99 - }, - "indent": [] + } } }, { "type": "linkReference", - "identifier": "line break", - "label": "line \nbreak", - "referenceType": "shortcut", "children": [ { "type": "text", - "value": "line \nbreak", + "value": "line\nbreak", "position": { "start": { "line": 10, @@ -246,10 +225,7 @@ "line": 11, "column": 6, "offset": 111 - }, - "indent": [ - 1 - ] + } } } ], @@ -263,11 +239,11 @@ "line": 11, "column": 7, "offset": 112 - }, - "indent": [ - 1 - ] - } + } + }, + "identifier": "line break", + "label": "line\nbreak", + "referenceType": "shortcut" }, { "type": "text", @@ -282,8 +258,7 @@ "line": 11, "column": 33, "offset": 138 - }, - "indent": [] + } } } ], @@ -297,10 +272,7 @@ "line": 11, "column": 33, "offset": 138 - }, - "indent": [ - 1 - ] + } } }, { @@ -319,8 +291,7 @@ "line": 13, "column": 19, "offset": 158 - }, - "indent": [] + } } }, { @@ -328,9 +299,6 @@ "children": [ { "type": "linkReference", - "identifier": "that", - "label": "that", - "referenceType": "full", "children": [ { "type": "text", @@ -345,8 +313,7 @@ "line": 16, "column": 6, "offset": 166 - }, - "indent": [] + } } } ], @@ -358,12 +325,66 @@ }, "end": { "line": 16, - "column": 14, - "offset": 174 + "column": 7, + "offset": 167 + } + }, + "identifier": "this", + "label": "this", + "referenceType": "shortcut" + }, + { + "type": "text", + "value": " ", + "position": { + "start": { + "line": 16, + "column": 7, + "offset": 167 }, - "indent": [] + "end": { + "line": 16, + "column": 8, + "offset": 168 + } } }, + { + "type": "linkReference", + "children": [ + { + "type": "text", + "value": "that", + "position": { + "start": { + "line": 16, + "column": 9, + "offset": 169 + }, + "end": { + "line": 16, + "column": 13, + "offset": 173 + } + } + } + ], + "position": { + "start": { + "line": 16, + "column": 8, + "offset": 168 + }, + "end": { + "line": 16, + "column": 14, + "offset": 174 + } + }, + "identifier": "that", + "label": "that", + "referenceType": "shortcut" + }, { "type": "text", "value": " and the ", @@ -377,15 +398,11 @@ "line": 16, "column": 23, "offset": 183 - }, - "indent": [] + } } }, { "type": "linkReference", - "identifier": "other", - "label": "other", - "referenceType": "shortcut", "children": [ { "type": "text", @@ -400,8 +417,7 @@ "line": 16, "column": 29, "offset": 189 - }, - "indent": [] + } } } ], @@ -415,9 +431,11 @@ "line": 16, "column": 30, "offset": 190 - }, - "indent": [] - } + } + }, + "identifier": "other", + "label": "other", + "referenceType": "shortcut" } ], "position": { @@ -430,8 +448,7 @@ "line": 16, "column": 30, "offset": 190 - }, - "indent": [] + } } }, { @@ -450,8 +467,7 @@ "line": 18, "column": 14, "offset": 205 - }, - "indent": [] + } } }, { @@ -470,8 +486,7 @@ "line": 19, "column": 14, "offset": 219 - }, - "indent": [] + } } }, { @@ -490,8 +505,7 @@ "line": 20, "column": 16, "offset": 235 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/links-text-delimiters.commonmark.json b/test/fixtures/tree/links-text-delimiters.commonmark.json deleted file mode 100644 index c1f5ead09..000000000 --- a/test/fixtures/tree/links-text-delimiters.commonmark.json +++ /dev/null @@ -1,269 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./hello-world.html", - "children": [ - { - "type": "text", - "value": "Hello [world]!", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 16, - "offset": 15 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 37, - "offset": 36 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 37, - "offset": 36 - }, - "end": { - "line": 1, - "column": 38, - "offset": 37 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 38, - "offset": 37 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./hello-world.html", - "children": [ - { - "type": "text", - "value": "Hello [world]!", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 40 - }, - "end": { - "line": 3, - "column": 16, - "offset": 54 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 39 - }, - "end": { - "line": 3, - "column": 39, - "offset": 77 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 39, - "offset": 77 - }, - "end": { - "line": 3, - "column": 40, - "offset": 78 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 39 - }, - "end": { - "line": 3, - "column": 40, - "offset": 78 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./hello-world.html", - "alt": "Hello [world]!", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 80 - }, - "end": { - "line": 5, - "column": 38, - "offset": 117 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 38, - "offset": 117 - }, - "end": { - "line": 5, - "column": 39, - "offset": 118 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 80 - }, - "end": { - "line": 5, - "column": 39, - "offset": 118 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./hello-world.html", - "alt": "Hello [world]!", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 120 - }, - "end": { - "line": 7, - "column": 40, - "offset": 159 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 40, - "offset": 159 - }, - "end": { - "line": 7, - "column": 41, - "offset": 160 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 120 - }, - "end": { - "line": 7, - "column": 41, - "offset": 160 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 161 - } - } -} diff --git a/test/fixtures/tree/links-text-delimiters.json b/test/fixtures/tree/links-text-delimiters.json index c1f5ead09..b9ddbc157 100644 --- a/test/fixtures/tree/links-text-delimiters.json +++ b/test/fixtures/tree/links-text-delimiters.json @@ -22,8 +22,7 @@ "line": 1, "column": 16, "offset": 15 - }, - "indent": [] + } } } ], @@ -37,8 +36,7 @@ "line": 1, "column": 37, "offset": 36 - }, - "indent": [] + } } }, { @@ -54,8 +52,7 @@ "line": 1, "column": 38, "offset": 37 - }, - "indent": [] + } } } ], @@ -69,8 +66,7 @@ "line": 1, "column": 38, "offset": 37 - }, - "indent": [] + } } }, { @@ -94,8 +90,7 @@ "line": 3, "column": 16, "offset": 54 - }, - "indent": [] + } } } ], @@ -109,8 +104,7 @@ "line": 3, "column": 39, "offset": 77 - }, - "indent": [] + } } }, { @@ -126,8 +120,7 @@ "line": 3, "column": 40, "offset": 78 - }, - "indent": [] + } } } ], @@ -141,8 +134,7 @@ "line": 3, "column": 40, "offset": 78 - }, - "indent": [] + } } }, { @@ -163,8 +155,7 @@ "line": 5, "column": 38, "offset": 117 - }, - "indent": [] + } } }, { @@ -180,8 +171,7 @@ "line": 5, "column": 39, "offset": 118 - }, - "indent": [] + } } } ], @@ -195,8 +185,7 @@ "line": 5, "column": 39, "offset": 118 - }, - "indent": [] + } } }, { @@ -217,8 +206,7 @@ "line": 7, "column": 40, "offset": 159 - }, - "indent": [] + } } }, { @@ -234,8 +222,7 @@ "line": 7, "column": 41, "offset": 160 - }, - "indent": [] + } } } ], @@ -249,8 +236,7 @@ "line": 7, "column": 41, "offset": 160 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/links-text-delimiters.nogfm.json b/test/fixtures/tree/links-text-delimiters.nogfm.json deleted file mode 100644 index c1f5ead09..000000000 --- a/test/fixtures/tree/links-text-delimiters.nogfm.json +++ /dev/null @@ -1,269 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./hello-world.html", - "children": [ - { - "type": "text", - "value": "Hello [world]!", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 16, - "offset": 15 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 37, - "offset": 36 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 37, - "offset": 36 - }, - "end": { - "line": 1, - "column": 38, - "offset": 37 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 38, - "offset": 37 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./hello-world.html", - "children": [ - { - "type": "text", - "value": "Hello [world]!", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 40 - }, - "end": { - "line": 3, - "column": 16, - "offset": 54 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 39 - }, - "end": { - "line": 3, - "column": 39, - "offset": 77 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 39, - "offset": 77 - }, - "end": { - "line": 3, - "column": 40, - "offset": 78 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 39 - }, - "end": { - "line": 3, - "column": 40, - "offset": 78 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./hello-world.html", - "alt": "Hello [world]!", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 80 - }, - "end": { - "line": 5, - "column": 38, - "offset": 117 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 38, - "offset": 117 - }, - "end": { - "line": 5, - "column": 39, - "offset": 118 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 80 - }, - "end": { - "line": 5, - "column": 39, - "offset": 118 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./hello-world.html", - "alt": "Hello [world]!", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 120 - }, - "end": { - "line": 7, - "column": 40, - "offset": 159 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 40, - "offset": 159 - }, - "end": { - "line": 7, - "column": 41, - "offset": 160 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 120 - }, - "end": { - "line": 7, - "column": 41, - "offset": 160 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 161 - } - } -} diff --git a/test/fixtures/tree/links-text-empty.json b/test/fixtures/tree/links-text-empty.json index 9d9b72fb8..fe4075bbf 100644 --- a/test/fixtures/tree/links-text-empty.json +++ b/test/fixtures/tree/links-text-empty.json @@ -19,8 +19,7 @@ "line": 1, "column": 23, "offset": 22 - }, - "indent": [] + } } }, { @@ -36,8 +35,7 @@ "line": 1, "column": 24, "offset": 23 - }, - "indent": [] + } } } ], @@ -51,8 +49,7 @@ "line": 1, "column": 24, "offset": 23 - }, - "indent": [] + } } }, { @@ -73,8 +70,7 @@ "line": 3, "column": 25, "offset": 49 - }, - "indent": [] + } } }, { @@ -90,8 +86,7 @@ "line": 3, "column": 26, "offset": 50 - }, - "indent": [] + } } } ], @@ -105,8 +100,7 @@ "line": 3, "column": 26, "offset": 50 - }, - "indent": [] + } } }, { @@ -116,7 +110,7 @@ "type": "image", "title": null, "url": "./hello-world.html", - "alt": null, + "alt": "", "position": { "start": { "line": 5, @@ -127,8 +121,7 @@ "line": 5, "column": 24, "offset": 75 - }, - "indent": [] + } } }, { @@ -144,8 +137,7 @@ "line": 5, "column": 25, "offset": 76 - }, - "indent": [] + } } } ], @@ -159,8 +151,7 @@ "line": 5, "column": 25, "offset": 76 - }, - "indent": [] + } } }, { @@ -170,7 +161,7 @@ "type": "image", "title": null, "url": "./hello-world.html", - "alt": null, + "alt": "", "position": { "start": { "line": 7, @@ -181,8 +172,7 @@ "line": 7, "column": 26, "offset": 103 - }, - "indent": [] + } } }, { @@ -198,8 +188,7 @@ "line": 7, "column": 27, "offset": 104 - }, - "indent": [] + } } } ], @@ -213,8 +202,7 @@ "line": 7, "column": 27, "offset": 104 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/links-text-empty.nogfm.json b/test/fixtures/tree/links-text-empty.nogfm.json deleted file mode 100644 index 9d9b72fb8..000000000 --- a/test/fixtures/tree/links-text-empty.nogfm.json +++ /dev/null @@ -1,233 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./hello-world.html", - "children": [], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 23, - "offset": 22 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 23, - "offset": 22 - }, - "end": { - "line": 1, - "column": 24, - "offset": 23 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 24, - "offset": 23 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./hello-world.html", - "children": [], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 25 - }, - "end": { - "line": 3, - "column": 25, - "offset": 49 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 25, - "offset": 49 - }, - "end": { - "line": 3, - "column": 26, - "offset": 50 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 25 - }, - "end": { - "line": 3, - "column": 26, - "offset": 50 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./hello-world.html", - "alt": null, - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 52 - }, - "end": { - "line": 5, - "column": 24, - "offset": 75 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 24, - "offset": 75 - }, - "end": { - "line": 5, - "column": 25, - "offset": 76 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 52 - }, - "end": { - "line": 5, - "column": 25, - "offset": 76 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./hello-world.html", - "alt": null, - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 78 - }, - "end": { - "line": 7, - "column": 26, - "offset": 103 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 26, - "offset": 103 - }, - "end": { - "line": 7, - "column": 27, - "offset": 104 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 78 - }, - "end": { - "line": 7, - "column": 27, - "offset": 104 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 105 - } - } -} diff --git a/test/fixtures/tree/links-text-entity-delimiters.commonmark.json b/test/fixtures/tree/links-text-entity-delimiters.commonmark.json deleted file mode 100644 index fa77e7cb1..000000000 --- a/test/fixtures/tree/links-text-entity-delimiters.commonmark.json +++ /dev/null @@ -1,793 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./hello-world.html", - "children": [ - { - "type": "text", - "value": "Hello ", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 8, - "offset": 7 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "[", - "position": { - "start": { - "line": 1, - "column": 8, - "offset": 7 - }, - "end": { - "line": 1, - "column": 14, - "offset": 13 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "world", - "position": { - "start": { - "line": 1, - "column": 14, - "offset": 13 - }, - "end": { - "line": 1, - "column": 19, - "offset": 18 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "]", - "position": { - "start": { - "line": 1, - "column": 19, - "offset": 18 - }, - "end": { - "line": 1, - "column": 25, - "offset": 24 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "!", - "position": { - "start": { - "line": 1, - "column": 25, - "offset": 24 - }, - "end": { - "line": 1, - "column": 26, - "offset": 25 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 47, - "offset": 46 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 47, - "offset": 46 - }, - "end": { - "line": 1, - "column": 48, - "offset": 47 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 48, - "offset": 47 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./hello-world.html", - "children": [ - { - "type": "text", - "value": "Hello ", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 50 - }, - "end": { - "line": 3, - "column": 8, - "offset": 56 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "[", - "position": { - "start": { - "line": 3, - "column": 8, - "offset": 56 - }, - "end": { - "line": 3, - "column": 14, - "offset": 62 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "world", - "position": { - "start": { - "line": 3, - "column": 14, - "offset": 62 - }, - "end": { - "line": 3, - "column": 19, - "offset": 67 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "]", - "position": { - "start": { - "line": 3, - "column": 19, - "offset": 67 - }, - "end": { - "line": 3, - "column": 25, - "offset": 73 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "!", - "position": { - "start": { - "line": 3, - "column": 25, - "offset": 73 - }, - "end": { - "line": 3, - "column": 26, - "offset": 74 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 49 - }, - "end": { - "line": 3, - "column": 49, - "offset": 97 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 49, - "offset": 97 - }, - "end": { - "line": 3, - "column": 50, - "offset": 98 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 49 - }, - "end": { - "line": 3, - "column": 50, - "offset": 98 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./hello-world.html", - "alt": "Hello [world]!", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 100 - }, - "end": { - "line": 5, - "column": 48, - "offset": 147 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 48, - "offset": 147 - }, - "end": { - "line": 5, - "column": 49, - "offset": 148 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 100 - }, - "end": { - "line": 5, - "column": 49, - "offset": 148 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./hello-world.html", - "alt": "Hello [world]!", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 150 - }, - "end": { - "line": 7, - "column": 50, - "offset": 199 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 50, - "offset": 199 - }, - "end": { - "line": 7, - "column": 51, - "offset": 200 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 150 - }, - "end": { - "line": 7, - "column": 51, - "offset": 200 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./hello-world.html", - "children": [ - { - "type": "text", - "value": "Hello ", - "position": { - "start": { - "line": 9, - "column": 2, - "offset": 203 - }, - "end": { - "line": 9, - "column": 8, - "offset": 209 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "[", - "position": { - "start": { - "line": 9, - "column": 8, - "offset": 209 - }, - "end": { - "line": 9, - "column": 14, - "offset": 215 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "world", - "position": { - "start": { - "line": 9, - "column": 14, - "offset": 215 - }, - "end": { - "line": 9, - "column": 19, - "offset": 220 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "]", - "position": { - "start": { - "line": 9, - "column": 19, - "offset": 220 - }, - "end": { - "line": 9, - "column": 25, - "offset": 226 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "!", - "position": { - "start": { - "line": 9, - "column": 25, - "offset": 226 - }, - "end": { - "line": 9, - "column": 26, - "offset": 227 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 202 - }, - "end": { - "line": 9, - "column": 47, - "offset": 248 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 9, - "column": 47, - "offset": 248 - }, - "end": { - "line": 9, - "column": 48, - "offset": 249 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 202 - }, - "end": { - "line": 9, - "column": 48, - "offset": 249 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./hello-world.html", - "children": [ - { - "type": "text", - "value": "Hello ", - "position": { - "start": { - "line": 11, - "column": 2, - "offset": 252 - }, - "end": { - "line": 11, - "column": 8, - "offset": 258 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "[", - "position": { - "start": { - "line": 11, - "column": 8, - "offset": 258 - }, - "end": { - "line": 11, - "column": 14, - "offset": 264 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "world", - "position": { - "start": { - "line": 11, - "column": 14, - "offset": 264 - }, - "end": { - "line": 11, - "column": 19, - "offset": 269 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "]", - "position": { - "start": { - "line": 11, - "column": 19, - "offset": 269 - }, - "end": { - "line": 11, - "column": 25, - "offset": 275 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "!", - "position": { - "start": { - "line": 11, - "column": 25, - "offset": 275 - }, - "end": { - "line": 11, - "column": 26, - "offset": 276 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 251 - }, - "end": { - "line": 11, - "column": 49, - "offset": 299 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 11, - "column": 49, - "offset": 299 - }, - "end": { - "line": 11, - "column": 50, - "offset": 300 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 251 - }, - "end": { - "line": 11, - "column": 50, - "offset": 300 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./hello-world.html", - "alt": "Hello [world]!", - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 302 - }, - "end": { - "line": 13, - "column": 48, - "offset": 349 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 13, - "column": 48, - "offset": 349 - }, - "end": { - "line": 13, - "column": 49, - "offset": 350 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 302 - }, - "end": { - "line": 13, - "column": 49, - "offset": 350 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./hello-world.html", - "alt": "Hello [world]!", - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 352 - }, - "end": { - "line": 15, - "column": 50, - "offset": 401 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 15, - "column": 50, - "offset": 401 - }, - "end": { - "line": 15, - "column": 51, - "offset": 402 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 352 - }, - "end": { - "line": 15, - "column": 51, - "offset": 402 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 16, - "column": 1, - "offset": 403 - } - } -} diff --git a/test/fixtures/tree/links-text-entity-delimiters.json b/test/fixtures/tree/links-text-entity-delimiters.json index fa77e7cb1..e992ad223 100644 --- a/test/fixtures/tree/links-text-entity-delimiters.json +++ b/test/fixtures/tree/links-text-entity-delimiters.json @@ -11,87 +11,18 @@ "children": [ { "type": "text", - "value": "Hello ", + "value": "Hello [world]!", "position": { "start": { "line": 1, "column": 2, "offset": 1 }, - "end": { - "line": 1, - "column": 8, - "offset": 7 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "[", - "position": { - "start": { - "line": 1, - "column": 8, - "offset": 7 - }, - "end": { - "line": 1, - "column": 14, - "offset": 13 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "world", - "position": { - "start": { - "line": 1, - "column": 14, - "offset": 13 - }, - "end": { - "line": 1, - "column": 19, - "offset": 18 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "]", - "position": { - "start": { - "line": 1, - "column": 19, - "offset": 18 - }, - "end": { - "line": 1, - "column": 25, - "offset": 24 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "!", - "position": { - "start": { - "line": 1, - "column": 25, - "offset": 24 - }, "end": { "line": 1, "column": 26, "offset": 25 - }, - "indent": [] + } } } ], @@ -105,8 +36,7 @@ "line": 1, "column": 47, "offset": 46 - }, - "indent": [] + } } }, { @@ -122,8 +52,7 @@ "line": 1, "column": 48, "offset": 47 - }, - "indent": [] + } } } ], @@ -137,8 +66,7 @@ "line": 1, "column": 48, "offset": 47 - }, - "indent": [] + } } }, { @@ -151,87 +79,18 @@ "children": [ { "type": "text", - "value": "Hello ", + "value": "Hello [world]!", "position": { "start": { "line": 3, "column": 2, "offset": 50 }, - "end": { - "line": 3, - "column": 8, - "offset": 56 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "[", - "position": { - "start": { - "line": 3, - "column": 8, - "offset": 56 - }, - "end": { - "line": 3, - "column": 14, - "offset": 62 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "world", - "position": { - "start": { - "line": 3, - "column": 14, - "offset": 62 - }, - "end": { - "line": 3, - "column": 19, - "offset": 67 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "]", - "position": { - "start": { - "line": 3, - "column": 19, - "offset": 67 - }, - "end": { - "line": 3, - "column": 25, - "offset": 73 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "!", - "position": { - "start": { - "line": 3, - "column": 25, - "offset": 73 - }, "end": { "line": 3, "column": 26, "offset": 74 - }, - "indent": [] + } } } ], @@ -245,8 +104,7 @@ "line": 3, "column": 49, "offset": 97 - }, - "indent": [] + } } }, { @@ -262,8 +120,7 @@ "line": 3, "column": 50, "offset": 98 - }, - "indent": [] + } } } ], @@ -277,8 +134,7 @@ "line": 3, "column": 50, "offset": 98 - }, - "indent": [] + } } }, { @@ -299,8 +155,7 @@ "line": 5, "column": 48, "offset": 147 - }, - "indent": [] + } } }, { @@ -316,8 +171,7 @@ "line": 5, "column": 49, "offset": 148 - }, - "indent": [] + } } } ], @@ -331,8 +185,7 @@ "line": 5, "column": 49, "offset": 148 - }, - "indent": [] + } } }, { @@ -353,8 +206,7 @@ "line": 7, "column": 50, "offset": 199 - }, - "indent": [] + } } }, { @@ -370,8 +222,7 @@ "line": 7, "column": 51, "offset": 200 - }, - "indent": [] + } } } ], @@ -385,8 +236,7 @@ "line": 7, "column": 51, "offset": 200 - }, - "indent": [] + } } }, { @@ -399,87 +249,18 @@ "children": [ { "type": "text", - "value": "Hello ", + "value": "Hello [world]!", "position": { "start": { "line": 9, "column": 2, "offset": 203 }, - "end": { - "line": 9, - "column": 8, - "offset": 209 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "[", - "position": { - "start": { - "line": 9, - "column": 8, - "offset": 209 - }, - "end": { - "line": 9, - "column": 14, - "offset": 215 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "world", - "position": { - "start": { - "line": 9, - "column": 14, - "offset": 215 - }, - "end": { - "line": 9, - "column": 19, - "offset": 220 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "]", - "position": { - "start": { - "line": 9, - "column": 19, - "offset": 220 - }, - "end": { - "line": 9, - "column": 25, - "offset": 226 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "!", - "position": { - "start": { - "line": 9, - "column": 25, - "offset": 226 - }, "end": { "line": 9, "column": 26, "offset": 227 - }, - "indent": [] + } } } ], @@ -493,8 +274,7 @@ "line": 9, "column": 47, "offset": 248 - }, - "indent": [] + } } }, { @@ -510,8 +290,7 @@ "line": 9, "column": 48, "offset": 249 - }, - "indent": [] + } } } ], @@ -525,8 +304,7 @@ "line": 9, "column": 48, "offset": 249 - }, - "indent": [] + } } }, { @@ -539,87 +317,18 @@ "children": [ { "type": "text", - "value": "Hello ", + "value": "Hello [world]!", "position": { "start": { "line": 11, "column": 2, "offset": 252 }, - "end": { - "line": 11, - "column": 8, - "offset": 258 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "[", - "position": { - "start": { - "line": 11, - "column": 8, - "offset": 258 - }, - "end": { - "line": 11, - "column": 14, - "offset": 264 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "world", - "position": { - "start": { - "line": 11, - "column": 14, - "offset": 264 - }, - "end": { - "line": 11, - "column": 19, - "offset": 269 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "]", - "position": { - "start": { - "line": 11, - "column": 19, - "offset": 269 - }, - "end": { - "line": 11, - "column": 25, - "offset": 275 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "!", - "position": { - "start": { - "line": 11, - "column": 25, - "offset": 275 - }, "end": { "line": 11, "column": 26, "offset": 276 - }, - "indent": [] + } } } ], @@ -633,8 +342,7 @@ "line": 11, "column": 49, "offset": 299 - }, - "indent": [] + } } }, { @@ -650,8 +358,7 @@ "line": 11, "column": 50, "offset": 300 - }, - "indent": [] + } } } ], @@ -665,8 +372,7 @@ "line": 11, "column": 50, "offset": 300 - }, - "indent": [] + } } }, { @@ -687,8 +393,7 @@ "line": 13, "column": 48, "offset": 349 - }, - "indent": [] + } } }, { @@ -704,8 +409,7 @@ "line": 13, "column": 49, "offset": 350 - }, - "indent": [] + } } } ], @@ -719,8 +423,7 @@ "line": 13, "column": 49, "offset": 350 - }, - "indent": [] + } } }, { @@ -741,8 +444,7 @@ "line": 15, "column": 50, "offset": 401 - }, - "indent": [] + } } }, { @@ -758,8 +460,7 @@ "line": 15, "column": 51, "offset": 402 - }, - "indent": [] + } } } ], @@ -773,8 +474,7 @@ "line": 15, "column": 51, "offset": 402 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/links-text-entity-delimiters.nogfm.json b/test/fixtures/tree/links-text-entity-delimiters.nogfm.json deleted file mode 100644 index fa77e7cb1..000000000 --- a/test/fixtures/tree/links-text-entity-delimiters.nogfm.json +++ /dev/null @@ -1,793 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./hello-world.html", - "children": [ - { - "type": "text", - "value": "Hello ", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 8, - "offset": 7 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "[", - "position": { - "start": { - "line": 1, - "column": 8, - "offset": 7 - }, - "end": { - "line": 1, - "column": 14, - "offset": 13 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "world", - "position": { - "start": { - "line": 1, - "column": 14, - "offset": 13 - }, - "end": { - "line": 1, - "column": 19, - "offset": 18 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "]", - "position": { - "start": { - "line": 1, - "column": 19, - "offset": 18 - }, - "end": { - "line": 1, - "column": 25, - "offset": 24 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "!", - "position": { - "start": { - "line": 1, - "column": 25, - "offset": 24 - }, - "end": { - "line": 1, - "column": 26, - "offset": 25 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 47, - "offset": 46 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 47, - "offset": 46 - }, - "end": { - "line": 1, - "column": 48, - "offset": 47 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 48, - "offset": 47 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./hello-world.html", - "children": [ - { - "type": "text", - "value": "Hello ", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 50 - }, - "end": { - "line": 3, - "column": 8, - "offset": 56 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "[", - "position": { - "start": { - "line": 3, - "column": 8, - "offset": 56 - }, - "end": { - "line": 3, - "column": 14, - "offset": 62 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "world", - "position": { - "start": { - "line": 3, - "column": 14, - "offset": 62 - }, - "end": { - "line": 3, - "column": 19, - "offset": 67 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "]", - "position": { - "start": { - "line": 3, - "column": 19, - "offset": 67 - }, - "end": { - "line": 3, - "column": 25, - "offset": 73 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "!", - "position": { - "start": { - "line": 3, - "column": 25, - "offset": 73 - }, - "end": { - "line": 3, - "column": 26, - "offset": 74 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 49 - }, - "end": { - "line": 3, - "column": 49, - "offset": 97 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 49, - "offset": 97 - }, - "end": { - "line": 3, - "column": 50, - "offset": 98 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 49 - }, - "end": { - "line": 3, - "column": 50, - "offset": 98 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./hello-world.html", - "alt": "Hello [world]!", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 100 - }, - "end": { - "line": 5, - "column": 48, - "offset": 147 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 48, - "offset": 147 - }, - "end": { - "line": 5, - "column": 49, - "offset": 148 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 100 - }, - "end": { - "line": 5, - "column": 49, - "offset": 148 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./hello-world.html", - "alt": "Hello [world]!", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 150 - }, - "end": { - "line": 7, - "column": 50, - "offset": 199 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 50, - "offset": 199 - }, - "end": { - "line": 7, - "column": 51, - "offset": 200 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 150 - }, - "end": { - "line": 7, - "column": 51, - "offset": 200 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./hello-world.html", - "children": [ - { - "type": "text", - "value": "Hello ", - "position": { - "start": { - "line": 9, - "column": 2, - "offset": 203 - }, - "end": { - "line": 9, - "column": 8, - "offset": 209 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "[", - "position": { - "start": { - "line": 9, - "column": 8, - "offset": 209 - }, - "end": { - "line": 9, - "column": 14, - "offset": 215 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "world", - "position": { - "start": { - "line": 9, - "column": 14, - "offset": 215 - }, - "end": { - "line": 9, - "column": 19, - "offset": 220 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "]", - "position": { - "start": { - "line": 9, - "column": 19, - "offset": 220 - }, - "end": { - "line": 9, - "column": 25, - "offset": 226 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "!", - "position": { - "start": { - "line": 9, - "column": 25, - "offset": 226 - }, - "end": { - "line": 9, - "column": 26, - "offset": 227 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 202 - }, - "end": { - "line": 9, - "column": 47, - "offset": 248 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 9, - "column": 47, - "offset": 248 - }, - "end": { - "line": 9, - "column": 48, - "offset": 249 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 202 - }, - "end": { - "line": 9, - "column": 48, - "offset": 249 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./hello-world.html", - "children": [ - { - "type": "text", - "value": "Hello ", - "position": { - "start": { - "line": 11, - "column": 2, - "offset": 252 - }, - "end": { - "line": 11, - "column": 8, - "offset": 258 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "[", - "position": { - "start": { - "line": 11, - "column": 8, - "offset": 258 - }, - "end": { - "line": 11, - "column": 14, - "offset": 264 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "world", - "position": { - "start": { - "line": 11, - "column": 14, - "offset": 264 - }, - "end": { - "line": 11, - "column": 19, - "offset": 269 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "]", - "position": { - "start": { - "line": 11, - "column": 19, - "offset": 269 - }, - "end": { - "line": 11, - "column": 25, - "offset": 275 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "!", - "position": { - "start": { - "line": 11, - "column": 25, - "offset": 275 - }, - "end": { - "line": 11, - "column": 26, - "offset": 276 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 251 - }, - "end": { - "line": 11, - "column": 49, - "offset": 299 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 11, - "column": 49, - "offset": 299 - }, - "end": { - "line": 11, - "column": 50, - "offset": 300 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 251 - }, - "end": { - "line": 11, - "column": 50, - "offset": 300 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./hello-world.html", - "alt": "Hello [world]!", - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 302 - }, - "end": { - "line": 13, - "column": 48, - "offset": 349 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 13, - "column": 48, - "offset": 349 - }, - "end": { - "line": 13, - "column": 49, - "offset": 350 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 302 - }, - "end": { - "line": 13, - "column": 49, - "offset": 350 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./hello-world.html", - "alt": "Hello [world]!", - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 352 - }, - "end": { - "line": 15, - "column": 50, - "offset": 401 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 15, - "column": 50, - "offset": 401 - }, - "end": { - "line": 15, - "column": 51, - "offset": 402 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 352 - }, - "end": { - "line": 15, - "column": 51, - "offset": 402 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 16, - "column": 1, - "offset": 403 - } - } -} diff --git a/test/fixtures/tree/links-text-escaped-delimiters.commonmark.json b/test/fixtures/tree/links-text-escaped-delimiters.commonmark.json deleted file mode 100644 index 623566693..000000000 --- a/test/fixtures/tree/links-text-escaped-delimiters.commonmark.json +++ /dev/null @@ -1,405 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./hello-world.html", - "children": [ - { - "type": "text", - "value": "Hello ", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 8, - "offset": 7 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "[", - "position": { - "start": { - "line": 1, - "column": 8, - "offset": 7 - }, - "end": { - "line": 1, - "column": 10, - "offset": 9 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "world", - "position": { - "start": { - "line": 1, - "column": 10, - "offset": 9 - }, - "end": { - "line": 1, - "column": 15, - "offset": 14 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "]", - "position": { - "start": { - "line": 1, - "column": 15, - "offset": 14 - }, - "end": { - "line": 1, - "column": 17, - "offset": 16 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "!", - "position": { - "start": { - "line": 1, - "column": 17, - "offset": 16 - }, - "end": { - "line": 1, - "column": 18, - "offset": 17 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 39, - "offset": 38 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 39, - "offset": 38 - }, - "end": { - "line": 1, - "column": 40, - "offset": 39 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 40, - "offset": 39 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./hello-world.html", - "children": [ - { - "type": "text", - "value": "Hello ", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 42 - }, - "end": { - "line": 3, - "column": 8, - "offset": 48 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "[", - "position": { - "start": { - "line": 3, - "column": 8, - "offset": 48 - }, - "end": { - "line": 3, - "column": 10, - "offset": 50 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "world", - "position": { - "start": { - "line": 3, - "column": 10, - "offset": 50 - }, - "end": { - "line": 3, - "column": 15, - "offset": 55 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "]", - "position": { - "start": { - "line": 3, - "column": 15, - "offset": 55 - }, - "end": { - "line": 3, - "column": 17, - "offset": 57 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "!", - "position": { - "start": { - "line": 3, - "column": 17, - "offset": 57 - }, - "end": { - "line": 3, - "column": 18, - "offset": 58 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 41 - }, - "end": { - "line": 3, - "column": 41, - "offset": 81 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 41, - "offset": 81 - }, - "end": { - "line": 3, - "column": 42, - "offset": 82 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 41 - }, - "end": { - "line": 3, - "column": 42, - "offset": 82 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./hello-world.html", - "alt": "Hello [world]!", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 84 - }, - "end": { - "line": 5, - "column": 40, - "offset": 123 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 40, - "offset": 123 - }, - "end": { - "line": 5, - "column": 41, - "offset": 124 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 84 - }, - "end": { - "line": 5, - "column": 41, - "offset": 124 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./hello-world.html", - "alt": "Hello [world]!", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 126 - }, - "end": { - "line": 7, - "column": 42, - "offset": 167 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 42, - "offset": 167 - }, - "end": { - "line": 7, - "column": 43, - "offset": 168 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 126 - }, - "end": { - "line": 7, - "column": 43, - "offset": 168 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 169 - } - } -} diff --git a/test/fixtures/tree/links-text-escaped-delimiters.json b/test/fixtures/tree/links-text-escaped-delimiters.json index 623566693..00dc863a5 100644 --- a/test/fixtures/tree/links-text-escaped-delimiters.json +++ b/test/fixtures/tree/links-text-escaped-delimiters.json @@ -11,87 +11,18 @@ "children": [ { "type": "text", - "value": "Hello ", + "value": "Hello [world]!", "position": { "start": { "line": 1, "column": 2, "offset": 1 }, - "end": { - "line": 1, - "column": 8, - "offset": 7 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "[", - "position": { - "start": { - "line": 1, - "column": 8, - "offset": 7 - }, - "end": { - "line": 1, - "column": 10, - "offset": 9 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "world", - "position": { - "start": { - "line": 1, - "column": 10, - "offset": 9 - }, - "end": { - "line": 1, - "column": 15, - "offset": 14 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "]", - "position": { - "start": { - "line": 1, - "column": 15, - "offset": 14 - }, - "end": { - "line": 1, - "column": 17, - "offset": 16 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "!", - "position": { - "start": { - "line": 1, - "column": 17, - "offset": 16 - }, "end": { "line": 1, "column": 18, "offset": 17 - }, - "indent": [] + } } } ], @@ -105,8 +36,7 @@ "line": 1, "column": 39, "offset": 38 - }, - "indent": [] + } } }, { @@ -122,8 +52,7 @@ "line": 1, "column": 40, "offset": 39 - }, - "indent": [] + } } } ], @@ -137,8 +66,7 @@ "line": 1, "column": 40, "offset": 39 - }, - "indent": [] + } } }, { @@ -151,87 +79,18 @@ "children": [ { "type": "text", - "value": "Hello ", + "value": "Hello [world]!", "position": { "start": { "line": 3, "column": 2, "offset": 42 }, - "end": { - "line": 3, - "column": 8, - "offset": 48 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "[", - "position": { - "start": { - "line": 3, - "column": 8, - "offset": 48 - }, - "end": { - "line": 3, - "column": 10, - "offset": 50 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "world", - "position": { - "start": { - "line": 3, - "column": 10, - "offset": 50 - }, - "end": { - "line": 3, - "column": 15, - "offset": 55 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "]", - "position": { - "start": { - "line": 3, - "column": 15, - "offset": 55 - }, - "end": { - "line": 3, - "column": 17, - "offset": 57 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "!", - "position": { - "start": { - "line": 3, - "column": 17, - "offset": 57 - }, "end": { "line": 3, "column": 18, "offset": 58 - }, - "indent": [] + } } } ], @@ -245,8 +104,7 @@ "line": 3, "column": 41, "offset": 81 - }, - "indent": [] + } } }, { @@ -262,8 +120,7 @@ "line": 3, "column": 42, "offset": 82 - }, - "indent": [] + } } } ], @@ -277,8 +134,7 @@ "line": 3, "column": 42, "offset": 82 - }, - "indent": [] + } } }, { @@ -299,8 +155,7 @@ "line": 5, "column": 40, "offset": 123 - }, - "indent": [] + } } }, { @@ -316,8 +171,7 @@ "line": 5, "column": 41, "offset": 124 - }, - "indent": [] + } } } ], @@ -331,8 +185,7 @@ "line": 5, "column": 41, "offset": 124 - }, - "indent": [] + } } }, { @@ -353,8 +206,7 @@ "line": 7, "column": 42, "offset": 167 - }, - "indent": [] + } } }, { @@ -370,8 +222,7 @@ "line": 7, "column": 43, "offset": 168 - }, - "indent": [] + } } } ], @@ -385,8 +236,7 @@ "line": 7, "column": 43, "offset": 168 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/links-text-escaped-delimiters.nogfm.json b/test/fixtures/tree/links-text-escaped-delimiters.nogfm.json deleted file mode 100644 index 623566693..000000000 --- a/test/fixtures/tree/links-text-escaped-delimiters.nogfm.json +++ /dev/null @@ -1,405 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./hello-world.html", - "children": [ - { - "type": "text", - "value": "Hello ", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 8, - "offset": 7 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "[", - "position": { - "start": { - "line": 1, - "column": 8, - "offset": 7 - }, - "end": { - "line": 1, - "column": 10, - "offset": 9 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "world", - "position": { - "start": { - "line": 1, - "column": 10, - "offset": 9 - }, - "end": { - "line": 1, - "column": 15, - "offset": 14 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "]", - "position": { - "start": { - "line": 1, - "column": 15, - "offset": 14 - }, - "end": { - "line": 1, - "column": 17, - "offset": 16 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "!", - "position": { - "start": { - "line": 1, - "column": 17, - "offset": 16 - }, - "end": { - "line": 1, - "column": 18, - "offset": 17 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 39, - "offset": 38 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 39, - "offset": 38 - }, - "end": { - "line": 1, - "column": 40, - "offset": 39 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 40, - "offset": 39 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./hello-world.html", - "children": [ - { - "type": "text", - "value": "Hello ", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 42 - }, - "end": { - "line": 3, - "column": 8, - "offset": 48 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "[", - "position": { - "start": { - "line": 3, - "column": 8, - "offset": 48 - }, - "end": { - "line": 3, - "column": 10, - "offset": 50 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "world", - "position": { - "start": { - "line": 3, - "column": 10, - "offset": 50 - }, - "end": { - "line": 3, - "column": 15, - "offset": 55 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "]", - "position": { - "start": { - "line": 3, - "column": 15, - "offset": 55 - }, - "end": { - "line": 3, - "column": 17, - "offset": 57 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "!", - "position": { - "start": { - "line": 3, - "column": 17, - "offset": 57 - }, - "end": { - "line": 3, - "column": 18, - "offset": 58 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 41 - }, - "end": { - "line": 3, - "column": 41, - "offset": 81 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 41, - "offset": 81 - }, - "end": { - "line": 3, - "column": 42, - "offset": 82 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 41 - }, - "end": { - "line": 3, - "column": 42, - "offset": 82 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./hello-world.html", - "alt": "Hello [world]!", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 84 - }, - "end": { - "line": 5, - "column": 40, - "offset": 123 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 40, - "offset": 123 - }, - "end": { - "line": 5, - "column": 41, - "offset": 124 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 84 - }, - "end": { - "line": 5, - "column": 41, - "offset": 124 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./hello-world.html", - "alt": "Hello [world]!", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 126 - }, - "end": { - "line": 7, - "column": 42, - "offset": 167 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 42, - "offset": 167 - }, - "end": { - "line": 7, - "column": 43, - "offset": 168 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 126 - }, - "end": { - "line": 7, - "column": 43, - "offset": 168 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 169 - } - } -} diff --git a/test/fixtures/tree/links-text-mismatched-delimiters.commonmark.json b/test/fixtures/tree/links-text-mismatched-delimiters.commonmark.json deleted file mode 100644 index 88ece1099..000000000 --- a/test/fixtures/tree/links-text-mismatched-delimiters.commonmark.json +++ /dev/null @@ -1,373 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[Hello ", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 8, - "offset": 7 - }, - "indent": [] - } - }, - { - "type": "link", - "title": null, - "url": "./hello-world.html", - "children": [ - { - "type": "text", - "value": "world!", - "position": { - "start": { - "line": 1, - "column": 9, - "offset": 8 - }, - "end": { - "line": 1, - "column": 15, - "offset": 14 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 8, - "offset": 7 - }, - "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": "text", - "value": "[Hello ", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 38 - }, - "end": { - "line": 3, - "column": 8, - "offset": 45 - }, - "indent": [] - } - }, - { - "type": "link", - "title": null, - "url": "./hello-world.html", - "children": [ - { - "type": "text", - "value": "world!", - "position": { - "start": { - "line": 3, - "column": 9, - "offset": 46 - }, - "end": { - "line": 3, - "column": 15, - "offset": 52 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 8, - "offset": 45 - }, - "end": { - "line": 3, - "column": 38, - "offset": 75 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 38, - "offset": 75 - }, - "end": { - "line": 3, - "column": 39, - "offset": 76 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 38 - }, - "end": { - "line": 3, - "column": 39, - "offset": 76 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "![Hello ", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 78 - }, - "end": { - "line": 5, - "column": 9, - "offset": 86 - }, - "indent": [] - } - }, - { - "type": "link", - "title": null, - "url": "./hello-world.html", - "children": [ - { - "type": "text", - "value": "world!", - "position": { - "start": { - "line": 5, - "column": 10, - "offset": 87 - }, - "end": { - "line": 5, - "column": 16, - "offset": 93 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 9, - "offset": 86 - }, - "end": { - "line": 5, - "column": 37, - "offset": 114 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 37, - "offset": 114 - }, - "end": { - "line": 5, - "column": 38, - "offset": 115 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 78 - }, - "end": { - "line": 5, - "column": 38, - "offset": 115 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "![Hello ", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 117 - }, - "end": { - "line": 7, - "column": 9, - "offset": 125 - }, - "indent": [] - } - }, - { - "type": "link", - "title": null, - "url": "./hello-world.html", - "children": [ - { - "type": "text", - "value": "world!", - "position": { - "start": { - "line": 7, - "column": 10, - "offset": 126 - }, - "end": { - "line": 7, - "column": 16, - "offset": 132 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 9, - "offset": 125 - }, - "end": { - "line": 7, - "column": 39, - "offset": 155 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 39, - "offset": 155 - }, - "end": { - "line": 7, - "column": 40, - "offset": 156 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 117 - }, - "end": { - "line": 7, - "column": 40, - "offset": 156 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 157 - } - } -} diff --git a/test/fixtures/tree/links-text-mismatched-delimiters.json b/test/fixtures/tree/links-text-mismatched-delimiters.json index 88ece1099..44fca7e14 100644 --- a/test/fixtures/tree/links-text-mismatched-delimiters.json +++ b/test/fixtures/tree/links-text-mismatched-delimiters.json @@ -17,8 +17,7 @@ "line": 1, "column": 8, "offset": 7 - }, - "indent": [] + } } }, { @@ -39,8 +38,7 @@ "line": 1, "column": 15, "offset": 14 - }, - "indent": [] + } } } ], @@ -54,8 +52,7 @@ "line": 1, "column": 36, "offset": 35 - }, - "indent": [] + } } }, { @@ -71,8 +68,7 @@ "line": 1, "column": 37, "offset": 36 - }, - "indent": [] + } } } ], @@ -86,8 +82,7 @@ "line": 1, "column": 37, "offset": 36 - }, - "indent": [] + } } }, { @@ -106,8 +101,7 @@ "line": 3, "column": 8, "offset": 45 - }, - "indent": [] + } } }, { @@ -128,8 +122,7 @@ "line": 3, "column": 15, "offset": 52 - }, - "indent": [] + } } } ], @@ -143,8 +136,7 @@ "line": 3, "column": 38, "offset": 75 - }, - "indent": [] + } } }, { @@ -160,8 +152,7 @@ "line": 3, "column": 39, "offset": 76 - }, - "indent": [] + } } } ], @@ -175,8 +166,7 @@ "line": 3, "column": 39, "offset": 76 - }, - "indent": [] + } } }, { @@ -195,8 +185,7 @@ "line": 5, "column": 9, "offset": 86 - }, - "indent": [] + } } }, { @@ -217,8 +206,7 @@ "line": 5, "column": 16, "offset": 93 - }, - "indent": [] + } } } ], @@ -232,8 +220,7 @@ "line": 5, "column": 37, "offset": 114 - }, - "indent": [] + } } }, { @@ -249,8 +236,7 @@ "line": 5, "column": 38, "offset": 115 - }, - "indent": [] + } } } ], @@ -264,8 +250,7 @@ "line": 5, "column": 38, "offset": 115 - }, - "indent": [] + } } }, { @@ -284,8 +269,7 @@ "line": 7, "column": 9, "offset": 125 - }, - "indent": [] + } } }, { @@ -306,8 +290,7 @@ "line": 7, "column": 16, "offset": 132 - }, - "indent": [] + } } } ], @@ -321,8 +304,7 @@ "line": 7, "column": 39, "offset": 155 - }, - "indent": [] + } } }, { @@ -338,8 +320,7 @@ "line": 7, "column": 40, "offset": 156 - }, - "indent": [] + } } } ], @@ -353,8 +334,7 @@ "line": 7, "column": 40, "offset": 156 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/links-text-mismatched-delimiters.nogfm.json b/test/fixtures/tree/links-text-mismatched-delimiters.nogfm.json deleted file mode 100644 index 88ece1099..000000000 --- a/test/fixtures/tree/links-text-mismatched-delimiters.nogfm.json +++ /dev/null @@ -1,373 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[Hello ", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 8, - "offset": 7 - }, - "indent": [] - } - }, - { - "type": "link", - "title": null, - "url": "./hello-world.html", - "children": [ - { - "type": "text", - "value": "world!", - "position": { - "start": { - "line": 1, - "column": 9, - "offset": 8 - }, - "end": { - "line": 1, - "column": 15, - "offset": 14 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 8, - "offset": 7 - }, - "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": "text", - "value": "[Hello ", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 38 - }, - "end": { - "line": 3, - "column": 8, - "offset": 45 - }, - "indent": [] - } - }, - { - "type": "link", - "title": null, - "url": "./hello-world.html", - "children": [ - { - "type": "text", - "value": "world!", - "position": { - "start": { - "line": 3, - "column": 9, - "offset": 46 - }, - "end": { - "line": 3, - "column": 15, - "offset": 52 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 8, - "offset": 45 - }, - "end": { - "line": 3, - "column": 38, - "offset": 75 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 38, - "offset": 75 - }, - "end": { - "line": 3, - "column": 39, - "offset": 76 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 38 - }, - "end": { - "line": 3, - "column": 39, - "offset": 76 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "![Hello ", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 78 - }, - "end": { - "line": 5, - "column": 9, - "offset": 86 - }, - "indent": [] - } - }, - { - "type": "link", - "title": null, - "url": "./hello-world.html", - "children": [ - { - "type": "text", - "value": "world!", - "position": { - "start": { - "line": 5, - "column": 10, - "offset": 87 - }, - "end": { - "line": 5, - "column": 16, - "offset": 93 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 9, - "offset": 86 - }, - "end": { - "line": 5, - "column": 37, - "offset": 114 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 37, - "offset": 114 - }, - "end": { - "line": 5, - "column": 38, - "offset": 115 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 78 - }, - "end": { - "line": 5, - "column": 38, - "offset": 115 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "![Hello ", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 117 - }, - "end": { - "line": 7, - "column": 9, - "offset": 125 - }, - "indent": [] - } - }, - { - "type": "link", - "title": null, - "url": "./hello-world.html", - "children": [ - { - "type": "text", - "value": "world!", - "position": { - "start": { - "line": 7, - "column": 10, - "offset": 126 - }, - "end": { - "line": 7, - "column": 16, - "offset": 132 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 9, - "offset": 125 - }, - "end": { - "line": 7, - "column": 39, - "offset": 155 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 39, - "offset": 155 - }, - "end": { - "line": 7, - "column": 40, - "offset": 156 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 117 - }, - "end": { - "line": 7, - "column": 40, - "offset": 156 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 157 - } - } -} diff --git a/test/fixtures/tree/links-title-double-quotes-delimiters.commonmark.json b/test/fixtures/tree/links-title-double-quotes-delimiters.commonmark.json deleted file mode 100644 index e25b17ef8..000000000 --- a/test/fixtures/tree/links-title-double-quotes-delimiters.commonmark.json +++ /dev/null @@ -1,273 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "Hello", - "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": "text", - "value": "(./world.html \"Hello \"World\" Hello!\").", - "position": { - "start": { - "line": 1, - "column": 8, - "offset": 7 - }, - "end": { - "line": 1, - "column": 46, - "offset": 45 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 46, - "offset": 45 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 48 - }, - "end": { - "line": 3, - "column": 7, - "offset": 53 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 47 - }, - "end": { - "line": 3, - "column": 8, - "offset": 54 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(<./world.html> \"Hello \"World\" Hello!\").", - "position": { - "start": { - "line": 3, - "column": 8, - "offset": 54 - }, - "end": { - "line": 3, - "column": 48, - "offset": 94 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 47 - }, - "end": { - "line": 3, - "column": 48, - "offset": 94 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "imageReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "alt": "Hello", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 96 - }, - "end": { - "line": 5, - "column": 9, - "offset": 104 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(./world.html \"Hello \"World\" Hello!\").", - "position": { - "start": { - "line": 5, - "column": 9, - "offset": 104 - }, - "end": { - "line": 5, - "column": 47, - "offset": 142 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 96 - }, - "end": { - "line": 5, - "column": 47, - "offset": 142 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "imageReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "alt": "Hello", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 144 - }, - "end": { - "line": 7, - "column": 9, - "offset": 152 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(<./world.html> \"Hello \"World\" Hello!\").", - "position": { - "start": { - "line": 7, - "column": 9, - "offset": 152 - }, - "end": { - "line": 7, - "column": 49, - "offset": 192 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 144 - }, - "end": { - "line": 7, - "column": 49, - "offset": 192 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 193 - } - } -} diff --git a/test/fixtures/tree/links-title-double-quotes-delimiters.json b/test/fixtures/tree/links-title-double-quotes-delimiters.json index 573a41db2..bf50d8e7c 100644 --- a/test/fixtures/tree/links-title-double-quotes-delimiters.json +++ b/test/fixtures/tree/links-title-double-quotes-delimiters.json @@ -5,57 +5,19 @@ "type": "paragraph", "children": [ { - "type": "link", - "title": "Hello \"World\" Hello!", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - } - ], + "type": "text", + "value": "[Hello](./world.html \"Hello \"World\" Hello!\").", "position": { "start": { "line": 1, "column": 1, "offset": 0 }, - "end": { - "line": 1, - "column": 45, - "offset": 44 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 45, - "offset": 44 - }, "end": { "line": 1, "column": 46, "offset": 45 - }, - "indent": [] + } } } ], @@ -69,65 +31,26 @@ "line": 1, "column": 46, "offset": 45 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "link", - "title": "Hello \"World\" Hello!", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 48 - }, - "end": { - "line": 3, - "column": 7, - "offset": 53 - }, - "indent": [] - } - } - ], + "type": "text", + "value": "[Hello](<./world.html> \"Hello \"World\" Hello!\").", "position": { "start": { "line": 3, "column": 1, "offset": 47 }, - "end": { - "line": 3, - "column": 47, - "offset": 93 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 47, - "offset": 93 - }, "end": { "line": 3, "column": 48, "offset": 94 - }, - "indent": [] + } } } ], @@ -141,47 +64,26 @@ "line": 3, "column": 48, "offset": 94 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "image", - "title": "Hello \"World\" Hello!", - "url": "./world.html", - "alt": "Hello", + "type": "text", + "value": "![Hello](./world.html \"Hello \"World\" Hello!\").", "position": { "start": { "line": 5, "column": 1, "offset": 96 }, - "end": { - "line": 5, - "column": 46, - "offset": 141 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 46, - "offset": 141 - }, "end": { "line": 5, "column": 47, "offset": 142 - }, - "indent": [] + } } } ], @@ -195,47 +97,26 @@ "line": 5, "column": 47, "offset": 142 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "image", - "title": "Hello \"World\" Hello!", - "url": "./world.html", - "alt": "Hello", + "type": "text", + "value": "![Hello](<./world.html> \"Hello \"World\" Hello!\").", "position": { "start": { "line": 7, "column": 1, "offset": 144 }, - "end": { - "line": 7, - "column": 48, - "offset": 191 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 48, - "offset": 191 - }, "end": { "line": 7, "column": 49, "offset": 192 - }, - "indent": [] + } } } ], @@ -249,8 +130,7 @@ "line": 7, "column": 49, "offset": 192 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/links-title-double-quotes-delimiters.nogfm.json b/test/fixtures/tree/links-title-double-quotes-delimiters.nogfm.json deleted file mode 100644 index 573a41db2..000000000 --- a/test/fixtures/tree/links-title-double-quotes-delimiters.nogfm.json +++ /dev/null @@ -1,269 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "Hello \"World\" Hello!", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 45, - "offset": 44 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 45, - "offset": 44 - }, - "end": { - "line": 1, - "column": 46, - "offset": 45 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 46, - "offset": 45 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "Hello \"World\" Hello!", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 48 - }, - "end": { - "line": 3, - "column": 7, - "offset": 53 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 47 - }, - "end": { - "line": 3, - "column": 47, - "offset": 93 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 47, - "offset": 93 - }, - "end": { - "line": 3, - "column": 48, - "offset": 94 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 47 - }, - "end": { - "line": 3, - "column": 48, - "offset": 94 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "Hello \"World\" Hello!", - "url": "./world.html", - "alt": "Hello", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 96 - }, - "end": { - "line": 5, - "column": 46, - "offset": 141 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 46, - "offset": 141 - }, - "end": { - "line": 5, - "column": 47, - "offset": 142 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 96 - }, - "end": { - "line": 5, - "column": 47, - "offset": 142 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "Hello \"World\" Hello!", - "url": "./world.html", - "alt": "Hello", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 144 - }, - "end": { - "line": 7, - "column": 48, - "offset": 191 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 48, - "offset": 191 - }, - "end": { - "line": 7, - "column": 49, - "offset": 192 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 144 - }, - "end": { - "line": 7, - "column": 49, - "offset": 192 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 193 - } - } -} diff --git a/test/fixtures/tree/links-title-double-quotes-entity-delimiters.commonmark.json b/test/fixtures/tree/links-title-double-quotes-entity-delimiters.commonmark.json deleted file mode 100644 index ded53f44a..000000000 --- a/test/fixtures/tree/links-title-double-quotes-entity-delimiters.commonmark.json +++ /dev/null @@ -1,269 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "Hello \"World\" Hello!", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 55, - "offset": 54 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 55, - "offset": 54 - }, - "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": "link", - "title": "Hello \"World\" Hello!", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 58 - }, - "end": { - "line": 3, - "column": 7, - "offset": 63 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 57 - }, - "end": { - "line": 3, - "column": 57, - "offset": 113 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 57, - "offset": 113 - }, - "end": { - "line": 3, - "column": 58, - "offset": 114 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 57 - }, - "end": { - "line": 3, - "column": 58, - "offset": 114 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "Hello \"World\" Hello!", - "url": "./world.html", - "alt": "Hello", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 116 - }, - "end": { - "line": 5, - "column": 56, - "offset": 171 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 56, - "offset": 171 - }, - "end": { - "line": 5, - "column": 57, - "offset": 172 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 116 - }, - "end": { - "line": 5, - "column": 57, - "offset": 172 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "Hello \"World\" Hello!", - "url": "./world.html", - "alt": "Hello", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 174 - }, - "end": { - "line": 7, - "column": 58, - "offset": 231 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 58, - "offset": 231 - }, - "end": { - "line": 7, - "column": 59, - "offset": 232 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 174 - }, - "end": { - "line": 7, - "column": 59, - "offset": 232 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 233 - } - } -} diff --git a/test/fixtures/tree/links-title-double-quotes-entity-delimiters.json b/test/fixtures/tree/links-title-double-quotes-entity-delimiters.json index ded53f44a..b1f0c5057 100644 --- a/test/fixtures/tree/links-title-double-quotes-entity-delimiters.json +++ b/test/fixtures/tree/links-title-double-quotes-entity-delimiters.json @@ -22,8 +22,7 @@ "line": 1, "column": 7, "offset": 6 - }, - "indent": [] + } } } ], @@ -37,8 +36,7 @@ "line": 1, "column": 55, "offset": 54 - }, - "indent": [] + } } }, { @@ -54,8 +52,7 @@ "line": 1, "column": 56, "offset": 55 - }, - "indent": [] + } } } ], @@ -69,8 +66,7 @@ "line": 1, "column": 56, "offset": 55 - }, - "indent": [] + } } }, { @@ -94,8 +90,7 @@ "line": 3, "column": 7, "offset": 63 - }, - "indent": [] + } } } ], @@ -109,8 +104,7 @@ "line": 3, "column": 57, "offset": 113 - }, - "indent": [] + } } }, { @@ -126,8 +120,7 @@ "line": 3, "column": 58, "offset": 114 - }, - "indent": [] + } } } ], @@ -141,8 +134,7 @@ "line": 3, "column": 58, "offset": 114 - }, - "indent": [] + } } }, { @@ -163,8 +155,7 @@ "line": 5, "column": 56, "offset": 171 - }, - "indent": [] + } } }, { @@ -180,8 +171,7 @@ "line": 5, "column": 57, "offset": 172 - }, - "indent": [] + } } } ], @@ -195,8 +185,7 @@ "line": 5, "column": 57, "offset": 172 - }, - "indent": [] + } } }, { @@ -217,8 +206,7 @@ "line": 7, "column": 58, "offset": 231 - }, - "indent": [] + } } }, { @@ -234,8 +222,7 @@ "line": 7, "column": 59, "offset": 232 - }, - "indent": [] + } } } ], @@ -249,8 +236,7 @@ "line": 7, "column": 59, "offset": 232 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/links-title-double-quotes-entity-delimiters.nogfm.json b/test/fixtures/tree/links-title-double-quotes-entity-delimiters.nogfm.json deleted file mode 100644 index ded53f44a..000000000 --- a/test/fixtures/tree/links-title-double-quotes-entity-delimiters.nogfm.json +++ /dev/null @@ -1,269 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "Hello \"World\" Hello!", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 55, - "offset": 54 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 55, - "offset": 54 - }, - "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": "link", - "title": "Hello \"World\" Hello!", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 58 - }, - "end": { - "line": 3, - "column": 7, - "offset": 63 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 57 - }, - "end": { - "line": 3, - "column": 57, - "offset": 113 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 57, - "offset": 113 - }, - "end": { - "line": 3, - "column": 58, - "offset": 114 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 57 - }, - "end": { - "line": 3, - "column": 58, - "offset": 114 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "Hello \"World\" Hello!", - "url": "./world.html", - "alt": "Hello", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 116 - }, - "end": { - "line": 5, - "column": 56, - "offset": 171 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 56, - "offset": 171 - }, - "end": { - "line": 5, - "column": 57, - "offset": 172 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 116 - }, - "end": { - "line": 5, - "column": 57, - "offset": 172 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "Hello \"World\" Hello!", - "url": "./world.html", - "alt": "Hello", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 174 - }, - "end": { - "line": 7, - "column": 58, - "offset": 231 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 58, - "offset": 231 - }, - "end": { - "line": 7, - "column": 59, - "offset": 232 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 174 - }, - "end": { - "line": 7, - "column": 59, - "offset": 232 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 233 - } - } -} diff --git a/test/fixtures/tree/links-title-double-quotes-escaped-delimiters.commonmark.json b/test/fixtures/tree/links-title-double-quotes-escaped-delimiters.commonmark.json deleted file mode 100644 index 256a23f67..000000000 --- a/test/fixtures/tree/links-title-double-quotes-escaped-delimiters.commonmark.json +++ /dev/null @@ -1,269 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "Hello \"World\" Hello!", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 47, - "offset": 46 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 47, - "offset": 46 - }, - "end": { - "line": 1, - "column": 48, - "offset": 47 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 48, - "offset": 47 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "Hello \"World\" Hello!", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 50 - }, - "end": { - "line": 3, - "column": 7, - "offset": 55 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 49 - }, - "end": { - "line": 3, - "column": 49, - "offset": 97 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 49, - "offset": 97 - }, - "end": { - "line": 3, - "column": 50, - "offset": 98 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 49 - }, - "end": { - "line": 3, - "column": 50, - "offset": 98 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "Hello \"World\" Hello!", - "url": "./world.html", - "alt": "Hello", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 100 - }, - "end": { - "line": 5, - "column": 48, - "offset": 147 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 48, - "offset": 147 - }, - "end": { - "line": 5, - "column": 49, - "offset": 148 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 100 - }, - "end": { - "line": 5, - "column": 49, - "offset": 148 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "Hello \"World\" Hello!", - "url": "./world.html", - "alt": "Hello", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 150 - }, - "end": { - "line": 7, - "column": 50, - "offset": 199 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 50, - "offset": 199 - }, - "end": { - "line": 7, - "column": 51, - "offset": 200 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 150 - }, - "end": { - "line": 7, - "column": 51, - "offset": 200 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 201 - } - } -} diff --git a/test/fixtures/tree/links-title-double-quotes-escaped-delimiters.json b/test/fixtures/tree/links-title-double-quotes-escaped-delimiters.json index 6f4dccc41..74b589a98 100644 --- a/test/fixtures/tree/links-title-double-quotes-escaped-delimiters.json +++ b/test/fixtures/tree/links-title-double-quotes-escaped-delimiters.json @@ -6,7 +6,7 @@ "children": [ { "type": "link", - "title": "Hello \\\"World\\\" Hello!", + "title": "Hello \"World\" Hello!", "url": "./world.html", "children": [ { @@ -22,8 +22,7 @@ "line": 1, "column": 7, "offset": 6 - }, - "indent": [] + } } } ], @@ -37,8 +36,7 @@ "line": 1, "column": 47, "offset": 46 - }, - "indent": [] + } } }, { @@ -54,8 +52,7 @@ "line": 1, "column": 48, "offset": 47 - }, - "indent": [] + } } } ], @@ -69,8 +66,7 @@ "line": 1, "column": 48, "offset": 47 - }, - "indent": [] + } } }, { @@ -78,7 +74,7 @@ "children": [ { "type": "link", - "title": "Hello \\\"World\\\" Hello!", + "title": "Hello \"World\" Hello!", "url": "./world.html", "children": [ { @@ -94,8 +90,7 @@ "line": 3, "column": 7, "offset": 55 - }, - "indent": [] + } } } ], @@ -109,8 +104,7 @@ "line": 3, "column": 49, "offset": 97 - }, - "indent": [] + } } }, { @@ -126,8 +120,7 @@ "line": 3, "column": 50, "offset": 98 - }, - "indent": [] + } } } ], @@ -141,8 +134,7 @@ "line": 3, "column": 50, "offset": 98 - }, - "indent": [] + } } }, { @@ -150,7 +142,7 @@ "children": [ { "type": "image", - "title": "Hello \\\"World\\\" Hello!", + "title": "Hello \"World\" Hello!", "url": "./world.html", "alt": "Hello", "position": { @@ -163,8 +155,7 @@ "line": 5, "column": 48, "offset": 147 - }, - "indent": [] + } } }, { @@ -180,8 +171,7 @@ "line": 5, "column": 49, "offset": 148 - }, - "indent": [] + } } } ], @@ -195,8 +185,7 @@ "line": 5, "column": 49, "offset": 148 - }, - "indent": [] + } } }, { @@ -204,7 +193,7 @@ "children": [ { "type": "image", - "title": "Hello \\\"World\\\" Hello!", + "title": "Hello \"World\" Hello!", "url": "./world.html", "alt": "Hello", "position": { @@ -217,8 +206,7 @@ "line": 7, "column": 50, "offset": 199 - }, - "indent": [] + } } }, { @@ -234,8 +222,7 @@ "line": 7, "column": 51, "offset": 200 - }, - "indent": [] + } } } ], @@ -249,8 +236,7 @@ "line": 7, "column": 51, "offset": 200 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/links-title-double-quotes-escaped-delimiters.nogfm.json b/test/fixtures/tree/links-title-double-quotes-escaped-delimiters.nogfm.json deleted file mode 100644 index 6f4dccc41..000000000 --- a/test/fixtures/tree/links-title-double-quotes-escaped-delimiters.nogfm.json +++ /dev/null @@ -1,269 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "Hello \\\"World\\\" Hello!", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 47, - "offset": 46 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 47, - "offset": 46 - }, - "end": { - "line": 1, - "column": 48, - "offset": 47 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 48, - "offset": 47 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "Hello \\\"World\\\" Hello!", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 50 - }, - "end": { - "line": 3, - "column": 7, - "offset": 55 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 49 - }, - "end": { - "line": 3, - "column": 49, - "offset": 97 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 49, - "offset": 97 - }, - "end": { - "line": 3, - "column": 50, - "offset": 98 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 49 - }, - "end": { - "line": 3, - "column": 50, - "offset": 98 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "Hello \\\"World\\\" Hello!", - "url": "./world.html", - "alt": "Hello", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 100 - }, - "end": { - "line": 5, - "column": 48, - "offset": 147 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 48, - "offset": 147 - }, - "end": { - "line": 5, - "column": 49, - "offset": 148 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 100 - }, - "end": { - "line": 5, - "column": 49, - "offset": 148 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "Hello \\\"World\\\" Hello!", - "url": "./world.html", - "alt": "Hello", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 150 - }, - "end": { - "line": 7, - "column": 50, - "offset": 199 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 50, - "offset": 199 - }, - "end": { - "line": 7, - "column": 51, - "offset": 200 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 150 - }, - "end": { - "line": 7, - "column": 51, - "offset": 200 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 201 - } - } -} diff --git a/test/fixtures/tree/links-title-double-quotes-mismatched-delimiters.commonmark.json b/test/fixtures/tree/links-title-double-quotes-mismatched-delimiters.commonmark.json deleted file mode 100644 index 3e9d2ccfd..000000000 --- a/test/fixtures/tree/links-title-double-quotes-mismatched-delimiters.commonmark.json +++ /dev/null @@ -1,273 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "Hello", - "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": "text", - "value": "(./world.html \"Hello \"World Hello!\").", - "position": { - "start": { - "line": 1, - "column": 8, - "offset": 7 - }, - "end": { - "line": 1, - "column": 45, - "offset": 44 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 45, - "offset": 44 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 47 - }, - "end": { - "line": 3, - "column": 7, - "offset": 52 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 46 - }, - "end": { - "line": 3, - "column": 8, - "offset": 53 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(<./world.html> \"Hello \"World Hello!\").", - "position": { - "start": { - "line": 3, - "column": 8, - "offset": 53 - }, - "end": { - "line": 3, - "column": 47, - "offset": 92 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 46 - }, - "end": { - "line": 3, - "column": 47, - "offset": 92 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "imageReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "alt": "Hello", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 94 - }, - "end": { - "line": 5, - "column": 9, - "offset": 102 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(./world.html \"Hello \"World Hello!\").", - "position": { - "start": { - "line": 5, - "column": 9, - "offset": 102 - }, - "end": { - "line": 5, - "column": 46, - "offset": 139 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 94 - }, - "end": { - "line": 5, - "column": 46, - "offset": 139 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "imageReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "alt": "Hello", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 141 - }, - "end": { - "line": 7, - "column": 9, - "offset": 149 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(<./world.html> \"Hello \"World Hello!\").", - "position": { - "start": { - "line": 7, - "column": 9, - "offset": 149 - }, - "end": { - "line": 7, - "column": 48, - "offset": 188 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 141 - }, - "end": { - "line": 7, - "column": 48, - "offset": 188 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 189 - } - } -} diff --git a/test/fixtures/tree/links-title-double-quotes-mismatched-delimiters.json b/test/fixtures/tree/links-title-double-quotes-mismatched-delimiters.json index 95cfb296c..eead084e1 100644 --- a/test/fixtures/tree/links-title-double-quotes-mismatched-delimiters.json +++ b/test/fixtures/tree/links-title-double-quotes-mismatched-delimiters.json @@ -5,57 +5,19 @@ "type": "paragraph", "children": [ { - "type": "link", - "title": "Hello \"World Hello!", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - } - ], + "type": "text", + "value": "[Hello](./world.html \"Hello \"World Hello!\").", "position": { "start": { "line": 1, "column": 1, "offset": 0 }, - "end": { - "line": 1, - "column": 44, - "offset": 43 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 44, - "offset": 43 - }, "end": { "line": 1, "column": 45, "offset": 44 - }, - "indent": [] + } } } ], @@ -69,65 +31,26 @@ "line": 1, "column": 45, "offset": 44 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "link", - "title": "Hello \"World Hello!", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 47 - }, - "end": { - "line": 3, - "column": 7, - "offset": 52 - }, - "indent": [] - } - } - ], + "type": "text", + "value": "[Hello](<./world.html> \"Hello \"World Hello!\").", "position": { "start": { "line": 3, "column": 1, "offset": 46 }, - "end": { - "line": 3, - "column": 46, - "offset": 91 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 46, - "offset": 91 - }, "end": { "line": 3, "column": 47, "offset": 92 - }, - "indent": [] + } } } ], @@ -141,47 +64,26 @@ "line": 3, "column": 47, "offset": 92 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "image", - "title": "Hello \"World Hello!", - "url": "./world.html", - "alt": "Hello", + "type": "text", + "value": "![Hello](./world.html \"Hello \"World Hello!\").", "position": { "start": { "line": 5, "column": 1, "offset": 94 }, - "end": { - "line": 5, - "column": 45, - "offset": 138 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 45, - "offset": 138 - }, "end": { "line": 5, "column": 46, "offset": 139 - }, - "indent": [] + } } } ], @@ -195,47 +97,26 @@ "line": 5, "column": 46, "offset": 139 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "image", - "title": "Hello \"World Hello!", - "url": "./world.html", - "alt": "Hello", + "type": "text", + "value": "![Hello](<./world.html> \"Hello \"World Hello!\").", "position": { "start": { "line": 7, "column": 1, "offset": 141 }, - "end": { - "line": 7, - "column": 47, - "offset": 187 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 47, - "offset": 187 - }, "end": { "line": 7, "column": 48, "offset": 188 - }, - "indent": [] + } } } ], @@ -249,8 +130,7 @@ "line": 7, "column": 48, "offset": 188 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/links-title-double-quotes-mismatched-delimiters.nogfm.json b/test/fixtures/tree/links-title-double-quotes-mismatched-delimiters.nogfm.json deleted file mode 100644 index 95cfb296c..000000000 --- a/test/fixtures/tree/links-title-double-quotes-mismatched-delimiters.nogfm.json +++ /dev/null @@ -1,269 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "Hello \"World Hello!", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 44, - "offset": 43 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 44, - "offset": 43 - }, - "end": { - "line": 1, - "column": 45, - "offset": 44 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 45, - "offset": 44 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "Hello \"World Hello!", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 47 - }, - "end": { - "line": 3, - "column": 7, - "offset": 52 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 46 - }, - "end": { - "line": 3, - "column": 46, - "offset": 91 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 46, - "offset": 91 - }, - "end": { - "line": 3, - "column": 47, - "offset": 92 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 46 - }, - "end": { - "line": 3, - "column": 47, - "offset": 92 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "Hello \"World Hello!", - "url": "./world.html", - "alt": "Hello", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 94 - }, - "end": { - "line": 5, - "column": 45, - "offset": 138 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 45, - "offset": 138 - }, - "end": { - "line": 5, - "column": 46, - "offset": 139 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 94 - }, - "end": { - "line": 5, - "column": 46, - "offset": 139 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "Hello \"World Hello!", - "url": "./world.html", - "alt": "Hello", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 141 - }, - "end": { - "line": 7, - "column": 47, - "offset": 187 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 47, - "offset": 187 - }, - "end": { - "line": 7, - "column": 48, - "offset": 188 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 141 - }, - "end": { - "line": 7, - "column": 48, - "offset": 188 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 189 - } - } -} diff --git a/test/fixtures/tree/links-title-double-quotes.commonmark.json b/test/fixtures/tree/links-title-double-quotes.commonmark.json deleted file mode 100644 index 399b1522e..000000000 --- a/test/fixtures/tree/links-title-double-quotes.commonmark.json +++ /dev/null @@ -1,269 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "Hello World!", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 37, - "offset": 36 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 37, - "offset": 36 - }, - "end": { - "line": 1, - "column": 38, - "offset": 37 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 38, - "offset": 37 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "Hello World!", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 40 - }, - "end": { - "line": 3, - "column": 7, - "offset": 45 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 39 - }, - "end": { - "line": 3, - "column": 39, - "offset": 77 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 39, - "offset": 77 - }, - "end": { - "line": 3, - "column": 40, - "offset": 78 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 39 - }, - "end": { - "line": 3, - "column": 40, - "offset": 78 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "Hello World!", - "url": "./world.html", - "alt": "Hello", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 80 - }, - "end": { - "line": 5, - "column": 38, - "offset": 117 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 38, - "offset": 117 - }, - "end": { - "line": 5, - "column": 39, - "offset": 118 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 80 - }, - "end": { - "line": 5, - "column": 39, - "offset": 118 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "Hello World!", - "url": "./world.html", - "alt": "Hello", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 120 - }, - "end": { - "line": 7, - "column": 40, - "offset": 159 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 40, - "offset": 159 - }, - "end": { - "line": 7, - "column": 41, - "offset": 160 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 120 - }, - "end": { - "line": 7, - "column": 41, - "offset": 160 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 161 - } - } -} diff --git a/test/fixtures/tree/links-title-double-quotes.json b/test/fixtures/tree/links-title-double-quotes.json index 399b1522e..a4e96f50b 100644 --- a/test/fixtures/tree/links-title-double-quotes.json +++ b/test/fixtures/tree/links-title-double-quotes.json @@ -22,8 +22,7 @@ "line": 1, "column": 7, "offset": 6 - }, - "indent": [] + } } } ], @@ -37,8 +36,7 @@ "line": 1, "column": 37, "offset": 36 - }, - "indent": [] + } } }, { @@ -54,8 +52,7 @@ "line": 1, "column": 38, "offset": 37 - }, - "indent": [] + } } } ], @@ -69,8 +66,7 @@ "line": 1, "column": 38, "offset": 37 - }, - "indent": [] + } } }, { @@ -94,8 +90,7 @@ "line": 3, "column": 7, "offset": 45 - }, - "indent": [] + } } } ], @@ -109,8 +104,7 @@ "line": 3, "column": 39, "offset": 77 - }, - "indent": [] + } } }, { @@ -126,8 +120,7 @@ "line": 3, "column": 40, "offset": 78 - }, - "indent": [] + } } } ], @@ -141,8 +134,7 @@ "line": 3, "column": 40, "offset": 78 - }, - "indent": [] + } } }, { @@ -163,8 +155,7 @@ "line": 5, "column": 38, "offset": 117 - }, - "indent": [] + } } }, { @@ -180,8 +171,7 @@ "line": 5, "column": 39, "offset": 118 - }, - "indent": [] + } } } ], @@ -195,8 +185,7 @@ "line": 5, "column": 39, "offset": 118 - }, - "indent": [] + } } }, { @@ -217,8 +206,7 @@ "line": 7, "column": 40, "offset": 159 - }, - "indent": [] + } } }, { @@ -234,8 +222,7 @@ "line": 7, "column": 41, "offset": 160 - }, - "indent": [] + } } } ], @@ -249,8 +236,7 @@ "line": 7, "column": 41, "offset": 160 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/links-title-double-quotes.nogfm.json b/test/fixtures/tree/links-title-double-quotes.nogfm.json deleted file mode 100644 index 399b1522e..000000000 --- a/test/fixtures/tree/links-title-double-quotes.nogfm.json +++ /dev/null @@ -1,269 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "Hello World!", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 37, - "offset": 36 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 37, - "offset": 36 - }, - "end": { - "line": 1, - "column": 38, - "offset": 37 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 38, - "offset": 37 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "Hello World!", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 40 - }, - "end": { - "line": 3, - "column": 7, - "offset": 45 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 39 - }, - "end": { - "line": 3, - "column": 39, - "offset": 77 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 39, - "offset": 77 - }, - "end": { - "line": 3, - "column": 40, - "offset": 78 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 39 - }, - "end": { - "line": 3, - "column": 40, - "offset": 78 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "Hello World!", - "url": "./world.html", - "alt": "Hello", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 80 - }, - "end": { - "line": 5, - "column": 38, - "offset": 117 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 38, - "offset": 117 - }, - "end": { - "line": 5, - "column": 39, - "offset": 118 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 80 - }, - "end": { - "line": 5, - "column": 39, - "offset": 118 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "Hello World!", - "url": "./world.html", - "alt": "Hello", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 120 - }, - "end": { - "line": 7, - "column": 40, - "offset": 159 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 40, - "offset": 159 - }, - "end": { - "line": 7, - "column": 41, - "offset": 160 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 120 - }, - "end": { - "line": 7, - "column": 41, - "offset": 160 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 161 - } - } -} diff --git a/test/fixtures/tree/links-title-empty-double-quotes.commonmark.json b/test/fixtures/tree/links-title-empty-double-quotes.commonmark.json deleted file mode 100644 index 00c9d3c06..000000000 --- a/test/fixtures/tree/links-title-empty-double-quotes.commonmark.json +++ /dev/null @@ -1,269 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 25, - "offset": 24 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 25, - "offset": 24 - }, - "end": { - "line": 1, - "column": 26, - "offset": 25 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 26, - "offset": 25 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 28 - }, - "end": { - "line": 3, - "column": 7, - "offset": 33 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 27 - }, - "end": { - "line": 3, - "column": 27, - "offset": 53 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 27, - "offset": 53 - }, - "end": { - "line": 3, - "column": 28, - "offset": 54 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 27 - }, - "end": { - "line": 3, - "column": 28, - "offset": 54 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./world.html", - "alt": "Hello", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 56 - }, - "end": { - "line": 5, - "column": 26, - "offset": 81 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 26, - "offset": 81 - }, - "end": { - "line": 5, - "column": 27, - "offset": 82 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 56 - }, - "end": { - "line": 5, - "column": 27, - "offset": 82 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./world.html", - "alt": "Hello", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 84 - }, - "end": { - "line": 7, - "column": 28, - "offset": 111 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 28, - "offset": 111 - }, - "end": { - "line": 7, - "column": 29, - "offset": 112 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 84 - }, - "end": { - "line": 7, - "column": 29, - "offset": 112 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 113 - } - } -} diff --git a/test/fixtures/tree/links-title-empty-double-quotes.json b/test/fixtures/tree/links-title-empty-double-quotes.json index 00c9d3c06..57fa45f60 100644 --- a/test/fixtures/tree/links-title-empty-double-quotes.json +++ b/test/fixtures/tree/links-title-empty-double-quotes.json @@ -22,8 +22,7 @@ "line": 1, "column": 7, "offset": 6 - }, - "indent": [] + } } } ], @@ -37,8 +36,7 @@ "line": 1, "column": 25, "offset": 24 - }, - "indent": [] + } } }, { @@ -54,8 +52,7 @@ "line": 1, "column": 26, "offset": 25 - }, - "indent": [] + } } } ], @@ -69,8 +66,7 @@ "line": 1, "column": 26, "offset": 25 - }, - "indent": [] + } } }, { @@ -94,8 +90,7 @@ "line": 3, "column": 7, "offset": 33 - }, - "indent": [] + } } } ], @@ -109,8 +104,7 @@ "line": 3, "column": 27, "offset": 53 - }, - "indent": [] + } } }, { @@ -126,8 +120,7 @@ "line": 3, "column": 28, "offset": 54 - }, - "indent": [] + } } } ], @@ -141,8 +134,7 @@ "line": 3, "column": 28, "offset": 54 - }, - "indent": [] + } } }, { @@ -163,8 +155,7 @@ "line": 5, "column": 26, "offset": 81 - }, - "indent": [] + } } }, { @@ -180,8 +171,7 @@ "line": 5, "column": 27, "offset": 82 - }, - "indent": [] + } } } ], @@ -195,8 +185,7 @@ "line": 5, "column": 27, "offset": 82 - }, - "indent": [] + } } }, { @@ -217,8 +206,7 @@ "line": 7, "column": 28, "offset": 111 - }, - "indent": [] + } } }, { @@ -234,8 +222,7 @@ "line": 7, "column": 29, "offset": 112 - }, - "indent": [] + } } } ], @@ -249,8 +236,7 @@ "line": 7, "column": 29, "offset": 112 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/links-title-empty-double-quotes.nogfm.json b/test/fixtures/tree/links-title-empty-double-quotes.nogfm.json deleted file mode 100644 index 00c9d3c06..000000000 --- a/test/fixtures/tree/links-title-empty-double-quotes.nogfm.json +++ /dev/null @@ -1,269 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 25, - "offset": 24 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 25, - "offset": 24 - }, - "end": { - "line": 1, - "column": 26, - "offset": 25 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 26, - "offset": 25 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 28 - }, - "end": { - "line": 3, - "column": 7, - "offset": 33 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 27 - }, - "end": { - "line": 3, - "column": 27, - "offset": 53 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 27, - "offset": 53 - }, - "end": { - "line": 3, - "column": 28, - "offset": 54 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 27 - }, - "end": { - "line": 3, - "column": 28, - "offset": 54 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./world.html", - "alt": "Hello", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 56 - }, - "end": { - "line": 5, - "column": 26, - "offset": 81 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 26, - "offset": 81 - }, - "end": { - "line": 5, - "column": 27, - "offset": 82 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 56 - }, - "end": { - "line": 5, - "column": 27, - "offset": 82 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./world.html", - "alt": "Hello", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 84 - }, - "end": { - "line": 7, - "column": 28, - "offset": 111 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 28, - "offset": 111 - }, - "end": { - "line": 7, - "column": 29, - "offset": 112 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 84 - }, - "end": { - "line": 7, - "column": 29, - "offset": 112 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 113 - } - } -} diff --git a/test/fixtures/tree/links-title-empty-parentheses.commonmark.json b/test/fixtures/tree/links-title-empty-parentheses.commonmark.json deleted file mode 100644 index 00c9d3c06..000000000 --- a/test/fixtures/tree/links-title-empty-parentheses.commonmark.json +++ /dev/null @@ -1,269 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 25, - "offset": 24 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 25, - "offset": 24 - }, - "end": { - "line": 1, - "column": 26, - "offset": 25 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 26, - "offset": 25 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 28 - }, - "end": { - "line": 3, - "column": 7, - "offset": 33 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 27 - }, - "end": { - "line": 3, - "column": 27, - "offset": 53 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 27, - "offset": 53 - }, - "end": { - "line": 3, - "column": 28, - "offset": 54 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 27 - }, - "end": { - "line": 3, - "column": 28, - "offset": 54 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./world.html", - "alt": "Hello", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 56 - }, - "end": { - "line": 5, - "column": 26, - "offset": 81 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 26, - "offset": 81 - }, - "end": { - "line": 5, - "column": 27, - "offset": 82 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 56 - }, - "end": { - "line": 5, - "column": 27, - "offset": 82 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./world.html", - "alt": "Hello", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 84 - }, - "end": { - "line": 7, - "column": 28, - "offset": 111 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 28, - "offset": 111 - }, - "end": { - "line": 7, - "column": 29, - "offset": 112 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 84 - }, - "end": { - "line": 7, - "column": 29, - "offset": 112 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 113 - } - } -} diff --git a/test/fixtures/tree/links-title-empty-parentheses.json b/test/fixtures/tree/links-title-empty-parentheses.json index 812777cd2..57fa45f60 100644 --- a/test/fixtures/tree/links-title-empty-parentheses.json +++ b/test/fixtures/tree/links-title-empty-parentheses.json @@ -5,10 +5,9 @@ "type": "paragraph", "children": [ { - "type": "linkReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", + "type": "link", + "title": null, + "url": "./world.html", "children": [ { "type": "text", @@ -23,8 +22,7 @@ "line": 1, "column": 7, "offset": 6 - }, - "indent": [] + } } } ], @@ -36,27 +34,25 @@ }, "end": { "line": 1, - "column": 8, - "offset": 7 - }, - "indent": [] + "column": 25, + "offset": 24 + } } }, { "type": "text", - "value": "(./world.html ()).", + "value": ".", "position": { "start": { "line": 1, - "column": 8, - "offset": 7 + "column": 25, + "offset": 24 }, "end": { "line": 1, "column": 26, "offset": 25 - }, - "indent": [] + } } } ], @@ -70,18 +66,16 @@ "line": 1, "column": 26, "offset": 25 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "linkReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", + "type": "link", + "title": null, + "url": "./world.html", "children": [ { "type": "text", @@ -96,8 +90,7 @@ "line": 3, "column": 7, "offset": 33 - }, - "indent": [] + } } } ], @@ -109,27 +102,25 @@ }, "end": { "line": 3, - "column": 8, - "offset": 34 - }, - "indent": [] + "column": 27, + "offset": 53 + } } }, { "type": "text", - "value": "(<./world.html> ()).", + "value": ".", "position": { "start": { "line": 3, - "column": 8, - "offset": 34 + "column": 27, + "offset": 53 }, "end": { "line": 3, "column": 28, "offset": 54 - }, - "indent": [] + } } } ], @@ -143,18 +134,16 @@ "line": 3, "column": 28, "offset": 54 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "imageReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", + "type": "image", + "title": null, + "url": "./world.html", "alt": "Hello", "position": { "start": { @@ -164,27 +153,25 @@ }, "end": { "line": 5, - "column": 9, - "offset": 64 - }, - "indent": [] + "column": 26, + "offset": 81 + } } }, { "type": "text", - "value": "(./world.html ()).", + "value": ".", "position": { "start": { "line": 5, - "column": 9, - "offset": 64 + "column": 26, + "offset": 81 }, "end": { "line": 5, "column": 27, "offset": 82 - }, - "indent": [] + } } } ], @@ -198,18 +185,16 @@ "line": 5, "column": 27, "offset": 82 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "imageReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", + "type": "image", + "title": null, + "url": "./world.html", "alt": "Hello", "position": { "start": { @@ -219,27 +204,25 @@ }, "end": { "line": 7, - "column": 9, - "offset": 92 - }, - "indent": [] + "column": 28, + "offset": 111 + } } }, { "type": "text", - "value": "(<./world.html> ()).", + "value": ".", "position": { "start": { "line": 7, - "column": 9, - "offset": 92 + "column": 28, + "offset": 111 }, "end": { "line": 7, "column": 29, "offset": 112 - }, - "indent": [] + } } } ], @@ -253,8 +236,7 @@ "line": 7, "column": 29, "offset": 112 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/links-title-empty-parentheses.nogfm.json b/test/fixtures/tree/links-title-empty-parentheses.nogfm.json deleted file mode 100644 index 812777cd2..000000000 --- a/test/fixtures/tree/links-title-empty-parentheses.nogfm.json +++ /dev/null @@ -1,273 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "Hello", - "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": "text", - "value": "(./world.html ()).", - "position": { - "start": { - "line": 1, - "column": 8, - "offset": 7 - }, - "end": { - "line": 1, - "column": 26, - "offset": 25 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 26, - "offset": 25 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 28 - }, - "end": { - "line": 3, - "column": 7, - "offset": 33 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 27 - }, - "end": { - "line": 3, - "column": 8, - "offset": 34 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(<./world.html> ()).", - "position": { - "start": { - "line": 3, - "column": 8, - "offset": 34 - }, - "end": { - "line": 3, - "column": 28, - "offset": 54 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 27 - }, - "end": { - "line": 3, - "column": 28, - "offset": 54 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "imageReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "alt": "Hello", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 56 - }, - "end": { - "line": 5, - "column": 9, - "offset": 64 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(./world.html ()).", - "position": { - "start": { - "line": 5, - "column": 9, - "offset": 64 - }, - "end": { - "line": 5, - "column": 27, - "offset": 82 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 56 - }, - "end": { - "line": 5, - "column": 27, - "offset": 82 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "imageReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "alt": "Hello", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 84 - }, - "end": { - "line": 7, - "column": 9, - "offset": 92 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(<./world.html> ()).", - "position": { - "start": { - "line": 7, - "column": 9, - "offset": 92 - }, - "end": { - "line": 7, - "column": 29, - "offset": 112 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 84 - }, - "end": { - "line": 7, - "column": 29, - "offset": 112 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 113 - } - } -} diff --git a/test/fixtures/tree/links-title-empty-single-quotes.commonmark.json b/test/fixtures/tree/links-title-empty-single-quotes.commonmark.json deleted file mode 100644 index 00c9d3c06..000000000 --- a/test/fixtures/tree/links-title-empty-single-quotes.commonmark.json +++ /dev/null @@ -1,269 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 25, - "offset": 24 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 25, - "offset": 24 - }, - "end": { - "line": 1, - "column": 26, - "offset": 25 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 26, - "offset": 25 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 28 - }, - "end": { - "line": 3, - "column": 7, - "offset": 33 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 27 - }, - "end": { - "line": 3, - "column": 27, - "offset": 53 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 27, - "offset": 53 - }, - "end": { - "line": 3, - "column": 28, - "offset": 54 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 27 - }, - "end": { - "line": 3, - "column": 28, - "offset": 54 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./world.html", - "alt": "Hello", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 56 - }, - "end": { - "line": 5, - "column": 26, - "offset": 81 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 26, - "offset": 81 - }, - "end": { - "line": 5, - "column": 27, - "offset": 82 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 56 - }, - "end": { - "line": 5, - "column": 27, - "offset": 82 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./world.html", - "alt": "Hello", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 84 - }, - "end": { - "line": 7, - "column": 28, - "offset": 111 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 28, - "offset": 111 - }, - "end": { - "line": 7, - "column": 29, - "offset": 112 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 84 - }, - "end": { - "line": 7, - "column": 29, - "offset": 112 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 113 - } - } -} diff --git a/test/fixtures/tree/links-title-empty-single-quotes.json b/test/fixtures/tree/links-title-empty-single-quotes.json index 00c9d3c06..57fa45f60 100644 --- a/test/fixtures/tree/links-title-empty-single-quotes.json +++ b/test/fixtures/tree/links-title-empty-single-quotes.json @@ -22,8 +22,7 @@ "line": 1, "column": 7, "offset": 6 - }, - "indent": [] + } } } ], @@ -37,8 +36,7 @@ "line": 1, "column": 25, "offset": 24 - }, - "indent": [] + } } }, { @@ -54,8 +52,7 @@ "line": 1, "column": 26, "offset": 25 - }, - "indent": [] + } } } ], @@ -69,8 +66,7 @@ "line": 1, "column": 26, "offset": 25 - }, - "indent": [] + } } }, { @@ -94,8 +90,7 @@ "line": 3, "column": 7, "offset": 33 - }, - "indent": [] + } } } ], @@ -109,8 +104,7 @@ "line": 3, "column": 27, "offset": 53 - }, - "indent": [] + } } }, { @@ -126,8 +120,7 @@ "line": 3, "column": 28, "offset": 54 - }, - "indent": [] + } } } ], @@ -141,8 +134,7 @@ "line": 3, "column": 28, "offset": 54 - }, - "indent": [] + } } }, { @@ -163,8 +155,7 @@ "line": 5, "column": 26, "offset": 81 - }, - "indent": [] + } } }, { @@ -180,8 +171,7 @@ "line": 5, "column": 27, "offset": 82 - }, - "indent": [] + } } } ], @@ -195,8 +185,7 @@ "line": 5, "column": 27, "offset": 82 - }, - "indent": [] + } } }, { @@ -217,8 +206,7 @@ "line": 7, "column": 28, "offset": 111 - }, - "indent": [] + } } }, { @@ -234,8 +222,7 @@ "line": 7, "column": 29, "offset": 112 - }, - "indent": [] + } } } ], @@ -249,8 +236,7 @@ "line": 7, "column": 29, "offset": 112 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/links-title-empty-single-quotes.nogfm.json b/test/fixtures/tree/links-title-empty-single-quotes.nogfm.json deleted file mode 100644 index 00c9d3c06..000000000 --- a/test/fixtures/tree/links-title-empty-single-quotes.nogfm.json +++ /dev/null @@ -1,269 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 25, - "offset": 24 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 25, - "offset": 24 - }, - "end": { - "line": 1, - "column": 26, - "offset": 25 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 26, - "offset": 25 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 28 - }, - "end": { - "line": 3, - "column": 7, - "offset": 33 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 27 - }, - "end": { - "line": 3, - "column": 27, - "offset": 53 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 27, - "offset": 53 - }, - "end": { - "line": 3, - "column": 28, - "offset": 54 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 27 - }, - "end": { - "line": 3, - "column": 28, - "offset": 54 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./world.html", - "alt": "Hello", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 56 - }, - "end": { - "line": 5, - "column": 26, - "offset": 81 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 26, - "offset": 81 - }, - "end": { - "line": 5, - "column": 27, - "offset": 82 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 56 - }, - "end": { - "line": 5, - "column": 27, - "offset": 82 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./world.html", - "alt": "Hello", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 84 - }, - "end": { - "line": 7, - "column": 28, - "offset": 111 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 28, - "offset": 111 - }, - "end": { - "line": 7, - "column": 29, - "offset": 112 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 84 - }, - "end": { - "line": 7, - "column": 29, - "offset": 112 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 113 - } - } -} diff --git a/test/fixtures/tree/links-title-parentheses.commonmark.json b/test/fixtures/tree/links-title-parentheses.commonmark.json deleted file mode 100644 index 399b1522e..000000000 --- a/test/fixtures/tree/links-title-parentheses.commonmark.json +++ /dev/null @@ -1,269 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "Hello World!", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 37, - "offset": 36 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 37, - "offset": 36 - }, - "end": { - "line": 1, - "column": 38, - "offset": 37 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 38, - "offset": 37 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "Hello World!", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 40 - }, - "end": { - "line": 3, - "column": 7, - "offset": 45 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 39 - }, - "end": { - "line": 3, - "column": 39, - "offset": 77 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 39, - "offset": 77 - }, - "end": { - "line": 3, - "column": 40, - "offset": 78 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 39 - }, - "end": { - "line": 3, - "column": 40, - "offset": 78 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "Hello World!", - "url": "./world.html", - "alt": "Hello", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 80 - }, - "end": { - "line": 5, - "column": 38, - "offset": 117 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 38, - "offset": 117 - }, - "end": { - "line": 5, - "column": 39, - "offset": 118 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 80 - }, - "end": { - "line": 5, - "column": 39, - "offset": 118 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "Hello World!", - "url": "./world.html", - "alt": "Hello", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 120 - }, - "end": { - "line": 7, - "column": 40, - "offset": 159 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 40, - "offset": 159 - }, - "end": { - "line": 7, - "column": 41, - "offset": 160 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 120 - }, - "end": { - "line": 7, - "column": 41, - "offset": 160 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 161 - } - } -} diff --git a/test/fixtures/tree/links-title-parentheses.commonmark.pedantic.json b/test/fixtures/tree/links-title-parentheses.commonmark.pedantic.json deleted file mode 100644 index 399b1522e..000000000 --- a/test/fixtures/tree/links-title-parentheses.commonmark.pedantic.json +++ /dev/null @@ -1,269 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "Hello World!", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 37, - "offset": 36 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 37, - "offset": 36 - }, - "end": { - "line": 1, - "column": 38, - "offset": 37 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 38, - "offset": 37 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "Hello World!", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 40 - }, - "end": { - "line": 3, - "column": 7, - "offset": 45 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 39 - }, - "end": { - "line": 3, - "column": 39, - "offset": 77 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 39, - "offset": 77 - }, - "end": { - "line": 3, - "column": 40, - "offset": 78 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 39 - }, - "end": { - "line": 3, - "column": 40, - "offset": 78 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "Hello World!", - "url": "./world.html", - "alt": "Hello", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 80 - }, - "end": { - "line": 5, - "column": 38, - "offset": 117 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 38, - "offset": 117 - }, - "end": { - "line": 5, - "column": 39, - "offset": 118 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 80 - }, - "end": { - "line": 5, - "column": 39, - "offset": 118 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "Hello World!", - "url": "./world.html", - "alt": "Hello", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 120 - }, - "end": { - "line": 7, - "column": 40, - "offset": 159 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 40, - "offset": 159 - }, - "end": { - "line": 7, - "column": 41, - "offset": 160 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 120 - }, - "end": { - "line": 7, - "column": 41, - "offset": 160 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 161 - } - } -} diff --git a/test/fixtures/tree/links-title-parentheses.json b/test/fixtures/tree/links-title-parentheses.json index c25fe3b28..a4e96f50b 100644 --- a/test/fixtures/tree/links-title-parentheses.json +++ b/test/fixtures/tree/links-title-parentheses.json @@ -5,10 +5,9 @@ "type": "paragraph", "children": [ { - "type": "linkReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", + "type": "link", + "title": "Hello World!", + "url": "./world.html", "children": [ { "type": "text", @@ -23,8 +22,7 @@ "line": 1, "column": 7, "offset": 6 - }, - "indent": [] + } } } ], @@ -36,27 +34,25 @@ }, "end": { "line": 1, - "column": 8, - "offset": 7 - }, - "indent": [] + "column": 37, + "offset": 36 + } } }, { "type": "text", - "value": "(./world.html (Hello World!)).", + "value": ".", "position": { "start": { "line": 1, - "column": 8, - "offset": 7 + "column": 37, + "offset": 36 }, "end": { "line": 1, "column": 38, "offset": 37 - }, - "indent": [] + } } } ], @@ -70,18 +66,16 @@ "line": 1, "column": 38, "offset": 37 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "linkReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", + "type": "link", + "title": "Hello World!", + "url": "./world.html", "children": [ { "type": "text", @@ -96,8 +90,7 @@ "line": 3, "column": 7, "offset": 45 - }, - "indent": [] + } } } ], @@ -109,27 +102,25 @@ }, "end": { "line": 3, - "column": 8, - "offset": 46 - }, - "indent": [] + "column": 39, + "offset": 77 + } } }, { "type": "text", - "value": "(<./world.html> (Hello World!)).", + "value": ".", "position": { "start": { "line": 3, - "column": 8, - "offset": 46 + "column": 39, + "offset": 77 }, "end": { "line": 3, "column": 40, "offset": 78 - }, - "indent": [] + } } } ], @@ -143,18 +134,16 @@ "line": 3, "column": 40, "offset": 78 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "imageReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", + "type": "image", + "title": "Hello World!", + "url": "./world.html", "alt": "Hello", "position": { "start": { @@ -164,27 +153,25 @@ }, "end": { "line": 5, - "column": 9, - "offset": 88 - }, - "indent": [] + "column": 38, + "offset": 117 + } } }, { "type": "text", - "value": "(./world.html (Hello World!)).", + "value": ".", "position": { "start": { "line": 5, - "column": 9, - "offset": 88 + "column": 38, + "offset": 117 }, "end": { "line": 5, "column": 39, "offset": 118 - }, - "indent": [] + } } } ], @@ -198,18 +185,16 @@ "line": 5, "column": 39, "offset": 118 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "imageReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", + "type": "image", + "title": "Hello World!", + "url": "./world.html", "alt": "Hello", "position": { "start": { @@ -219,27 +204,25 @@ }, "end": { "line": 7, - "column": 9, - "offset": 128 - }, - "indent": [] + "column": 40, + "offset": 159 + } } }, { "type": "text", - "value": "(<./world.html> (Hello World!)).", + "value": ".", "position": { "start": { "line": 7, - "column": 9, - "offset": 128 + "column": 40, + "offset": 159 }, "end": { "line": 7, "column": 41, "offset": 160 - }, - "indent": [] + } } } ], @@ -253,8 +236,7 @@ "line": 7, "column": 41, "offset": 160 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/links-title-parentheses.nogfm.json b/test/fixtures/tree/links-title-parentheses.nogfm.json deleted file mode 100644 index c25fe3b28..000000000 --- a/test/fixtures/tree/links-title-parentheses.nogfm.json +++ /dev/null @@ -1,273 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "Hello", - "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": "text", - "value": "(./world.html (Hello World!)).", - "position": { - "start": { - "line": 1, - "column": 8, - "offset": 7 - }, - "end": { - "line": 1, - "column": 38, - "offset": 37 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 38, - "offset": 37 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 40 - }, - "end": { - "line": 3, - "column": 7, - "offset": 45 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 39 - }, - "end": { - "line": 3, - "column": 8, - "offset": 46 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(<./world.html> (Hello World!)).", - "position": { - "start": { - "line": 3, - "column": 8, - "offset": 46 - }, - "end": { - "line": 3, - "column": 40, - "offset": 78 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 39 - }, - "end": { - "line": 3, - "column": 40, - "offset": 78 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "imageReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "alt": "Hello", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 80 - }, - "end": { - "line": 5, - "column": 9, - "offset": 88 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(./world.html (Hello World!)).", - "position": { - "start": { - "line": 5, - "column": 9, - "offset": 88 - }, - "end": { - "line": 5, - "column": 39, - "offset": 118 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 80 - }, - "end": { - "line": 5, - "column": 39, - "offset": 118 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "imageReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "alt": "Hello", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 120 - }, - "end": { - "line": 7, - "column": 9, - "offset": 128 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(<./world.html> (Hello World!)).", - "position": { - "start": { - "line": 7, - "column": 9, - "offset": 128 - }, - "end": { - "line": 7, - "column": 41, - "offset": 160 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 120 - }, - "end": { - "line": 7, - "column": 41, - "offset": 160 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 161 - } - } -} diff --git a/test/fixtures/tree/links-title-single-quotes-delimiters.commonmark.json b/test/fixtures/tree/links-title-single-quotes-delimiters.commonmark.json deleted file mode 100644 index a1efa11aa..000000000 --- a/test/fixtures/tree/links-title-single-quotes-delimiters.commonmark.json +++ /dev/null @@ -1,273 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "Hello", - "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": "text", - "value": "(./world.html 'Hello 'World' Hello!').", - "position": { - "start": { - "line": 1, - "column": 8, - "offset": 7 - }, - "end": { - "line": 1, - "column": 46, - "offset": 45 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 46, - "offset": 45 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 48 - }, - "end": { - "line": 3, - "column": 7, - "offset": 53 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 47 - }, - "end": { - "line": 3, - "column": 8, - "offset": 54 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(<./world.html> 'Hello 'World' Hello!').", - "position": { - "start": { - "line": 3, - "column": 8, - "offset": 54 - }, - "end": { - "line": 3, - "column": 48, - "offset": 94 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 47 - }, - "end": { - "line": 3, - "column": 48, - "offset": 94 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "imageReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "alt": "Hello", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 96 - }, - "end": { - "line": 5, - "column": 9, - "offset": 104 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(./world.html 'Hello 'World' Hello!').", - "position": { - "start": { - "line": 5, - "column": 9, - "offset": 104 - }, - "end": { - "line": 5, - "column": 47, - "offset": 142 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 96 - }, - "end": { - "line": 5, - "column": 47, - "offset": 142 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "imageReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "alt": "Hello", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 144 - }, - "end": { - "line": 7, - "column": 9, - "offset": 152 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(<./world.html> 'Hello 'World' Hello!').", - "position": { - "start": { - "line": 7, - "column": 9, - "offset": 152 - }, - "end": { - "line": 7, - "column": 49, - "offset": 192 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 144 - }, - "end": { - "line": 7, - "column": 49, - "offset": 192 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 193 - } - } -} diff --git a/test/fixtures/tree/links-title-single-quotes-delimiters.json b/test/fixtures/tree/links-title-single-quotes-delimiters.json index 03d6b3aef..cf1eb6781 100644 --- a/test/fixtures/tree/links-title-single-quotes-delimiters.json +++ b/test/fixtures/tree/links-title-single-quotes-delimiters.json @@ -5,57 +5,19 @@ "type": "paragraph", "children": [ { - "type": "link", - "title": "Hello 'World' Hello!", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - } - ], + "type": "text", + "value": "[Hello](./world.html 'Hello 'World' Hello!').", "position": { "start": { "line": 1, "column": 1, "offset": 0 }, - "end": { - "line": 1, - "column": 45, - "offset": 44 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 45, - "offset": 44 - }, "end": { "line": 1, "column": 46, "offset": 45 - }, - "indent": [] + } } } ], @@ -69,65 +31,26 @@ "line": 1, "column": 46, "offset": 45 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "link", - "title": "Hello 'World' Hello!", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 48 - }, - "end": { - "line": 3, - "column": 7, - "offset": 53 - }, - "indent": [] - } - } - ], + "type": "text", + "value": "[Hello](<./world.html> 'Hello 'World' Hello!').", "position": { "start": { "line": 3, "column": 1, "offset": 47 }, - "end": { - "line": 3, - "column": 47, - "offset": 93 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 47, - "offset": 93 - }, "end": { "line": 3, "column": 48, "offset": 94 - }, - "indent": [] + } } } ], @@ -141,47 +64,26 @@ "line": 3, "column": 48, "offset": 94 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "image", - "title": "Hello 'World' Hello!", - "url": "./world.html", - "alt": "Hello", + "type": "text", + "value": "![Hello](./world.html 'Hello 'World' Hello!').", "position": { "start": { "line": 5, "column": 1, "offset": 96 }, - "end": { - "line": 5, - "column": 46, - "offset": 141 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 46, - "offset": 141 - }, "end": { "line": 5, "column": 47, "offset": 142 - }, - "indent": [] + } } } ], @@ -195,47 +97,26 @@ "line": 5, "column": 47, "offset": 142 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "image", - "title": "Hello 'World' Hello!", - "url": "./world.html", - "alt": "Hello", + "type": "text", + "value": "![Hello](<./world.html> 'Hello 'World' Hello!').", "position": { "start": { "line": 7, "column": 1, "offset": 144 }, - "end": { - "line": 7, - "column": 48, - "offset": 191 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 48, - "offset": 191 - }, "end": { "line": 7, "column": 49, "offset": 192 - }, - "indent": [] + } } } ], @@ -249,8 +130,7 @@ "line": 7, "column": 49, "offset": 192 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/links-title-single-quotes-delimiters.nogfm.json b/test/fixtures/tree/links-title-single-quotes-delimiters.nogfm.json deleted file mode 100644 index 03d6b3aef..000000000 --- a/test/fixtures/tree/links-title-single-quotes-delimiters.nogfm.json +++ /dev/null @@ -1,269 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "Hello 'World' Hello!", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 45, - "offset": 44 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 45, - "offset": 44 - }, - "end": { - "line": 1, - "column": 46, - "offset": 45 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 46, - "offset": 45 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "Hello 'World' Hello!", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 48 - }, - "end": { - "line": 3, - "column": 7, - "offset": 53 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 47 - }, - "end": { - "line": 3, - "column": 47, - "offset": 93 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 47, - "offset": 93 - }, - "end": { - "line": 3, - "column": 48, - "offset": 94 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 47 - }, - "end": { - "line": 3, - "column": 48, - "offset": 94 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "Hello 'World' Hello!", - "url": "./world.html", - "alt": "Hello", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 96 - }, - "end": { - "line": 5, - "column": 46, - "offset": 141 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 46, - "offset": 141 - }, - "end": { - "line": 5, - "column": 47, - "offset": 142 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 96 - }, - "end": { - "line": 5, - "column": 47, - "offset": 142 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "Hello 'World' Hello!", - "url": "./world.html", - "alt": "Hello", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 144 - }, - "end": { - "line": 7, - "column": 48, - "offset": 191 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 48, - "offset": 191 - }, - "end": { - "line": 7, - "column": 49, - "offset": 192 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 144 - }, - "end": { - "line": 7, - "column": 49, - "offset": 192 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 193 - } - } -} diff --git a/test/fixtures/tree/links-title-single-quotes-entity-delimiters.commonmark.json b/test/fixtures/tree/links-title-single-quotes-entity-delimiters.commonmark.json deleted file mode 100644 index c67f4e5fd..000000000 --- a/test/fixtures/tree/links-title-single-quotes-entity-delimiters.commonmark.json +++ /dev/null @@ -1,269 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "Hello 'World' Hello!", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 55, - "offset": 54 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 55, - "offset": 54 - }, - "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": "link", - "title": "Hello 'World' Hello!", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 58 - }, - "end": { - "line": 3, - "column": 7, - "offset": 63 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 57 - }, - "end": { - "line": 3, - "column": 57, - "offset": 113 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 57, - "offset": 113 - }, - "end": { - "line": 3, - "column": 58, - "offset": 114 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 57 - }, - "end": { - "line": 3, - "column": 58, - "offset": 114 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "Hello 'World' Hello!", - "url": "./world.html", - "alt": "Hello", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 116 - }, - "end": { - "line": 5, - "column": 56, - "offset": 171 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 56, - "offset": 171 - }, - "end": { - "line": 5, - "column": 57, - "offset": 172 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 116 - }, - "end": { - "line": 5, - "column": 57, - "offset": 172 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "Hello 'World' Hello!", - "url": "./world.html", - "alt": "Hello", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 174 - }, - "end": { - "line": 7, - "column": 58, - "offset": 231 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 58, - "offset": 231 - }, - "end": { - "line": 7, - "column": 59, - "offset": 232 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 174 - }, - "end": { - "line": 7, - "column": 59, - "offset": 232 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 233 - } - } -} diff --git a/test/fixtures/tree/links-title-single-quotes-entity-delimiters.json b/test/fixtures/tree/links-title-single-quotes-entity-delimiters.json index c67f4e5fd..6dc56019c 100644 --- a/test/fixtures/tree/links-title-single-quotes-entity-delimiters.json +++ b/test/fixtures/tree/links-title-single-quotes-entity-delimiters.json @@ -22,8 +22,7 @@ "line": 1, "column": 7, "offset": 6 - }, - "indent": [] + } } } ], @@ -37,8 +36,7 @@ "line": 1, "column": 55, "offset": 54 - }, - "indent": [] + } } }, { @@ -54,8 +52,7 @@ "line": 1, "column": 56, "offset": 55 - }, - "indent": [] + } } } ], @@ -69,8 +66,7 @@ "line": 1, "column": 56, "offset": 55 - }, - "indent": [] + } } }, { @@ -94,8 +90,7 @@ "line": 3, "column": 7, "offset": 63 - }, - "indent": [] + } } } ], @@ -109,8 +104,7 @@ "line": 3, "column": 57, "offset": 113 - }, - "indent": [] + } } }, { @@ -126,8 +120,7 @@ "line": 3, "column": 58, "offset": 114 - }, - "indent": [] + } } } ], @@ -141,8 +134,7 @@ "line": 3, "column": 58, "offset": 114 - }, - "indent": [] + } } }, { @@ -163,8 +155,7 @@ "line": 5, "column": 56, "offset": 171 - }, - "indent": [] + } } }, { @@ -180,8 +171,7 @@ "line": 5, "column": 57, "offset": 172 - }, - "indent": [] + } } } ], @@ -195,8 +185,7 @@ "line": 5, "column": 57, "offset": 172 - }, - "indent": [] + } } }, { @@ -217,8 +206,7 @@ "line": 7, "column": 58, "offset": 231 - }, - "indent": [] + } } }, { @@ -234,8 +222,7 @@ "line": 7, "column": 59, "offset": 232 - }, - "indent": [] + } } } ], @@ -249,8 +236,7 @@ "line": 7, "column": 59, "offset": 232 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/links-title-single-quotes-entity-delimiters.nogfm.json b/test/fixtures/tree/links-title-single-quotes-entity-delimiters.nogfm.json deleted file mode 100644 index c67f4e5fd..000000000 --- a/test/fixtures/tree/links-title-single-quotes-entity-delimiters.nogfm.json +++ /dev/null @@ -1,269 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "Hello 'World' Hello!", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 55, - "offset": 54 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 55, - "offset": 54 - }, - "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": "link", - "title": "Hello 'World' Hello!", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 58 - }, - "end": { - "line": 3, - "column": 7, - "offset": 63 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 57 - }, - "end": { - "line": 3, - "column": 57, - "offset": 113 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 57, - "offset": 113 - }, - "end": { - "line": 3, - "column": 58, - "offset": 114 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 57 - }, - "end": { - "line": 3, - "column": 58, - "offset": 114 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "Hello 'World' Hello!", - "url": "./world.html", - "alt": "Hello", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 116 - }, - "end": { - "line": 5, - "column": 56, - "offset": 171 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 56, - "offset": 171 - }, - "end": { - "line": 5, - "column": 57, - "offset": 172 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 116 - }, - "end": { - "line": 5, - "column": 57, - "offset": 172 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "Hello 'World' Hello!", - "url": "./world.html", - "alt": "Hello", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 174 - }, - "end": { - "line": 7, - "column": 58, - "offset": 231 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 58, - "offset": 231 - }, - "end": { - "line": 7, - "column": 59, - "offset": 232 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 174 - }, - "end": { - "line": 7, - "column": 59, - "offset": 232 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 233 - } - } -} diff --git a/test/fixtures/tree/links-title-single-quotes-escaped-delimiters.commonmark.json b/test/fixtures/tree/links-title-single-quotes-escaped-delimiters.commonmark.json deleted file mode 100644 index 743a8fc79..000000000 --- a/test/fixtures/tree/links-title-single-quotes-escaped-delimiters.commonmark.json +++ /dev/null @@ -1,269 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "Hello 'World' Hello!", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 47, - "offset": 46 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 47, - "offset": 46 - }, - "end": { - "line": 1, - "column": 48, - "offset": 47 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 48, - "offset": 47 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "Hello 'World' Hello!", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 50 - }, - "end": { - "line": 3, - "column": 7, - "offset": 55 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 49 - }, - "end": { - "line": 3, - "column": 49, - "offset": 97 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 49, - "offset": 97 - }, - "end": { - "line": 3, - "column": 50, - "offset": 98 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 49 - }, - "end": { - "line": 3, - "column": 50, - "offset": 98 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "Hello 'World' Hello!", - "url": "./world.html", - "alt": "Hello", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 100 - }, - "end": { - "line": 5, - "column": 48, - "offset": 147 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 48, - "offset": 147 - }, - "end": { - "line": 5, - "column": 49, - "offset": 148 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 100 - }, - "end": { - "line": 5, - "column": 49, - "offset": 148 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "Hello 'World' Hello!", - "url": "./world.html", - "alt": "Hello", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 150 - }, - "end": { - "line": 7, - "column": 50, - "offset": 199 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 50, - "offset": 199 - }, - "end": { - "line": 7, - "column": 51, - "offset": 200 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 150 - }, - "end": { - "line": 7, - "column": 51, - "offset": 200 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 201 - } - } -} diff --git a/test/fixtures/tree/links-title-single-quotes-escaped-delimiters.json b/test/fixtures/tree/links-title-single-quotes-escaped-delimiters.json index 9a1249797..7edd374df 100644 --- a/test/fixtures/tree/links-title-single-quotes-escaped-delimiters.json +++ b/test/fixtures/tree/links-title-single-quotes-escaped-delimiters.json @@ -6,7 +6,7 @@ "children": [ { "type": "link", - "title": "Hello \\'World\\' Hello!", + "title": "Hello 'World' Hello!", "url": "./world.html", "children": [ { @@ -22,8 +22,7 @@ "line": 1, "column": 7, "offset": 6 - }, - "indent": [] + } } } ], @@ -37,8 +36,7 @@ "line": 1, "column": 47, "offset": 46 - }, - "indent": [] + } } }, { @@ -54,8 +52,7 @@ "line": 1, "column": 48, "offset": 47 - }, - "indent": [] + } } } ], @@ -69,8 +66,7 @@ "line": 1, "column": 48, "offset": 47 - }, - "indent": [] + } } }, { @@ -78,7 +74,7 @@ "children": [ { "type": "link", - "title": "Hello \\'World\\' Hello!", + "title": "Hello 'World' Hello!", "url": "./world.html", "children": [ { @@ -94,8 +90,7 @@ "line": 3, "column": 7, "offset": 55 - }, - "indent": [] + } } } ], @@ -109,8 +104,7 @@ "line": 3, "column": 49, "offset": 97 - }, - "indent": [] + } } }, { @@ -126,8 +120,7 @@ "line": 3, "column": 50, "offset": 98 - }, - "indent": [] + } } } ], @@ -141,8 +134,7 @@ "line": 3, "column": 50, "offset": 98 - }, - "indent": [] + } } }, { @@ -150,7 +142,7 @@ "children": [ { "type": "image", - "title": "Hello \\'World\\' Hello!", + "title": "Hello 'World' Hello!", "url": "./world.html", "alt": "Hello", "position": { @@ -163,8 +155,7 @@ "line": 5, "column": 48, "offset": 147 - }, - "indent": [] + } } }, { @@ -180,8 +171,7 @@ "line": 5, "column": 49, "offset": 148 - }, - "indent": [] + } } } ], @@ -195,8 +185,7 @@ "line": 5, "column": 49, "offset": 148 - }, - "indent": [] + } } }, { @@ -204,7 +193,7 @@ "children": [ { "type": "image", - "title": "Hello \\'World\\' Hello!", + "title": "Hello 'World' Hello!", "url": "./world.html", "alt": "Hello", "position": { @@ -217,8 +206,7 @@ "line": 7, "column": 50, "offset": 199 - }, - "indent": [] + } } }, { @@ -234,8 +222,7 @@ "line": 7, "column": 51, "offset": 200 - }, - "indent": [] + } } } ], @@ -249,8 +236,7 @@ "line": 7, "column": 51, "offset": 200 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/links-title-single-quotes-escaped-delimiters.nogfm.json b/test/fixtures/tree/links-title-single-quotes-escaped-delimiters.nogfm.json deleted file mode 100644 index 9a1249797..000000000 --- a/test/fixtures/tree/links-title-single-quotes-escaped-delimiters.nogfm.json +++ /dev/null @@ -1,269 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "Hello \\'World\\' Hello!", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 47, - "offset": 46 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 47, - "offset": 46 - }, - "end": { - "line": 1, - "column": 48, - "offset": 47 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 48, - "offset": 47 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "Hello \\'World\\' Hello!", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 50 - }, - "end": { - "line": 3, - "column": 7, - "offset": 55 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 49 - }, - "end": { - "line": 3, - "column": 49, - "offset": 97 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 49, - "offset": 97 - }, - "end": { - "line": 3, - "column": 50, - "offset": 98 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 49 - }, - "end": { - "line": 3, - "column": 50, - "offset": 98 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "Hello \\'World\\' Hello!", - "url": "./world.html", - "alt": "Hello", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 100 - }, - "end": { - "line": 5, - "column": 48, - "offset": 147 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 48, - "offset": 147 - }, - "end": { - "line": 5, - "column": 49, - "offset": 148 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 100 - }, - "end": { - "line": 5, - "column": 49, - "offset": 148 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "Hello \\'World\\' Hello!", - "url": "./world.html", - "alt": "Hello", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 150 - }, - "end": { - "line": 7, - "column": 50, - "offset": 199 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 50, - "offset": 199 - }, - "end": { - "line": 7, - "column": 51, - "offset": 200 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 150 - }, - "end": { - "line": 7, - "column": 51, - "offset": 200 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 201 - } - } -} diff --git a/test/fixtures/tree/links-title-single-quotes-mismatched-delimiters.commonmark.json b/test/fixtures/tree/links-title-single-quotes-mismatched-delimiters.commonmark.json deleted file mode 100644 index 48e1b6595..000000000 --- a/test/fixtures/tree/links-title-single-quotes-mismatched-delimiters.commonmark.json +++ /dev/null @@ -1,273 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "Hello", - "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": "text", - "value": "(./world.html 'Hello 'World Hello!').", - "position": { - "start": { - "line": 1, - "column": 8, - "offset": 7 - }, - "end": { - "line": 1, - "column": 45, - "offset": 44 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 45, - "offset": 44 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 47 - }, - "end": { - "line": 3, - "column": 7, - "offset": 52 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 46 - }, - "end": { - "line": 3, - "column": 8, - "offset": 53 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(<./world.html> 'Hello 'World Hello!').", - "position": { - "start": { - "line": 3, - "column": 8, - "offset": 53 - }, - "end": { - "line": 3, - "column": 47, - "offset": 92 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 46 - }, - "end": { - "line": 3, - "column": 47, - "offset": 92 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "imageReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "alt": "Hello", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 94 - }, - "end": { - "line": 5, - "column": 9, - "offset": 102 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(./world.html 'Hello 'World Hello!').", - "position": { - "start": { - "line": 5, - "column": 9, - "offset": 102 - }, - "end": { - "line": 5, - "column": 46, - "offset": 139 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 94 - }, - "end": { - "line": 5, - "column": 46, - "offset": 139 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "imageReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "alt": "Hello", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 141 - }, - "end": { - "line": 7, - "column": 9, - "offset": 149 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(<./world.html> 'Hello 'World Hello!').", - "position": { - "start": { - "line": 7, - "column": 9, - "offset": 149 - }, - "end": { - "line": 7, - "column": 48, - "offset": 188 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 141 - }, - "end": { - "line": 7, - "column": 48, - "offset": 188 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 189 - } - } -} diff --git a/test/fixtures/tree/links-title-single-quotes-mismatched-delimiters.json b/test/fixtures/tree/links-title-single-quotes-mismatched-delimiters.json index 33d74efd8..108eada49 100644 --- a/test/fixtures/tree/links-title-single-quotes-mismatched-delimiters.json +++ b/test/fixtures/tree/links-title-single-quotes-mismatched-delimiters.json @@ -5,57 +5,19 @@ "type": "paragraph", "children": [ { - "type": "link", - "title": "Hello 'World Hello!", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - } - ], + "type": "text", + "value": "[Hello](./world.html 'Hello 'World Hello!').", "position": { "start": { "line": 1, "column": 1, "offset": 0 }, - "end": { - "line": 1, - "column": 44, - "offset": 43 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 44, - "offset": 43 - }, "end": { "line": 1, "column": 45, "offset": 44 - }, - "indent": [] + } } } ], @@ -69,65 +31,26 @@ "line": 1, "column": 45, "offset": 44 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "link", - "title": "Hello 'World Hello!", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 47 - }, - "end": { - "line": 3, - "column": 7, - "offset": 52 - }, - "indent": [] - } - } - ], + "type": "text", + "value": "[Hello](<./world.html> 'Hello 'World Hello!').", "position": { "start": { "line": 3, "column": 1, "offset": 46 }, - "end": { - "line": 3, - "column": 46, - "offset": 91 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 46, - "offset": 91 - }, "end": { "line": 3, "column": 47, "offset": 92 - }, - "indent": [] + } } } ], @@ -141,47 +64,26 @@ "line": 3, "column": 47, "offset": 92 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "image", - "title": "Hello 'World Hello!", - "url": "./world.html", - "alt": "Hello", + "type": "text", + "value": "![Hello](./world.html 'Hello 'World Hello!').", "position": { "start": { "line": 5, "column": 1, "offset": 94 }, - "end": { - "line": 5, - "column": 45, - "offset": 138 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 45, - "offset": 138 - }, "end": { "line": 5, "column": 46, "offset": 139 - }, - "indent": [] + } } } ], @@ -195,47 +97,26 @@ "line": 5, "column": 46, "offset": 139 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "image", - "title": "Hello 'World Hello!", - "url": "./world.html", - "alt": "Hello", + "type": "text", + "value": "![Hello](<./world.html> 'Hello 'World Hello!').", "position": { "start": { "line": 7, "column": 1, "offset": 141 }, - "end": { - "line": 7, - "column": 47, - "offset": 187 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 47, - "offset": 187 - }, "end": { "line": 7, "column": 48, "offset": 188 - }, - "indent": [] + } } } ], @@ -249,8 +130,7 @@ "line": 7, "column": 48, "offset": 188 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/links-title-single-quotes-mismatched-delimiters.nogfm.json b/test/fixtures/tree/links-title-single-quotes-mismatched-delimiters.nogfm.json deleted file mode 100644 index 33d74efd8..000000000 --- a/test/fixtures/tree/links-title-single-quotes-mismatched-delimiters.nogfm.json +++ /dev/null @@ -1,269 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "Hello 'World Hello!", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 44, - "offset": 43 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 44, - "offset": 43 - }, - "end": { - "line": 1, - "column": 45, - "offset": 44 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 45, - "offset": 44 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "Hello 'World Hello!", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 47 - }, - "end": { - "line": 3, - "column": 7, - "offset": 52 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 46 - }, - "end": { - "line": 3, - "column": 46, - "offset": 91 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 46, - "offset": 91 - }, - "end": { - "line": 3, - "column": 47, - "offset": 92 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 46 - }, - "end": { - "line": 3, - "column": 47, - "offset": 92 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "Hello 'World Hello!", - "url": "./world.html", - "alt": "Hello", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 94 - }, - "end": { - "line": 5, - "column": 45, - "offset": 138 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 45, - "offset": 138 - }, - "end": { - "line": 5, - "column": 46, - "offset": 139 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 94 - }, - "end": { - "line": 5, - "column": 46, - "offset": 139 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "Hello 'World Hello!", - "url": "./world.html", - "alt": "Hello", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 141 - }, - "end": { - "line": 7, - "column": 47, - "offset": 187 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 47, - "offset": 187 - }, - "end": { - "line": 7, - "column": 48, - "offset": 188 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 141 - }, - "end": { - "line": 7, - "column": 48, - "offset": 188 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 189 - } - } -} diff --git a/test/fixtures/tree/links-title-single-quotes.commonmark.json b/test/fixtures/tree/links-title-single-quotes.commonmark.json deleted file mode 100644 index 399b1522e..000000000 --- a/test/fixtures/tree/links-title-single-quotes.commonmark.json +++ /dev/null @@ -1,269 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "Hello World!", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 37, - "offset": 36 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 37, - "offset": 36 - }, - "end": { - "line": 1, - "column": 38, - "offset": 37 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 38, - "offset": 37 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "Hello World!", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 40 - }, - "end": { - "line": 3, - "column": 7, - "offset": 45 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 39 - }, - "end": { - "line": 3, - "column": 39, - "offset": 77 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 39, - "offset": 77 - }, - "end": { - "line": 3, - "column": 40, - "offset": 78 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 39 - }, - "end": { - "line": 3, - "column": 40, - "offset": 78 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "Hello World!", - "url": "./world.html", - "alt": "Hello", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 80 - }, - "end": { - "line": 5, - "column": 38, - "offset": 117 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 38, - "offset": 117 - }, - "end": { - "line": 5, - "column": 39, - "offset": 118 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 80 - }, - "end": { - "line": 5, - "column": 39, - "offset": 118 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "Hello World!", - "url": "./world.html", - "alt": "Hello", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 120 - }, - "end": { - "line": 7, - "column": 40, - "offset": 159 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 40, - "offset": 159 - }, - "end": { - "line": 7, - "column": 41, - "offset": 160 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 120 - }, - "end": { - "line": 7, - "column": 41, - "offset": 160 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 161 - } - } -} diff --git a/test/fixtures/tree/links-title-single-quotes.json b/test/fixtures/tree/links-title-single-quotes.json index 399b1522e..a4e96f50b 100644 --- a/test/fixtures/tree/links-title-single-quotes.json +++ b/test/fixtures/tree/links-title-single-quotes.json @@ -22,8 +22,7 @@ "line": 1, "column": 7, "offset": 6 - }, - "indent": [] + } } } ], @@ -37,8 +36,7 @@ "line": 1, "column": 37, "offset": 36 - }, - "indent": [] + } } }, { @@ -54,8 +52,7 @@ "line": 1, "column": 38, "offset": 37 - }, - "indent": [] + } } } ], @@ -69,8 +66,7 @@ "line": 1, "column": 38, "offset": 37 - }, - "indent": [] + } } }, { @@ -94,8 +90,7 @@ "line": 3, "column": 7, "offset": 45 - }, - "indent": [] + } } } ], @@ -109,8 +104,7 @@ "line": 3, "column": 39, "offset": 77 - }, - "indent": [] + } } }, { @@ -126,8 +120,7 @@ "line": 3, "column": 40, "offset": 78 - }, - "indent": [] + } } } ], @@ -141,8 +134,7 @@ "line": 3, "column": 40, "offset": 78 - }, - "indent": [] + } } }, { @@ -163,8 +155,7 @@ "line": 5, "column": 38, "offset": 117 - }, - "indent": [] + } } }, { @@ -180,8 +171,7 @@ "line": 5, "column": 39, "offset": 118 - }, - "indent": [] + } } } ], @@ -195,8 +185,7 @@ "line": 5, "column": 39, "offset": 118 - }, - "indent": [] + } } }, { @@ -217,8 +206,7 @@ "line": 7, "column": 40, "offset": 159 - }, - "indent": [] + } } }, { @@ -234,8 +222,7 @@ "line": 7, "column": 41, "offset": 160 - }, - "indent": [] + } } } ], @@ -249,8 +236,7 @@ "line": 7, "column": 41, "offset": 160 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/links-title-single-quotes.nogfm.json b/test/fixtures/tree/links-title-single-quotes.nogfm.json deleted file mode 100644 index 399b1522e..000000000 --- a/test/fixtures/tree/links-title-single-quotes.nogfm.json +++ /dev/null @@ -1,269 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "Hello World!", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 37, - "offset": 36 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 37, - "offset": 36 - }, - "end": { - "line": 1, - "column": 38, - "offset": 37 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 38, - "offset": 37 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "Hello World!", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 40 - }, - "end": { - "line": 3, - "column": 7, - "offset": 45 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 39 - }, - "end": { - "line": 3, - "column": 39, - "offset": 77 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 39, - "offset": 77 - }, - "end": { - "line": 3, - "column": 40, - "offset": 78 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 39 - }, - "end": { - "line": 3, - "column": 40, - "offset": 78 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "Hello World!", - "url": "./world.html", - "alt": "Hello", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 80 - }, - "end": { - "line": 5, - "column": 38, - "offset": 117 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 38, - "offset": 117 - }, - "end": { - "line": 5, - "column": 39, - "offset": 118 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 80 - }, - "end": { - "line": 5, - "column": 39, - "offset": 118 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "Hello World!", - "url": "./world.html", - "alt": "Hello", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 120 - }, - "end": { - "line": 7, - "column": 40, - "offset": 159 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 40, - "offset": 159 - }, - "end": { - "line": 7, - "column": 41, - "offset": 160 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 120 - }, - "end": { - "line": 7, - "column": 41, - "offset": 160 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 161 - } - } -} diff --git a/test/fixtures/tree/links-title-unclosed.commonmark.json b/test/fixtures/tree/links-title-unclosed.commonmark.json deleted file mode 100644 index 19a897801..000000000 --- a/test/fixtures/tree/links-title-unclosed.commonmark.json +++ /dev/null @@ -1,785 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "Hello", - "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": "text", - "value": "(./world.html 'Hello", - "position": { - "start": { - "line": 1, - "column": 8, - "offset": 7 - }, - "end": { - "line": 1, - "column": 28, - "offset": 27 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 28, - "offset": 27 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 30 - }, - "end": { - "line": 3, - "column": 7, - "offset": 35 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 29 - }, - "end": { - "line": 3, - "column": 8, - "offset": 36 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(<./world.html> 'Hello", - "position": { - "start": { - "line": 3, - "column": 8, - "offset": 36 - }, - "end": { - "line": 3, - "column": 30, - "offset": 58 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 29 - }, - "end": { - "line": 3, - "column": 30, - "offset": 58 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "imageReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "alt": "Hello", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 60 - }, - "end": { - "line": 5, - "column": 9, - "offset": 68 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(./world.html 'Hello", - "position": { - "start": { - "line": 5, - "column": 9, - "offset": 68 - }, - "end": { - "line": 5, - "column": 29, - "offset": 88 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 60 - }, - "end": { - "line": 5, - "column": 29, - "offset": 88 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "imageReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "alt": "Hello", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 90 - }, - "end": { - "line": 7, - "column": 9, - "offset": 98 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(<./world.html> 'Hello", - "position": { - "start": { - "line": 7, - "column": 9, - "offset": 98 - }, - "end": { - "line": 7, - "column": 31, - "offset": 120 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 90 - }, - "end": { - "line": 7, - "column": 31, - "offset": 120 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 9, - "column": 2, - "offset": 123 - }, - "end": { - "line": 9, - "column": 7, - "offset": 128 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 122 - }, - "end": { - "line": 9, - "column": 8, - "offset": 129 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(./world.html \"Hello", - "position": { - "start": { - "line": 9, - "column": 8, - "offset": 129 - }, - "end": { - "line": 9, - "column": 28, - "offset": 149 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 122 - }, - "end": { - "line": 9, - "column": 28, - "offset": 149 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 11, - "column": 2, - "offset": 152 - }, - "end": { - "line": 11, - "column": 7, - "offset": 157 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 151 - }, - "end": { - "line": 11, - "column": 8, - "offset": 158 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(<./world.html> \"Hello", - "position": { - "start": { - "line": 11, - "column": 8, - "offset": 158 - }, - "end": { - "line": 11, - "column": 30, - "offset": 180 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 151 - }, - "end": { - "line": 11, - "column": 30, - "offset": 180 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "imageReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "alt": "Hello", - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 182 - }, - "end": { - "line": 13, - "column": 9, - "offset": 190 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(./world.html \"Hello", - "position": { - "start": { - "line": 13, - "column": 9, - "offset": 190 - }, - "end": { - "line": 13, - "column": 29, - "offset": 210 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 182 - }, - "end": { - "line": 13, - "column": 29, - "offset": 210 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "imageReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "alt": "Hello", - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 212 - }, - "end": { - "line": 15, - "column": 9, - "offset": 220 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(<./world.html> \"Hello", - "position": { - "start": { - "line": 15, - "column": 9, - "offset": 220 - }, - "end": { - "line": 15, - "column": 31, - "offset": 242 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 212 - }, - "end": { - "line": 15, - "column": 31, - "offset": 242 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 17, - "column": 2, - "offset": 245 - }, - "end": { - "line": 17, - "column": 7, - "offset": 250 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 244 - }, - "end": { - "line": 17, - "column": 8, - "offset": 251 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(./world.html (Hello", - "position": { - "start": { - "line": 17, - "column": 8, - "offset": 251 - }, - "end": { - "line": 17, - "column": 28, - "offset": 271 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 244 - }, - "end": { - "line": 17, - "column": 28, - "offset": 271 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 19, - "column": 2, - "offset": 274 - }, - "end": { - "line": 19, - "column": 7, - "offset": 279 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 273 - }, - "end": { - "line": 19, - "column": 8, - "offset": 280 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(<./world.html> (Hello", - "position": { - "start": { - "line": 19, - "column": 8, - "offset": 280 - }, - "end": { - "line": 19, - "column": 30, - "offset": 302 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 273 - }, - "end": { - "line": 19, - "column": 30, - "offset": 302 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "imageReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "alt": "Hello", - "position": { - "start": { - "line": 21, - "column": 1, - "offset": 304 - }, - "end": { - "line": 21, - "column": 9, - "offset": 312 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(./world.html (Hello", - "position": { - "start": { - "line": 21, - "column": 9, - "offset": 312 - }, - "end": { - "line": 21, - "column": 29, - "offset": 332 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 1, - "offset": 304 - }, - "end": { - "line": 21, - "column": 29, - "offset": 332 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "imageReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "alt": "Hello", - "position": { - "start": { - "line": 23, - "column": 1, - "offset": 334 - }, - "end": { - "line": 23, - "column": 9, - "offset": 342 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(<./world.html> (Hello", - "position": { - "start": { - "line": 23, - "column": 9, - "offset": 342 - }, - "end": { - "line": 23, - "column": 31, - "offset": 364 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 23, - "column": 1, - "offset": 334 - }, - "end": { - "line": 23, - "column": 31, - "offset": 364 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 24, - "column": 1, - "offset": 365 - } - } -} diff --git a/test/fixtures/tree/links-title-unclosed.json b/test/fixtures/tree/links-title-unclosed.json index 19a897801..dd42490ee 100644 --- a/test/fixtures/tree/links-title-unclosed.json +++ b/test/fixtures/tree/links-title-unclosed.json @@ -5,58 +5,19 @@ "type": "paragraph", "children": [ { - "type": "linkReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - } - ], + "type": "text", + "value": "[Hello](./world.html 'Hello", "position": { "start": { "line": 1, "column": 1, "offset": 0 }, - "end": { - "line": 1, - "column": 8, - "offset": 7 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(./world.html 'Hello", - "position": { - "start": { - "line": 1, - "column": 8, - "offset": 7 - }, "end": { "line": 1, "column": 28, "offset": 27 - }, - "indent": [] + } } } ], @@ -70,66 +31,26 @@ "line": 1, "column": 28, "offset": 27 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "linkReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 30 - }, - "end": { - "line": 3, - "column": 7, - "offset": 35 - }, - "indent": [] - } - } - ], + "type": "text", + "value": "[Hello](<./world.html> 'Hello", "position": { "start": { "line": 3, "column": 1, "offset": 29 }, - "end": { - "line": 3, - "column": 8, - "offset": 36 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(<./world.html> 'Hello", - "position": { - "start": { - "line": 3, - "column": 8, - "offset": 36 - }, "end": { "line": 3, "column": 30, "offset": 58 - }, - "indent": [] + } } } ], @@ -143,48 +64,26 @@ "line": 3, "column": 30, "offset": 58 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "imageReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "alt": "Hello", + "type": "text", + "value": "![Hello](./world.html 'Hello", "position": { "start": { "line": 5, "column": 1, "offset": 60 }, - "end": { - "line": 5, - "column": 9, - "offset": 68 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(./world.html 'Hello", - "position": { - "start": { - "line": 5, - "column": 9, - "offset": 68 - }, "end": { "line": 5, "column": 29, "offset": 88 - }, - "indent": [] + } } } ], @@ -198,48 +97,26 @@ "line": 5, "column": 29, "offset": 88 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "imageReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "alt": "Hello", + "type": "text", + "value": "![Hello](<./world.html> 'Hello", "position": { "start": { "line": 7, "column": 1, "offset": 90 }, - "end": { - "line": 7, - "column": 9, - "offset": 98 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(<./world.html> 'Hello", - "position": { - "start": { - "line": 7, - "column": 9, - "offset": 98 - }, "end": { "line": 7, "column": 31, "offset": 120 - }, - "indent": [] + } } } ], @@ -253,66 +130,26 @@ "line": 7, "column": 31, "offset": 120 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "linkReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 9, - "column": 2, - "offset": 123 - }, - "end": { - "line": 9, - "column": 7, - "offset": 128 - }, - "indent": [] - } - } - ], + "type": "text", + "value": "[Hello](./world.html \"Hello", "position": { "start": { "line": 9, "column": 1, "offset": 122 }, - "end": { - "line": 9, - "column": 8, - "offset": 129 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(./world.html \"Hello", - "position": { - "start": { - "line": 9, - "column": 8, - "offset": 129 - }, "end": { "line": 9, "column": 28, "offset": 149 - }, - "indent": [] + } } } ], @@ -326,66 +163,26 @@ "line": 9, "column": 28, "offset": 149 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "linkReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 11, - "column": 2, - "offset": 152 - }, - "end": { - "line": 11, - "column": 7, - "offset": 157 - }, - "indent": [] - } - } - ], + "type": "text", + "value": "[Hello](<./world.html> \"Hello", "position": { "start": { "line": 11, "column": 1, "offset": 151 }, - "end": { - "line": 11, - "column": 8, - "offset": 158 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(<./world.html> \"Hello", - "position": { - "start": { - "line": 11, - "column": 8, - "offset": 158 - }, "end": { "line": 11, "column": 30, "offset": 180 - }, - "indent": [] + } } } ], @@ -399,48 +196,26 @@ "line": 11, "column": 30, "offset": 180 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "imageReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "alt": "Hello", + "type": "text", + "value": "![Hello](./world.html \"Hello", "position": { "start": { "line": 13, "column": 1, "offset": 182 }, - "end": { - "line": 13, - "column": 9, - "offset": 190 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(./world.html \"Hello", - "position": { - "start": { - "line": 13, - "column": 9, - "offset": 190 - }, "end": { "line": 13, "column": 29, "offset": 210 - }, - "indent": [] + } } } ], @@ -454,48 +229,26 @@ "line": 13, "column": 29, "offset": 210 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "imageReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "alt": "Hello", + "type": "text", + "value": "![Hello](<./world.html> \"Hello", "position": { "start": { "line": 15, "column": 1, "offset": 212 }, - "end": { - "line": 15, - "column": 9, - "offset": 220 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(<./world.html> \"Hello", - "position": { - "start": { - "line": 15, - "column": 9, - "offset": 220 - }, "end": { "line": 15, "column": 31, "offset": 242 - }, - "indent": [] + } } } ], @@ -509,66 +262,26 @@ "line": 15, "column": 31, "offset": 242 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "linkReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 17, - "column": 2, - "offset": 245 - }, - "end": { - "line": 17, - "column": 7, - "offset": 250 - }, - "indent": [] - } - } - ], + "type": "text", + "value": "[Hello](./world.html (Hello", "position": { "start": { "line": 17, "column": 1, "offset": 244 }, - "end": { - "line": 17, - "column": 8, - "offset": 251 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(./world.html (Hello", - "position": { - "start": { - "line": 17, - "column": 8, - "offset": 251 - }, "end": { "line": 17, "column": 28, "offset": 271 - }, - "indent": [] + } } } ], @@ -582,66 +295,26 @@ "line": 17, "column": 28, "offset": 271 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "linkReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 19, - "column": 2, - "offset": 274 - }, - "end": { - "line": 19, - "column": 7, - "offset": 279 - }, - "indent": [] - } - } - ], + "type": "text", + "value": "[Hello](<./world.html> (Hello", "position": { "start": { "line": 19, "column": 1, "offset": 273 }, - "end": { - "line": 19, - "column": 8, - "offset": 280 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(<./world.html> (Hello", - "position": { - "start": { - "line": 19, - "column": 8, - "offset": 280 - }, "end": { "line": 19, "column": 30, "offset": 302 - }, - "indent": [] + } } } ], @@ -655,48 +328,26 @@ "line": 19, "column": 30, "offset": 302 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "imageReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "alt": "Hello", + "type": "text", + "value": "![Hello](./world.html (Hello", "position": { "start": { "line": 21, "column": 1, "offset": 304 }, - "end": { - "line": 21, - "column": 9, - "offset": 312 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(./world.html (Hello", - "position": { - "start": { - "line": 21, - "column": 9, - "offset": 312 - }, "end": { "line": 21, "column": 29, "offset": 332 - }, - "indent": [] + } } } ], @@ -710,48 +361,26 @@ "line": 21, "column": 29, "offset": 332 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "imageReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "alt": "Hello", + "type": "text", + "value": "![Hello](<./world.html> (Hello", "position": { "start": { "line": 23, "column": 1, "offset": 334 }, - "end": { - "line": 23, - "column": 9, - "offset": 342 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(<./world.html> (Hello", - "position": { - "start": { - "line": 23, - "column": 9, - "offset": 342 - }, "end": { "line": 23, "column": 31, "offset": 364 - }, - "indent": [] + } } } ], @@ -765,8 +394,7 @@ "line": 23, "column": 31, "offset": 364 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/links-title-unclosed.nogfm.json b/test/fixtures/tree/links-title-unclosed.nogfm.json deleted file mode 100644 index 19a897801..000000000 --- a/test/fixtures/tree/links-title-unclosed.nogfm.json +++ /dev/null @@ -1,785 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "Hello", - "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": "text", - "value": "(./world.html 'Hello", - "position": { - "start": { - "line": 1, - "column": 8, - "offset": 7 - }, - "end": { - "line": 1, - "column": 28, - "offset": 27 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 28, - "offset": 27 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 30 - }, - "end": { - "line": 3, - "column": 7, - "offset": 35 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 29 - }, - "end": { - "line": 3, - "column": 8, - "offset": 36 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(<./world.html> 'Hello", - "position": { - "start": { - "line": 3, - "column": 8, - "offset": 36 - }, - "end": { - "line": 3, - "column": 30, - "offset": 58 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 29 - }, - "end": { - "line": 3, - "column": 30, - "offset": 58 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "imageReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "alt": "Hello", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 60 - }, - "end": { - "line": 5, - "column": 9, - "offset": 68 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(./world.html 'Hello", - "position": { - "start": { - "line": 5, - "column": 9, - "offset": 68 - }, - "end": { - "line": 5, - "column": 29, - "offset": 88 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 60 - }, - "end": { - "line": 5, - "column": 29, - "offset": 88 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "imageReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "alt": "Hello", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 90 - }, - "end": { - "line": 7, - "column": 9, - "offset": 98 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(<./world.html> 'Hello", - "position": { - "start": { - "line": 7, - "column": 9, - "offset": 98 - }, - "end": { - "line": 7, - "column": 31, - "offset": 120 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 90 - }, - "end": { - "line": 7, - "column": 31, - "offset": 120 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 9, - "column": 2, - "offset": 123 - }, - "end": { - "line": 9, - "column": 7, - "offset": 128 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 122 - }, - "end": { - "line": 9, - "column": 8, - "offset": 129 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(./world.html \"Hello", - "position": { - "start": { - "line": 9, - "column": 8, - "offset": 129 - }, - "end": { - "line": 9, - "column": 28, - "offset": 149 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 122 - }, - "end": { - "line": 9, - "column": 28, - "offset": 149 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 11, - "column": 2, - "offset": 152 - }, - "end": { - "line": 11, - "column": 7, - "offset": 157 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 151 - }, - "end": { - "line": 11, - "column": 8, - "offset": 158 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(<./world.html> \"Hello", - "position": { - "start": { - "line": 11, - "column": 8, - "offset": 158 - }, - "end": { - "line": 11, - "column": 30, - "offset": 180 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 151 - }, - "end": { - "line": 11, - "column": 30, - "offset": 180 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "imageReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "alt": "Hello", - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 182 - }, - "end": { - "line": 13, - "column": 9, - "offset": 190 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(./world.html \"Hello", - "position": { - "start": { - "line": 13, - "column": 9, - "offset": 190 - }, - "end": { - "line": 13, - "column": 29, - "offset": 210 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 182 - }, - "end": { - "line": 13, - "column": 29, - "offset": 210 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "imageReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "alt": "Hello", - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 212 - }, - "end": { - "line": 15, - "column": 9, - "offset": 220 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(<./world.html> \"Hello", - "position": { - "start": { - "line": 15, - "column": 9, - "offset": 220 - }, - "end": { - "line": 15, - "column": 31, - "offset": 242 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 212 - }, - "end": { - "line": 15, - "column": 31, - "offset": 242 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 17, - "column": 2, - "offset": 245 - }, - "end": { - "line": 17, - "column": 7, - "offset": 250 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 244 - }, - "end": { - "line": 17, - "column": 8, - "offset": 251 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(./world.html (Hello", - "position": { - "start": { - "line": 17, - "column": 8, - "offset": 251 - }, - "end": { - "line": 17, - "column": 28, - "offset": 271 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 244 - }, - "end": { - "line": 17, - "column": 28, - "offset": 271 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 19, - "column": 2, - "offset": 274 - }, - "end": { - "line": 19, - "column": 7, - "offset": 279 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 273 - }, - "end": { - "line": 19, - "column": 8, - "offset": 280 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(<./world.html> (Hello", - "position": { - "start": { - "line": 19, - "column": 8, - "offset": 280 - }, - "end": { - "line": 19, - "column": 30, - "offset": 302 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 273 - }, - "end": { - "line": 19, - "column": 30, - "offset": 302 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "imageReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "alt": "Hello", - "position": { - "start": { - "line": 21, - "column": 1, - "offset": 304 - }, - "end": { - "line": 21, - "column": 9, - "offset": 312 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(./world.html (Hello", - "position": { - "start": { - "line": 21, - "column": 9, - "offset": 312 - }, - "end": { - "line": 21, - "column": 29, - "offset": 332 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 1, - "offset": 304 - }, - "end": { - "line": 21, - "column": 29, - "offset": 332 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "imageReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "alt": "Hello", - "position": { - "start": { - "line": 23, - "column": 1, - "offset": 334 - }, - "end": { - "line": 23, - "column": 9, - "offset": 342 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(<./world.html> (Hello", - "position": { - "start": { - "line": 23, - "column": 9, - "offset": 342 - }, - "end": { - "line": 23, - "column": 31, - "offset": 364 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 23, - "column": 1, - "offset": 334 - }, - "end": { - "line": 23, - "column": 31, - "offset": 364 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 24, - "column": 1, - "offset": 365 - } - } -} diff --git a/test/fixtures/tree/links-url-empty-title-double-quotes.commonmark.json b/test/fixtures/tree/links-url-empty-title-double-quotes.commonmark.json deleted file mode 100644 index e91237ea9..000000000 --- a/test/fixtures/tree/links-url-empty-title-double-quotes.commonmark.json +++ /dev/null @@ -1,395 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "\"World!\"", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 18, - "offset": 17 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 18, - "offset": 17 - }, - "end": { - "line": 1, - "column": 19, - "offset": 18 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 19, - "offset": 18 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "\"World!\"", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 21 - }, - "end": { - "line": 3, - "column": 7, - "offset": 26 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 20 - }, - "end": { - "line": 3, - "column": 19, - "offset": 38 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 19, - "offset": 38 - }, - "end": { - "line": 3, - "column": 20, - "offset": 39 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 20 - }, - "end": { - "line": 3, - "column": 20, - "offset": 39 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "World!", - "url": "", - "children": [ - { - "type": "text", - "value": "World", - "position": { - "start": { - "line": 5, - "column": 2, - "offset": 42 - }, - "end": { - "line": 5, - "column": 7, - "offset": 47 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 41 - }, - "end": { - "line": 5, - "column": 21, - "offset": 61 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 21, - "offset": 61 - }, - "end": { - "line": 5, - "column": 22, - "offset": 62 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 41 - }, - "end": { - "line": 5, - "column": 22, - "offset": 62 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "\"World!\"", - "alt": "Hello", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 64 - }, - "end": { - "line": 7, - "column": 19, - "offset": 82 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 19, - "offset": 82 - }, - "end": { - "line": 7, - "column": 20, - "offset": 83 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 64 - }, - "end": { - "line": 7, - "column": 20, - "offset": 83 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "\"World!\"", - "alt": "Hello", - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 85 - }, - "end": { - "line": 9, - "column": 20, - "offset": 104 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 9, - "column": 20, - "offset": 104 - }, - "end": { - "line": 9, - "column": 21, - "offset": 105 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 85 - }, - "end": { - "line": 9, - "column": 21, - "offset": 105 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "World!", - "url": "", - "alt": "World", - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 107 - }, - "end": { - "line": 11, - "column": 22, - "offset": 128 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 11, - "column": 22, - "offset": 128 - }, - "end": { - "line": 11, - "column": 23, - "offset": 129 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 107 - }, - "end": { - "line": 11, - "column": 23, - "offset": 129 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 12, - "column": 1, - "offset": 130 - } - } -} diff --git a/test/fixtures/tree/links-url-empty-title-double-quotes.json b/test/fixtures/tree/links-url-empty-title-double-quotes.json index e91237ea9..c19fda55c 100644 --- a/test/fixtures/tree/links-url-empty-title-double-quotes.json +++ b/test/fixtures/tree/links-url-empty-title-double-quotes.json @@ -22,8 +22,7 @@ "line": 1, "column": 7, "offset": 6 - }, - "indent": [] + } } } ], @@ -37,8 +36,7 @@ "line": 1, "column": 18, "offset": 17 - }, - "indent": [] + } } }, { @@ -54,8 +52,7 @@ "line": 1, "column": 19, "offset": 18 - }, - "indent": [] + } } } ], @@ -69,8 +66,7 @@ "line": 1, "column": 19, "offset": 18 - }, - "indent": [] + } } }, { @@ -94,8 +90,7 @@ "line": 3, "column": 7, "offset": 26 - }, - "indent": [] + } } } ], @@ -109,8 +104,7 @@ "line": 3, "column": 19, "offset": 38 - }, - "indent": [] + } } }, { @@ -126,8 +120,7 @@ "line": 3, "column": 20, "offset": 39 - }, - "indent": [] + } } } ], @@ -141,8 +134,7 @@ "line": 3, "column": 20, "offset": 39 - }, - "indent": [] + } } }, { @@ -166,8 +158,7 @@ "line": 5, "column": 7, "offset": 47 - }, - "indent": [] + } } } ], @@ -181,8 +172,7 @@ "line": 5, "column": 21, "offset": 61 - }, - "indent": [] + } } }, { @@ -198,8 +188,7 @@ "line": 5, "column": 22, "offset": 62 - }, - "indent": [] + } } } ], @@ -213,8 +202,7 @@ "line": 5, "column": 22, "offset": 62 - }, - "indent": [] + } } }, { @@ -235,8 +223,7 @@ "line": 7, "column": 19, "offset": 82 - }, - "indent": [] + } } }, { @@ -252,8 +239,7 @@ "line": 7, "column": 20, "offset": 83 - }, - "indent": [] + } } } ], @@ -267,8 +253,7 @@ "line": 7, "column": 20, "offset": 83 - }, - "indent": [] + } } }, { @@ -289,8 +274,7 @@ "line": 9, "column": 20, "offset": 104 - }, - "indent": [] + } } }, { @@ -306,8 +290,7 @@ "line": 9, "column": 21, "offset": 105 - }, - "indent": [] + } } } ], @@ -321,8 +304,7 @@ "line": 9, "column": 21, "offset": 105 - }, - "indent": [] + } } }, { @@ -343,8 +325,7 @@ "line": 11, "column": 22, "offset": 128 - }, - "indent": [] + } } }, { @@ -360,8 +341,7 @@ "line": 11, "column": 23, "offset": 129 - }, - "indent": [] + } } } ], @@ -375,8 +355,7 @@ "line": 11, "column": 23, "offset": 129 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/links-url-empty-title-double-quotes.nogfm.json b/test/fixtures/tree/links-url-empty-title-double-quotes.nogfm.json deleted file mode 100644 index e91237ea9..000000000 --- a/test/fixtures/tree/links-url-empty-title-double-quotes.nogfm.json +++ /dev/null @@ -1,395 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "\"World!\"", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 18, - "offset": 17 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 18, - "offset": 17 - }, - "end": { - "line": 1, - "column": 19, - "offset": 18 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 19, - "offset": 18 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "\"World!\"", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 21 - }, - "end": { - "line": 3, - "column": 7, - "offset": 26 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 20 - }, - "end": { - "line": 3, - "column": 19, - "offset": 38 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 19, - "offset": 38 - }, - "end": { - "line": 3, - "column": 20, - "offset": 39 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 20 - }, - "end": { - "line": 3, - "column": 20, - "offset": 39 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "World!", - "url": "", - "children": [ - { - "type": "text", - "value": "World", - "position": { - "start": { - "line": 5, - "column": 2, - "offset": 42 - }, - "end": { - "line": 5, - "column": 7, - "offset": 47 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 41 - }, - "end": { - "line": 5, - "column": 21, - "offset": 61 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 21, - "offset": 61 - }, - "end": { - "line": 5, - "column": 22, - "offset": 62 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 41 - }, - "end": { - "line": 5, - "column": 22, - "offset": 62 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "\"World!\"", - "alt": "Hello", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 64 - }, - "end": { - "line": 7, - "column": 19, - "offset": 82 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 19, - "offset": 82 - }, - "end": { - "line": 7, - "column": 20, - "offset": 83 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 64 - }, - "end": { - "line": 7, - "column": 20, - "offset": 83 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "\"World!\"", - "alt": "Hello", - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 85 - }, - "end": { - "line": 9, - "column": 20, - "offset": 104 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 9, - "column": 20, - "offset": 104 - }, - "end": { - "line": 9, - "column": 21, - "offset": 105 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 85 - }, - "end": { - "line": 9, - "column": 21, - "offset": 105 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "World!", - "url": "", - "alt": "World", - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 107 - }, - "end": { - "line": 11, - "column": 22, - "offset": 128 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 11, - "column": 22, - "offset": 128 - }, - "end": { - "line": 11, - "column": 23, - "offset": 129 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 107 - }, - "end": { - "line": 11, - "column": 23, - "offset": 129 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 12, - "column": 1, - "offset": 130 - } - } -} diff --git a/test/fixtures/tree/links-url-empty-title-parentheses.commonmark.json b/test/fixtures/tree/links-url-empty-title-parentheses.commonmark.json deleted file mode 100644 index 9ae79f955..000000000 --- a/test/fixtures/tree/links-url-empty-title-parentheses.commonmark.json +++ /dev/null @@ -1,395 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "(World!)", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 18, - "offset": 17 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 18, - "offset": 17 - }, - "end": { - "line": 1, - "column": 19, - "offset": 18 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 19, - "offset": 18 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "(World!)", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 21 - }, - "end": { - "line": 3, - "column": 7, - "offset": 26 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 20 - }, - "end": { - "line": 3, - "column": 19, - "offset": 38 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 19, - "offset": 38 - }, - "end": { - "line": 3, - "column": 20, - "offset": 39 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 20 - }, - "end": { - "line": 3, - "column": 20, - "offset": 39 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "World!", - "url": "", - "children": [ - { - "type": "text", - "value": "World", - "position": { - "start": { - "line": 5, - "column": 2, - "offset": 42 - }, - "end": { - "line": 5, - "column": 7, - "offset": 47 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 41 - }, - "end": { - "line": 5, - "column": 21, - "offset": 61 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 21, - "offset": 61 - }, - "end": { - "line": 5, - "column": 22, - "offset": 62 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 41 - }, - "end": { - "line": 5, - "column": 22, - "offset": 62 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "(World!)", - "alt": "Hello", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 64 - }, - "end": { - "line": 7, - "column": 19, - "offset": 82 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 19, - "offset": 82 - }, - "end": { - "line": 7, - "column": 20, - "offset": 83 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 64 - }, - "end": { - "line": 7, - "column": 20, - "offset": 83 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "(World!)", - "alt": "Hello", - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 85 - }, - "end": { - "line": 9, - "column": 20, - "offset": 104 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 9, - "column": 20, - "offset": 104 - }, - "end": { - "line": 9, - "column": 21, - "offset": 105 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 85 - }, - "end": { - "line": 9, - "column": 21, - "offset": 105 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "World!", - "url": "", - "alt": "World", - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 107 - }, - "end": { - "line": 11, - "column": 22, - "offset": 128 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 11, - "column": 22, - "offset": 128 - }, - "end": { - "line": 11, - "column": 23, - "offset": 129 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 107 - }, - "end": { - "line": 11, - "column": 23, - "offset": 129 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 12, - "column": 1, - "offset": 130 - } - } -} diff --git a/test/fixtures/tree/links-url-empty-title-parentheses.json b/test/fixtures/tree/links-url-empty-title-parentheses.json index 98a159056..19cdfd2ab 100644 --- a/test/fixtures/tree/links-url-empty-title-parentheses.json +++ b/test/fixtures/tree/links-url-empty-title-parentheses.json @@ -22,8 +22,7 @@ "line": 1, "column": 7, "offset": 6 - }, - "indent": [] + } } } ], @@ -37,8 +36,7 @@ "line": 1, "column": 18, "offset": 17 - }, - "indent": [] + } } }, { @@ -54,8 +52,7 @@ "line": 1, "column": 19, "offset": 18 - }, - "indent": [] + } } } ], @@ -69,8 +66,7 @@ "line": 1, "column": 19, "offset": 18 - }, - "indent": [] + } } }, { @@ -94,8 +90,7 @@ "line": 3, "column": 7, "offset": 26 - }, - "indent": [] + } } } ], @@ -109,8 +104,7 @@ "line": 3, "column": 19, "offset": 38 - }, - "indent": [] + } } }, { @@ -126,8 +120,7 @@ "line": 3, "column": 20, "offset": 39 - }, - "indent": [] + } } } ], @@ -141,18 +134,16 @@ "line": 3, "column": 20, "offset": 39 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "linkReference", - "identifier": "world", - "label": "World", - "referenceType": "shortcut", + "type": "link", + "title": "World!", + "url": "", "children": [ { "type": "text", @@ -167,8 +158,7 @@ "line": 5, "column": 7, "offset": 47 - }, - "indent": [] + } } } ], @@ -180,27 +170,25 @@ }, "end": { "line": 5, - "column": 8, - "offset": 48 - }, - "indent": [] + "column": 21, + "offset": 61 + } } }, { "type": "text", - "value": "(<> (World!)).", + "value": ".", "position": { "start": { "line": 5, - "column": 8, - "offset": 48 + "column": 21, + "offset": 61 }, "end": { "line": 5, "column": 22, "offset": 62 - }, - "indent": [] + } } } ], @@ -214,8 +202,7 @@ "line": 5, "column": 22, "offset": 62 - }, - "indent": [] + } } }, { @@ -236,8 +223,7 @@ "line": 7, "column": 19, "offset": 82 - }, - "indent": [] + } } }, { @@ -253,8 +239,7 @@ "line": 7, "column": 20, "offset": 83 - }, - "indent": [] + } } } ], @@ -268,8 +253,7 @@ "line": 7, "column": 20, "offset": 83 - }, - "indent": [] + } } }, { @@ -290,8 +274,7 @@ "line": 9, "column": 20, "offset": 104 - }, - "indent": [] + } } }, { @@ -307,8 +290,7 @@ "line": 9, "column": 21, "offset": 105 - }, - "indent": [] + } } } ], @@ -322,18 +304,16 @@ "line": 9, "column": 21, "offset": 105 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "imageReference", - "identifier": "world", - "label": "World", - "referenceType": "shortcut", + "type": "image", + "title": "World!", + "url": "", "alt": "World", "position": { "start": { @@ -343,27 +323,25 @@ }, "end": { "line": 11, - "column": 9, - "offset": 115 - }, - "indent": [] + "column": 22, + "offset": 128 + } } }, { "type": "text", - "value": "(<> (World!)).", + "value": ".", "position": { "start": { "line": 11, - "column": 9, - "offset": 115 + "column": 22, + "offset": 128 }, "end": { "line": 11, "column": 23, "offset": 129 - }, - "indent": [] + } } } ], @@ -377,8 +355,7 @@ "line": 11, "column": 23, "offset": 129 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/links-url-empty-title-parentheses.nogfm.json b/test/fixtures/tree/links-url-empty-title-parentheses.nogfm.json deleted file mode 100644 index 98a159056..000000000 --- a/test/fixtures/tree/links-url-empty-title-parentheses.nogfm.json +++ /dev/null @@ -1,397 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "(World!)", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 18, - "offset": 17 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 18, - "offset": 17 - }, - "end": { - "line": 1, - "column": 19, - "offset": 18 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 19, - "offset": 18 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "(World!)", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 21 - }, - "end": { - "line": 3, - "column": 7, - "offset": 26 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 20 - }, - "end": { - "line": 3, - "column": 19, - "offset": 38 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 19, - "offset": 38 - }, - "end": { - "line": 3, - "column": 20, - "offset": 39 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 20 - }, - "end": { - "line": 3, - "column": 20, - "offset": 39 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "world", - "label": "World", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "World", - "position": { - "start": { - "line": 5, - "column": 2, - "offset": 42 - }, - "end": { - "line": 5, - "column": 7, - "offset": 47 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 41 - }, - "end": { - "line": 5, - "column": 8, - "offset": 48 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(<> (World!)).", - "position": { - "start": { - "line": 5, - "column": 8, - "offset": 48 - }, - "end": { - "line": 5, - "column": 22, - "offset": 62 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 41 - }, - "end": { - "line": 5, - "column": 22, - "offset": 62 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "(World!)", - "alt": "Hello", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 64 - }, - "end": { - "line": 7, - "column": 19, - "offset": 82 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 19, - "offset": 82 - }, - "end": { - "line": 7, - "column": 20, - "offset": 83 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 64 - }, - "end": { - "line": 7, - "column": 20, - "offset": 83 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "(World!)", - "alt": "Hello", - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 85 - }, - "end": { - "line": 9, - "column": 20, - "offset": 104 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 9, - "column": 20, - "offset": 104 - }, - "end": { - "line": 9, - "column": 21, - "offset": 105 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 85 - }, - "end": { - "line": 9, - "column": 21, - "offset": 105 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "imageReference", - "identifier": "world", - "label": "World", - "referenceType": "shortcut", - "alt": "World", - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 107 - }, - "end": { - "line": 11, - "column": 9, - "offset": 115 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(<> (World!)).", - "position": { - "start": { - "line": 11, - "column": 9, - "offset": 115 - }, - "end": { - "line": 11, - "column": 23, - "offset": 129 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 107 - }, - "end": { - "line": 11, - "column": 23, - "offset": 129 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 12, - "column": 1, - "offset": 130 - } - } -} diff --git a/test/fixtures/tree/links-url-empty-title-single-quotes.commonmark.json b/test/fixtures/tree/links-url-empty-title-single-quotes.commonmark.json deleted file mode 100644 index eedc3c0ea..000000000 --- a/test/fixtures/tree/links-url-empty-title-single-quotes.commonmark.json +++ /dev/null @@ -1,395 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "'World!'", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 18, - "offset": 17 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 18, - "offset": 17 - }, - "end": { - "line": 1, - "column": 19, - "offset": 18 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 19, - "offset": 18 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "'World!'", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 21 - }, - "end": { - "line": 3, - "column": 7, - "offset": 26 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 20 - }, - "end": { - "line": 3, - "column": 19, - "offset": 38 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 19, - "offset": 38 - }, - "end": { - "line": 3, - "column": 20, - "offset": 39 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 20 - }, - "end": { - "line": 3, - "column": 20, - "offset": 39 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "World!", - "url": "", - "children": [ - { - "type": "text", - "value": "World", - "position": { - "start": { - "line": 5, - "column": 2, - "offset": 42 - }, - "end": { - "line": 5, - "column": 7, - "offset": 47 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 41 - }, - "end": { - "line": 5, - "column": 21, - "offset": 61 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 21, - "offset": 61 - }, - "end": { - "line": 5, - "column": 22, - "offset": 62 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 41 - }, - "end": { - "line": 5, - "column": 22, - "offset": 62 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "'World!'", - "alt": "Hello", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 64 - }, - "end": { - "line": 7, - "column": 19, - "offset": 82 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 19, - "offset": 82 - }, - "end": { - "line": 7, - "column": 20, - "offset": 83 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 64 - }, - "end": { - "line": 7, - "column": 20, - "offset": 83 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "'World!'", - "alt": "Hello", - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 85 - }, - "end": { - "line": 9, - "column": 20, - "offset": 104 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 9, - "column": 20, - "offset": 104 - }, - "end": { - "line": 9, - "column": 21, - "offset": 105 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 85 - }, - "end": { - "line": 9, - "column": 21, - "offset": 105 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "World!", - "url": "", - "alt": "World", - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 107 - }, - "end": { - "line": 11, - "column": 22, - "offset": 128 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 11, - "column": 22, - "offset": 128 - }, - "end": { - "line": 11, - "column": 23, - "offset": 129 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 107 - }, - "end": { - "line": 11, - "column": 23, - "offset": 129 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 12, - "column": 1, - "offset": 130 - } - } -} diff --git a/test/fixtures/tree/links-url-empty-title-single-quotes.json b/test/fixtures/tree/links-url-empty-title-single-quotes.json index eedc3c0ea..aa7167304 100644 --- a/test/fixtures/tree/links-url-empty-title-single-quotes.json +++ b/test/fixtures/tree/links-url-empty-title-single-quotes.json @@ -22,8 +22,7 @@ "line": 1, "column": 7, "offset": 6 - }, - "indent": [] + } } } ], @@ -37,8 +36,7 @@ "line": 1, "column": 18, "offset": 17 - }, - "indent": [] + } } }, { @@ -54,8 +52,7 @@ "line": 1, "column": 19, "offset": 18 - }, - "indent": [] + } } } ], @@ -69,8 +66,7 @@ "line": 1, "column": 19, "offset": 18 - }, - "indent": [] + } } }, { @@ -94,8 +90,7 @@ "line": 3, "column": 7, "offset": 26 - }, - "indent": [] + } } } ], @@ -109,8 +104,7 @@ "line": 3, "column": 19, "offset": 38 - }, - "indent": [] + } } }, { @@ -126,8 +120,7 @@ "line": 3, "column": 20, "offset": 39 - }, - "indent": [] + } } } ], @@ -141,8 +134,7 @@ "line": 3, "column": 20, "offset": 39 - }, - "indent": [] + } } }, { @@ -166,8 +158,7 @@ "line": 5, "column": 7, "offset": 47 - }, - "indent": [] + } } } ], @@ -181,8 +172,7 @@ "line": 5, "column": 21, "offset": 61 - }, - "indent": [] + } } }, { @@ -198,8 +188,7 @@ "line": 5, "column": 22, "offset": 62 - }, - "indent": [] + } } } ], @@ -213,8 +202,7 @@ "line": 5, "column": 22, "offset": 62 - }, - "indent": [] + } } }, { @@ -235,8 +223,7 @@ "line": 7, "column": 19, "offset": 82 - }, - "indent": [] + } } }, { @@ -252,8 +239,7 @@ "line": 7, "column": 20, "offset": 83 - }, - "indent": [] + } } } ], @@ -267,8 +253,7 @@ "line": 7, "column": 20, "offset": 83 - }, - "indent": [] + } } }, { @@ -289,8 +274,7 @@ "line": 9, "column": 20, "offset": 104 - }, - "indent": [] + } } }, { @@ -306,8 +290,7 @@ "line": 9, "column": 21, "offset": 105 - }, - "indent": [] + } } } ], @@ -321,8 +304,7 @@ "line": 9, "column": 21, "offset": 105 - }, - "indent": [] + } } }, { @@ -343,8 +325,7 @@ "line": 11, "column": 22, "offset": 128 - }, - "indent": [] + } } }, { @@ -360,8 +341,7 @@ "line": 11, "column": 23, "offset": 129 - }, - "indent": [] + } } } ], @@ -375,8 +355,7 @@ "line": 11, "column": 23, "offset": 129 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/links-url-empty-title-single-quotes.nogfm.json b/test/fixtures/tree/links-url-empty-title-single-quotes.nogfm.json deleted file mode 100644 index eedc3c0ea..000000000 --- a/test/fixtures/tree/links-url-empty-title-single-quotes.nogfm.json +++ /dev/null @@ -1,395 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "'World!'", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 18, - "offset": 17 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 18, - "offset": 17 - }, - "end": { - "line": 1, - "column": 19, - "offset": 18 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 19, - "offset": 18 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "'World!'", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 21 - }, - "end": { - "line": 3, - "column": 7, - "offset": 26 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 20 - }, - "end": { - "line": 3, - "column": 19, - "offset": 38 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 19, - "offset": 38 - }, - "end": { - "line": 3, - "column": 20, - "offset": 39 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 20 - }, - "end": { - "line": 3, - "column": 20, - "offset": 39 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "World!", - "url": "", - "children": [ - { - "type": "text", - "value": "World", - "position": { - "start": { - "line": 5, - "column": 2, - "offset": 42 - }, - "end": { - "line": 5, - "column": 7, - "offset": 47 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 41 - }, - "end": { - "line": 5, - "column": 21, - "offset": 61 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 21, - "offset": 61 - }, - "end": { - "line": 5, - "column": 22, - "offset": 62 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 41 - }, - "end": { - "line": 5, - "column": 22, - "offset": 62 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "'World!'", - "alt": "Hello", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 64 - }, - "end": { - "line": 7, - "column": 19, - "offset": 82 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 19, - "offset": 82 - }, - "end": { - "line": 7, - "column": 20, - "offset": 83 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 64 - }, - "end": { - "line": 7, - "column": 20, - "offset": 83 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "'World!'", - "alt": "Hello", - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 85 - }, - "end": { - "line": 9, - "column": 20, - "offset": 104 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 9, - "column": 20, - "offset": 104 - }, - "end": { - "line": 9, - "column": 21, - "offset": 105 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 85 - }, - "end": { - "line": 9, - "column": 21, - "offset": 105 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "World!", - "url": "", - "alt": "World", - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 107 - }, - "end": { - "line": 11, - "column": 22, - "offset": 128 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 11, - "column": 22, - "offset": 128 - }, - "end": { - "line": 11, - "column": 23, - "offset": 129 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 107 - }, - "end": { - "line": 11, - "column": 23, - "offset": 129 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 12, - "column": 1, - "offset": 130 - } - } -} diff --git a/test/fixtures/tree/links-url-empty.commonmark.json b/test/fixtures/tree/links-url-empty.commonmark.json deleted file mode 100644 index 3df05296b..000000000 --- a/test/fixtures/tree/links-url-empty.commonmark.json +++ /dev/null @@ -1,269 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 10, - "offset": 9 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 10, - "offset": 9 - }, - "end": { - "line": 1, - "column": 11, - "offset": 10 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 11, - "offset": 10 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "", - "children": [ - { - "type": "text", - "value": "World", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 13 - }, - "end": { - "line": 3, - "column": 7, - "offset": 18 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 12 - }, - "end": { - "line": 3, - "column": 12, - "offset": 23 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 12, - "offset": 23 - }, - "end": { - "line": 3, - "column": 13, - "offset": 24 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 12 - }, - "end": { - "line": 3, - "column": 13, - "offset": 24 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "", - "alt": "Hello", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 26 - }, - "end": { - "line": 5, - "column": 11, - "offset": 36 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 11, - "offset": 36 - }, - "end": { - "line": 5, - "column": 12, - "offset": 37 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 26 - }, - "end": { - "line": 5, - "column": 12, - "offset": 37 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "", - "alt": "World", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 39 - }, - "end": { - "line": 7, - "column": 13, - "offset": 51 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 13, - "offset": 51 - }, - "end": { - "line": 7, - "column": 14, - "offset": 52 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 39 - }, - "end": { - "line": 7, - "column": 14, - "offset": 52 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 53 - } - } -} diff --git a/test/fixtures/tree/links-url-empty.json b/test/fixtures/tree/links-url-empty.json index 3df05296b..461722ad4 100644 --- a/test/fixtures/tree/links-url-empty.json +++ b/test/fixtures/tree/links-url-empty.json @@ -22,8 +22,7 @@ "line": 1, "column": 7, "offset": 6 - }, - "indent": [] + } } } ], @@ -37,8 +36,7 @@ "line": 1, "column": 10, "offset": 9 - }, - "indent": [] + } } }, { @@ -54,8 +52,7 @@ "line": 1, "column": 11, "offset": 10 - }, - "indent": [] + } } } ], @@ -69,8 +66,7 @@ "line": 1, "column": 11, "offset": 10 - }, - "indent": [] + } } }, { @@ -94,8 +90,7 @@ "line": 3, "column": 7, "offset": 18 - }, - "indent": [] + } } } ], @@ -109,8 +104,7 @@ "line": 3, "column": 12, "offset": 23 - }, - "indent": [] + } } }, { @@ -126,8 +120,7 @@ "line": 3, "column": 13, "offset": 24 - }, - "indent": [] + } } } ], @@ -141,8 +134,7 @@ "line": 3, "column": 13, "offset": 24 - }, - "indent": [] + } } }, { @@ -163,8 +155,7 @@ "line": 5, "column": 11, "offset": 36 - }, - "indent": [] + } } }, { @@ -180,8 +171,7 @@ "line": 5, "column": 12, "offset": 37 - }, - "indent": [] + } } } ], @@ -195,8 +185,7 @@ "line": 5, "column": 12, "offset": 37 - }, - "indent": [] + } } }, { @@ -217,8 +206,7 @@ "line": 7, "column": 13, "offset": 51 - }, - "indent": [] + } } }, { @@ -234,8 +222,7 @@ "line": 7, "column": 14, "offset": 52 - }, - "indent": [] + } } } ], @@ -249,8 +236,7 @@ "line": 7, "column": 14, "offset": 52 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/links-url-empty.nogfm.json b/test/fixtures/tree/links-url-empty.nogfm.json deleted file mode 100644 index 3df05296b..000000000 --- a/test/fixtures/tree/links-url-empty.nogfm.json +++ /dev/null @@ -1,269 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 10, - "offset": 9 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 10, - "offset": 9 - }, - "end": { - "line": 1, - "column": 11, - "offset": 10 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 11, - "offset": 10 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "", - "children": [ - { - "type": "text", - "value": "World", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 13 - }, - "end": { - "line": 3, - "column": 7, - "offset": 18 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 12 - }, - "end": { - "line": 3, - "column": 12, - "offset": 23 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 12, - "offset": 23 - }, - "end": { - "line": 3, - "column": 13, - "offset": 24 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 12 - }, - "end": { - "line": 3, - "column": 13, - "offset": 24 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "", - "alt": "Hello", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 26 - }, - "end": { - "line": 5, - "column": 11, - "offset": 36 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 11, - "offset": 36 - }, - "end": { - "line": 5, - "column": 12, - "offset": 37 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 26 - }, - "end": { - "line": 5, - "column": 12, - "offset": 37 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "", - "alt": "World", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 39 - }, - "end": { - "line": 7, - "column": 13, - "offset": 51 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 13, - "offset": 51 - }, - "end": { - "line": 7, - "column": 14, - "offset": 52 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 39 - }, - "end": { - "line": 7, - "column": 14, - "offset": 52 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 53 - } - } -} diff --git a/test/fixtures/tree/links-url-entities.json b/test/fixtures/tree/links-url-entities.json index 9af3da97a..257c374f1 100644 --- a/test/fixtures/tree/links-url-entities.json +++ b/test/fixtures/tree/links-url-entities.json @@ -22,8 +22,7 @@ "line": 1, "column": 7, "offset": 6 - }, - "indent": [] + } } } ], @@ -37,8 +36,7 @@ "line": 1, "column": 52, "offset": 51 - }, - "indent": [] + } } }, { @@ -54,8 +52,7 @@ "line": 1, "column": 53, "offset": 52 - }, - "indent": [] + } } } ], @@ -69,8 +66,7 @@ "line": 1, "column": 53, "offset": 52 - }, - "indent": [] + } } }, { @@ -94,8 +90,7 @@ "line": 3, "column": 7, "offset": 60 - }, - "indent": [] + } } } ], @@ -109,8 +104,7 @@ "line": 3, "column": 54, "offset": 107 - }, - "indent": [] + } } }, { @@ -126,8 +120,7 @@ "line": 3, "column": 55, "offset": 108 - }, - "indent": [] + } } } ], @@ -141,8 +134,7 @@ "line": 3, "column": 55, "offset": 108 - }, - "indent": [] + } } }, { @@ -163,8 +155,7 @@ "line": 5, "column": 53, "offset": 162 - }, - "indent": [] + } } }, { @@ -180,8 +171,7 @@ "line": 5, "column": 54, "offset": 163 - }, - "indent": [] + } } } ], @@ -195,8 +185,7 @@ "line": 5, "column": 54, "offset": 163 - }, - "indent": [] + } } }, { @@ -217,8 +206,7 @@ "line": 7, "column": 55, "offset": 219 - }, - "indent": [] + } } }, { @@ -234,8 +222,7 @@ "line": 7, "column": 56, "offset": 220 - }, - "indent": [] + } } } ], @@ -249,8 +236,7 @@ "line": 7, "column": 56, "offset": 220 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/links-url-entity-parentheses.commonmark.json b/test/fixtures/tree/links-url-entity-parentheses.commonmark.json deleted file mode 100644 index a0334b9ba..000000000 --- a/test/fixtures/tree/links-url-entity-parentheses.commonmark.json +++ /dev/null @@ -1,1025 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./world(and-hello(world)", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 49, - "offset": 48 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 49, - "offset": 48 - }, - "end": { - "line": 1, - "column": 50, - "offset": 49 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 50, - "offset": 49 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./world(and-hello(world)", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 52 - }, - "end": { - "line": 3, - "column": 7, - "offset": 57 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 51 - }, - "end": { - "line": 3, - "column": 51, - "offset": 101 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 51, - "offset": 101 - }, - "end": { - "line": 3, - "column": 52, - "offset": 102 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 51 - }, - "end": { - "line": 3, - "column": 52, - "offset": 102 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./world(and)helloworld)", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 5, - "column": 2, - "offset": 105 - }, - "end": { - "line": 5, - "column": 7, - "offset": 110 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 104 - }, - "end": { - "line": 5, - "column": 48, - "offset": 151 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 48, - "offset": 151 - }, - "end": { - "line": 5, - "column": 49, - "offset": 152 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 104 - }, - "end": { - "line": 5, - "column": 49, - "offset": 152 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./world(and)helloworld)", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 7, - "column": 2, - "offset": 155 - }, - "end": { - "line": 7, - "column": 7, - "offset": 160 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 154 - }, - "end": { - "line": 7, - "column": 50, - "offset": 203 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 50, - "offset": 203 - }, - "end": { - "line": 7, - "column": 51, - "offset": 204 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 154 - }, - "end": { - "line": 7, - "column": 51, - "offset": 204 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./world(and-hello(world)", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 9, - "column": 2, - "offset": 207 - }, - "end": { - "line": 9, - "column": 7, - "offset": 212 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 206 - }, - "end": { - "line": 9, - "column": 49, - "offset": 254 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 9, - "column": 49, - "offset": 254 - }, - "end": { - "line": 9, - "column": 50, - "offset": 255 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 206 - }, - "end": { - "line": 9, - "column": 50, - "offset": 255 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./world(and-hello(world)", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 11, - "column": 2, - "offset": 258 - }, - "end": { - "line": 11, - "column": 7, - "offset": 263 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 257 - }, - "end": { - "line": 11, - "column": 51, - "offset": 307 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 11, - "column": 51, - "offset": 307 - }, - "end": { - "line": 11, - "column": 52, - "offset": 308 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 257 - }, - "end": { - "line": 11, - "column": 52, - "offset": 308 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./world(and)helloworld)", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 13, - "column": 2, - "offset": 311 - }, - "end": { - "line": 13, - "column": 7, - "offset": 316 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 310 - }, - "end": { - "line": 13, - "column": 48, - "offset": 357 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 13, - "column": 48, - "offset": 357 - }, - "end": { - "line": 13, - "column": 49, - "offset": 358 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 310 - }, - "end": { - "line": 13, - "column": 49, - "offset": 358 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./world(and)helloworld)", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 15, - "column": 2, - "offset": 361 - }, - "end": { - "line": 15, - "column": 7, - "offset": 366 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 360 - }, - "end": { - "line": 15, - "column": 50, - "offset": 409 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 15, - "column": 50, - "offset": 409 - }, - "end": { - "line": 15, - "column": 51, - "offset": 410 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 360 - }, - "end": { - "line": 15, - "column": 51, - "offset": 410 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./world(and-hello(world)", - "alt": "Hello", - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 412 - }, - "end": { - "line": 17, - "column": 50, - "offset": 461 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 17, - "column": 50, - "offset": 461 - }, - "end": { - "line": 17, - "column": 51, - "offset": 462 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 412 - }, - "end": { - "line": 17, - "column": 51, - "offset": 462 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./world(and-hello(world)", - "alt": "Hello", - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 464 - }, - "end": { - "line": 19, - "column": 52, - "offset": 515 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 19, - "column": 52, - "offset": 515 - }, - "end": { - "line": 19, - "column": 53, - "offset": 516 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 464 - }, - "end": { - "line": 19, - "column": 53, - "offset": 516 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./world(and)helloworld)", - "alt": "Hello", - "position": { - "start": { - "line": 21, - "column": 1, - "offset": 518 - }, - "end": { - "line": 21, - "column": 49, - "offset": 566 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 21, - "column": 49, - "offset": 566 - }, - "end": { - "line": 21, - "column": 50, - "offset": 567 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 1, - "offset": 518 - }, - "end": { - "line": 21, - "column": 50, - "offset": 567 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./world(and)helloworld)", - "alt": "Hello", - "position": { - "start": { - "line": 23, - "column": 1, - "offset": 569 - }, - "end": { - "line": 23, - "column": 51, - "offset": 619 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 23, - "column": 51, - "offset": 619 - }, - "end": { - "line": 23, - "column": 52, - "offset": 620 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 23, - "column": 1, - "offset": 569 - }, - "end": { - "line": 23, - "column": 52, - "offset": 620 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./world(and-hello(world)", - "alt": "Hello", - "position": { - "start": { - "line": 25, - "column": 1, - "offset": 622 - }, - "end": { - "line": 25, - "column": 50, - "offset": 671 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 25, - "column": 50, - "offset": 671 - }, - "end": { - "line": 25, - "column": 51, - "offset": 672 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 25, - "column": 1, - "offset": 622 - }, - "end": { - "line": 25, - "column": 51, - "offset": 672 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./world(and-hello(world)", - "alt": "Hello", - "position": { - "start": { - "line": 27, - "column": 1, - "offset": 674 - }, - "end": { - "line": 27, - "column": 52, - "offset": 725 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 27, - "column": 52, - "offset": 725 - }, - "end": { - "line": 27, - "column": 53, - "offset": 726 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 27, - "column": 1, - "offset": 674 - }, - "end": { - "line": 27, - "column": 53, - "offset": 726 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./world(and)helloworld)", - "alt": "Hello", - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 728 - }, - "end": { - "line": 29, - "column": 49, - "offset": 776 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 29, - "column": 49, - "offset": 776 - }, - "end": { - "line": 29, - "column": 50, - "offset": 777 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 728 - }, - "end": { - "line": 29, - "column": 50, - "offset": 777 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./world(and)helloworld)", - "alt": "Hello", - "position": { - "start": { - "line": 31, - "column": 1, - "offset": 779 - }, - "end": { - "line": 31, - "column": 51, - "offset": 829 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 31, - "column": 51, - "offset": 829 - }, - "end": { - "line": 31, - "column": 52, - "offset": 830 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 31, - "column": 1, - "offset": 779 - }, - "end": { - "line": 31, - "column": 52, - "offset": 830 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 32, - "column": 1, - "offset": 831 - } - } -} diff --git a/test/fixtures/tree/links-url-entity-parentheses.json b/test/fixtures/tree/links-url-entity-parentheses.json index a0334b9ba..8a57fc885 100644 --- a/test/fixtures/tree/links-url-entity-parentheses.json +++ b/test/fixtures/tree/links-url-entity-parentheses.json @@ -22,8 +22,7 @@ "line": 1, "column": 7, "offset": 6 - }, - "indent": [] + } } } ], @@ -37,8 +36,7 @@ "line": 1, "column": 49, "offset": 48 - }, - "indent": [] + } } }, { @@ -54,8 +52,7 @@ "line": 1, "column": 50, "offset": 49 - }, - "indent": [] + } } } ], @@ -69,8 +66,7 @@ "line": 1, "column": 50, "offset": 49 - }, - "indent": [] + } } }, { @@ -94,8 +90,7 @@ "line": 3, "column": 7, "offset": 57 - }, - "indent": [] + } } } ], @@ -109,8 +104,7 @@ "line": 3, "column": 51, "offset": 101 - }, - "indent": [] + } } }, { @@ -126,8 +120,7 @@ "line": 3, "column": 52, "offset": 102 - }, - "indent": [] + } } } ], @@ -141,8 +134,7 @@ "line": 3, "column": 52, "offset": 102 - }, - "indent": [] + } } }, { @@ -166,8 +158,7 @@ "line": 5, "column": 7, "offset": 110 - }, - "indent": [] + } } } ], @@ -181,8 +172,7 @@ "line": 5, "column": 48, "offset": 151 - }, - "indent": [] + } } }, { @@ -198,8 +188,7 @@ "line": 5, "column": 49, "offset": 152 - }, - "indent": [] + } } } ], @@ -213,8 +202,7 @@ "line": 5, "column": 49, "offset": 152 - }, - "indent": [] + } } }, { @@ -238,8 +226,7 @@ "line": 7, "column": 7, "offset": 160 - }, - "indent": [] + } } } ], @@ -253,8 +240,7 @@ "line": 7, "column": 50, "offset": 203 - }, - "indent": [] + } } }, { @@ -270,8 +256,7 @@ "line": 7, "column": 51, "offset": 204 - }, - "indent": [] + } } } ], @@ -285,8 +270,7 @@ "line": 7, "column": 51, "offset": 204 - }, - "indent": [] + } } }, { @@ -310,8 +294,7 @@ "line": 9, "column": 7, "offset": 212 - }, - "indent": [] + } } } ], @@ -325,8 +308,7 @@ "line": 9, "column": 49, "offset": 254 - }, - "indent": [] + } } }, { @@ -342,8 +324,7 @@ "line": 9, "column": 50, "offset": 255 - }, - "indent": [] + } } } ], @@ -357,8 +338,7 @@ "line": 9, "column": 50, "offset": 255 - }, - "indent": [] + } } }, { @@ -382,8 +362,7 @@ "line": 11, "column": 7, "offset": 263 - }, - "indent": [] + } } } ], @@ -397,8 +376,7 @@ "line": 11, "column": 51, "offset": 307 - }, - "indent": [] + } } }, { @@ -414,8 +392,7 @@ "line": 11, "column": 52, "offset": 308 - }, - "indent": [] + } } } ], @@ -429,8 +406,7 @@ "line": 11, "column": 52, "offset": 308 - }, - "indent": [] + } } }, { @@ -454,8 +430,7 @@ "line": 13, "column": 7, "offset": 316 - }, - "indent": [] + } } } ], @@ -469,8 +444,7 @@ "line": 13, "column": 48, "offset": 357 - }, - "indent": [] + } } }, { @@ -486,8 +460,7 @@ "line": 13, "column": 49, "offset": 358 - }, - "indent": [] + } } } ], @@ -501,8 +474,7 @@ "line": 13, "column": 49, "offset": 358 - }, - "indent": [] + } } }, { @@ -526,8 +498,7 @@ "line": 15, "column": 7, "offset": 366 - }, - "indent": [] + } } } ], @@ -541,8 +512,7 @@ "line": 15, "column": 50, "offset": 409 - }, - "indent": [] + } } }, { @@ -558,8 +528,7 @@ "line": 15, "column": 51, "offset": 410 - }, - "indent": [] + } } } ], @@ -573,8 +542,7 @@ "line": 15, "column": 51, "offset": 410 - }, - "indent": [] + } } }, { @@ -595,8 +563,7 @@ "line": 17, "column": 50, "offset": 461 - }, - "indent": [] + } } }, { @@ -612,8 +579,7 @@ "line": 17, "column": 51, "offset": 462 - }, - "indent": [] + } } } ], @@ -627,8 +593,7 @@ "line": 17, "column": 51, "offset": 462 - }, - "indent": [] + } } }, { @@ -649,8 +614,7 @@ "line": 19, "column": 52, "offset": 515 - }, - "indent": [] + } } }, { @@ -666,8 +630,7 @@ "line": 19, "column": 53, "offset": 516 - }, - "indent": [] + } } } ], @@ -681,8 +644,7 @@ "line": 19, "column": 53, "offset": 516 - }, - "indent": [] + } } }, { @@ -703,8 +665,7 @@ "line": 21, "column": 49, "offset": 566 - }, - "indent": [] + } } }, { @@ -720,8 +681,7 @@ "line": 21, "column": 50, "offset": 567 - }, - "indent": [] + } } } ], @@ -735,8 +695,7 @@ "line": 21, "column": 50, "offset": 567 - }, - "indent": [] + } } }, { @@ -757,8 +716,7 @@ "line": 23, "column": 51, "offset": 619 - }, - "indent": [] + } } }, { @@ -774,8 +732,7 @@ "line": 23, "column": 52, "offset": 620 - }, - "indent": [] + } } } ], @@ -789,8 +746,7 @@ "line": 23, "column": 52, "offset": 620 - }, - "indent": [] + } } }, { @@ -811,8 +767,7 @@ "line": 25, "column": 50, "offset": 671 - }, - "indent": [] + } } }, { @@ -828,8 +783,7 @@ "line": 25, "column": 51, "offset": 672 - }, - "indent": [] + } } } ], @@ -843,8 +797,7 @@ "line": 25, "column": 51, "offset": 672 - }, - "indent": [] + } } }, { @@ -865,8 +818,7 @@ "line": 27, "column": 52, "offset": 725 - }, - "indent": [] + } } }, { @@ -882,8 +834,7 @@ "line": 27, "column": 53, "offset": 726 - }, - "indent": [] + } } } ], @@ -897,8 +848,7 @@ "line": 27, "column": 53, "offset": 726 - }, - "indent": [] + } } }, { @@ -919,8 +869,7 @@ "line": 29, "column": 49, "offset": 776 - }, - "indent": [] + } } }, { @@ -936,8 +885,7 @@ "line": 29, "column": 50, "offset": 777 - }, - "indent": [] + } } } ], @@ -951,8 +899,7 @@ "line": 29, "column": 50, "offset": 777 - }, - "indent": [] + } } }, { @@ -973,8 +920,7 @@ "line": 31, "column": 51, "offset": 829 - }, - "indent": [] + } } }, { @@ -990,8 +936,7 @@ "line": 31, "column": 52, "offset": 830 - }, - "indent": [] + } } } ], @@ -1005,8 +950,7 @@ "line": 31, "column": 52, "offset": 830 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/links-url-entity-parentheses.nogfm.json b/test/fixtures/tree/links-url-entity-parentheses.nogfm.json deleted file mode 100644 index a0334b9ba..000000000 --- a/test/fixtures/tree/links-url-entity-parentheses.nogfm.json +++ /dev/null @@ -1,1025 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./world(and-hello(world)", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 49, - "offset": 48 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 49, - "offset": 48 - }, - "end": { - "line": 1, - "column": 50, - "offset": 49 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 50, - "offset": 49 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./world(and-hello(world)", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 52 - }, - "end": { - "line": 3, - "column": 7, - "offset": 57 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 51 - }, - "end": { - "line": 3, - "column": 51, - "offset": 101 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 51, - "offset": 101 - }, - "end": { - "line": 3, - "column": 52, - "offset": 102 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 51 - }, - "end": { - "line": 3, - "column": 52, - "offset": 102 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./world(and)helloworld)", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 5, - "column": 2, - "offset": 105 - }, - "end": { - "line": 5, - "column": 7, - "offset": 110 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 104 - }, - "end": { - "line": 5, - "column": 48, - "offset": 151 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 48, - "offset": 151 - }, - "end": { - "line": 5, - "column": 49, - "offset": 152 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 104 - }, - "end": { - "line": 5, - "column": 49, - "offset": 152 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./world(and)helloworld)", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 7, - "column": 2, - "offset": 155 - }, - "end": { - "line": 7, - "column": 7, - "offset": 160 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 154 - }, - "end": { - "line": 7, - "column": 50, - "offset": 203 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 50, - "offset": 203 - }, - "end": { - "line": 7, - "column": 51, - "offset": 204 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 154 - }, - "end": { - "line": 7, - "column": 51, - "offset": 204 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./world(and-hello(world)", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 9, - "column": 2, - "offset": 207 - }, - "end": { - "line": 9, - "column": 7, - "offset": 212 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 206 - }, - "end": { - "line": 9, - "column": 49, - "offset": 254 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 9, - "column": 49, - "offset": 254 - }, - "end": { - "line": 9, - "column": 50, - "offset": 255 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 206 - }, - "end": { - "line": 9, - "column": 50, - "offset": 255 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./world(and-hello(world)", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 11, - "column": 2, - "offset": 258 - }, - "end": { - "line": 11, - "column": 7, - "offset": 263 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 257 - }, - "end": { - "line": 11, - "column": 51, - "offset": 307 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 11, - "column": 51, - "offset": 307 - }, - "end": { - "line": 11, - "column": 52, - "offset": 308 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 257 - }, - "end": { - "line": 11, - "column": 52, - "offset": 308 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./world(and)helloworld)", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 13, - "column": 2, - "offset": 311 - }, - "end": { - "line": 13, - "column": 7, - "offset": 316 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 310 - }, - "end": { - "line": 13, - "column": 48, - "offset": 357 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 13, - "column": 48, - "offset": 357 - }, - "end": { - "line": 13, - "column": 49, - "offset": 358 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 310 - }, - "end": { - "line": 13, - "column": 49, - "offset": 358 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./world(and)helloworld)", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 15, - "column": 2, - "offset": 361 - }, - "end": { - "line": 15, - "column": 7, - "offset": 366 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 360 - }, - "end": { - "line": 15, - "column": 50, - "offset": 409 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 15, - "column": 50, - "offset": 409 - }, - "end": { - "line": 15, - "column": 51, - "offset": 410 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 360 - }, - "end": { - "line": 15, - "column": 51, - "offset": 410 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./world(and-hello(world)", - "alt": "Hello", - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 412 - }, - "end": { - "line": 17, - "column": 50, - "offset": 461 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 17, - "column": 50, - "offset": 461 - }, - "end": { - "line": 17, - "column": 51, - "offset": 462 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 412 - }, - "end": { - "line": 17, - "column": 51, - "offset": 462 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./world(and-hello(world)", - "alt": "Hello", - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 464 - }, - "end": { - "line": 19, - "column": 52, - "offset": 515 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 19, - "column": 52, - "offset": 515 - }, - "end": { - "line": 19, - "column": 53, - "offset": 516 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 464 - }, - "end": { - "line": 19, - "column": 53, - "offset": 516 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./world(and)helloworld)", - "alt": "Hello", - "position": { - "start": { - "line": 21, - "column": 1, - "offset": 518 - }, - "end": { - "line": 21, - "column": 49, - "offset": 566 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 21, - "column": 49, - "offset": 566 - }, - "end": { - "line": 21, - "column": 50, - "offset": 567 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 1, - "offset": 518 - }, - "end": { - "line": 21, - "column": 50, - "offset": 567 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./world(and)helloworld)", - "alt": "Hello", - "position": { - "start": { - "line": 23, - "column": 1, - "offset": 569 - }, - "end": { - "line": 23, - "column": 51, - "offset": 619 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 23, - "column": 51, - "offset": 619 - }, - "end": { - "line": 23, - "column": 52, - "offset": 620 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 23, - "column": 1, - "offset": 569 - }, - "end": { - "line": 23, - "column": 52, - "offset": 620 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./world(and-hello(world)", - "alt": "Hello", - "position": { - "start": { - "line": 25, - "column": 1, - "offset": 622 - }, - "end": { - "line": 25, - "column": 50, - "offset": 671 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 25, - "column": 50, - "offset": 671 - }, - "end": { - "line": 25, - "column": 51, - "offset": 672 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 25, - "column": 1, - "offset": 622 - }, - "end": { - "line": 25, - "column": 51, - "offset": 672 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./world(and-hello(world)", - "alt": "Hello", - "position": { - "start": { - "line": 27, - "column": 1, - "offset": 674 - }, - "end": { - "line": 27, - "column": 52, - "offset": 725 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 27, - "column": 52, - "offset": 725 - }, - "end": { - "line": 27, - "column": 53, - "offset": 726 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 27, - "column": 1, - "offset": 674 - }, - "end": { - "line": 27, - "column": 53, - "offset": 726 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./world(and)helloworld)", - "alt": "Hello", - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 728 - }, - "end": { - "line": 29, - "column": 49, - "offset": 776 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 29, - "column": 49, - "offset": 776 - }, - "end": { - "line": 29, - "column": 50, - "offset": 777 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 728 - }, - "end": { - "line": 29, - "column": 50, - "offset": 777 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./world(and)helloworld)", - "alt": "Hello", - "position": { - "start": { - "line": 31, - "column": 1, - "offset": 779 - }, - "end": { - "line": 31, - "column": 51, - "offset": 829 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 31, - "column": 51, - "offset": 829 - }, - "end": { - "line": 31, - "column": 52, - "offset": 830 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 31, - "column": 1, - "offset": 779 - }, - "end": { - "line": 31, - "column": 52, - "offset": 830 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 32, - "column": 1, - "offset": 831 - } - } -} diff --git a/test/fixtures/tree/links-url-escaped-parentheses.commonmark.json b/test/fixtures/tree/links-url-escaped-parentheses.commonmark.json deleted file mode 100644 index 9f79db2f2..000000000 --- a/test/fixtures/tree/links-url-escaped-parentheses.commonmark.json +++ /dev/null @@ -1,521 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./world(and-hello(world)", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 37, - "offset": 36 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 37, - "offset": 36 - }, - "end": { - "line": 1, - "column": 38, - "offset": 37 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 38, - "offset": 37 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./world(and-hello(world)", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 40 - }, - "end": { - "line": 3, - "column": 7, - "offset": 45 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 39 - }, - "end": { - "line": 3, - "column": 39, - "offset": 77 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 39, - "offset": 77 - }, - "end": { - "line": 3, - "column": 40, - "offset": 78 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 39 - }, - "end": { - "line": 3, - "column": 40, - "offset": 78 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./world(and)helloworld)", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 5, - "column": 2, - "offset": 81 - }, - "end": { - "line": 5, - "column": 7, - "offset": 86 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 80 - }, - "end": { - "line": 5, - "column": 36, - "offset": 115 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 36, - "offset": 115 - }, - "end": { - "line": 5, - "column": 37, - "offset": 116 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 80 - }, - "end": { - "line": 5, - "column": 37, - "offset": 116 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./world(and)helloworld)", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 7, - "column": 2, - "offset": 119 - }, - "end": { - "line": 7, - "column": 7, - "offset": 124 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 118 - }, - "end": { - "line": 7, - "column": 38, - "offset": 155 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 38, - "offset": 155 - }, - "end": { - "line": 7, - "column": 39, - "offset": 156 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 118 - }, - "end": { - "line": 7, - "column": 39, - "offset": 156 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./world(and-hello(world)", - "alt": "Hello", - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 158 - }, - "end": { - "line": 9, - "column": 38, - "offset": 195 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 9, - "column": 38, - "offset": 195 - }, - "end": { - "line": 9, - "column": 39, - "offset": 196 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 158 - }, - "end": { - "line": 9, - "column": 39, - "offset": 196 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./world(and-hello(world)", - "alt": "Hello", - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 198 - }, - "end": { - "line": 11, - "column": 40, - "offset": 237 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 11, - "column": 40, - "offset": 237 - }, - "end": { - "line": 11, - "column": 41, - "offset": 238 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 198 - }, - "end": { - "line": 11, - "column": 41, - "offset": 238 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./world(and)helloworld)", - "alt": "Hello", - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 240 - }, - "end": { - "line": 13, - "column": 37, - "offset": 276 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 13, - "column": 37, - "offset": 276 - }, - "end": { - "line": 13, - "column": 38, - "offset": 277 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 240 - }, - "end": { - "line": 13, - "column": 38, - "offset": 277 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./world(and)helloworld)", - "alt": "Hello", - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 279 - }, - "end": { - "line": 15, - "column": 39, - "offset": 317 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 15, - "column": 39, - "offset": 317 - }, - "end": { - "line": 15, - "column": 40, - "offset": 318 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 279 - }, - "end": { - "line": 15, - "column": 40, - "offset": 318 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 16, - "column": 1, - "offset": 319 - } - } -} diff --git a/test/fixtures/tree/links-url-escaped-parentheses.json b/test/fixtures/tree/links-url-escaped-parentheses.json index 9f79db2f2..8bdd8f4e0 100644 --- a/test/fixtures/tree/links-url-escaped-parentheses.json +++ b/test/fixtures/tree/links-url-escaped-parentheses.json @@ -22,8 +22,7 @@ "line": 1, "column": 7, "offset": 6 - }, - "indent": [] + } } } ], @@ -37,8 +36,7 @@ "line": 1, "column": 37, "offset": 36 - }, - "indent": [] + } } }, { @@ -54,8 +52,7 @@ "line": 1, "column": 38, "offset": 37 - }, - "indent": [] + } } } ], @@ -69,8 +66,7 @@ "line": 1, "column": 38, "offset": 37 - }, - "indent": [] + } } }, { @@ -94,8 +90,7 @@ "line": 3, "column": 7, "offset": 45 - }, - "indent": [] + } } } ], @@ -109,8 +104,7 @@ "line": 3, "column": 39, "offset": 77 - }, - "indent": [] + } } }, { @@ -126,8 +120,7 @@ "line": 3, "column": 40, "offset": 78 - }, - "indent": [] + } } } ], @@ -141,8 +134,7 @@ "line": 3, "column": 40, "offset": 78 - }, - "indent": [] + } } }, { @@ -166,8 +158,7 @@ "line": 5, "column": 7, "offset": 86 - }, - "indent": [] + } } } ], @@ -181,8 +172,7 @@ "line": 5, "column": 36, "offset": 115 - }, - "indent": [] + } } }, { @@ -198,8 +188,7 @@ "line": 5, "column": 37, "offset": 116 - }, - "indent": [] + } } } ], @@ -213,8 +202,7 @@ "line": 5, "column": 37, "offset": 116 - }, - "indent": [] + } } }, { @@ -238,8 +226,7 @@ "line": 7, "column": 7, "offset": 124 - }, - "indent": [] + } } } ], @@ -253,8 +240,7 @@ "line": 7, "column": 38, "offset": 155 - }, - "indent": [] + } } }, { @@ -270,8 +256,7 @@ "line": 7, "column": 39, "offset": 156 - }, - "indent": [] + } } } ], @@ -285,8 +270,7 @@ "line": 7, "column": 39, "offset": 156 - }, - "indent": [] + } } }, { @@ -307,8 +291,7 @@ "line": 9, "column": 38, "offset": 195 - }, - "indent": [] + } } }, { @@ -324,8 +307,7 @@ "line": 9, "column": 39, "offset": 196 - }, - "indent": [] + } } } ], @@ -339,8 +321,7 @@ "line": 9, "column": 39, "offset": 196 - }, - "indent": [] + } } }, { @@ -361,8 +342,7 @@ "line": 11, "column": 40, "offset": 237 - }, - "indent": [] + } } }, { @@ -378,8 +358,7 @@ "line": 11, "column": 41, "offset": 238 - }, - "indent": [] + } } } ], @@ -393,8 +372,7 @@ "line": 11, "column": 41, "offset": 238 - }, - "indent": [] + } } }, { @@ -415,8 +393,7 @@ "line": 13, "column": 37, "offset": 276 - }, - "indent": [] + } } }, { @@ -432,8 +409,7 @@ "line": 13, "column": 38, "offset": 277 - }, - "indent": [] + } } } ], @@ -447,8 +423,7 @@ "line": 13, "column": 38, "offset": 277 - }, - "indent": [] + } } }, { @@ -469,8 +444,7 @@ "line": 15, "column": 39, "offset": 317 - }, - "indent": [] + } } }, { @@ -486,8 +460,7 @@ "line": 15, "column": 40, "offset": 318 - }, - "indent": [] + } } } ], @@ -501,8 +474,7 @@ "line": 15, "column": 40, "offset": 318 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/links-url-escaped-parentheses.nogfm.json b/test/fixtures/tree/links-url-escaped-parentheses.nogfm.json deleted file mode 100644 index 9f79db2f2..000000000 --- a/test/fixtures/tree/links-url-escaped-parentheses.nogfm.json +++ /dev/null @@ -1,521 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./world(and-hello(world)", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 37, - "offset": 36 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 37, - "offset": 36 - }, - "end": { - "line": 1, - "column": 38, - "offset": 37 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 38, - "offset": 37 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./world(and-hello(world)", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 40 - }, - "end": { - "line": 3, - "column": 7, - "offset": 45 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 39 - }, - "end": { - "line": 3, - "column": 39, - "offset": 77 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 39, - "offset": 77 - }, - "end": { - "line": 3, - "column": 40, - "offset": 78 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 39 - }, - "end": { - "line": 3, - "column": 40, - "offset": 78 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./world(and)helloworld)", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 5, - "column": 2, - "offset": 81 - }, - "end": { - "line": 5, - "column": 7, - "offset": 86 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 80 - }, - "end": { - "line": 5, - "column": 36, - "offset": 115 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 36, - "offset": 115 - }, - "end": { - "line": 5, - "column": 37, - "offset": 116 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 80 - }, - "end": { - "line": 5, - "column": 37, - "offset": 116 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./world(and)helloworld)", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 7, - "column": 2, - "offset": 119 - }, - "end": { - "line": 7, - "column": 7, - "offset": 124 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 118 - }, - "end": { - "line": 7, - "column": 38, - "offset": 155 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 38, - "offset": 155 - }, - "end": { - "line": 7, - "column": 39, - "offset": 156 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 118 - }, - "end": { - "line": 7, - "column": 39, - "offset": 156 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./world(and-hello(world)", - "alt": "Hello", - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 158 - }, - "end": { - "line": 9, - "column": 38, - "offset": 195 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 9, - "column": 38, - "offset": 195 - }, - "end": { - "line": 9, - "column": 39, - "offset": 196 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 158 - }, - "end": { - "line": 9, - "column": 39, - "offset": 196 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./world(and-hello(world)", - "alt": "Hello", - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 198 - }, - "end": { - "line": 11, - "column": 40, - "offset": 237 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 11, - "column": 40, - "offset": 237 - }, - "end": { - "line": 11, - "column": 41, - "offset": 238 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 198 - }, - "end": { - "line": 11, - "column": 41, - "offset": 238 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./world(and)helloworld)", - "alt": "Hello", - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 240 - }, - "end": { - "line": 13, - "column": 37, - "offset": 276 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 13, - "column": 37, - "offset": 276 - }, - "end": { - "line": 13, - "column": 38, - "offset": 277 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 240 - }, - "end": { - "line": 13, - "column": 38, - "offset": 277 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./world(and)helloworld)", - "alt": "Hello", - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 279 - }, - "end": { - "line": 15, - "column": 39, - "offset": 317 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 15, - "column": 39, - "offset": 317 - }, - "end": { - "line": 15, - "column": 40, - "offset": 318 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 279 - }, - "end": { - "line": 15, - "column": 40, - "offset": 318 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 16, - "column": 1, - "offset": 319 - } - } -} diff --git a/test/fixtures/tree/links-url-mismatched-parentheses.commonmark.json b/test/fixtures/tree/links-url-mismatched-parentheses.commonmark.json deleted file mode 100644 index 4fe66ed5e..000000000 --- a/test/fixtures/tree/links-url-mismatched-parentheses.commonmark.json +++ /dev/null @@ -1,523 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "Hello", - "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": "text", - "value": "(./world(and-hello(world)).", - "position": { - "start": { - "line": 1, - "column": 8, - "offset": 7 - }, - "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": "link", - "title": null, - "url": "./world(and-hello(world)", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 37 - }, - "end": { - "line": 3, - "column": 7, - "offset": 42 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 36 - }, - "end": { - "line": 3, - "column": 36, - "offset": 71 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 36, - "offset": 71 - }, - "end": { - "line": 3, - "column": 37, - "offset": 72 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 36 - }, - "end": { - "line": 3, - "column": 37, - "offset": 72 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./world(and)helloworld", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 5, - "column": 2, - "offset": 75 - }, - "end": { - "line": 5, - "column": 7, - "offset": 80 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 74 - }, - "end": { - "line": 5, - "column": 32, - "offset": 105 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ").", - "position": { - "start": { - "line": 5, - "column": 32, - "offset": 105 - }, - "end": { - "line": 5, - "column": 34, - "offset": 107 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 74 - }, - "end": { - "line": 5, - "column": 34, - "offset": 107 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./world(and)helloworld)", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 7, - "column": 2, - "offset": 110 - }, - "end": { - "line": 7, - "column": 7, - "offset": 115 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 109 - }, - "end": { - "line": 7, - "column": 35, - "offset": 143 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 35, - "offset": 143 - }, - "end": { - "line": 7, - "column": 36, - "offset": 144 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 109 - }, - "end": { - "line": 7, - "column": 36, - "offset": 144 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "imageReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "alt": "Hello", - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 146 - }, - "end": { - "line": 9, - "column": 9, - "offset": 154 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(./world(and-hello(world)).", - "position": { - "start": { - "line": 9, - "column": 9, - "offset": 154 - }, - "end": { - "line": 9, - "column": 36, - "offset": 181 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 146 - }, - "end": { - "line": 9, - "column": 36, - "offset": 181 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./world(and-hello(world)", - "alt": "Hello", - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 183 - }, - "end": { - "line": 11, - "column": 37, - "offset": 219 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 11, - "column": 37, - "offset": 219 - }, - "end": { - "line": 11, - "column": 38, - "offset": 220 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 183 - }, - "end": { - "line": 11, - "column": 38, - "offset": 220 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./world(and)helloworld", - "alt": "Hello", - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 222 - }, - "end": { - "line": 13, - "column": 33, - "offset": 254 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ").", - "position": { - "start": { - "line": 13, - "column": 33, - "offset": 254 - }, - "end": { - "line": 13, - "column": 35, - "offset": 256 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 222 - }, - "end": { - "line": 13, - "column": 35, - "offset": 256 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./world(and)helloworld)", - "alt": "Hello", - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 258 - }, - "end": { - "line": 15, - "column": 36, - "offset": 293 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 15, - "column": 36, - "offset": 293 - }, - "end": { - "line": 15, - "column": 37, - "offset": 294 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 258 - }, - "end": { - "line": 15, - "column": 37, - "offset": 294 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 16, - "column": 1, - "offset": 295 - } - } -} diff --git a/test/fixtures/tree/links-url-mismatched-parentheses.json b/test/fixtures/tree/links-url-mismatched-parentheses.json index 4fe66ed5e..ec68a10f2 100644 --- a/test/fixtures/tree/links-url-mismatched-parentheses.json +++ b/test/fixtures/tree/links-url-mismatched-parentheses.json @@ -5,58 +5,19 @@ "type": "paragraph", "children": [ { - "type": "linkReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - } - ], + "type": "text", + "value": "[Hello](./world(and-hello(world)).", "position": { "start": { "line": 1, "column": 1, "offset": 0 }, - "end": { - "line": 1, - "column": 8, - "offset": 7 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(./world(and-hello(world)).", - "position": { - "start": { - "line": 1, - "column": 8, - "offset": 7 - }, "end": { "line": 1, "column": 35, "offset": 34 - }, - "indent": [] + } } } ], @@ -70,8 +31,7 @@ "line": 1, "column": 35, "offset": 34 - }, - "indent": [] + } } }, { @@ -95,8 +55,7 @@ "line": 3, "column": 7, "offset": 42 - }, - "indent": [] + } } } ], @@ -110,8 +69,7 @@ "line": 3, "column": 36, "offset": 71 - }, - "indent": [] + } } }, { @@ -127,8 +85,7 @@ "line": 3, "column": 37, "offset": 72 - }, - "indent": [] + } } } ], @@ -142,8 +99,7 @@ "line": 3, "column": 37, "offset": 72 - }, - "indent": [] + } } }, { @@ -167,8 +123,7 @@ "line": 5, "column": 7, "offset": 80 - }, - "indent": [] + } } } ], @@ -182,8 +137,7 @@ "line": 5, "column": 32, "offset": 105 - }, - "indent": [] + } } }, { @@ -199,8 +153,7 @@ "line": 5, "column": 34, "offset": 107 - }, - "indent": [] + } } } ], @@ -214,8 +167,7 @@ "line": 5, "column": 34, "offset": 107 - }, - "indent": [] + } } }, { @@ -239,8 +191,7 @@ "line": 7, "column": 7, "offset": 115 - }, - "indent": [] + } } } ], @@ -254,8 +205,7 @@ "line": 7, "column": 35, "offset": 143 - }, - "indent": [] + } } }, { @@ -271,8 +221,7 @@ "line": 7, "column": 36, "offset": 144 - }, - "indent": [] + } } } ], @@ -286,48 +235,26 @@ "line": 7, "column": 36, "offset": 144 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "imageReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "alt": "Hello", + "type": "text", + "value": "![Hello](./world(and-hello(world)).", "position": { "start": { "line": 9, "column": 1, "offset": 146 }, - "end": { - "line": 9, - "column": 9, - "offset": 154 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(./world(and-hello(world)).", - "position": { - "start": { - "line": 9, - "column": 9, - "offset": 154 - }, "end": { "line": 9, "column": 36, "offset": 181 - }, - "indent": [] + } } } ], @@ -341,8 +268,7 @@ "line": 9, "column": 36, "offset": 181 - }, - "indent": [] + } } }, { @@ -363,8 +289,7 @@ "line": 11, "column": 37, "offset": 219 - }, - "indent": [] + } } }, { @@ -380,8 +305,7 @@ "line": 11, "column": 38, "offset": 220 - }, - "indent": [] + } } } ], @@ -395,8 +319,7 @@ "line": 11, "column": 38, "offset": 220 - }, - "indent": [] + } } }, { @@ -417,8 +340,7 @@ "line": 13, "column": 33, "offset": 254 - }, - "indent": [] + } } }, { @@ -434,8 +356,7 @@ "line": 13, "column": 35, "offset": 256 - }, - "indent": [] + } } } ], @@ -449,8 +370,7 @@ "line": 13, "column": 35, "offset": 256 - }, - "indent": [] + } } }, { @@ -471,8 +391,7 @@ "line": 15, "column": 36, "offset": 293 - }, - "indent": [] + } } }, { @@ -488,8 +407,7 @@ "line": 15, "column": 37, "offset": 294 - }, - "indent": [] + } } } ], @@ -503,8 +421,7 @@ "line": 15, "column": 37, "offset": 294 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/links-url-mismatched-parentheses.nogfm.json b/test/fixtures/tree/links-url-mismatched-parentheses.nogfm.json deleted file mode 100644 index 4fe66ed5e..000000000 --- a/test/fixtures/tree/links-url-mismatched-parentheses.nogfm.json +++ /dev/null @@ -1,523 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "Hello", - "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": "text", - "value": "(./world(and-hello(world)).", - "position": { - "start": { - "line": 1, - "column": 8, - "offset": 7 - }, - "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": "link", - "title": null, - "url": "./world(and-hello(world)", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 37 - }, - "end": { - "line": 3, - "column": 7, - "offset": 42 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 36 - }, - "end": { - "line": 3, - "column": 36, - "offset": 71 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 36, - "offset": 71 - }, - "end": { - "line": 3, - "column": 37, - "offset": 72 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 36 - }, - "end": { - "line": 3, - "column": 37, - "offset": 72 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./world(and)helloworld", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 5, - "column": 2, - "offset": 75 - }, - "end": { - "line": 5, - "column": 7, - "offset": 80 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 74 - }, - "end": { - "line": 5, - "column": 32, - "offset": 105 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ").", - "position": { - "start": { - "line": 5, - "column": 32, - "offset": 105 - }, - "end": { - "line": 5, - "column": 34, - "offset": 107 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 74 - }, - "end": { - "line": 5, - "column": 34, - "offset": 107 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./world(and)helloworld)", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 7, - "column": 2, - "offset": 110 - }, - "end": { - "line": 7, - "column": 7, - "offset": 115 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 109 - }, - "end": { - "line": 7, - "column": 35, - "offset": 143 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 35, - "offset": 143 - }, - "end": { - "line": 7, - "column": 36, - "offset": 144 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 109 - }, - "end": { - "line": 7, - "column": 36, - "offset": 144 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "imageReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "alt": "Hello", - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 146 - }, - "end": { - "line": 9, - "column": 9, - "offset": 154 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(./world(and-hello(world)).", - "position": { - "start": { - "line": 9, - "column": 9, - "offset": 154 - }, - "end": { - "line": 9, - "column": 36, - "offset": 181 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 146 - }, - "end": { - "line": 9, - "column": 36, - "offset": 181 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./world(and-hello(world)", - "alt": "Hello", - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 183 - }, - "end": { - "line": 11, - "column": 37, - "offset": 219 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 11, - "column": 37, - "offset": 219 - }, - "end": { - "line": 11, - "column": 38, - "offset": 220 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 183 - }, - "end": { - "line": 11, - "column": 38, - "offset": 220 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./world(and)helloworld", - "alt": "Hello", - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 222 - }, - "end": { - "line": 13, - "column": 33, - "offset": 254 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ").", - "position": { - "start": { - "line": 13, - "column": 33, - "offset": 254 - }, - "end": { - "line": 13, - "column": 35, - "offset": 256 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 222 - }, - "end": { - "line": 13, - "column": 35, - "offset": 256 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./world(and)helloworld)", - "alt": "Hello", - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 258 - }, - "end": { - "line": 15, - "column": 36, - "offset": 293 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 15, - "column": 36, - "offset": 293 - }, - "end": { - "line": 15, - "column": 37, - "offset": 294 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 258 - }, - "end": { - "line": 15, - "column": 37, - "offset": 294 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 16, - "column": 1, - "offset": 295 - } - } -} diff --git a/test/fixtures/tree/links-url-nested-parentheses.commonmark.json b/test/fixtures/tree/links-url-nested-parentheses.commonmark.json deleted file mode 100644 index 19a272b57..000000000 --- a/test/fixtures/tree/links-url-nested-parentheses.commonmark.json +++ /dev/null @@ -1,269 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./world(and)hello(world)", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "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": "link", - "title": null, - "url": "./world(and)hello(world)", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 37 - }, - "end": { - "line": 3, - "column": 7, - "offset": 42 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 36 - }, - "end": { - "line": 3, - "column": 36, - "offset": 71 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 36, - "offset": 71 - }, - "end": { - "line": 3, - "column": 37, - "offset": 72 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 36 - }, - "end": { - "line": 3, - "column": 37, - "offset": 72 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./world(and)hello(world)", - "alt": "Hello", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 74 - }, - "end": { - "line": 5, - "column": 35, - "offset": 108 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 35, - "offset": 108 - }, - "end": { - "line": 5, - "column": 36, - "offset": 109 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 74 - }, - "end": { - "line": 5, - "column": 36, - "offset": 109 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./world(and)hello(world)", - "alt": "Hello", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 111 - }, - "end": { - "line": 7, - "column": 37, - "offset": 147 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 37, - "offset": 147 - }, - "end": { - "line": 7, - "column": 38, - "offset": 148 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 111 - }, - "end": { - "line": 7, - "column": 38, - "offset": 148 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 149 - } - } -} diff --git a/test/fixtures/tree/links-url-nested-parentheses.json b/test/fixtures/tree/links-url-nested-parentheses.json index 19a272b57..5a302e99c 100644 --- a/test/fixtures/tree/links-url-nested-parentheses.json +++ b/test/fixtures/tree/links-url-nested-parentheses.json @@ -22,8 +22,7 @@ "line": 1, "column": 7, "offset": 6 - }, - "indent": [] + } } } ], @@ -37,8 +36,7 @@ "line": 1, "column": 34, "offset": 33 - }, - "indent": [] + } } }, { @@ -54,8 +52,7 @@ "line": 1, "column": 35, "offset": 34 - }, - "indent": [] + } } } ], @@ -69,8 +66,7 @@ "line": 1, "column": 35, "offset": 34 - }, - "indent": [] + } } }, { @@ -94,8 +90,7 @@ "line": 3, "column": 7, "offset": 42 - }, - "indent": [] + } } } ], @@ -109,8 +104,7 @@ "line": 3, "column": 36, "offset": 71 - }, - "indent": [] + } } }, { @@ -126,8 +120,7 @@ "line": 3, "column": 37, "offset": 72 - }, - "indent": [] + } } } ], @@ -141,8 +134,7 @@ "line": 3, "column": 37, "offset": 72 - }, - "indent": [] + } } }, { @@ -163,8 +155,7 @@ "line": 5, "column": 35, "offset": 108 - }, - "indent": [] + } } }, { @@ -180,8 +171,7 @@ "line": 5, "column": 36, "offset": 109 - }, - "indent": [] + } } } ], @@ -195,8 +185,7 @@ "line": 5, "column": 36, "offset": 109 - }, - "indent": [] + } } }, { @@ -217,8 +206,7 @@ "line": 7, "column": 37, "offset": 147 - }, - "indent": [] + } } }, { @@ -234,8 +222,7 @@ "line": 7, "column": 38, "offset": 148 - }, - "indent": [] + } } } ], @@ -249,8 +236,7 @@ "line": 7, "column": 38, "offset": 148 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/links-url-nested-parentheses.nogfm.json b/test/fixtures/tree/links-url-nested-parentheses.nogfm.json deleted file mode 100644 index 19a272b57..000000000 --- a/test/fixtures/tree/links-url-nested-parentheses.nogfm.json +++ /dev/null @@ -1,269 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./world(and)hello(world)", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "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": "link", - "title": null, - "url": "./world(and)hello(world)", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 37 - }, - "end": { - "line": 3, - "column": 7, - "offset": 42 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 36 - }, - "end": { - "line": 3, - "column": 36, - "offset": 71 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 36, - "offset": 71 - }, - "end": { - "line": 3, - "column": 37, - "offset": 72 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 36 - }, - "end": { - "line": 3, - "column": 37, - "offset": 72 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./world(and)hello(world)", - "alt": "Hello", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 74 - }, - "end": { - "line": 5, - "column": 35, - "offset": 108 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 35, - "offset": 108 - }, - "end": { - "line": 5, - "column": 36, - "offset": 109 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 74 - }, - "end": { - "line": 5, - "column": 36, - "offset": 109 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./world(and)hello(world)", - "alt": "Hello", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 111 - }, - "end": { - "line": 7, - "column": 37, - "offset": 147 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 37, - "offset": 147 - }, - "end": { - "line": 7, - "column": 38, - "offset": 148 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 111 - }, - "end": { - "line": 7, - "column": 38, - "offset": 148 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 149 - } - } -} diff --git a/test/fixtures/tree/links-url-new-line.commonmark.json b/test/fixtures/tree/links-url-new-line.commonmark.json deleted file mode 100644 index 8cc4fde07..000000000 --- a/test/fixtures/tree/links-url-new-line.commonmark.json +++ /dev/null @@ -1,289 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "Hello", - "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": "text", - "value": "(./wo\nrld.html).", - "position": { - "start": { - "line": 1, - "column": 8, - "offset": 7 - }, - "end": { - "line": 2, - "column": 11, - "offset": 23 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 11, - "offset": 23 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 4, - "column": 2, - "offset": 26 - }, - "end": { - "line": 4, - "column": 7, - "offset": 31 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 25 - }, - "end": { - "line": 4, - "column": 8, - "offset": 32 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(<./wo\nrld.html>).", - "position": { - "start": { - "line": 4, - "column": 8, - "offset": 32 - }, - "end": { - "line": 5, - "column": 12, - "offset": 50 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 25 - }, - "end": { - "line": 5, - "column": 12, - "offset": 50 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "imageReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "alt": "Hello", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 52 - }, - "end": { - "line": 7, - "column": 9, - "offset": 60 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(./wo\nrld.png).", - "position": { - "start": { - "line": 7, - "column": 9, - "offset": 60 - }, - "end": { - "line": 8, - "column": 10, - "offset": 75 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 52 - }, - "end": { - "line": 8, - "column": 10, - "offset": 75 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "imageReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "alt": "Hello", - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 77 - }, - "end": { - "line": 10, - "column": 9, - "offset": 85 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(<./wo\nrld.png>).", - "position": { - "start": { - "line": 10, - "column": 9, - "offset": 85 - }, - "end": { - "line": 11, - "column": 11, - "offset": 102 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 77 - }, - "end": { - "line": 11, - "column": 11, - "offset": 102 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 12, - "column": 1, - "offset": 103 - } - } -} diff --git a/test/fixtures/tree/links-url-new-line.json b/test/fixtures/tree/links-url-new-line.json index 424236e18..b60378d2b 100644 --- a/test/fixtures/tree/links-url-new-line.json +++ b/test/fixtures/tree/links-url-new-line.json @@ -5,60 +5,19 @@ "type": "paragraph", "children": [ { - "type": "linkReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - } - ], + "type": "text", + "value": "[Hello](./wo\nrld.html).", "position": { "start": { "line": 1, "column": 1, "offset": 0 }, - "end": { - "line": 1, - "column": 8, - "offset": 7 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(./wo\nrld.html).", - "position": { - "start": { - "line": 1, - "column": 8, - "offset": 7 - }, "end": { "line": 2, "column": 11, "offset": 23 - }, - "indent": [ - 1 - ] + } } } ], @@ -72,69 +31,26 @@ "line": 2, "column": 11, "offset": 23 - }, - "indent": [ - 1 - ] + } } }, { "type": "paragraph", "children": [ { - "type": "link", - "title": null, - "url": "./wo\nrld.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 4, - "column": 2, - "offset": 26 - }, - "end": { - "line": 4, - "column": 7, - "offset": 31 - }, - "indent": [] - } - } - ], + "type": "text", + "value": "[Hello](<./wo\nrld.html>).", "position": { "start": { "line": 4, "column": 1, "offset": 25 }, - "end": { - "line": 5, - "column": 11, - "offset": 49 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 11, - "offset": 49 - }, "end": { "line": 5, "column": 12, "offset": 50 - }, - "indent": [] + } } } ], @@ -148,52 +64,26 @@ "line": 5, "column": 12, "offset": 50 - }, - "indent": [ - 1 - ] + } } }, { "type": "paragraph", "children": [ { - "type": "imageReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "alt": "Hello", + "type": "text", + "value": "![Hello](./wo\nrld.png).", "position": { "start": { "line": 7, "column": 1, "offset": 52 }, - "end": { - "line": 7, - "column": 9, - "offset": 60 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(./wo\nrld.png).", - "position": { - "start": { - "line": 7, - "column": 9, - "offset": 60 - }, "end": { "line": 8, "column": 10, "offset": 75 - }, - "indent": [ - 1 - ] + } } } ], @@ -207,51 +97,26 @@ "line": 8, "column": 10, "offset": 75 - }, - "indent": [ - 1 - ] + } } }, { "type": "paragraph", "children": [ { - "type": "image", - "title": null, - "url": "./wo\nrld.png", - "alt": "Hello", + "type": "text", + "value": "![Hello](<./wo\nrld.png>).", "position": { "start": { "line": 10, "column": 1, "offset": 77 }, - "end": { - "line": 11, - "column": 10, - "offset": 101 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 11, - "column": 10, - "offset": 101 - }, "end": { "line": 11, "column": 11, "offset": 102 - }, - "indent": [] + } } } ], @@ -265,10 +130,7 @@ "line": 11, "column": 11, "offset": 102 - }, - "indent": [ - 1 - ] + } } } ], diff --git a/test/fixtures/tree/links-url-new-line.nogfm.json b/test/fixtures/tree/links-url-new-line.nogfm.json deleted file mode 100644 index 424236e18..000000000 --- a/test/fixtures/tree/links-url-new-line.nogfm.json +++ /dev/null @@ -1,287 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "Hello", - "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": "text", - "value": "(./wo\nrld.html).", - "position": { - "start": { - "line": 1, - "column": 8, - "offset": 7 - }, - "end": { - "line": 2, - "column": 11, - "offset": 23 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 11, - "offset": 23 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./wo\nrld.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 4, - "column": 2, - "offset": 26 - }, - "end": { - "line": 4, - "column": 7, - "offset": 31 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 25 - }, - "end": { - "line": 5, - "column": 11, - "offset": 49 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 5, - "column": 11, - "offset": 49 - }, - "end": { - "line": 5, - "column": 12, - "offset": 50 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 25 - }, - "end": { - "line": 5, - "column": 12, - "offset": 50 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "imageReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "alt": "Hello", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 52 - }, - "end": { - "line": 7, - "column": 9, - "offset": 60 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(./wo\nrld.png).", - "position": { - "start": { - "line": 7, - "column": 9, - "offset": 60 - }, - "end": { - "line": 8, - "column": 10, - "offset": 75 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 52 - }, - "end": { - "line": 8, - "column": 10, - "offset": 75 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./wo\nrld.png", - "alt": "Hello", - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 77 - }, - "end": { - "line": 11, - "column": 10, - "offset": 101 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 11, - "column": 10, - "offset": 101 - }, - "end": { - "line": 11, - "column": 11, - "offset": 102 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 77 - }, - "end": { - "line": 11, - "column": 11, - "offset": 102 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 12, - "column": 1, - "offset": 103 - } - } -} diff --git a/test/fixtures/tree/links-url-unclosed.json b/test/fixtures/tree/links-url-unclosed.json index 1d479482c..10a93704a 100644 --- a/test/fixtures/tree/links-url-unclosed.json +++ b/test/fixtures/tree/links-url-unclosed.json @@ -5,58 +5,19 @@ "type": "paragraph", "children": [ { - "type": "linkReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - } - ], + "type": "text", + "value": "[Hello](", "position": { "start": { "line": 1, "column": 1, "offset": 0 }, - "end": { - "line": 1, - "column": 8, - "offset": 7 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(", - "position": { - "start": { - "line": 1, - "column": 8, - "offset": 7 - }, "end": { "line": 1, "column": 9, "offset": 8 - }, - "indent": [] + } } } ], @@ -70,66 +31,26 @@ "line": 1, "column": 9, "offset": 8 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "linkReference", - "identifier": "world", - "label": "World", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "World", - "position": { - "start": { - "line": 4, - "column": 2, - "offset": 12 - }, - "end": { - "line": 4, - "column": 7, - "offset": 17 - }, - "indent": [] - } - } - ], + "type": "text", + "value": "[World](<", "position": { "start": { "line": 4, "column": 1, "offset": 11 }, - "end": { - "line": 4, - "column": 8, - "offset": 18 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(<", - "position": { - "start": { - "line": 4, - "column": 8, - "offset": 18 - }, "end": { "line": 4, "column": 10, "offset": 20 - }, - "indent": [] + } } } ], @@ -143,48 +64,26 @@ "line": 4, "column": 10, "offset": 20 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "imageReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "alt": "Hello", + "type": "text", + "value": "![Hello](", "position": { "start": { "line": 7, "column": 1, "offset": 23 }, - "end": { - "line": 7, - "column": 9, - "offset": 31 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(", - "position": { - "start": { - "line": 7, - "column": 9, - "offset": 31 - }, "end": { "line": 7, "column": 10, "offset": 32 - }, - "indent": [] + } } } ], @@ -198,48 +97,26 @@ "line": 7, "column": 10, "offset": 32 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "imageReference", - "identifier": "world", - "label": "World", - "referenceType": "shortcut", - "alt": "World", + "type": "text", + "value": "![World](<", "position": { "start": { "line": 10, "column": 1, "offset": 35 }, - "end": { - "line": 10, - "column": 9, - "offset": 43 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(<", - "position": { - "start": { - "line": 10, - "column": 9, - "offset": 43 - }, "end": { "line": 10, "column": 11, "offset": 45 - }, - "indent": [] + } } } ], @@ -253,8 +130,7 @@ "line": 10, "column": 11, "offset": 45 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/links-url-white-space.commonmark.json b/test/fixtures/tree/links-url-white-space.commonmark.json deleted file mode 100644 index 4c037aa51..000000000 --- a/test/fixtures/tree/links-url-white-space.commonmark.json +++ /dev/null @@ -1,271 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "Hello", - "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": "text", - "value": "(./wo rld.html).", - "position": { - "start": { - "line": 1, - "column": 8, - "offset": 7 - }, - "end": { - "line": 1, - "column": 24, - "offset": 23 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 24, - "offset": 23 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./wo rld.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 26 - }, - "end": { - "line": 3, - "column": 7, - "offset": 31 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 25 - }, - "end": { - "line": 3, - "column": 25, - "offset": 49 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 25, - "offset": 49 - }, - "end": { - "line": 3, - "column": 26, - "offset": 50 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 25 - }, - "end": { - "line": 3, - "column": 26, - "offset": 50 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "imageReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "alt": "Hello", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 52 - }, - "end": { - "line": 5, - "column": 9, - "offset": 60 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(./wo rld.png).", - "position": { - "start": { - "line": 5, - "column": 9, - "offset": 60 - }, - "end": { - "line": 5, - "column": 24, - "offset": 75 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 52 - }, - "end": { - "line": 5, - "column": 24, - "offset": 75 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./wo rld.png", - "alt": "Hello", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 77 - }, - "end": { - "line": 7, - "column": 25, - "offset": 101 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 25, - "offset": 101 - }, - "end": { - "line": 7, - "column": 26, - "offset": 102 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 77 - }, - "end": { - "line": 7, - "column": 26, - "offset": 102 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 103 - } - } -} diff --git a/test/fixtures/tree/links-url-white-space.json b/test/fixtures/tree/links-url-white-space.json index 4c037aa51..4f4c82294 100644 --- a/test/fixtures/tree/links-url-white-space.json +++ b/test/fixtures/tree/links-url-white-space.json @@ -5,58 +5,19 @@ "type": "paragraph", "children": [ { - "type": "linkReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - } - ], + "type": "text", + "value": "[Hello](./wo rld.html).", "position": { "start": { "line": 1, "column": 1, "offset": 0 }, - "end": { - "line": 1, - "column": 8, - "offset": 7 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(./wo rld.html).", - "position": { - "start": { - "line": 1, - "column": 8, - "offset": 7 - }, "end": { "line": 1, "column": 24, "offset": 23 - }, - "indent": [] + } } } ], @@ -70,8 +31,7 @@ "line": 1, "column": 24, "offset": 23 - }, - "indent": [] + } } }, { @@ -95,8 +55,7 @@ "line": 3, "column": 7, "offset": 31 - }, - "indent": [] + } } } ], @@ -110,8 +69,7 @@ "line": 3, "column": 25, "offset": 49 - }, - "indent": [] + } } }, { @@ -127,8 +85,7 @@ "line": 3, "column": 26, "offset": 50 - }, - "indent": [] + } } } ], @@ -142,48 +99,26 @@ "line": 3, "column": 26, "offset": 50 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "imageReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "alt": "Hello", + "type": "text", + "value": "![Hello](./wo rld.png).", "position": { "start": { "line": 5, "column": 1, "offset": 52 }, - "end": { - "line": 5, - "column": 9, - "offset": 60 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(./wo rld.png).", - "position": { - "start": { - "line": 5, - "column": 9, - "offset": 60 - }, "end": { "line": 5, "column": 24, "offset": 75 - }, - "indent": [] + } } } ], @@ -197,8 +132,7 @@ "line": 5, "column": 24, "offset": 75 - }, - "indent": [] + } } }, { @@ -219,8 +153,7 @@ "line": 7, "column": 25, "offset": 101 - }, - "indent": [] + } } }, { @@ -236,8 +169,7 @@ "line": 7, "column": 26, "offset": 102 - }, - "indent": [] + } } } ], @@ -251,8 +183,7 @@ "line": 7, "column": 26, "offset": 102 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/links-url-white-space.nogfm.json b/test/fixtures/tree/links-url-white-space.nogfm.json deleted file mode 100644 index 4c037aa51..000000000 --- a/test/fixtures/tree/links-url-white-space.nogfm.json +++ /dev/null @@ -1,271 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "Hello", - "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": "text", - "value": "(./wo rld.html).", - "position": { - "start": { - "line": 1, - "column": 8, - "offset": 7 - }, - "end": { - "line": 1, - "column": 24, - "offset": 23 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 24, - "offset": 23 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "./wo rld.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 26 - }, - "end": { - "line": 3, - "column": 7, - "offset": 31 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 25 - }, - "end": { - "line": 3, - "column": 25, - "offset": 49 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 3, - "column": 25, - "offset": 49 - }, - "end": { - "line": 3, - "column": 26, - "offset": 50 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 25 - }, - "end": { - "line": 3, - "column": 26, - "offset": 50 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "imageReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "alt": "Hello", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 52 - }, - "end": { - "line": 5, - "column": 9, - "offset": 60 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(./wo rld.png).", - "position": { - "start": { - "line": 5, - "column": 9, - "offset": 60 - }, - "end": { - "line": 5, - "column": 24, - "offset": 75 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 52 - }, - "end": { - "line": 5, - "column": 24, - "offset": 75 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": null, - "url": "./wo rld.png", - "alt": "Hello", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 77 - }, - "end": { - "line": 7, - "column": 25, - "offset": 101 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 7, - "column": 25, - "offset": 101 - }, - "end": { - "line": 7, - "column": 26, - "offset": 102 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 77 - }, - "end": { - "line": 7, - "column": 26, - "offset": 102 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 103 - } - } -} diff --git a/test/fixtures/tree/links.output.noreference-links.json b/test/fixtures/tree/links.output.noreference-links.json index 355e545d5..dd2bea5ca 100644 --- a/test/fixtures/tree/links.output.noreference-links.json +++ b/test/fixtures/tree/links.output.noreference-links.json @@ -17,8 +17,7 @@ "line": 1, "column": 23, "offset": 22 - }, - "indent": [] + } } }, { @@ -39,8 +38,7 @@ "line": 1, "column": 28, "offset": 27 - }, - "indent": [] + } } } ], @@ -54,8 +52,7 @@ "line": 1, "column": 53, "offset": 52 - }, - "indent": [] + } } }, { @@ -71,8 +68,7 @@ "line": 1, "column": 145, "offset": 144 - }, - "indent": [] + } } } ], @@ -86,8 +82,7 @@ "line": 1, "column": 145, "offset": 144 - }, - "indent": [] + } } }, { @@ -106,8 +101,7 @@ "line": 3, "column": 7, "offset": 152 - }, - "indent": [] + } } }, { @@ -128,8 +122,7 @@ "line": 3, "column": 15, "offset": 160 - }, - "indent": [] + } } } ], @@ -143,8 +136,7 @@ "line": 3, "column": 46, "offset": 191 - }, - "indent": [] + } } }, { @@ -160,8 +152,7 @@ "line": 3, "column": 132, "offset": 277 - }, - "indent": [] + } } }, { @@ -182,8 +173,7 @@ "line": 3, "column": 141, "offset": 286 - }, - "indent": [] + } } } ], @@ -197,8 +187,7 @@ "line": 3, "column": 174, "offset": 319 - }, - "indent": [] + } } }, { @@ -214,8 +203,7 @@ "line": 3, "column": 196, "offset": 341 - }, - "indent": [] + } } } ], @@ -229,8 +217,7 @@ "line": 3, "column": 196, "offset": 341 - }, - "indent": [] + } } }, { @@ -249,8 +236,7 @@ "line": 5, "column": 124, "offset": 466 - }, - "indent": [] + } } }, { @@ -271,8 +257,7 @@ "line": 5, "column": 133, "offset": 475 - }, - "indent": [] + } } } ], @@ -286,8 +271,7 @@ "line": 5, "column": 166, "offset": 508 - }, - "indent": [] + } } }, { @@ -303,8 +287,7 @@ "line": 5, "column": 167, "offset": 509 - }, - "indent": [] + } } } ], @@ -318,8 +301,7 @@ "line": 5, "column": 167, "offset": 509 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/list-after-list.commonmark.json b/test/fixtures/tree/list-after-list.commonmark.json deleted file mode 100644 index 5e0567cd2..000000000 --- a/test/fixtures/tree/list-after-list.commonmark.json +++ /dev/null @@ -1,789 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "item", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "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": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "item", - "position": { - "start": { - "line": 2, - "column": 3, - "offset": 9 - }, - "end": { - "line": 2, - "column": 7, - "offset": 13 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 2, - "column": 3, - "offset": 9 - }, - "end": { - "line": 2, - "column": 7, - "offset": 13 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 2, - "column": 1, - "offset": 7 - }, - "end": { - "line": 2, - "column": 7, - "offset": 13 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "item", - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 16 - }, - "end": { - "line": 3, - "column": 7, - "offset": 20 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 16 - }, - "end": { - "line": 3, - "column": 7, - "offset": 20 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 14 - }, - "end": { - "line": 3, - "column": 7, - "offset": 20 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 3, - "column": 7, - "offset": 20 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "item", - "position": { - "start": { - "line": 5, - "column": 4, - "offset": 25 - }, - "end": { - "line": 5, - "column": 8, - "offset": 29 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 4, - "offset": 25 - }, - "end": { - "line": 5, - "column": 8, - "offset": 29 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 22 - }, - "end": { - "line": 5, - "column": 8, - "offset": 29 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "item", - "position": { - "start": { - "line": 6, - "column": 4, - "offset": 33 - }, - "end": { - "line": 6, - "column": 8, - "offset": 37 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 4, - "offset": 33 - }, - "end": { - "line": 6, - "column": 8, - "offset": 37 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 30 - }, - "end": { - "line": 6, - "column": 8, - "offset": 37 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "item", - "position": { - "start": { - "line": 7, - "column": 4, - "offset": 41 - }, - "end": { - "line": 7, - "column": 8, - "offset": 45 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 4, - "offset": 41 - }, - "end": { - "line": 7, - "column": 8, - "offset": 45 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 38 - }, - "end": { - "line": 7, - "column": 8, - "offset": 45 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 22 - }, - "end": { - "line": 7, - "column": 8, - "offset": 45 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 47 - }, - "end": { - "line": 9, - "column": 4, - "offset": 50 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "item", - "position": { - "start": { - "line": 11, - "column": 3, - "offset": 54 - }, - "end": { - "line": 11, - "column": 7, - "offset": 58 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 3, - "offset": 54 - }, - "end": { - "line": 11, - "column": 7, - "offset": 58 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 52 - }, - "end": { - "line": 11, - "column": 7, - "offset": 58 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "item", - "position": { - "start": { - "line": 12, - "column": 3, - "offset": 61 - }, - "end": { - "line": 12, - "column": 7, - "offset": 65 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 3, - "offset": 61 - }, - "end": { - "line": 12, - "column": 7, - "offset": 65 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 59 - }, - "end": { - "line": 12, - "column": 7, - "offset": 65 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "item", - "position": { - "start": { - "line": 13, - "column": 3, - "offset": 68 - }, - "end": { - "line": 13, - "column": 7, - "offset": 72 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 3, - "offset": 68 - }, - "end": { - "line": 13, - "column": 7, - "offset": 72 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 66 - }, - "end": { - "line": 13, - "column": 7, - "offset": 72 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 52 - }, - "end": { - "line": 13, - "column": 7, - "offset": 72 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "item", - "position": { - "start": { - "line": 14, - "column": 4, - "offset": 76 - }, - "end": { - "line": 14, - "column": 8, - "offset": 80 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 4, - "offset": 76 - }, - "end": { - "line": 14, - "column": 8, - "offset": 80 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 73 - }, - "end": { - "line": 14, - "column": 8, - "offset": 80 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "item", - "position": { - "start": { - "line": 15, - "column": 4, - "offset": 84 - }, - "end": { - "line": 15, - "column": 8, - "offset": 88 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 4, - "offset": 84 - }, - "end": { - "line": 15, - "column": 8, - "offset": 88 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 81 - }, - "end": { - "line": 15, - "column": 8, - "offset": 88 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "item", - "position": { - "start": { - "line": 16, - "column": 4, - "offset": 92 - }, - "end": { - "line": 16, - "column": 8, - "offset": 96 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 4, - "offset": 92 - }, - "end": { - "line": 16, - "column": 8, - "offset": 96 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 89 - }, - "end": { - "line": 16, - "column": 8, - "offset": 96 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 73 - }, - "end": { - "line": 16, - "column": 8, - "offset": 96 - }, - "indent": [ - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 17, - "column": 1, - "offset": 97 - } - } -} diff --git a/test/fixtures/tree/list-after-list.json b/test/fixtures/tree/list-after-list.json index 5e0567cd2..43b719a90 100644 --- a/test/fixtures/tree/list-after-list.json +++ b/test/fixtures/tree/list-after-list.json @@ -28,8 +28,7 @@ "line": 1, "column": 7, "offset": 6 - }, - "indent": [] + } } } ], @@ -43,8 +42,7 @@ "line": 1, "column": 7, "offset": 6 - }, - "indent": [] + } } } ], @@ -58,8 +56,7 @@ "line": 1, "column": 7, "offset": 6 - }, - "indent": [] + } } }, { @@ -83,8 +80,7 @@ "line": 2, "column": 7, "offset": 13 - }, - "indent": [] + } } } ], @@ -98,8 +94,7 @@ "line": 2, "column": 7, "offset": 13 - }, - "indent": [] + } } } ], @@ -113,8 +108,7 @@ "line": 2, "column": 7, "offset": 13 - }, - "indent": [] + } } }, { @@ -138,8 +132,7 @@ "line": 3, "column": 7, "offset": 20 - }, - "indent": [] + } } } ], @@ -153,8 +146,7 @@ "line": 3, "column": 7, "offset": 20 - }, - "indent": [] + } } } ], @@ -168,8 +160,7 @@ "line": 3, "column": 7, "offset": 20 - }, - "indent": [] + } } } ], @@ -183,11 +174,7 @@ "line": 3, "column": 7, "offset": 20 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -217,8 +204,7 @@ "line": 5, "column": 8, "offset": 29 - }, - "indent": [] + } } } ], @@ -232,8 +218,7 @@ "line": 5, "column": 8, "offset": 29 - }, - "indent": [] + } } } ], @@ -247,8 +232,7 @@ "line": 5, "column": 8, "offset": 29 - }, - "indent": [] + } } }, { @@ -272,8 +256,7 @@ "line": 6, "column": 8, "offset": 37 - }, - "indent": [] + } } } ], @@ -287,8 +270,7 @@ "line": 6, "column": 8, "offset": 37 - }, - "indent": [] + } } } ], @@ -302,8 +284,7 @@ "line": 6, "column": 8, "offset": 37 - }, - "indent": [] + } } }, { @@ -327,8 +308,7 @@ "line": 7, "column": 8, "offset": 45 - }, - "indent": [] + } } } ], @@ -342,8 +322,7 @@ "line": 7, "column": 8, "offset": 45 - }, - "indent": [] + } } } ], @@ -357,8 +336,7 @@ "line": 7, "column": 8, "offset": 45 - }, - "indent": [] + } } } ], @@ -372,11 +350,7 @@ "line": 7, "column": 8, "offset": 45 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -391,8 +365,7 @@ "line": 9, "column": 4, "offset": 50 - }, - "indent": [] + } } }, { @@ -422,8 +395,7 @@ "line": 11, "column": 7, "offset": 58 - }, - "indent": [] + } } } ], @@ -437,8 +409,7 @@ "line": 11, "column": 7, "offset": 58 - }, - "indent": [] + } } } ], @@ -452,8 +423,7 @@ "line": 11, "column": 7, "offset": 58 - }, - "indent": [] + } } }, { @@ -477,8 +447,7 @@ "line": 12, "column": 7, "offset": 65 - }, - "indent": [] + } } } ], @@ -492,8 +461,7 @@ "line": 12, "column": 7, "offset": 65 - }, - "indent": [] + } } } ], @@ -507,8 +475,7 @@ "line": 12, "column": 7, "offset": 65 - }, - "indent": [] + } } }, { @@ -532,8 +499,7 @@ "line": 13, "column": 7, "offset": 72 - }, - "indent": [] + } } } ], @@ -547,8 +513,7 @@ "line": 13, "column": 7, "offset": 72 - }, - "indent": [] + } } } ], @@ -562,8 +527,7 @@ "line": 13, "column": 7, "offset": 72 - }, - "indent": [] + } } } ], @@ -577,11 +541,7 @@ "line": 13, "column": 7, "offset": 72 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -611,8 +571,7 @@ "line": 14, "column": 8, "offset": 80 - }, - "indent": [] + } } } ], @@ -626,8 +585,7 @@ "line": 14, "column": 8, "offset": 80 - }, - "indent": [] + } } } ], @@ -641,8 +599,7 @@ "line": 14, "column": 8, "offset": 80 - }, - "indent": [] + } } }, { @@ -666,8 +623,7 @@ "line": 15, "column": 8, "offset": 88 - }, - "indent": [] + } } } ], @@ -681,8 +637,7 @@ "line": 15, "column": 8, "offset": 88 - }, - "indent": [] + } } } ], @@ -696,8 +651,7 @@ "line": 15, "column": 8, "offset": 88 - }, - "indent": [] + } } }, { @@ -721,8 +675,7 @@ "line": 16, "column": 8, "offset": 96 - }, - "indent": [] + } } } ], @@ -736,8 +689,7 @@ "line": 16, "column": 8, "offset": 96 - }, - "indent": [] + } } } ], @@ -751,8 +703,7 @@ "line": 16, "column": 8, "offset": 96 - }, - "indent": [] + } } } ], @@ -766,11 +717,7 @@ "line": 16, "column": 8, "offset": 96 - }, - "indent": [ - 1, - 1 - ] + } } } ], diff --git a/test/fixtures/tree/list-after-list.pedantic.json b/test/fixtures/tree/list-after-list.pedantic.json deleted file mode 100644 index aaf3a98fc..000000000 --- a/test/fixtures/tree/list-after-list.pedantic.json +++ /dev/null @@ -1,750 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "list", - "ordered": false, - "start": null, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "item", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "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": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "item", - "position": { - "start": { - "line": 2, - "column": 3, - "offset": 9 - }, - "end": { - "line": 2, - "column": 7, - "offset": 13 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 2, - "column": 3, - "offset": 9 - }, - "end": { - "line": 2, - "column": 7, - "offset": 13 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 2, - "column": 1, - "offset": 7 - }, - "end": { - "line": 2, - "column": 7, - "offset": 13 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "item", - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 16 - }, - "end": { - "line": 3, - "column": 7, - "offset": 20 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 16 - }, - "end": { - "line": 3, - "column": 7, - "offset": 20 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 14 - }, - "end": { - "line": 4, - "column": 1, - "offset": 21 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "item", - "position": { - "start": { - "line": 5, - "column": 4, - "offset": 25 - }, - "end": { - "line": 5, - "column": 8, - "offset": 29 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 4, - "offset": 25 - }, - "end": { - "line": 5, - "column": 8, - "offset": 29 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 22 - }, - "end": { - "line": 5, - "column": 8, - "offset": 29 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "item", - "position": { - "start": { - "line": 6, - "column": 4, - "offset": 33 - }, - "end": { - "line": 6, - "column": 8, - "offset": 37 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 4, - "offset": 33 - }, - "end": { - "line": 6, - "column": 8, - "offset": 37 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 30 - }, - "end": { - "line": 6, - "column": 8, - "offset": 37 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "item", - "position": { - "start": { - "line": 7, - "column": 4, - "offset": 41 - }, - "end": { - "line": 7, - "column": 8, - "offset": 45 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 4, - "offset": 41 - }, - "end": { - "line": 7, - "column": 8, - "offset": 45 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 38 - }, - "end": { - "line": 7, - "column": 8, - "offset": 45 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 7, - "column": 8, - "offset": 45 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 47 - }, - "end": { - "line": 9, - "column": 4, - "offset": 50 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "item", - "position": { - "start": { - "line": 11, - "column": 3, - "offset": 54 - }, - "end": { - "line": 11, - "column": 7, - "offset": 58 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 3, - "offset": 54 - }, - "end": { - "line": 11, - "column": 7, - "offset": 58 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 52 - }, - "end": { - "line": 11, - "column": 7, - "offset": 58 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "item", - "position": { - "start": { - "line": 12, - "column": 3, - "offset": 61 - }, - "end": { - "line": 12, - "column": 7, - "offset": 65 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 3, - "offset": 61 - }, - "end": { - "line": 12, - "column": 7, - "offset": 65 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 59 - }, - "end": { - "line": 12, - "column": 7, - "offset": 65 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "item", - "position": { - "start": { - "line": 13, - "column": 3, - "offset": 68 - }, - "end": { - "line": 13, - "column": 7, - "offset": 72 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 3, - "offset": 68 - }, - "end": { - "line": 13, - "column": 7, - "offset": 72 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 66 - }, - "end": { - "line": 13, - "column": 7, - "offset": 72 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "item", - "position": { - "start": { - "line": 14, - "column": 4, - "offset": 76 - }, - "end": { - "line": 14, - "column": 8, - "offset": 80 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 4, - "offset": 76 - }, - "end": { - "line": 14, - "column": 8, - "offset": 80 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 73 - }, - "end": { - "line": 14, - "column": 8, - "offset": 80 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "item", - "position": { - "start": { - "line": 15, - "column": 4, - "offset": 84 - }, - "end": { - "line": 15, - "column": 8, - "offset": 88 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 4, - "offset": 84 - }, - "end": { - "line": 15, - "column": 8, - "offset": 88 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 81 - }, - "end": { - "line": 15, - "column": 8, - "offset": 88 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "item", - "position": { - "start": { - "line": 16, - "column": 4, - "offset": 92 - }, - "end": { - "line": 16, - "column": 8, - "offset": 96 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 4, - "offset": 92 - }, - "end": { - "line": 16, - "column": 8, - "offset": 96 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 89 - }, - "end": { - "line": 16, - "column": 8, - "offset": 96 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 52 - }, - "end": { - "line": 16, - "column": 8, - "offset": 96 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 17, - "column": 1, - "offset": 97 - } - } -} diff --git a/test/fixtures/tree/list-and-code.json b/test/fixtures/tree/list-and-code.json index 4ea4d5329..865f31069 100644 --- a/test/fixtures/tree/list-and-code.json +++ b/test/fixtures/tree/list-and-code.json @@ -9,7 +9,7 @@ "children": [ { "type": "listItem", - "spread": false, + "spread": true, "checked": null, "children": [ { @@ -28,8 +28,7 @@ "line": 1, "column": 24, "offset": 23 - }, - "indent": [] + } } } ], @@ -43,8 +42,40 @@ "line": 1, "column": 24, "offset": 23 + } + } + }, + { + "type": "paragraph", + "children": [ + { + "type": "text", + "value": "This is code", + "position": { + "start": { + "line": 4, + "column": 5, + "offset": 30 + }, + "end": { + "line": 4, + "column": 17, + "offset": 42 + } + } + } + ], + "position": { + "start": { + "line": 4, + "column": 5, + "offset": 30 }, - "indent": [] + "end": { + "line": 4, + "column": 17, + "offset": 42 + } } } ], @@ -55,11 +86,10 @@ "offset": 0 }, "end": { - "line": 1, - "column": 24, - "offset": 23 - }, - "indent": [] + "line": 4, + "column": 17, + "offset": 42 + } } } ], @@ -69,31 +99,11 @@ "column": 1, "offset": 0 }, - "end": { - "line": 1, - "column": 24, - "offset": 23 - }, - "indent": [] - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "This is code", - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 26 - }, "end": { "line": 4, "column": 17, "offset": 42 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/list-continuation.commonmark.json b/test/fixtures/tree/list-continuation.commonmark.json deleted file mode 100644 index 206137b93..000000000 --- a/test/fixtures/tree/list-continuation.commonmark.json +++ /dev/null @@ -1,580 +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": "linkReference", - "identifier": "^foo", - "label": "^foo", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "^foo", - "position": { - "start": { - "line": 15, - "column": 5, - "offset": 82 - }, - "end": { - "line": 15, - "column": 9, - "offset": 86 - }, - "indent": [] - } - } - ], - "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": "linkReference", - "identifier": "^foo", - "label": "^foo", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "^foo", - "position": { - "start": { - "line": 16, - "column": 2, - "offset": 89 - }, - "end": { - "line": 16, - "column": 6, - "offset": 93 - }, - "indent": [] - } - } - ], - "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.pedantic.json b/test/fixtures/tree/list-continuation.commonmark.pedantic.json deleted file mode 100644 index 06a1971a2..000000000 --- a/test/fixtures/tree/list-continuation.commonmark.pedantic.json +++ /dev/null @@ -1,543 +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": "linkReference", - "identifier": "^foo", - "label": "^foo", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "^foo", - "position": { - "start": { - "line": 15, - "column": 5, - "offset": 82 - }, - "end": { - "line": 15, - "column": 9, - "offset": 86 - }, - "indent": [] - } - } - ], - "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": "linkReference", - "identifier": "^foo", - "label": "^foo", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "^foo", - "position": { - "start": { - "line": 16, - "column": 2, - "offset": 89 - }, - "end": { - "line": 16, - "column": 6, - "offset": 93 - }, - "indent": [] - } - } - ], - "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.json b/test/fixtures/tree/list-continuation.json index 57d747a28..ad33a570a 100644 --- a/test/fixtures/tree/list-continuation.json +++ b/test/fixtures/tree/list-continuation.json @@ -28,8 +28,7 @@ "line": 1, "column": 7, "offset": 6 - }, - "indent": [] + } } } ], @@ -43,8 +42,7 @@ "line": 1, "column": 7, "offset": 6 - }, - "indent": [] + } } } ], @@ -58,8 +56,7 @@ "line": 1, "column": 7, "offset": 6 - }, - "indent": [] + } } } ], @@ -73,8 +70,7 @@ "line": 1, "column": 7, "offset": 6 - }, - "indent": [] + } } }, { @@ -89,8 +85,7 @@ "line": 2, "column": 4, "offset": 10 - }, - "indent": [] + } } }, { @@ -120,8 +115,7 @@ "line": 5, "column": 7, "offset": 19 - }, - "indent": [] + } } } ], @@ -135,8 +129,7 @@ "line": 5, "column": 7, "offset": 19 - }, - "indent": [] + } } } ], @@ -150,8 +143,7 @@ "line": 5, "column": 7, "offset": 19 - }, - "indent": [] + } } } ], @@ -165,8 +157,7 @@ "line": 5, "column": 7, "offset": 19 - }, - "indent": [] + } } }, { @@ -184,18 +175,14 @@ "line": 8, "column": 4, "offset": 37 - }, - "indent": [ - 1, - 1 - ] + } } }, { "type": "list", "ordered": true, "start": 1, - "spread": false, + "spread": true, "children": [ { "type": "listItem", @@ -206,29 +193,8 @@ "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": [] - } - } - ], + "type": "text", + "value": "[foo][]\n[foo]: http://google.com", "position": { "start": { "line": 11, @@ -236,11 +202,10 @@ "offset": 43 }, "end": { - "line": 11, - "column": 11, - "offset": 50 - }, - "indent": [] + "line": 12, + "column": 25, + "offset": 75 + } } } ], @@ -251,11 +216,10 @@ "offset": 43 }, "end": { - "line": 11, - "column": 11, - "offset": 50 - }, - "indent": [] + "line": 12, + "column": 25, + "offset": 75 + } } } ], @@ -266,54 +230,12 @@ "offset": 40 }, "end": { - "line": 11, - "column": 11, - "offset": 50 - }, - "indent": [] + "line": 12, + "column": 25, + "offset": 75 + } } - } - ], - "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, @@ -323,60 +245,19 @@ "type": "paragraph", "children": [ { - "type": "linkReference", - "identifier": "^foo", - "label": "^foo", - "referenceType": "full", - "children": [ - { - "type": "text", - "value": "^foo", - "position": { - "start": { - "line": 15, - "column": 5, - "offset": 82 - }, - "end": { - "line": 15, - "column": 9, - "offset": 86 - }, - "indent": [] - } - } - ], + "type": "text", + "value": "[^foo]\n[^foo]: bar baz.", "position": { "start": { "line": 15, "column": 4, "offset": 81 }, - "end": { - "line": 16, - "column": 7, - "offset": 94 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": ": bar baz.", - "position": { - "start": { - "line": 16, - "column": 7, - "offset": 94 - }, "end": { "line": 16, "column": 17, "offset": 104 - }, - "indent": [] + } } } ], @@ -390,10 +271,7 @@ "line": 16, "column": 17, "offset": 104 - }, - "indent": [ - 1 - ] + } } } ], @@ -407,27 +285,21 @@ "line": 16, "column": 17, "offset": 104 - }, - "indent": [ - 1 - ] + } } } ], "position": { "start": { - "line": 15, + "line": 11, "column": 1, - "offset": 78 + "offset": 40 }, "end": { "line": 16, "column": 17, "offset": 104 - }, - "indent": [ - 1 - ] + } } } ], diff --git a/test/fixtures/tree/list-continuation.nogfm.commonmark.json b/test/fixtures/tree/list-continuation.nogfm.commonmark.json deleted file mode 100644 index 77c6d1343..000000000 --- a/test/fixtures/tree/list-continuation.nogfm.commonmark.json +++ /dev/null @@ -1,537 +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": "linkReference", - "identifier": "^foo", - "label": "^foo", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "^foo", - "position": { - "start": { - "line": 15, - "column": 5, - "offset": 82 - }, - "end": { - "line": 15, - "column": 9, - "offset": 86 - }, - "indent": [] - } - } - ], - "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": "linkReference", - "identifier": "^foo", - "label": "^foo", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "^foo", - "position": { - "start": { - "line": 16, - "column": 2, - "offset": 89 - }, - "end": { - "line": 16, - "column": 6, - "offset": 93 - }, - "indent": [] - } - } - ], - "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.pedantic.json b/test/fixtures/tree/list-continuation.nogfm.commonmark.pedantic.json deleted file mode 100644 index 0f5f27d4d..000000000 --- a/test/fixtures/tree/list-continuation.nogfm.commonmark.pedantic.json +++ /dev/null @@ -1,510 +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": "linkReference", - "identifier": "^foo", - "label": "^foo", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "^foo", - "position": { - "start": { - "line": 15, - "column": 5, - "offset": 82 - }, - "end": { - "line": 15, - "column": 9, - "offset": 86 - }, - "indent": [] - } - } - ], - "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": "linkReference", - "identifier": "^foo", - "label": "^foo", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "^foo", - "position": { - "start": { - "line": 16, - "column": 2, - "offset": 89 - }, - "end": { - "line": 16, - "column": 6, - "offset": 93 - }, - "indent": [] - } - } - ], - "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.json b/test/fixtures/tree/list-continuation.nogfm.json deleted file mode 100644 index d859d50f5..000000000 --- a/test/fixtures/tree/list-continuation.nogfm.json +++ /dev/null @@ -1,458 +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": "linkReference", - "identifier": "^foo", - "label": "^foo", - "referenceType": "full", - "children": [ - { - "type": "text", - "value": "^foo", - "position": { - "start": { - "line": 15, - "column": 5, - "offset": 82 - }, - "end": { - "line": 15, - "column": 9, - "offset": 86 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 4, - "offset": 81 - }, - "end": { - "line": 16, - "column": 7, - "offset": 94 - }, - "indent": [ - 1 - ] - } - }, - { - "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": 15, - "column": 1, - "offset": 78 - }, - "end": { - "line": 16, - "column": 17, - "offset": 104 - }, - "indent": [ - 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.pedantic.json b/test/fixtures/tree/list-continuation.nogfm.pedantic.json deleted file mode 100644 index 00312084b..000000000 --- a/test/fixtures/tree/list-continuation.nogfm.pedantic.json +++ /dev/null @@ -1,449 +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": "linkReference", - "identifier": "^foo", - "label": "^foo", - "referenceType": "full", - "children": [ - { - "type": "text", - "value": "^foo", - "position": { - "start": { - "line": 15, - "column": 5, - "offset": 82 - }, - "end": { - "line": 15, - "column": 9, - "offset": 86 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 4, - "offset": 81 - }, - "end": { - "line": 16, - "column": 7, - "offset": 94 - }, - "indent": [ - 1 - ] - } - }, - { - "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": 15, - "column": 1, - "offset": 78 - }, - "end": { - "line": 16, - "column": 17, - "offset": 104 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 17, - "column": 1, - "offset": 105 - } - } -} diff --git a/test/fixtures/tree/list-continuation.pedantic.json b/test/fixtures/tree/list-continuation.pedantic.json deleted file mode 100644 index 4fe0ba0a5..000000000 --- a/test/fixtures/tree/list-continuation.pedantic.json +++ /dev/null @@ -1,445 +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": "linkReference", - "identifier": "^foo", - "label": "^foo", - "referenceType": "full", - "children": [ - { - "type": "text", - "value": "^foo", - "position": { - "start": { - "line": 15, - "column": 5, - "offset": 82 - }, - "end": { - "line": 15, - "column": 9, - "offset": 86 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 4, - "offset": 81 - }, - "end": { - "line": 16, - "column": 7, - "offset": 94 - }, - "indent": [ - 1 - ] - } - }, - { - "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": 15, - "column": 1, - "offset": 78 - }, - "end": { - "line": 16, - "column": 17, - "offset": 104 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 17, - "column": 1, - "offset": 105 - } - } -} diff --git a/test/fixtures/tree/list-indentation.nooutput.commonmark.json b/test/fixtures/tree/list-indentation.nooutput.commonmark.json deleted file mode 100644 index 6bb317f63..000000000 --- a/test/fixtures/tree/list-indentation.nooutput.commonmark.json +++ /dev/null @@ -1,991 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hello 1a", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 11, - "offset": 10 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 11, - "offset": 10 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 11, - "offset": 10 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 11, - "offset": 10 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": " World 1a.", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 12 - }, - "end": { - "line": 3, - "column": 11, - "offset": 22 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 12 - }, - "end": { - "line": 3, - "column": 11, - "offset": 22 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hello 1b", - "position": { - "start": { - "line": 5, - "column": 3, - "offset": 26 - }, - "end": { - "line": 5, - "column": 11, - "offset": 34 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 3, - "offset": 26 - }, - "end": { - "line": 5, - "column": 11, - "offset": 34 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "World 1b.", - "position": { - "start": { - "line": 7, - "column": 3, - "offset": 38 - }, - "end": { - "line": 7, - "column": 12, - "offset": 47 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 3, - "offset": 38 - }, - "end": { - "line": 7, - "column": 12, - "offset": 47 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 24 - }, - "end": { - "line": 8, - "column": 1, - "offset": 48 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hello 2a", - "position": { - "start": { - "line": 9, - "column": 4, - "offset": 52 - }, - "end": { - "line": 9, - "column": 12, - "offset": 60 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 4, - "offset": 52 - }, - "end": { - "line": 9, - "column": 12, - "offset": 60 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 49 - }, - "end": { - "line": 9, - "column": 12, - "offset": 60 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 24 - }, - "end": { - "line": 9, - "column": 12, - "offset": 60 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": " World 2a.", - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 62 - }, - "end": { - "line": 11, - "column": 12, - "offset": 73 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 62 - }, - "end": { - "line": 11, - "column": 12, - "offset": 73 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hello 2b", - "position": { - "start": { - "line": 13, - "column": 4, - "offset": 78 - }, - "end": { - "line": 13, - "column": 12, - "offset": 86 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 4, - "offset": 78 - }, - "end": { - "line": 13, - "column": 12, - "offset": 86 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "World 2b.", - "position": { - "start": { - "line": 15, - "column": 4, - "offset": 91 - }, - "end": { - "line": 15, - "column": 13, - "offset": 100 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 4, - "offset": 91 - }, - "end": { - "line": 15, - "column": 13, - "offset": 100 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 75 - }, - "end": { - "line": 16, - "column": 1, - "offset": 101 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hello 3a", - "position": { - "start": { - "line": 17, - "column": 5, - "offset": 106 - }, - "end": { - "line": 17, - "column": 13, - "offset": 114 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 17, - "column": 5, - "offset": 106 - }, - "end": { - "line": 17, - "column": 13, - "offset": 114 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 102 - }, - "end": { - "line": 17, - "column": 13, - "offset": 114 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 75 - }, - "end": { - "line": 17, - "column": 13, - "offset": 114 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": " World 3a.", - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 116 - }, - "end": { - "line": 19, - "column": 13, - "offset": 128 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 116 - }, - "end": { - "line": 19, - "column": 13, - "offset": 128 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hello 3b", - "position": { - "start": { - "line": 21, - "column": 5, - "offset": 134 - }, - "end": { - "line": 21, - "column": 13, - "offset": 142 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 5, - "offset": 134 - }, - "end": { - "line": 21, - "column": 13, - "offset": 142 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "World 3b.", - "position": { - "start": { - "line": 23, - "column": 5, - "offset": 148 - }, - "end": { - "line": 23, - "column": 14, - "offset": 157 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 23, - "column": 5, - "offset": 148 - }, - "end": { - "line": 23, - "column": 14, - "offset": 157 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 1, - "offset": 130 - }, - "end": { - "line": 24, - "column": 1, - "offset": 158 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hello 4a", - "position": { - "start": { - "line": 25, - "column": 6, - "offset": 164 - }, - "end": { - "line": 25, - "column": 14, - "offset": 172 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 25, - "column": 6, - "offset": 164 - }, - "end": { - "line": 25, - "column": 14, - "offset": 172 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 25, - "column": 1, - "offset": 159 - }, - "end": { - "line": 25, - "column": 14, - "offset": 172 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 1, - "offset": 130 - }, - "end": { - "line": 25, - "column": 14, - "offset": 172 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "World 4a.", - "position": { - "start": { - "line": 27, - "column": 1, - "offset": 174 - }, - "end": { - "line": 27, - "column": 14, - "offset": 187 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hello 4b", - "position": { - "start": { - "line": 29, - "column": 6, - "offset": 194 - }, - "end": { - "line": 29, - "column": 14, - "offset": 202 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 29, - "column": 6, - "offset": 194 - }, - "end": { - "line": 29, - "column": 14, - "offset": 202 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "World 4b.", - "position": { - "start": { - "line": 31, - "column": 6, - "offset": 209 - }, - "end": { - "line": 31, - "column": 15, - "offset": 218 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 31, - "column": 6, - "offset": 209 - }, - "end": { - "line": 31, - "column": 15, - "offset": 218 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 189 - }, - "end": { - "line": 32, - "column": 1, - "offset": 219 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "code", - "lang": null, - "meta": null, - "value": "Hello 5a", - "position": { - "start": { - "line": 33, - "column": 3, - "offset": 222 - }, - "end": { - "line": 33, - "column": 15, - "offset": 234 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": " World 5a.", - "position": { - "start": { - "line": 35, - "column": 3, - "offset": 238 - }, - "end": { - "line": 35, - "column": 15, - "offset": 250 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 35, - "column": 3, - "offset": 238 - }, - "end": { - "line": 35, - "column": 15, - "offset": 250 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 33, - "column": 1, - "offset": 220 - }, - "end": { - "line": 36, - "column": 1, - "offset": 251 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "code", - "lang": null, - "meta": null, - "value": "Hello 5b\n\nWorld 5b.", - "position": { - "start": { - "line": 37, - "column": 3, - "offset": 254 - }, - "end": { - "line": 39, - "column": 16, - "offset": 283 - }, - "indent": [ - 1, - 3 - ] - } - } - ], - "position": { - "start": { - "line": 37, - "column": 1, - "offset": 252 - }, - "end": { - "line": 39, - "column": 16, - "offset": 283 - }, - "indent": [ - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 189 - }, - "end": { - "line": 39, - "column": 16, - "offset": 283 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 40, - "column": 1, - "offset": 284 - } - } -} diff --git a/test/fixtures/tree/list-indentation.nooutput.commonmark.pedantic.json b/test/fixtures/tree/list-indentation.nooutput.commonmark.pedantic.json deleted file mode 100644 index fa89bab31..000000000 --- a/test/fixtures/tree/list-indentation.nooutput.commonmark.pedantic.json +++ /dev/null @@ -1,1055 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hello 1a", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 11, - "offset": 10 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 11, - "offset": 10 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 11, - "offset": 10 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 11, - "offset": 10 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": " World 1a.", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 12 - }, - "end": { - "line": 3, - "column": 11, - "offset": 22 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 12 - }, - "end": { - "line": 3, - "column": 11, - "offset": 22 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hello 1b", - "position": { - "start": { - "line": 5, - "column": 3, - "offset": 26 - }, - "end": { - "line": 5, - "column": 11, - "offset": 34 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 3, - "offset": 26 - }, - "end": { - "line": 5, - "column": 11, - "offset": 34 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "World 1b.", - "position": { - "start": { - "line": 7, - "column": 3, - "offset": 38 - }, - "end": { - "line": 7, - "column": 12, - "offset": 47 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 3, - "offset": 38 - }, - "end": { - "line": 7, - "column": 12, - "offset": 47 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 24 - }, - "end": { - "line": 8, - "column": 1, - "offset": 48 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hello 2a", - "position": { - "start": { - "line": 9, - "column": 4, - "offset": 52 - }, - "end": { - "line": 9, - "column": 12, - "offset": 60 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 4, - "offset": 52 - }, - "end": { - "line": 9, - "column": 12, - "offset": 60 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 49 - }, - "end": { - "line": 9, - "column": 12, - "offset": 60 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 24 - }, - "end": { - "line": 9, - "column": 12, - "offset": 60 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": " World 2a.", - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 62 - }, - "end": { - "line": 11, - "column": 12, - "offset": 73 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 62 - }, - "end": { - "line": 11, - "column": 12, - "offset": 73 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hello 2b", - "position": { - "start": { - "line": 13, - "column": 4, - "offset": 78 - }, - "end": { - "line": 13, - "column": 12, - "offset": 86 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 4, - "offset": 78 - }, - "end": { - "line": 13, - "column": 12, - "offset": 86 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "World 2b.", - "position": { - "start": { - "line": 15, - "column": 4, - "offset": 91 - }, - "end": { - "line": 15, - "column": 13, - "offset": 100 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 4, - "offset": 91 - }, - "end": { - "line": 15, - "column": 13, - "offset": 100 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 75 - }, - "end": { - "line": 16, - "column": 1, - "offset": 101 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hello 3a", - "position": { - "start": { - "line": 17, - "column": 5, - "offset": 106 - }, - "end": { - "line": 17, - "column": 13, - "offset": 114 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 17, - "column": 5, - "offset": 106 - }, - "end": { - "line": 17, - "column": 13, - "offset": 114 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 102 - }, - "end": { - "line": 17, - "column": 13, - "offset": 114 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 75 - }, - "end": { - "line": 17, - "column": 13, - "offset": 114 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": " World 3a.", - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 116 - }, - "end": { - "line": 19, - "column": 13, - "offset": 128 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 116 - }, - "end": { - "line": 19, - "column": 13, - "offset": 128 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hello 3b", - "position": { - "start": { - "line": 21, - "column": 5, - "offset": 134 - }, - "end": { - "line": 21, - "column": 13, - "offset": 142 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 5, - "offset": 134 - }, - "end": { - "line": 21, - "column": 13, - "offset": 142 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "World 3b.", - "position": { - "start": { - "line": 23, - "column": 5, - "offset": 148 - }, - "end": { - "line": 23, - "column": 14, - "offset": 157 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 23, - "column": 5, - "offset": 148 - }, - "end": { - "line": 23, - "column": 14, - "offset": 157 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 1, - "offset": 130 - }, - "end": { - "line": 24, - "column": 1, - "offset": 158 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hello 4a", - "position": { - "start": { - "line": 25, - "column": 6, - "offset": 164 - }, - "end": { - "line": 25, - "column": 14, - "offset": 172 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 25, - "column": 6, - "offset": 164 - }, - "end": { - "line": 25, - "column": 14, - "offset": 172 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 25, - "column": 1, - "offset": 159 - }, - "end": { - "line": 25, - "column": 14, - "offset": 172 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 1, - "offset": 130 - }, - "end": { - "line": 25, - "column": 14, - "offset": 172 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "World 4a.", - "position": { - "start": { - "line": 27, - "column": 1, - "offset": 174 - }, - "end": { - "line": 27, - "column": 14, - "offset": 187 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hello 4b", - "position": { - "start": { - "line": 29, - "column": 6, - "offset": 194 - }, - "end": { - "line": 29, - "column": 14, - "offset": 202 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 29, - "column": 6, - "offset": 194 - }, - "end": { - "line": 29, - "column": 14, - "offset": 202 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": " World 4b.", - "position": { - "start": { - "line": 31, - "column": 5, - "offset": 208 - }, - "end": { - "line": 31, - "column": 15, - "offset": 218 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 31, - "column": 5, - "offset": 208 - }, - "end": { - "line": 31, - "column": 15, - "offset": 218 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 189 - }, - "end": { - "line": 32, - "column": 1, - "offset": 219 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hello 5a", - "position": { - "start": { - "line": 33, - "column": 7, - "offset": 226 - }, - "end": { - "line": 33, - "column": 15, - "offset": 234 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 33, - "column": 7, - "offset": 226 - }, - "end": { - "line": 33, - "column": 15, - "offset": 234 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": " World 5a.", - "position": { - "start": { - "line": 35, - "column": 5, - "offset": 240 - }, - "end": { - "line": 35, - "column": 15, - "offset": 250 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 35, - "column": 5, - "offset": 240 - }, - "end": { - "line": 35, - "column": 15, - "offset": 250 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 33, - "column": 1, - "offset": 220 - }, - "end": { - "line": 36, - "column": 1, - "offset": 251 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hello 5b", - "position": { - "start": { - "line": 37, - "column": 7, - "offset": 258 - }, - "end": { - "line": 37, - "column": 15, - "offset": 266 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 37, - "column": 7, - "offset": 258 - }, - "end": { - "line": 37, - "column": 15, - "offset": 266 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": " World 5b.", - "position": { - "start": { - "line": 39, - "column": 5, - "offset": 272 - }, - "end": { - "line": 39, - "column": 16, - "offset": 283 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 39, - "column": 5, - "offset": 272 - }, - "end": { - "line": 39, - "column": 16, - "offset": 283 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 37, - "column": 1, - "offset": 252 - }, - "end": { - "line": 39, - "column": 16, - "offset": 283 - }, - "indent": [ - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 189 - }, - "end": { - "line": 39, - "column": 16, - "offset": 283 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 40, - "column": 1, - "offset": 284 - } - } -} diff --git a/test/fixtures/tree/list-indentation.nooutput.json b/test/fixtures/tree/list-indentation.nooutput.json index 537801f16..8385ecefe 100644 --- a/test/fixtures/tree/list-indentation.nooutput.json +++ b/test/fixtures/tree/list-indentation.nooutput.json @@ -5,11 +5,11 @@ "type": "list", "ordered": false, "start": null, - "spread": true, + "spread": false, "children": [ { "type": "listItem", - "spread": true, + "spread": false, "checked": null, "children": [ { @@ -28,8 +28,7 @@ "line": 1, "column": 11, "offset": 10 - }, - "indent": [] + } } } ], @@ -43,43 +42,7 @@ "line": 1, "column": 11, "offset": 10 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "World 1a.", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 13 - }, - "end": { - "line": 3, - "column": 11, - "offset": 22 - }, - "indent": [] - } } - ], - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 13 - }, - "end": { - "line": 3, - "column": 11, - "offset": 22 - }, - "indent": [] } } ], @@ -90,17 +53,65 @@ "offset": 0 }, "end": { - "line": 4, - "column": 1, - "offset": 23 + "line": 1, + "column": 11, + "offset": 10 + } + } + } + ], + "position": { + "start": { + "line": 1, + "column": 1, + "offset": 0 + }, + "end": { + "line": 1, + "column": 11, + "offset": 10 + } + } + }, + { + "type": "paragraph", + "children": [ + { + "type": "text", + "value": "World 1a.", + "position": { + "start": { + "line": 3, + "column": 2, + "offset": 13 }, - "indent": [ - 1, - 1, - 1 - ] + "end": { + "line": 3, + "column": 11, + "offset": 22 + } } + } + ], + "position": { + "start": { + "line": 3, + "column": 2, + "offset": 13 }, + "end": { + "line": 3, + "column": 11, + "offset": 22 + } + } + }, + { + "type": "list", + "ordered": false, + "start": null, + "spread": true, + "children": [ { "type": "listItem", "spread": true, @@ -122,8 +133,7 @@ "line": 5, "column": 11, "offset": 34 - }, - "indent": [] + } } } ], @@ -137,8 +147,7 @@ "line": 5, "column": 11, "offset": 34 - }, - "indent": [] + } } }, { @@ -157,8 +166,7 @@ "line": 7, "column": 12, "offset": 47 - }, - "indent": [] + } } } ], @@ -172,8 +180,7 @@ "line": 7, "column": 12, "offset": 47 - }, - "indent": [] + } } } ], @@ -184,20 +191,15 @@ "offset": 24 }, "end": { - "line": 8, - "column": 1, - "offset": 48 - }, - "indent": [ - 1, - 1, - 1 - ] + "line": 7, + "column": 12, + "offset": 47 + } } }, { "type": "listItem", - "spread": true, + "spread": false, "checked": null, "children": [ { @@ -216,8 +218,7 @@ "line": 9, "column": 12, "offset": 60 - }, - "indent": [] + } } } ], @@ -231,43 +232,7 @@ "line": 9, "column": 12, "offset": 60 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "World 2a.", - "position": { - "start": { - "line": 11, - "column": 3, - "offset": 64 - }, - "end": { - "line": 11, - "column": 12, - "offset": 73 - }, - "indent": [] - } } - ], - "position": { - "start": { - "line": 11, - "column": 3, - "offset": 64 - }, - "end": { - "line": 11, - "column": 12, - "offset": 73 - }, - "indent": [] } } ], @@ -278,17 +243,65 @@ "offset": 49 }, "end": { - "line": 12, - "column": 1, - "offset": 74 + "line": 9, + "column": 12, + "offset": 60 + } + } + } + ], + "position": { + "start": { + "line": 5, + "column": 1, + "offset": 24 + }, + "end": { + "line": 9, + "column": 12, + "offset": 60 + } + } + }, + { + "type": "paragraph", + "children": [ + { + "type": "text", + "value": "World 2a.", + "position": { + "start": { + "line": 11, + "column": 3, + "offset": 64 }, - "indent": [ - 1, - 1, - 1 - ] + "end": { + "line": 11, + "column": 12, + "offset": 73 + } } + } + ], + "position": { + "start": { + "line": 11, + "column": 3, + "offset": 64 }, + "end": { + "line": 11, + "column": 12, + "offset": 73 + } + } + }, + { + "type": "list", + "ordered": false, + "start": null, + "spread": true, + "children": [ { "type": "listItem", "spread": true, @@ -310,8 +323,7 @@ "line": 13, "column": 12, "offset": 86 - }, - "indent": [] + } } } ], @@ -325,8 +337,7 @@ "line": 13, "column": 12, "offset": 86 - }, - "indent": [] + } } }, { @@ -345,8 +356,7 @@ "line": 15, "column": 13, "offset": 100 - }, - "indent": [] + } } } ], @@ -360,8 +370,7 @@ "line": 15, "column": 13, "offset": 100 - }, - "indent": [] + } } } ], @@ -372,20 +381,15 @@ "offset": 75 }, "end": { - "line": 16, - "column": 1, - "offset": 101 - }, - "indent": [ - 1, - 1, - 1 - ] + "line": 15, + "column": 13, + "offset": 100 + } } }, { "type": "listItem", - "spread": true, + "spread": false, "checked": null, "children": [ { @@ -404,8 +408,7 @@ "line": 17, "column": 13, "offset": 114 - }, - "indent": [] + } } } ], @@ -419,43 +422,7 @@ "line": 17, "column": 13, "offset": 114 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "World 3a.", - "position": { - "start": { - "line": 19, - "column": 4, - "offset": 119 - }, - "end": { - "line": 19, - "column": 13, - "offset": 128 - }, - "indent": [] - } } - ], - "position": { - "start": { - "line": 19, - "column": 4, - "offset": 119 - }, - "end": { - "line": 19, - "column": 13, - "offset": 128 - }, - "indent": [] } } ], @@ -466,17 +433,65 @@ "offset": 102 }, "end": { - "line": 20, - "column": 1, - "offset": 129 + "line": 17, + "column": 13, + "offset": 114 + } + } + } + ], + "position": { + "start": { + "line": 13, + "column": 1, + "offset": 75 + }, + "end": { + "line": 17, + "column": 13, + "offset": 114 + } + } + }, + { + "type": "paragraph", + "children": [ + { + "type": "text", + "value": "World 3a.", + "position": { + "start": { + "line": 19, + "column": 4, + "offset": 119 }, - "indent": [ - 1, - 1, - 1 - ] + "end": { + "line": 19, + "column": 13, + "offset": 128 + } } + } + ], + "position": { + "start": { + "line": 19, + "column": 4, + "offset": 119 }, + "end": { + "line": 19, + "column": 13, + "offset": 128 + } + } + }, + { + "type": "list", + "ordered": false, + "start": null, + "spread": true, + "children": [ { "type": "listItem", "spread": true, @@ -498,8 +513,7 @@ "line": 21, "column": 13, "offset": 142 - }, - "indent": [] + } } } ], @@ -513,8 +527,7 @@ "line": 21, "column": 13, "offset": 142 - }, - "indent": [] + } } }, { @@ -533,8 +546,7 @@ "line": 23, "column": 14, "offset": 157 - }, - "indent": [] + } } } ], @@ -548,8 +560,7 @@ "line": 23, "column": 14, "offset": 157 - }, - "indent": [] + } } } ], @@ -560,20 +571,15 @@ "offset": 130 }, "end": { - "line": 24, - "column": 1, - "offset": 158 - }, - "indent": [ - 1, - 1, - 1 - ] + "line": 23, + "column": 14, + "offset": 157 + } } }, { "type": "listItem", - "spread": true, + "spread": false, "checked": null, "children": [ { @@ -592,8 +598,7 @@ "line": 25, "column": 14, "offset": 172 - }, - "indent": [] + } } } ], @@ -607,43 +612,7 @@ "line": 25, "column": 14, "offset": 172 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "World 4a.", - "position": { - "start": { - "line": 27, - "column": 5, - "offset": 178 - }, - "end": { - "line": 27, - "column": 14, - "offset": 187 - }, - "indent": [] - } } - ], - "position": { - "start": { - "line": 27, - "column": 5, - "offset": 178 - }, - "end": { - "line": 27, - "column": 14, - "offset": 187 - }, - "indent": [] } } ], @@ -654,17 +623,50 @@ "offset": 159 }, "end": { - "line": 28, - "column": 1, - "offset": 188 - }, - "indent": [ - 1, - 1, - 1 - ] + "line": 25, + "column": 14, + "offset": 172 + } } + } + ], + "position": { + "start": { + "line": 21, + "column": 1, + "offset": 130 + }, + "end": { + "line": 25, + "column": 14, + "offset": 172 + } + } + }, + { + "type": "code", + "lang": null, + "meta": null, + "value": "World 4a.", + "position": { + "start": { + "line": 27, + "column": 1, + "offset": 174 }, + "end": { + "line": 27, + "column": 14, + "offset": 187 + } + } + }, + { + "type": "list", + "ordered": false, + "start": null, + "spread": true, + "children": [ { "type": "listItem", "spread": true, @@ -686,8 +688,7 @@ "line": 29, "column": 14, "offset": 202 - }, - "indent": [] + } } } ], @@ -701,8 +702,7 @@ "line": 29, "column": 14, "offset": 202 - }, - "indent": [] + } } }, { @@ -721,8 +721,7 @@ "line": 31, "column": 15, "offset": 218 - }, - "indent": [] + } } } ], @@ -736,8 +735,7 @@ "line": 31, "column": 15, "offset": 218 - }, - "indent": [] + } } } ], @@ -748,15 +746,10 @@ "offset": 189 }, "end": { - "line": 32, - "column": 1, - "offset": 219 - }, - "indent": [ - 1, - 1, - 1 - ] + "line": 31, + "column": 15, + "offset": 218 + } } }, { @@ -779,8 +772,7 @@ "line": 33, "column": 15, "offset": 234 - }, - "indent": [] + } } }, { @@ -788,34 +780,32 @@ "children": [ { "type": "text", - "value": " World 5a.", + "value": "World 5a.", "position": { "start": { "line": 35, - "column": 3, - "offset": 238 + "column": 6, + "offset": 241 }, "end": { "line": 35, "column": 15, "offset": 250 - }, - "indent": [] + } } } ], "position": { "start": { "line": 35, - "column": 3, - "offset": 238 + "column": 6, + "offset": 241 }, "end": { "line": 35, "column": 15, "offset": 250 - }, - "indent": [] + } } } ], @@ -826,20 +816,15 @@ "offset": 220 }, "end": { - "line": 36, - "column": 1, - "offset": 251 - }, - "indent": [ - 1, - 1, - 1 - ] + "line": 35, + "column": 15, + "offset": 250 + } } }, { "type": "listItem", - "spread": true, + "spread": false, "checked": null, "children": [ { @@ -857,11 +842,7 @@ "line": 39, "column": 16, "offset": 283 - }, - "indent": [ - 1, - 3 - ] + } } } ], @@ -875,65 +856,21 @@ "line": 39, "column": 16, "offset": 283 - }, - "indent": [ - 1, - 1 - ] + } } } ], "position": { "start": { - "line": 1, + "line": 29, "column": 1, - "offset": 0 + "offset": 189 }, "end": { "line": 39, "column": 16, "offset": 283 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] + } } } ], diff --git a/test/fixtures/tree/list-indentation.nooutput.nogfm.commonmark.json b/test/fixtures/tree/list-indentation.nooutput.nogfm.commonmark.json deleted file mode 100644 index 6bb317f63..000000000 --- a/test/fixtures/tree/list-indentation.nooutput.nogfm.commonmark.json +++ /dev/null @@ -1,991 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hello 1a", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 11, - "offset": 10 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 11, - "offset": 10 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 11, - "offset": 10 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 11, - "offset": 10 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": " World 1a.", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 12 - }, - "end": { - "line": 3, - "column": 11, - "offset": 22 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 12 - }, - "end": { - "line": 3, - "column": 11, - "offset": 22 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hello 1b", - "position": { - "start": { - "line": 5, - "column": 3, - "offset": 26 - }, - "end": { - "line": 5, - "column": 11, - "offset": 34 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 3, - "offset": 26 - }, - "end": { - "line": 5, - "column": 11, - "offset": 34 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "World 1b.", - "position": { - "start": { - "line": 7, - "column": 3, - "offset": 38 - }, - "end": { - "line": 7, - "column": 12, - "offset": 47 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 3, - "offset": 38 - }, - "end": { - "line": 7, - "column": 12, - "offset": 47 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 24 - }, - "end": { - "line": 8, - "column": 1, - "offset": 48 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hello 2a", - "position": { - "start": { - "line": 9, - "column": 4, - "offset": 52 - }, - "end": { - "line": 9, - "column": 12, - "offset": 60 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 4, - "offset": 52 - }, - "end": { - "line": 9, - "column": 12, - "offset": 60 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 49 - }, - "end": { - "line": 9, - "column": 12, - "offset": 60 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 24 - }, - "end": { - "line": 9, - "column": 12, - "offset": 60 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": " World 2a.", - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 62 - }, - "end": { - "line": 11, - "column": 12, - "offset": 73 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 62 - }, - "end": { - "line": 11, - "column": 12, - "offset": 73 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hello 2b", - "position": { - "start": { - "line": 13, - "column": 4, - "offset": 78 - }, - "end": { - "line": 13, - "column": 12, - "offset": 86 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 4, - "offset": 78 - }, - "end": { - "line": 13, - "column": 12, - "offset": 86 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "World 2b.", - "position": { - "start": { - "line": 15, - "column": 4, - "offset": 91 - }, - "end": { - "line": 15, - "column": 13, - "offset": 100 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 4, - "offset": 91 - }, - "end": { - "line": 15, - "column": 13, - "offset": 100 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 75 - }, - "end": { - "line": 16, - "column": 1, - "offset": 101 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hello 3a", - "position": { - "start": { - "line": 17, - "column": 5, - "offset": 106 - }, - "end": { - "line": 17, - "column": 13, - "offset": 114 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 17, - "column": 5, - "offset": 106 - }, - "end": { - "line": 17, - "column": 13, - "offset": 114 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 102 - }, - "end": { - "line": 17, - "column": 13, - "offset": 114 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 75 - }, - "end": { - "line": 17, - "column": 13, - "offset": 114 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": " World 3a.", - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 116 - }, - "end": { - "line": 19, - "column": 13, - "offset": 128 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 116 - }, - "end": { - "line": 19, - "column": 13, - "offset": 128 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hello 3b", - "position": { - "start": { - "line": 21, - "column": 5, - "offset": 134 - }, - "end": { - "line": 21, - "column": 13, - "offset": 142 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 5, - "offset": 134 - }, - "end": { - "line": 21, - "column": 13, - "offset": 142 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "World 3b.", - "position": { - "start": { - "line": 23, - "column": 5, - "offset": 148 - }, - "end": { - "line": 23, - "column": 14, - "offset": 157 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 23, - "column": 5, - "offset": 148 - }, - "end": { - "line": 23, - "column": 14, - "offset": 157 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 1, - "offset": 130 - }, - "end": { - "line": 24, - "column": 1, - "offset": 158 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hello 4a", - "position": { - "start": { - "line": 25, - "column": 6, - "offset": 164 - }, - "end": { - "line": 25, - "column": 14, - "offset": 172 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 25, - "column": 6, - "offset": 164 - }, - "end": { - "line": 25, - "column": 14, - "offset": 172 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 25, - "column": 1, - "offset": 159 - }, - "end": { - "line": 25, - "column": 14, - "offset": 172 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 1, - "offset": 130 - }, - "end": { - "line": 25, - "column": 14, - "offset": 172 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "World 4a.", - "position": { - "start": { - "line": 27, - "column": 1, - "offset": 174 - }, - "end": { - "line": 27, - "column": 14, - "offset": 187 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hello 4b", - "position": { - "start": { - "line": 29, - "column": 6, - "offset": 194 - }, - "end": { - "line": 29, - "column": 14, - "offset": 202 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 29, - "column": 6, - "offset": 194 - }, - "end": { - "line": 29, - "column": 14, - "offset": 202 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "World 4b.", - "position": { - "start": { - "line": 31, - "column": 6, - "offset": 209 - }, - "end": { - "line": 31, - "column": 15, - "offset": 218 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 31, - "column": 6, - "offset": 209 - }, - "end": { - "line": 31, - "column": 15, - "offset": 218 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 189 - }, - "end": { - "line": 32, - "column": 1, - "offset": 219 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "code", - "lang": null, - "meta": null, - "value": "Hello 5a", - "position": { - "start": { - "line": 33, - "column": 3, - "offset": 222 - }, - "end": { - "line": 33, - "column": 15, - "offset": 234 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": " World 5a.", - "position": { - "start": { - "line": 35, - "column": 3, - "offset": 238 - }, - "end": { - "line": 35, - "column": 15, - "offset": 250 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 35, - "column": 3, - "offset": 238 - }, - "end": { - "line": 35, - "column": 15, - "offset": 250 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 33, - "column": 1, - "offset": 220 - }, - "end": { - "line": 36, - "column": 1, - "offset": 251 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "code", - "lang": null, - "meta": null, - "value": "Hello 5b\n\nWorld 5b.", - "position": { - "start": { - "line": 37, - "column": 3, - "offset": 254 - }, - "end": { - "line": 39, - "column": 16, - "offset": 283 - }, - "indent": [ - 1, - 3 - ] - } - } - ], - "position": { - "start": { - "line": 37, - "column": 1, - "offset": 252 - }, - "end": { - "line": 39, - "column": 16, - "offset": 283 - }, - "indent": [ - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 189 - }, - "end": { - "line": 39, - "column": 16, - "offset": 283 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 40, - "column": 1, - "offset": 284 - } - } -} diff --git a/test/fixtures/tree/list-indentation.nooutput.nogfm.json b/test/fixtures/tree/list-indentation.nooutput.nogfm.json deleted file mode 100644 index 537801f16..000000000 --- a/test/fixtures/tree/list-indentation.nooutput.nogfm.json +++ /dev/null @@ -1,952 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "list", - "ordered": false, - "start": null, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hello 1a", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 11, - "offset": 10 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 11, - "offset": 10 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "World 1a.", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 13 - }, - "end": { - "line": 3, - "column": 11, - "offset": 22 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 13 - }, - "end": { - "line": 3, - "column": 11, - "offset": 22 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 4, - "column": 1, - "offset": 23 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hello 1b", - "position": { - "start": { - "line": 5, - "column": 3, - "offset": 26 - }, - "end": { - "line": 5, - "column": 11, - "offset": 34 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 3, - "offset": 26 - }, - "end": { - "line": 5, - "column": 11, - "offset": 34 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "World 1b.", - "position": { - "start": { - "line": 7, - "column": 3, - "offset": 38 - }, - "end": { - "line": 7, - "column": 12, - "offset": 47 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 3, - "offset": 38 - }, - "end": { - "line": 7, - "column": 12, - "offset": 47 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 24 - }, - "end": { - "line": 8, - "column": 1, - "offset": 48 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hello 2a", - "position": { - "start": { - "line": 9, - "column": 4, - "offset": 52 - }, - "end": { - "line": 9, - "column": 12, - "offset": 60 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 4, - "offset": 52 - }, - "end": { - "line": 9, - "column": 12, - "offset": 60 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "World 2a.", - "position": { - "start": { - "line": 11, - "column": 3, - "offset": 64 - }, - "end": { - "line": 11, - "column": 12, - "offset": 73 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 3, - "offset": 64 - }, - "end": { - "line": 11, - "column": 12, - "offset": 73 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 49 - }, - "end": { - "line": 12, - "column": 1, - "offset": 74 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hello 2b", - "position": { - "start": { - "line": 13, - "column": 4, - "offset": 78 - }, - "end": { - "line": 13, - "column": 12, - "offset": 86 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 4, - "offset": 78 - }, - "end": { - "line": 13, - "column": 12, - "offset": 86 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "World 2b.", - "position": { - "start": { - "line": 15, - "column": 4, - "offset": 91 - }, - "end": { - "line": 15, - "column": 13, - "offset": 100 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 4, - "offset": 91 - }, - "end": { - "line": 15, - "column": 13, - "offset": 100 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 75 - }, - "end": { - "line": 16, - "column": 1, - "offset": 101 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hello 3a", - "position": { - "start": { - "line": 17, - "column": 5, - "offset": 106 - }, - "end": { - "line": 17, - "column": 13, - "offset": 114 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 17, - "column": 5, - "offset": 106 - }, - "end": { - "line": 17, - "column": 13, - "offset": 114 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "World 3a.", - "position": { - "start": { - "line": 19, - "column": 4, - "offset": 119 - }, - "end": { - "line": 19, - "column": 13, - "offset": 128 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 19, - "column": 4, - "offset": 119 - }, - "end": { - "line": 19, - "column": 13, - "offset": 128 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 102 - }, - "end": { - "line": 20, - "column": 1, - "offset": 129 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hello 3b", - "position": { - "start": { - "line": 21, - "column": 5, - "offset": 134 - }, - "end": { - "line": 21, - "column": 13, - "offset": 142 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 5, - "offset": 134 - }, - "end": { - "line": 21, - "column": 13, - "offset": 142 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "World 3b.", - "position": { - "start": { - "line": 23, - "column": 5, - "offset": 148 - }, - "end": { - "line": 23, - "column": 14, - "offset": 157 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 23, - "column": 5, - "offset": 148 - }, - "end": { - "line": 23, - "column": 14, - "offset": 157 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 1, - "offset": 130 - }, - "end": { - "line": 24, - "column": 1, - "offset": 158 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hello 4a", - "position": { - "start": { - "line": 25, - "column": 6, - "offset": 164 - }, - "end": { - "line": 25, - "column": 14, - "offset": 172 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 25, - "column": 6, - "offset": 164 - }, - "end": { - "line": 25, - "column": 14, - "offset": 172 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "World 4a.", - "position": { - "start": { - "line": 27, - "column": 5, - "offset": 178 - }, - "end": { - "line": 27, - "column": 14, - "offset": 187 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 27, - "column": 5, - "offset": 178 - }, - "end": { - "line": 27, - "column": 14, - "offset": 187 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 25, - "column": 1, - "offset": 159 - }, - "end": { - "line": 28, - "column": 1, - "offset": 188 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hello 4b", - "position": { - "start": { - "line": 29, - "column": 6, - "offset": 194 - }, - "end": { - "line": 29, - "column": 14, - "offset": 202 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 29, - "column": 6, - "offset": 194 - }, - "end": { - "line": 29, - "column": 14, - "offset": 202 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "World 4b.", - "position": { - "start": { - "line": 31, - "column": 6, - "offset": 209 - }, - "end": { - "line": 31, - "column": 15, - "offset": 218 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 31, - "column": 6, - "offset": 209 - }, - "end": { - "line": 31, - "column": 15, - "offset": 218 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 189 - }, - "end": { - "line": 32, - "column": 1, - "offset": 219 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "code", - "lang": null, - "meta": null, - "value": "Hello 5a", - "position": { - "start": { - "line": 33, - "column": 3, - "offset": 222 - }, - "end": { - "line": 33, - "column": 15, - "offset": 234 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": " World 5a.", - "position": { - "start": { - "line": 35, - "column": 3, - "offset": 238 - }, - "end": { - "line": 35, - "column": 15, - "offset": 250 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 35, - "column": 3, - "offset": 238 - }, - "end": { - "line": 35, - "column": 15, - "offset": 250 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 33, - "column": 1, - "offset": 220 - }, - "end": { - "line": 36, - "column": 1, - "offset": 251 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "code", - "lang": null, - "meta": null, - "value": "Hello 5b\n\nWorld 5b.", - "position": { - "start": { - "line": 37, - "column": 3, - "offset": 254 - }, - "end": { - "line": 39, - "column": 16, - "offset": 283 - }, - "indent": [ - 1, - 3 - ] - } - } - ], - "position": { - "start": { - "line": 37, - "column": 1, - "offset": 252 - }, - "end": { - "line": 39, - "column": 16, - "offset": 283 - }, - "indent": [ - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 39, - "column": 16, - "offset": 283 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 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": 40, - "column": 1, - "offset": 284 - } - } -} diff --git a/test/fixtures/tree/list-indentation.nooutput.pedantic.json b/test/fixtures/tree/list-indentation.nooutput.pedantic.json deleted file mode 100644 index 8e2fbdd9c..000000000 --- a/test/fixtures/tree/list-indentation.nooutput.pedantic.json +++ /dev/null @@ -1,1016 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "list", - "ordered": false, - "start": null, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hello 1a", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 11, - "offset": 10 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 11, - "offset": 10 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "World 1a.", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 13 - }, - "end": { - "line": 3, - "column": 11, - "offset": 22 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 13 - }, - "end": { - "line": 3, - "column": 11, - "offset": 22 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 4, - "column": 1, - "offset": 23 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hello 1b", - "position": { - "start": { - "line": 5, - "column": 3, - "offset": 26 - }, - "end": { - "line": 5, - "column": 11, - "offset": 34 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 3, - "offset": 26 - }, - "end": { - "line": 5, - "column": 11, - "offset": 34 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "World 1b.", - "position": { - "start": { - "line": 7, - "column": 3, - "offset": 38 - }, - "end": { - "line": 7, - "column": 12, - "offset": 47 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 3, - "offset": 38 - }, - "end": { - "line": 7, - "column": 12, - "offset": 47 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 24 - }, - "end": { - "line": 8, - "column": 1, - "offset": 48 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hello 2a", - "position": { - "start": { - "line": 9, - "column": 4, - "offset": 52 - }, - "end": { - "line": 9, - "column": 12, - "offset": 60 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 4, - "offset": 52 - }, - "end": { - "line": 9, - "column": 12, - "offset": 60 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "World 2a.", - "position": { - "start": { - "line": 11, - "column": 3, - "offset": 64 - }, - "end": { - "line": 11, - "column": 12, - "offset": 73 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 3, - "offset": 64 - }, - "end": { - "line": 11, - "column": 12, - "offset": 73 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 49 - }, - "end": { - "line": 12, - "column": 1, - "offset": 74 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hello 2b", - "position": { - "start": { - "line": 13, - "column": 4, - "offset": 78 - }, - "end": { - "line": 13, - "column": 12, - "offset": 86 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 4, - "offset": 78 - }, - "end": { - "line": 13, - "column": 12, - "offset": 86 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "World 2b.", - "position": { - "start": { - "line": 15, - "column": 4, - "offset": 91 - }, - "end": { - "line": 15, - "column": 13, - "offset": 100 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 4, - "offset": 91 - }, - "end": { - "line": 15, - "column": 13, - "offset": 100 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 75 - }, - "end": { - "line": 16, - "column": 1, - "offset": 101 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hello 3a", - "position": { - "start": { - "line": 17, - "column": 5, - "offset": 106 - }, - "end": { - "line": 17, - "column": 13, - "offset": 114 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 17, - "column": 5, - "offset": 106 - }, - "end": { - "line": 17, - "column": 13, - "offset": 114 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "World 3a.", - "position": { - "start": { - "line": 19, - "column": 4, - "offset": 119 - }, - "end": { - "line": 19, - "column": 13, - "offset": 128 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 19, - "column": 4, - "offset": 119 - }, - "end": { - "line": 19, - "column": 13, - "offset": 128 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 102 - }, - "end": { - "line": 20, - "column": 1, - "offset": 129 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hello 3b", - "position": { - "start": { - "line": 21, - "column": 5, - "offset": 134 - }, - "end": { - "line": 21, - "column": 13, - "offset": 142 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 5, - "offset": 134 - }, - "end": { - "line": 21, - "column": 13, - "offset": 142 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "World 3b.", - "position": { - "start": { - "line": 23, - "column": 5, - "offset": 148 - }, - "end": { - "line": 23, - "column": 14, - "offset": 157 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 23, - "column": 5, - "offset": 148 - }, - "end": { - "line": 23, - "column": 14, - "offset": 157 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 1, - "offset": 130 - }, - "end": { - "line": 24, - "column": 1, - "offset": 158 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hello 4a", - "position": { - "start": { - "line": 25, - "column": 6, - "offset": 164 - }, - "end": { - "line": 25, - "column": 14, - "offset": 172 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 25, - "column": 6, - "offset": 164 - }, - "end": { - "line": 25, - "column": 14, - "offset": 172 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "World 4a.", - "position": { - "start": { - "line": 27, - "column": 5, - "offset": 178 - }, - "end": { - "line": 27, - "column": 14, - "offset": 187 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 27, - "column": 5, - "offset": 178 - }, - "end": { - "line": 27, - "column": 14, - "offset": 187 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 25, - "column": 1, - "offset": 159 - }, - "end": { - "line": 28, - "column": 1, - "offset": 188 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hello 4b", - "position": { - "start": { - "line": 29, - "column": 6, - "offset": 194 - }, - "end": { - "line": 29, - "column": 14, - "offset": 202 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 29, - "column": 6, - "offset": 194 - }, - "end": { - "line": 29, - "column": 14, - "offset": 202 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": " World 4b.", - "position": { - "start": { - "line": 31, - "column": 5, - "offset": 208 - }, - "end": { - "line": 31, - "column": 15, - "offset": 218 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 31, - "column": 5, - "offset": 208 - }, - "end": { - "line": 31, - "column": 15, - "offset": 218 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 189 - }, - "end": { - "line": 32, - "column": 1, - "offset": 219 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hello 5a", - "position": { - "start": { - "line": 33, - "column": 7, - "offset": 226 - }, - "end": { - "line": 33, - "column": 15, - "offset": 234 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 33, - "column": 7, - "offset": 226 - }, - "end": { - "line": 33, - "column": 15, - "offset": 234 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": " World 5a.", - "position": { - "start": { - "line": 35, - "column": 5, - "offset": 240 - }, - "end": { - "line": 35, - "column": 15, - "offset": 250 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 35, - "column": 5, - "offset": 240 - }, - "end": { - "line": 35, - "column": 15, - "offset": 250 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 33, - "column": 1, - "offset": 220 - }, - "end": { - "line": 36, - "column": 1, - "offset": 251 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hello 5b", - "position": { - "start": { - "line": 37, - "column": 7, - "offset": 258 - }, - "end": { - "line": 37, - "column": 15, - "offset": 266 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 37, - "column": 7, - "offset": 258 - }, - "end": { - "line": 37, - "column": 15, - "offset": 266 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": " World 5b.", - "position": { - "start": { - "line": 39, - "column": 5, - "offset": 272 - }, - "end": { - "line": 39, - "column": 16, - "offset": 283 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 39, - "column": 5, - "offset": 272 - }, - "end": { - "line": 39, - "column": 16, - "offset": 283 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 37, - "column": 1, - "offset": 252 - }, - "end": { - "line": 39, - "column": 16, - "offset": 283 - }, - "indent": [ - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 39, - "column": 16, - "offset": 283 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 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": 40, - "column": 1, - "offset": 284 - } - } -} diff --git a/test/fixtures/tree/list-interrupt.json b/test/fixtures/tree/list-interrupt.json index 4fc601b54..66b55d9c1 100644 --- a/test/fixtures/tree/list-interrupt.json +++ b/test/fixtures/tree/list-interrupt.json @@ -28,8 +28,7 @@ "line": 1, "column": 12, "offset": 11 - }, - "indent": [] + } } } ], @@ -43,8 +42,7 @@ "line": 1, "column": 12, "offset": 11 - }, - "indent": [] + } } } ], @@ -58,8 +56,7 @@ "line": 1, "column": 12, "offset": 11 - }, - "indent": [] + } } } ], @@ -73,8 +70,7 @@ "line": 1, "column": 12, "offset": 11 - }, - "indent": [] + } } }, { @@ -94,8 +90,7 @@ "line": 2, "column": 17, "offset": 28 - }, - "indent": [] + } } } ], @@ -109,8 +104,7 @@ "line": 2, "column": 17, "offset": 28 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/list-interrupt.pedantic.json b/test/fixtures/tree/list-interrupt.pedantic.json deleted file mode 100644 index 6d6c878e6..000000000 --- a/test/fixtures/tree/list-interrupt.pedantic.json +++ /dev/null @@ -1,133 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Something", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 12, - "offset": 11 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 12, - "offset": 11 - }, - "indent": [] - } - }, - { - "type": "heading", - "depth": 3, - "children": [ - { - "type": "text", - "value": "Some heading", - "position": { - "start": { - "line": 2, - "column": 5, - "offset": 16 - }, - "end": { - "line": 2, - "column": 17, - "offset": 28 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 2, - "column": 1, - "offset": 12 - }, - "end": { - "line": 2, - "column": 17, - "offset": 28 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 17, - "offset": 28 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 17, - "offset": 28 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 3, - "column": 1, - "offset": 29 - } - } -} diff --git a/test/fixtures/tree/list-item-empty-with-white-space.json b/test/fixtures/tree/list-item-empty-with-white-space.json index 29ccbb21c..81aa7a835 100644 --- a/test/fixtures/tree/list-item-empty-with-white-space.json +++ b/test/fixtures/tree/list-item-empty-with-white-space.json @@ -22,8 +22,7 @@ "line": 1, "column": 3, "offset": 2 - }, - "indent": [] + } } } ], @@ -37,8 +36,7 @@ "line": 1, "column": 3, "offset": 2 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/list-item-empty-without-white-space-eof.json b/test/fixtures/tree/list-item-empty-without-white-space-eof.json index a7c8ef61d..ce8b5dcca 100644 --- a/test/fixtures/tree/list-item-empty-without-white-space-eof.json +++ b/test/fixtures/tree/list-item-empty-without-white-space-eof.json @@ -22,8 +22,7 @@ "line": 1, "column": 2, "offset": 1 - }, - "indent": [] + } } } ], @@ -37,8 +36,7 @@ "line": 1, "column": 2, "offset": 1 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/list-item-empty-without-white-space.json b/test/fixtures/tree/list-item-empty-without-white-space.json index 42c11bf59..1cf3ea675 100644 --- a/test/fixtures/tree/list-item-empty-without-white-space.json +++ b/test/fixtures/tree/list-item-empty-without-white-space.json @@ -22,8 +22,7 @@ "line": 1, "column": 2, "offset": 1 - }, - "indent": [] + } } } ], @@ -37,8 +36,7 @@ "line": 1, "column": 2, "offset": 1 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/list-item-empty.commonmark.json b/test/fixtures/tree/list-item-empty.commonmark.json deleted file mode 100644 index beed99457..000000000 --- a/test/fixtures/tree/list-item-empty.commonmark.json +++ /dev/null @@ -1,305 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "list", - "ordered": false, - "start": null, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo", - "position": { - "start": { - "line": 1, - "column": 5, - "offset": 4 - }, - "end": { - "line": 1, - "column": 8, - "offset": 7 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 5, - "offset": 4 - }, - "end": { - "line": 1, - "column": 8, - "offset": 7 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 8, - "offset": 7 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [], - "position": { - "start": { - "line": 2, - "column": 1, - "offset": 8 - }, - "end": { - "line": 2, - "column": 2, - "offset": 9 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "bar", - "position": { - "start": { - "line": 3, - "column": 5, - "offset": 14 - }, - "end": { - "line": 3, - "column": 8, - "offset": 17 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 5, - "offset": 14 - }, - "end": { - "line": 3, - "column": 8, - "offset": 17 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 10 - }, - "end": { - "line": 4, - "column": 1, - "offset": 18 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo", - "position": { - "start": { - "line": 5, - "column": 7, - "offset": 25 - }, - "end": { - "line": 5, - "column": 10, - "offset": 28 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 7, - "offset": 25 - }, - "end": { - "line": 5, - "column": 10, - "offset": 28 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 19 - }, - "end": { - "line": 5, - "column": 10, - "offset": 28 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [], - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 29 - }, - "end": { - "line": 6, - "column": 4, - "offset": 32 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "bar", - "position": { - "start": { - "line": 7, - "column": 7, - "offset": 39 - }, - "end": { - "line": 7, - "column": 10, - "offset": 42 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 7, - "offset": 39 - }, - "end": { - "line": 7, - "column": 10, - "offset": 42 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 33 - }, - "end": { - "line": 7, - "column": 10, - "offset": 42 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 7, - "column": 10, - "offset": 42 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 43 - } - } -} diff --git a/test/fixtures/tree/list-item-empty.json b/test/fixtures/tree/list-item-empty.json index beed99457..24aef241c 100644 --- a/test/fixtures/tree/list-item-empty.json +++ b/test/fixtures/tree/list-item-empty.json @@ -28,8 +28,7 @@ "line": 1, "column": 8, "offset": 7 - }, - "indent": [] + } } } ], @@ -43,8 +42,7 @@ "line": 1, "column": 8, "offset": 7 - }, - "indent": [] + } } } ], @@ -58,8 +56,7 @@ "line": 1, "column": 8, "offset": 7 - }, - "indent": [] + } } }, { @@ -77,8 +74,7 @@ "line": 2, "column": 2, "offset": 9 - }, - "indent": [] + } } }, { @@ -102,8 +98,7 @@ "line": 3, "column": 8, "offset": 17 - }, - "indent": [] + } } } ], @@ -117,8 +112,7 @@ "line": 3, "column": 8, "offset": 17 - }, - "indent": [] + } } } ], @@ -129,13 +123,10 @@ "offset": 10 }, "end": { - "line": 4, - "column": 1, - "offset": 18 - }, - "indent": [ - 1 - ] + "line": 3, + "column": 8, + "offset": 17 + } } }, { @@ -159,8 +150,7 @@ "line": 5, "column": 10, "offset": 28 - }, - "indent": [] + } } } ], @@ -174,23 +164,21 @@ "line": 5, "column": 10, "offset": 28 - }, - "indent": [] + } } } ], "position": { "start": { "line": 5, - "column": 1, - "offset": 19 + "column": 3, + "offset": 21 }, "end": { "line": 5, "column": 10, "offset": 28 - }, - "indent": [] + } } }, { @@ -201,15 +189,14 @@ "position": { "start": { "line": 6, - "column": 1, - "offset": 29 + "column": 3, + "offset": 31 }, "end": { "line": 6, "column": 4, "offset": 32 - }, - "indent": [] + } } }, { @@ -233,8 +220,7 @@ "line": 7, "column": 10, "offset": 42 - }, - "indent": [] + } } } ], @@ -248,23 +234,21 @@ "line": 7, "column": 10, "offset": 42 - }, - "indent": [] + } } } ], "position": { "start": { "line": 7, - "column": 1, - "offset": 33 + "column": 3, + "offset": 35 }, "end": { "line": 7, "column": 10, "offset": 42 - }, - "indent": [] + } } } ], @@ -278,15 +262,7 @@ "line": 7, "column": 10, "offset": 42 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1 - ] + } } } ], diff --git a/test/fixtures/tree/list-item-empty.pedantic.json b/test/fixtures/tree/list-item-empty.pedantic.json deleted file mode 100644 index 4b565b3b1..000000000 --- a/test/fixtures/tree/list-item-empty.pedantic.json +++ /dev/null @@ -1,377 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "list", - "ordered": false, - "start": null, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo", - "position": { - "start": { - "line": 1, - "column": 5, - "offset": 4 - }, - "end": { - "line": 1, - "column": 8, - "offset": 7 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 5, - "offset": 4 - }, - "end": { - "line": 1, - "column": 8, - "offset": 7 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 8, - "offset": 7 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "-", - "position": { - "start": { - "line": 2, - "column": 1, - "offset": 8 - }, - "end": { - "line": 2, - "column": 2, - "offset": 9 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 2, - "column": 1, - "offset": 8 - }, - "end": { - "line": 2, - "column": 2, - "offset": 9 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 2, - "column": 1, - "offset": 8 - }, - "end": { - "line": 2, - "column": 2, - "offset": 9 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "bar", - "position": { - "start": { - "line": 3, - "column": 5, - "offset": 14 - }, - "end": { - "line": 3, - "column": 8, - "offset": 17 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 5, - "offset": 14 - }, - "end": { - "line": 3, - "column": 8, - "offset": 17 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 10 - }, - "end": { - "line": 4, - "column": 1, - "offset": 18 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo", - "position": { - "start": { - "line": 5, - "column": 7, - "offset": 25 - }, - "end": { - "line": 5, - "column": 10, - "offset": 28 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 7, - "offset": 25 - }, - "end": { - "line": 5, - "column": 10, - "offset": 28 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 19 - }, - "end": { - "line": 5, - "column": 10, - "offset": 28 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "-", - "position": { - "start": { - "line": 6, - "column": 3, - "offset": 31 - }, - "end": { - "line": 6, - "column": 4, - "offset": 32 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 3, - "offset": 31 - }, - "end": { - "line": 6, - "column": 4, - "offset": 32 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 29 - }, - "end": { - "line": 6, - "column": 4, - "offset": 32 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "bar", - "position": { - "start": { - "line": 7, - "column": 7, - "offset": 39 - }, - "end": { - "line": 7, - "column": 10, - "offset": 42 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 7, - "offset": 39 - }, - "end": { - "line": 7, - "column": 10, - "offset": 42 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 33 - }, - "end": { - "line": 7, - "column": 10, - "offset": 42 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 7, - "column": 10, - "offset": 42 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 43 - } - } -} diff --git a/test/fixtures/tree/list-item-indent.list-item-indent=1.output.json b/test/fixtures/tree/list-item-indent.list-item-indent=1.output.json index ed0cf19d1..0b7dcc28c 100644 --- a/test/fixtures/tree/list-item-indent.list-item-indent=1.output.json +++ b/test/fixtures/tree/list-item-indent.list-item-indent=1.output.json @@ -28,8 +28,7 @@ "line": 1, "column": 16, "offset": 15 - }, - "indent": [] + } } } ], @@ -43,8 +42,7 @@ "line": 1, "column": 16, "offset": 15 - }, - "indent": [] + } } } ], @@ -58,8 +56,7 @@ "line": 1, "column": 16, "offset": 15 - }, - "indent": [] + } } } ], @@ -73,8 +70,7 @@ "line": 1, "column": 16, "offset": 15 - }, - "indent": [] + } } }, { @@ -90,8 +86,7 @@ "line": 3, "column": 10, "offset": 26 - }, - "indent": [] + } } }, { @@ -121,8 +116,7 @@ "line": 5, "column": 17, "offset": 44 - }, - "indent": [] + } } } ], @@ -136,8 +130,7 @@ "line": 5, "column": 17, "offset": 44 - }, - "indent": [] + } } } ], @@ -151,8 +144,7 @@ "line": 5, "column": 17, "offset": 44 - }, - "indent": [] + } } } ], @@ -166,8 +158,7 @@ "line": 5, "column": 17, "offset": 44 - }, - "indent": [] + } } }, { @@ -183,8 +174,7 @@ "line": 7, "column": 10, "offset": 55 - }, - "indent": [] + } } }, { @@ -214,8 +204,7 @@ "line": 9, "column": 18, "offset": 74 - }, - "indent": [] + } } } ], @@ -229,8 +218,7 @@ "line": 9, "column": 18, "offset": 74 - }, - "indent": [] + } } } ], @@ -244,8 +232,7 @@ "line": 9, "column": 18, "offset": 74 - }, - "indent": [] + } } } ], @@ -259,8 +246,7 @@ "line": 9, "column": 18, "offset": 74 - }, - "indent": [] + } } }, { @@ -276,8 +262,7 @@ "line": 11, "column": 10, "offset": 85 - }, - "indent": [] + } } }, { @@ -307,10 +292,7 @@ "line": 14, "column": 16, "offset": 118 - }, - "indent": [ - 4 - ] + } } } ], @@ -324,10 +306,7 @@ "line": 14, "column": 16, "offset": 118 - }, - "indent": [ - 4 - ] + } } } ], @@ -341,10 +320,7 @@ "line": 14, "column": 16, "offset": 118 - }, - "indent": [ - 1 - ] + } } } ], @@ -358,10 +334,7 @@ "line": 14, "column": 16, "offset": 118 - }, - "indent": [ - 1 - ] + } } }, { @@ -377,8 +350,7 @@ "line": 16, "column": 10, "offset": 129 - }, - "indent": [] + } } }, { @@ -408,10 +380,7 @@ "line": 19, "column": 17, "offset": 164 - }, - "indent": [ - 5 - ] + } } } ], @@ -425,10 +394,7 @@ "line": 19, "column": 17, "offset": 164 - }, - "indent": [ - 5 - ] + } } } ], @@ -442,10 +408,7 @@ "line": 19, "column": 17, "offset": 164 - }, - "indent": [ - 1 - ] + } } } ], @@ -459,10 +422,7 @@ "line": 19, "column": 17, "offset": 164 - }, - "indent": [ - 1 - ] + } } }, { @@ -478,8 +438,7 @@ "line": 21, "column": 10, "offset": 175 - }, - "indent": [] + } } }, { @@ -509,10 +468,7 @@ "line": 24, "column": 18, "offset": 212 - }, - "indent": [ - 6 - ] + } } } ], @@ -526,10 +482,7 @@ "line": 24, "column": 18, "offset": 212 - }, - "indent": [ - 6 - ] + } } } ], @@ -543,10 +496,7 @@ "line": 24, "column": 18, "offset": 212 - }, - "indent": [ - 1 - ] + } } } ], @@ -560,10 +510,7 @@ "line": 24, "column": 18, "offset": 212 - }, - "indent": [ - 1 - ] + } } }, { @@ -579,8 +526,7 @@ "line": 26, "column": 10, "offset": 223 - }, - "indent": [] + } } }, { @@ -610,8 +556,7 @@ "line": 28, "column": 15, "offset": 239 - }, - "indent": [] + } } } ], @@ -625,8 +570,7 @@ "line": 28, "column": 15, "offset": 239 - }, - "indent": [] + } } } ], @@ -640,8 +584,7 @@ "line": 28, "column": 15, "offset": 239 - }, - "indent": [] + } } } ], @@ -655,8 +598,7 @@ "line": 28, "column": 15, "offset": 239 - }, - "indent": [] + } } }, { @@ -672,8 +614,7 @@ "line": 30, "column": 10, "offset": 250 - }, - "indent": [] + } } }, { @@ -703,10 +644,7 @@ "line": 33, "column": 15, "offset": 281 - }, - "indent": [ - 3 - ] + } } } ], @@ -720,10 +658,7 @@ "line": 33, "column": 15, "offset": 281 - }, - "indent": [ - 3 - ] + } } } ], @@ -737,10 +672,7 @@ "line": 33, "column": 15, "offset": 281 - }, - "indent": [ - 1 - ] + } } } ], @@ -754,10 +686,7 @@ "line": 33, "column": 15, "offset": 281 - }, - "indent": [ - 1 - ] + } } } ], diff --git a/test/fixtures/tree/list-item-indent.list-item-indent=mixed.output.json b/test/fixtures/tree/list-item-indent.list-item-indent=mixed.output.json index 9a5902514..0b7dcc28c 100644 --- a/test/fixtures/tree/list-item-indent.list-item-indent=mixed.output.json +++ b/test/fixtures/tree/list-item-indent.list-item-indent=mixed.output.json @@ -28,8 +28,7 @@ "line": 1, "column": 16, "offset": 15 - }, - "indent": [] + } } } ], @@ -43,8 +42,7 @@ "line": 1, "column": 16, "offset": 15 - }, - "indent": [] + } } } ], @@ -58,8 +56,7 @@ "line": 1, "column": 16, "offset": 15 - }, - "indent": [] + } } } ], @@ -73,8 +70,7 @@ "line": 1, "column": 16, "offset": 15 - }, - "indent": [] + } } }, { @@ -90,8 +86,7 @@ "line": 3, "column": 10, "offset": 26 - }, - "indent": [] + } } }, { @@ -121,8 +116,7 @@ "line": 5, "column": 17, "offset": 44 - }, - "indent": [] + } } } ], @@ -136,8 +130,7 @@ "line": 5, "column": 17, "offset": 44 - }, - "indent": [] + } } } ], @@ -151,8 +144,7 @@ "line": 5, "column": 17, "offset": 44 - }, - "indent": [] + } } } ], @@ -166,8 +158,7 @@ "line": 5, "column": 17, "offset": 44 - }, - "indent": [] + } } }, { @@ -183,8 +174,7 @@ "line": 7, "column": 10, "offset": 55 - }, - "indent": [] + } } }, { @@ -214,8 +204,7 @@ "line": 9, "column": 18, "offset": 74 - }, - "indent": [] + } } } ], @@ -229,8 +218,7 @@ "line": 9, "column": 18, "offset": 74 - }, - "indent": [] + } } } ], @@ -244,8 +232,7 @@ "line": 9, "column": 18, "offset": 74 - }, - "indent": [] + } } } ], @@ -259,8 +246,7 @@ "line": 9, "column": 18, "offset": 74 - }, - "indent": [] + } } }, { @@ -276,8 +262,7 @@ "line": 11, "column": 10, "offset": 85 - }, - "indent": [] + } } }, { @@ -300,34 +285,28 @@ "position": { "start": { "line": 13, - "column": 5, - "offset": 91 + "column": 4, + "offset": 90 }, "end": { "line": 14, - "column": 17, - "offset": 120 - }, - "indent": [ - 5 - ] + "column": 16, + "offset": 118 + } } } ], "position": { "start": { "line": 13, - "column": 5, - "offset": 91 + "column": 4, + "offset": 90 }, "end": { "line": 14, - "column": 17, - "offset": 120 - }, - "indent": [ - 5 - ] + "column": 16, + "offset": 118 + } } } ], @@ -339,12 +318,9 @@ }, "end": { "line": 14, - "column": 17, - "offset": 120 - }, - "indent": [ - 1 - ] + "column": 16, + "offset": 118 + } } } ], @@ -356,12 +332,9 @@ }, "end": { "line": 14, - "column": 17, - "offset": 120 - }, - "indent": [ - 1 - ] + "column": 16, + "offset": 118 + } } }, { @@ -371,14 +344,13 @@ "start": { "line": 16, "column": 1, - "offset": 122 + "offset": 120 }, "end": { "line": 16, "column": 10, - "offset": 131 - }, - "indent": [] + "offset": 129 + } } }, { @@ -402,16 +374,13 @@ "start": { "line": 18, "column": 5, - "offset": 137 + "offset": 135 }, "end": { "line": 19, "column": 17, - "offset": 166 - }, - "indent": [ - 5 - ] + "offset": 164 + } } } ], @@ -419,16 +388,13 @@ "start": { "line": 18, "column": 5, - "offset": 137 + "offset": 135 }, "end": { "line": 19, "column": 17, - "offset": 166 - }, - "indent": [ - 5 - ] + "offset": 164 + } } } ], @@ -436,16 +402,13 @@ "start": { "line": 18, "column": 1, - "offset": 133 + "offset": 131 }, "end": { "line": 19, "column": 17, - "offset": 166 - }, - "indent": [ - 1 - ] + "offset": 164 + } } } ], @@ -453,16 +416,13 @@ "start": { "line": 18, "column": 1, - "offset": 133 + "offset": 131 }, "end": { "line": 19, "column": 17, - "offset": 166 - }, - "indent": [ - 1 - ] + "offset": 164 + } } }, { @@ -472,14 +432,13 @@ "start": { "line": 21, "column": 1, - "offset": 168 + "offset": 166 }, "end": { "line": 21, "column": 10, - "offset": 177 - }, - "indent": [] + "offset": 175 + } } }, { @@ -502,34 +461,28 @@ "position": { "start": { "line": 23, - "column": 9, - "offset": 187 + "column": 6, + "offset": 182 }, "end": { "line": 24, - "column": 21, - "offset": 220 - }, - "indent": [ - 9 - ] + "column": 18, + "offset": 212 + } } } ], "position": { "start": { "line": 23, - "column": 9, - "offset": 187 + "column": 6, + "offset": 182 }, "end": { "line": 24, - "column": 21, - "offset": 220 - }, - "indent": [ - 9 - ] + "column": 18, + "offset": 212 + } } } ], @@ -537,16 +490,13 @@ "start": { "line": 23, "column": 1, - "offset": 179 + "offset": 177 }, "end": { "line": 24, - "column": 21, - "offset": 220 - }, - "indent": [ - 1 - ] + "column": 18, + "offset": 212 + } } } ], @@ -554,16 +504,13 @@ "start": { "line": 23, "column": 1, - "offset": 179 + "offset": 177 }, "end": { "line": 24, - "column": 21, - "offset": 220 - }, - "indent": [ - 1 - ] + "column": 18, + "offset": 212 + } } }, { @@ -573,14 +520,13 @@ "start": { "line": 26, "column": 1, - "offset": 222 + "offset": 214 }, "end": { "line": 26, "column": 10, - "offset": 231 - }, - "indent": [] + "offset": 223 + } } }, { @@ -604,14 +550,13 @@ "start": { "line": 28, "column": 3, - "offset": 235 + "offset": 227 }, "end": { "line": 28, "column": 15, - "offset": 247 - }, - "indent": [] + "offset": 239 + } } } ], @@ -619,14 +564,13 @@ "start": { "line": 28, "column": 3, - "offset": 235 + "offset": 227 }, "end": { "line": 28, "column": 15, - "offset": 247 - }, - "indent": [] + "offset": 239 + } } } ], @@ -634,14 +578,13 @@ "start": { "line": 28, "column": 1, - "offset": 233 + "offset": 225 }, "end": { "line": 28, "column": 15, - "offset": 247 - }, - "indent": [] + "offset": 239 + } } } ], @@ -649,14 +592,13 @@ "start": { "line": 28, "column": 1, - "offset": 233 + "offset": 225 }, "end": { "line": 28, "column": 15, - "offset": 247 - }, - "indent": [] + "offset": 239 + } } }, { @@ -666,14 +608,13 @@ "start": { "line": 30, "column": 1, - "offset": 249 + "offset": 241 }, "end": { "line": 30, "column": 10, - "offset": 258 - }, - "indent": [] + "offset": 250 + } } }, { @@ -696,34 +637,28 @@ "position": { "start": { "line": 32, - "column": 5, - "offset": 264 + "column": 3, + "offset": 254 }, "end": { "line": 33, - "column": 17, - "offset": 293 - }, - "indent": [ - 5 - ] + "column": 15, + "offset": 281 + } } } ], "position": { "start": { "line": 32, - "column": 5, - "offset": 264 + "column": 3, + "offset": 254 }, "end": { "line": 33, - "column": 17, - "offset": 293 - }, - "indent": [ - 5 - ] + "column": 15, + "offset": 281 + } } } ], @@ -731,16 +666,13 @@ "start": { "line": 32, "column": 1, - "offset": 260 + "offset": 252 }, "end": { "line": 33, - "column": 17, - "offset": 293 - }, - "indent": [ - 1 - ] + "column": 15, + "offset": 281 + } } } ], @@ -748,16 +680,13 @@ "start": { "line": 32, "column": 1, - "offset": 260 + "offset": 252 }, "end": { "line": 33, - "column": 17, - "offset": 293 - }, - "indent": [ - 1 - ] + "column": 15, + "offset": 281 + } } } ], @@ -770,7 +699,7 @@ "end": { "line": 34, "column": 1, - "offset": 294 + "offset": 282 } } } diff --git a/test/fixtures/tree/list-item-indent.list-item-indent=tab.output.json b/test/fixtures/tree/list-item-indent.list-item-indent=tab.output.json index bb2d54d04..c721f687f 100644 --- a/test/fixtures/tree/list-item-indent.list-item-indent=tab.output.json +++ b/test/fixtures/tree/list-item-indent.list-item-indent=tab.output.json @@ -28,8 +28,7 @@ "line": 1, "column": 17, "offset": 16 - }, - "indent": [] + } } } ], @@ -43,8 +42,7 @@ "line": 1, "column": 17, "offset": 16 - }, - "indent": [] + } } } ], @@ -58,8 +56,7 @@ "line": 1, "column": 17, "offset": 16 - }, - "indent": [] + } } } ], @@ -73,8 +70,7 @@ "line": 1, "column": 17, "offset": 16 - }, - "indent": [] + } } }, { @@ -90,8 +86,7 @@ "line": 3, "column": 10, "offset": 27 - }, - "indent": [] + } } }, { @@ -121,8 +116,7 @@ "line": 5, "column": 17, "offset": 45 - }, - "indent": [] + } } } ], @@ -136,8 +130,7 @@ "line": 5, "column": 17, "offset": 45 - }, - "indent": [] + } } } ], @@ -151,8 +144,7 @@ "line": 5, "column": 17, "offset": 45 - }, - "indent": [] + } } } ], @@ -166,8 +158,7 @@ "line": 5, "column": 17, "offset": 45 - }, - "indent": [] + } } }, { @@ -183,8 +174,7 @@ "line": 7, "column": 10, "offset": 56 - }, - "indent": [] + } } }, { @@ -214,8 +204,7 @@ "line": 9, "column": 21, "offset": 78 - }, - "indent": [] + } } } ], @@ -229,8 +218,7 @@ "line": 9, "column": 21, "offset": 78 - }, - "indent": [] + } } } ], @@ -244,8 +232,7 @@ "line": 9, "column": 21, "offset": 78 - }, - "indent": [] + } } } ], @@ -259,8 +246,7 @@ "line": 9, "column": 21, "offset": 78 - }, - "indent": [] + } } }, { @@ -276,8 +262,7 @@ "line": 11, "column": 10, "offset": 89 - }, - "indent": [] + } } }, { @@ -307,10 +292,7 @@ "line": 14, "column": 17, "offset": 124 - }, - "indent": [ - 5 - ] + } } } ], @@ -324,10 +306,7 @@ "line": 14, "column": 17, "offset": 124 - }, - "indent": [ - 5 - ] + } } } ], @@ -341,10 +320,7 @@ "line": 14, "column": 17, "offset": 124 - }, - "indent": [ - 1 - ] + } } } ], @@ -358,10 +334,7 @@ "line": 14, "column": 17, "offset": 124 - }, - "indent": [ - 1 - ] + } } }, { @@ -377,8 +350,7 @@ "line": 16, "column": 10, "offset": 135 - }, - "indent": [] + } } }, { @@ -408,10 +380,7 @@ "line": 19, "column": 17, "offset": 170 - }, - "indent": [ - 5 - ] + } } } ], @@ -425,10 +394,7 @@ "line": 19, "column": 17, "offset": 170 - }, - "indent": [ - 5 - ] + } } } ], @@ -442,10 +408,7 @@ "line": 19, "column": 17, "offset": 170 - }, - "indent": [ - 1 - ] + } } } ], @@ -459,10 +422,7 @@ "line": 19, "column": 17, "offset": 170 - }, - "indent": [ - 1 - ] + } } }, { @@ -478,8 +438,7 @@ "line": 21, "column": 10, "offset": 181 - }, - "indent": [] + } } }, { @@ -509,10 +468,7 @@ "line": 24, "column": 21, "offset": 224 - }, - "indent": [ - 9 - ] + } } } ], @@ -526,10 +482,7 @@ "line": 24, "column": 21, "offset": 224 - }, - "indent": [ - 9 - ] + } } } ], @@ -543,10 +496,7 @@ "line": 24, "column": 21, "offset": 224 - }, - "indent": [ - 1 - ] + } } } ], @@ -560,10 +510,7 @@ "line": 24, "column": 21, "offset": 224 - }, - "indent": [ - 1 - ] + } } }, { @@ -579,8 +526,7 @@ "line": 26, "column": 10, "offset": 235 - }, - "indent": [] + } } }, { @@ -610,8 +556,7 @@ "line": 28, "column": 17, "offset": 253 - }, - "indent": [] + } } } ], @@ -625,8 +570,7 @@ "line": 28, "column": 17, "offset": 253 - }, - "indent": [] + } } } ], @@ -640,8 +584,7 @@ "line": 28, "column": 17, "offset": 253 - }, - "indent": [] + } } } ], @@ -655,8 +598,7 @@ "line": 28, "column": 17, "offset": 253 - }, - "indent": [] + } } }, { @@ -672,8 +614,7 @@ "line": 30, "column": 10, "offset": 264 - }, - "indent": [] + } } }, { @@ -703,10 +644,7 @@ "line": 33, "column": 17, "offset": 299 - }, - "indent": [ - 5 - ] + } } } ], @@ -720,10 +658,7 @@ "line": 33, "column": 17, "offset": 299 - }, - "indent": [ - 5 - ] + } } } ], @@ -737,10 +672,7 @@ "line": 33, "column": 17, "offset": 299 - }, - "indent": [ - 1 - ] + } } } ], @@ -754,10 +686,7 @@ "line": 33, "column": 17, "offset": 299 - }, - "indent": [ - 1 - ] + } } } ], diff --git a/test/fixtures/tree/list-item-newline.nooutput.json b/test/fixtures/tree/list-item-newline.nooutput.json index 8ba0992ba..1ea38ee3d 100644 --- a/test/fixtures/tree/list-item-newline.nooutput.json +++ b/test/fixtures/tree/list-item-newline.nooutput.json @@ -28,8 +28,7 @@ "line": 1, "column": 8, "offset": 7 - }, - "indent": [] + } } } ], @@ -43,8 +42,7 @@ "line": 1, "column": 8, "offset": 7 - }, - "indent": [] + } } } ], @@ -58,8 +56,7 @@ "line": 1, "column": 8, "offset": 7 - }, - "indent": [] + } } }, { @@ -72,34 +69,32 @@ "children": [ { "type": "text", - "value": " Bar", + "value": "Bar", "position": { "start": { "line": 3, - "column": 2, - "offset": 11 + "column": 5, + "offset": 14 }, "end": { "line": 3, "column": 8, "offset": 17 - }, - "indent": [] + } } } ], "position": { "start": { "line": 3, - "column": 2, - "offset": 11 + "column": 5, + "offset": 14 }, "end": { "line": 3, "column": 8, "offset": 17 - }, - "indent": [] + } } } ], @@ -113,10 +108,7 @@ "line": 3, "column": 8, "offset": 17 - }, - "indent": [ - 1 - ] + } } } ], @@ -130,11 +122,7 @@ "line": 3, "column": 8, "offset": 17 - }, - "indent": [ - 1, - 1 - ] + } } } ], diff --git a/test/fixtures/tree/list-item-text.commonmark.json b/test/fixtures/tree/list-item-text.commonmark.json deleted file mode 100644 index 56287b40f..000000000 --- a/test/fixtures/tree/list-item-text.commonmark.json +++ /dev/null @@ -1,210 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "item1", - "position": { - "start": { - "line": 1, - "column": 5, - "offset": 4 - }, - "end": { - "line": 1, - "column": 10, - "offset": 9 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 5, - "offset": 4 - }, - "end": { - "line": 1, - "column": 10, - "offset": 9 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "item2", - "position": { - "start": { - "line": 3, - "column": 7, - "offset": 17 - }, - "end": { - "line": 3, - "column": 12, - "offset": 22 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 7, - "offset": 17 - }, - "end": { - "line": 3, - "column": 12, - "offset": 22 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 5, - "offset": 15 - }, - "end": { - "line": 3, - "column": 12, - "offset": 22 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 5, - "offset": 15 - }, - "end": { - "line": 3, - "column": 12, - "offset": 22 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 3, - "column": 12, - "offset": 22 - }, - "indent": [ - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 3, - "column": 12, - "offset": 22 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": " text", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 24 - }, - "end": { - "line": 5, - "column": 7, - "offset": 30 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 24 - }, - "end": { - "line": 5, - "column": 7, - "offset": 30 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 6, - "column": 1, - "offset": 31 - } - } -} diff --git a/test/fixtures/tree/list-item-text.json b/test/fixtures/tree/list-item-text.json index 076d5ec2e..d4b66dcb1 100644 --- a/test/fixtures/tree/list-item-text.json +++ b/test/fixtures/tree/list-item-text.json @@ -28,8 +28,7 @@ "line": 1, "column": 10, "offset": 9 - }, - "indent": [] + } } } ], @@ -43,8 +42,7 @@ "line": 1, "column": 10, "offset": 9 - }, - "indent": [] + } } }, { @@ -74,8 +72,7 @@ "line": 3, "column": 12, "offset": 22 - }, - "indent": [] + } } } ], @@ -89,113 +86,96 @@ "line": 3, "column": 12, "offset": 22 - }, - "indent": [] + } } } ], "position": { "start": { "line": 3, - "column": 3, - "offset": 13 + "column": 5, + "offset": 15 }, "end": { "line": 3, "column": 12, "offset": 22 - }, - "indent": [] + } } } ], "position": { "start": { "line": 3, - "column": 3, - "offset": 13 + "column": 5, + "offset": 15 }, "end": { "line": 3, "column": 12, "offset": 22 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "text", - "position": { - "start": { - "line": 5, - "column": 3, - "offset": 26 - }, - "end": { - "line": 5, - "column": 7, - "offset": 30 - }, - "indent": [] - } } - ], - "position": { - "start": { - "line": 5, - "column": 3, - "offset": 26 - }, - "end": { - "line": 5, - "column": 7, - "offset": 30 - }, - "indent": [] } } ], "position": { "start": { "line": 1, - "column": 1, - "offset": 0 + "column": 3, + "offset": 2 + }, + "end": { + "line": 3, + "column": 12, + "offset": 22 + } + } + } + ], + "position": { + "start": { + "line": 1, + "column": 3, + "offset": 2 + }, + "end": { + "line": 3, + "column": 12, + "offset": 22 + } + } + }, + { + "type": "paragraph", + "children": [ + { + "type": "text", + "value": "text", + "position": { + "start": { + "line": 5, + "column": 3, + "offset": 26 }, "end": { "line": 5, "column": 7, "offset": 30 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] + } } } ], "position": { "start": { - "line": 1, - "column": 1, - "offset": 0 + "line": 5, + "column": 3, + "offset": 26 }, "end": { "line": 5, "column": 7, "offset": 30 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] + } } } ], diff --git a/test/fixtures/tree/list-item-text.pedantic.json b/test/fixtures/tree/list-item-text.pedantic.json deleted file mode 100644 index eecb45c85..000000000 --- a/test/fixtures/tree/list-item-text.pedantic.json +++ /dev/null @@ -1,214 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "item1", - "position": { - "start": { - "line": 1, - "column": 5, - "offset": 4 - }, - "end": { - "line": 1, - "column": 10, - "offset": 9 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 5, - "offset": 4 - }, - "end": { - "line": 1, - "column": 10, - "offset": 9 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "item2", - "position": { - "start": { - "line": 3, - "column": 7, - "offset": 17 - }, - "end": { - "line": 3, - "column": 12, - "offset": 22 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 7, - "offset": 17 - }, - "end": { - "line": 3, - "column": 12, - "offset": 22 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 5, - "offset": 15 - }, - "end": { - "line": 3, - "column": 12, - "offset": 22 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 5, - "offset": 15 - }, - "end": { - "line": 3, - "column": 12, - "offset": 22 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "text", - "position": { - "start": { - "line": 5, - "column": 3, - "offset": 26 - }, - "end": { - "line": 5, - "column": 7, - "offset": 30 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 3, - "offset": 26 - }, - "end": { - "line": 5, - "column": 7, - "offset": 30 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 5, - "column": 7, - "offset": 30 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 5, - "column": 7, - "offset": 30 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 6, - "column": 1, - "offset": 31 - } - } -} diff --git a/test/fixtures/tree/list-mixed-indentation.commonmark.json b/test/fixtures/tree/list-mixed-indentation.commonmark.json deleted file mode 100644 index 0ea59e9ce..000000000 --- a/test/fixtures/tree/list-mixed-indentation.commonmark.json +++ /dev/null @@ -1,1514 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Mixed spaces and tabs", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 24, - "offset": 23 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 24, - "offset": 23 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "(item 1.) Minimum list, equivalent to two spaces", - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 27 - }, - "end": { - "line": 3, - "column": 51, - "offset": 75 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 27 - }, - "end": { - "line": 3, - "column": 51, - "offset": 75 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 25 - }, - "end": { - "line": 3, - "column": 51, - "offset": 75 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "(item 2.) indented with 1 space, not enough indentation to be a subitem", - "position": { - "start": { - "line": 4, - "column": 4, - "offset": 79 - }, - "end": { - "line": 4, - "column": 75, - "offset": 150 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 4, - "offset": 79 - }, - "end": { - "line": 4, - "column": 75, - "offset": 150 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "(item 2.1.) indented with tab", - "position": { - "start": { - "line": 5, - "column": 4, - "offset": 154 - }, - "end": { - "line": 5, - "column": 33, - "offset": 183 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 4, - "offset": 154 - }, - "end": { - "line": 5, - "column": 33, - "offset": 183 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 2, - "offset": 152 - }, - "end": { - "line": 5, - "column": 33, - "offset": 183 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 2, - "offset": 152 - }, - "end": { - "line": 5, - "column": 33, - "offset": 183 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 76 - }, - "end": { - "line": 6, - "column": 1, - "offset": 184 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "(item 1.) Minimum list, equivalent to two spaces", - "position": { - "start": { - "line": 8, - "column": 3, - "offset": 188 - }, - "end": { - "line": 8, - "column": 51, - "offset": 236 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 8, - "column": 3, - "offset": 188 - }, - "end": { - "line": 8, - "column": 51, - "offset": 236 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "(item 1.1.) indentend with 2 spaces", - "position": { - "start": { - "line": 9, - "column": 5, - "offset": 241 - }, - "end": { - "line": 9, - "column": 40, - "offset": 276 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 5, - "offset": 241 - }, - "end": { - "line": 9, - "column": 40, - "offset": 276 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 3, - "offset": 239 - }, - "end": { - "line": 9, - "column": 40, - "offset": 276 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "(item 1.2.) indented with tab", - "position": { - "start": { - "line": 10, - "column": 4, - "offset": 280 - }, - "end": { - "line": 10, - "column": 33, - "offset": 309 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 10, - "column": 4, - "offset": 280 - }, - "end": { - "line": 10, - "column": 33, - "offset": 309 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 10, - "column": 2, - "offset": 278 - }, - "end": { - "line": 10, - "column": 33, - "offset": 309 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 3, - "offset": 239 - }, - "end": { - "line": 10, - "column": 33, - "offset": 309 - }, - "indent": [ - 2 - ] - } - } - ], - "position": { - "start": { - "line": 8, - "column": 1, - "offset": 186 - }, - "end": { - "line": 11, - "column": 1, - "offset": 310 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "(item 1.) List with 1 extra space", - "position": { - "start": { - "line": 13, - "column": 4, - "offset": 315 - }, - "end": { - "line": 13, - "column": 37, - "offset": 348 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 4, - "offset": 315 - }, - "end": { - "line": 13, - "column": 37, - "offset": 348 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "(item 1.1.) indentend with 3 spaces", - "position": { - "start": { - "line": 14, - "column": 6, - "offset": 354 - }, - "end": { - "line": 14, - "column": 41, - "offset": 389 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 6, - "offset": 354 - }, - "end": { - "line": 14, - "column": 41, - "offset": 389 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 4, - "offset": 352 - }, - "end": { - "line": 14, - "column": 41, - "offset": 389 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "(item 1.2.) indented with tab", - "position": { - "start": { - "line": 15, - "column": 4, - "offset": 393 - }, - "end": { - "line": 15, - "column": 33, - "offset": 422 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 4, - "offset": 393 - }, - "end": { - "line": 15, - "column": 33, - "offset": 422 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 2, - "offset": 391 - }, - "end": { - "line": 15, - "column": 33, - "offset": 422 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 4, - "offset": 352 - }, - "end": { - "line": 15, - "column": 33, - "offset": 422 - }, - "indent": [ - 2 - ] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 312 - }, - "end": { - "line": 16, - "column": 1, - "offset": 423 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "(item 1.) List with 2 extra space, equivalent to 1 tab indentation", - "position": { - "start": { - "line": 18, - "column": 5, - "offset": 429 - }, - "end": { - "line": 18, - "column": 71, - "offset": 495 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 5, - "offset": 429 - }, - "end": { - "line": 18, - "column": 71, - "offset": 495 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "(item 1.1.) indentend with 4 spaces", - "position": { - "start": { - "line": 19, - "column": 7, - "offset": 502 - }, - "end": { - "line": 19, - "column": 42, - "offset": 537 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 19, - "column": 7, - "offset": 502 - }, - "end": { - "line": 19, - "column": 42, - "offset": 537 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 19, - "column": 5, - "offset": 500 - }, - "end": { - "line": 19, - "column": 42, - "offset": 537 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "(item 1.2.) indented with tab", - "position": { - "start": { - "line": 20, - "column": 4, - "offset": 541 - }, - "end": { - "line": 20, - "column": 33, - "offset": 570 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 4, - "offset": 541 - }, - "end": { - "line": 20, - "column": 33, - "offset": 570 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 2, - "offset": 539 - }, - "end": { - "line": 20, - "column": 33, - "offset": 570 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 19, - "column": 5, - "offset": 500 - }, - "end": { - "line": 20, - "column": 33, - "offset": 570 - }, - "indent": [ - 2 - ] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 425 - }, - "end": { - "line": 21, - "column": 1, - "offset": 571 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "(item 1.) List with 1 tab, equivalent to 4 spaces", - "position": { - "start": { - "line": 23, - "column": 3, - "offset": 575 - }, - "end": { - "line": 23, - "column": 52, - "offset": 624 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 23, - "column": 3, - "offset": 575 - }, - "end": { - "line": 23, - "column": 52, - "offset": 624 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "(item 1.1.) indentend with 4 spaces", - "position": { - "start": { - "line": 24, - "column": 7, - "offset": 631 - }, - "end": { - "line": 24, - "column": 42, - "offset": 666 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 24, - "column": 7, - "offset": 631 - }, - "end": { - "line": 24, - "column": 42, - "offset": 666 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 24, - "column": 5, - "offset": 629 - }, - "end": { - "line": 24, - "column": 42, - "offset": 666 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "(item 1.2.) indented with tab", - "position": { - "start": { - "line": 25, - "column": 4, - "offset": 670 - }, - "end": { - "line": 25, - "column": 33, - "offset": 699 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 25, - "column": 4, - "offset": 670 - }, - "end": { - "line": 25, - "column": 33, - "offset": 699 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 25, - "column": 2, - "offset": 668 - }, - "end": { - "line": 25, - "column": 33, - "offset": 699 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 24, - "column": 5, - "offset": 629 - }, - "end": { - "line": 25, - "column": 33, - "offset": 699 - }, - "indent": [ - 2 - ] - } - } - ], - "position": { - "start": { - "line": 23, - "column": 1, - "offset": 573 - }, - "end": { - "line": 26, - "column": 1, - "offset": 700 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "(item 1.) list with double indentation and mixed items", - "position": { - "start": { - "line": 28, - "column": 3, - "offset": 704 - }, - "end": { - "line": 28, - "column": 57, - "offset": 758 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 28, - "column": 3, - "offset": 704 - }, - "end": { - "line": 28, - "column": 57, - "offset": 758 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "(item 1.1.) normal indentation with 1 tab", - "position": { - "start": { - "line": 29, - "column": 4, - "offset": 762 - }, - "end": { - "line": 29, - "column": 45, - "offset": 803 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 29, - "column": 4, - "offset": 762 - }, - "end": { - "line": 29, - "column": 45, - "offset": 803 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "(item 1.1.1.) item with 4 spaces + 4 spaces", - "position": { - "start": { - "line": 30, - "column": 11, - "offset": 814 - }, - "end": { - "line": 30, - "column": 54, - "offset": 857 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 30, - "column": 11, - "offset": 814 - }, - "end": { - "line": 30, - "column": 54, - "offset": 857 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 30, - "column": 7, - "offset": 810 - }, - "end": { - "line": 30, - "column": 54, - "offset": 857 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "(item 1.1.2.) item with tab + 4 spaces", - "position": { - "start": { - "line": 31, - "column": 8, - "offset": 865 - }, - "end": { - "line": 31, - "column": 46, - "offset": 903 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 31, - "column": 8, - "offset": 865 - }, - "end": { - "line": 31, - "column": 46, - "offset": 903 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 31, - "column": 4, - "offset": 861 - }, - "end": { - "line": 31, - "column": 46, - "offset": 903 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "(item 1.1.3.) item with 4 spaces + tab", - "position": { - "start": { - "line": 32, - "column": 8, - "offset": 911 - }, - "end": { - "line": 32, - "column": 46, - "offset": 949 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 32, - "column": 8, - "offset": 911 - }, - "end": { - "line": 32, - "column": 46, - "offset": 949 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 32, - "column": 6, - "offset": 909 - }, - "end": { - "line": 32, - "column": 46, - "offset": 949 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "(item 1.1.4.) item with tab + tab", - "position": { - "start": { - "line": 33, - "column": 5, - "offset": 954 - }, - "end": { - "line": 33, - "column": 38, - "offset": 987 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 33, - "column": 5, - "offset": 954 - }, - "end": { - "line": 33, - "column": 38, - "offset": 987 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 33, - "column": 3, - "offset": 952 - }, - "end": { - "line": 33, - "column": 38, - "offset": 987 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "(item 1.1.5.) item with 2 spaces + tab + 2 spaces (nasty!)", - "position": { - "start": { - "line": 34, - "column": 8, - "offset": 995 - }, - "end": { - "line": 34, - "column": 66, - "offset": 1053 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 34, - "column": 8, - "offset": 995 - }, - "end": { - "line": 34, - "column": 66, - "offset": 1053 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 34, - "column": 6, - "offset": 993 - }, - "end": { - "line": 34, - "column": 66, - "offset": 1053 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 30, - "column": 7, - "offset": 810 - }, - "end": { - "line": 34, - "column": 66, - "offset": 1053 - }, - "indent": [ - 4, - 6, - 3, - 6 - ] - } - } - ], - "position": { - "start": { - "line": 29, - "column": 2, - "offset": 760 - }, - "end": { - "line": 34, - "column": 66, - "offset": 1053 - }, - "indent": [ - 5, - 2, - 5, - 2, - 4 - ] - } - } - ], - "position": { - "start": { - "line": 29, - "column": 2, - "offset": 760 - }, - "end": { - "line": 34, - "column": 66, - "offset": 1053 - }, - "indent": [ - 5, - 2, - 5, - 2, - 4 - ] - } - } - ], - "position": { - "start": { - "line": 28, - "column": 1, - "offset": 702 - }, - "end": { - "line": 34, - "column": 66, - "offset": 1053 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 25 - }, - "end": { - "line": 34, - "column": 66, - "offset": 1053 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 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": 35, - "column": 1, - "offset": 1054 - } - } -} diff --git a/test/fixtures/tree/list-mixed-indentation.json b/test/fixtures/tree/list-mixed-indentation.json index e48596fc2..a312ca4f2 100644 --- a/test/fixtures/tree/list-mixed-indentation.json +++ b/test/fixtures/tree/list-mixed-indentation.json @@ -18,8 +18,7 @@ "line": 1, "column": 24, "offset": 23 - }, - "indent": [] + } } } ], @@ -33,15 +32,14 @@ "line": 1, "column": 24, "offset": 23 - }, - "indent": [] + } } }, { "type": "list", "ordered": false, "start": null, - "spread": false, + "spread": true, "children": [ { "type": "listItem", @@ -64,8 +62,7 @@ "line": 3, "column": 51, "offset": 75 - }, - "indent": [] + } } } ], @@ -79,8 +76,7 @@ "line": 3, "column": 51, "offset": 75 - }, - "indent": [] + } } } ], @@ -94,8 +90,7 @@ "line": 3, "column": 51, "offset": 75 - }, - "indent": [] + } } }, { @@ -119,8 +114,7 @@ "line": 4, "column": 75, "offset": 150 - }, - "indent": [] + } } } ], @@ -134,8 +128,7 @@ "line": 4, "column": 75, "offset": 150 - }, - "indent": [] + } } }, { @@ -165,8 +158,7 @@ "line": 5, "column": 33, "offset": 183 - }, - "indent": [] + } } } ], @@ -180,8 +172,7 @@ "line": 5, "column": 33, "offset": 183 - }, - "indent": [] + } } } ], @@ -195,8 +186,7 @@ "line": 5, "column": 33, "offset": 183 - }, - "indent": [] + } } } ], @@ -210,51 +200,23 @@ "line": 5, "column": 33, "offset": 183 - }, - "indent": [] + } } } ], "position": { "start": { "line": 4, - "column": 1, - "offset": 76 + "column": 2, + "offset": 77 }, "end": { "line": 5, "column": 33, "offset": 183 - }, - "indent": [ - 1 - ] + } } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 25 - }, - "end": { - "line": 5, - "column": 33, - "offset": 183 }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ { "type": "listItem", "spread": false, @@ -276,8 +238,7 @@ "line": 8, "column": 51, "offset": 236 - }, - "indent": [] + } } } ], @@ -291,8 +252,7 @@ "line": 8, "column": 51, "offset": 236 - }, - "indent": [] + } } }, { @@ -322,8 +282,7 @@ "line": 9, "column": 40, "offset": 276 - }, - "indent": [] + } } } ], @@ -337,78 +296,93 @@ "line": 9, "column": 40, "offset": 276 - }, - "indent": [] + } } - } - ], - "position": { - "start": { - "line": 9, - "column": 3, - "offset": 239 }, - "end": { - "line": 9, - "column": 40, - "offset": 276 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ { - "type": "paragraph", + "type": "list", + "ordered": false, + "start": null, + "spread": false, "children": [ { - "type": "text", - "value": "(item 1.2.) indented with tab", + "type": "listItem", + "spread": false, + "checked": null, + "children": [ + { + "type": "paragraph", + "children": [ + { + "type": "text", + "value": "(item 1.2.) indented with tab", + "position": { + "start": { + "line": 10, + "column": 4, + "offset": 280 + }, + "end": { + "line": 10, + "column": 33, + "offset": 309 + } + } + } + ], + "position": { + "start": { + "line": 10, + "column": 4, + "offset": 280 + }, + "end": { + "line": 10, + "column": 33, + "offset": 309 + } + } + } + ], "position": { "start": { "line": 10, - "column": 4, - "offset": 280 + "column": 2, + "offset": 278 }, "end": { "line": 10, "column": 33, "offset": 309 - }, - "indent": [] + } } } ], "position": { "start": { "line": 10, - "column": 4, - "offset": 280 + "column": 2, + "offset": 278 }, "end": { "line": 10, "column": 33, "offset": 309 - }, - "indent": [] + } } } ], "position": { "start": { - "line": 10, - "column": 2, - "offset": 278 + "line": 9, + "column": 3, + "offset": 239 }, "end": { "line": 10, "column": 33, "offset": 309 - }, - "indent": [] + } } } ], @@ -422,10 +396,7 @@ "line": 10, "column": 33, "offset": 309 - }, - "indent": [ - 2 - ] + } } } ], @@ -439,37 +410,9 @@ "line": 10, "column": 33, "offset": 309 - }, - "indent": [ - 1, - 1 - ] + } } - } - ], - "position": { - "start": { - "line": 8, - "column": 1, - "offset": 186 }, - "end": { - "line": 10, - "column": 33, - "offset": 309 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ { "type": "listItem", "spread": false, @@ -491,8 +434,7 @@ "line": 13, "column": 37, "offset": 348 - }, - "indent": [] + } } } ], @@ -506,8 +448,7 @@ "line": 13, "column": 37, "offset": 348 - }, - "indent": [] + } } }, { @@ -537,8 +478,7 @@ "line": 14, "column": 41, "offset": 389 - }, - "indent": [] + } } } ], @@ -552,8 +492,7 @@ "line": 14, "column": 41, "offset": 389 - }, - "indent": [] + } } } ], @@ -567,8 +506,7 @@ "line": 14, "column": 41, "offset": 389 - }, - "indent": [] + } } }, { @@ -592,8 +530,7 @@ "line": 15, "column": 33, "offset": 422 - }, - "indent": [] + } } } ], @@ -607,8 +544,7 @@ "line": 15, "column": 33, "offset": 422 - }, - "indent": [] + } } } ], @@ -622,8 +558,7 @@ "line": 15, "column": 33, "offset": 422 - }, - "indent": [] + } } } ], @@ -637,10 +572,7 @@ "line": 15, "column": 33, "offset": 422 - }, - "indent": [ - 2 - ] + } } } ], @@ -654,37 +586,9 @@ "line": 15, "column": 33, "offset": 422 - }, - "indent": [ - 1, - 1 - ] + } } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 312 }, - "end": { - "line": 15, - "column": 33, - "offset": 422 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ { "type": "listItem", "spread": false, @@ -706,8 +610,7 @@ "line": 18, "column": 71, "offset": 495 - }, - "indent": [] + } } } ], @@ -721,8 +624,7 @@ "line": 18, "column": 71, "offset": 495 - }, - "indent": [] + } } }, { @@ -752,8 +654,7 @@ "line": 19, "column": 42, "offset": 537 - }, - "indent": [] + } } } ], @@ -767,8 +668,7 @@ "line": 19, "column": 42, "offset": 537 - }, - "indent": [] + } } } ], @@ -782,8 +682,7 @@ "line": 19, "column": 42, "offset": 537 - }, - "indent": [] + } } }, { @@ -807,8 +706,7 @@ "line": 20, "column": 33, "offset": 570 - }, - "indent": [] + } } } ], @@ -822,8 +720,7 @@ "line": 20, "column": 33, "offset": 570 - }, - "indent": [] + } } } ], @@ -837,8 +734,7 @@ "line": 20, "column": 33, "offset": 570 - }, - "indent": [] + } } } ], @@ -852,10 +748,7 @@ "line": 20, "column": 33, "offset": 570 - }, - "indent": [ - 2 - ] + } } } ], @@ -869,37 +762,9 @@ "line": 20, "column": 33, "offset": 570 - }, - "indent": [ - 1, - 1 - ] + } } - } - ], - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 425 - }, - "end": { - "line": 20, - "column": 33, - "offset": 570 }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ { "type": "listItem", "spread": false, @@ -921,8 +786,7 @@ "line": 23, "column": 52, "offset": 624 - }, - "indent": [] + } } } ], @@ -936,8 +800,7 @@ "line": 23, "column": 52, "offset": 624 - }, - "indent": [] + } } }, { @@ -967,8 +830,7 @@ "line": 24, "column": 42, "offset": 666 - }, - "indent": [] + } } } ], @@ -982,8 +844,7 @@ "line": 24, "column": 42, "offset": 666 - }, - "indent": [] + } } } ], @@ -997,8 +858,7 @@ "line": 24, "column": 42, "offset": 666 - }, - "indent": [] + } } }, { @@ -1022,8 +882,7 @@ "line": 25, "column": 33, "offset": 699 - }, - "indent": [] + } } } ], @@ -1037,8 +896,7 @@ "line": 25, "column": 33, "offset": 699 - }, - "indent": [] + } } } ], @@ -1052,8 +910,7 @@ "line": 25, "column": 33, "offset": 699 - }, - "indent": [] + } } } ], @@ -1067,10 +924,7 @@ "line": 25, "column": 33, "offset": 699 - }, - "indent": [ - 2 - ] + } } } ], @@ -1084,37 +938,9 @@ "line": 25, "column": 33, "offset": 699 - }, - "indent": [ - 1, - 1 - ] + } } - } - ], - "position": { - "start": { - "line": 23, - "column": 1, - "offset": 573 }, - "end": { - "line": 25, - "column": 33, - "offset": 699 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ { "type": "listItem", "spread": false, @@ -1136,8 +962,7 @@ "line": 28, "column": 57, "offset": 758 - }, - "indent": [] + } } } ], @@ -1151,8 +976,7 @@ "line": 28, "column": 57, "offset": 758 - }, - "indent": [] + } } }, { @@ -1182,8 +1006,7 @@ "line": 29, "column": 45, "offset": 803 - }, - "indent": [] + } } } ], @@ -1197,8 +1020,7 @@ "line": 29, "column": 45, "offset": 803 - }, - "indent": [] + } } }, { @@ -1228,8 +1050,7 @@ "line": 30, "column": 54, "offset": 857 - }, - "indent": [] + } } } ], @@ -1243,23 +1064,21 @@ "line": 30, "column": 54, "offset": 857 - }, - "indent": [] + } } } ], "position": { "start": { "line": 30, - "column": 7, - "offset": 810 + "column": 9, + "offset": 812 }, "end": { "line": 30, "column": 54, "offset": 857 - }, - "indent": [] + } } }, { @@ -1283,8 +1102,7 @@ "line": 31, "column": 46, "offset": 903 - }, - "indent": [] + } } } ], @@ -1298,23 +1116,21 @@ "line": 31, "column": 46, "offset": 903 - }, - "indent": [] + } } } ], "position": { "start": { "line": 31, - "column": 4, - "offset": 861 + "column": 6, + "offset": 863 }, "end": { "line": 31, "column": 46, "offset": 903 - }, - "indent": [] + } } }, { @@ -1338,8 +1154,7 @@ "line": 32, "column": 46, "offset": 949 - }, - "indent": [] + } } } ], @@ -1353,8 +1168,7 @@ "line": 32, "column": 46, "offset": 949 - }, - "indent": [] + } } } ], @@ -1368,8 +1182,7 @@ "line": 32, "column": 46, "offset": 949 - }, - "indent": [] + } } }, { @@ -1393,8 +1206,7 @@ "line": 33, "column": 38, "offset": 987 - }, - "indent": [] + } } } ], @@ -1408,8 +1220,7 @@ "line": 33, "column": 38, "offset": 987 - }, - "indent": [] + } } } ], @@ -1423,8 +1234,7 @@ "line": 33, "column": 38, "offset": 987 - }, - "indent": [] + } } }, { @@ -1448,8 +1258,7 @@ "line": 34, "column": 66, "offset": 1053 - }, - "indent": [] + } } } ], @@ -1463,8 +1272,7 @@ "line": 34, "column": 66, "offset": 1053 - }, - "indent": [] + } } } ], @@ -1478,28 +1286,21 @@ "line": 34, "column": 66, "offset": 1053 - }, - "indent": [] + } } } ], "position": { "start": { "line": 30, - "column": 7, - "offset": 810 + "column": 9, + "offset": 812 }, "end": { "line": 34, "column": 66, "offset": 1053 - }, - "indent": [ - 4, - 6, - 3, - 6 - ] + } } } ], @@ -1513,14 +1314,7 @@ "line": 34, "column": 66, "offset": 1053 - }, - "indent": [ - 5, - 2, - 5, - 2, - 4 - ] + } } } ], @@ -1534,14 +1328,7 @@ "line": 34, "column": 66, "offset": 1053 - }, - "indent": [ - 5, - 2, - 5, - 2, - 4 - ] + } } } ], @@ -1555,37 +1342,21 @@ "line": 34, "column": 66, "offset": 1053 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1 - ] + } } } ], "position": { "start": { - "line": 28, + "line": 3, "column": 1, - "offset": 702 + "offset": 25 }, "end": { "line": 34, "column": 66, "offset": 1053 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1 - ] + } } } ], diff --git a/test/fixtures/tree/list-ordered-empty-no-space-single-item.commonmark.json b/test/fixtures/tree/list-ordered-empty-no-space-single-item.commonmark.json deleted file mode 100644 index 0ddee8746..000000000 --- a/test/fixtures/tree/list-ordered-empty-no-space-single-item.commonmark.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 3, - "offset": 2 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 3, - "offset": 2 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 3, - "offset": 2 - } - } -} diff --git a/test/fixtures/tree/list-ordered-empty-no-space-single-item.json b/test/fixtures/tree/list-ordered-empty-no-space-single-item.json index 0ddee8746..b9d4a0419 100644 --- a/test/fixtures/tree/list-ordered-empty-no-space-single-item.json +++ b/test/fixtures/tree/list-ordered-empty-no-space-single-item.json @@ -22,8 +22,7 @@ "line": 1, "column": 3, "offset": 2 - }, - "indent": [] + } } } ], @@ -37,8 +36,7 @@ "line": 1, "column": 3, "offset": 2 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/list-ordered-empty-no-space.commonmark.json b/test/fixtures/tree/list-ordered-empty-no-space.commonmark.json deleted file mode 100644 index 54e65d568..000000000 --- a/test/fixtures/tree/list-ordered-empty-no-space.commonmark.json +++ /dev/null @@ -1,118 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 3, - "offset": 2 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [], - "position": { - "start": { - "line": 2, - "column": 1, - "offset": 3 - }, - "end": { - "line": 2, - "column": 3, - "offset": 5 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 6 - }, - "end": { - "line": 3, - "column": 3, - "offset": 8 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [], - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 9 - }, - "end": { - "line": 4, - "column": 3, - "offset": 11 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 4, - "column": 3, - "offset": 11 - }, - "indent": [ - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 5, - "column": 1, - "offset": 12 - } - } -} diff --git a/test/fixtures/tree/list-ordered-empty-no-space.json b/test/fixtures/tree/list-ordered-empty-no-space.json index 54e65d568..8929b6f20 100644 --- a/test/fixtures/tree/list-ordered-empty-no-space.json +++ b/test/fixtures/tree/list-ordered-empty-no-space.json @@ -22,8 +22,7 @@ "line": 1, "column": 3, "offset": 2 - }, - "indent": [] + } } }, { @@ -41,8 +40,7 @@ "line": 2, "column": 3, "offset": 5 - }, - "indent": [] + } } }, { @@ -60,8 +58,7 @@ "line": 3, "column": 3, "offset": 8 - }, - "indent": [] + } } }, { @@ -79,8 +76,7 @@ "line": 4, "column": 3, "offset": 11 - }, - "indent": [] + } } } ], @@ -94,12 +90,7 @@ "line": 4, "column": 3, "offset": 11 - }, - "indent": [ - 1, - 1, - 1 - ] + } } } ], diff --git a/test/fixtures/tree/list-ordered.increment-list-marker.output.json b/test/fixtures/tree/list-ordered.increment-list-marker.output.json index b5f44d46b..1a56928c0 100644 --- a/test/fixtures/tree/list-ordered.increment-list-marker.output.json +++ b/test/fixtures/tree/list-ordered.increment-list-marker.output.json @@ -28,8 +28,7 @@ "line": 1, "column": 9, "offset": 8 - }, - "indent": [] + } } } ], @@ -43,8 +42,7 @@ "line": 1, "column": 9, "offset": 8 - }, - "indent": [] + } } } ], @@ -58,8 +56,7 @@ "line": 1, "column": 9, "offset": 8 - }, - "indent": [] + } } }, { @@ -83,8 +80,7 @@ "line": 2, "column": 9, "offset": 17 - }, - "indent": [] + } } } ], @@ -98,8 +94,7 @@ "line": 2, "column": 9, "offset": 17 - }, - "indent": [] + } } } ], @@ -113,8 +108,7 @@ "line": 2, "column": 9, "offset": 17 - }, - "indent": [] + } } }, { @@ -138,8 +132,7 @@ "line": 3, "column": 9, "offset": 26 - }, - "indent": [] + } } } ], @@ -153,8 +146,7 @@ "line": 3, "column": 9, "offset": 26 - }, - "indent": [] + } } } ], @@ -168,8 +160,7 @@ "line": 3, "column": 9, "offset": 26 - }, - "indent": [] + } } } ], @@ -183,11 +174,7 @@ "line": 3, "column": 9, "offset": 26 - }, - "indent": [ - 1, - 1 - ] + } } } ], diff --git a/test/fixtures/tree/list-ordered.noincrement-list-marker.output.json b/test/fixtures/tree/list-ordered.noincrement-list-marker.output.json index b5f44d46b..1a56928c0 100644 --- a/test/fixtures/tree/list-ordered.noincrement-list-marker.output.json +++ b/test/fixtures/tree/list-ordered.noincrement-list-marker.output.json @@ -28,8 +28,7 @@ "line": 1, "column": 9, "offset": 8 - }, - "indent": [] + } } } ], @@ -43,8 +42,7 @@ "line": 1, "column": 9, "offset": 8 - }, - "indent": [] + } } } ], @@ -58,8 +56,7 @@ "line": 1, "column": 9, "offset": 8 - }, - "indent": [] + } } }, { @@ -83,8 +80,7 @@ "line": 2, "column": 9, "offset": 17 - }, - "indent": [] + } } } ], @@ -98,8 +94,7 @@ "line": 2, "column": 9, "offset": 17 - }, - "indent": [] + } } } ], @@ -113,8 +108,7 @@ "line": 2, "column": 9, "offset": 17 - }, - "indent": [] + } } }, { @@ -138,8 +132,7 @@ "line": 3, "column": 9, "offset": 26 - }, - "indent": [] + } } } ], @@ -153,8 +146,7 @@ "line": 3, "column": 9, "offset": 26 - }, - "indent": [] + } } } ], @@ -168,8 +160,7 @@ "line": 3, "column": 9, "offset": 26 - }, - "indent": [] + } } } ], @@ -183,11 +174,7 @@ "line": 3, "column": 9, "offset": 26 - }, - "indent": [ - 1, - 1 - ] + } } } ], diff --git a/test/fixtures/tree/list-unordered-empty-no-space-single-item.commonmark.json b/test/fixtures/tree/list-unordered-empty-no-space-single-item.commonmark.json deleted file mode 100644 index a7c8ef61d..000000000 --- a/test/fixtures/tree/list-unordered-empty-no-space-single-item.commonmark.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 2, - "offset": 1 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 2, - "offset": 1 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 2, - "offset": 1 - } - } -} diff --git a/test/fixtures/tree/list-unordered-empty-no-space-single-item.json b/test/fixtures/tree/list-unordered-empty-no-space-single-item.json index a7c8ef61d..ce8b5dcca 100644 --- a/test/fixtures/tree/list-unordered-empty-no-space-single-item.json +++ b/test/fixtures/tree/list-unordered-empty-no-space-single-item.json @@ -22,8 +22,7 @@ "line": 1, "column": 2, "offset": 1 - }, - "indent": [] + } } } ], @@ -37,8 +36,7 @@ "line": 1, "column": 2, "offset": 1 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/list-unordered-empty-no-space.commonmark.json b/test/fixtures/tree/list-unordered-empty-no-space.commonmark.json deleted file mode 100644 index 139a9d968..000000000 --- a/test/fixtures/tree/list-unordered-empty-no-space.commonmark.json +++ /dev/null @@ -1,118 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 2, - "offset": 1 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [], - "position": { - "start": { - "line": 2, - "column": 1, - "offset": 2 - }, - "end": { - "line": 2, - "column": 2, - "offset": 3 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 4 - }, - "end": { - "line": 3, - "column": 2, - "offset": 5 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [], - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 6 - }, - "end": { - "line": 4, - "column": 2, - "offset": 7 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 4, - "column": 2, - "offset": 7 - }, - "indent": [ - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 5, - "column": 1, - "offset": 8 - } - } -} diff --git a/test/fixtures/tree/list-unordered-empty-no-space.json b/test/fixtures/tree/list-unordered-empty-no-space.json index 139a9d968..d900cb766 100644 --- a/test/fixtures/tree/list-unordered-empty-no-space.json +++ b/test/fixtures/tree/list-unordered-empty-no-space.json @@ -22,8 +22,7 @@ "line": 1, "column": 2, "offset": 1 - }, - "indent": [] + } } }, { @@ -41,8 +40,7 @@ "line": 2, "column": 2, "offset": 3 - }, - "indent": [] + } } }, { @@ -60,8 +58,7 @@ "line": 3, "column": 2, "offset": 5 - }, - "indent": [] + } } }, { @@ -79,8 +76,7 @@ "line": 4, "column": 2, "offset": 7 - }, - "indent": [] + } } } ], @@ -94,12 +90,7 @@ "line": 4, "column": 2, "offset": 7 - }, - "indent": [ - 1, - 1, - 1 - ] + } } } ], diff --git a/test/fixtures/tree/list.output.bullet=+.json b/test/fixtures/tree/list.output.bullet=+.json index 3046f32ff..3747d64e0 100644 --- a/test/fixtures/tree/list.output.bullet=+.json +++ b/test/fixtures/tree/list.output.bullet=+.json @@ -18,8 +18,7 @@ "line": 1, "column": 15, "offset": 14 - }, - "indent": [] + } } } ], @@ -33,8 +32,7 @@ "line": 1, "column": 15, "offset": 14 - }, - "indent": [] + } } }, { @@ -64,8 +62,7 @@ "line": 3, "column": 9, "offset": 24 - }, - "indent": [] + } } } ], @@ -79,8 +76,7 @@ "line": 3, "column": 9, "offset": 24 - }, - "indent": [] + } } }, { @@ -110,8 +106,7 @@ "line": 4, "column": 20, "offset": 44 - }, - "indent": [] + } } } ], @@ -125,8 +120,7 @@ "line": 4, "column": 20, "offset": 44 - }, - "indent": [] + } } } ], @@ -140,8 +134,7 @@ "line": 4, "column": 20, "offset": 44 - }, - "indent": [] + } } }, { @@ -165,8 +158,7 @@ "line": 5, "column": 20, "offset": 64 - }, - "indent": [] + } } } ], @@ -180,8 +172,7 @@ "line": 5, "column": 20, "offset": 64 - }, - "indent": [] + } } }, { @@ -211,8 +202,7 @@ "line": 6, "column": 26, "offset": 90 - }, - "indent": [] + } } } ], @@ -226,8 +216,7 @@ "line": 6, "column": 26, "offset": 90 - }, - "indent": [] + } } } ], @@ -241,8 +230,7 @@ "line": 6, "column": 26, "offset": 90 - }, - "indent": [] + } } } ], @@ -256,8 +244,7 @@ "line": 6, "column": 26, "offset": 90 - }, - "indent": [] + } } } ], @@ -271,10 +258,7 @@ "line": 6, "column": 26, "offset": 90 - }, - "indent": [ - 5 - ] + } } } ], @@ -288,11 +272,7 @@ "line": 6, "column": 26, "offset": 90 - }, - "indent": [ - 5, - 5 - ] + } } } ], @@ -306,12 +286,7 @@ "line": 6, "column": 26, "offset": 90 - }, - "indent": [ - 1, - 1, - 1 - ] + } } }, { @@ -335,8 +310,7 @@ "line": 7, "column": 9, "offset": 99 - }, - "indent": [] + } } } ], @@ -350,8 +324,7 @@ "line": 7, "column": 9, "offset": 99 - }, - "indent": [] + } } } ], @@ -365,8 +338,7 @@ "line": 7, "column": 9, "offset": 99 - }, - "indent": [] + } } }, { @@ -390,8 +362,7 @@ "line": 8, "column": 11, "offset": 110 - }, - "indent": [] + } } } ], @@ -405,8 +376,7 @@ "line": 8, "column": 11, "offset": 110 - }, - "indent": [] + } } } ], @@ -420,8 +390,7 @@ "line": 8, "column": 11, "offset": 110 - }, - "indent": [] + } } } ], @@ -435,14 +404,7 @@ "line": 8, "column": 11, "offset": 110 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1 - ] + } } } ], diff --git a/test/fixtures/tree/list.output.bullet=-.json b/test/fixtures/tree/list.output.bullet=-.json index 3046f32ff..3747d64e0 100644 --- a/test/fixtures/tree/list.output.bullet=-.json +++ b/test/fixtures/tree/list.output.bullet=-.json @@ -18,8 +18,7 @@ "line": 1, "column": 15, "offset": 14 - }, - "indent": [] + } } } ], @@ -33,8 +32,7 @@ "line": 1, "column": 15, "offset": 14 - }, - "indent": [] + } } }, { @@ -64,8 +62,7 @@ "line": 3, "column": 9, "offset": 24 - }, - "indent": [] + } } } ], @@ -79,8 +76,7 @@ "line": 3, "column": 9, "offset": 24 - }, - "indent": [] + } } }, { @@ -110,8 +106,7 @@ "line": 4, "column": 20, "offset": 44 - }, - "indent": [] + } } } ], @@ -125,8 +120,7 @@ "line": 4, "column": 20, "offset": 44 - }, - "indent": [] + } } } ], @@ -140,8 +134,7 @@ "line": 4, "column": 20, "offset": 44 - }, - "indent": [] + } } }, { @@ -165,8 +158,7 @@ "line": 5, "column": 20, "offset": 64 - }, - "indent": [] + } } } ], @@ -180,8 +172,7 @@ "line": 5, "column": 20, "offset": 64 - }, - "indent": [] + } } }, { @@ -211,8 +202,7 @@ "line": 6, "column": 26, "offset": 90 - }, - "indent": [] + } } } ], @@ -226,8 +216,7 @@ "line": 6, "column": 26, "offset": 90 - }, - "indent": [] + } } } ], @@ -241,8 +230,7 @@ "line": 6, "column": 26, "offset": 90 - }, - "indent": [] + } } } ], @@ -256,8 +244,7 @@ "line": 6, "column": 26, "offset": 90 - }, - "indent": [] + } } } ], @@ -271,10 +258,7 @@ "line": 6, "column": 26, "offset": 90 - }, - "indent": [ - 5 - ] + } } } ], @@ -288,11 +272,7 @@ "line": 6, "column": 26, "offset": 90 - }, - "indent": [ - 5, - 5 - ] + } } } ], @@ -306,12 +286,7 @@ "line": 6, "column": 26, "offset": 90 - }, - "indent": [ - 1, - 1, - 1 - ] + } } }, { @@ -335,8 +310,7 @@ "line": 7, "column": 9, "offset": 99 - }, - "indent": [] + } } } ], @@ -350,8 +324,7 @@ "line": 7, "column": 9, "offset": 99 - }, - "indent": [] + } } } ], @@ -365,8 +338,7 @@ "line": 7, "column": 9, "offset": 99 - }, - "indent": [] + } } }, { @@ -390,8 +362,7 @@ "line": 8, "column": 11, "offset": 110 - }, - "indent": [] + } } } ], @@ -405,8 +376,7 @@ "line": 8, "column": 11, "offset": 110 - }, - "indent": [] + } } } ], @@ -420,8 +390,7 @@ "line": 8, "column": 11, "offset": 110 - }, - "indent": [] + } } } ], @@ -435,14 +404,7 @@ "line": 8, "column": 11, "offset": 110 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1 - ] + } } } ], diff --git a/test/fixtures/tree/list.output.bullet=-asterisk-.json b/test/fixtures/tree/list.output.bullet=-asterisk-.json index 3046f32ff..3747d64e0 100644 --- a/test/fixtures/tree/list.output.bullet=-asterisk-.json +++ b/test/fixtures/tree/list.output.bullet=-asterisk-.json @@ -18,8 +18,7 @@ "line": 1, "column": 15, "offset": 14 - }, - "indent": [] + } } } ], @@ -33,8 +32,7 @@ "line": 1, "column": 15, "offset": 14 - }, - "indent": [] + } } }, { @@ -64,8 +62,7 @@ "line": 3, "column": 9, "offset": 24 - }, - "indent": [] + } } } ], @@ -79,8 +76,7 @@ "line": 3, "column": 9, "offset": 24 - }, - "indent": [] + } } }, { @@ -110,8 +106,7 @@ "line": 4, "column": 20, "offset": 44 - }, - "indent": [] + } } } ], @@ -125,8 +120,7 @@ "line": 4, "column": 20, "offset": 44 - }, - "indent": [] + } } } ], @@ -140,8 +134,7 @@ "line": 4, "column": 20, "offset": 44 - }, - "indent": [] + } } }, { @@ -165,8 +158,7 @@ "line": 5, "column": 20, "offset": 64 - }, - "indent": [] + } } } ], @@ -180,8 +172,7 @@ "line": 5, "column": 20, "offset": 64 - }, - "indent": [] + } } }, { @@ -211,8 +202,7 @@ "line": 6, "column": 26, "offset": 90 - }, - "indent": [] + } } } ], @@ -226,8 +216,7 @@ "line": 6, "column": 26, "offset": 90 - }, - "indent": [] + } } } ], @@ -241,8 +230,7 @@ "line": 6, "column": 26, "offset": 90 - }, - "indent": [] + } } } ], @@ -256,8 +244,7 @@ "line": 6, "column": 26, "offset": 90 - }, - "indent": [] + } } } ], @@ -271,10 +258,7 @@ "line": 6, "column": 26, "offset": 90 - }, - "indent": [ - 5 - ] + } } } ], @@ -288,11 +272,7 @@ "line": 6, "column": 26, "offset": 90 - }, - "indent": [ - 5, - 5 - ] + } } } ], @@ -306,12 +286,7 @@ "line": 6, "column": 26, "offset": 90 - }, - "indent": [ - 1, - 1, - 1 - ] + } } }, { @@ -335,8 +310,7 @@ "line": 7, "column": 9, "offset": 99 - }, - "indent": [] + } } } ], @@ -350,8 +324,7 @@ "line": 7, "column": 9, "offset": 99 - }, - "indent": [] + } } } ], @@ -365,8 +338,7 @@ "line": 7, "column": 9, "offset": 99 - }, - "indent": [] + } } }, { @@ -390,8 +362,7 @@ "line": 8, "column": 11, "offset": 110 - }, - "indent": [] + } } } ], @@ -405,8 +376,7 @@ "line": 8, "column": 11, "offset": 110 - }, - "indent": [] + } } } ], @@ -420,8 +390,7 @@ "line": 8, "column": 11, "offset": 110 - }, - "indent": [] + } } } ], @@ -435,14 +404,7 @@ "line": 8, "column": 11, "offset": 110 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1 - ] + } } } ], diff --git a/test/fixtures/tree/lists-with-code-and-rules.commonmark.pedantic.json b/test/fixtures/tree/lists-with-code-and-rules.commonmark.pedantic.json deleted file mode 100644 index ce829cbd1..000000000 --- a/test/fixtures/tree/lists-with-code-and-rules.commonmark.pedantic.json +++ /dev/null @@ -1,1077 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "heading", - "depth": 2, - "children": [ - { - "type": "text", - "value": "foo", - "position": { - "start": { - "line": 1, - "column": 4, - "offset": 3 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "bar:", - "position": { - "start": { - "line": 3, - "column": 4, - "offset": 11 - }, - "end": { - "line": 3, - "column": 8, - "offset": 15 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 4, - "offset": 11 - }, - "end": { - "line": 3, - "column": 8, - "offset": 15 - }, - "indent": [] - } - }, - { - "type": "blockquote", - "children": [ - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "one", - "position": { - "start": { - "line": 5, - "column": 9, - "offset": 25 - }, - "end": { - "line": 5, - "column": 12, - "offset": 28 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 9, - "offset": 25 - }, - "end": { - "line": 5, - "column": 12, - "offset": 28 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 7, - "offset": 23 - }, - "end": { - "line": 5, - "column": 12, - "offset": 28 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 7, - "offset": 23 - }, - "end": { - "line": 5, - "column": 12, - "offset": 28 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 5, - "offset": 21 - }, - "end": { - "line": 5, - "column": 12, - "offset": 28 - }, - "indent": [] - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "- two\n - three\n - four\n - five", - "position": { - "start": { - "line": 6, - "column": 5, - "offset": 33 - }, - "end": { - "line": 9, - "column": 19, - "offset": 100 - }, - "indent": [ - 5, - 5, - 5 - ] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 8 - }, - "end": { - "line": 10, - "column": 1, - "offset": 101 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo:", - "position": { - "start": { - "line": 11, - "column": 4, - "offset": 105 - }, - "end": { - "line": 11, - "column": 8, - "offset": 109 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 4, - "offset": 105 - }, - "end": { - "line": 11, - "column": 8, - "offset": 109 - }, - "indent": [] - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "line 1\nline 2", - "position": { - "start": { - "line": 13, - "column": 5, - "offset": 115 - }, - "end": { - "line": 16, - "column": 8, - "offset": 148 - }, - "indent": [ - 5, - 5, - 5 - ] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 102 - }, - "end": { - "line": 17, - "column": 1, - "offset": 149 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo:", - "position": { - "start": { - "line": 18, - "column": 4, - "offset": 153 - }, - "end": { - "line": 18, - "column": 8, - "offset": 157 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 4, - "offset": 153 - }, - "end": { - "line": 18, - "column": 8, - "offset": 157 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo ", - "position": { - "start": { - "line": 20, - "column": 8, - "offset": 166 - }, - "end": { - "line": 20, - "column": 12, - "offset": 170 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "bar", - "position": { - "start": { - "line": 20, - "column": 12, - "offset": 170 - }, - "end": { - "line": 20, - "column": 17, - "offset": 175 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " bar:", - "position": { - "start": { - "line": 20, - "column": 17, - "offset": 175 - }, - "end": { - "line": 20, - "column": 22, - "offset": 180 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 8, - "offset": 166 - }, - "end": { - "line": 20, - "column": 22, - "offset": 180 - }, - "indent": [] - } - }, - { - "type": "code", - "lang": "erb", - "meta": null, - "value": "some code here", - "position": { - "start": { - "line": 22, - "column": 9, - "offset": 190 - }, - "end": { - "line": 24, - "column": 12, - "offset": 232 - }, - "indent": [ - 9, - 9 - ] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 5, - "offset": 163 - }, - "end": { - "line": 25, - "column": 1, - "offset": 233 - }, - "indent": [ - 1, - 5, - 5, - 5, - 1 - ] - } - }, - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo ", - "position": { - "start": { - "line": 26, - "column": 8, - "offset": 241 - }, - "end": { - "line": 26, - "column": 12, - "offset": 245 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "bar", - "position": { - "start": { - "line": 26, - "column": 12, - "offset": 245 - }, - "end": { - "line": 26, - "column": 17, - "offset": 250 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " bar:", - "position": { - "start": { - "line": 26, - "column": 17, - "offset": 250 - }, - "end": { - "line": 26, - "column": 22, - "offset": 255 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 26, - "column": 8, - "offset": 241 - }, - "end": { - "line": 26, - "column": 22, - "offset": 255 - }, - "indent": [] - } - }, - { - "type": "code", - "lang": "erb", - "meta": null, - "value": "foo\n---\nbar\n---\nfoo\nbar", - "position": { - "start": { - "line": 28, - "column": 9, - "offset": 265 - }, - "end": { - "line": 35, - "column": 12, - "offset": 356 - }, - "indent": [ - 9, - 9, - 9, - 9, - 9, - 9, - 9 - ] - } - } - ], - "position": { - "start": { - "line": 26, - "column": 5, - "offset": 238 - }, - "end": { - "line": 36, - "column": 1, - "offset": 357 - }, - "indent": [ - 1, - 5, - 5, - 5, - 5, - 5, - 5, - 5, - 5, - 1 - ] - } - }, - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo ", - "position": { - "start": { - "line": 37, - "column": 8, - "offset": 365 - }, - "end": { - "line": 37, - "column": 12, - "offset": 369 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "bar", - "position": { - "start": { - "line": 37, - "column": 12, - "offset": 369 - }, - "end": { - "line": 37, - "column": 17, - "offset": 374 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " bar:", - "position": { - "start": { - "line": 37, - "column": 17, - "offset": 374 - }, - "end": { - "line": 37, - "column": 22, - "offset": 379 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 37, - "column": 8, - "offset": 365 - }, - "end": { - "line": 37, - "column": 22, - "offset": 379 - }, - "indent": [] - } - }, - { - "type": "code", - "lang": "html", - "meta": null, - "value": "---\nfoo\nfoo\n---\nbar", - "position": { - "start": { - "line": 39, - "column": 9, - "offset": 389 - }, - "end": { - "line": 45, - "column": 12, - "offset": 469 - }, - "indent": [ - 9, - 9, - 9, - 9, - 9, - 9 - ] - } - } - ], - "position": { - "start": { - "line": 37, - "column": 5, - "offset": 362 - }, - "end": { - "line": 46, - "column": 1, - "offset": 470 - }, - "indent": [ - 1, - 5, - 5, - 5, - 5, - 5, - 5, - 5, - 1 - ] - } - }, - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo ", - "position": { - "start": { - "line": 47, - "column": 8, - "offset": 478 - }, - "end": { - "line": 47, - "column": 12, - "offset": 482 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "bar", - "position": { - "start": { - "line": 47, - "column": 12, - "offset": 482 - }, - "end": { - "line": 47, - "column": 17, - "offset": 487 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " bar:", - "position": { - "start": { - "line": 47, - "column": 17, - "offset": 487 - }, - "end": { - "line": 47, - "column": 22, - "offset": 492 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 47, - "column": 8, - "offset": 478 - }, - "end": { - "line": 47, - "column": 22, - "offset": 492 - }, - "indent": [] - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "foo\n---\nbar", - "position": { - "start": { - "line": 49, - "column": 9, - "offset": 502 - }, - "end": { - "line": 51, - "column": 16, - "offset": 541 - }, - "indent": [ - 9, - 9 - ] - } - } - ], - "position": { - "start": { - "line": 47, - "column": 5, - "offset": 475 - }, - "end": { - "line": 52, - "column": 1, - "offset": 542 - }, - "indent": [ - 1, - 5, - 5, - 5, - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo", - "position": { - "start": { - "line": 53, - "column": 8, - "offset": 550 - }, - "end": { - "line": 53, - "column": 11, - "offset": 553 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 53, - "column": 8, - "offset": 550 - }, - "end": { - "line": 53, - "column": 11, - "offset": 553 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 53, - "column": 5, - "offset": 547 - }, - "end": { - "line": 53, - "column": 11, - "offset": 553 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 5, - "offset": 163 - }, - "end": { - "line": 53, - "column": 11, - "offset": 553 - }, - "indent": [ - 1, - 5, - 5, - 5, - 1, - 5, - 1, - 5, - 5, - 5, - 5, - 5, - 5, - 5, - 5, - 1, - 5, - 1, - 5, - 5, - 5, - 5, - 5, - 5, - 5, - 1, - 5, - 1, - 5, - 5, - 5, - 1, - 5 - ] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 150 - }, - "end": { - "line": 53, - "column": 11, - "offset": 553 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 8 - }, - "end": { - "line": 53, - "column": 11, - "offset": 553 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 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": 54, - "column": 1, - "offset": 554 - } - } -} diff --git a/test/fixtures/tree/lists-with-code-and-rules.json b/test/fixtures/tree/lists-with-code-and-rules.json index d3b7ff895..b35cb40ad 100644 --- a/test/fixtures/tree/lists-with-code-and-rules.json +++ b/test/fixtures/tree/lists-with-code-and-rules.json @@ -18,8 +18,7 @@ "line": 1, "column": 7, "offset": 6 - }, - "indent": [] + } } } ], @@ -33,8 +32,7 @@ "line": 1, "column": 7, "offset": 6 - }, - "indent": [] + } } }, { @@ -64,8 +62,7 @@ "line": 3, "column": 8, "offset": 15 - }, - "indent": [] + } } } ], @@ -79,8 +76,7 @@ "line": 3, "column": 8, "offset": 15 - }, - "indent": [] + } } }, { @@ -102,307 +98,32 @@ "children": [ { "type": "text", - "value": "one", + "value": "one\n- two\n- three\n- four\n- five", "position": { "start": { "line": 5, "column": 9, "offset": 25 }, - "end": { - "line": 5, - "column": 12, - "offset": 28 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 9, - "offset": 25 - }, - "end": { - "line": 5, - "column": 12, - "offset": 28 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "two", - "position": { - "start": { - "line": 6, - "column": 11, - "offset": 39 - }, - "end": { - "line": 6, - "column": 14, - "offset": 42 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 11, - "offset": 39 - }, - "end": { - "line": 6, - "column": 14, - "offset": 42 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "three", - "position": { - "start": { - "line": 7, - "column": 15, - "offset": 57 - }, - "end": { - "line": 7, - "column": 20, - "offset": 62 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 15, - "offset": 57 - }, - "end": { - "line": 7, - "column": 20, - "offset": 62 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 11, - "offset": 53 - }, - "end": { - "line": 7, - "column": 20, - "offset": 62 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "four", - "position": { - "start": { - "line": 8, - "column": 15, - "offset": 77 - }, - "end": { - "line": 8, - "column": 19, - "offset": 81 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 8, - "column": 15, - "offset": 77 - }, - "end": { - "line": 8, - "column": 19, - "offset": 81 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 8, - "column": 11, - "offset": 73 - }, - "end": { - "line": 8, - "column": 19, - "offset": 81 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "five", - "position": { - "start": { - "line": 9, - "column": 15, - "offset": 96 - }, - "end": { - "line": 9, - "column": 19, - "offset": 100 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 15, - "offset": 96 - }, - "end": { - "line": 9, - "column": 19, - "offset": 100 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 11, - "offset": 92 - }, - "end": { - "line": 9, - "column": 19, - "offset": 100 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 11, - "offset": 53 - }, - "end": { - "line": 9, - "column": 19, - "offset": 100 - }, - "indent": [ - 11, - 11 - ] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 7, - "offset": 35 - }, "end": { "line": 9, "column": 19, "offset": 100 - }, - "indent": [ - 7, - 7, - 7 - ] + } } } ], "position": { "start": { - "line": 6, - "column": 7, - "offset": 35 + "line": 5, + "column": 9, + "offset": 25 }, "end": { "line": 9, "column": 19, "offset": 100 - }, - "indent": [ - 7, - 7, - 7 - ] + } } } ], @@ -416,13 +137,7 @@ "line": 9, "column": 19, "offset": 100 - }, - "indent": [ - 5, - 5, - 5, - 5 - ] + } } } ], @@ -436,13 +151,7 @@ "line": 9, "column": 19, "offset": 100 - }, - "indent": [ - 5, - 5, - 5, - 5 - ] + } } } ], @@ -456,13 +165,7 @@ "line": 9, "column": 19, "offset": 100 - }, - "indent": [ - 5, - 5, - 5, - 5 - ] + } } } ], @@ -473,19 +176,10 @@ "offset": 8 }, "end": { - "line": 10, - "column": 1, - "offset": 101 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] + "line": 9, + "column": 19, + "offset": 100 + } } }, { @@ -509,8 +203,7 @@ "line": 11, "column": 8, "offset": 109 - }, - "indent": [] + } } } ], @@ -524,8 +217,7 @@ "line": 11, "column": 8, "offset": 109 - }, - "indent": [] + } } }, { @@ -543,12 +235,7 @@ "line": 16, "column": 8, "offset": 148 - }, - "indent": [ - 5, - 5, - 5 - ] + } } } ], @@ -559,18 +246,10 @@ "offset": 102 }, "end": { - "line": 17, - "column": 1, - "offset": 149 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1 - ] + "line": 16, + "column": 8, + "offset": 148 + } } }, { @@ -594,8 +273,7 @@ "line": 18, "column": 8, "offset": 157 - }, - "indent": [] + } } } ], @@ -609,8 +287,7 @@ "line": 18, "column": 8, "offset": 157 - }, - "indent": [] + } } }, { @@ -640,8 +317,7 @@ "line": 20, "column": 12, "offset": 170 - }, - "indent": [] + } } }, { @@ -657,8 +333,7 @@ "line": 20, "column": 17, "offset": 175 - }, - "indent": [] + } } }, { @@ -674,8 +349,7 @@ "line": 20, "column": 22, "offset": 180 - }, - "indent": [] + } } } ], @@ -689,8 +363,7 @@ "line": 20, "column": 22, "offset": 180 - }, - "indent": [] + } } }, { @@ -708,11 +381,7 @@ "line": 24, "column": 12, "offset": 232 - }, - "indent": [ - 9, - 9 - ] + } } } ], @@ -723,17 +392,10 @@ "offset": 163 }, "end": { - "line": 25, - "column": 1, - "offset": 233 - }, - "indent": [ - 1, - 5, - 5, - 5, - 1 - ] + "line": 24, + "column": 12, + "offset": 232 + } } }, { @@ -757,8 +419,7 @@ "line": 26, "column": 12, "offset": 245 - }, - "indent": [] + } } }, { @@ -774,8 +435,7 @@ "line": 26, "column": 17, "offset": 250 - }, - "indent": [] + } } }, { @@ -791,8 +451,7 @@ "line": 26, "column": 22, "offset": 255 - }, - "indent": [] + } } } ], @@ -806,8 +465,7 @@ "line": 26, "column": 22, "offset": 255 - }, - "indent": [] + } } }, { @@ -825,16 +483,7 @@ "line": 35, "column": 12, "offset": 356 - }, - "indent": [ - 9, - 9, - 9, - 9, - 9, - 9, - 9 - ] + } } } ], @@ -845,22 +494,10 @@ "offset": 238 }, "end": { - "line": 36, - "column": 1, - "offset": 357 - }, - "indent": [ - 1, - 5, - 5, - 5, - 5, - 5, - 5, - 5, - 5, - 1 - ] + "line": 35, + "column": 12, + "offset": 356 + } } }, { @@ -884,8 +521,7 @@ "line": 37, "column": 12, "offset": 369 - }, - "indent": [] + } } }, { @@ -901,8 +537,7 @@ "line": 37, "column": 17, "offset": 374 - }, - "indent": [] + } } }, { @@ -918,8 +553,7 @@ "line": 37, "column": 22, "offset": 379 - }, - "indent": [] + } } } ], @@ -933,8 +567,7 @@ "line": 37, "column": 22, "offset": 379 - }, - "indent": [] + } } }, { @@ -952,15 +585,7 @@ "line": 45, "column": 12, "offset": 469 - }, - "indent": [ - 9, - 9, - 9, - 9, - 9, - 9 - ] + } } } ], @@ -971,21 +596,10 @@ "offset": 362 }, "end": { - "line": 46, - "column": 1, - "offset": 470 - }, - "indent": [ - 1, - 5, - 5, - 5, - 5, - 5, - 5, - 5, - 1 - ] + "line": 45, + "column": 12, + "offset": 469 + } } }, { @@ -1009,8 +623,7 @@ "line": 47, "column": 12, "offset": 482 - }, - "indent": [] + } } }, { @@ -1026,8 +639,7 @@ "line": 47, "column": 17, "offset": 487 - }, - "indent": [] + } } }, { @@ -1043,8 +655,7 @@ "line": 47, "column": 22, "offset": 492 - }, - "indent": [] + } } } ], @@ -1058,30 +669,25 @@ "line": 47, "column": 22, "offset": 492 - }, - "indent": [] + } } }, { "type": "code", "lang": null, "meta": null, - "value": "foo\n---\nbar", + "value": " foo\n ---\n bar", "position": { "start": { "line": 49, - "column": 9, - "offset": 502 + "column": 8, + "offset": 501 }, "end": { "line": 51, "column": 16, "offset": 541 - }, - "indent": [ - 9, - 9 - ] + } } } ], @@ -1092,17 +698,10 @@ "offset": 475 }, "end": { - "line": 52, - "column": 1, - "offset": 542 - }, - "indent": [ - 1, - 5, - 5, - 5, - 1 - ] + "line": 51, + "column": 16, + "offset": 541 + } } }, { @@ -1126,8 +725,7 @@ "line": 53, "column": 11, "offset": 553 - }, - "indent": [] + } } } ], @@ -1141,8 +739,7 @@ "line": 53, "column": 11, "offset": 553 - }, - "indent": [] + } } } ], @@ -1156,8 +753,7 @@ "line": 53, "column": 11, "offset": 553 - }, - "indent": [] + } } } ], @@ -1171,42 +767,7 @@ "line": 53, "column": 11, "offset": 553 - }, - "indent": [ - 1, - 5, - 5, - 5, - 1, - 5, - 1, - 5, - 5, - 5, - 5, - 5, - 5, - 5, - 5, - 1, - 5, - 1, - 5, - 5, - 5, - 5, - 5, - 5, - 5, - 1, - 5, - 1, - 5, - 5, - 5, - 1, - 5 - ] + } } } ], @@ -1220,44 +781,7 @@ "line": 53, "column": 11, "offset": 553 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] + } } } ], @@ -1271,59 +795,7 @@ "line": 53, "column": 11, "offset": 553 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] + } } } ], diff --git a/test/fixtures/tree/lists-with-code-and-rules.nogfm.commonmark.pedantic.json b/test/fixtures/tree/lists-with-code-and-rules.nogfm.commonmark.pedantic.json deleted file mode 100644 index 341fd2efe..000000000 --- a/test/fixtures/tree/lists-with-code-and-rules.nogfm.commonmark.pedantic.json +++ /dev/null @@ -1,1329 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "heading", - "depth": 2, - "children": [ - { - "type": "text", - "value": "foo", - "position": { - "start": { - "line": 1, - "column": 4, - "offset": 3 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "bar:", - "position": { - "start": { - "line": 3, - "column": 4, - "offset": 11 - }, - "end": { - "line": 3, - "column": 8, - "offset": 15 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 4, - "offset": 11 - }, - "end": { - "line": 3, - "column": 8, - "offset": 15 - }, - "indent": [] - } - }, - { - "type": "blockquote", - "children": [ - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "one", - "position": { - "start": { - "line": 5, - "column": 9, - "offset": 25 - }, - "end": { - "line": 5, - "column": 12, - "offset": 28 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 9, - "offset": 25 - }, - "end": { - "line": 5, - "column": 12, - "offset": 28 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 7, - "offset": 23 - }, - "end": { - "line": 5, - "column": 12, - "offset": 28 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 7, - "offset": 23 - }, - "end": { - "line": 5, - "column": 12, - "offset": 28 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 5, - "offset": 21 - }, - "end": { - "line": 5, - "column": 12, - "offset": 28 - }, - "indent": [] - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "- two\n - three\n - four\n - five", - "position": { - "start": { - "line": 6, - "column": 5, - "offset": 33 - }, - "end": { - "line": 9, - "column": 19, - "offset": 100 - }, - "indent": [ - 5, - 5, - 5 - ] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 8 - }, - "end": { - "line": 10, - "column": 1, - "offset": 101 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo:", - "position": { - "start": { - "line": 11, - "column": 4, - "offset": 105 - }, - "end": { - "line": 11, - "column": 8, - "offset": 109 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 4, - "offset": 105 - }, - "end": { - "line": 11, - "column": 8, - "offset": 109 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "inlineCode", - "value": "line 1\nline 2", - "position": { - "start": { - "line": 13, - "column": 5, - "offset": 115 - }, - "end": { - "line": 16, - "column": 8, - "offset": 148 - }, - "indent": [ - 5, - 5, - 5 - ] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 5, - "offset": 115 - }, - "end": { - "line": 16, - "column": 8, - "offset": 148 - }, - "indent": [ - 5, - 5, - 5 - ] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 102 - }, - "end": { - "line": 17, - "column": 1, - "offset": 149 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo:", - "position": { - "start": { - "line": 18, - "column": 4, - "offset": 153 - }, - "end": { - "line": 18, - "column": 8, - "offset": 157 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 4, - "offset": 153 - }, - "end": { - "line": 18, - "column": 8, - "offset": 157 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo ", - "position": { - "start": { - "line": 20, - "column": 8, - "offset": 166 - }, - "end": { - "line": 20, - "column": 12, - "offset": 170 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "bar", - "position": { - "start": { - "line": 20, - "column": 12, - "offset": 170 - }, - "end": { - "line": 20, - "column": 17, - "offset": 175 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " bar:", - "position": { - "start": { - "line": 20, - "column": 17, - "offset": 175 - }, - "end": { - "line": 20, - "column": 22, - "offset": 180 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 8, - "offset": 166 - }, - "end": { - "line": 20, - "column": 22, - "offset": 180 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "inlineCode", - "value": "erb\nsome code here", - "position": { - "start": { - "line": 22, - "column": 9, - "offset": 190 - }, - "end": { - "line": 24, - "column": 12, - "offset": 232 - }, - "indent": [ - 9, - 9 - ] - } - } - ], - "position": { - "start": { - "line": 22, - "column": 9, - "offset": 190 - }, - "end": { - "line": 24, - "column": 12, - "offset": 232 - }, - "indent": [ - 9, - 9 - ] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 5, - "offset": 163 - }, - "end": { - "line": 25, - "column": 1, - "offset": 233 - }, - "indent": [ - 1, - 5, - 5, - 5, - 1 - ] - } - }, - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo ", - "position": { - "start": { - "line": 26, - "column": 8, - "offset": 241 - }, - "end": { - "line": 26, - "column": 12, - "offset": 245 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "bar", - "position": { - "start": { - "line": 26, - "column": 12, - "offset": 245 - }, - "end": { - "line": 26, - "column": 17, - "offset": 250 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " bar:", - "position": { - "start": { - "line": 26, - "column": 17, - "offset": 250 - }, - "end": { - "line": 26, - "column": 22, - "offset": 255 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 26, - "column": 8, - "offset": 241 - }, - "end": { - "line": 26, - "column": 22, - "offset": 255 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "``` erb\nfoo", - "position": { - "start": { - "line": 28, - "column": 9, - "offset": 265 - }, - "end": { - "line": 29, - "column": 12, - "offset": 284 - }, - "indent": [ - 9 - ] - } - } - ], - "position": { - "start": { - "line": 28, - "column": 9, - "offset": 265 - }, - "end": { - "line": 29, - "column": 12, - "offset": 284 - }, - "indent": [ - 9 - ] - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 30, - "column": 9, - "offset": 293 - }, - "end": { - "line": 30, - "column": 12, - "offset": 296 - }, - "indent": [] - } - }, - { - "type": "heading", - "depth": 2, - "children": [ - { - "type": "text", - "value": "bar", - "position": { - "start": { - "line": 31, - "column": 9, - "offset": 305 - }, - "end": { - "line": 31, - "column": 12, - "offset": 308 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 31, - "column": 9, - "offset": 305 - }, - "end": { - "line": 32, - "column": 12, - "offset": 320 - }, - "indent": [ - 9 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo\nbar\n```", - "position": { - "start": { - "line": 33, - "column": 9, - "offset": 329 - }, - "end": { - "line": 35, - "column": 12, - "offset": 356 - }, - "indent": [ - 9, - 9 - ] - } - } - ], - "position": { - "start": { - "line": 33, - "column": 9, - "offset": 329 - }, - "end": { - "line": 35, - "column": 12, - "offset": 356 - }, - "indent": [ - 9, - 9 - ] - } - } - ], - "position": { - "start": { - "line": 26, - "column": 5, - "offset": 238 - }, - "end": { - "line": 36, - "column": 1, - "offset": 357 - }, - "indent": [ - 1, - 5, - 5, - 5, - 5, - 5, - 5, - 5, - 5, - 1 - ] - } - }, - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo ", - "position": { - "start": { - "line": 37, - "column": 8, - "offset": 365 - }, - "end": { - "line": 37, - "column": 12, - "offset": 369 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "bar", - "position": { - "start": { - "line": 37, - "column": 12, - "offset": 369 - }, - "end": { - "line": 37, - "column": 17, - "offset": 374 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " bar:", - "position": { - "start": { - "line": 37, - "column": 17, - "offset": 374 - }, - "end": { - "line": 37, - "column": 22, - "offset": 379 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 37, - "column": 8, - "offset": 365 - }, - "end": { - "line": 37, - "column": 22, - "offset": 379 - }, - "indent": [] - } - }, - { - "type": "heading", - "depth": 2, - "children": [ - { - "type": "text", - "value": "``` html", - "position": { - "start": { - "line": 39, - "column": 9, - "offset": 389 - }, - "end": { - "line": 39, - "column": 17, - "offset": 397 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 39, - "column": 9, - "offset": 389 - }, - "end": { - "line": 40, - "column": 12, - "offset": 409 - }, - "indent": [ - 9 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo\nfoo", - "position": { - "start": { - "line": 41, - "column": 9, - "offset": 418 - }, - "end": { - "line": 42, - "column": 12, - "offset": 433 - }, - "indent": [ - 9 - ] - } - } - ], - "position": { - "start": { - "line": 41, - "column": 9, - "offset": 418 - }, - "end": { - "line": 42, - "column": 12, - "offset": 433 - }, - "indent": [ - 9 - ] - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 43, - "column": 9, - "offset": 442 - }, - "end": { - "line": 43, - "column": 12, - "offset": 445 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "bar\n```", - "position": { - "start": { - "line": 44, - "column": 9, - "offset": 454 - }, - "end": { - "line": 45, - "column": 12, - "offset": 469 - }, - "indent": [ - 9 - ] - } - } - ], - "position": { - "start": { - "line": 44, - "column": 9, - "offset": 454 - }, - "end": { - "line": 45, - "column": 12, - "offset": 469 - }, - "indent": [ - 9 - ] - } - } - ], - "position": { - "start": { - "line": 37, - "column": 5, - "offset": 362 - }, - "end": { - "line": 46, - "column": 1, - "offset": 470 - }, - "indent": [ - 1, - 5, - 5, - 5, - 5, - 5, - 5, - 5, - 1 - ] - } - }, - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo ", - "position": { - "start": { - "line": 47, - "column": 8, - "offset": 478 - }, - "end": { - "line": 47, - "column": 12, - "offset": 482 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "bar", - "position": { - "start": { - "line": 47, - "column": 12, - "offset": 482 - }, - "end": { - "line": 47, - "column": 17, - "offset": 487 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " bar:", - "position": { - "start": { - "line": 47, - "column": 17, - "offset": 487 - }, - "end": { - "line": 47, - "column": 22, - "offset": 492 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 47, - "column": 8, - "offset": 478 - }, - "end": { - "line": 47, - "column": 22, - "offset": 492 - }, - "indent": [] - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "foo\n---\nbar", - "position": { - "start": { - "line": 49, - "column": 9, - "offset": 502 - }, - "end": { - "line": 51, - "column": 16, - "offset": 541 - }, - "indent": [ - 9, - 9 - ] - } - } - ], - "position": { - "start": { - "line": 47, - "column": 5, - "offset": 475 - }, - "end": { - "line": 52, - "column": 1, - "offset": 542 - }, - "indent": [ - 1, - 5, - 5, - 5, - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo", - "position": { - "start": { - "line": 53, - "column": 8, - "offset": 550 - }, - "end": { - "line": 53, - "column": 11, - "offset": 553 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 53, - "column": 8, - "offset": 550 - }, - "end": { - "line": 53, - "column": 11, - "offset": 553 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 53, - "column": 5, - "offset": 547 - }, - "end": { - "line": 53, - "column": 11, - "offset": 553 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 5, - "offset": 163 - }, - "end": { - "line": 53, - "column": 11, - "offset": 553 - }, - "indent": [ - 1, - 5, - 5, - 5, - 1, - 5, - 1, - 5, - 5, - 5, - 5, - 5, - 5, - 5, - 5, - 1, - 5, - 1, - 5, - 5, - 5, - 5, - 5, - 5, - 5, - 1, - 5, - 1, - 5, - 5, - 5, - 1, - 5 - ] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 150 - }, - "end": { - "line": 53, - "column": 11, - "offset": 553 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 8 - }, - "end": { - "line": 53, - "column": 11, - "offset": 553 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 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": 54, - "column": 1, - "offset": 554 - } - } -} diff --git a/test/fixtures/tree/lists-with-code-and-rules.nogfm.json b/test/fixtures/tree/lists-with-code-and-rules.nogfm.json deleted file mode 100644 index a76220b7a..000000000 --- a/test/fixtures/tree/lists-with-code-and-rules.nogfm.json +++ /dev/null @@ -1,1630 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "heading", - "depth": 2, - "children": [ - { - "type": "text", - "value": "foo", - "position": { - "start": { - "line": 1, - "column": 4, - "offset": 3 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "bar:", - "position": { - "start": { - "line": 3, - "column": 4, - "offset": 11 - }, - "end": { - "line": 3, - "column": 8, - "offset": 15 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 4, - "offset": 11 - }, - "end": { - "line": 3, - "column": 8, - "offset": 15 - }, - "indent": [] - } - }, - { - "type": "blockquote", - "children": [ - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "one", - "position": { - "start": { - "line": 5, - "column": 9, - "offset": 25 - }, - "end": { - "line": 5, - "column": 12, - "offset": 28 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 9, - "offset": 25 - }, - "end": { - "line": 5, - "column": 12, - "offset": 28 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "two", - "position": { - "start": { - "line": 6, - "column": 11, - "offset": 39 - }, - "end": { - "line": 6, - "column": 14, - "offset": 42 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 11, - "offset": 39 - }, - "end": { - "line": 6, - "column": 14, - "offset": 42 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "three", - "position": { - "start": { - "line": 7, - "column": 15, - "offset": 57 - }, - "end": { - "line": 7, - "column": 20, - "offset": 62 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 15, - "offset": 57 - }, - "end": { - "line": 7, - "column": 20, - "offset": 62 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 11, - "offset": 53 - }, - "end": { - "line": 7, - "column": 20, - "offset": 62 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "four", - "position": { - "start": { - "line": 8, - "column": 15, - "offset": 77 - }, - "end": { - "line": 8, - "column": 19, - "offset": 81 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 8, - "column": 15, - "offset": 77 - }, - "end": { - "line": 8, - "column": 19, - "offset": 81 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 8, - "column": 11, - "offset": 73 - }, - "end": { - "line": 8, - "column": 19, - "offset": 81 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "five", - "position": { - "start": { - "line": 9, - "column": 15, - "offset": 96 - }, - "end": { - "line": 9, - "column": 19, - "offset": 100 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 15, - "offset": 96 - }, - "end": { - "line": 9, - "column": 19, - "offset": 100 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 11, - "offset": 92 - }, - "end": { - "line": 9, - "column": 19, - "offset": 100 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 11, - "offset": 53 - }, - "end": { - "line": 9, - "column": 19, - "offset": 100 - }, - "indent": [ - 11, - 11 - ] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 7, - "offset": 35 - }, - "end": { - "line": 9, - "column": 19, - "offset": 100 - }, - "indent": [ - 7, - 7, - 7 - ] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 7, - "offset": 35 - }, - "end": { - "line": 9, - "column": 19, - "offset": 100 - }, - "indent": [ - 7, - 7, - 7 - ] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 7, - "offset": 23 - }, - "end": { - "line": 9, - "column": 19, - "offset": 100 - }, - "indent": [ - 5, - 5, - 5, - 5 - ] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 7, - "offset": 23 - }, - "end": { - "line": 9, - "column": 19, - "offset": 100 - }, - "indent": [ - 5, - 5, - 5, - 5 - ] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 5, - "offset": 21 - }, - "end": { - "line": 9, - "column": 19, - "offset": 100 - }, - "indent": [ - 5, - 5, - 5, - 5 - ] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 8 - }, - "end": { - "line": 10, - "column": 1, - "offset": 101 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo:", - "position": { - "start": { - "line": 11, - "column": 4, - "offset": 105 - }, - "end": { - "line": 11, - "column": 8, - "offset": 109 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 4, - "offset": 105 - }, - "end": { - "line": 11, - "column": 8, - "offset": 109 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "inlineCode", - "value": "line 1\nline 2", - "position": { - "start": { - "line": 13, - "column": 5, - "offset": 115 - }, - "end": { - "line": 16, - "column": 8, - "offset": 148 - }, - "indent": [ - 5, - 5, - 5 - ] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 5, - "offset": 115 - }, - "end": { - "line": 16, - "column": 8, - "offset": 148 - }, - "indent": [ - 5, - 5, - 5 - ] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 102 - }, - "end": { - "line": 17, - "column": 1, - "offset": 149 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo:", - "position": { - "start": { - "line": 18, - "column": 4, - "offset": 153 - }, - "end": { - "line": 18, - "column": 8, - "offset": 157 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 4, - "offset": 153 - }, - "end": { - "line": 18, - "column": 8, - "offset": 157 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo ", - "position": { - "start": { - "line": 20, - "column": 8, - "offset": 166 - }, - "end": { - "line": 20, - "column": 12, - "offset": 170 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "bar", - "position": { - "start": { - "line": 20, - "column": 12, - "offset": 170 - }, - "end": { - "line": 20, - "column": 17, - "offset": 175 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " bar:", - "position": { - "start": { - "line": 20, - "column": 17, - "offset": 175 - }, - "end": { - "line": 20, - "column": 22, - "offset": 180 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 8, - "offset": 166 - }, - "end": { - "line": 20, - "column": 22, - "offset": 180 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "inlineCode", - "value": "erb\nsome code here", - "position": { - "start": { - "line": 22, - "column": 9, - "offset": 190 - }, - "end": { - "line": 24, - "column": 12, - "offset": 232 - }, - "indent": [ - 9, - 9 - ] - } - } - ], - "position": { - "start": { - "line": 22, - "column": 9, - "offset": 190 - }, - "end": { - "line": 24, - "column": 12, - "offset": 232 - }, - "indent": [ - 9, - 9 - ] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 5, - "offset": 163 - }, - "end": { - "line": 25, - "column": 1, - "offset": 233 - }, - "indent": [ - 1, - 5, - 5, - 5, - 1 - ] - } - }, - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo ", - "position": { - "start": { - "line": 26, - "column": 8, - "offset": 241 - }, - "end": { - "line": 26, - "column": 12, - "offset": 245 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "bar", - "position": { - "start": { - "line": 26, - "column": 12, - "offset": 245 - }, - "end": { - "line": 26, - "column": 17, - "offset": 250 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " bar:", - "position": { - "start": { - "line": 26, - "column": 17, - "offset": 250 - }, - "end": { - "line": 26, - "column": 22, - "offset": 255 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 26, - "column": 8, - "offset": 241 - }, - "end": { - "line": 26, - "column": 22, - "offset": 255 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "``` erb", - "position": { - "start": { - "line": 28, - "column": 9, - "offset": 265 - }, - "end": { - "line": 28, - "column": 16, - "offset": 272 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 28, - "column": 9, - "offset": 265 - }, - "end": { - "line": 28, - "column": 16, - "offset": 272 - }, - "indent": [] - } - }, - { - "type": "heading", - "depth": 2, - "children": [ - { - "type": "text", - "value": "foo", - "position": { - "start": { - "line": 29, - "column": 9, - "offset": 281 - }, - "end": { - "line": 29, - "column": 12, - "offset": 284 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 29, - "column": 9, - "offset": 281 - }, - "end": { - "line": 30, - "column": 12, - "offset": 296 - }, - "indent": [ - 9 - ] - } - }, - { - "type": "heading", - "depth": 2, - "children": [ - { - "type": "text", - "value": "bar", - "position": { - "start": { - "line": 31, - "column": 9, - "offset": 305 - }, - "end": { - "line": 31, - "column": 12, - "offset": 308 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 31, - "column": 9, - "offset": 305 - }, - "end": { - "line": 32, - "column": 12, - "offset": 320 - }, - "indent": [ - 9 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo\nbar\n```", - "position": { - "start": { - "line": 33, - "column": 9, - "offset": 329 - }, - "end": { - "line": 35, - "column": 12, - "offset": 356 - }, - "indent": [ - 9, - 9 - ] - } - } - ], - "position": { - "start": { - "line": 33, - "column": 9, - "offset": 329 - }, - "end": { - "line": 35, - "column": 12, - "offset": 356 - }, - "indent": [ - 9, - 9 - ] - } - } - ], - "position": { - "start": { - "line": 26, - "column": 5, - "offset": 238 - }, - "end": { - "line": 36, - "column": 1, - "offset": 357 - }, - "indent": [ - 1, - 5, - 5, - 5, - 5, - 5, - 5, - 5, - 5, - 1 - ] - } - }, - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo ", - "position": { - "start": { - "line": 37, - "column": 8, - "offset": 365 - }, - "end": { - "line": 37, - "column": 12, - "offset": 369 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "bar", - "position": { - "start": { - "line": 37, - "column": 12, - "offset": 369 - }, - "end": { - "line": 37, - "column": 17, - "offset": 374 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " bar:", - "position": { - "start": { - "line": 37, - "column": 17, - "offset": 374 - }, - "end": { - "line": 37, - "column": 22, - "offset": 379 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 37, - "column": 8, - "offset": 365 - }, - "end": { - "line": 37, - "column": 22, - "offset": 379 - }, - "indent": [] - } - }, - { - "type": "heading", - "depth": 2, - "children": [ - { - "type": "text", - "value": "``` html", - "position": { - "start": { - "line": 39, - "column": 9, - "offset": 389 - }, - "end": { - "line": 39, - "column": 17, - "offset": 397 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 39, - "column": 9, - "offset": 389 - }, - "end": { - "line": 40, - "column": 12, - "offset": 409 - }, - "indent": [ - 9 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo", - "position": { - "start": { - "line": 41, - "column": 9, - "offset": 418 - }, - "end": { - "line": 41, - "column": 12, - "offset": 421 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 41, - "column": 9, - "offset": 418 - }, - "end": { - "line": 41, - "column": 12, - "offset": 421 - }, - "indent": [] - } - }, - { - "type": "heading", - "depth": 2, - "children": [ - { - "type": "text", - "value": "foo", - "position": { - "start": { - "line": 42, - "column": 9, - "offset": 430 - }, - "end": { - "line": 42, - "column": 12, - "offset": 433 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 42, - "column": 9, - "offset": 430 - }, - "end": { - "line": 43, - "column": 12, - "offset": 445 - }, - "indent": [ - 9 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "bar\n```", - "position": { - "start": { - "line": 44, - "column": 9, - "offset": 454 - }, - "end": { - "line": 45, - "column": 12, - "offset": 469 - }, - "indent": [ - 9 - ] - } - } - ], - "position": { - "start": { - "line": 44, - "column": 9, - "offset": 454 - }, - "end": { - "line": 45, - "column": 12, - "offset": 469 - }, - "indent": [ - 9 - ] - } - } - ], - "position": { - "start": { - "line": 37, - "column": 5, - "offset": 362 - }, - "end": { - "line": 46, - "column": 1, - "offset": 470 - }, - "indent": [ - 1, - 5, - 5, - 5, - 5, - 5, - 5, - 5, - 1 - ] - } - }, - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo ", - "position": { - "start": { - "line": 47, - "column": 8, - "offset": 478 - }, - "end": { - "line": 47, - "column": 12, - "offset": 482 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "bar", - "position": { - "start": { - "line": 47, - "column": 12, - "offset": 482 - }, - "end": { - "line": 47, - "column": 17, - "offset": 487 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " bar:", - "position": { - "start": { - "line": 47, - "column": 17, - "offset": 487 - }, - "end": { - "line": 47, - "column": 22, - "offset": 492 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 47, - "column": 8, - "offset": 478 - }, - "end": { - "line": 47, - "column": 22, - "offset": 492 - }, - "indent": [] - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "foo\n---\nbar", - "position": { - "start": { - "line": 49, - "column": 9, - "offset": 502 - }, - "end": { - "line": 51, - "column": 16, - "offset": 541 - }, - "indent": [ - 9, - 9 - ] - } - } - ], - "position": { - "start": { - "line": 47, - "column": 5, - "offset": 475 - }, - "end": { - "line": 52, - "column": 1, - "offset": 542 - }, - "indent": [ - 1, - 5, - 5, - 5, - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo", - "position": { - "start": { - "line": 53, - "column": 8, - "offset": 550 - }, - "end": { - "line": 53, - "column": 11, - "offset": 553 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 53, - "column": 8, - "offset": 550 - }, - "end": { - "line": 53, - "column": 11, - "offset": 553 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 53, - "column": 5, - "offset": 547 - }, - "end": { - "line": 53, - "column": 11, - "offset": 553 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 5, - "offset": 163 - }, - "end": { - "line": 53, - "column": 11, - "offset": 553 - }, - "indent": [ - 1, - 5, - 5, - 5, - 1, - 5, - 1, - 5, - 5, - 5, - 5, - 5, - 5, - 5, - 5, - 1, - 5, - 1, - 5, - 5, - 5, - 5, - 5, - 5, - 5, - 1, - 5, - 1, - 5, - 5, - 5, - 1, - 5 - ] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 150 - }, - "end": { - "line": 53, - "column": 11, - "offset": 553 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 8 - }, - "end": { - "line": 53, - "column": 11, - "offset": 553 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 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": 54, - "column": 1, - "offset": 554 - } - } -} diff --git a/test/fixtures/tree/lists-with-code-and-rules.nogfm.pedantic.json b/test/fixtures/tree/lists-with-code-and-rules.nogfm.pedantic.json deleted file mode 100644 index d8b5126a2..000000000 --- a/test/fixtures/tree/lists-with-code-and-rules.nogfm.pedantic.json +++ /dev/null @@ -1,1630 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "heading", - "depth": 2, - "children": [ - { - "type": "text", - "value": "foo", - "position": { - "start": { - "line": 1, - "column": 4, - "offset": 3 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "bar:", - "position": { - "start": { - "line": 3, - "column": 4, - "offset": 11 - }, - "end": { - "line": 3, - "column": 8, - "offset": 15 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 4, - "offset": 11 - }, - "end": { - "line": 3, - "column": 8, - "offset": 15 - }, - "indent": [] - } - }, - { - "type": "blockquote", - "children": [ - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "one", - "position": { - "start": { - "line": 5, - "column": 9, - "offset": 25 - }, - "end": { - "line": 5, - "column": 12, - "offset": 28 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 9, - "offset": 25 - }, - "end": { - "line": 5, - "column": 12, - "offset": 28 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "two", - "position": { - "start": { - "line": 6, - "column": 11, - "offset": 39 - }, - "end": { - "line": 6, - "column": 14, - "offset": 42 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 11, - "offset": 39 - }, - "end": { - "line": 6, - "column": 14, - "offset": 42 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "three", - "position": { - "start": { - "line": 7, - "column": 15, - "offset": 57 - }, - "end": { - "line": 7, - "column": 20, - "offset": 62 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 15, - "offset": 57 - }, - "end": { - "line": 7, - "column": 20, - "offset": 62 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 13, - "offset": 55 - }, - "end": { - "line": 7, - "column": 20, - "offset": 62 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "four", - "position": { - "start": { - "line": 8, - "column": 15, - "offset": 77 - }, - "end": { - "line": 8, - "column": 19, - "offset": 81 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 8, - "column": 15, - "offset": 77 - }, - "end": { - "line": 8, - "column": 19, - "offset": 81 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 8, - "column": 13, - "offset": 75 - }, - "end": { - "line": 8, - "column": 19, - "offset": 81 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "five", - "position": { - "start": { - "line": 9, - "column": 15, - "offset": 96 - }, - "end": { - "line": 9, - "column": 19, - "offset": 100 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 15, - "offset": 96 - }, - "end": { - "line": 9, - "column": 19, - "offset": 100 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 13, - "offset": 94 - }, - "end": { - "line": 9, - "column": 19, - "offset": 100 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 13, - "offset": 55 - }, - "end": { - "line": 9, - "column": 19, - "offset": 100 - }, - "indent": [ - 13, - 13 - ] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 9, - "offset": 37 - }, - "end": { - "line": 9, - "column": 19, - "offset": 100 - }, - "indent": [ - 9, - 9, - 9 - ] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 9, - "offset": 37 - }, - "end": { - "line": 9, - "column": 19, - "offset": 100 - }, - "indent": [ - 9, - 9, - 9 - ] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 7, - "offset": 23 - }, - "end": { - "line": 9, - "column": 19, - "offset": 100 - }, - "indent": [ - 5, - 5, - 5, - 5 - ] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 7, - "offset": 23 - }, - "end": { - "line": 9, - "column": 19, - "offset": 100 - }, - "indent": [ - 5, - 5, - 5, - 5 - ] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 5, - "offset": 21 - }, - "end": { - "line": 9, - "column": 19, - "offset": 100 - }, - "indent": [ - 5, - 5, - 5, - 5 - ] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 8 - }, - "end": { - "line": 10, - "column": 1, - "offset": 101 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo:", - "position": { - "start": { - "line": 11, - "column": 4, - "offset": 105 - }, - "end": { - "line": 11, - "column": 8, - "offset": 109 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 4, - "offset": 105 - }, - "end": { - "line": 11, - "column": 8, - "offset": 109 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "inlineCode", - "value": "line 1\nline 2", - "position": { - "start": { - "line": 13, - "column": 5, - "offset": 115 - }, - "end": { - "line": 16, - "column": 8, - "offset": 148 - }, - "indent": [ - 5, - 5, - 5 - ] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 5, - "offset": 115 - }, - "end": { - "line": 16, - "column": 8, - "offset": 148 - }, - "indent": [ - 5, - 5, - 5 - ] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 102 - }, - "end": { - "line": 17, - "column": 1, - "offset": 149 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo:", - "position": { - "start": { - "line": 18, - "column": 4, - "offset": 153 - }, - "end": { - "line": 18, - "column": 8, - "offset": 157 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 4, - "offset": 153 - }, - "end": { - "line": 18, - "column": 8, - "offset": 157 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo ", - "position": { - "start": { - "line": 20, - "column": 8, - "offset": 166 - }, - "end": { - "line": 20, - "column": 12, - "offset": 170 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "bar", - "position": { - "start": { - "line": 20, - "column": 12, - "offset": 170 - }, - "end": { - "line": 20, - "column": 17, - "offset": 175 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " bar:", - "position": { - "start": { - "line": 20, - "column": 17, - "offset": 175 - }, - "end": { - "line": 20, - "column": 22, - "offset": 180 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 8, - "offset": 166 - }, - "end": { - "line": 20, - "column": 22, - "offset": 180 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "inlineCode", - "value": "erb\nsome code here", - "position": { - "start": { - "line": 22, - "column": 9, - "offset": 190 - }, - "end": { - "line": 24, - "column": 12, - "offset": 232 - }, - "indent": [ - 9, - 9 - ] - } - } - ], - "position": { - "start": { - "line": 22, - "column": 9, - "offset": 190 - }, - "end": { - "line": 24, - "column": 12, - "offset": 232 - }, - "indent": [ - 9, - 9 - ] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 5, - "offset": 163 - }, - "end": { - "line": 25, - "column": 1, - "offset": 233 - }, - "indent": [ - 1, - 5, - 5, - 5, - 1 - ] - } - }, - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo ", - "position": { - "start": { - "line": 26, - "column": 8, - "offset": 241 - }, - "end": { - "line": 26, - "column": 12, - "offset": 245 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "bar", - "position": { - "start": { - "line": 26, - "column": 12, - "offset": 245 - }, - "end": { - "line": 26, - "column": 17, - "offset": 250 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " bar:", - "position": { - "start": { - "line": 26, - "column": 17, - "offset": 250 - }, - "end": { - "line": 26, - "column": 22, - "offset": 255 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 26, - "column": 8, - "offset": 241 - }, - "end": { - "line": 26, - "column": 22, - "offset": 255 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "``` erb", - "position": { - "start": { - "line": 28, - "column": 9, - "offset": 265 - }, - "end": { - "line": 28, - "column": 16, - "offset": 272 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 28, - "column": 9, - "offset": 265 - }, - "end": { - "line": 28, - "column": 16, - "offset": 272 - }, - "indent": [] - } - }, - { - "type": "heading", - "depth": 2, - "children": [ - { - "type": "text", - "value": "foo", - "position": { - "start": { - "line": 29, - "column": 9, - "offset": 281 - }, - "end": { - "line": 29, - "column": 12, - "offset": 284 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 29, - "column": 9, - "offset": 281 - }, - "end": { - "line": 30, - "column": 12, - "offset": 296 - }, - "indent": [ - 9 - ] - } - }, - { - "type": "heading", - "depth": 2, - "children": [ - { - "type": "text", - "value": "bar", - "position": { - "start": { - "line": 31, - "column": 9, - "offset": 305 - }, - "end": { - "line": 31, - "column": 12, - "offset": 308 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 31, - "column": 9, - "offset": 305 - }, - "end": { - "line": 32, - "column": 12, - "offset": 320 - }, - "indent": [ - 9 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo\nbar\n```", - "position": { - "start": { - "line": 33, - "column": 9, - "offset": 329 - }, - "end": { - "line": 35, - "column": 12, - "offset": 356 - }, - "indent": [ - 9, - 9 - ] - } - } - ], - "position": { - "start": { - "line": 33, - "column": 9, - "offset": 329 - }, - "end": { - "line": 35, - "column": 12, - "offset": 356 - }, - "indent": [ - 9, - 9 - ] - } - } - ], - "position": { - "start": { - "line": 26, - "column": 5, - "offset": 238 - }, - "end": { - "line": 36, - "column": 1, - "offset": 357 - }, - "indent": [ - 1, - 5, - 5, - 5, - 5, - 5, - 5, - 5, - 5, - 1 - ] - } - }, - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo ", - "position": { - "start": { - "line": 37, - "column": 8, - "offset": 365 - }, - "end": { - "line": 37, - "column": 12, - "offset": 369 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "bar", - "position": { - "start": { - "line": 37, - "column": 12, - "offset": 369 - }, - "end": { - "line": 37, - "column": 17, - "offset": 374 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " bar:", - "position": { - "start": { - "line": 37, - "column": 17, - "offset": 374 - }, - "end": { - "line": 37, - "column": 22, - "offset": 379 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 37, - "column": 8, - "offset": 365 - }, - "end": { - "line": 37, - "column": 22, - "offset": 379 - }, - "indent": [] - } - }, - { - "type": "heading", - "depth": 2, - "children": [ - { - "type": "text", - "value": "``` html", - "position": { - "start": { - "line": 39, - "column": 9, - "offset": 389 - }, - "end": { - "line": 39, - "column": 17, - "offset": 397 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 39, - "column": 9, - "offset": 389 - }, - "end": { - "line": 40, - "column": 12, - "offset": 409 - }, - "indent": [ - 9 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo", - "position": { - "start": { - "line": 41, - "column": 9, - "offset": 418 - }, - "end": { - "line": 41, - "column": 12, - "offset": 421 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 41, - "column": 9, - "offset": 418 - }, - "end": { - "line": 41, - "column": 12, - "offset": 421 - }, - "indent": [] - } - }, - { - "type": "heading", - "depth": 2, - "children": [ - { - "type": "text", - "value": "foo", - "position": { - "start": { - "line": 42, - "column": 9, - "offset": 430 - }, - "end": { - "line": 42, - "column": 12, - "offset": 433 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 42, - "column": 9, - "offset": 430 - }, - "end": { - "line": 43, - "column": 12, - "offset": 445 - }, - "indent": [ - 9 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "bar\n```", - "position": { - "start": { - "line": 44, - "column": 9, - "offset": 454 - }, - "end": { - "line": 45, - "column": 12, - "offset": 469 - }, - "indent": [ - 9 - ] - } - } - ], - "position": { - "start": { - "line": 44, - "column": 9, - "offset": 454 - }, - "end": { - "line": 45, - "column": 12, - "offset": 469 - }, - "indent": [ - 9 - ] - } - } - ], - "position": { - "start": { - "line": 37, - "column": 5, - "offset": 362 - }, - "end": { - "line": 46, - "column": 1, - "offset": 470 - }, - "indent": [ - 1, - 5, - 5, - 5, - 5, - 5, - 5, - 5, - 1 - ] - } - }, - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo ", - "position": { - "start": { - "line": 47, - "column": 8, - "offset": 478 - }, - "end": { - "line": 47, - "column": 12, - "offset": 482 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "bar", - "position": { - "start": { - "line": 47, - "column": 12, - "offset": 482 - }, - "end": { - "line": 47, - "column": 17, - "offset": 487 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " bar:", - "position": { - "start": { - "line": 47, - "column": 17, - "offset": 487 - }, - "end": { - "line": 47, - "column": 22, - "offset": 492 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 47, - "column": 8, - "offset": 478 - }, - "end": { - "line": 47, - "column": 22, - "offset": 492 - }, - "indent": [] - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "foo\n---\nbar", - "position": { - "start": { - "line": 49, - "column": 9, - "offset": 502 - }, - "end": { - "line": 51, - "column": 16, - "offset": 541 - }, - "indent": [ - 9, - 9 - ] - } - } - ], - "position": { - "start": { - "line": 47, - "column": 5, - "offset": 475 - }, - "end": { - "line": 52, - "column": 1, - "offset": 542 - }, - "indent": [ - 1, - 5, - 5, - 5, - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo", - "position": { - "start": { - "line": 53, - "column": 8, - "offset": 550 - }, - "end": { - "line": 53, - "column": 11, - "offset": 553 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 53, - "column": 8, - "offset": 550 - }, - "end": { - "line": 53, - "column": 11, - "offset": 553 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 53, - "column": 5, - "offset": 547 - }, - "end": { - "line": 53, - "column": 11, - "offset": 553 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 5, - "offset": 163 - }, - "end": { - "line": 53, - "column": 11, - "offset": 553 - }, - "indent": [ - 1, - 5, - 5, - 5, - 1, - 5, - 1, - 5, - 5, - 5, - 5, - 5, - 5, - 5, - 5, - 1, - 5, - 1, - 5, - 5, - 5, - 5, - 5, - 5, - 5, - 1, - 5, - 1, - 5, - 5, - 5, - 1, - 5 - ] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 150 - }, - "end": { - "line": 53, - "column": 11, - "offset": 553 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 8 - }, - "end": { - "line": 53, - "column": 11, - "offset": 553 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 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": 54, - "column": 1, - "offset": 554 - } - } -} diff --git a/test/fixtures/tree/lists-with-code-and-rules.pedantic.json b/test/fixtures/tree/lists-with-code-and-rules.pedantic.json deleted file mode 100644 index 55cd62eb1..000000000 --- a/test/fixtures/tree/lists-with-code-and-rules.pedantic.json +++ /dev/null @@ -1,1342 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "heading", - "depth": 2, - "children": [ - { - "type": "text", - "value": "foo", - "position": { - "start": { - "line": 1, - "column": 4, - "offset": 3 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "bar:", - "position": { - "start": { - "line": 3, - "column": 4, - "offset": 11 - }, - "end": { - "line": 3, - "column": 8, - "offset": 15 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 4, - "offset": 11 - }, - "end": { - "line": 3, - "column": 8, - "offset": 15 - }, - "indent": [] - } - }, - { - "type": "blockquote", - "children": [ - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "one", - "position": { - "start": { - "line": 5, - "column": 9, - "offset": 25 - }, - "end": { - "line": 5, - "column": 12, - "offset": 28 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 9, - "offset": 25 - }, - "end": { - "line": 5, - "column": 12, - "offset": 28 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "two", - "position": { - "start": { - "line": 6, - "column": 11, - "offset": 39 - }, - "end": { - "line": 6, - "column": 14, - "offset": 42 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 11, - "offset": 39 - }, - "end": { - "line": 6, - "column": 14, - "offset": 42 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "three", - "position": { - "start": { - "line": 7, - "column": 15, - "offset": 57 - }, - "end": { - "line": 7, - "column": 20, - "offset": 62 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 15, - "offset": 57 - }, - "end": { - "line": 7, - "column": 20, - "offset": 62 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 13, - "offset": 55 - }, - "end": { - "line": 7, - "column": 20, - "offset": 62 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "four", - "position": { - "start": { - "line": 8, - "column": 15, - "offset": 77 - }, - "end": { - "line": 8, - "column": 19, - "offset": 81 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 8, - "column": 15, - "offset": 77 - }, - "end": { - "line": 8, - "column": 19, - "offset": 81 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 8, - "column": 13, - "offset": 75 - }, - "end": { - "line": 8, - "column": 19, - "offset": 81 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "five", - "position": { - "start": { - "line": 9, - "column": 15, - "offset": 96 - }, - "end": { - "line": 9, - "column": 19, - "offset": 100 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 15, - "offset": 96 - }, - "end": { - "line": 9, - "column": 19, - "offset": 100 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 13, - "offset": 94 - }, - "end": { - "line": 9, - "column": 19, - "offset": 100 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 13, - "offset": 55 - }, - "end": { - "line": 9, - "column": 19, - "offset": 100 - }, - "indent": [ - 13, - 13 - ] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 9, - "offset": 37 - }, - "end": { - "line": 9, - "column": 19, - "offset": 100 - }, - "indent": [ - 9, - 9, - 9 - ] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 9, - "offset": 37 - }, - "end": { - "line": 9, - "column": 19, - "offset": 100 - }, - "indent": [ - 9, - 9, - 9 - ] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 7, - "offset": 23 - }, - "end": { - "line": 9, - "column": 19, - "offset": 100 - }, - "indent": [ - 5, - 5, - 5, - 5 - ] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 7, - "offset": 23 - }, - "end": { - "line": 9, - "column": 19, - "offset": 100 - }, - "indent": [ - 5, - 5, - 5, - 5 - ] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 5, - "offset": 21 - }, - "end": { - "line": 9, - "column": 19, - "offset": 100 - }, - "indent": [ - 5, - 5, - 5, - 5 - ] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 8 - }, - "end": { - "line": 10, - "column": 1, - "offset": 101 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo:", - "position": { - "start": { - "line": 11, - "column": 4, - "offset": 105 - }, - "end": { - "line": 11, - "column": 8, - "offset": 109 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 4, - "offset": 105 - }, - "end": { - "line": 11, - "column": 8, - "offset": 109 - }, - "indent": [] - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "line 1\nline 2", - "position": { - "start": { - "line": 13, - "column": 5, - "offset": 115 - }, - "end": { - "line": 16, - "column": 8, - "offset": 148 - }, - "indent": [ - 5, - 5, - 5 - ] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 102 - }, - "end": { - "line": 17, - "column": 1, - "offset": 149 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo:", - "position": { - "start": { - "line": 18, - "column": 4, - "offset": 153 - }, - "end": { - "line": 18, - "column": 8, - "offset": 157 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 4, - "offset": 153 - }, - "end": { - "line": 18, - "column": 8, - "offset": 157 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo ", - "position": { - "start": { - "line": 20, - "column": 8, - "offset": 166 - }, - "end": { - "line": 20, - "column": 12, - "offset": 170 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "bar", - "position": { - "start": { - "line": 20, - "column": 12, - "offset": 170 - }, - "end": { - "line": 20, - "column": 17, - "offset": 175 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " bar:", - "position": { - "start": { - "line": 20, - "column": 17, - "offset": 175 - }, - "end": { - "line": 20, - "column": 22, - "offset": 180 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 8, - "offset": 166 - }, - "end": { - "line": 20, - "column": 22, - "offset": 180 - }, - "indent": [] - } - }, - { - "type": "code", - "lang": "erb", - "meta": null, - "value": "some code here", - "position": { - "start": { - "line": 22, - "column": 9, - "offset": 190 - }, - "end": { - "line": 24, - "column": 12, - "offset": 232 - }, - "indent": [ - 9, - 9 - ] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 5, - "offset": 163 - }, - "end": { - "line": 25, - "column": 1, - "offset": 233 - }, - "indent": [ - 1, - 5, - 5, - 5, - 1 - ] - } - }, - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo ", - "position": { - "start": { - "line": 26, - "column": 8, - "offset": 241 - }, - "end": { - "line": 26, - "column": 12, - "offset": 245 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "bar", - "position": { - "start": { - "line": 26, - "column": 12, - "offset": 245 - }, - "end": { - "line": 26, - "column": 17, - "offset": 250 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " bar:", - "position": { - "start": { - "line": 26, - "column": 17, - "offset": 250 - }, - "end": { - "line": 26, - "column": 22, - "offset": 255 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 26, - "column": 8, - "offset": 241 - }, - "end": { - "line": 26, - "column": 22, - "offset": 255 - }, - "indent": [] - } - }, - { - "type": "code", - "lang": "erb", - "meta": null, - "value": "foo\n---\nbar\n---\nfoo\nbar", - "position": { - "start": { - "line": 28, - "column": 9, - "offset": 265 - }, - "end": { - "line": 35, - "column": 12, - "offset": 356 - }, - "indent": [ - 9, - 9, - 9, - 9, - 9, - 9, - 9 - ] - } - } - ], - "position": { - "start": { - "line": 26, - "column": 5, - "offset": 238 - }, - "end": { - "line": 36, - "column": 1, - "offset": 357 - }, - "indent": [ - 1, - 5, - 5, - 5, - 5, - 5, - 5, - 5, - 5, - 1 - ] - } - }, - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo ", - "position": { - "start": { - "line": 37, - "column": 8, - "offset": 365 - }, - "end": { - "line": 37, - "column": 12, - "offset": 369 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "bar", - "position": { - "start": { - "line": 37, - "column": 12, - "offset": 369 - }, - "end": { - "line": 37, - "column": 17, - "offset": 374 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " bar:", - "position": { - "start": { - "line": 37, - "column": 17, - "offset": 374 - }, - "end": { - "line": 37, - "column": 22, - "offset": 379 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 37, - "column": 8, - "offset": 365 - }, - "end": { - "line": 37, - "column": 22, - "offset": 379 - }, - "indent": [] - } - }, - { - "type": "code", - "lang": "html", - "meta": null, - "value": "---\nfoo\nfoo\n---\nbar", - "position": { - "start": { - "line": 39, - "column": 9, - "offset": 389 - }, - "end": { - "line": 45, - "column": 12, - "offset": 469 - }, - "indent": [ - 9, - 9, - 9, - 9, - 9, - 9 - ] - } - } - ], - "position": { - "start": { - "line": 37, - "column": 5, - "offset": 362 - }, - "end": { - "line": 46, - "column": 1, - "offset": 470 - }, - "indent": [ - 1, - 5, - 5, - 5, - 5, - 5, - 5, - 5, - 1 - ] - } - }, - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo ", - "position": { - "start": { - "line": 47, - "column": 8, - "offset": 478 - }, - "end": { - "line": 47, - "column": 12, - "offset": 482 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "bar", - "position": { - "start": { - "line": 47, - "column": 12, - "offset": 482 - }, - "end": { - "line": 47, - "column": 17, - "offset": 487 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " bar:", - "position": { - "start": { - "line": 47, - "column": 17, - "offset": 487 - }, - "end": { - "line": 47, - "column": 22, - "offset": 492 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 47, - "column": 8, - "offset": 478 - }, - "end": { - "line": 47, - "column": 22, - "offset": 492 - }, - "indent": [] - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "foo\n---\nbar", - "position": { - "start": { - "line": 49, - "column": 9, - "offset": 502 - }, - "end": { - "line": 51, - "column": 16, - "offset": 541 - }, - "indent": [ - 9, - 9 - ] - } - } - ], - "position": { - "start": { - "line": 47, - "column": 5, - "offset": 475 - }, - "end": { - "line": 52, - "column": 1, - "offset": 542 - }, - "indent": [ - 1, - 5, - 5, - 5, - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "foo", - "position": { - "start": { - "line": 53, - "column": 8, - "offset": 550 - }, - "end": { - "line": 53, - "column": 11, - "offset": 553 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 53, - "column": 8, - "offset": 550 - }, - "end": { - "line": 53, - "column": 11, - "offset": 553 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 53, - "column": 5, - "offset": 547 - }, - "end": { - "line": 53, - "column": 11, - "offset": 553 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 5, - "offset": 163 - }, - "end": { - "line": 53, - "column": 11, - "offset": 553 - }, - "indent": [ - 1, - 5, - 5, - 5, - 1, - 5, - 1, - 5, - 5, - 5, - 5, - 5, - 5, - 5, - 5, - 1, - 5, - 1, - 5, - 5, - 5, - 5, - 5, - 5, - 5, - 1, - 5, - 1, - 5, - 5, - 5, - 1, - 5 - ] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 150 - }, - "end": { - "line": 53, - "column": 11, - "offset": 553 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 8 - }, - "end": { - "line": 53, - "column": 11, - "offset": 553 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 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": 54, - "column": 1, - "offset": 554 - } - } -} diff --git a/test/fixtures/tree/literal-email.commonmark.json b/test/fixtures/tree/literal-email.commonmark.json deleted file mode 100644 index 3d733b47e..000000000 --- a/test/fixtures/tree/literal-email.commonmark.json +++ /dev/null @@ -1,735 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "example1 (", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 11, - "offset": 10 - }, - "indent": [] - } - }, - { - "type": "link", - "title": null, - "url": "mailto:1234567@example.com", - "children": [ - { - "type": "text", - "value": "1234567@example.com", - "position": { - "start": { - "line": 1, - "column": 11, - "offset": 10 - }, - "end": { - "line": 1, - "column": 30, - "offset": 29 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 11, - "offset": 10 - }, - "end": { - "line": 1, - "column": 30, - "offset": 29 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ")\nexample1 (mailto:", - "position": { - "start": { - "line": 1, - "column": 30, - "offset": 29 - }, - "end": { - "line": 2, - "column": 18, - "offset": 48 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "link", - "title": null, - "url": "mailto:1234567@example.com", - "children": [ - { - "type": "text", - "value": "1234567@example.com", - "position": { - "start": { - "line": 2, - "column": 18, - "offset": 48 - }, - "end": { - "line": 2, - "column": 37, - "offset": 67 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 2, - "column": 18, - "offset": 48 - }, - "end": { - "line": 2, - "column": 37, - "offset": 67 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ")", - "position": { - "start": { - "line": 2, - "column": 37, - "offset": 67 - }, - "end": { - "line": 2, - "column": 38, - "offset": 68 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 38, - "offset": 68 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Lorem ", - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 70 - }, - "end": { - "line": 4, - "column": 7, - "offset": 76 - }, - "indent": [] - } - }, - { - "type": "link", - "title": null, - "url": "mailto:foo@bar.baz", - "children": [ - { - "type": "text", - "value": "foo@bar.baz", - "position": { - "start": { - "line": 4, - "column": 7, - "offset": 76 - }, - "end": { - "line": 4, - "column": 18, - "offset": 87 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 7, - "offset": 76 - }, - "end": { - "line": 4, - "column": 18, - "offset": 87 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ipsum.", - "position": { - "start": { - "line": 4, - "column": 18, - "offset": 87 - }, - "end": { - "line": 4, - "column": 25, - "offset": 94 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 70 - }, - "end": { - "line": 4, - "column": 25, - "offset": 94 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "alpha@bravo+charlie.delta isn’t valid, but ", - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 96 - }, - "end": { - "line": 6, - "column": 44, - "offset": 139 - }, - "indent": [] - } - }, - { - "type": "link", - "title": null, - "url": "mailto:echo+foxtrot@golf.hotel", - "children": [ - { - "type": "text", - "value": "echo+foxtrot@golf.hotel", - "position": { - "start": { - "line": 6, - "column": 44, - "offset": 139 - }, - "end": { - "line": 6, - "column": 67, - "offset": 162 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 44, - "offset": 139 - }, - "end": { - "line": 6, - "column": 67, - "offset": 162 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " is.", - "position": { - "start": { - "line": 6, - "column": 67, - "offset": 162 - }, - "end": { - "line": 6, - "column": 71, - "offset": 166 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 96 - }, - "end": { - "line": 6, - "column": 71, - "offset": 166 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Valid: ", - "position": { - "start": { - "line": 8, - "column": 1, - "offset": 168 - }, - "end": { - "line": 8, - "column": 8, - "offset": 175 - }, - "indent": [] - } - }, - { - "type": "link", - "title": null, - "url": "mailto:a.b-c_d@a.b", - "children": [ - { - "type": "text", - "value": "a.b-c_d@a.b", - "position": { - "start": { - "line": 8, - "column": 8, - "offset": 175 - }, - "end": { - "line": 8, - "column": 19, - "offset": 186 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 8, - "column": 8, - "offset": 175 - }, - "end": { - "line": 8, - "column": 19, - "offset": 186 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 8, - "column": 1, - "offset": 168 - }, - "end": { - "line": 8, - "column": 19, - "offset": 186 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Valid, but the dot is not part of the email: ", - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 188 - }, - "end": { - "line": 10, - "column": 46, - "offset": 233 - }, - "indent": [] - } - }, - { - "type": "link", - "title": null, - "url": "mailto:a.b-c_d@a.b", - "children": [ - { - "type": "text", - "value": "a.b-c_d@a.b", - "position": { - "start": { - "line": 10, - "column": 46, - "offset": 233 - }, - "end": { - "line": 10, - "column": 57, - "offset": 244 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 10, - "column": 46, - "offset": 233 - }, - "end": { - "line": 10, - "column": 57, - "offset": 244 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 10, - "column": 57, - "offset": 244 - }, - "end": { - "line": 10, - "column": 58, - "offset": 245 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 188 - }, - "end": { - "line": 10, - "column": 58, - "offset": 245 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Not valid: a.b-c_d@a.b-", - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 247 - }, - "end": { - "line": 12, - "column": 24, - "offset": 270 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 247 - }, - "end": { - "line": 12, - "column": 24, - "offset": 270 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Not valid: a.b-c", - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 272 - }, - "end": { - "line": 14, - "column": 17, - "offset": 288 - }, - "indent": [] - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "link", - "title": null, - "url": "mailto:d@a.b", - "children": [ - { - "type": "text", - "value": "d@a.b", - "position": { - "start": { - "line": 14, - "column": 18, - "offset": 289 - }, - "end": { - "line": 14, - "column": 23, - "offset": 294 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 18, - "offset": 289 - }, - "end": { - "line": 14, - "column": 23, - "offset": 294 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 17, - "offset": 288 - }, - "end": { - "line": 14, - "column": 24, - "offset": 295 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 272 - }, - "end": { - "line": 14, - "column": 24, - "offset": 295 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Not valid: alpha@bravo.", - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 297 - }, - "end": { - "line": 16, - "column": 24, - "offset": 320 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 297 - }, - "end": { - "line": 16, - "column": 24, - "offset": 320 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "<", - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 322 - }, - "end": { - "line": 18, - "column": 5, - "offset": 326 - }, - "indent": [] - } - }, - { - "type": "link", - "title": null, - "url": "mailto:foo@example.com", - "children": [ - { - "type": "text", - "value": "foo@example.com", - "position": { - "start": { - "line": 18, - "column": 5, - "offset": 326 - }, - "end": { - "line": 18, - "column": 20, - "offset": 341 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 5, - "offset": 326 - }, - "end": { - "line": 18, - "column": 20, - "offset": 341 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 322 - }, - "end": { - "line": 18, - "column": 20, - "offset": 341 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 19, - "column": 1, - "offset": 342 - } - } -} diff --git a/test/fixtures/tree/literal-email.json b/test/fixtures/tree/literal-email.json index 3d733b47e..d76981764 100644 --- a/test/fixtures/tree/literal-email.json +++ b/test/fixtures/tree/literal-email.json @@ -6,129 +6,18 @@ "children": [ { "type": "text", - "value": "example1 (", + "value": "example1 (1234567@example.com)\nexample1 (mailto:1234567@example.com)", "position": { "start": { "line": 1, "column": 1, "offset": 0 }, - "end": { - "line": 1, - "column": 11, - "offset": 10 - }, - "indent": [] - } - }, - { - "type": "link", - "title": null, - "url": "mailto:1234567@example.com", - "children": [ - { - "type": "text", - "value": "1234567@example.com", - "position": { - "start": { - "line": 1, - "column": 11, - "offset": 10 - }, - "end": { - "line": 1, - "column": 30, - "offset": 29 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 11, - "offset": 10 - }, - "end": { - "line": 1, - "column": 30, - "offset": 29 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ")\nexample1 (mailto:", - "position": { - "start": { - "line": 1, - "column": 30, - "offset": 29 - }, - "end": { - "line": 2, - "column": 18, - "offset": 48 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "link", - "title": null, - "url": "mailto:1234567@example.com", - "children": [ - { - "type": "text", - "value": "1234567@example.com", - "position": { - "start": { - "line": 2, - "column": 18, - "offset": 48 - }, - "end": { - "line": 2, - "column": 37, - "offset": 67 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 2, - "column": 18, - "offset": 48 - }, - "end": { - "line": 2, - "column": 37, - "offset": 67 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ")", - "position": { - "start": { - "line": 2, - "column": 37, - "offset": 67 - }, "end": { "line": 2, "column": 38, "offset": 68 - }, - "indent": [] + } } } ], @@ -142,10 +31,7 @@ "line": 2, "column": 38, "offset": 68 - }, - "indent": [ - 1 - ] + } } }, { @@ -153,73 +39,18 @@ "children": [ { "type": "text", - "value": "Lorem ", + "value": "Lorem foo@bar.baz ipsum.", "position": { "start": { "line": 4, "column": 1, "offset": 70 }, - "end": { - "line": 4, - "column": 7, - "offset": 76 - }, - "indent": [] - } - }, - { - "type": "link", - "title": null, - "url": "mailto:foo@bar.baz", - "children": [ - { - "type": "text", - "value": "foo@bar.baz", - "position": { - "start": { - "line": 4, - "column": 7, - "offset": 76 - }, - "end": { - "line": 4, - "column": 18, - "offset": 87 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 7, - "offset": 76 - }, - "end": { - "line": 4, - "column": 18, - "offset": 87 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ipsum.", - "position": { - "start": { - "line": 4, - "column": 18, - "offset": 87 - }, "end": { "line": 4, "column": 25, "offset": 94 - }, - "indent": [] + } } } ], @@ -233,8 +64,7 @@ "line": 4, "column": 25, "offset": 94 - }, - "indent": [] + } } }, { @@ -242,73 +72,18 @@ "children": [ { "type": "text", - "value": "alpha@bravo+charlie.delta isn’t valid, but ", + "value": "alpha@bravo+charlie.delta isn’t valid, but echo+foxtrot@golf.hotel is.", "position": { "start": { "line": 6, "column": 1, "offset": 96 }, - "end": { - "line": 6, - "column": 44, - "offset": 139 - }, - "indent": [] - } - }, - { - "type": "link", - "title": null, - "url": "mailto:echo+foxtrot@golf.hotel", - "children": [ - { - "type": "text", - "value": "echo+foxtrot@golf.hotel", - "position": { - "start": { - "line": 6, - "column": 44, - "offset": 139 - }, - "end": { - "line": 6, - "column": 67, - "offset": 162 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 44, - "offset": 139 - }, - "end": { - "line": 6, - "column": 67, - "offset": 162 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " is.", - "position": { - "start": { - "line": 6, - "column": 67, - "offset": 162 - }, "end": { "line": 6, "column": 71, "offset": 166 - }, - "indent": [] + } } } ], @@ -322,8 +97,7 @@ "line": 6, "column": 71, "offset": 166 - }, - "indent": [] + } } }, { @@ -331,56 +105,18 @@ "children": [ { "type": "text", - "value": "Valid: ", + "value": "Valid: a.b-c_d@a.b", "position": { "start": { "line": 8, "column": 1, "offset": 168 }, - "end": { - "line": 8, - "column": 8, - "offset": 175 - }, - "indent": [] - } - }, - { - "type": "link", - "title": null, - "url": "mailto:a.b-c_d@a.b", - "children": [ - { - "type": "text", - "value": "a.b-c_d@a.b", - "position": { - "start": { - "line": 8, - "column": 8, - "offset": 175 - }, - "end": { - "line": 8, - "column": 19, - "offset": 186 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 8, - "column": 8, - "offset": 175 - }, "end": { "line": 8, "column": 19, "offset": 186 - }, - "indent": [] + } } } ], @@ -394,8 +130,7 @@ "line": 8, "column": 19, "offset": 186 - }, - "indent": [] + } } }, { @@ -403,73 +138,18 @@ "children": [ { "type": "text", - "value": "Valid, but the dot is not part of the email: ", + "value": "Valid, but the dot is not part of the email: a.b-c_d@a.b.", "position": { "start": { "line": 10, "column": 1, "offset": 188 }, - "end": { - "line": 10, - "column": 46, - "offset": 233 - }, - "indent": [] - } - }, - { - "type": "link", - "title": null, - "url": "mailto:a.b-c_d@a.b", - "children": [ - { - "type": "text", - "value": "a.b-c_d@a.b", - "position": { - "start": { - "line": 10, - "column": 46, - "offset": 233 - }, - "end": { - "line": 10, - "column": 57, - "offset": 244 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 10, - "column": 46, - "offset": 233 - }, - "end": { - "line": 10, - "column": 57, - "offset": 244 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 10, - "column": 57, - "offset": 244 - }, "end": { "line": 10, "column": 58, "offset": 245 - }, - "indent": [] + } } } ], @@ -483,8 +163,7 @@ "line": 10, "column": 58, "offset": 245 - }, - "indent": [] + } } }, { @@ -503,8 +182,7 @@ "line": 12, "column": 24, "offset": 270 - }, - "indent": [] + } } } ], @@ -518,8 +196,7 @@ "line": 12, "column": 24, "offset": 270 - }, - "indent": [] + } } }, { @@ -527,74 +204,18 @@ "children": [ { "type": "text", - "value": "Not valid: a.b-c", + "value": "Not valid: a.b-c_d@a.b_", "position": { "start": { "line": 14, "column": 1, "offset": 272 }, - "end": { - "line": 14, - "column": 17, - "offset": 288 - }, - "indent": [] - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "link", - "title": null, - "url": "mailto:d@a.b", - "children": [ - { - "type": "text", - "value": "d@a.b", - "position": { - "start": { - "line": 14, - "column": 18, - "offset": 289 - }, - "end": { - "line": 14, - "column": 23, - "offset": 294 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 18, - "offset": 289 - }, - "end": { - "line": 14, - "column": 23, - "offset": 294 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 17, - "offset": 288 - }, "end": { "line": 14, "column": 24, "offset": 295 - }, - "indent": [] + } } } ], @@ -608,8 +229,7 @@ "line": 14, "column": 24, "offset": 295 - }, - "indent": [] + } } }, { @@ -628,8 +248,7 @@ "line": 16, "column": 24, "offset": 320 - }, - "indent": [] + } } } ], @@ -643,8 +262,7 @@ "line": 16, "column": 24, "offset": 320 - }, - "indent": [] + } } }, { @@ -652,56 +270,18 @@ "children": [ { "type": "text", - "value": "<", + "value": "This will make me fail the test because\nmarkdown.js doesnt acknowledge arbitrary html blocks =/", - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 303 - }, - "end": { - "line": 12, - "column": 64, - "offset": 413 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "List Item 1", - "position": { - "start": { - "line": 14, - "column": 3, - "offset": 417 - }, - "end": { - "line": 14, - "column": 14, - "offset": 428 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 3, - "offset": 417 - }, - "end": { - "line": 14, - "column": 14, - "offset": 428 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 415 - }, - "end": { - "line": 15, - "column": 1, - "offset": 429 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "List Item 2", - "position": { - "start": { - "line": 16, - "column": 3, - "offset": 432 - }, - "end": { - "line": 16, - "column": 14, - "offset": 443 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 3, - "offset": 432 - }, - "end": { - "line": 16, - "column": 14, - "offset": 443 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "New List Item 1\nHi, this is a list item.", - "position": { - "start": { - "line": 17, - "column": 5, - "offset": 448 - }, - "end": { - "line": 18, - "column": 29, - "offset": 492 - }, - "indent": [ - 5 - ] - } - } - ], - "position": { - "start": { - "line": 17, - "column": 5, - "offset": 448 - }, - "end": { - "line": 18, - "column": 29, - "offset": 492 - }, - "indent": [ - 5 - ] - } - } - ], - "position": { - "start": { - "line": 17, - "column": 3, - "offset": 446 - }, - "end": { - "line": 18, - "column": 29, - "offset": 492 - }, - "indent": [ - 3 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "New List Item 2\nAnother item\n Code goes here.\n Lots of it...", - "position": { - "start": { - "line": 19, - "column": 5, - "offset": 497 - }, - "end": { - "line": 22, - "column": 22, - "offset": 575 - }, - "indent": [ - 5, - 5, - 5 - ] - } - } - ], - "position": { - "start": { - "line": 19, - "column": 5, - "offset": 497 - }, - "end": { - "line": 22, - "column": 22, - "offset": 575 - }, - "indent": [ - 5, - 5, - 5 - ] - } - } - ], - "position": { - "start": { - "line": 19, - "column": 3, - "offset": 495 - }, - "end": { - "line": 22, - "column": 22, - "offset": 575 - }, - "indent": [ - 3, - 3, - 3 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "New List Item 3\nThe last item", - "position": { - "start": { - "line": 23, - "column": 5, - "offset": 580 - }, - "end": { - "line": 24, - "column": 18, - "offset": 613 - }, - "indent": [ - 5 - ] - } - } - ], - "position": { - "start": { - "line": 23, - "column": 5, - "offset": 580 - }, - "end": { - "line": 24, - "column": 18, - "offset": 613 - }, - "indent": [ - 5 - ] - } - } - ], - "position": { - "start": { - "line": 23, - "column": 3, - "offset": 578 - }, - "end": { - "line": 24, - "column": 18, - "offset": 613 - }, - "indent": [ - 3 - ] - } - } - ], - "position": { - "start": { - "line": 17, - "column": 3, - "offset": 446 - }, - "end": { - "line": 24, - "column": 18, - "offset": 613 - }, - "indent": [ - 3, - 3, - 3, - 3, - 3, - 3, - 3 - ] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 430 - }, - "end": { - "line": 25, - "column": 1, - "offset": 614 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "List Item 3\nThe final item.", - "position": { - "start": { - "line": 26, - "column": 3, - "offset": 617 - }, - "end": { - "line": 27, - "column": 16, - "offset": 644 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 26, - "column": 3, - "offset": 617 - }, - "end": { - "line": 27, - "column": 16, - "offset": 644 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 26, - "column": 1, - "offset": 615 - }, - "end": { - "line": 28, - "column": 1, - "offset": 645 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "List Item 4\nThe real final item.", - "position": { - "start": { - "line": 29, - "column": 3, - "offset": 648 - }, - "end": { - "line": 30, - "column": 21, - "offset": 680 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 29, - "column": 3, - "offset": 648 - }, - "end": { - "line": 30, - "column": 21, - "offset": 680 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 646 - }, - "end": { - "line": 30, - "column": 21, - "offset": 680 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 415 - }, - "end": { - "line": 30, - "column": 21, - "offset": 680 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Paragraph.", - "position": { - "start": { - "line": 32, - "column": 1, - "offset": 682 - }, - "end": { - "line": 32, - "column": 11, - "offset": 692 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 32, - "column": 1, - "offset": 682 - }, - "end": { - "line": 32, - "column": 11, - "offset": 692 - }, - "indent": [] - } - }, - { - "type": "blockquote", - "children": [ - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "bq Item 1", - "position": { - "start": { - "line": 34, - "column": 5, - "offset": 698 - }, - "end": { - "line": 34, - "column": 14, - "offset": 707 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 34, - "column": 5, - "offset": 698 - }, - "end": { - "line": 34, - "column": 14, - "offset": 707 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 34, - "column": 3, - "offset": 696 - }, - "end": { - "line": 34, - "column": 14, - "offset": 707 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "bq Item 2", - "position": { - "start": { - "line": 35, - "column": 5, - "offset": 712 - }, - "end": { - "line": 35, - "column": 14, - "offset": 721 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 35, - "column": 5, - "offset": 712 - }, - "end": { - "line": 35, - "column": 14, - "offset": 721 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "New bq Item 1", - "position": { - "start": { - "line": 36, - "column": 7, - "offset": 728 - }, - "end": { - "line": 36, - "column": 20, - "offset": 741 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 36, - "column": 7, - "offset": 728 - }, - "end": { - "line": 36, - "column": 20, - "offset": 741 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 36, - "column": 5, - "offset": 726 - }, - "end": { - "line": 36, - "column": 20, - "offset": 741 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "New bq Item 2\nText here", - "position": { - "start": { - "line": 37, - "column": 7, - "offset": 748 - }, - "end": { - "line": 38, - "column": 14, - "offset": 775 - }, - "indent": [ - 5 - ] - } - } - ], - "position": { - "start": { - "line": 37, - "column": 7, - "offset": 748 - }, - "end": { - "line": 38, - "column": 14, - "offset": 775 - }, - "indent": [ - 5 - ] - } - } - ], - "position": { - "start": { - "line": 37, - "column": 5, - "offset": 746 - }, - "end": { - "line": 38, - "column": 14, - "offset": 775 - }, - "indent": [ - 5 - ] - } - } - ], - "position": { - "start": { - "line": 36, - "column": 5, - "offset": 726 - }, - "end": { - "line": 38, - "column": 14, - "offset": 775 - }, - "indent": [ - 5, - 5 - ] - } - } - ], - "position": { - "start": { - "line": 35, - "column": 3, - "offset": 710 - }, - "end": { - "line": 38, - "column": 14, - "offset": 775 - }, - "indent": [ - 3, - 3, - 3 - ] - } - } - ], - "position": { - "start": { - "line": 34, - "column": 3, - "offset": 696 - }, - "end": { - "line": 38, - "column": 14, - "offset": 775 - }, - "indent": [ - 3, - 3, - 3, - 3 - ] - } - } - ], - "position": { - "start": { - "line": 34, - "column": 1, - "offset": 694 - }, - "end": { - "line": 38, - "column": 14, - "offset": 775 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 40, - "column": 1, - "offset": 777 - }, - "end": { - "line": 40, - "column": 6, - "offset": 782 - }, - "indent": [] - } - }, - { - "type": "blockquote", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Another blockquote!\nI really need to get\nmore creative with\nmockup text..\nmarkdown.js breaks here again", - "position": { - "start": { - "line": 42, - "column": 3, - "offset": 786 - }, - "end": { - "line": 46, - "column": 32, - "offset": 897 - }, - "indent": [ - 3, - 3, - 3, - 3 - ] - } - } - ], - "position": { - "start": { - "line": 42, - "column": 3, - "offset": 786 - }, - "end": { - "line": 46, - "column": 32, - "offset": 897 - }, - "indent": [ - 3, - 3, - 3, - 3 - ] - } - } - ], - "position": { - "start": { - "line": 42, - "column": 1, - "offset": 784 - }, - "end": { - "line": 46, - "column": 32, - "offset": 897 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "heading", - "depth": 2, - "children": [ - { - "type": "text", - "value": "Another Heading", - "position": { - "start": { - "line": 48, - "column": 1, - "offset": 899 - }, - "end": { - "line": 48, - "column": 16, - "offset": 914 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 48, - "column": 1, - "offset": 899 - }, - "end": { - "line": 49, - "column": 14, - "offset": 928 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hello ", - "position": { - "start": { - "line": 51, - "column": 1, - "offset": 930 - }, - "end": { - "line": 51, - "column": 7, - "offset": 936 - }, - "indent": [] - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "world", - "position": { - "start": { - "line": 51, - "column": 8, - "offset": 937 - }, - "end": { - "line": 51, - "column": 13, - "offset": 942 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 51, - "column": 7, - "offset": 936 - }, - "end": { - "line": 51, - "column": 14, - "offset": 943 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ". Here is a ", - "position": { - "start": { - "line": 51, - "column": 14, - "offset": 943 - }, - "end": { - "line": 51, - "column": 26, - "offset": 955 - }, - "indent": [] - } - }, - { - "type": "link", - "title": null, - "url": "//hello", - "children": [ - { - "type": "text", - "value": "link", - "position": { - "start": { - "line": 51, - "column": 27, - "offset": 956 - }, - "end": { - "line": 51, - "column": 31, - "offset": 960 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 51, - "column": 26, - "offset": 955 - }, - "end": { - "line": 51, - "column": 41, - "offset": 970 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".\nAnd an image ", - "position": { - "start": { - "line": 51, - "column": 41, - "offset": 970 - }, - "end": { - "line": 52, - "column": 14, - "offset": 985 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "image", - "title": "a title", - "url": "src", - "alt": "alt", - "position": { - "start": { - "line": 52, - "column": 14, - "offset": 985 - }, - "end": { - "line": 52, - "column": 35, - "offset": 1006 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".\nAnd an image with an empty alt attribute ", - "position": { - "start": { - "line": 52, - "column": 35, - "offset": 1006 - }, - "end": { - "line": 53, - "column": 42, - "offset": 1049 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "image", - "title": null, - "url": "src", - "alt": null, - "position": { - "start": { - "line": 53, - "column": 42, - "offset": 1049 - }, - "end": { - "line": 53, - "column": 50, - "offset": 1057 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 53, - "column": 50, - "offset": 1057 - }, - "end": { - "line": 53, - "column": 51, - "offset": 1058 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 51, - "column": 1, - "offset": 930 - }, - "end": { - "line": 53, - "column": 51, - "offset": 1058 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "Code goes here.\nLots of it...", - "position": { - "start": { - "line": 55, - "column": 1, - "offset": 1060 - }, - "end": { - "line": 56, - "column": 18, - "offset": 1097 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 57, - "column": 1, - "offset": 1098 - } - } -} diff --git a/test/fixtures/tree/main.nogfm.pedantic.json b/test/fixtures/tree/main.nogfm.pedantic.json deleted file mode 100644 index c8ad162a2..000000000 --- a/test/fixtures/tree/main.nogfm.pedantic.json +++ /dev/null @@ -1,1425 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "definition", - "identifier": "test", - "label": "test", - "title": "Google", - "url": "http://google.com/", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 36, - "offset": 35 - }, - "indent": [] - } - }, - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "A heading", - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 39 - }, - "end": { - "line": 3, - "column": 12, - "offset": 48 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 37 - }, - "end": { - "line": 3, - "column": 12, - "offset": 48 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Just a note, I've found that I can't test my markdown parser vs others.\nFor example, both markdown.js and showdown code blocks in lists wrong. They're\nalso completely ", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 50 - }, - "end": { - "line": 7, - "column": 17, - "offset": 217 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "linkReference", - "identifier": "test", - "label": "test", - "referenceType": "full", - "children": [ - { - "type": "text", - "value": "inconsistent", - "position": { - "start": { - "line": 7, - "column": 18, - "offset": 218 - }, - "end": { - "line": 7, - "column": 30, - "offset": 230 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 17, - "offset": 217 - }, - "end": { - "line": 7, - "column": 37, - "offset": 237 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " with regards to paragraphs in list items.", - "position": { - "start": { - "line": 7, - "column": 37, - "offset": 237 - }, - "end": { - "line": 7, - "column": 79, - "offset": 279 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 50 - }, - "end": { - "line": 7, - "column": 79, - "offset": 279 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "A link. Not anymore.", - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 281 - }, - "end": { - "line": 9, - "column": 21, - "offset": 301 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 281 - }, - "end": { - "line": 9, - "column": 21, - "offset": 301 - }, - "indent": [] - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 303 - }, - "end": { - "line": 12, - "column": 64, - "offset": 413 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "List Item 1", - "position": { - "start": { - "line": 14, - "column": 3, - "offset": 417 - }, - "end": { - "line": 14, - "column": 14, - "offset": 428 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 3, - "offset": 417 - }, - "end": { - "line": 14, - "column": 14, - "offset": 428 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 415 - }, - "end": { - "line": 15, - "column": 1, - "offset": 429 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "List Item 2", - "position": { - "start": { - "line": 16, - "column": 3, - "offset": 432 - }, - "end": { - "line": 16, - "column": 14, - "offset": 443 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 3, - "offset": 432 - }, - "end": { - "line": 16, - "column": 14, - "offset": 443 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "New List Item 1\nHi, this is a list item.", - "position": { - "start": { - "line": 17, - "column": 5, - "offset": 448 - }, - "end": { - "line": 18, - "column": 29, - "offset": 492 - }, - "indent": [ - 5 - ] - } - } - ], - "position": { - "start": { - "line": 17, - "column": 5, - "offset": 448 - }, - "end": { - "line": 18, - "column": 29, - "offset": 492 - }, - "indent": [ - 5 - ] - } - } - ], - "position": { - "start": { - "line": 17, - "column": 3, - "offset": 446 - }, - "end": { - "line": 18, - "column": 29, - "offset": 492 - }, - "indent": [ - 5 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "New List Item 2\nAnother item\nCode goes here.\nLots of it...", - "position": { - "start": { - "line": 19, - "column": 5, - "offset": 497 - }, - "end": { - "line": 22, - "column": 22, - "offset": 575 - }, - "indent": [ - 5, - 9, - 9 - ] - } - } - ], - "position": { - "start": { - "line": 19, - "column": 5, - "offset": 497 - }, - "end": { - "line": 22, - "column": 22, - "offset": 575 - }, - "indent": [ - 5, - 9, - 9 - ] - } - } - ], - "position": { - "start": { - "line": 19, - "column": 3, - "offset": 495 - }, - "end": { - "line": 22, - "column": 22, - "offset": 575 - }, - "indent": [ - 5, - 5, - 5 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "New List Item 3\nThe last item", - "position": { - "start": { - "line": 23, - "column": 5, - "offset": 580 - }, - "end": { - "line": 24, - "column": 18, - "offset": 613 - }, - "indent": [ - 5 - ] - } - } - ], - "position": { - "start": { - "line": 23, - "column": 5, - "offset": 580 - }, - "end": { - "line": 24, - "column": 18, - "offset": 613 - }, - "indent": [ - 5 - ] - } - } - ], - "position": { - "start": { - "line": 23, - "column": 3, - "offset": 578 - }, - "end": { - "line": 24, - "column": 18, - "offset": 613 - }, - "indent": [ - 5 - ] - } - } - ], - "position": { - "start": { - "line": 17, - "column": 3, - "offset": 446 - }, - "end": { - "line": 24, - "column": 18, - "offset": 613 - }, - "indent": [ - 5, - 3, - 5, - 5, - 5, - 3, - 5 - ] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 430 - }, - "end": { - "line": 25, - "column": 1, - "offset": 614 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "List Item 3\nThe final item.", - "position": { - "start": { - "line": 26, - "column": 3, - "offset": 617 - }, - "end": { - "line": 27, - "column": 16, - "offset": 644 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 26, - "column": 3, - "offset": 617 - }, - "end": { - "line": 27, - "column": 16, - "offset": 644 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 26, - "column": 1, - "offset": 615 - }, - "end": { - "line": 28, - "column": 1, - "offset": 645 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "List Item 4\nThe real final item.", - "position": { - "start": { - "line": 29, - "column": 3, - "offset": 648 - }, - "end": { - "line": 30, - "column": 21, - "offset": 680 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 29, - "column": 3, - "offset": 648 - }, - "end": { - "line": 30, - "column": 21, - "offset": 680 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 646 - }, - "end": { - "line": 30, - "column": 21, - "offset": 680 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 415 - }, - "end": { - "line": 30, - "column": 21, - "offset": 680 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Paragraph.", - "position": { - "start": { - "line": 32, - "column": 1, - "offset": 682 - }, - "end": { - "line": 32, - "column": 11, - "offset": 692 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 32, - "column": 1, - "offset": 682 - }, - "end": { - "line": 32, - "column": 11, - "offset": 692 - }, - "indent": [] - } - }, - { - "type": "blockquote", - "children": [ - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "bq Item 1", - "position": { - "start": { - "line": 34, - "column": 5, - "offset": 698 - }, - "end": { - "line": 34, - "column": 14, - "offset": 707 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 34, - "column": 5, - "offset": 698 - }, - "end": { - "line": 34, - "column": 14, - "offset": 707 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 34, - "column": 3, - "offset": 696 - }, - "end": { - "line": 34, - "column": 14, - "offset": 707 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "bq Item 2", - "position": { - "start": { - "line": 35, - "column": 5, - "offset": 712 - }, - "end": { - "line": 35, - "column": 14, - "offset": 721 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 35, - "column": 5, - "offset": 712 - }, - "end": { - "line": 35, - "column": 14, - "offset": 721 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "New bq Item 1", - "position": { - "start": { - "line": 36, - "column": 7, - "offset": 728 - }, - "end": { - "line": 36, - "column": 20, - "offset": 741 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 36, - "column": 7, - "offset": 728 - }, - "end": { - "line": 36, - "column": 20, - "offset": 741 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 36, - "column": 5, - "offset": 726 - }, - "end": { - "line": 36, - "column": 20, - "offset": 741 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "New bq Item 2\nText here", - "position": { - "start": { - "line": 37, - "column": 7, - "offset": 748 - }, - "end": { - "line": 38, - "column": 14, - "offset": 775 - }, - "indent": [ - 5 - ] - } - } - ], - "position": { - "start": { - "line": 37, - "column": 7, - "offset": 748 - }, - "end": { - "line": 38, - "column": 14, - "offset": 775 - }, - "indent": [ - 5 - ] - } - } - ], - "position": { - "start": { - "line": 37, - "column": 5, - "offset": 746 - }, - "end": { - "line": 38, - "column": 14, - "offset": 775 - }, - "indent": [ - 5 - ] - } - } - ], - "position": { - "start": { - "line": 36, - "column": 5, - "offset": 726 - }, - "end": { - "line": 38, - "column": 14, - "offset": 775 - }, - "indent": [ - 5, - 5 - ] - } - } - ], - "position": { - "start": { - "line": 35, - "column": 3, - "offset": 710 - }, - "end": { - "line": 38, - "column": 14, - "offset": 775 - }, - "indent": [ - 3, - 3, - 3 - ] - } - } - ], - "position": { - "start": { - "line": 34, - "column": 3, - "offset": 696 - }, - "end": { - "line": 38, - "column": 14, - "offset": 775 - }, - "indent": [ - 3, - 3, - 3, - 3 - ] - } - } - ], - "position": { - "start": { - "line": 34, - "column": 1, - "offset": 694 - }, - "end": { - "line": 38, - "column": 14, - "offset": 775 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 40, - "column": 1, - "offset": 777 - }, - "end": { - "line": 40, - "column": 6, - "offset": 782 - }, - "indent": [] - } - }, - { - "type": "blockquote", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Another blockquote!\nI really need to get\nmore creative with\nmockup text..\nmarkdown.js breaks here again", - "position": { - "start": { - "line": 42, - "column": 3, - "offset": 786 - }, - "end": { - "line": 46, - "column": 32, - "offset": 897 - }, - "indent": [ - 3, - 3, - 3, - 3 - ] - } - } - ], - "position": { - "start": { - "line": 42, - "column": 3, - "offset": 786 - }, - "end": { - "line": 46, - "column": 32, - "offset": 897 - }, - "indent": [ - 3, - 3, - 3, - 3 - ] - } - } - ], - "position": { - "start": { - "line": 42, - "column": 1, - "offset": 784 - }, - "end": { - "line": 46, - "column": 32, - "offset": 897 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "heading", - "depth": 2, - "children": [ - { - "type": "text", - "value": "Another Heading", - "position": { - "start": { - "line": 48, - "column": 1, - "offset": 899 - }, - "end": { - "line": 48, - "column": 16, - "offset": 914 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 48, - "column": 1, - "offset": 899 - }, - "end": { - "line": 49, - "column": 14, - "offset": 928 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hello ", - "position": { - "start": { - "line": 51, - "column": 1, - "offset": 930 - }, - "end": { - "line": 51, - "column": 7, - "offset": 936 - }, - "indent": [] - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "world", - "position": { - "start": { - "line": 51, - "column": 8, - "offset": 937 - }, - "end": { - "line": 51, - "column": 13, - "offset": 942 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 51, - "column": 7, - "offset": 936 - }, - "end": { - "line": 51, - "column": 14, - "offset": 943 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ". Here is a ", - "position": { - "start": { - "line": 51, - "column": 14, - "offset": 943 - }, - "end": { - "line": 51, - "column": 26, - "offset": 955 - }, - "indent": [] - } - }, - { - "type": "link", - "title": null, - "url": "//hello", - "children": [ - { - "type": "text", - "value": "link", - "position": { - "start": { - "line": 51, - "column": 27, - "offset": 956 - }, - "end": { - "line": 51, - "column": 31, - "offset": 960 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 51, - "column": 26, - "offset": 955 - }, - "end": { - "line": 51, - "column": 41, - "offset": 970 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".\nAnd an image ", - "position": { - "start": { - "line": 51, - "column": 41, - "offset": 970 - }, - "end": { - "line": 52, - "column": 14, - "offset": 985 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "image", - "title": "a title", - "url": "src", - "alt": "alt", - "position": { - "start": { - "line": 52, - "column": 14, - "offset": 985 - }, - "end": { - "line": 52, - "column": 35, - "offset": 1006 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".\nAnd an image with an empty alt attribute ", - "position": { - "start": { - "line": 52, - "column": 35, - "offset": 1006 - }, - "end": { - "line": 53, - "column": 42, - "offset": 1049 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "image", - "title": null, - "url": "src", - "alt": null, - "position": { - "start": { - "line": 53, - "column": 42, - "offset": 1049 - }, - "end": { - "line": 53, - "column": 50, - "offset": 1057 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 53, - "column": 50, - "offset": 1057 - }, - "end": { - "line": 53, - "column": 51, - "offset": 1058 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 51, - "column": 1, - "offset": 930 - }, - "end": { - "line": 53, - "column": 51, - "offset": 1058 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "Code goes here.\nLots of it...", - "position": { - "start": { - "line": 55, - "column": 1, - "offset": 1060 - }, - "end": { - "line": 56, - "column": 18, - "offset": 1097 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 57, - "column": 1, - "offset": 1098 - } - } -} diff --git a/test/fixtures/tree/main.pedantic.json b/test/fixtures/tree/main.pedantic.json deleted file mode 100644 index c8ad162a2..000000000 --- a/test/fixtures/tree/main.pedantic.json +++ /dev/null @@ -1,1425 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "definition", - "identifier": "test", - "label": "test", - "title": "Google", - "url": "http://google.com/", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 36, - "offset": 35 - }, - "indent": [] - } - }, - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "A heading", - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 39 - }, - "end": { - "line": 3, - "column": 12, - "offset": 48 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 37 - }, - "end": { - "line": 3, - "column": 12, - "offset": 48 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Just a note, I've found that I can't test my markdown parser vs others.\nFor example, both markdown.js and showdown code blocks in lists wrong. They're\nalso completely ", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 50 - }, - "end": { - "line": 7, - "column": 17, - "offset": 217 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "linkReference", - "identifier": "test", - "label": "test", - "referenceType": "full", - "children": [ - { - "type": "text", - "value": "inconsistent", - "position": { - "start": { - "line": 7, - "column": 18, - "offset": 218 - }, - "end": { - "line": 7, - "column": 30, - "offset": 230 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 17, - "offset": 217 - }, - "end": { - "line": 7, - "column": 37, - "offset": 237 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " with regards to paragraphs in list items.", - "position": { - "start": { - "line": 7, - "column": 37, - "offset": 237 - }, - "end": { - "line": 7, - "column": 79, - "offset": 279 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 50 - }, - "end": { - "line": 7, - "column": 79, - "offset": 279 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "A link. Not anymore.", - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 281 - }, - "end": { - "line": 9, - "column": 21, - "offset": 301 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 281 - }, - "end": { - "line": 9, - "column": 21, - "offset": 301 - }, - "indent": [] - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 303 - }, - "end": { - "line": 12, - "column": 64, - "offset": 413 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "List Item 1", - "position": { - "start": { - "line": 14, - "column": 3, - "offset": 417 - }, - "end": { - "line": 14, - "column": 14, - "offset": 428 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 3, - "offset": 417 - }, - "end": { - "line": 14, - "column": 14, - "offset": 428 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 415 - }, - "end": { - "line": 15, - "column": 1, - "offset": 429 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "List Item 2", - "position": { - "start": { - "line": 16, - "column": 3, - "offset": 432 - }, - "end": { - "line": 16, - "column": 14, - "offset": 443 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 3, - "offset": 432 - }, - "end": { - "line": 16, - "column": 14, - "offset": 443 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "New List Item 1\nHi, this is a list item.", - "position": { - "start": { - "line": 17, - "column": 5, - "offset": 448 - }, - "end": { - "line": 18, - "column": 29, - "offset": 492 - }, - "indent": [ - 5 - ] - } - } - ], - "position": { - "start": { - "line": 17, - "column": 5, - "offset": 448 - }, - "end": { - "line": 18, - "column": 29, - "offset": 492 - }, - "indent": [ - 5 - ] - } - } - ], - "position": { - "start": { - "line": 17, - "column": 3, - "offset": 446 - }, - "end": { - "line": 18, - "column": 29, - "offset": 492 - }, - "indent": [ - 5 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "New List Item 2\nAnother item\nCode goes here.\nLots of it...", - "position": { - "start": { - "line": 19, - "column": 5, - "offset": 497 - }, - "end": { - "line": 22, - "column": 22, - "offset": 575 - }, - "indent": [ - 5, - 9, - 9 - ] - } - } - ], - "position": { - "start": { - "line": 19, - "column": 5, - "offset": 497 - }, - "end": { - "line": 22, - "column": 22, - "offset": 575 - }, - "indent": [ - 5, - 9, - 9 - ] - } - } - ], - "position": { - "start": { - "line": 19, - "column": 3, - "offset": 495 - }, - "end": { - "line": 22, - "column": 22, - "offset": 575 - }, - "indent": [ - 5, - 5, - 5 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "New List Item 3\nThe last item", - "position": { - "start": { - "line": 23, - "column": 5, - "offset": 580 - }, - "end": { - "line": 24, - "column": 18, - "offset": 613 - }, - "indent": [ - 5 - ] - } - } - ], - "position": { - "start": { - "line": 23, - "column": 5, - "offset": 580 - }, - "end": { - "line": 24, - "column": 18, - "offset": 613 - }, - "indent": [ - 5 - ] - } - } - ], - "position": { - "start": { - "line": 23, - "column": 3, - "offset": 578 - }, - "end": { - "line": 24, - "column": 18, - "offset": 613 - }, - "indent": [ - 5 - ] - } - } - ], - "position": { - "start": { - "line": 17, - "column": 3, - "offset": 446 - }, - "end": { - "line": 24, - "column": 18, - "offset": 613 - }, - "indent": [ - 5, - 3, - 5, - 5, - 5, - 3, - 5 - ] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 430 - }, - "end": { - "line": 25, - "column": 1, - "offset": 614 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "List Item 3\nThe final item.", - "position": { - "start": { - "line": 26, - "column": 3, - "offset": 617 - }, - "end": { - "line": 27, - "column": 16, - "offset": 644 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 26, - "column": 3, - "offset": 617 - }, - "end": { - "line": 27, - "column": 16, - "offset": 644 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 26, - "column": 1, - "offset": 615 - }, - "end": { - "line": 28, - "column": 1, - "offset": 645 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "List Item 4\nThe real final item.", - "position": { - "start": { - "line": 29, - "column": 3, - "offset": 648 - }, - "end": { - "line": 30, - "column": 21, - "offset": 680 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 29, - "column": 3, - "offset": 648 - }, - "end": { - "line": 30, - "column": 21, - "offset": 680 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 646 - }, - "end": { - "line": 30, - "column": 21, - "offset": 680 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 415 - }, - "end": { - "line": 30, - "column": 21, - "offset": 680 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Paragraph.", - "position": { - "start": { - "line": 32, - "column": 1, - "offset": 682 - }, - "end": { - "line": 32, - "column": 11, - "offset": 692 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 32, - "column": 1, - "offset": 682 - }, - "end": { - "line": 32, - "column": 11, - "offset": 692 - }, - "indent": [] - } - }, - { - "type": "blockquote", - "children": [ - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "bq Item 1", - "position": { - "start": { - "line": 34, - "column": 5, - "offset": 698 - }, - "end": { - "line": 34, - "column": 14, - "offset": 707 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 34, - "column": 5, - "offset": 698 - }, - "end": { - "line": 34, - "column": 14, - "offset": 707 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 34, - "column": 3, - "offset": 696 - }, - "end": { - "line": 34, - "column": 14, - "offset": 707 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "bq Item 2", - "position": { - "start": { - "line": 35, - "column": 5, - "offset": 712 - }, - "end": { - "line": 35, - "column": 14, - "offset": 721 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 35, - "column": 5, - "offset": 712 - }, - "end": { - "line": 35, - "column": 14, - "offset": 721 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "New bq Item 1", - "position": { - "start": { - "line": 36, - "column": 7, - "offset": 728 - }, - "end": { - "line": 36, - "column": 20, - "offset": 741 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 36, - "column": 7, - "offset": 728 - }, - "end": { - "line": 36, - "column": 20, - "offset": 741 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 36, - "column": 5, - "offset": 726 - }, - "end": { - "line": 36, - "column": 20, - "offset": 741 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "New bq Item 2\nText here", - "position": { - "start": { - "line": 37, - "column": 7, - "offset": 748 - }, - "end": { - "line": 38, - "column": 14, - "offset": 775 - }, - "indent": [ - 5 - ] - } - } - ], - "position": { - "start": { - "line": 37, - "column": 7, - "offset": 748 - }, - "end": { - "line": 38, - "column": 14, - "offset": 775 - }, - "indent": [ - 5 - ] - } - } - ], - "position": { - "start": { - "line": 37, - "column": 5, - "offset": 746 - }, - "end": { - "line": 38, - "column": 14, - "offset": 775 - }, - "indent": [ - 5 - ] - } - } - ], - "position": { - "start": { - "line": 36, - "column": 5, - "offset": 726 - }, - "end": { - "line": 38, - "column": 14, - "offset": 775 - }, - "indent": [ - 5, - 5 - ] - } - } - ], - "position": { - "start": { - "line": 35, - "column": 3, - "offset": 710 - }, - "end": { - "line": 38, - "column": 14, - "offset": 775 - }, - "indent": [ - 3, - 3, - 3 - ] - } - } - ], - "position": { - "start": { - "line": 34, - "column": 3, - "offset": 696 - }, - "end": { - "line": 38, - "column": 14, - "offset": 775 - }, - "indent": [ - 3, - 3, - 3, - 3 - ] - } - } - ], - "position": { - "start": { - "line": 34, - "column": 1, - "offset": 694 - }, - "end": { - "line": 38, - "column": 14, - "offset": 775 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 40, - "column": 1, - "offset": 777 - }, - "end": { - "line": 40, - "column": 6, - "offset": 782 - }, - "indent": [] - } - }, - { - "type": "blockquote", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Another blockquote!\nI really need to get\nmore creative with\nmockup text..\nmarkdown.js breaks here again", - "position": { - "start": { - "line": 42, - "column": 3, - "offset": 786 - }, - "end": { - "line": 46, - "column": 32, - "offset": 897 - }, - "indent": [ - 3, - 3, - 3, - 3 - ] - } - } - ], - "position": { - "start": { - "line": 42, - "column": 3, - "offset": 786 - }, - "end": { - "line": 46, - "column": 32, - "offset": 897 - }, - "indent": [ - 3, - 3, - 3, - 3 - ] - } - } - ], - "position": { - "start": { - "line": 42, - "column": 1, - "offset": 784 - }, - "end": { - "line": 46, - "column": 32, - "offset": 897 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "heading", - "depth": 2, - "children": [ - { - "type": "text", - "value": "Another Heading", - "position": { - "start": { - "line": 48, - "column": 1, - "offset": 899 - }, - "end": { - "line": 48, - "column": 16, - "offset": 914 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 48, - "column": 1, - "offset": 899 - }, - "end": { - "line": 49, - "column": 14, - "offset": 928 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hello ", - "position": { - "start": { - "line": 51, - "column": 1, - "offset": 930 - }, - "end": { - "line": 51, - "column": 7, - "offset": 936 - }, - "indent": [] - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "world", - "position": { - "start": { - "line": 51, - "column": 8, - "offset": 937 - }, - "end": { - "line": 51, - "column": 13, - "offset": 942 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 51, - "column": 7, - "offset": 936 - }, - "end": { - "line": 51, - "column": 14, - "offset": 943 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ". Here is a ", - "position": { - "start": { - "line": 51, - "column": 14, - "offset": 943 - }, - "end": { - "line": 51, - "column": 26, - "offset": 955 - }, - "indent": [] - } - }, - { - "type": "link", - "title": null, - "url": "//hello", - "children": [ - { - "type": "text", - "value": "link", - "position": { - "start": { - "line": 51, - "column": 27, - "offset": 956 - }, - "end": { - "line": 51, - "column": 31, - "offset": 960 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 51, - "column": 26, - "offset": 955 - }, - "end": { - "line": 51, - "column": 41, - "offset": 970 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".\nAnd an image ", - "position": { - "start": { - "line": 51, - "column": 41, - "offset": 970 - }, - "end": { - "line": 52, - "column": 14, - "offset": 985 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "image", - "title": "a title", - "url": "src", - "alt": "alt", - "position": { - "start": { - "line": 52, - "column": 14, - "offset": 985 - }, - "end": { - "line": 52, - "column": 35, - "offset": 1006 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".\nAnd an image with an empty alt attribute ", - "position": { - "start": { - "line": 52, - "column": 35, - "offset": 1006 - }, - "end": { - "line": 53, - "column": 42, - "offset": 1049 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "image", - "title": null, - "url": "src", - "alt": null, - "position": { - "start": { - "line": 53, - "column": 42, - "offset": 1049 - }, - "end": { - "line": 53, - "column": 50, - "offset": 1057 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 53, - "column": 50, - "offset": 1057 - }, - "end": { - "line": 53, - "column": 51, - "offset": 1058 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 51, - "column": 1, - "offset": 930 - }, - "end": { - "line": 53, - "column": 51, - "offset": 1058 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "Code goes here.\nLots of it...", - "position": { - "start": { - "line": 55, - "column": 1, - "offset": 1060 - }, - "end": { - "line": 56, - "column": 18, - "offset": 1097 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 57, - "column": 1, - "offset": 1098 - } - } -} diff --git a/test/fixtures/tree/markdown-documentation-basics.json b/test/fixtures/tree/markdown-documentation-basics.json index 946689758..0d3afe2c0 100644 --- a/test/fixtures/tree/markdown-documentation-basics.json +++ b/test/fixtures/tree/markdown-documentation-basics.json @@ -18,8 +18,7 @@ "line": 1, "column": 17, "offset": 16 - }, - "indent": [] + } } } ], @@ -33,10 +32,7 @@ "line": 2, "column": 17, "offset": 33 - }, - "indent": [ - 1 - ] + } } }, { @@ -52,15 +48,7 @@ "line": 10, "column": 6, "offset": 508 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1 - ] + } } }, { @@ -80,8 +68,7 @@ "line": 13, "column": 49, "offset": 559 - }, - "indent": [] + } } } ], @@ -95,10 +82,7 @@ "line": 14, "column": 49, "offset": 608 - }, - "indent": [ - 1 - ] + } } }, { @@ -106,7 +90,7 @@ "children": [ { "type": "text", - "value": "This page offers a brief overview of what it's like to use Markdown.\nThe ", + "value": "This page offers a brief overview of what it's like to use Markdown.\nThe [syntax page] ", "position": { "start": { "line": 16, @@ -115,51 +99,46 @@ }, "end": { "line": 17, - "column": 5, - "offset": 683 - }, - "indent": [ - 1 - ] + "column": 19, + "offset": 697 + } } }, { "type": "linkReference", - "identifier": "s", - "label": "s", - "referenceType": "full", "children": [ { "type": "text", - "value": "syntax page", + "value": "s", "position": { "start": { "line": 17, - "column": 6, - "offset": 684 + "column": 20, + "offset": 698 }, "end": { "line": 17, - "column": 17, - "offset": 695 - }, - "indent": [] + "column": 21, + "offset": 699 + } } } ], "position": { "start": { "line": 17, - "column": 5, - "offset": 683 + "column": 19, + "offset": 697 }, "end": { "line": 17, "column": 22, "offset": 700 - }, - "indent": [] - } + } + }, + "identifier": "s", + "label": "s", + "referenceType": "shortcut" }, { "type": "text", @@ -174,13 +153,7 @@ "line": 21, "column": 34, "offset": 986 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] + } } } ], @@ -194,14 +167,7 @@ "line": 21, "column": 34, "offset": 986 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1 - ] + } } }, { @@ -209,7 +175,7 @@ "children": [ { "type": "text", - "value": "It's also helpful to simply try Markdown out; the ", + "value": "It's also helpful to simply try Markdown out; the [Dingus] ", "position": { "start": { "line": 23, @@ -218,49 +184,46 @@ }, "end": { "line": 23, - "column": 51, - "offset": 1038 - }, - "indent": [] + "column": 60, + "offset": 1047 + } } }, { "type": "linkReference", - "identifier": "d", - "label": "d", - "referenceType": "full", "children": [ { "type": "text", - "value": "Dingus", + "value": "d", "position": { "start": { "line": 23, - "column": 52, - "offset": 1039 + "column": 61, + "offset": 1048 }, "end": { "line": 23, - "column": 58, - "offset": 1045 - }, - "indent": [] + "column": 62, + "offset": 1049 + } } } ], "position": { "start": { "line": 23, - "column": 51, - "offset": 1038 + "column": 60, + "offset": 1047 }, "end": { "line": 23, "column": 63, "offset": 1050 - }, - "indent": [] - } + } + }, + "identifier": "d", + "label": "d", + "referenceType": "shortcut" }, { "type": "text", @@ -275,11 +238,7 @@ "line": 25, "column": 27, "offset": 1152 - }, - "indent": [ - 1, - 1 - ] + } } } ], @@ -293,11 +252,7 @@ "line": 25, "column": 27, "offset": 1152 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -319,8 +274,7 @@ "line": 27, "column": 8, "offset": 1161 - }, - "indent": [] + } } } ], @@ -334,13 +288,12 @@ "line": 27, "column": 10, "offset": 1163 - }, - "indent": [] + } } }, { "type": "text", - "value": " This document is itself written using Markdown; you\ncan ", + "value": " This document is itself written using Markdown; you\ncan [see the source for it by adding '.text' to the URL] ", "position": { "start": { "line": 27, @@ -349,51 +302,46 @@ }, "end": { "line": 28, - "column": 5, - "offset": 1220 - }, - "indent": [ - 1 - ] + "column": 58, + "offset": 1273 + } } }, { "type": "linkReference", - "identifier": "src", - "label": "src", - "referenceType": "full", "children": [ { "type": "text", - "value": "see the source for it by adding '.text' to the URL", + "value": "src", "position": { "start": { "line": 28, - "column": 6, - "offset": 1221 + "column": 59, + "offset": 1274 }, "end": { "line": 28, - "column": 56, - "offset": 1271 - }, - "indent": [] + "column": 62, + "offset": 1277 + } } } ], "position": { "start": { "line": 28, - "column": 5, - "offset": 1220 + "column": 58, + "offset": 1273 }, "end": { "line": 28, "column": 63, "offset": 1278 - }, - "indent": [] - } + } + }, + "identifier": "src", + "label": "src", + "referenceType": "shortcut" }, { "type": "text", @@ -408,8 +356,7 @@ "line": 28, "column": 64, "offset": 1279 - }, - "indent": [] + } } } ], @@ -423,10 +370,7 @@ "line": 28, "column": 64, "offset": 1279 - }, - "indent": [ - 1 - ] + } } }, { @@ -438,15 +382,14 @@ "position": { "start": { "line": 30, - "column": 1, - "offset": 1281 + "column": 3, + "offset": 1283 }, "end": { "line": 30, "column": 52, "offset": 1332 - }, - "indent": [] + } } }, { @@ -458,15 +401,14 @@ "position": { "start": { "line": 31, - "column": 1, - "offset": 1333 + "column": 3, + "offset": 1335 }, "end": { "line": 31, "column": 52, "offset": 1384 - }, - "indent": [] + } } }, { @@ -478,15 +420,14 @@ "position": { "start": { "line": 32, - "column": 1, - "offset": 1385 + "column": 3, + "offset": 1387 }, "end": { "line": 32, "column": 40, "offset": 1424 - }, - "indent": [] + } } }, { @@ -506,8 +447,7 @@ "line": 35, "column": 36, "offset": 1462 - }, - "indent": [] + } } } ], @@ -521,8 +461,7 @@ "line": 35, "column": 39, "offset": 1465 - }, - "indent": [] + } } }, { @@ -541,12 +480,7 @@ "line": 40, "column": 70, "offset": 1748 - }, - "indent": [ - 1, - 1, - 1 - ] + } } } ], @@ -560,12 +494,7 @@ "line": 40, "column": 70, "offset": 1748 - }, - "indent": [ - 1, - 1, - 1 - ] + } } }, { @@ -584,8 +513,7 @@ "line": 42, "column": 40, "offset": 1789 - }, - "indent": [] + } } }, { @@ -604,8 +532,7 @@ "line": 42, "column": 47, "offset": 1796 - }, - "indent": [] + } } } ], @@ -619,8 +546,7 @@ "line": 42, "column": 48, "offset": 1797 - }, - "indent": [] + } } }, { @@ -636,8 +562,7 @@ "line": 42, "column": 53, "offset": 1802 - }, - "indent": [] + } } }, { @@ -656,8 +581,7 @@ "line": 42, "column": 57, "offset": 1806 - }, - "indent": [] + } } } ], @@ -671,8 +595,7 @@ "line": 42, "column": 58, "offset": 1807 - }, - "indent": [] + } } }, { @@ -688,10 +611,7 @@ "line": 43, "column": 26, "offset": 1834 - }, - "indent": [ - 1 - ] + } } }, { @@ -707,8 +627,7 @@ "line": 43, "column": 32, "offset": 1840 - }, - "indent": [] + } } }, { @@ -724,8 +643,7 @@ "line": 43, "column": 37, "offset": 1845 - }, - "indent": [] + } } }, { @@ -741,8 +659,7 @@ "line": 43, "column": 43, "offset": 1851 - }, - "indent": [] + } } }, { @@ -758,10 +675,7 @@ "line": 44, "column": 33, "offset": 1899 - }, - "indent": [ - 1 - ] + } } }, { @@ -777,8 +691,7 @@ "line": 44, "column": 36, "offset": 1902 - }, - "indent": [] + } } }, { @@ -794,8 +707,7 @@ "line": 44, "column": 51, "offset": 1917 - }, - "indent": [] + } } }, { @@ -811,8 +723,7 @@ "line": 44, "column": 54, "offset": 1920 - }, - "indent": [] + } } }, { @@ -828,10 +739,7 @@ "line": 45, "column": 56, "offset": 1992 - }, - "indent": [ - 1 - ] + } } }, { @@ -847,8 +755,7 @@ "line": 45, "column": 59, "offset": 1995 - }, - "indent": [] + } } }, { @@ -864,11 +771,7 @@ "line": 47, "column": 19, "offset": 2089 - }, - "indent": [ - 1, - 1 - ] + } } } ], @@ -882,14 +785,7 @@ "line": 47, "column": 19, "offset": 2089 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1 - ] + } } }, { @@ -908,8 +804,7 @@ "line": 49, "column": 46, "offset": 2136 - }, - "indent": [] + } } }, { @@ -925,8 +820,7 @@ "line": 49, "column": 49, "offset": 2139 - }, - "indent": [] + } } }, { @@ -942,8 +836,7 @@ "line": 49, "column": 66, "offset": 2156 - }, - "indent": [] + } } } ], @@ -957,8 +850,7 @@ "line": 49, "column": 66, "offset": 2156 - }, - "indent": [] + } } }, { @@ -977,8 +869,7 @@ "line": 51, "column": 10, "offset": 2167 - }, - "indent": [] + } } } ], @@ -992,8 +883,7 @@ "line": 51, "column": 10, "offset": 2167 - }, - "indent": [] + } } }, { @@ -1011,28 +901,7 @@ "line": 72, "column": 39, "offset": 2611 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] + } } }, { @@ -1051,8 +920,7 @@ "line": 75, "column": 8, "offset": 2621 - }, - "indent": [] + } } } ], @@ -1066,8 +934,7 @@ "line": 75, "column": 8, "offset": 2621 - }, - "indent": [] + } } }, { @@ -1085,28 +952,7 @@ "line": 96, "column": 18, "offset": 3129 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] + } } }, { @@ -1126,8 +972,7 @@ "line": 100, "column": 20, "offset": 3152 - }, - "indent": [] + } } } ], @@ -1141,8 +986,7 @@ "line": 100, "column": 24, "offset": 3156 - }, - "indent": [] + } } }, { @@ -1161,8 +1005,7 @@ "line": 102, "column": 71, "offset": 3228 - }, - "indent": [] + } } } ], @@ -1176,8 +1019,7 @@ "line": 102, "column": 71, "offset": 3228 - }, - "indent": [] + } } }, { @@ -1196,8 +1038,7 @@ "line": 104, "column": 10, "offset": 3239 - }, - "indent": [] + } } } ], @@ -1211,8 +1052,7 @@ "line": 104, "column": 10, "offset": 3239 - }, - "indent": [] + } } }, { @@ -1230,13 +1070,7 @@ "line": 110, "column": 56, "offset": 3437 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] + } } }, { @@ -1255,8 +1089,7 @@ "line": 112, "column": 8, "offset": 3446 - }, - "indent": [] + } } } ], @@ -1270,8 +1103,7 @@ "line": 112, "column": 8, "offset": 3446 - }, - "indent": [] + } } }, { @@ -1289,13 +1121,7 @@ "line": 118, "column": 73, "offset": 3698 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] + } } }, { @@ -1315,8 +1141,7 @@ "line": 122, "column": 9, "offset": 3713 - }, - "indent": [] + } } } ], @@ -1330,8 +1155,7 @@ "line": 122, "column": 12, "offset": 3716 - }, - "indent": [] + } } }, { @@ -1350,8 +1174,7 @@ "line": 124, "column": 64, "offset": 3781 - }, - "indent": [] + } } }, { @@ -1367,8 +1190,7 @@ "line": 124, "column": 67, "offset": 3784 - }, - "indent": [] + } } }, { @@ -1384,10 +1206,7 @@ "line": 125, "column": 1, "offset": 3786 - }, - "indent": [ - 1 - ] + } } }, { @@ -1403,8 +1222,7 @@ "line": 125, "column": 4, "offset": 3789 - }, - "indent": [] + } } }, { @@ -1420,8 +1238,7 @@ "line": 125, "column": 10, "offset": 3795 - }, - "indent": [] + } } }, { @@ -1437,8 +1254,7 @@ "line": 125, "column": 13, "offset": 3798 - }, - "indent": [] + } } }, { @@ -1454,10 +1270,7 @@ "line": 126, "column": 22, "offset": 3862 - }, - "indent": [ - 1 - ] + } } } ], @@ -1471,11 +1284,7 @@ "line": 126, "column": 22, "offset": 3862 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -1493,11 +1302,7 @@ "line": 130, "column": 15, "offset": 3906 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -1516,8 +1321,7 @@ "line": 132, "column": 6, "offset": 3913 - }, - "indent": [] + } } } ], @@ -1531,8 +1335,7 @@ "line": 132, "column": 6, "offset": 3913 - }, - "indent": [] + } } }, { @@ -1550,11 +1353,7 @@ "line": 136, "column": 15, "offset": 3957 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -1573,8 +1372,7 @@ "line": 138, "column": 10, "offset": 3968 - }, - "indent": [] + } } } ], @@ -1588,8 +1386,7 @@ "line": 138, "column": 10, "offset": 3968 - }, - "indent": [] + } } }, { @@ -1607,11 +1404,7 @@ "line": 142, "column": 15, "offset": 4012 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -1630,8 +1423,7 @@ "line": 144, "column": 29, "offset": 4042 - }, - "indent": [] + } } } ], @@ -1645,8 +1437,7 @@ "line": 144, "column": 29, "offset": 4042 - }, - "indent": [] + } } }, { @@ -1664,13 +1455,7 @@ "line": 150, "column": 10, "offset": 4120 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] + } } }, { @@ -1689,10 +1474,7 @@ "line": 153, "column": 14, "offset": 4205 - }, - "indent": [ - 1 - ] + } } } ], @@ -1706,10 +1488,7 @@ "line": 153, "column": 14, "offset": 4205 - }, - "indent": [ - 1 - ] + } } }, { @@ -1727,11 +1506,7 @@ "line": 157, "column": 13, "offset": 4245 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -1750,8 +1525,7 @@ "line": 159, "column": 8, "offset": 4254 - }, - "indent": [] + } } } ], @@ -1765,8 +1539,7 @@ "line": 159, "column": 8, "offset": 4254 - }, - "indent": [] + } } }, { @@ -1784,13 +1557,7 @@ "line": 165, "column": 10, "offset": 4328 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] + } } }, { @@ -1809,8 +1576,7 @@ "line": 167, "column": 50, "offset": 4379 - }, - "indent": [] + } } }, { @@ -1826,8 +1592,7 @@ "line": 167, "column": 55, "offset": 4384 - }, - "indent": [] + } } }, { @@ -1843,11 +1608,7 @@ "line": 169, "column": 37, "offset": 4505 - }, - "indent": [ - 1, - 1 - ] + } } } ], @@ -1861,11 +1622,7 @@ "line": 169, "column": 37, "offset": 4505 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -1883,13 +1640,7 @@ "line": 175, "column": 34, "offset": 4601 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] + } } }, { @@ -1908,8 +1659,7 @@ "line": 177, "column": 8, "offset": 4610 - }, - "indent": [] + } } } ], @@ -1923,8 +1673,7 @@ "line": 177, "column": 8, "offset": 4610 - }, - "indent": [] + } } }, { @@ -1939,17 +1688,10 @@ "offset": 4612 }, "end": { - "line": 184, - "column": 5, - "offset": 4751 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1 - ] + "line": 183, + "column": 10, + "offset": 4746 + } } }, { @@ -1969,8 +1711,7 @@ "line": 187, "column": 10, "offset": 4763 - }, - "indent": [] + } } } ], @@ -1984,8 +1725,7 @@ "line": 187, "column": 14, "offset": 4767 - }, - "indent": [] + } } }, { @@ -2004,8 +1744,7 @@ "line": 189, "column": 50, "offset": 4818 - }, - "indent": [] + } } }, { @@ -2024,8 +1763,7 @@ "line": 189, "column": 57, "offset": 4825 - }, - "indent": [] + } } } ], @@ -2039,8 +1777,7 @@ "line": 189, "column": 58, "offset": 4826 - }, - "indent": [] + } } }, { @@ -2056,10 +1793,7 @@ "line": 190, "column": 1, "offset": 4831 - }, - "indent": [ - 1 - ] + } } }, { @@ -2078,8 +1812,7 @@ "line": 190, "column": 11, "offset": 4841 - }, - "indent": [] + } } } ], @@ -2093,8 +1826,7 @@ "line": 190, "column": 12, "offset": 4842 - }, - "indent": [] + } } }, { @@ -2110,10 +1842,7 @@ "line": 191, "column": 35, "offset": 4935 - }, - "indent": [ - 1 - ] + } } } ], @@ -2127,11 +1856,7 @@ "line": 191, "column": 35, "offset": 4935 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -2150,10 +1875,7 @@ "line": 194, "column": 13, "offset": 5017 - }, - "indent": [ - 1 - ] + } } } ], @@ -2167,10 +1889,7 @@ "line": 194, "column": 13, "offset": 5017 - }, - "indent": [ - 1 - ] + } } }, { @@ -2188,8 +1907,7 @@ "line": 196, "column": 52, "offset": 5070 - }, - "indent": [] + } } }, { @@ -2208,8 +1926,7 @@ "line": 198, "column": 8, "offset": 5079 - }, - "indent": [] + } } } ], @@ -2223,8 +1940,7 @@ "line": 198, "column": 8, "offset": 5079 - }, - "indent": [] + } } }, { @@ -2242,10 +1958,7 @@ "line": 201, "column": 26, "offset": 5155 - }, - "indent": [ - 1 - ] + } } }, { @@ -2264,8 +1977,7 @@ "line": 203, "column": 66, "offset": 5222 - }, - "indent": [] + } } } ], @@ -2279,8 +1991,7 @@ "line": 203, "column": 66, "offset": 5222 - }, - "indent": [] + } } }, { @@ -2298,8 +2009,7 @@ "line": 205, "column": 67, "offset": 5290 - }, - "indent": [] + } } }, { @@ -2318,8 +2028,7 @@ "line": 207, "column": 8, "offset": 5299 - }, - "indent": [] + } } } ], @@ -2333,8 +2042,7 @@ "line": 207, "column": 8, "offset": 5299 - }, - "indent": [] + } } }, { @@ -2352,10 +2060,7 @@ "line": 210, "column": 26, "offset": 5396 - }, - "indent": [ - 1 - ] + } } }, { @@ -2374,10 +2079,7 @@ "line": 213, "column": 39, "offset": 5507 - }, - "indent": [ - 1 - ] + } } } ], @@ -2391,10 +2093,7 @@ "line": 213, "column": 39, "offset": 5507 - }, - "indent": [ - 1 - ] + } } }, { @@ -2412,14 +2111,7 @@ "line": 220, "column": 48, "offset": 5738 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1 - ] + } } }, { @@ -2438,8 +2130,7 @@ "line": 222, "column": 8, "offset": 5747 - }, - "indent": [] + } } } ], @@ -2453,8 +2144,7 @@ "line": 222, "column": 8, "offset": 5747 - }, - "indent": [] + } } }, { @@ -2472,12 +2162,7 @@ "line": 227, "column": 36, "offset": 5999 - }, - "indent": [ - 1, - 1, - 1 - ] + } } }, { @@ -2496,10 +2181,7 @@ "line": 230, "column": 29, "offset": 6094 - }, - "indent": [ - 1 - ] + } } }, { @@ -2518,8 +2200,7 @@ "line": 230, "column": 33, "offset": 6098 - }, - "indent": [] + } } } ], @@ -2533,8 +2214,7 @@ "line": 230, "column": 34, "offset": 6099 - }, - "indent": [] + } } }, { @@ -2550,8 +2230,7 @@ "line": 230, "column": 50, "offset": 6115 - }, - "indent": [] + } } } ], @@ -2565,10 +2244,7 @@ "line": 230, "column": 50, "offset": 6115 - }, - "indent": [ - 1 - ] + } } }, { @@ -2586,12 +2262,7 @@ "line": 235, "column": 40, "offset": 6241 - }, - "indent": [ - 1, - 1, - 1 - ] + } } }, { @@ -2610,8 +2281,7 @@ "line": 237, "column": 8, "offset": 6250 - }, - "indent": [] + } } } ], @@ -2625,8 +2295,7 @@ "line": 237, "column": 8, "offset": 6250 - }, - "indent": [] + } } }, { @@ -2644,10 +2313,7 @@ "line": 240, "column": 66, "offset": 6368 - }, - "indent": [ - 1 - ] + } } }, { @@ -2667,8 +2333,7 @@ "line": 243, "column": 11, "offset": 6381 - }, - "indent": [] + } } } ], @@ -2682,8 +2347,7 @@ "line": 243, "column": 15, "offset": 6385 - }, - "indent": [] + } } }, { @@ -2702,8 +2366,7 @@ "line": 245, "column": 44, "offset": 6430 - }, - "indent": [] + } } } ], @@ -2717,8 +2380,7 @@ "line": 245, "column": 44, "offset": 6430 - }, - "indent": [] + } } }, { @@ -2737,8 +2399,7 @@ "line": 247, "column": 30, "offset": 6461 - }, - "indent": [] + } } } ], @@ -2752,8 +2413,7 @@ "line": 247, "column": 30, "offset": 6461 - }, - "indent": [] + } } }, { @@ -2771,8 +2431,7 @@ "line": 249, "column": 42, "offset": 6504 - }, - "indent": [] + } } }, { @@ -2791,8 +2450,7 @@ "line": 251, "column": 17, "offset": 6522 - }, - "indent": [] + } } } ], @@ -2806,8 +2464,7 @@ "line": 251, "column": 17, "offset": 6522 - }, - "indent": [] + } } }, { @@ -2825,11 +2482,7 @@ "line": 255, "column": 35, "offset": 6579 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -2848,8 +2501,7 @@ "line": 257, "column": 52, "offset": 6632 - }, - "indent": [] + } } } ], @@ -2863,8 +2515,7 @@ "line": 257, "column": 52, "offset": 6632 - }, - "indent": [] + } } }, { @@ -2882,8 +2533,7 @@ "line": 259, "column": 64, "offset": 6697 - }, - "indent": [] + } } }, { @@ -2903,8 +2553,7 @@ "line": 263, "column": 9, "offset": 6709 - }, - "indent": [] + } } } ], @@ -2918,8 +2567,7 @@ "line": 263, "column": 13, "offset": 6713 - }, - "indent": [] + } } }, { @@ -2938,10 +2586,7 @@ "line": 266, "column": 34, "offset": 6817 - }, - "indent": [ - 1 - ] + } } }, { @@ -2957,8 +2602,7 @@ "line": 266, "column": 37, "offset": 6820 - }, - "indent": [] + } } }, { @@ -2974,8 +2618,7 @@ "line": 266, "column": 59, "offset": 6842 - }, - "indent": [] + } } }, { @@ -2991,8 +2634,7 @@ "line": 266, "column": 62, "offset": 6845 - }, - "indent": [] + } } }, { @@ -3008,10 +2650,7 @@ "line": 267, "column": 1, "offset": 6849 - }, - "indent": [ - 1 - ] + } } }, { @@ -3027,8 +2666,7 @@ "line": 267, "column": 4, "offset": 6852 - }, - "indent": [] + } } }, { @@ -3044,10 +2682,7 @@ "line": 268, "column": 58, "offset": 6975 - }, - "indent": [ - 1 - ] + } } } ], @@ -3061,12 +2696,7 @@ "line": 268, "column": 58, "offset": 6975 - }, - "indent": [ - 1, - 1, - 1 - ] + } } }, { @@ -3084,12 +2714,7 @@ "line": 273, "column": 55, "offset": 7149 - }, - "indent": [ - 1, - 1, - 1 - ] + } } }, { @@ -3108,8 +2733,7 @@ "line": 275, "column": 8, "offset": 7158 - }, - "indent": [] + } } } ], @@ -3123,8 +2747,7 @@ "line": 275, "column": 8, "offset": 7158 - }, - "indent": [] + } } }, { @@ -3142,14 +2765,7 @@ "line": 282, "column": 47, "offset": 7405 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1 - ] + } } }, { @@ -3168,10 +2784,7 @@ "line": 286, "column": 60, "offset": 7538 - }, - "indent": [ - 1 - ] + } } }, { @@ -3187,8 +2800,7 @@ "line": 286, "column": 63, "offset": 7541 - }, - "indent": [] + } } }, { @@ -3204,8 +2816,7 @@ "line": 286, "column": 65, "offset": 7543 - }, - "indent": [] + } } }, { @@ -3221,8 +2832,7 @@ "line": 286, "column": 68, "offset": 7546 - }, - "indent": [] + } } }, { @@ -3238,10 +2848,7 @@ "line": 287, "column": 5, "offset": 7552 - }, - "indent": [ - 1 - ] + } } }, { @@ -3257,8 +2864,7 @@ "line": 287, "column": 8, "offset": 7555 - }, - "indent": [] + } } }, { @@ -3274,8 +2880,7 @@ "line": 287, "column": 50, "offset": 7597 - }, - "indent": [] + } } } ], @@ -3289,11 +2894,7 @@ "line": 287, "column": 50, "offset": 7597 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -3312,8 +2913,7 @@ "line": 289, "column": 10, "offset": 7608 - }, - "indent": [] + } } } ], @@ -3327,8 +2927,7 @@ "line": 289, "column": 10, "offset": 7608 - }, - "indent": [] + } } }, { @@ -3346,14 +2945,7 @@ "line": 296, "column": 22, "offset": 7805 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1 - ] + } } }, { @@ -3372,8 +2964,7 @@ "line": 298, "column": 8, "offset": 7814 - }, - "indent": [] + } } } ], @@ -3387,8 +2978,7 @@ "line": 298, "column": 8, "offset": 7814 - }, - "indent": [] + } } }, { @@ -3406,15 +2996,7 @@ "line": 306, "column": 18, "offset": 8063 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1 - ] + } } } ], diff --git a/test/fixtures/tree/markdown-documentation-syntax.commonmark.json b/test/fixtures/tree/markdown-documentation-syntax.commonmark.json deleted file mode 100644 index 063e62539..000000000 --- a/test/fixtures/tree/markdown-documentation-syntax.commonmark.json +++ /dev/null @@ -1,13484 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Markdown: Syntax", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 17, - "offset": 16 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 17, - "offset": 33 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "html", - "value": "
", - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 35 - }, - "end": { - "line": 10, - "column": 6, - "offset": 508 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#overview", - "children": [ - { - "type": "text", - "value": "Overview", - "position": { - "start": { - "line": 13, - "column": 6, - "offset": 516 - }, - "end": { - "line": 13, - "column": 14, - "offset": 524 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 5, - "offset": 515 - }, - "end": { - "line": 13, - "column": 26, - "offset": 536 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 5, - "offset": 515 - }, - "end": { - "line": 13, - "column": 26, - "offset": 536 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#philosophy", - "children": [ - { - "type": "text", - "value": "Philosophy", - "position": { - "start": { - "line": 14, - "column": 10, - "offset": 546 - }, - "end": { - "line": 14, - "column": 20, - "offset": 556 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 9, - "offset": 545 - }, - "end": { - "line": 14, - "column": 34, - "offset": 570 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 9, - "offset": 545 - }, - "end": { - "line": 14, - "column": 34, - "offset": 570 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 5, - "offset": 541 - }, - "end": { - "line": 14, - "column": 34, - "offset": 570 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#html", - "children": [ - { - "type": "text", - "value": "Inline HTML", - "position": { - "start": { - "line": 15, - "column": 10, - "offset": 580 - }, - "end": { - "line": 15, - "column": 21, - "offset": 591 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 9, - "offset": 579 - }, - "end": { - "line": 15, - "column": 29, - "offset": 599 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 9, - "offset": 579 - }, - "end": { - "line": 15, - "column": 29, - "offset": 599 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 5, - "offset": 575 - }, - "end": { - "line": 15, - "column": 29, - "offset": 599 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#autoescape", - "children": [ - { - "type": "text", - "value": "Automatic Escaping for Special Characters", - "position": { - "start": { - "line": 16, - "column": 10, - "offset": 609 - }, - "end": { - "line": 16, - "column": 51, - "offset": 650 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 9, - "offset": 608 - }, - "end": { - "line": 16, - "column": 65, - "offset": 664 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 9, - "offset": 608 - }, - "end": { - "line": 16, - "column": 65, - "offset": 664 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 5, - "offset": 604 - }, - "end": { - "line": 16, - "column": 65, - "offset": 664 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 5, - "offset": 541 - }, - "end": { - "line": 16, - "column": 65, - "offset": 664 - }, - "indent": [ - 5, - 5 - ] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 511 - }, - "end": { - "line": 16, - "column": 65, - "offset": 664 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#block", - "children": [ - { - "type": "text", - "value": "Block Elements", - "position": { - "start": { - "line": 17, - "column": 6, - "offset": 670 - }, - "end": { - "line": 17, - "column": 20, - "offset": 684 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 17, - "column": 5, - "offset": 669 - }, - "end": { - "line": 17, - "column": 29, - "offset": 693 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 17, - "column": 5, - "offset": 669 - }, - "end": { - "line": 17, - "column": 29, - "offset": 693 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#p", - "children": [ - { - "type": "text", - "value": "Paragraphs and Line Breaks", - "position": { - "start": { - "line": 18, - "column": 10, - "offset": 703 - }, - "end": { - "line": 18, - "column": 36, - "offset": 729 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 9, - "offset": 702 - }, - "end": { - "line": 18, - "column": 41, - "offset": 734 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 9, - "offset": 702 - }, - "end": { - "line": 18, - "column": 41, - "offset": 734 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 5, - "offset": 698 - }, - "end": { - "line": 18, - "column": 41, - "offset": 734 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#header", - "children": [ - { - "type": "text", - "value": "Headers", - "position": { - "start": { - "line": 19, - "column": 10, - "offset": 744 - }, - "end": { - "line": 19, - "column": 17, - "offset": 751 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 19, - "column": 9, - "offset": 743 - }, - "end": { - "line": 19, - "column": 27, - "offset": 761 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 19, - "column": 9, - "offset": 743 - }, - "end": { - "line": 19, - "column": 27, - "offset": 761 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 19, - "column": 5, - "offset": 739 - }, - "end": { - "line": 19, - "column": 27, - "offset": 761 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#blockquote", - "children": [ - { - "type": "text", - "value": "Blockquotes", - "position": { - "start": { - "line": 20, - "column": 10, - "offset": 771 - }, - "end": { - "line": 20, - "column": 21, - "offset": 782 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 9, - "offset": 770 - }, - "end": { - "line": 20, - "column": 35, - "offset": 796 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 9, - "offset": 770 - }, - "end": { - "line": 20, - "column": 35, - "offset": 796 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 5, - "offset": 766 - }, - "end": { - "line": 20, - "column": 35, - "offset": 796 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#list", - "children": [ - { - "type": "text", - "value": "Lists", - "position": { - "start": { - "line": 21, - "column": 10, - "offset": 806 - }, - "end": { - "line": 21, - "column": 15, - "offset": 811 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 9, - "offset": 805 - }, - "end": { - "line": 21, - "column": 23, - "offset": 819 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 9, - "offset": 805 - }, - "end": { - "line": 21, - "column": 23, - "offset": 819 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 5, - "offset": 801 - }, - "end": { - "line": 21, - "column": 23, - "offset": 819 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#precode", - "children": [ - { - "type": "text", - "value": "Code Blocks", - "position": { - "start": { - "line": 22, - "column": 10, - "offset": 829 - }, - "end": { - "line": 22, - "column": 21, - "offset": 840 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 22, - "column": 9, - "offset": 828 - }, - "end": { - "line": 22, - "column": 32, - "offset": 851 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 22, - "column": 9, - "offset": 828 - }, - "end": { - "line": 22, - "column": 32, - "offset": 851 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 22, - "column": 5, - "offset": 824 - }, - "end": { - "line": 22, - "column": 32, - "offset": 851 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#hr", - "children": [ - { - "type": "text", - "value": "Horizontal Rules", - "position": { - "start": { - "line": 23, - "column": 10, - "offset": 861 - }, - "end": { - "line": 23, - "column": 26, - "offset": 877 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 23, - "column": 9, - "offset": 860 - }, - "end": { - "line": 23, - "column": 32, - "offset": 883 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 23, - "column": 9, - "offset": 860 - }, - "end": { - "line": 23, - "column": 32, - "offset": 883 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 23, - "column": 5, - "offset": 856 - }, - "end": { - "line": 23, - "column": 32, - "offset": 883 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 5, - "offset": 698 - }, - "end": { - "line": 23, - "column": 32, - "offset": 883 - }, - "indent": [ - 5, - 5, - 5, - 5, - 5 - ] - } - } - ], - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 665 - }, - "end": { - "line": 23, - "column": 32, - "offset": 883 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#span", - "children": [ - { - "type": "text", - "value": "Span Elements", - "position": { - "start": { - "line": 24, - "column": 6, - "offset": 889 - }, - "end": { - "line": 24, - "column": 19, - "offset": 902 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 24, - "column": 5, - "offset": 888 - }, - "end": { - "line": 24, - "column": 27, - "offset": 910 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 24, - "column": 5, - "offset": 888 - }, - "end": { - "line": 24, - "column": 27, - "offset": 910 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#link", - "children": [ - { - "type": "text", - "value": "Links", - "position": { - "start": { - "line": 25, - "column": 10, - "offset": 920 - }, - "end": { - "line": 25, - "column": 15, - "offset": 925 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 25, - "column": 9, - "offset": 919 - }, - "end": { - "line": 25, - "column": 23, - "offset": 933 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 25, - "column": 9, - "offset": 919 - }, - "end": { - "line": 25, - "column": 23, - "offset": 933 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 25, - "column": 5, - "offset": 915 - }, - "end": { - "line": 25, - "column": 23, - "offset": 933 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#em", - "children": [ - { - "type": "text", - "value": "Emphasis", - "position": { - "start": { - "line": 26, - "column": 10, - "offset": 943 - }, - "end": { - "line": 26, - "column": 18, - "offset": 951 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 26, - "column": 9, - "offset": 942 - }, - "end": { - "line": 26, - "column": 24, - "offset": 957 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 26, - "column": 9, - "offset": 942 - }, - "end": { - "line": 26, - "column": 24, - "offset": 957 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 26, - "column": 5, - "offset": 938 - }, - "end": { - "line": 26, - "column": 24, - "offset": 957 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#code", - "children": [ - { - "type": "text", - "value": "Code", - "position": { - "start": { - "line": 27, - "column": 10, - "offset": 967 - }, - "end": { - "line": 27, - "column": 14, - "offset": 971 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 27, - "column": 9, - "offset": 966 - }, - "end": { - "line": 27, - "column": 22, - "offset": 979 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 27, - "column": 9, - "offset": 966 - }, - "end": { - "line": 27, - "column": 22, - "offset": 979 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 27, - "column": 5, - "offset": 962 - }, - "end": { - "line": 27, - "column": 22, - "offset": 979 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#img", - "children": [ - { - "type": "text", - "value": "Images", - "position": { - "start": { - "line": 28, - "column": 10, - "offset": 989 - }, - "end": { - "line": 28, - "column": 16, - "offset": 995 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 28, - "column": 9, - "offset": 988 - }, - "end": { - "line": 28, - "column": 23, - "offset": 1002 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 28, - "column": 9, - "offset": 988 - }, - "end": { - "line": 28, - "column": 23, - "offset": 1002 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 28, - "column": 5, - "offset": 984 - }, - "end": { - "line": 28, - "column": 23, - "offset": 1002 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 25, - "column": 5, - "offset": 915 - }, - "end": { - "line": 28, - "column": 23, - "offset": 1002 - }, - "indent": [ - 5, - 5, - 5 - ] - } - } - ], - "position": { - "start": { - "line": 24, - "column": 1, - "offset": 884 - }, - "end": { - "line": 28, - "column": 23, - "offset": 1002 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#misc", - "children": [ - { - "type": "text", - "value": "Miscellaneous", - "position": { - "start": { - "line": 29, - "column": 6, - "offset": 1008 - }, - "end": { - "line": 29, - "column": 19, - "offset": 1021 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 29, - "column": 5, - "offset": 1007 - }, - "end": { - "line": 29, - "column": 27, - "offset": 1029 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 29, - "column": 5, - "offset": 1007 - }, - "end": { - "line": 29, - "column": 27, - "offset": 1029 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#backslash", - "children": [ - { - "type": "text", - "value": "Backslash Escapes", - "position": { - "start": { - "line": 30, - "column": 10, - "offset": 1039 - }, - "end": { - "line": 30, - "column": 27, - "offset": 1056 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 30, - "column": 9, - "offset": 1038 - }, - "end": { - "line": 30, - "column": 40, - "offset": 1069 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 30, - "column": 9, - "offset": 1038 - }, - "end": { - "line": 30, - "column": 40, - "offset": 1069 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 30, - "column": 5, - "offset": 1034 - }, - "end": { - "line": 30, - "column": 40, - "offset": 1069 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#autolink", - "children": [ - { - "type": "text", - "value": "Automatic Links", - "position": { - "start": { - "line": 31, - "column": 10, - "offset": 1079 - }, - "end": { - "line": 31, - "column": 25, - "offset": 1094 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 31, - "column": 9, - "offset": 1078 - }, - "end": { - "line": 31, - "column": 37, - "offset": 1106 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 31, - "column": 9, - "offset": 1078 - }, - "end": { - "line": 31, - "column": 37, - "offset": 1106 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 31, - "column": 5, - "offset": 1074 - }, - "end": { - "line": 31, - "column": 37, - "offset": 1106 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 30, - "column": 5, - "offset": 1034 - }, - "end": { - "line": 31, - "column": 37, - "offset": 1106 - }, - "indent": [ - 5 - ] - } - } - ], - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 1003 - }, - "end": { - "line": 31, - "column": 37, - "offset": 1106 - }, - "indent": [ - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 511 - }, - "end": { - "line": 31, - "column": 37, - "offset": 1106 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "Note:", - "position": { - "start": { - "line": 34, - "column": 3, - "offset": 1111 - }, - "end": { - "line": 34, - "column": 8, - "offset": 1116 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 34, - "column": 1, - "offset": 1109 - }, - "end": { - "line": 34, - "column": 10, - "offset": 1118 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " This document is itself written using Markdown; you\ncan ", - "position": { - "start": { - "line": 34, - "column": 10, - "offset": 1118 - }, - "end": { - "line": 35, - "column": 5, - "offset": 1175 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "linkReference", - "identifier": "src", - "label": "src", - "referenceType": "full", - "children": [ - { - "type": "text", - "value": "see the source for it by adding '.text' to the URL", - "position": { - "start": { - "line": 35, - "column": 6, - "offset": 1176 - }, - "end": { - "line": 35, - "column": 56, - "offset": 1226 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 35, - "column": 5, - "offset": 1175 - }, - "end": { - "line": 35, - "column": 62, - "offset": 1232 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 35, - "column": 62, - "offset": 1232 - }, - "end": { - "line": 35, - "column": 63, - "offset": 1233 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 34, - "column": 1, - "offset": 1109 - }, - "end": { - "line": 35, - "column": 63, - "offset": 1233 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "definition", - "identifier": "src", - "label": "src", - "title": null, - "url": "/projects/markdown/syntax.text", - "position": { - "start": { - "line": 37, - "column": 1, - "offset": 1235 - }, - "end": { - "line": 37, - "column": 40, - "offset": 1274 - }, - "indent": [] - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 39, - "column": 1, - "offset": 1276 - }, - "end": { - "line": 39, - "column": 6, - "offset": 1281 - }, - "indent": [] - } - }, - { - "type": "html", - "value": "

Overview

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

Philosophy

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

Inline HTML

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

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

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

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

Automatic Escaping for Special Characters

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

Block Elements

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

Paragraphs and Line Breaks

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

Headers

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

Blockquotes

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

Lists

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

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

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

  • \n
  • Magic

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

Code Blocks

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

This is a normal paragraph:

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

Here is an example of AppleScript:

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

Horizontal Rules

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

Span Elements

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

Links

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

This is \nan example inline link.

\n\n

This link has no\ntitle attribute.

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

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

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

Emphasis

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

Code

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

Use the printf() function.

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

There is a literal backtick (`) here.

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

A single backtick in a code span: `

\n\n

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

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

Please don't use any <blink> tags.

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

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

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

Images

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

Miscellaneous

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

Automatic Links

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

Backslash Escapes

", - "position": { - "start": { - "line": 863, - "column": 1, - "offset": 26752 - }, - "end": { - "line": 863, - "column": 42, - "offset": 26793 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Markdown allows you to use backslash escapes to generate literal\ncharacters which would otherwise have special meaning in Markdown's\nformatting syntax. For example, if you wanted to surround a word with\nliteral asterisks (instead of an HTML ", - "position": { - "start": { - "line": 865, - "column": 1, - "offset": 26795 - }, - "end": { - "line": 868, - "column": 39, - "offset": 27036 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "inlineCode", - "value": "", - "position": { - "start": { - "line": 868, - "column": 39, - "offset": 27036 - }, - "end": { - "line": 868, - "column": 45, - "offset": 27042 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " tag), you can backslashes\nbefore the asterisks, like this:", - "position": { - "start": { - "line": 868, - "column": 45, - "offset": 27042 - }, - "end": { - "line": 869, - "column": 33, - "offset": 27101 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 865, - "column": 1, - "offset": 26795 - }, - "end": { - "line": 869, - "column": 33, - "offset": 27101 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "\\*literal asterisks\\*", - "position": { - "start": { - "line": 871, - "column": 1, - "offset": 27103 - }, - "end": { - "line": 871, - "column": 26, - "offset": 27128 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Markdown provides backslash escapes for the following characters:", - "position": { - "start": { - "line": 873, - "column": 1, - "offset": 27130 - }, - "end": { - "line": 873, - "column": 66, - "offset": 27195 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 873, - "column": 1, - "offset": 27130 - }, - "end": { - "line": 873, - "column": 66, - "offset": 27195 - }, - "indent": [] - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "\\ backslash\n` backtick\n* asterisk\n_ underscore\n{} curly braces\n[] square brackets\n() parentheses\n# hash mark\n+\tplus sign\n-\tminus sign (hyphen)\n. dot\n! exclamation mark", - "position": { - "start": { - "line": 875, - "column": 1, - "offset": 27197 - }, - "end": { - "line": 886, - "column": 25, - "offset": 27423 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 888, - "column": 1, - "offset": 27425 - } - } -} diff --git a/test/fixtures/tree/markdown-documentation-syntax.commonmark.pedantic.json b/test/fixtures/tree/markdown-documentation-syntax.commonmark.pedantic.json deleted file mode 100644 index 063e62539..000000000 --- a/test/fixtures/tree/markdown-documentation-syntax.commonmark.pedantic.json +++ /dev/null @@ -1,13484 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Markdown: Syntax", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 17, - "offset": 16 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 17, - "offset": 33 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 35 - }, - "end": { - "line": 10, - "column": 6, - "offset": 508 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#overview", - "children": [ - { - "type": "text", - "value": "Overview", - "position": { - "start": { - "line": 13, - "column": 6, - "offset": 516 - }, - "end": { - "line": 13, - "column": 14, - "offset": 524 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 5, - "offset": 515 - }, - "end": { - "line": 13, - "column": 26, - "offset": 536 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 5, - "offset": 515 - }, - "end": { - "line": 13, - "column": 26, - "offset": 536 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#philosophy", - "children": [ - { - "type": "text", - "value": "Philosophy", - "position": { - "start": { - "line": 14, - "column": 10, - "offset": 546 - }, - "end": { - "line": 14, - "column": 20, - "offset": 556 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 9, - "offset": 545 - }, - "end": { - "line": 14, - "column": 34, - "offset": 570 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 9, - "offset": 545 - }, - "end": { - "line": 14, - "column": 34, - "offset": 570 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 5, - "offset": 541 - }, - "end": { - "line": 14, - "column": 34, - "offset": 570 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#html", - "children": [ - { - "type": "text", - "value": "Inline HTML", - "position": { - "start": { - "line": 15, - "column": 10, - "offset": 580 - }, - "end": { - "line": 15, - "column": 21, - "offset": 591 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 9, - "offset": 579 - }, - "end": { - "line": 15, - "column": 29, - "offset": 599 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 9, - "offset": 579 - }, - "end": { - "line": 15, - "column": 29, - "offset": 599 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 5, - "offset": 575 - }, - "end": { - "line": 15, - "column": 29, - "offset": 599 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#autoescape", - "children": [ - { - "type": "text", - "value": "Automatic Escaping for Special Characters", - "position": { - "start": { - "line": 16, - "column": 10, - "offset": 609 - }, - "end": { - "line": 16, - "column": 51, - "offset": 650 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 9, - "offset": 608 - }, - "end": { - "line": 16, - "column": 65, - "offset": 664 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 9, - "offset": 608 - }, - "end": { - "line": 16, - "column": 65, - "offset": 664 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 5, - "offset": 604 - }, - "end": { - "line": 16, - "column": 65, - "offset": 664 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 5, - "offset": 541 - }, - "end": { - "line": 16, - "column": 65, - "offset": 664 - }, - "indent": [ - 5, - 5 - ] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 511 - }, - "end": { - "line": 16, - "column": 65, - "offset": 664 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#block", - "children": [ - { - "type": "text", - "value": "Block Elements", - "position": { - "start": { - "line": 17, - "column": 6, - "offset": 670 - }, - "end": { - "line": 17, - "column": 20, - "offset": 684 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 17, - "column": 5, - "offset": 669 - }, - "end": { - "line": 17, - "column": 29, - "offset": 693 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 17, - "column": 5, - "offset": 669 - }, - "end": { - "line": 17, - "column": 29, - "offset": 693 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#p", - "children": [ - { - "type": "text", - "value": "Paragraphs and Line Breaks", - "position": { - "start": { - "line": 18, - "column": 10, - "offset": 703 - }, - "end": { - "line": 18, - "column": 36, - "offset": 729 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 9, - "offset": 702 - }, - "end": { - "line": 18, - "column": 41, - "offset": 734 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 9, - "offset": 702 - }, - "end": { - "line": 18, - "column": 41, - "offset": 734 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 5, - "offset": 698 - }, - "end": { - "line": 18, - "column": 41, - "offset": 734 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#header", - "children": [ - { - "type": "text", - "value": "Headers", - "position": { - "start": { - "line": 19, - "column": 10, - "offset": 744 - }, - "end": { - "line": 19, - "column": 17, - "offset": 751 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 19, - "column": 9, - "offset": 743 - }, - "end": { - "line": 19, - "column": 27, - "offset": 761 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 19, - "column": 9, - "offset": 743 - }, - "end": { - "line": 19, - "column": 27, - "offset": 761 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 19, - "column": 5, - "offset": 739 - }, - "end": { - "line": 19, - "column": 27, - "offset": 761 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#blockquote", - "children": [ - { - "type": "text", - "value": "Blockquotes", - "position": { - "start": { - "line": 20, - "column": 10, - "offset": 771 - }, - "end": { - "line": 20, - "column": 21, - "offset": 782 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 9, - "offset": 770 - }, - "end": { - "line": 20, - "column": 35, - "offset": 796 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 9, - "offset": 770 - }, - "end": { - "line": 20, - "column": 35, - "offset": 796 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 5, - "offset": 766 - }, - "end": { - "line": 20, - "column": 35, - "offset": 796 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#list", - "children": [ - { - "type": "text", - "value": "Lists", - "position": { - "start": { - "line": 21, - "column": 10, - "offset": 806 - }, - "end": { - "line": 21, - "column": 15, - "offset": 811 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 9, - "offset": 805 - }, - "end": { - "line": 21, - "column": 23, - "offset": 819 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 9, - "offset": 805 - }, - "end": { - "line": 21, - "column": 23, - "offset": 819 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 5, - "offset": 801 - }, - "end": { - "line": 21, - "column": 23, - "offset": 819 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#precode", - "children": [ - { - "type": "text", - "value": "Code Blocks", - "position": { - "start": { - "line": 22, - "column": 10, - "offset": 829 - }, - "end": { - "line": 22, - "column": 21, - "offset": 840 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 22, - "column": 9, - "offset": 828 - }, - "end": { - "line": 22, - "column": 32, - "offset": 851 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 22, - "column": 9, - "offset": 828 - }, - "end": { - "line": 22, - "column": 32, - "offset": 851 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 22, - "column": 5, - "offset": 824 - }, - "end": { - "line": 22, - "column": 32, - "offset": 851 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#hr", - "children": [ - { - "type": "text", - "value": "Horizontal Rules", - "position": { - "start": { - "line": 23, - "column": 10, - "offset": 861 - }, - "end": { - "line": 23, - "column": 26, - "offset": 877 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 23, - "column": 9, - "offset": 860 - }, - "end": { - "line": 23, - "column": 32, - "offset": 883 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 23, - "column": 9, - "offset": 860 - }, - "end": { - "line": 23, - "column": 32, - "offset": 883 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 23, - "column": 5, - "offset": 856 - }, - "end": { - "line": 23, - "column": 32, - "offset": 883 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 5, - "offset": 698 - }, - "end": { - "line": 23, - "column": 32, - "offset": 883 - }, - "indent": [ - 5, - 5, - 5, - 5, - 5 - ] - } - } - ], - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 665 - }, - "end": { - "line": 23, - "column": 32, - "offset": 883 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#span", - "children": [ - { - "type": "text", - "value": "Span Elements", - "position": { - "start": { - "line": 24, - "column": 6, - "offset": 889 - }, - "end": { - "line": 24, - "column": 19, - "offset": 902 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 24, - "column": 5, - "offset": 888 - }, - "end": { - "line": 24, - "column": 27, - "offset": 910 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 24, - "column": 5, - "offset": 888 - }, - "end": { - "line": 24, - "column": 27, - "offset": 910 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#link", - "children": [ - { - "type": "text", - "value": "Links", - "position": { - "start": { - "line": 25, - "column": 10, - "offset": 920 - }, - "end": { - "line": 25, - "column": 15, - "offset": 925 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 25, - "column": 9, - "offset": 919 - }, - "end": { - "line": 25, - "column": 23, - "offset": 933 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 25, - "column": 9, - "offset": 919 - }, - "end": { - "line": 25, - "column": 23, - "offset": 933 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 25, - "column": 5, - "offset": 915 - }, - "end": { - "line": 25, - "column": 23, - "offset": 933 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#em", - "children": [ - { - "type": "text", - "value": "Emphasis", - "position": { - "start": { - "line": 26, - "column": 10, - "offset": 943 - }, - "end": { - "line": 26, - "column": 18, - "offset": 951 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 26, - "column": 9, - "offset": 942 - }, - "end": { - "line": 26, - "column": 24, - "offset": 957 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 26, - "column": 9, - "offset": 942 - }, - "end": { - "line": 26, - "column": 24, - "offset": 957 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 26, - "column": 5, - "offset": 938 - }, - "end": { - "line": 26, - "column": 24, - "offset": 957 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#code", - "children": [ - { - "type": "text", - "value": "Code", - "position": { - "start": { - "line": 27, - "column": 10, - "offset": 967 - }, - "end": { - "line": 27, - "column": 14, - "offset": 971 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 27, - "column": 9, - "offset": 966 - }, - "end": { - "line": 27, - "column": 22, - "offset": 979 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 27, - "column": 9, - "offset": 966 - }, - "end": { - "line": 27, - "column": 22, - "offset": 979 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 27, - "column": 5, - "offset": 962 - }, - "end": { - "line": 27, - "column": 22, - "offset": 979 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#img", - "children": [ - { - "type": "text", - "value": "Images", - "position": { - "start": { - "line": 28, - "column": 10, - "offset": 989 - }, - "end": { - "line": 28, - "column": 16, - "offset": 995 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 28, - "column": 9, - "offset": 988 - }, - "end": { - "line": 28, - "column": 23, - "offset": 1002 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 28, - "column": 9, - "offset": 988 - }, - "end": { - "line": 28, - "column": 23, - "offset": 1002 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 28, - "column": 5, - "offset": 984 - }, - "end": { - "line": 28, - "column": 23, - "offset": 1002 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 25, - "column": 5, - "offset": 915 - }, - "end": { - "line": 28, - "column": 23, - "offset": 1002 - }, - "indent": [ - 5, - 5, - 5 - ] - } - } - ], - "position": { - "start": { - "line": 24, - "column": 1, - "offset": 884 - }, - "end": { - "line": 28, - "column": 23, - "offset": 1002 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#misc", - "children": [ - { - "type": "text", - "value": "Miscellaneous", - "position": { - "start": { - "line": 29, - "column": 6, - "offset": 1008 - }, - "end": { - "line": 29, - "column": 19, - "offset": 1021 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 29, - "column": 5, - "offset": 1007 - }, - "end": { - "line": 29, - "column": 27, - "offset": 1029 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 29, - "column": 5, - "offset": 1007 - }, - "end": { - "line": 29, - "column": 27, - "offset": 1029 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#backslash", - "children": [ - { - "type": "text", - "value": "Backslash Escapes", - "position": { - "start": { - "line": 30, - "column": 10, - "offset": 1039 - }, - "end": { - "line": 30, - "column": 27, - "offset": 1056 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 30, - "column": 9, - "offset": 1038 - }, - "end": { - "line": 30, - "column": 40, - "offset": 1069 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 30, - "column": 9, - "offset": 1038 - }, - "end": { - "line": 30, - "column": 40, - "offset": 1069 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 30, - "column": 5, - "offset": 1034 - }, - "end": { - "line": 30, - "column": 40, - "offset": 1069 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#autolink", - "children": [ - { - "type": "text", - "value": "Automatic Links", - "position": { - "start": { - "line": 31, - "column": 10, - "offset": 1079 - }, - "end": { - "line": 31, - "column": 25, - "offset": 1094 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 31, - "column": 9, - "offset": 1078 - }, - "end": { - "line": 31, - "column": 37, - "offset": 1106 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 31, - "column": 9, - "offset": 1078 - }, - "end": { - "line": 31, - "column": 37, - "offset": 1106 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 31, - "column": 5, - "offset": 1074 - }, - "end": { - "line": 31, - "column": 37, - "offset": 1106 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 30, - "column": 5, - "offset": 1034 - }, - "end": { - "line": 31, - "column": 37, - "offset": 1106 - }, - "indent": [ - 5 - ] - } - } - ], - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 1003 - }, - "end": { - "line": 31, - "column": 37, - "offset": 1106 - }, - "indent": [ - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 511 - }, - "end": { - "line": 31, - "column": 37, - "offset": 1106 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "Note:", - "position": { - "start": { - "line": 34, - "column": 3, - "offset": 1111 - }, - "end": { - "line": 34, - "column": 8, - "offset": 1116 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 34, - "column": 1, - "offset": 1109 - }, - "end": { - "line": 34, - "column": 10, - "offset": 1118 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " This document is itself written using Markdown; you\ncan ", - "position": { - "start": { - "line": 34, - "column": 10, - "offset": 1118 - }, - "end": { - "line": 35, - "column": 5, - "offset": 1175 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "linkReference", - "identifier": "src", - "label": "src", - "referenceType": "full", - "children": [ - { - "type": "text", - "value": "see the source for it by adding '.text' to the URL", - "position": { - "start": { - "line": 35, - "column": 6, - "offset": 1176 - }, - "end": { - "line": 35, - "column": 56, - "offset": 1226 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 35, - "column": 5, - "offset": 1175 - }, - "end": { - "line": 35, - "column": 62, - "offset": 1232 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 35, - "column": 62, - "offset": 1232 - }, - "end": { - "line": 35, - "column": 63, - "offset": 1233 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 34, - "column": 1, - "offset": 1109 - }, - "end": { - "line": 35, - "column": 63, - "offset": 1233 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "definition", - "identifier": "src", - "label": "src", - "title": null, - "url": "/projects/markdown/syntax.text", - "position": { - "start": { - "line": 37, - "column": 1, - "offset": 1235 - }, - "end": { - "line": 37, - "column": 40, - "offset": 1274 - }, - "indent": [] - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 39, - "column": 1, - "offset": 1276 - }, - "end": { - "line": 39, - "column": 6, - "offset": 1281 - }, - "indent": [] - } - }, - { - "type": "html", - "value": "

Overview

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

Philosophy

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

Inline HTML

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

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

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

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

Automatic Escaping for Special Characters

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

Block Elements

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

Paragraphs and Line Breaks

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

Headers

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

Blockquotes

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

Lists

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

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

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

  • \n
  • Magic

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

Code Blocks

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

This is a normal paragraph:

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

Here is an example of AppleScript:

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

Horizontal Rules

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

Span Elements

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

Links

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

This is \nan example inline link.

\n\n

This link has no\ntitle attribute.

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

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

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

Emphasis

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

Code

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

Use the printf() function.

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

There is a literal backtick (`) here.

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

A single backtick in a code span: `

\n\n

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

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

Please don't use any <blink> tags.

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

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

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

Images

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

Miscellaneous

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

Automatic Links

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

Backslash Escapes

", - "position": { - "start": { - "line": 863, - "column": 1, - "offset": 26752 - }, - "end": { - "line": 863, - "column": 42, - "offset": 26793 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Markdown allows you to use backslash escapes to generate literal\ncharacters which would otherwise have special meaning in Markdown's\nformatting syntax. For example, if you wanted to surround a word with\nliteral asterisks (instead of an HTML ", - "position": { - "start": { - "line": 865, - "column": 1, - "offset": 26795 - }, - "end": { - "line": 868, - "column": 39, - "offset": 27036 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "inlineCode", - "value": "", - "position": { - "start": { - "line": 868, - "column": 39, - "offset": 27036 - }, - "end": { - "line": 868, - "column": 45, - "offset": 27042 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " tag), you can backslashes\nbefore the asterisks, like this:", - "position": { - "start": { - "line": 868, - "column": 45, - "offset": 27042 - }, - "end": { - "line": 869, - "column": 33, - "offset": 27101 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 865, - "column": 1, - "offset": 26795 - }, - "end": { - "line": 869, - "column": 33, - "offset": 27101 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "\\*literal asterisks\\*", - "position": { - "start": { - "line": 871, - "column": 1, - "offset": 27103 - }, - "end": { - "line": 871, - "column": 26, - "offset": 27128 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Markdown provides backslash escapes for the following characters:", - "position": { - "start": { - "line": 873, - "column": 1, - "offset": 27130 - }, - "end": { - "line": 873, - "column": 66, - "offset": 27195 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 873, - "column": 1, - "offset": 27130 - }, - "end": { - "line": 873, - "column": 66, - "offset": 27195 - }, - "indent": [] - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "\\ backslash\n` backtick\n* asterisk\n_ underscore\n{} curly braces\n[] square brackets\n() parentheses\n# hash mark\n+\tplus sign\n-\tminus sign (hyphen)\n. dot\n! exclamation mark", - "position": { - "start": { - "line": 875, - "column": 1, - "offset": 27197 - }, - "end": { - "line": 886, - "column": 25, - "offset": 27423 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 888, - "column": 1, - "offset": 27425 - } - } -} diff --git a/test/fixtures/tree/markdown-documentation-syntax.json b/test/fixtures/tree/markdown-documentation-syntax.json index b468dcb91..3565f3e3d 100644 --- a/test/fixtures/tree/markdown-documentation-syntax.json +++ b/test/fixtures/tree/markdown-documentation-syntax.json @@ -18,8 +18,7 @@ "line": 1, "column": 17, "offset": 16 - }, - "indent": [] + } } } ], @@ -33,10 +32,7 @@ "line": 2, "column": 17, "offset": 33 - }, - "indent": [ - 1 - ] + } } }, { @@ -52,15 +48,7 @@ "line": 10, "column": 6, "offset": 508 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1 - ] + } } }, { @@ -95,8 +83,7 @@ "line": 13, "column": 14, "offset": 524 - }, - "indent": [] + } } } ], @@ -110,8 +97,7 @@ "line": 13, "column": 26, "offset": 536 - }, - "indent": [] + } } } ], @@ -125,8 +111,7 @@ "line": 13, "column": 26, "offset": 536 - }, - "indent": [] + } } }, { @@ -161,8 +146,7 @@ "line": 14, "column": 20, "offset": 556 - }, - "indent": [] + } } } ], @@ -176,8 +160,7 @@ "line": 14, "column": 34, "offset": 570 - }, - "indent": [] + } } } ], @@ -191,8 +174,7 @@ "line": 14, "column": 34, "offset": 570 - }, - "indent": [] + } } } ], @@ -206,8 +188,7 @@ "line": 14, "column": 34, "offset": 570 - }, - "indent": [] + } } }, { @@ -236,8 +217,7 @@ "line": 15, "column": 21, "offset": 591 - }, - "indent": [] + } } } ], @@ -251,8 +231,7 @@ "line": 15, "column": 29, "offset": 599 - }, - "indent": [] + } } } ], @@ -266,8 +245,7 @@ "line": 15, "column": 29, "offset": 599 - }, - "indent": [] + } } } ], @@ -281,8 +259,7 @@ "line": 15, "column": 29, "offset": 599 - }, - "indent": [] + } } }, { @@ -311,8 +288,7 @@ "line": 16, "column": 51, "offset": 650 - }, - "indent": [] + } } } ], @@ -326,8 +302,7 @@ "line": 16, "column": 65, "offset": 664 - }, - "indent": [] + } } } ], @@ -341,8 +316,7 @@ "line": 16, "column": 65, "offset": 664 - }, - "indent": [] + } } } ], @@ -356,8 +330,7 @@ "line": 16, "column": 65, "offset": 664 - }, - "indent": [] + } } } ], @@ -371,11 +344,7 @@ "line": 16, "column": 65, "offset": 664 - }, - "indent": [ - 5, - 5 - ] + } } } ], @@ -389,12 +358,7 @@ "line": 16, "column": 65, "offset": 664 - }, - "indent": [ - 1, - 1, - 1 - ] + } } }, { @@ -423,8 +387,7 @@ "line": 17, "column": 20, "offset": 684 - }, - "indent": [] + } } } ], @@ -438,8 +401,7 @@ "line": 17, "column": 29, "offset": 693 - }, - "indent": [] + } } } ], @@ -453,8 +415,7 @@ "line": 17, "column": 29, "offset": 693 - }, - "indent": [] + } } }, { @@ -489,8 +450,7 @@ "line": 18, "column": 36, "offset": 729 - }, - "indent": [] + } } } ], @@ -504,8 +464,7 @@ "line": 18, "column": 41, "offset": 734 - }, - "indent": [] + } } } ], @@ -519,8 +478,7 @@ "line": 18, "column": 41, "offset": 734 - }, - "indent": [] + } } } ], @@ -534,8 +492,7 @@ "line": 18, "column": 41, "offset": 734 - }, - "indent": [] + } } }, { @@ -564,8 +521,7 @@ "line": 19, "column": 17, "offset": 751 - }, - "indent": [] + } } } ], @@ -579,8 +535,7 @@ "line": 19, "column": 27, "offset": 761 - }, - "indent": [] + } } } ], @@ -594,8 +549,7 @@ "line": 19, "column": 27, "offset": 761 - }, - "indent": [] + } } } ], @@ -609,8 +563,7 @@ "line": 19, "column": 27, "offset": 761 - }, - "indent": [] + } } }, { @@ -639,8 +592,7 @@ "line": 20, "column": 21, "offset": 782 - }, - "indent": [] + } } } ], @@ -654,8 +606,7 @@ "line": 20, "column": 35, "offset": 796 - }, - "indent": [] + } } } ], @@ -669,8 +620,7 @@ "line": 20, "column": 35, "offset": 796 - }, - "indent": [] + } } } ], @@ -684,8 +634,7 @@ "line": 20, "column": 35, "offset": 796 - }, - "indent": [] + } } }, { @@ -714,8 +663,7 @@ "line": 21, "column": 15, "offset": 811 - }, - "indent": [] + } } } ], @@ -729,8 +677,7 @@ "line": 21, "column": 23, "offset": 819 - }, - "indent": [] + } } } ], @@ -744,8 +691,7 @@ "line": 21, "column": 23, "offset": 819 - }, - "indent": [] + } } } ], @@ -759,8 +705,7 @@ "line": 21, "column": 23, "offset": 819 - }, - "indent": [] + } } }, { @@ -789,8 +734,7 @@ "line": 22, "column": 21, "offset": 840 - }, - "indent": [] + } } } ], @@ -804,8 +748,7 @@ "line": 22, "column": 32, "offset": 851 - }, - "indent": [] + } } } ], @@ -819,8 +762,7 @@ "line": 22, "column": 32, "offset": 851 - }, - "indent": [] + } } } ], @@ -834,8 +776,7 @@ "line": 22, "column": 32, "offset": 851 - }, - "indent": [] + } } }, { @@ -864,8 +805,7 @@ "line": 23, "column": 26, "offset": 877 - }, - "indent": [] + } } } ], @@ -879,8 +819,7 @@ "line": 23, "column": 32, "offset": 883 - }, - "indent": [] + } } } ], @@ -894,8 +833,7 @@ "line": 23, "column": 32, "offset": 883 - }, - "indent": [] + } } } ], @@ -909,8 +847,7 @@ "line": 23, "column": 32, "offset": 883 - }, - "indent": [] + } } } ], @@ -924,14 +861,7 @@ "line": 23, "column": 32, "offset": 883 - }, - "indent": [ - 5, - 5, - 5, - 5, - 5 - ] + } } } ], @@ -945,15 +875,7 @@ "line": 23, "column": 32, "offset": 883 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1 - ] + } } }, { @@ -982,8 +904,7 @@ "line": 24, "column": 19, "offset": 902 - }, - "indent": [] + } } } ], @@ -997,8 +918,7 @@ "line": 24, "column": 27, "offset": 910 - }, - "indent": [] + } } } ], @@ -1012,8 +932,7 @@ "line": 24, "column": 27, "offset": 910 - }, - "indent": [] + } } }, { @@ -1048,8 +967,7 @@ "line": 25, "column": 15, "offset": 925 - }, - "indent": [] + } } } ], @@ -1063,8 +981,7 @@ "line": 25, "column": 23, "offset": 933 - }, - "indent": [] + } } } ], @@ -1078,8 +995,7 @@ "line": 25, "column": 23, "offset": 933 - }, - "indent": [] + } } } ], @@ -1093,8 +1009,7 @@ "line": 25, "column": 23, "offset": 933 - }, - "indent": [] + } } }, { @@ -1123,8 +1038,7 @@ "line": 26, "column": 18, "offset": 951 - }, - "indent": [] + } } } ], @@ -1138,8 +1052,7 @@ "line": 26, "column": 24, "offset": 957 - }, - "indent": [] + } } } ], @@ -1153,8 +1066,7 @@ "line": 26, "column": 24, "offset": 957 - }, - "indent": [] + } } } ], @@ -1168,8 +1080,7 @@ "line": 26, "column": 24, "offset": 957 - }, - "indent": [] + } } }, { @@ -1198,8 +1109,7 @@ "line": 27, "column": 14, "offset": 971 - }, - "indent": [] + } } } ], @@ -1213,8 +1123,7 @@ "line": 27, "column": 22, "offset": 979 - }, - "indent": [] + } } } ], @@ -1228,8 +1137,7 @@ "line": 27, "column": 22, "offset": 979 - }, - "indent": [] + } } } ], @@ -1243,8 +1151,7 @@ "line": 27, "column": 22, "offset": 979 - }, - "indent": [] + } } }, { @@ -1273,8 +1180,7 @@ "line": 28, "column": 16, "offset": 995 - }, - "indent": [] + } } } ], @@ -1288,8 +1194,7 @@ "line": 28, "column": 23, "offset": 1002 - }, - "indent": [] + } } } ], @@ -1303,8 +1208,7 @@ "line": 28, "column": 23, "offset": 1002 - }, - "indent": [] + } } } ], @@ -1318,8 +1222,7 @@ "line": 28, "column": 23, "offset": 1002 - }, - "indent": [] + } } } ], @@ -1333,12 +1236,7 @@ "line": 28, "column": 23, "offset": 1002 - }, - "indent": [ - 5, - 5, - 5 - ] + } } } ], @@ -1352,13 +1250,7 @@ "line": 28, "column": 23, "offset": 1002 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] + } } }, { @@ -1387,8 +1279,7 @@ "line": 29, "column": 19, "offset": 1021 - }, - "indent": [] + } } } ], @@ -1402,8 +1293,7 @@ "line": 29, "column": 27, "offset": 1029 - }, - "indent": [] + } } } ], @@ -1417,8 +1307,7 @@ "line": 29, "column": 27, "offset": 1029 - }, - "indent": [] + } } }, { @@ -1453,8 +1342,7 @@ "line": 30, "column": 27, "offset": 1056 - }, - "indent": [] + } } } ], @@ -1468,8 +1356,7 @@ "line": 30, "column": 40, "offset": 1069 - }, - "indent": [] + } } } ], @@ -1483,8 +1370,7 @@ "line": 30, "column": 40, "offset": 1069 - }, - "indent": [] + } } } ], @@ -1498,8 +1384,7 @@ "line": 30, "column": 40, "offset": 1069 - }, - "indent": [] + } } }, { @@ -1528,8 +1413,7 @@ "line": 31, "column": 25, "offset": 1094 - }, - "indent": [] + } } } ], @@ -1543,8 +1427,7 @@ "line": 31, "column": 37, "offset": 1106 - }, - "indent": [] + } } } ], @@ -1558,8 +1441,7 @@ "line": 31, "column": 37, "offset": 1106 - }, - "indent": [] + } } } ], @@ -1573,8 +1455,7 @@ "line": 31, "column": 37, "offset": 1106 - }, - "indent": [] + } } } ], @@ -1588,10 +1469,7 @@ "line": 31, "column": 37, "offset": 1106 - }, - "indent": [ - 5 - ] + } } } ], @@ -1605,11 +1483,7 @@ "line": 31, "column": 37, "offset": 1106 - }, - "indent": [ - 1, - 1 - ] + } } } ], @@ -1623,27 +1497,7 @@ "line": 31, "column": 37, "offset": 1106 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] + } } }, { @@ -1665,8 +1519,7 @@ "line": 34, "column": 8, "offset": 1116 - }, - "indent": [] + } } } ], @@ -1680,8 +1533,7 @@ "line": 34, "column": 10, "offset": 1118 - }, - "indent": [] + } } }, { @@ -1697,17 +1549,11 @@ "line": 35, "column": 5, "offset": 1175 - }, - "indent": [ - 1 - ] + } } }, { "type": "linkReference", - "identifier": "src", - "label": "src", - "referenceType": "full", "children": [ { "type": "text", @@ -1722,8 +1568,7 @@ "line": 35, "column": 56, "offset": 1226 - }, - "indent": [] + } } } ], @@ -1737,9 +1582,11 @@ "line": 35, "column": 62, "offset": 1232 - }, - "indent": [] - } + } + }, + "identifier": "src", + "label": "src", + "referenceType": "full" }, { "type": "text", @@ -1754,8 +1601,7 @@ "line": 35, "column": 63, "offset": 1233 - }, - "indent": [] + } } } ], @@ -1769,10 +1615,7 @@ "line": 35, "column": 63, "offset": 1233 - }, - "indent": [ - 1 - ] + } } }, { @@ -1784,15 +1627,14 @@ "position": { "start": { "line": 37, - "column": 1, - "offset": 1235 + "column": 3, + "offset": 1237 }, "end": { "line": 37, "column": 40, "offset": 1274 - }, - "indent": [] + } } }, { @@ -1807,8 +1649,7 @@ "line": 39, "column": 6, "offset": 1281 - }, - "indent": [] + } } }, { @@ -1824,8 +1665,7 @@ "line": 41, "column": 32, "offset": 1314 - }, - "indent": [] + } } }, { @@ -1841,8 +1681,7 @@ "line": 43, "column": 36, "offset": 1351 - }, - "indent": [] + } } }, { @@ -1861,8 +1700,7 @@ "line": 45, "column": 77, "offset": 1429 - }, - "indent": [] + } } } ], @@ -1876,8 +1714,7 @@ "line": 45, "column": 77, "offset": 1429 - }, - "indent": [] + } } }, { @@ -1885,7 +1722,7 @@ "children": [ { "type": "text", - "value": "Readability, however, is emphasized above all else. A Markdown-formatted\ndocument should be publishable as-is, as plain text, without looking\nlike it's been marked up with tags or formatting instructions. While\nMarkdown's syntax has been influenced by several existing text-to-HTML\nfilters -- including ", + "value": "Readability, however, is emphasized above all else. A Markdown-formatted\ndocument should be publishable as-is, as plain text, without looking\nlike it's been marked up with tags or formatting instructions. While\nMarkdown's syntax has been influenced by several existing text-to-HTML\nfilters -- including [Setext] ", "position": { "start": { "line": 47, @@ -1894,58 +1731,50 @@ }, "end": { "line": 51, - "column": 22, - "offset": 1734 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] + "column": 31, + "offset": 1743 + } } }, { "type": "linkReference", - "identifier": "1", - "label": "1", - "referenceType": "full", "children": [ { "type": "text", - "value": "Setext", + "value": "1", "position": { "start": { "line": 51, - "column": 23, - "offset": 1735 + "column": 32, + "offset": 1744 }, "end": { "line": 51, - "column": 29, - "offset": 1741 - }, - "indent": [] + "column": 33, + "offset": 1745 + } } } ], "position": { "start": { "line": 51, - "column": 22, - "offset": 1734 + "column": 31, + "offset": 1743 }, "end": { "line": 51, "column": 34, "offset": 1746 - }, - "indent": [] - } + } + }, + "identifier": "1", + "label": "1", + "referenceType": "shortcut" }, { "type": "text", - "value": ", ", + "value": ", [atx] ", "position": { "start": { "line": 51, @@ -1954,53 +1783,50 @@ }, "end": { "line": 51, - "column": 36, - "offset": 1748 - }, - "indent": [] + "column": 42, + "offset": 1754 + } } }, { "type": "linkReference", - "identifier": "2", - "label": "2", - "referenceType": "full", "children": [ { "type": "text", - "value": "atx", + "value": "2", "position": { "start": { "line": 51, - "column": 37, - "offset": 1749 + "column": 43, + "offset": 1755 }, "end": { "line": 51, - "column": 40, - "offset": 1752 - }, - "indent": [] + "column": 44, + "offset": 1756 + } } } ], "position": { "start": { "line": 51, - "column": 36, - "offset": 1748 + "column": 42, + "offset": 1754 }, "end": { "line": 51, "column": 45, "offset": 1757 - }, - "indent": [] - } + } + }, + "identifier": "2", + "label": "2", + "referenceType": "shortcut" }, { "type": "text", - "value": ", ", + "value": ", [Textile] ", "position": { "start": { "line": 51, @@ -2009,53 +1835,50 @@ }, "end": { "line": 51, - "column": 47, - "offset": 1759 - }, - "indent": [] + "column": 57, + "offset": 1769 + } } }, { "type": "linkReference", - "identifier": "3", - "label": "3", - "referenceType": "full", "children": [ { "type": "text", - "value": "Textile", + "value": "3", "position": { "start": { "line": 51, - "column": 48, - "offset": 1760 + "column": 58, + "offset": 1770 }, "end": { "line": 51, - "column": 55, - "offset": 1767 - }, - "indent": [] + "column": 59, + "offset": 1771 + } } } ], "position": { "start": { "line": 51, - "column": 47, - "offset": 1759 + "column": 57, + "offset": 1769 }, "end": { "line": 51, "column": 60, "offset": 1772 - }, - "indent": [] - } + } + }, + "identifier": "3", + "label": "3", + "referenceType": "shortcut" }, { "type": "text", - "value": ", ", + "value": ", [reStructuredText] ", "position": { "start": { "line": 51, @@ -2064,53 +1887,50 @@ }, "end": { "line": 51, - "column": 62, - "offset": 1774 - }, - "indent": [] + "column": 81, + "offset": 1793 + } } }, { "type": "linkReference", - "identifier": "4", - "label": "4", - "referenceType": "full", "children": [ { "type": "text", - "value": "reStructuredText", + "value": "4", "position": { "start": { "line": 51, - "column": 63, - "offset": 1775 + "column": 82, + "offset": 1794 }, "end": { "line": 51, - "column": 79, - "offset": 1791 - }, - "indent": [] + "column": 83, + "offset": 1795 + } } } ], "position": { "start": { "line": 51, - "column": 62, - "offset": 1774 + "column": 81, + "offset": 1793 }, "end": { "line": 51, "column": 84, "offset": 1796 - }, - "indent": [] - } + } + }, + "identifier": "4", + "label": "4", + "referenceType": "shortcut" }, { "type": "text", - "value": ",\n", + "value": ",\n[Grutatext] ", "position": { "start": { "line": 51, @@ -2119,55 +1939,50 @@ }, "end": { "line": 52, - "column": 1, - "offset": 1798 - }, - "indent": [ - 1 - ] + "column": 13, + "offset": 1810 + } } }, { "type": "linkReference", - "identifier": "5", - "label": "5", - "referenceType": "full", "children": [ { "type": "text", - "value": "Grutatext", + "value": "5", "position": { "start": { "line": 52, - "column": 2, - "offset": 1799 + "column": 14, + "offset": 1811 }, "end": { "line": 52, - "column": 11, - "offset": 1808 - }, - "indent": [] + "column": 15, + "offset": 1812 + } } } ], "position": { "start": { "line": 52, - "column": 1, - "offset": 1798 + "column": 13, + "offset": 1810 }, "end": { "line": 52, "column": 16, "offset": 1813 - }, - "indent": [] - } + } + }, + "identifier": "5", + "label": "5", + "referenceType": "shortcut" }, { "type": "text", - "value": ", and ", + "value": ", and [EtText] ", "position": { "start": { "line": 52, @@ -2176,49 +1991,46 @@ }, "end": { "line": 52, - "column": 22, - "offset": 1819 - }, - "indent": [] + "column": 31, + "offset": 1828 + } } }, { "type": "linkReference", - "identifier": "6", - "label": "6", - "referenceType": "full", "children": [ { "type": "text", - "value": "EtText", + "value": "6", "position": { "start": { "line": 52, - "column": 23, - "offset": 1820 + "column": 32, + "offset": 1829 }, "end": { "line": 52, - "column": 29, - "offset": 1826 - }, - "indent": [] + "column": 33, + "offset": 1830 + } } } ], "position": { "start": { "line": 52, - "column": 22, - "offset": 1819 + "column": 31, + "offset": 1828 }, "end": { "line": 52, "column": 34, "offset": 1831 - }, - "indent": [] - } + } + }, + "identifier": "6", + "label": "6", + "referenceType": "shortcut" }, { "type": "text", @@ -2233,10 +2045,7 @@ "line": 53, "column": 69, "offset": 1932 - }, - "indent": [ - 1 - ] + } } } ], @@ -2250,15 +2059,7 @@ "line": 53, "column": 69, "offset": 1932 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1 - ] + } } }, { @@ -2270,15 +2071,14 @@ "position": { "start": { "line": 55, - "column": 1, - "offset": 1934 + "column": 3, + "offset": 1936 }, "end": { "line": 55, "column": 58, "offset": 1991 - }, - "indent": [] + } } }, { @@ -2290,15 +2090,14 @@ "position": { "start": { "line": 56, - "column": 1, - "offset": 1992 + "column": 3, + "offset": 1994 }, "end": { "line": 56, "column": 40, "offset": 2031 - }, - "indent": [] + } } }, { @@ -2310,15 +2109,14 @@ "position": { "start": { "line": 57, - "column": 1, - "offset": 2032 + "column": 3, + "offset": 2034 }, "end": { "line": 57, "column": 41, "offset": 2072 - }, - "indent": [] + } } }, { @@ -2330,15 +2128,14 @@ "position": { "start": { "line": 58, - "column": 1, - "offset": 2073 + "column": 3, + "offset": 2075 }, "end": { "line": 58, "column": 48, "offset": 2120 - }, - "indent": [] + } } }, { @@ -2350,15 +2147,14 @@ "position": { "start": { "line": 59, - "column": 1, - "offset": 2121 + "column": 3, + "offset": 2123 }, "end": { "line": 59, "column": 54, "offset": 2174 - }, - "indent": [] + } } }, { @@ -2370,15 +2166,14 @@ "position": { "start": { "line": 60, - "column": 1, - "offset": 2175 + "column": 3, + "offset": 2177 }, "end": { "line": 60, "column": 36, "offset": 2210 - }, - "indent": [] + } } }, { @@ -2386,94 +2181,18 @@ "children": [ { "type": "text", - "value": "To this end, Markdown's syntax is comprised entirely of punctuation\ncharacters, which punctuation characters have been carefully chosen so\nas to look like what they mean. E.g., asterisks around a word actually\nlook like ", + "value": "To this end, Markdown's syntax is comprised entirely of punctuation\ncharacters, which punctuation characters have been carefully chosen so\nas to look like what they mean. E.g., asterisks around a word actually\nlook like *emphasis*. Markdown lists look like, well, lists. Even\nblockquotes look like quoted passages of text, assuming you've ever\nused email.", "position": { "start": { "line": 62, "column": 1, "offset": 2212 }, - "end": { - "line": 65, - "column": 11, - "offset": 2432 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "text", - "value": "*", - "position": { - "start": { - "line": 65, - "column": 11, - "offset": 2432 - }, - "end": { - "line": 65, - "column": 13, - "offset": 2434 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "emphasis", - "position": { - "start": { - "line": 65, - "column": 13, - "offset": 2434 - }, - "end": { - "line": 65, - "column": 21, - "offset": 2442 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "*", - "position": { - "start": { - "line": 65, - "column": 21, - "offset": 2442 - }, - "end": { - "line": 65, - "column": 23, - "offset": 2444 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ". Markdown lists look like, well, lists. Even\nblockquotes look like quoted passages of text, assuming you've ever\nused email.", - "position": { - "start": { - "line": 65, - "column": 23, - "offset": 2444 - }, "end": { "line": 67, "column": 12, "offset": 2569 - }, - "indent": [ - 1, - 1 - ] + } } } ], @@ -2487,14 +2206,7 @@ "line": 67, "column": 12, "offset": 2569 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1 - ] + } } }, { @@ -2510,8 +2222,7 @@ "line": 71, "column": 31, "offset": 2603 - }, - "indent": [] + } } }, { @@ -2530,10 +2241,7 @@ "line": 74, "column": 12, "offset": 2679 - }, - "indent": [ - 1 - ] + } } }, { @@ -2552,8 +2260,7 @@ "line": 74, "column": 20, "offset": 2687 - }, - "indent": [] + } } } ], @@ -2567,8 +2274,7 @@ "line": 74, "column": 21, "offset": 2688 - }, - "indent": [] + } } }, { @@ -2584,8 +2290,7 @@ "line": 74, "column": 34, "offset": 2701 - }, - "indent": [] + } } } ], @@ -2599,10 +2304,7 @@ "line": 74, "column": 34, "offset": 2701 - }, - "indent": [ - 1 - ] + } } }, { @@ -2621,11 +2323,7 @@ "line": 78, "column": 24, "offset": 2858 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -2644,8 +2342,7 @@ "line": 78, "column": 28, "offset": 2862 - }, - "indent": [] + } } } ], @@ -2659,8 +2356,7 @@ "line": 78, "column": 29, "offset": 2863 - }, - "indent": [] + } } }, { @@ -2676,12 +2372,7 @@ "line": 81, "column": 23, "offset": 3061 - }, - "indent": [ - 1, - 1, - 1 - ] + } } }, { @@ -2700,8 +2391,7 @@ "line": 81, "column": 34, "offset": 3072 - }, - "indent": [] + } } } ], @@ -2715,8 +2405,7 @@ "line": 81, "column": 35, "offset": 3073 - }, - "indent": [] + } } }, { @@ -2732,8 +2421,7 @@ "line": 81, "column": 58, "offset": 3096 - }, - "indent": [] + } } }, { @@ -2752,8 +2440,7 @@ "line": 81, "column": 66, "offset": 3104 - }, - "indent": [] + } } } ], @@ -2767,8 +2454,7 @@ "line": 81, "column": 67, "offset": 3105 - }, - "indent": [] + } } }, { @@ -2784,11 +2470,7 @@ "line": 83, "column": 31, "offset": 3206 - }, - "indent": [ - 1, - 1 - ] + } } } ], @@ -2802,16 +2484,7 @@ "line": 83, "column": 31, "offset": 3206 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] + } } }, { @@ -2830,12 +2503,7 @@ "line": 88, "column": 10, "offset": 3416 - }, - "indent": [ - 1, - 1, - 1 - ] + } } } ], @@ -2849,12 +2517,7 @@ "line": 88, "column": 10, "offset": 3416 - }, - "indent": [ - 1, - 1, - 1 - ] + } } }, { @@ -2873,8 +2536,7 @@ "line": 90, "column": 66, "offset": 3483 - }, - "indent": [] + } } }, { @@ -2890,8 +2552,7 @@ "line": 90, "column": 73, "offset": 3490 - }, - "indent": [] + } } }, { @@ -2907,10 +2568,7 @@ "line": 91, "column": 1, "offset": 3492 - }, - "indent": [ - 1 - ] + } } }, { @@ -2926,8 +2584,7 @@ "line": 91, "column": 10, "offset": 3501 - }, - "indent": [] + } } }, { @@ -2943,8 +2600,7 @@ "line": 91, "column": 12, "offset": 3503 - }, - "indent": [] + } } }, { @@ -2960,8 +2616,7 @@ "line": 91, "column": 19, "offset": 3510 - }, - "indent": [] + } } }, { @@ -2977,8 +2632,7 @@ "line": 91, "column": 21, "offset": 3512 - }, - "indent": [] + } } }, { @@ -2994,8 +2648,7 @@ "line": 91, "column": 26, "offset": 3517 - }, - "indent": [] + } } }, { @@ -3011,12 +2664,7 @@ "line": 94, "column": 25, "offset": 3723 - }, - "indent": [ - 1, - 1, - 1 - ] + } } }, { @@ -3032,8 +2680,7 @@ "line": 94, "column": 30, "offset": 3728 - }, - "indent": [] + } } }, { @@ -3049,8 +2696,7 @@ "line": 94, "column": 65, "offset": 3763 - }, - "indent": [] + } } } ], @@ -3064,13 +2710,7 @@ "line": 94, "column": 65, "offset": 3763 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] + } } }, { @@ -3089,8 +2729,7 @@ "line": 96, "column": 57, "offset": 3821 - }, - "indent": [] + } } } ], @@ -3104,8 +2743,7 @@ "line": 96, "column": 57, "offset": 3821 - }, - "indent": [] + } } }, { @@ -3123,17 +2761,7 @@ "line": 106, "column": 39, "offset": 3973 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] + } } }, { @@ -3152,10 +2780,7 @@ "line": 109, "column": 47, "offset": 4094 - }, - "indent": [ - 1 - ] + } } }, { @@ -3171,8 +2796,7 @@ "line": 109, "column": 59, "offset": 4106 - }, - "indent": [] + } } }, { @@ -3188,10 +2812,7 @@ "line": 110, "column": 12, "offset": 4128 - }, - "indent": [ - 1 - ] + } } } ], @@ -3205,11 +2826,7 @@ "line": 110, "column": 12, "offset": 4128 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -3228,8 +2845,7 @@ "line": 112, "column": 30, "offset": 4159 - }, - "indent": [] + } } }, { @@ -3245,8 +2861,7 @@ "line": 112, "column": 38, "offset": 4167 - }, - "indent": [] + } } }, { @@ -3262,8 +2877,7 @@ "line": 112, "column": 40, "offset": 4169 - }, - "indent": [] + } } }, { @@ -3279,8 +2893,7 @@ "line": 112, "column": 48, "offset": 4177 - }, - "indent": [] + } } }, { @@ -3296,8 +2909,7 @@ "line": 112, "column": 53, "offset": 4182 - }, - "indent": [] + } } }, { @@ -3313,8 +2925,7 @@ "line": 112, "column": 60, "offset": 4189 - }, - "indent": [] + } } }, { @@ -3330,12 +2941,7 @@ "line": 115, "column": 26, "offset": 4366 - }, - "indent": [ - 1, - 1, - 1 - ] + } } }, { @@ -3351,8 +2957,7 @@ "line": 115, "column": 31, "offset": 4371 - }, - "indent": [] + } } }, { @@ -3368,8 +2973,7 @@ "line": 115, "column": 35, "offset": 4375 - }, - "indent": [] + } } }, { @@ -3385,8 +2989,7 @@ "line": 115, "column": 42, "offset": 4382 - }, - "indent": [] + } } }, { @@ -3402,10 +3005,7 @@ "line": 116, "column": 38, "offset": 4447 - }, - "indent": [ - 1 - ] + } } } ], @@ -3419,13 +3019,7 @@ "line": 116, "column": 38, "offset": 4447 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] + } } }, { @@ -3444,8 +3038,7 @@ "line": 118, "column": 47, "offset": 4495 - }, - "indent": [] + } } }, { @@ -3464,8 +3057,7 @@ "line": 118, "column": 50, "offset": 4498 - }, - "indent": [] + } } } ], @@ -3479,8 +3071,7 @@ "line": 118, "column": 51, "offset": 4499 - }, - "indent": [] + } } }, { @@ -3496,10 +3087,7 @@ "line": 119, "column": 17, "offset": 4533 - }, - "indent": [ - 1 - ] + } } } ], @@ -3513,10 +3101,7 @@ "line": 119, "column": 17, "offset": 4533 - }, - "indent": [ - 1 - ] + } } }, { @@ -3532,8 +3117,7 @@ "line": 122, "column": 67, "offset": 4602 - }, - "indent": [] + } } }, { @@ -3552,8 +3136,7 @@ "line": 124, "column": 66, "offset": 4669 - }, - "indent": [] + } } }, { @@ -3569,8 +3152,7 @@ "line": 124, "column": 69, "offset": 4672 - }, - "indent": [] + } } }, { @@ -3586,10 +3168,7 @@ "line": 125, "column": 5, "offset": 4677 - }, - "indent": [ - 1 - ] + } } }, { @@ -3605,8 +3184,7 @@ "line": 125, "column": 8, "offset": 4680 - }, - "indent": [] + } } }, { @@ -3622,11 +3200,7 @@ "line": 127, "column": 52, "offset": 4857 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -3642,8 +3216,7 @@ "line": 127, "column": 58, "offset": 4863 - }, - "indent": [] + } } }, { @@ -3659,10 +3232,7 @@ "line": 128, "column": 1, "offset": 4869 - }, - "indent": [ - 1 - ] + } } }, { @@ -3678,8 +3248,7 @@ "line": 128, "column": 8, "offset": 4876 - }, - "indent": [] + } } }, { @@ -3695,8 +3264,7 @@ "line": 128, "column": 9, "offset": 4877 - }, - "indent": [] + } } } ], @@ -3710,13 +3278,7 @@ "line": 128, "column": 9, "offset": 4877 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] + } } }, { @@ -3735,10 +3297,7 @@ "line": 131, "column": 40, "offset": 4990 - }, - "indent": [ - 1 - ] + } } }, { @@ -3754,8 +3313,7 @@ "line": 131, "column": 50, "offset": 5000 - }, - "indent": [] + } } }, { @@ -3771,10 +3329,7 @@ "line": 132, "column": 61, "offset": 5080 - }, - "indent": [ - 1 - ] + } } } ], @@ -3788,11 +3343,7 @@ "line": 132, "column": 61, "offset": 5080 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -3810,8 +3361,7 @@ "line": 134, "column": 56, "offset": 5137 - }, - "indent": [] + } } }, { @@ -3830,8 +3380,7 @@ "line": 136, "column": 31, "offset": 5169 - }, - "indent": [] + } } } ], @@ -3845,8 +3394,7 @@ "line": 136, "column": 31, "offset": 5169 - }, - "indent": [] + } } }, { @@ -3864,8 +3412,7 @@ "line": 138, "column": 60, "offset": 5230 - }, - "indent": [] + } } }, { @@ -3884,8 +3431,7 @@ "line": 140, "column": 20, "offset": 5251 - }, - "indent": [] + } } }, { @@ -3901,8 +3447,7 @@ "line": 140, "column": 26, "offset": 5257 - }, - "indent": [] + } } }, { @@ -3918,11 +3463,7 @@ "line": 142, "column": 46, "offset": 5420 - }, - "indent": [ - 1, - 1 - ] + } } } ], @@ -3936,11 +3477,7 @@ "line": 142, "column": 46, "offset": 5420 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -3959,12 +3496,7 @@ "line": 147, "column": 6, "offset": 5638 - }, - "indent": [ - 1, - 1, - 1 - ] + } } }, { @@ -3980,8 +3512,7 @@ "line": 147, "column": 13, "offset": 5645 - }, - "indent": [] + } } }, { @@ -3997,8 +3528,7 @@ "line": 147, "column": 14, "offset": 5646 - }, - "indent": [] + } } } ], @@ -4012,12 +3542,7 @@ "line": 147, "column": 14, "offset": 5646 - }, - "indent": [ - 1, - 1, - 1 - ] + } } }, { @@ -4036,8 +3561,7 @@ "line": 149, "column": 78, "offset": 5725 - }, - "indent": [] + } } } ], @@ -4051,8 +3575,7 @@ "line": 149, "column": 78, "offset": 5725 - }, - "indent": [] + } } }, { @@ -4070,8 +3593,7 @@ "line": 151, "column": 11, "offset": 5737 - }, - "indent": [] + } } }, { @@ -4090,8 +3612,7 @@ "line": 153, "column": 52, "offset": 5790 - }, - "indent": [] + } } } ], @@ -4105,8 +3626,7 @@ "line": 153, "column": 52, "offset": 5790 - }, - "indent": [] + } } }, { @@ -4124,8 +3644,7 @@ "line": 155, "column": 9, "offset": 5800 - }, - "indent": [] + } } }, { @@ -4144,8 +3663,7 @@ "line": 157, "column": 31, "offset": 5832 - }, - "indent": [] + } } } ], @@ -4159,8 +3677,7 @@ "line": 157, "column": 31, "offset": 5832 - }, - "indent": [] + } } }, { @@ -4178,8 +3695,7 @@ "line": 159, "column": 13, "offset": 5846 - }, - "indent": [] + } } }, { @@ -4198,8 +3714,7 @@ "line": 161, "column": 38, "offset": 5885 - }, - "indent": [] + } } }, { @@ -4220,8 +3735,7 @@ "line": 161, "column": 50, "offset": 5897 - }, - "indent": [] + } } } ], @@ -4235,8 +3749,7 @@ "line": 161, "column": 58, "offset": 5905 - }, - "indent": [] + } } }, { @@ -4252,11 +3765,7 @@ "line": 163, "column": 24, "offset": 6013 - }, - "indent": [ - 1, - 1 - ] + } } } ], @@ -4270,11 +3779,7 @@ "line": 163, "column": 24, "offset": 6013 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -4292,8 +3797,7 @@ "line": 165, "column": 10, "offset": 6024 - }, - "indent": [] + } } }, { @@ -4312,8 +3816,7 @@ "line": 167, "column": 31, "offset": 6056 - }, - "indent": [] + } } } ], @@ -4327,8 +3830,7 @@ "line": 167, "column": 31, "offset": 6056 - }, - "indent": [] + } } }, { @@ -4346,8 +3848,7 @@ "line": 169, "column": 13, "offset": 6070 - }, - "indent": [] + } } }, { @@ -4366,10 +3867,7 @@ "line": 172, "column": 16, "offset": 6154 - }, - "indent": [ - 1 - ] + } } }, { @@ -4388,8 +3886,7 @@ "line": 172, "column": 23, "offset": 6161 - }, - "indent": [] + } } } ], @@ -4403,8 +3900,7 @@ "line": 172, "column": 24, "offset": 6162 - }, - "indent": [] + } } }, { @@ -4420,11 +3916,7 @@ "line": 174, "column": 69, "offset": 6351 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -4440,8 +3932,7 @@ "line": 174, "column": 72, "offset": 6354 - }, - "indent": [] + } } }, { @@ -4457,10 +3948,7 @@ "line": 175, "column": 5, "offset": 6359 - }, - "indent": [ - 1 - ] + } } }, { @@ -4476,8 +3964,7 @@ "line": 175, "column": 8, "offset": 6362 - }, - "indent": [] + } } }, { @@ -4493,8 +3980,7 @@ "line": 175, "column": 51, "offset": 6405 - }, - "indent": [] + } } } ], @@ -4508,13 +3994,7 @@ "line": 175, "column": 51, "offset": 6405 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] + } } }, { @@ -4529,8 +4009,7 @@ "line": 178, "column": 6, "offset": 6413 - }, - "indent": [] + } } }, { @@ -4546,8 +4025,7 @@ "line": 181, "column": 35, "offset": 6450 - }, - "indent": [] + } } }, { @@ -4563,8 +4041,7 @@ "line": 183, "column": 43, "offset": 6494 - }, - "indent": [] + } } }, { @@ -4583,12 +4060,7 @@ "line": 188, "column": 70, "offset": 6781 - }, - "indent": [ - 1, - 1, - 1 - ] + } } } ], @@ -4602,12 +4074,7 @@ "line": 188, "column": 70, "offset": 6781 - }, - "indent": [ - 1, - 1, - 1 - ] + } } }, { @@ -4626,13 +4093,7 @@ "line": 194, "column": 33, "offset": 7097 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] + } } }, { @@ -4648,8 +4109,7 @@ "line": 194, "column": 41, "offset": 7105 - }, - "indent": [] + } } }, { @@ -4665,8 +4125,7 @@ "line": 194, "column": 46, "offset": 7110 - }, - "indent": [] + } } } ], @@ -4680,13 +4139,7 @@ "line": 194, "column": 46, "offset": 7110 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] + } } }, { @@ -4705,8 +4158,7 @@ "line": 196, "column": 10, "offset": 7121 - }, - "indent": [] + } } }, { @@ -4725,8 +4177,7 @@ "line": 196, "column": 13, "offset": 7124 - }, - "indent": [] + } } } ], @@ -4740,8 +4191,7 @@ "line": 196, "column": 14, "offset": 7125 - }, - "indent": [] + } } }, { @@ -4757,8 +4207,7 @@ "line": 196, "column": 32, "offset": 7143 - }, - "indent": [] + } } }, { @@ -4774,8 +4223,7 @@ "line": 196, "column": 40, "offset": 7151 - }, - "indent": [] + } } }, { @@ -4791,10 +4239,7 @@ "line": 197, "column": 54, "offset": 7235 - }, - "indent": [ - 1 - ] + } } } ], @@ -4808,10 +4253,7 @@ "line": 197, "column": 54, "offset": 7235 - }, - "indent": [ - 1 - ] + } } }, { @@ -4830,8 +4272,7 @@ "line": 199, "column": 47, "offset": 7283 - }, - "indent": [] + } } }, { @@ -4847,8 +4288,7 @@ "line": 199, "column": 55, "offset": 7291 - }, - "indent": [] + } } }, { @@ -4864,10 +4304,7 @@ "line": 200, "column": 24, "offset": 7333 - }, - "indent": [ - 1 - ] + } } }, { @@ -4883,8 +4320,7 @@ "line": 200, "column": 32, "offset": 7341 - }, - "indent": [] + } } }, { @@ -4900,17 +4336,11 @@ "line": 201, "column": 24, "offset": 7399 - }, - "indent": [ - 1 - ] + } } }, { "type": "linkReference", - "identifier": "bq", - "label": "bq", - "referenceType": "full", "children": [ { "type": "text", @@ -4925,8 +4355,7 @@ "line": 201, "column": 37, "offset": 7412 - }, - "indent": [] + } } } ], @@ -4940,9 +4369,11 @@ "line": 201, "column": 42, "offset": 7417 - }, - "indent": [] - } + } + }, + "identifier": "bq", + "label": "bq", + "referenceType": "full" }, { "type": "text", @@ -4957,15 +4388,11 @@ "line": 201, "column": 63, "offset": 7438 - }, - "indent": [] + } } }, { "type": "linkReference", - "identifier": "l", - "label": "l", - "referenceType": "full", "children": [ { "type": "text", @@ -4980,8 +4407,7 @@ "line": 201, "column": 74, "offset": 7449 - }, - "indent": [] + } } } ], @@ -4995,9 +4421,11 @@ "line": 201, "column": 78, "offset": 7453 - }, - "indent": [] - } + } + }, + "identifier": "l", + "label": "l", + "referenceType": "full" }, { "type": "text", @@ -5012,10 +4440,7 @@ "line": 202, "column": 71, "offset": 7524 - }, - "indent": [ - 1 - ] + } } } ], @@ -5029,12 +4454,7 @@ "line": 202, "column": 71, "offset": 7524 - }, - "indent": [ - 1, - 1, - 1 - ] + } } }, { @@ -5046,15 +4466,14 @@ "position": { "start": { "line": 204, - "column": 1, - "offset": 7526 + "column": 3, + "offset": 7528 }, "end": { "line": 204, "column": 20, "offset": 7545 - }, - "indent": [] + } } }, { @@ -5066,15 +4485,14 @@ "position": { "start": { "line": 205, - "column": 1, - "offset": 7546 + "column": 3, + "offset": 7548 }, "end": { "line": 205, "column": 14, "offset": 7559 - }, - "indent": [] + } } }, { @@ -5090,8 +4508,7 @@ "line": 209, "column": 29, "offset": 7591 - }, - "indent": [] + } } }, { @@ -5099,7 +4516,7 @@ "children": [ { "type": "text", - "value": "Markdown supports two styles of headers, ", + "value": "Markdown supports two styles of headers, [Setext] ", "position": { "start": { "line": 211, @@ -5108,53 +4525,50 @@ }, "end": { "line": 211, - "column": 42, - "offset": 7634 - }, - "indent": [] + "column": 51, + "offset": 7643 + } } }, { "type": "linkReference", - "identifier": "1", - "label": "1", - "referenceType": "full", "children": [ { "type": "text", - "value": "Setext", + "value": "1", "position": { "start": { "line": 211, - "column": 43, - "offset": 7635 + "column": 52, + "offset": 7644 }, "end": { "line": 211, - "column": 49, - "offset": 7641 - }, - "indent": [] + "column": 53, + "offset": 7645 + } } } ], "position": { "start": { "line": 211, - "column": 42, - "offset": 7634 + "column": 51, + "offset": 7643 }, "end": { "line": 211, "column": 54, "offset": 7646 - }, - "indent": [] - } + } + }, + "identifier": "1", + "label": "1", + "referenceType": "shortcut" }, { "type": "text", - "value": " and ", + "value": " and [atx] ", "position": { "start": { "line": 211, @@ -5163,49 +4577,46 @@ }, "end": { "line": 211, - "column": 59, - "offset": 7651 - }, - "indent": [] + "column": 65, + "offset": 7657 + } } }, { "type": "linkReference", - "identifier": "2", - "label": "2", - "referenceType": "full", "children": [ { "type": "text", - "value": "atx", + "value": "2", "position": { "start": { "line": 211, - "column": 60, - "offset": 7652 + "column": 66, + "offset": 7658 }, "end": { "line": 211, - "column": 63, - "offset": 7655 - }, - "indent": [] + "column": 67, + "offset": 7659 + } } } ], "position": { "start": { "line": 211, - "column": 59, - "offset": 7651 + "column": 65, + "offset": 7657 }, "end": { "line": 211, "column": 68, "offset": 7660 - }, - "indent": [] - } + } + }, + "identifier": "2", + "label": "2", + "referenceType": "shortcut" }, { "type": "text", @@ -5220,8 +4631,7 @@ "line": 211, "column": 69, "offset": 7661 - }, - "indent": [] + } } } ], @@ -5235,8 +4645,7 @@ "line": 211, "column": 69, "offset": 7661 - }, - "indent": [] + } } }, { @@ -5255,10 +4664,7 @@ "line": 214, "column": 61, "offset": 7796 - }, - "indent": [ - 1 - ] + } } } ], @@ -5272,10 +4678,7 @@ "line": 214, "column": 61, "offset": 7796 - }, - "indent": [ - 1 - ] + } } }, { @@ -5293,13 +4696,7 @@ "line": 220, "column": 18, "offset": 7870 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] + } } }, { @@ -5318,8 +4715,7 @@ "line": 222, "column": 27, "offset": 7898 - }, - "indent": [] + } } }, { @@ -5335,8 +4731,7 @@ "line": 222, "column": 30, "offset": 7901 - }, - "indent": [] + } } }, { @@ -5352,8 +4747,7 @@ "line": 222, "column": 36, "offset": 7907 - }, - "indent": [] + } } }, { @@ -5369,8 +4763,7 @@ "line": 222, "column": 39, "offset": 7910 - }, - "indent": [] + } } }, { @@ -5386,8 +4779,7 @@ "line": 222, "column": 52, "offset": 7923 - }, - "indent": [] + } } } ], @@ -5401,8 +4793,7 @@ "line": 222, "column": 52, "offset": 7923 - }, - "indent": [] + } } }, { @@ -5421,10 +4812,7 @@ "line": 225, "column": 49, "offset": 8041 - }, - "indent": [ - 1 - ] + } } } ], @@ -5438,10 +4826,7 @@ "line": 225, "column": 49, "offset": 8041 - }, - "indent": [ - 1 - ] + } } }, { @@ -5459,13 +4844,7 @@ "line": 231, "column": 25, "offset": 8110 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] + } } }, { @@ -5484,13 +4863,7 @@ "line": 237, "column": 32, "offset": 8384 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] + } } } ], @@ -5504,13 +4877,7 @@ "line": 237, "column": 32, "offset": 8384 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] + } } }, { @@ -5528,13 +4895,7 @@ "line": 243, "column": 29, "offset": 8462 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] + } } }, { @@ -5550,8 +4911,7 @@ "line": 246, "column": 37, "offset": 8501 - }, - "indent": [] + } } }, { @@ -5570,8 +4930,7 @@ "line": 248, "column": 27, "offset": 8529 - }, - "indent": [] + } } }, { @@ -5587,8 +4946,7 @@ "line": 248, "column": 30, "offset": 8532 - }, - "indent": [] + } } }, { @@ -5604,12 +4962,7 @@ "line": 251, "column": 25, "offset": 8736 - }, - "indent": [ - 1, - 1, - 1 - ] + } } }, { @@ -5625,8 +4978,7 @@ "line": 251, "column": 28, "offset": 8739 - }, - "indent": [] + } } }, { @@ -5642,8 +4994,7 @@ "line": 251, "column": 47, "offset": 8758 - }, - "indent": [] + } } } ], @@ -5657,12 +5008,7 @@ "line": 251, "column": 47, "offset": 8758 - }, - "indent": [ - 1, - 1, - 1 - ] + } } }, { @@ -5680,14 +5026,7 @@ "line": 258, "column": 52, "offset": 9120 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1 - ] + } } }, { @@ -5706,8 +5045,7 @@ "line": 260, "column": 49, "offset": 9170 - }, - "indent": [] + } } }, { @@ -5723,8 +5061,7 @@ "line": 260, "column": 52, "offset": 9173 - }, - "indent": [] + } } }, { @@ -5740,10 +5077,7 @@ "line": 261, "column": 34, "offset": 9224 - }, - "indent": [ - 1 - ] + } } } ], @@ -5757,10 +5091,7 @@ "line": 261, "column": 34, "offset": 9224 - }, - "indent": [ - 1 - ] + } } }, { @@ -5778,14 +5109,7 @@ "line": 268, "column": 50, "offset": 9574 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1 - ] + } } }, { @@ -5804,10 +5128,7 @@ "line": 271, "column": 29, "offset": 9669 - }, - "indent": [ - 1 - ] + } } }, { @@ -5823,8 +5144,7 @@ "line": 271, "column": 32, "offset": 9672 - }, - "indent": [] + } } }, { @@ -5840,8 +5160,7 @@ "line": 271, "column": 33, "offset": 9673 - }, - "indent": [] + } } } ], @@ -5855,10 +5174,7 @@ "line": 271, "column": 33, "offset": 9673 - }, - "indent": [ - 1 - ] + } } }, { @@ -5876,13 +5192,7 @@ "line": 277, "column": 31, "offset": 9794 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] + } } }, { @@ -5901,10 +5211,7 @@ "line": 280, "column": 17, "offset": 9887 - }, - "indent": [ - 1 - ] + } } } ], @@ -5918,10 +5225,7 @@ "line": 280, "column": 17, "offset": 9887 - }, - "indent": [ - 1 - ] + } } }, { @@ -5939,16 +5243,7 @@ "line": 289, "column": 60, "offset": 10088 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] + } } }, { @@ -5967,11 +5262,7 @@ "line": 293, "column": 32, "offset": 10253 - }, - "indent": [ - 1, - 1 - ] + } } } ], @@ -5985,11 +5276,7 @@ "line": 293, "column": 32, "offset": 10253 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -6005,8 +5292,7 @@ "line": 296, "column": 25, "offset": 10280 - }, - "indent": [] + } } }, { @@ -6025,8 +5311,7 @@ "line": 298, "column": 69, "offset": 10350 - }, - "indent": [] + } } } ], @@ -6040,8 +5325,7 @@ "line": 298, "column": 69, "offset": 10350 - }, - "indent": [] + } } }, { @@ -6060,10 +5344,7 @@ "line": 301, "column": 20, "offset": 10440 - }, - "indent": [ - 1 - ] + } } } ], @@ -6077,10 +5358,7 @@ "line": 301, "column": 20, "offset": 10440 - }, - "indent": [ - 1 - ] + } } }, { @@ -6098,11 +5376,7 @@ "line": 305, "column": 13, "offset": 10480 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -6121,8 +5395,7 @@ "line": 307, "column": 18, "offset": 10499 - }, - "indent": [] + } } } ], @@ -6136,8 +5409,7 @@ "line": 307, "column": 18, "offset": 10499 - }, - "indent": [] + } } }, { @@ -6155,11 +5427,7 @@ "line": 311, "column": 13, "offset": 10539 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -6178,8 +5446,7 @@ "line": 313, "column": 5, "offset": 10545 - }, - "indent": [] + } } } ], @@ -6193,8 +5460,7 @@ "line": 313, "column": 5, "offset": 10545 - }, - "indent": [] + } } }, { @@ -6212,11 +5478,7 @@ "line": 317, "column": 13, "offset": 10585 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -6235,8 +5497,7 @@ "line": 319, "column": 47, "offset": 10633 - }, - "indent": [] + } } } ], @@ -6250,8 +5511,7 @@ "line": 319, "column": 47, "offset": 10633 - }, - "indent": [] + } } }, { @@ -6269,11 +5529,7 @@ "line": 323, "column": 15, "offset": 10677 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -6292,11 +5548,7 @@ "line": 327, "column": 42, "offset": 10854 - }, - "indent": [ - 1, - 1 - ] + } } } ], @@ -6310,11 +5562,7 @@ "line": 327, "column": 42, "offset": 10854 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -6332,13 +5580,7 @@ "line": 333, "column": 10, "offset": 10932 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] + } } }, { @@ -6357,8 +5599,7 @@ "line": 335, "column": 53, "offset": 10986 - }, - "indent": [] + } } } ], @@ -6372,8 +5613,7 @@ "line": 335, "column": 53, "offset": 10986 - }, - "indent": [] + } } }, { @@ -6391,11 +5631,7 @@ "line": 339, "column": 15, "offset": 11030 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -6414,8 +5650,7 @@ "line": 341, "column": 9, "offset": 11040 - }, - "indent": [] + } } } ], @@ -6429,8 +5664,7 @@ "line": 341, "column": 9, "offset": 11040 - }, - "indent": [] + } } }, { @@ -6448,11 +5682,7 @@ "line": 345, "column": 14, "offset": 11081 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -6471,12 +5701,7 @@ "line": 350, "column": 47, "offset": 11334 - }, - "indent": [ - 1, - 1, - 1 - ] + } } } ], @@ -6490,12 +5715,7 @@ "line": 350, "column": 47, "offset": 11334 - }, - "indent": [ - 1, - 1, - 1 - ] + } } }, { @@ -6514,11 +5734,7 @@ "line": 354, "column": 47, "offset": 11527 - }, - "indent": [ - 1, - 1 - ] + } } } ], @@ -6532,11 +5748,7 @@ "line": 354, "column": 47, "offset": 11527 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -6555,11 +5767,7 @@ "line": 358, "column": 10, "offset": 11682 - }, - "indent": [ - 1, - 1 - ] + } } } ], @@ -6573,11 +5781,7 @@ "line": 358, "column": 10, "offset": 11682 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -6596,8 +5800,7 @@ "line": 360, "column": 66, "offset": 11749 - }, - "indent": [] + } } } ], @@ -6611,8 +5814,7 @@ "line": 360, "column": 66, "offset": 11749 - }, - "indent": [] + } } }, { @@ -6630,13 +5832,7 @@ "line": 366, "column": 66, "offset": 12072 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] + } } }, { @@ -6655,8 +5851,7 @@ "line": 368, "column": 47, "offset": 12120 - }, - "indent": [] + } } } ], @@ -6670,8 +5865,7 @@ "line": 368, "column": 47, "offset": 12120 - }, - "indent": [] + } } }, { @@ -6689,13 +5883,7 @@ "line": 374, "column": 62, "offset": 12431 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] + } } }, { @@ -6714,10 +5902,7 @@ "line": 377, "column": 10, "offset": 12509 - }, - "indent": [ - 1 - ] + } } }, { @@ -6733,8 +5918,7 @@ "line": 377, "column": 15, "offset": 12514 - }, - "indent": [] + } } }, { @@ -6750,8 +5934,7 @@ "line": 377, "column": 65, "offset": 12564 - }, - "indent": [] + } } } ], @@ -6765,10 +5948,7 @@ "line": 377, "column": 65, "offset": 12564 - }, - "indent": [ - 1 - ] + } } }, { @@ -6786,10 +5966,7 @@ "line": 380, "column": 14, "offset": 12592 - }, - "indent": [ - 1 - ] + } } }, { @@ -6808,8 +5985,7 @@ "line": 382, "column": 16, "offset": 12609 - }, - "indent": [] + } } } ], @@ -6823,8 +5999,7 @@ "line": 382, "column": 16, "offset": 12609 - }, - "indent": [] + } } }, { @@ -6842,12 +6017,7 @@ "line": 387, "column": 10, "offset": 12666 - }, - "indent": [ - 1, - 1, - 1 - ] + } } }, { @@ -6866,8 +6036,7 @@ "line": 389, "column": 10, "offset": 12677 - }, - "indent": [] + } } } ], @@ -6881,8 +6050,7 @@ "line": 389, "column": 10, "offset": 12677 - }, - "indent": [] + } } }, { @@ -6900,11 +6068,7 @@ "line": 393, "column": 14, "offset": 12706 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -6923,8 +6087,7 @@ "line": 395, "column": 16, "offset": 12723 - }, - "indent": [] + } } } ], @@ -6938,8 +6101,7 @@ "line": 395, "column": 16, "offset": 12723 - }, - "indent": [] + } } }, { @@ -6957,12 +6119,7 @@ "line": 400, "column": 10, "offset": 12794 - }, - "indent": [ - 1, - 1, - 1 - ] + } } }, { @@ -6981,11 +6138,7 @@ "line": 404, "column": 12, "offset": 12931 - }, - "indent": [ - 1, - 1 - ] + } } } ], @@ -6999,11 +6152,7 @@ "line": 404, "column": 12, "offset": 12931 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -7021,17 +6170,7 @@ "line": 414, "column": 66, "offset": 13313 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] + } } }, { @@ -7050,11 +6189,7 @@ "line": 418, "column": 6, "offset": 13435 - }, - "indent": [ - 1, - 1 - ] + } } } ], @@ -7068,11 +6203,7 @@ "line": 418, "column": 6, "offset": 13435 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -7090,15 +6221,7 @@ "line": 426, "column": 39, "offset": 13694 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1 - ] + } } }, { @@ -7117,8 +6240,7 @@ "line": 428, "column": 58, "offset": 13753 - }, - "indent": [] + } } }, { @@ -7134,8 +6256,7 @@ "line": 428, "column": 61, "offset": 13756 - }, - "indent": [] + } } }, { @@ -7151,10 +6272,7 @@ "line": 429, "column": 32, "offset": 13788 - }, - "indent": [ - 1 - ] + } } } ], @@ -7168,10 +6286,7 @@ "line": 429, "column": 32, "offset": 13788 - }, - "indent": [ - 1 - ] + } } }, { @@ -7189,12 +6304,7 @@ "line": 434, "column": 30, "offset": 13890 - }, - "indent": [ - 1, - 1, - 1 - ] + } } }, { @@ -7213,10 +6323,7 @@ "line": 437, "column": 16, "offset": 13968 - }, - "indent": [ - 1 - ] + } } }, { @@ -7235,8 +6342,7 @@ "line": 437, "column": 22, "offset": 13974 - }, - "indent": [] + } } } ], @@ -7250,8 +6356,7 @@ "line": 437, "column": 23, "offset": 13975 - }, - "indent": [] + } } }, { @@ -7267,8 +6372,7 @@ "line": 437, "column": 48, "offset": 14000 - }, - "indent": [] + } } } ], @@ -7282,10 +6386,7 @@ "line": 437, "column": 48, "offset": 14000 - }, - "indent": [ - 1 - ] + } } }, { @@ -7303,11 +6404,7 @@ "line": 441, "column": 29, "offset": 14070 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -7326,10 +6423,7 @@ "line": 445, "column": 42, "offset": 14181 - }, - "indent": [ - 1 - ] + } } } ], @@ -7343,10 +6437,7 @@ "line": 445, "column": 42, "offset": 14181 - }, - "indent": [ - 1 - ] + } } }, { @@ -7364,8 +6455,7 @@ "line": 447, "column": 31, "offset": 14213 - }, - "indent": [] + } } }, { @@ -7384,8 +6474,7 @@ "line": 449, "column": 19, "offset": 14233 - }, - "indent": [] + } } }, { @@ -7404,8 +6493,7 @@ "line": 449, "column": 39, "offset": 14253 - }, - "indent": [] + } } } ], @@ -7419,8 +6507,7 @@ "line": 449, "column": 40, "offset": 14254 - }, - "indent": [] + } } }, { @@ -7436,10 +6523,7 @@ "line": 450, "column": 58, "offset": 14343 - }, - "indent": [ - 1 - ] + } } } ], @@ -7453,10 +6537,7 @@ "line": 450, "column": 58, "offset": 14343 - }, - "indent": [ - 1 - ] + } } }, { @@ -7474,8 +6555,7 @@ "line": 452, "column": 32, "offset": 14376 - }, - "indent": [] + } } }, { @@ -7491,8 +6571,7 @@ "line": 456, "column": 34, "offset": 14413 - }, - "indent": [] + } } }, { @@ -7511,12 +6590,7 @@ "line": 461, "column": 9, "offset": 14631 - }, - "indent": [ - 1, - 1, - 1 - ] + } } }, { @@ -7532,8 +6606,7 @@ "line": 461, "column": 16, "offset": 14638 - }, - "indent": [] + } } }, { @@ -7549,8 +6622,7 @@ "line": 461, "column": 21, "offset": 14643 - }, - "indent": [] + } } }, { @@ -7566,8 +6638,7 @@ "line": 461, "column": 29, "offset": 14651 - }, - "indent": [] + } } }, { @@ -7583,8 +6654,7 @@ "line": 461, "column": 35, "offset": 14657 - }, - "indent": [] + } } } ], @@ -7598,12 +6668,7 @@ "line": 461, "column": 35, "offset": 14657 - }, - "indent": [ - 1, - 1, - 1 - ] + } } }, { @@ -7622,10 +6687,7 @@ "line": 464, "column": 68, "offset": 14795 - }, - "indent": [ - 1 - ] + } } } ], @@ -7639,10 +6701,7 @@ "line": 464, "column": 68, "offset": 14795 - }, - "indent": [ - 1 - ] + } } }, { @@ -7660,11 +6719,7 @@ "line": 468, "column": 30, "offset": 14859 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -7683,8 +6738,7 @@ "line": 470, "column": 24, "offset": 14884 - }, - "indent": [] + } } } ], @@ -7698,8 +6752,7 @@ "line": 470, "column": 24, "offset": 14884 - }, - "indent": [] + } } }, { @@ -7717,12 +6770,7 @@ "line": 475, "column": 18, "offset": 14980 - }, - "indent": [ - 1, - 1, - 1 - ] + } } }, { @@ -7741,10 +6789,7 @@ "line": 478, "column": 43, "offset": 15094 - }, - "indent": [ - 1 - ] + } } } ], @@ -7758,10 +6803,7 @@ "line": 478, "column": 43, "offset": 15094 - }, - "indent": [ - 1 - ] + } } }, { @@ -7779,13 +6821,7 @@ "line": 484, "column": 17, "offset": 15200 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] + } } }, { @@ -7804,8 +6840,7 @@ "line": 486, "column": 16, "offset": 15217 - }, - "indent": [] + } } } ], @@ -7819,8 +6854,7 @@ "line": 486, "column": 16, "offset": 15217 - }, - "indent": [] + } } }, { @@ -7838,14 +6872,7 @@ "line": 493, "column": 18, "offset": 15347 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1 - ] + } } }, { @@ -7864,10 +6891,7 @@ "line": 496, "column": 29, "offset": 15445 - }, - "indent": [ - 1 - ] + } } } ], @@ -7881,10 +6905,7 @@ "line": 496, "column": 29, "offset": 15445 - }, - "indent": [ - 1 - ] + } } }, { @@ -7903,8 +6924,7 @@ "line": 498, "column": 34, "offset": 15480 - }, - "indent": [] + } } }, { @@ -7920,8 +6940,7 @@ "line": 498, "column": 37, "offset": 15483 - }, - "indent": [] + } } }, { @@ -7937,8 +6956,7 @@ "line": 498, "column": 59, "offset": 15505 - }, - "indent": [] + } } }, { @@ -7954,8 +6972,7 @@ "line": 498, "column": 62, "offset": 15508 - }, - "indent": [] + } } }, { @@ -7971,8 +6988,7 @@ "line": 498, "column": 67, "offset": 15513 - }, - "indent": [] + } } }, { @@ -7988,8 +7004,7 @@ "line": 498, "column": 70, "offset": 15516 - }, - "indent": [] + } } }, { @@ -8005,13 +7020,7 @@ "line": 502, "column": 50, "offset": 15774 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] + } } } ], @@ -8025,13 +7034,7 @@ "line": 502, "column": 50, "offset": 15774 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] + } } }, { @@ -8049,11 +7052,7 @@ "line": 506, "column": 15, "offset": 15859 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -8072,8 +7071,7 @@ "line": 508, "column": 16, "offset": 15876 - }, - "indent": [] + } } } ], @@ -8087,8 +7085,7 @@ "line": 508, "column": 16, "offset": 15876 - }, - "indent": [] + } } }, { @@ -8106,12 +7103,7 @@ "line": 513, "column": 18, "offset": 15994 - }, - "indent": [ - 1, - 1, - 1 - ] + } } }, { @@ -8130,11 +7122,7 @@ "line": 517, "column": 69, "offset": 16200 - }, - "indent": [ - 1, - 1 - ] + } } } ], @@ -8148,11 +7136,7 @@ "line": 517, "column": 69, "offset": 16200 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -8168,8 +7152,7 @@ "line": 521, "column": 34, "offset": 16237 - }, - "indent": [] + } } }, { @@ -8188,8 +7171,7 @@ "line": 523, "column": 40, "offset": 16278 - }, - "indent": [] + } } }, { @@ -8205,8 +7187,7 @@ "line": 523, "column": 46, "offset": 16284 - }, - "indent": [] + } } }, { @@ -8222,12 +7203,7 @@ "line": 526, "column": 48, "offset": 16496 - }, - "indent": [ - 1, - 1, - 1 - ] + } } } ], @@ -8241,12 +7217,7 @@ "line": 526, "column": 48, "offset": 16496 - }, - "indent": [ - 1, - 1, - 1 - ] + } } }, { @@ -8264,19 +7235,7 @@ "line": 538, "column": 7, "offset": 16592 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] + } } }, { @@ -8291,8 +7250,7 @@ "line": 541, "column": 6, "offset": 16600 - }, - "indent": [] + } } }, { @@ -8308,8 +7266,7 @@ "line": 543, "column": 33, "offset": 16634 - }, - "indent": [] + } } }, { @@ -8325,8 +7282,7 @@ "line": 545, "column": 25, "offset": 16660 - }, - "indent": [] + } } }, { @@ -8345,8 +7301,7 @@ "line": 547, "column": 39, "offset": 16700 - }, - "indent": [] + } } }, { @@ -8365,8 +7320,7 @@ "line": 547, "column": 46, "offset": 16707 - }, - "indent": [] + } } } ], @@ -8380,8 +7334,7 @@ "line": 547, "column": 47, "offset": 16708 - }, - "indent": [] + } } }, { @@ -8397,8 +7350,7 @@ "line": 547, "column": 52, "offset": 16713 - }, - "indent": [] + } } }, { @@ -8417,8 +7369,7 @@ "line": 547, "column": 62, "offset": 16723 - }, - "indent": [] + } } } ], @@ -8432,8 +7383,7 @@ "line": 547, "column": 63, "offset": 16724 - }, - "indent": [] + } } }, { @@ -8449,8 +7399,7 @@ "line": 547, "column": 64, "offset": 16725 - }, - "indent": [] + } } } ], @@ -8460,87 +7409,30 @@ "column": 1, "offset": 16662 }, - "end": { - "line": 547, - "column": 64, - "offset": 16725 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "In both styles, the link text is delimited by ", - "position": { - "start": { - "line": 549, - "column": 1, - "offset": 16727 - }, - "end": { - "line": 549, - "column": 47, - "offset": 16773 - }, - "indent": [] - } - }, - { - "type": "linkReference", - "identifier": "square brackets", - "label": "square brackets", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "square brackets", - "position": { - "start": { - "line": 549, - "column": 48, - "offset": 16774 - }, - "end": { - "line": 549, - "column": 63, - "offset": 16789 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 549, - "column": 47, - "offset": 16773 - }, - "end": { - "line": 549, - "column": 64, - "offset": 16790 - }, - "indent": [] - } - }, + "end": { + "line": 547, + "column": 64, + "offset": 16725 + } + } + }, + { + "type": "paragraph", + "children": [ { "type": "text", - "value": ".", + "value": "In both styles, the link text is delimited by [square brackets].", "position": { "start": { "line": 549, - "column": 64, - "offset": 16790 + "column": 1, + "offset": 16727 }, "end": { "line": 549, "column": 65, "offset": 16791 - }, - "indent": [] + } } } ], @@ -8554,8 +7446,7 @@ "line": 549, "column": 65, "offset": 16791 - }, - "indent": [] + } } }, { @@ -8574,11 +7465,7 @@ "line": 553, "column": 61, "offset": 16994 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -8597,8 +7484,7 @@ "line": 553, "column": 70, "offset": 17003 - }, - "indent": [] + } } } ], @@ -8612,8 +7498,7 @@ "line": 553, "column": 71, "offset": 17004 - }, - "indent": [] + } } }, { @@ -8629,10 +7514,7 @@ "line": 554, "column": 55, "offset": 17059 - }, - "indent": [ - 1 - ] + } } } ], @@ -8646,12 +7528,7 @@ "line": 554, "column": 55, "offset": 17059 - }, - "indent": [ - 1, - 1, - 1 - ] + } } }, { @@ -8669,11 +7546,7 @@ "line": 558, "column": 61, "offset": 17189 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -8692,8 +7565,7 @@ "line": 560, "column": 14, "offset": 17204 - }, - "indent": [] + } } } ], @@ -8707,8 +7579,7 @@ "line": 560, "column": 14, "offset": 17204 - }, - "indent": [] + } } }, { @@ -8726,13 +7597,7 @@ "line": 566, "column": 25, "offset": 17385 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] + } } }, { @@ -8751,10 +7616,7 @@ "line": 569, "column": 20, "offset": 17474 - }, - "indent": [ - 1 - ] + } } } ], @@ -8768,10 +7630,7 @@ "line": 569, "column": 20, "offset": 17474 - }, - "indent": [ - 1 - ] + } } }, { @@ -8789,8 +7648,7 @@ "line": 571, "column": 46, "offset": 17521 - }, - "indent": [] + } } }, { @@ -8809,10 +7667,7 @@ "line": 574, "column": 63, "offset": 17651 - }, - "indent": [ - 1 - ] + } } } ], @@ -8826,10 +7681,7 @@ "line": 574, "column": 63, "offset": 17651 - }, - "indent": [ - 1 - ] + } } }, { @@ -8847,8 +7699,7 @@ "line": 576, "column": 51, "offset": 17703 - }, - "indent": [] + } } }, { @@ -8867,8 +7718,7 @@ "line": 578, "column": 65, "offset": 17769 - }, - "indent": [] + } } } ], @@ -8882,8 +7732,7 @@ "line": 578, "column": 65, "offset": 17769 - }, - "indent": [] + } } }, { @@ -8901,8 +7750,7 @@ "line": 580, "column": 52, "offset": 17822 - }, - "indent": [] + } } }, { @@ -8921,10 +7769,7 @@ "line": 583, "column": 21, "offset": 17914 - }, - "indent": [ - 1 - ] + } } } ], @@ -8938,10 +7783,7 @@ "line": 583, "column": 21, "offset": 17914 - }, - "indent": [ - 1 - ] + } } }, { @@ -8959,8 +7801,7 @@ "line": 585, "column": 53, "offset": 17968 - }, - "indent": [] + } } }, { @@ -8979,8 +7820,7 @@ "line": 587, "column": 9, "offset": 17978 - }, - "indent": [] + } } } ], @@ -8994,8 +7834,7 @@ "line": 587, "column": 9, "offset": 17978 - }, - "indent": [] + } } }, { @@ -9025,10 +7864,7 @@ "line": 590, "column": 61, "offset": 18103 - }, - "indent": [ - 5 - ] + } } } ], @@ -9042,10 +7878,7 @@ "line": 590, "column": 61, "offset": 18103 - }, - "indent": [ - 5 - ] + } } } ], @@ -9059,10 +7892,7 @@ "line": 590, "column": 61, "offset": 18103 - }, - "indent": [ - 1 - ] + } } }, { @@ -9086,8 +7916,7 @@ "line": 591, "column": 25, "offset": 18128 - }, - "indent": [] + } } } ], @@ -9101,8 +7930,7 @@ "line": 591, "column": 25, "offset": 18128 - }, - "indent": [] + } } } ], @@ -9116,8 +7944,7 @@ "line": 591, "column": 25, "offset": 18128 - }, - "indent": [] + } } }, { @@ -9141,8 +7968,7 @@ "line": 592, "column": 46, "offset": 18174 - }, - "indent": [] + } } } ], @@ -9156,8 +7982,7 @@ "line": 592, "column": 46, "offset": 18174 - }, - "indent": [] + } } } ], @@ -9171,8 +7996,7 @@ "line": 592, "column": 46, "offset": 18174 - }, - "indent": [] + } } }, { @@ -9196,8 +8020,7 @@ "line": 593, "column": 38, "offset": 18212 - }, - "indent": [] + } } } ], @@ -9211,8 +8034,7 @@ "line": 593, "column": 38, "offset": 18212 - }, - "indent": [] + } } } ], @@ -9226,8 +8048,7 @@ "line": 593, "column": 38, "offset": 18212 - }, - "indent": [] + } } }, { @@ -9251,10 +8072,7 @@ "line": 595, "column": 32, "offset": 18312 - }, - "indent": [ - 5 - ] + } } } ], @@ -9268,10 +8086,7 @@ "line": 595, "column": 32, "offset": 18312 - }, - "indent": [ - 5 - ] + } } } ], @@ -9285,10 +8100,7 @@ "line": 595, "column": 32, "offset": 18312 - }, - "indent": [ - 1 - ] + } } } ], @@ -9302,15 +8114,7 @@ "line": 595, "column": 32, "offset": 18312 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1 - ] + } } }, { @@ -9329,8 +8133,7 @@ "line": 597, "column": 63, "offset": 18376 - }, - "indent": [] + } } } ], @@ -9344,8 +8147,7 @@ "line": 597, "column": 63, "offset": 18376 - }, - "indent": [] + } } }, { @@ -9363,8 +8165,7 @@ "line": 599, "column": 55, "offset": 18432 - }, - "indent": [] + } } }, { @@ -9383,10 +8184,7 @@ "line": 602, "column": 66, "offset": 18569 - }, - "indent": [ - 1 - ] + } } } ], @@ -9400,10 +8198,7 @@ "line": 602, "column": 66, "offset": 18569 - }, - "indent": [ - 1 - ] + } } }, { @@ -9421,10 +8216,7 @@ "line": 605, "column": 30, "offset": 18659 - }, - "indent": [ - 1 - ] + } } }, { @@ -9443,10 +8235,7 @@ "line": 608, "column": 68, "offset": 18794 - }, - "indent": [ - 1 - ] + } } } ], @@ -9460,10 +8249,7 @@ "line": 608, "column": 68, "offset": 18794 - }, - "indent": [ - 1 - ] + } } }, { @@ -9482,8 +8268,7 @@ "line": 610, "column": 97, "offset": 18892 - }, - "indent": [] + } } }, { @@ -9502,8 +8287,7 @@ "line": 610, "column": 101, "offset": 18896 - }, - "indent": [] + } } } ], @@ -9517,8 +8301,7 @@ "line": 610, "column": 102, "offset": 18897 - }, - "indent": [] + } } }, { @@ -9534,8 +8317,7 @@ "line": 610, "column": 140, "offset": 18935 - }, - "indent": [] + } } } ], @@ -9549,8 +8331,7 @@ "line": 610, "column": 140, "offset": 18935 - }, - "indent": [] + } } }, { @@ -9568,10 +8349,7 @@ "line": 613, "column": 16, "offset": 18968 - }, - "indent": [ - 1 - ] + } } }, { @@ -9590,8 +8368,7 @@ "line": 615, "column": 16, "offset": 18985 - }, - "indent": [] + } } } ], @@ -9605,8 +8382,7 @@ "line": 615, "column": 16, "offset": 18985 - }, - "indent": [] + } } }, { @@ -9625,8 +8401,7 @@ "line": 617, "column": 5, "offset": 18991 - }, - "indent": [] + } } }, { @@ -9645,8 +8420,7 @@ "line": 617, "column": 24, "offset": 19010 - }, - "indent": [] + } } } ], @@ -9660,8 +8434,7 @@ "line": 617, "column": 25, "offset": 19011 - }, - "indent": [] + } } }, { @@ -9677,12 +8450,7 @@ "line": 620, "column": 61, "offset": 19245 - }, - "indent": [ - 1, - 1, - 1 - ] + } } } ], @@ -9696,12 +8464,7 @@ "line": 620, "column": 61, "offset": 19245 - }, - "indent": [ - 1, - 1, - 1 - ] + } } }, { @@ -9719,8 +8482,7 @@ "line": 622, "column": 12, "offset": 19258 - }, - "indent": [] + } } }, { @@ -9739,8 +8501,7 @@ "line": 624, "column": 26, "offset": 19285 - }, - "indent": [] + } } } ], @@ -9754,8 +8515,7 @@ "line": 624, "column": 26, "offset": 19285 - }, - "indent": [] + } } }, { @@ -9773,8 +8533,7 @@ "line": 626, "column": 30, "offset": 19316 - }, - "indent": [] + } } }, { @@ -9793,10 +8552,7 @@ "line": 629, "column": 33, "offset": 19418 - }, - "indent": [ - 1 - ] + } } } ], @@ -9810,10 +8566,7 @@ "line": 629, "column": 33, "offset": 19418 - }, - "indent": [ - 1 - ] + } } }, { @@ -9831,8 +8584,7 @@ "line": 631, "column": 49, "offset": 19468 - }, - "indent": [] + } } }, { @@ -9851,8 +8603,7 @@ "line": 633, "column": 26, "offset": 19495 - }, - "indent": [] + } } } ], @@ -9866,8 +8617,7 @@ "line": 633, "column": 26, "offset": 19495 - }, - "indent": [] + } } }, { @@ -9885,8 +8635,7 @@ "line": 635, "column": 47, "offset": 19544 - }, - "indent": [] + } } }, { @@ -9905,12 +8654,7 @@ "line": 640, "column": 34, "offset": 19778 - }, - "indent": [ - 1, - 1, - 1 - ] + } } } ], @@ -9924,12 +8668,7 @@ "line": 640, "column": 34, "offset": 19778 - }, - "indent": [ - 1, - 1, - 1 - ] + } } }, { @@ -9948,8 +8687,7 @@ "line": 642, "column": 48, "offset": 19827 - }, - "indent": [] + } } } ], @@ -9963,8 +8701,7 @@ "line": 642, "column": 48, "offset": 19827 - }, - "indent": [] + } } }, { @@ -9982,14 +8719,7 @@ "line": 649, "column": 50, "offset": 20067 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1 - ] + } } }, { @@ -10008,8 +8738,7 @@ "line": 651, "column": 64, "offset": 20132 - }, - "indent": [] + } } } ], @@ -10023,8 +8752,7 @@ "line": 651, "column": 64, "offset": 20132 - }, - "indent": [] + } } }, { @@ -10042,14 +8770,7 @@ "line": 658, "column": 55, "offset": 20381 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1 - ] + } } }, { @@ -10068,8 +8789,7 @@ "line": 660, "column": 67, "offset": 20449 - }, - "indent": [] + } } } ], @@ -10083,8 +8803,7 @@ "line": 660, "column": 67, "offset": 20449 - }, - "indent": [] + } } }, { @@ -10102,12 +8821,7 @@ "line": 665, "column": 72, "offset": 20701 - }, - "indent": [ - 1, - 1, - 1 - ] + } } }, { @@ -10126,10 +8840,7 @@ "line": 668, "column": 30, "offset": 20789 - }, - "indent": [ - 1 - ] + } } } ], @@ -10143,10 +8854,7 @@ "line": 668, "column": 30, "offset": 20789 - }, - "indent": [ - 1 - ] + } } }, { @@ -10164,11 +8872,7 @@ "line": 672, "column": 48, "offset": 20979 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -10187,15 +8891,7 @@ "line": 680, "column": 9, "offset": 21391 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1 - ] + } } } ], @@ -10209,15 +8905,7 @@ "line": 680, "column": 9, "offset": 21391 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1 - ] + } } }, { @@ -10236,13 +8924,7 @@ "line": 686, "column": 7, "offset": 21668 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] + } } } ], @@ -10256,13 +8938,7 @@ "line": 686, "column": 7, "offset": 21668 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] + } } }, { @@ -10278,8 +8954,7 @@ "line": 689, "column": 26, "offset": 21696 - }, - "indent": [] + } } }, { @@ -10298,8 +8973,7 @@ "line": 691, "column": 28, "offset": 21725 - }, - "indent": [] + } } }, { @@ -10315,8 +8989,7 @@ "line": 691, "column": 31, "offset": 21728 - }, - "indent": [] + } } }, { @@ -10332,8 +9005,7 @@ "line": 691, "column": 50, "offset": 21747 - }, - "indent": [] + } } }, { @@ -10349,8 +9021,7 @@ "line": 691, "column": 53, "offset": 21750 - }, - "indent": [] + } } }, { @@ -10366,10 +9037,7 @@ "line": 692, "column": 33, "offset": 21801 - }, - "indent": [ - 1 - ] + } } }, { @@ -10385,8 +9053,7 @@ "line": 692, "column": 36, "offset": 21804 - }, - "indent": [] + } } }, { @@ -10402,8 +9069,7 @@ "line": 692, "column": 40, "offset": 21808 - }, - "indent": [] + } } }, { @@ -10419,8 +9085,7 @@ "line": 692, "column": 43, "offset": 21811 - }, - "indent": [] + } } }, { @@ -10436,10 +9101,7 @@ "line": 693, "column": 6, "offset": 21841 - }, - "indent": [ - 1 - ] + } } }, { @@ -10455,8 +9117,7 @@ "line": 693, "column": 12, "offset": 21847 - }, - "indent": [] + } } }, { @@ -10472,8 +9133,7 @@ "line": 693, "column": 25, "offset": 21860 - }, - "indent": [] + } } }, { @@ -10489,8 +9149,7 @@ "line": 693, "column": 28, "offset": 21863 - }, - "indent": [] + } } }, { @@ -10506,8 +9165,7 @@ "line": 693, "column": 34, "offset": 21869 - }, - "indent": [] + } } }, { @@ -10523,8 +9181,7 @@ "line": 693, "column": 37, "offset": 21872 - }, - "indent": [] + } } }, { @@ -10540,10 +9197,7 @@ "line": 694, "column": 1, "offset": 21904 - }, - "indent": [ - 1 - ] + } } }, { @@ -10559,8 +9213,7 @@ "line": 694, "column": 11, "offset": 21914 - }, - "indent": [] + } } }, { @@ -10576,8 +9229,7 @@ "line": 694, "column": 34, "offset": 21937 - }, - "indent": [] + } } } ], @@ -10591,12 +9243,7 @@ "line": 694, "column": 34, "offset": 21937 - }, - "indent": [ - 1, - 1, - 1 - ] + } } }, { @@ -10614,15 +9261,7 @@ "line": 702, "column": 27, "offset": 22041 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1 - ] + } } }, { @@ -10641,8 +9280,7 @@ "line": 704, "column": 14, "offset": 22056 - }, - "indent": [] + } } } ], @@ -10656,8 +9294,7 @@ "line": 704, "column": 14, "offset": 22056 - }, - "indent": [] + } } }, { @@ -10675,15 +9312,7 @@ "line": 712, "column": 40, "offset": 22200 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1 - ] + } } }, { @@ -10702,10 +9331,7 @@ "line": 715, "column": 68, "offset": 22338 - }, - "indent": [ - 1 - ] + } } } ], @@ -10719,10 +9345,7 @@ "line": 715, "column": 68, "offset": 22338 - }, - "indent": [ - 1 - ] + } } }, { @@ -10741,8 +9364,7 @@ "line": 717, "column": 46, "offset": 22385 - }, - "indent": [] + } } } ], @@ -10756,8 +9378,7 @@ "line": 717, "column": 46, "offset": 22385 - }, - "indent": [] + } } }, { @@ -10775,8 +9396,7 @@ "line": 719, "column": 26, "offset": 22412 - }, - "indent": [] + } } }, { @@ -10795,8 +9415,7 @@ "line": 721, "column": 24, "offset": 22437 - }, - "indent": [] + } } }, { @@ -10812,8 +9431,7 @@ "line": 721, "column": 27, "offset": 22440 - }, - "indent": [] + } } }, { @@ -10829,8 +9447,7 @@ "line": 721, "column": 31, "offset": 22444 - }, - "indent": [] + } } }, { @@ -10846,8 +9463,7 @@ "line": 721, "column": 34, "offset": 22447 - }, - "indent": [] + } } }, { @@ -10863,10 +9479,7 @@ "line": 722, "column": 32, "offset": 22514 - }, - "indent": [ - 1 - ] + } } } ], @@ -10880,10 +9493,7 @@ "line": 722, "column": 32, "offset": 22514 - }, - "indent": [ - 1 - ] + } } }, { @@ -10902,11 +9512,7 @@ "line": 726, "column": 11, "offset": 22661 - }, - "indent": [ - 1, - 1 - ] + } } } ], @@ -10920,11 +9526,7 @@ "line": 726, "column": 11, "offset": 22661 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -10942,8 +9544,7 @@ "line": 728, "column": 53, "offset": 22715 - }, - "indent": [] + } } }, { @@ -10959,8 +9560,7 @@ "line": 732, "column": 24, "offset": 22742 - }, - "indent": [] + } } }, { @@ -10979,8 +9579,7 @@ "line": 734, "column": 59, "offset": 22802 - }, - "indent": [] + } } }, { @@ -10996,8 +9595,7 @@ "line": 734, "column": 66, "offset": 22809 - }, - "indent": [] + } } }, { @@ -11013,11 +9611,7 @@ "line": 736, "column": 31, "offset": 22913 - }, - "indent": [ - 1, - 1 - ] + } } } ], @@ -11031,11 +9625,7 @@ "line": 736, "column": 31, "offset": 22913 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -11053,8 +9643,7 @@ "line": 738, "column": 33, "offset": 22947 - }, - "indent": [] + } } }, { @@ -11073,8 +9662,7 @@ "line": 740, "column": 14, "offset": 22962 - }, - "indent": [] + } } } ], @@ -11088,8 +9676,7 @@ "line": 740, "column": 14, "offset": 22962 - }, - "indent": [] + } } }, { @@ -11107,8 +9694,7 @@ "line": 742, "column": 51, "offset": 23014 - }, - "indent": [] + } } }, { @@ -11127,10 +9713,7 @@ "line": 745, "column": 58, "offset": 23145 - }, - "indent": [ - 1 - ] + } } } ], @@ -11144,10 +9727,7 @@ "line": 745, "column": 58, "offset": 23145 - }, - "indent": [ - 1 - ] + } } }, { @@ -11165,8 +9745,7 @@ "line": 747, "column": 46, "offset": 23192 - }, - "indent": [] + } } }, { @@ -11185,8 +9764,7 @@ "line": 749, "column": 25, "offset": 23218 - }, - "indent": [] + } } } ], @@ -11200,8 +9778,7 @@ "line": 749, "column": 25, "offset": 23218 - }, - "indent": [] + } } }, { @@ -11219,8 +9796,7 @@ "line": 751, "column": 62, "offset": 23281 - }, - "indent": [] + } } }, { @@ -11239,11 +9815,7 @@ "line": 755, "column": 68, "offset": 23492 - }, - "indent": [ - 1, - 1 - ] + } } } ], @@ -11257,11 +9829,7 @@ "line": 755, "column": 68, "offset": 23492 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -11279,11 +9847,7 @@ "line": 759, "column": 57, "offset": 23595 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -11302,8 +9866,7 @@ "line": 761, "column": 14, "offset": 23610 - }, - "indent": [] + } } } ], @@ -11317,8 +9880,7 @@ "line": 761, "column": 14, "offset": 23610 - }, - "indent": [] + } } }, { @@ -11336,11 +9898,7 @@ "line": 765, "column": 71, "offset": 23741 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -11359,11 +9917,7 @@ "line": 769, "column": 31, "offset": 23909 - }, - "indent": [ - 1, - 1 - ] + } } } ], @@ -11377,11 +9931,7 @@ "line": 769, "column": 31, "offset": 23909 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -11399,8 +9949,7 @@ "line": 771, "column": 41, "offset": 23951 - }, - "indent": [] + } } }, { @@ -11419,8 +9968,7 @@ "line": 773, "column": 6, "offset": 23958 - }, - "indent": [] + } } } ], @@ -11434,8 +9982,7 @@ "line": 773, "column": 6, "offset": 23958 - }, - "indent": [] + } } }, { @@ -11453,8 +10000,7 @@ "line": 775, "column": 65, "offset": 24024 - }, - "indent": [] + } } }, { @@ -11473,8 +10019,7 @@ "line": 777, "column": 20, "offset": 24045 - }, - "indent": [] + } } } ], @@ -11488,8 +10033,7 @@ "line": 777, "column": 20, "offset": 24045 - }, - "indent": [] + } } }, { @@ -11507,8 +10051,7 @@ "line": 779, "column": 62, "offset": 24108 - }, - "indent": [] + } } }, { @@ -11527,8 +10070,7 @@ "line": 781, "column": 12, "offset": 24121 - }, - "indent": [] + } } } ], @@ -11542,8 +10084,7 @@ "line": 781, "column": 12, "offset": 24121 - }, - "indent": [] + } } }, { @@ -11561,10 +10102,7 @@ "line": 784, "column": 48, "offset": 24225 - }, - "indent": [ - 1 - ] + } } }, { @@ -11580,8 +10118,7 @@ "line": 788, "column": 25, "offset": 24253 - }, - "indent": [] + } } }, { @@ -11600,10 +10137,7 @@ "line": 791, "column": 50, "offset": 24371 - }, - "indent": [ - 1 - ] + } } } ], @@ -11617,10 +10151,7 @@ "line": 791, "column": 50, "offset": 24371 - }, - "indent": [ - 1 - ] + } } }, { @@ -11639,10 +10170,7 @@ "line": 794, "column": 37, "offset": 24479 - }, - "indent": [ - 1 - ] + } } }, { @@ -11661,8 +10189,7 @@ "line": 794, "column": 44, "offset": 24486 - }, - "indent": [] + } } } ], @@ -11676,8 +10203,7 @@ "line": 794, "column": 45, "offset": 24487 - }, - "indent": [] + } } }, { @@ -11693,8 +10219,7 @@ "line": 794, "column": 50, "offset": 24492 - }, - "indent": [] + } } }, { @@ -11713,8 +10238,7 @@ "line": 794, "column": 60, "offset": 24502 - }, - "indent": [] + } } } ], @@ -11728,8 +10252,7 @@ "line": 794, "column": 61, "offset": 24503 - }, - "indent": [] + } } }, { @@ -11745,8 +10268,7 @@ "line": 794, "column": 62, "offset": 24504 - }, - "indent": [] + } } } ], @@ -11760,10 +10282,7 @@ "line": 794, "column": 62, "offset": 24504 - }, - "indent": [ - 1 - ] + } } }, { @@ -11782,8 +10301,7 @@ "line": 796, "column": 37, "offset": 24542 - }, - "indent": [] + } } } ], @@ -11797,8 +10315,7 @@ "line": 796, "column": 37, "offset": 24542 - }, - "indent": [] + } } }, { @@ -11816,11 +10333,7 @@ "line": 800, "column": 51, "offset": 24629 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -11839,8 +10352,7 @@ "line": 802, "column": 9, "offset": 24639 - }, - "indent": [] + } } } ], @@ -11854,8 +10366,7 @@ "line": 802, "column": 9, "offset": 24639 - }, - "indent": [] + } } }, { @@ -11885,8 +10396,7 @@ "line": 804, "column": 26, "offset": 24666 - }, - "indent": [] + } } }, { @@ -11902,8 +10412,7 @@ "line": 804, "column": 29, "offset": 24669 - }, - "indent": [] + } } }, { @@ -11919,8 +10428,7 @@ "line": 804, "column": 30, "offset": 24670 - }, - "indent": [] + } } } ], @@ -11934,8 +10442,7 @@ "line": 804, "column": 30, "offset": 24670 - }, - "indent": [] + } } } ], @@ -11949,8 +10456,7 @@ "line": 804, "column": 30, "offset": 24670 - }, - "indent": [] + } } }, { @@ -11974,8 +10480,7 @@ "line": 805, "column": 58, "offset": 24728 - }, - "indent": [] + } } }, { @@ -11991,8 +10496,7 @@ "line": 805, "column": 63, "offset": 24733 - }, - "indent": [] + } } }, { @@ -12008,10 +10512,7 @@ "line": 806, "column": 34, "offset": 24767 - }, - "indent": [ - 5 - ] + } } } ], @@ -12025,10 +10526,7 @@ "line": 806, "column": 34, "offset": 24767 - }, - "indent": [ - 5 - ] + } } } ], @@ -12042,10 +10540,7 @@ "line": 806, "column": 34, "offset": 24767 - }, - "indent": [ - 1 - ] + } } }, { @@ -12069,10 +10564,7 @@ "line": 808, "column": 32, "offset": 24867 - }, - "indent": [ - 5 - ] + } } }, { @@ -12088,8 +10580,7 @@ "line": 808, "column": 39, "offset": 24874 - }, - "indent": [] + } } }, { @@ -12105,10 +10596,7 @@ "line": 809, "column": 22, "offset": 24925 - }, - "indent": [ - 5 - ] + } } } ], @@ -12122,11 +10610,7 @@ "line": 809, "column": 22, "offset": 24925 - }, - "indent": [ - 5, - 5 - ] + } } } ], @@ -12140,11 +10624,7 @@ "line": 809, "column": 22, "offset": 24925 - }, - "indent": [ - 1, - 1 - ] + } } } ], @@ -12158,14 +10638,7 @@ "line": 809, "column": 22, "offset": 24925 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1 - ] + } } }, { @@ -12184,8 +10657,7 @@ "line": 811, "column": 46, "offset": 24972 - }, - "indent": [] + } } } ], @@ -12199,8 +10671,7 @@ "line": 811, "column": 46, "offset": 24972 - }, - "indent": [] + } } }, { @@ -12218,8 +10689,7 @@ "line": 813, "column": 20, "offset": 24993 - }, - "indent": [] + } } }, { @@ -12238,10 +10708,7 @@ "line": 816, "column": 55, "offset": 25119 - }, - "indent": [ - 1 - ] + } } } ], @@ -12255,10 +10722,7 @@ "line": 816, "column": 55, "offset": 25119 - }, - "indent": [ - 1 - ] + } } }, { @@ -12276,8 +10740,7 @@ "line": 818, "column": 51, "offset": 25171 - }, - "indent": [] + } } }, { @@ -12296,11 +10759,7 @@ "line": 822, "column": 18, "offset": 25320 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -12316,8 +10775,7 @@ "line": 822, "column": 25, "offset": 25327 - }, - "indent": [] + } } }, { @@ -12333,8 +10791,7 @@ "line": 822, "column": 31, "offset": 25333 - }, - "indent": [] + } } } ], @@ -12348,11 +10805,7 @@ "line": 822, "column": 31, "offset": 25333 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -12367,8 +10820,7 @@ "line": 825, "column": 6, "offset": 25341 - }, - "indent": [] + } } }, { @@ -12384,8 +10836,7 @@ "line": 828, "column": 33, "offset": 25376 - }, - "indent": [] + } } }, { @@ -12401,8 +10852,7 @@ "line": 830, "column": 39, "offset": 25416 - }, - "indent": [] + } } }, { @@ -12421,8 +10871,7 @@ "line": 832, "column": 300, "offset": 25717 - }, - "indent": [] + } } } ], @@ -12436,8 +10885,7 @@ "line": 832, "column": 300, "offset": 25717 - }, - "indent": [] + } } }, { @@ -12452,13 +10900,10 @@ "offset": 25719 }, "end": { - "line": 835, - "column": 5, - "offset": 25749 - }, - "indent": [ - 1 - ] + "line": 834, + "column": 26, + "offset": 25744 + } } }, { @@ -12477,8 +10922,7 @@ "line": 836, "column": 30, "offset": 25779 - }, - "indent": [] + } } } ], @@ -12492,8 +10936,7 @@ "line": 836, "column": 30, "offset": 25779 - }, - "indent": [] + } } }, { @@ -12511,8 +10954,7 @@ "line": 838, "column": 58, "offset": 25838 - }, - "indent": [] + } } }, { @@ -12531,12 +10973,7 @@ "line": 843, "column": 48, "offset": 26083 - }, - "indent": [ - 1, - 1, - 1 - ] + } } } ], @@ -12550,12 +10987,7 @@ "line": 843, "column": 48, "offset": 26083 - }, - "indent": [ - 1, - 1, - 1 - ] + } } }, { @@ -12573,8 +11005,7 @@ "line": 845, "column": 26, "offset": 26110 - }, - "indent": [] + } } }, { @@ -12593,8 +11024,7 @@ "line": 847, "column": 26, "offset": 26137 - }, - "indent": [] + } } } ], @@ -12608,8 +11038,7 @@ "line": 847, "column": 26, "offset": 26137 - }, - "indent": [] + } } }, { @@ -12627,12 +11056,7 @@ "line": 852, "column": 51, "offset": 26419 - }, - "indent": [ - 1, - 1, - 1 - ] + } } }, { @@ -12640,73 +11064,18 @@ "children": [ { "type": "text", - "value": "which will render in a browser as a clickable link to \"", + "value": "which will render in a browser as a clickable link to \"address@example.com\".", "position": { "start": { "line": 854, "column": 1, "offset": 26421 }, - "end": { - "line": 854, - "column": 56, - "offset": 26476 - }, - "indent": [] - } - }, - { - "type": "link", - "title": null, - "url": "mailto:address@example.com", - "children": [ - { - "type": "text", - "value": "address@example.com", - "position": { - "start": { - "line": 854, - "column": 56, - "offset": 26476 - }, - "end": { - "line": 854, - "column": 75, - "offset": 26495 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 854, - "column": 56, - "offset": 26476 - }, - "end": { - "line": 854, - "column": 75, - "offset": 26495 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\".", - "position": { - "start": { - "line": 854, - "column": 75, - "offset": 26495 - }, "end": { "line": 854, "column": 77, "offset": 26497 - }, - "indent": [] + } } } ], @@ -12720,8 +11089,7 @@ "line": 854, "column": 77, "offset": 26497 - }, - "indent": [] + } } }, { @@ -12740,12 +11108,7 @@ "line": 859, "column": 48, "offset": 26748 - }, - "indent": [ - 1, - 1, - 1 - ] + } } } ], @@ -12759,12 +11122,7 @@ "line": 859, "column": 48, "offset": 26748 - }, - "indent": [ - 1, - 1, - 1 - ] + } } }, { @@ -12780,8 +11138,7 @@ "line": 863, "column": 42, "offset": 26793 - }, - "indent": [] + } } }, { @@ -12800,12 +11157,7 @@ "line": 868, "column": 39, "offset": 27036 - }, - "indent": [ - 1, - 1, - 1 - ] + } } }, { @@ -12821,8 +11173,7 @@ "line": 868, "column": 45, "offset": 27042 - }, - "indent": [] + } } }, { @@ -12838,10 +11189,7 @@ "line": 869, "column": 33, "offset": 27101 - }, - "indent": [ - 1 - ] + } } } ], @@ -12855,13 +11203,7 @@ "line": 869, "column": 33, "offset": 27101 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] + } } }, { @@ -12879,8 +11221,7 @@ "line": 871, "column": 26, "offset": 27128 - }, - "indent": [] + } } }, { @@ -12899,8 +11240,7 @@ "line": 873, "column": 66, "offset": 27195 - }, - "indent": [] + } } } ], @@ -12914,8 +11254,7 @@ "line": 873, "column": 66, "offset": 27195 - }, - "indent": [] + } } }, { @@ -12933,20 +11272,7 @@ "line": 886, "column": 25, "offset": 27423 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] + } } } ], diff --git a/test/fixtures/tree/markdown-documentation-syntax.nogfm.commonmark.json b/test/fixtures/tree/markdown-documentation-syntax.nogfm.commonmark.json deleted file mode 100644 index 5716df062..000000000 --- a/test/fixtures/tree/markdown-documentation-syntax.nogfm.commonmark.json +++ /dev/null @@ -1,13393 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Markdown: Syntax", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 17, - "offset": 16 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 17, - "offset": 33 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 35 - }, - "end": { - "line": 10, - "column": 6, - "offset": 508 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#overview", - "children": [ - { - "type": "text", - "value": "Overview", - "position": { - "start": { - "line": 13, - "column": 6, - "offset": 516 - }, - "end": { - "line": 13, - "column": 14, - "offset": 524 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 5, - "offset": 515 - }, - "end": { - "line": 13, - "column": 26, - "offset": 536 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 5, - "offset": 515 - }, - "end": { - "line": 13, - "column": 26, - "offset": 536 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#philosophy", - "children": [ - { - "type": "text", - "value": "Philosophy", - "position": { - "start": { - "line": 14, - "column": 10, - "offset": 546 - }, - "end": { - "line": 14, - "column": 20, - "offset": 556 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 9, - "offset": 545 - }, - "end": { - "line": 14, - "column": 34, - "offset": 570 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 9, - "offset": 545 - }, - "end": { - "line": 14, - "column": 34, - "offset": 570 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 5, - "offset": 541 - }, - "end": { - "line": 14, - "column": 34, - "offset": 570 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#html", - "children": [ - { - "type": "text", - "value": "Inline HTML", - "position": { - "start": { - "line": 15, - "column": 10, - "offset": 580 - }, - "end": { - "line": 15, - "column": 21, - "offset": 591 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 9, - "offset": 579 - }, - "end": { - "line": 15, - "column": 29, - "offset": 599 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 9, - "offset": 579 - }, - "end": { - "line": 15, - "column": 29, - "offset": 599 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 5, - "offset": 575 - }, - "end": { - "line": 15, - "column": 29, - "offset": 599 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#autoescape", - "children": [ - { - "type": "text", - "value": "Automatic Escaping for Special Characters", - "position": { - "start": { - "line": 16, - "column": 10, - "offset": 609 - }, - "end": { - "line": 16, - "column": 51, - "offset": 650 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 9, - "offset": 608 - }, - "end": { - "line": 16, - "column": 65, - "offset": 664 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 9, - "offset": 608 - }, - "end": { - "line": 16, - "column": 65, - "offset": 664 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 5, - "offset": 604 - }, - "end": { - "line": 16, - "column": 65, - "offset": 664 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 5, - "offset": 541 - }, - "end": { - "line": 16, - "column": 65, - "offset": 664 - }, - "indent": [ - 5, - 5 - ] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 511 - }, - "end": { - "line": 16, - "column": 65, - "offset": 664 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#block", - "children": [ - { - "type": "text", - "value": "Block Elements", - "position": { - "start": { - "line": 17, - "column": 6, - "offset": 670 - }, - "end": { - "line": 17, - "column": 20, - "offset": 684 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 17, - "column": 5, - "offset": 669 - }, - "end": { - "line": 17, - "column": 29, - "offset": 693 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 17, - "column": 5, - "offset": 669 - }, - "end": { - "line": 17, - "column": 29, - "offset": 693 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#p", - "children": [ - { - "type": "text", - "value": "Paragraphs and Line Breaks", - "position": { - "start": { - "line": 18, - "column": 10, - "offset": 703 - }, - "end": { - "line": 18, - "column": 36, - "offset": 729 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 9, - "offset": 702 - }, - "end": { - "line": 18, - "column": 41, - "offset": 734 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 9, - "offset": 702 - }, - "end": { - "line": 18, - "column": 41, - "offset": 734 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 5, - "offset": 698 - }, - "end": { - "line": 18, - "column": 41, - "offset": 734 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#header", - "children": [ - { - "type": "text", - "value": "Headers", - "position": { - "start": { - "line": 19, - "column": 10, - "offset": 744 - }, - "end": { - "line": 19, - "column": 17, - "offset": 751 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 19, - "column": 9, - "offset": 743 - }, - "end": { - "line": 19, - "column": 27, - "offset": 761 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 19, - "column": 9, - "offset": 743 - }, - "end": { - "line": 19, - "column": 27, - "offset": 761 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 19, - "column": 5, - "offset": 739 - }, - "end": { - "line": 19, - "column": 27, - "offset": 761 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#blockquote", - "children": [ - { - "type": "text", - "value": "Blockquotes", - "position": { - "start": { - "line": 20, - "column": 10, - "offset": 771 - }, - "end": { - "line": 20, - "column": 21, - "offset": 782 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 9, - "offset": 770 - }, - "end": { - "line": 20, - "column": 35, - "offset": 796 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 9, - "offset": 770 - }, - "end": { - "line": 20, - "column": 35, - "offset": 796 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 5, - "offset": 766 - }, - "end": { - "line": 20, - "column": 35, - "offset": 796 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#list", - "children": [ - { - "type": "text", - "value": "Lists", - "position": { - "start": { - "line": 21, - "column": 10, - "offset": 806 - }, - "end": { - "line": 21, - "column": 15, - "offset": 811 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 9, - "offset": 805 - }, - "end": { - "line": 21, - "column": 23, - "offset": 819 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 9, - "offset": 805 - }, - "end": { - "line": 21, - "column": 23, - "offset": 819 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 5, - "offset": 801 - }, - "end": { - "line": 21, - "column": 23, - "offset": 819 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#precode", - "children": [ - { - "type": "text", - "value": "Code Blocks", - "position": { - "start": { - "line": 22, - "column": 10, - "offset": 829 - }, - "end": { - "line": 22, - "column": 21, - "offset": 840 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 22, - "column": 9, - "offset": 828 - }, - "end": { - "line": 22, - "column": 32, - "offset": 851 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 22, - "column": 9, - "offset": 828 - }, - "end": { - "line": 22, - "column": 32, - "offset": 851 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 22, - "column": 5, - "offset": 824 - }, - "end": { - "line": 22, - "column": 32, - "offset": 851 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#hr", - "children": [ - { - "type": "text", - "value": "Horizontal Rules", - "position": { - "start": { - "line": 23, - "column": 10, - "offset": 861 - }, - "end": { - "line": 23, - "column": 26, - "offset": 877 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 23, - "column": 9, - "offset": 860 - }, - "end": { - "line": 23, - "column": 32, - "offset": 883 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 23, - "column": 9, - "offset": 860 - }, - "end": { - "line": 23, - "column": 32, - "offset": 883 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 23, - "column": 5, - "offset": 856 - }, - "end": { - "line": 23, - "column": 32, - "offset": 883 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 5, - "offset": 698 - }, - "end": { - "line": 23, - "column": 32, - "offset": 883 - }, - "indent": [ - 5, - 5, - 5, - 5, - 5 - ] - } - } - ], - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 665 - }, - "end": { - "line": 23, - "column": 32, - "offset": 883 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#span", - "children": [ - { - "type": "text", - "value": "Span Elements", - "position": { - "start": { - "line": 24, - "column": 6, - "offset": 889 - }, - "end": { - "line": 24, - "column": 19, - "offset": 902 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 24, - "column": 5, - "offset": 888 - }, - "end": { - "line": 24, - "column": 27, - "offset": 910 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 24, - "column": 5, - "offset": 888 - }, - "end": { - "line": 24, - "column": 27, - "offset": 910 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#link", - "children": [ - { - "type": "text", - "value": "Links", - "position": { - "start": { - "line": 25, - "column": 10, - "offset": 920 - }, - "end": { - "line": 25, - "column": 15, - "offset": 925 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 25, - "column": 9, - "offset": 919 - }, - "end": { - "line": 25, - "column": 23, - "offset": 933 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 25, - "column": 9, - "offset": 919 - }, - "end": { - "line": 25, - "column": 23, - "offset": 933 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 25, - "column": 5, - "offset": 915 - }, - "end": { - "line": 25, - "column": 23, - "offset": 933 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#em", - "children": [ - { - "type": "text", - "value": "Emphasis", - "position": { - "start": { - "line": 26, - "column": 10, - "offset": 943 - }, - "end": { - "line": 26, - "column": 18, - "offset": 951 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 26, - "column": 9, - "offset": 942 - }, - "end": { - "line": 26, - "column": 24, - "offset": 957 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 26, - "column": 9, - "offset": 942 - }, - "end": { - "line": 26, - "column": 24, - "offset": 957 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 26, - "column": 5, - "offset": 938 - }, - "end": { - "line": 26, - "column": 24, - "offset": 957 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#code", - "children": [ - { - "type": "text", - "value": "Code", - "position": { - "start": { - "line": 27, - "column": 10, - "offset": 967 - }, - "end": { - "line": 27, - "column": 14, - "offset": 971 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 27, - "column": 9, - "offset": 966 - }, - "end": { - "line": 27, - "column": 22, - "offset": 979 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 27, - "column": 9, - "offset": 966 - }, - "end": { - "line": 27, - "column": 22, - "offset": 979 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 27, - "column": 5, - "offset": 962 - }, - "end": { - "line": 27, - "column": 22, - "offset": 979 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#img", - "children": [ - { - "type": "text", - "value": "Images", - "position": { - "start": { - "line": 28, - "column": 10, - "offset": 989 - }, - "end": { - "line": 28, - "column": 16, - "offset": 995 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 28, - "column": 9, - "offset": 988 - }, - "end": { - "line": 28, - "column": 23, - "offset": 1002 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 28, - "column": 9, - "offset": 988 - }, - "end": { - "line": 28, - "column": 23, - "offset": 1002 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 28, - "column": 5, - "offset": 984 - }, - "end": { - "line": 28, - "column": 23, - "offset": 1002 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 25, - "column": 5, - "offset": 915 - }, - "end": { - "line": 28, - "column": 23, - "offset": 1002 - }, - "indent": [ - 5, - 5, - 5 - ] - } - } - ], - "position": { - "start": { - "line": 24, - "column": 1, - "offset": 884 - }, - "end": { - "line": 28, - "column": 23, - "offset": 1002 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#misc", - "children": [ - { - "type": "text", - "value": "Miscellaneous", - "position": { - "start": { - "line": 29, - "column": 6, - "offset": 1008 - }, - "end": { - "line": 29, - "column": 19, - "offset": 1021 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 29, - "column": 5, - "offset": 1007 - }, - "end": { - "line": 29, - "column": 27, - "offset": 1029 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 29, - "column": 5, - "offset": 1007 - }, - "end": { - "line": 29, - "column": 27, - "offset": 1029 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#backslash", - "children": [ - { - "type": "text", - "value": "Backslash Escapes", - "position": { - "start": { - "line": 30, - "column": 10, - "offset": 1039 - }, - "end": { - "line": 30, - "column": 27, - "offset": 1056 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 30, - "column": 9, - "offset": 1038 - }, - "end": { - "line": 30, - "column": 40, - "offset": 1069 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 30, - "column": 9, - "offset": 1038 - }, - "end": { - "line": 30, - "column": 40, - "offset": 1069 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 30, - "column": 5, - "offset": 1034 - }, - "end": { - "line": 30, - "column": 40, - "offset": 1069 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#autolink", - "children": [ - { - "type": "text", - "value": "Automatic Links", - "position": { - "start": { - "line": 31, - "column": 10, - "offset": 1079 - }, - "end": { - "line": 31, - "column": 25, - "offset": 1094 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 31, - "column": 9, - "offset": 1078 - }, - "end": { - "line": 31, - "column": 37, - "offset": 1106 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 31, - "column": 9, - "offset": 1078 - }, - "end": { - "line": 31, - "column": 37, - "offset": 1106 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 31, - "column": 5, - "offset": 1074 - }, - "end": { - "line": 31, - "column": 37, - "offset": 1106 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 30, - "column": 5, - "offset": 1034 - }, - "end": { - "line": 31, - "column": 37, - "offset": 1106 - }, - "indent": [ - 5 - ] - } - } - ], - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 1003 - }, - "end": { - "line": 31, - "column": 37, - "offset": 1106 - }, - "indent": [ - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 511 - }, - "end": { - "line": 31, - "column": 37, - "offset": 1106 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "Note:", - "position": { - "start": { - "line": 34, - "column": 3, - "offset": 1111 - }, - "end": { - "line": 34, - "column": 8, - "offset": 1116 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 34, - "column": 1, - "offset": 1109 - }, - "end": { - "line": 34, - "column": 10, - "offset": 1118 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " This document is itself written using Markdown; you\ncan ", - "position": { - "start": { - "line": 34, - "column": 10, - "offset": 1118 - }, - "end": { - "line": 35, - "column": 5, - "offset": 1175 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "linkReference", - "identifier": "src", - "label": "src", - "referenceType": "full", - "children": [ - { - "type": "text", - "value": "see the source for it by adding '.text' to the URL", - "position": { - "start": { - "line": 35, - "column": 6, - "offset": 1176 - }, - "end": { - "line": 35, - "column": 56, - "offset": 1226 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 35, - "column": 5, - "offset": 1175 - }, - "end": { - "line": 35, - "column": 62, - "offset": 1232 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 35, - "column": 62, - "offset": 1232 - }, - "end": { - "line": 35, - "column": 63, - "offset": 1233 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 34, - "column": 1, - "offset": 1109 - }, - "end": { - "line": 35, - "column": 63, - "offset": 1233 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "definition", - "identifier": "src", - "label": "src", - "title": null, - "url": "/projects/markdown/syntax.text", - "position": { - "start": { - "line": 37, - "column": 1, - "offset": 1235 - }, - "end": { - "line": 37, - "column": 40, - "offset": 1274 - }, - "indent": [] - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 39, - "column": 1, - "offset": 1276 - }, - "end": { - "line": 39, - "column": 6, - "offset": 1281 - }, - "indent": [] - } - }, - { - "type": "html", - "value": "

Overview

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

Philosophy

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

Inline HTML

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

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

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

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

Automatic Escaping for Special Characters

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

Block Elements

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

Paragraphs and Line Breaks

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

Headers

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

Blockquotes

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

Lists

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

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

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

  • \n
  • Magic

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

Code Blocks

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

This is a normal paragraph:

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

Here is an example of AppleScript:

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

Horizontal Rules

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

Span Elements

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

Links

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

This is \nan example inline link.

\n\n

This link has no\ntitle attribute.

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

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

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

Emphasis

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

Code

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

Use the printf() function.

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

There is a literal backtick (`) here.

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

A single backtick in a code span: `

\n\n

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

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

Please don't use any <blink> tags.

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

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

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

Images

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

Miscellaneous

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

Automatic Links

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

Backslash Escapes

", - "position": { - "start": { - "line": 863, - "column": 1, - "offset": 26752 - }, - "end": { - "line": 863, - "column": 42, - "offset": 26793 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Markdown allows you to use backslash escapes to generate literal\ncharacters which would otherwise have special meaning in Markdown's\nformatting syntax. For example, if you wanted to surround a word with\nliteral asterisks (instead of an HTML ", - "position": { - "start": { - "line": 865, - "column": 1, - "offset": 26795 - }, - "end": { - "line": 868, - "column": 39, - "offset": 27036 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "inlineCode", - "value": "", - "position": { - "start": { - "line": 868, - "column": 39, - "offset": 27036 - }, - "end": { - "line": 868, - "column": 45, - "offset": 27042 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " tag), you can backslashes\nbefore the asterisks, like this:", - "position": { - "start": { - "line": 868, - "column": 45, - "offset": 27042 - }, - "end": { - "line": 869, - "column": 33, - "offset": 27101 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 865, - "column": 1, - "offset": 26795 - }, - "end": { - "line": 869, - "column": 33, - "offset": 27101 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "\\*literal asterisks\\*", - "position": { - "start": { - "line": 871, - "column": 1, - "offset": 27103 - }, - "end": { - "line": 871, - "column": 26, - "offset": 27128 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Markdown provides backslash escapes for the following characters:", - "position": { - "start": { - "line": 873, - "column": 1, - "offset": 27130 - }, - "end": { - "line": 873, - "column": 66, - "offset": 27195 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 873, - "column": 1, - "offset": 27130 - }, - "end": { - "line": 873, - "column": 66, - "offset": 27195 - }, - "indent": [] - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "\\ backslash\n` backtick\n* asterisk\n_ underscore\n{} curly braces\n[] square brackets\n() parentheses\n# hash mark\n+\tplus sign\n-\tminus sign (hyphen)\n. dot\n! exclamation mark", - "position": { - "start": { - "line": 875, - "column": 1, - "offset": 27197 - }, - "end": { - "line": 886, - "column": 25, - "offset": 27423 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 888, - "column": 1, - "offset": 27425 - } - } -} diff --git a/test/fixtures/tree/markdown-documentation-syntax.nogfm.commonmark.pedantic.json b/test/fixtures/tree/markdown-documentation-syntax.nogfm.commonmark.pedantic.json deleted file mode 100644 index 5716df062..000000000 --- a/test/fixtures/tree/markdown-documentation-syntax.nogfm.commonmark.pedantic.json +++ /dev/null @@ -1,13393 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Markdown: Syntax", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 17, - "offset": 16 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 17, - "offset": 33 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 35 - }, - "end": { - "line": 10, - "column": 6, - "offset": 508 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#overview", - "children": [ - { - "type": "text", - "value": "Overview", - "position": { - "start": { - "line": 13, - "column": 6, - "offset": 516 - }, - "end": { - "line": 13, - "column": 14, - "offset": 524 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 5, - "offset": 515 - }, - "end": { - "line": 13, - "column": 26, - "offset": 536 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 5, - "offset": 515 - }, - "end": { - "line": 13, - "column": 26, - "offset": 536 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#philosophy", - "children": [ - { - "type": "text", - "value": "Philosophy", - "position": { - "start": { - "line": 14, - "column": 10, - "offset": 546 - }, - "end": { - "line": 14, - "column": 20, - "offset": 556 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 9, - "offset": 545 - }, - "end": { - "line": 14, - "column": 34, - "offset": 570 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 9, - "offset": 545 - }, - "end": { - "line": 14, - "column": 34, - "offset": 570 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 5, - "offset": 541 - }, - "end": { - "line": 14, - "column": 34, - "offset": 570 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#html", - "children": [ - { - "type": "text", - "value": "Inline HTML", - "position": { - "start": { - "line": 15, - "column": 10, - "offset": 580 - }, - "end": { - "line": 15, - "column": 21, - "offset": 591 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 9, - "offset": 579 - }, - "end": { - "line": 15, - "column": 29, - "offset": 599 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 9, - "offset": 579 - }, - "end": { - "line": 15, - "column": 29, - "offset": 599 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 5, - "offset": 575 - }, - "end": { - "line": 15, - "column": 29, - "offset": 599 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#autoescape", - "children": [ - { - "type": "text", - "value": "Automatic Escaping for Special Characters", - "position": { - "start": { - "line": 16, - "column": 10, - "offset": 609 - }, - "end": { - "line": 16, - "column": 51, - "offset": 650 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 9, - "offset": 608 - }, - "end": { - "line": 16, - "column": 65, - "offset": 664 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 9, - "offset": 608 - }, - "end": { - "line": 16, - "column": 65, - "offset": 664 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 5, - "offset": 604 - }, - "end": { - "line": 16, - "column": 65, - "offset": 664 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 5, - "offset": 541 - }, - "end": { - "line": 16, - "column": 65, - "offset": 664 - }, - "indent": [ - 5, - 5 - ] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 511 - }, - "end": { - "line": 16, - "column": 65, - "offset": 664 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#block", - "children": [ - { - "type": "text", - "value": "Block Elements", - "position": { - "start": { - "line": 17, - "column": 6, - "offset": 670 - }, - "end": { - "line": 17, - "column": 20, - "offset": 684 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 17, - "column": 5, - "offset": 669 - }, - "end": { - "line": 17, - "column": 29, - "offset": 693 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 17, - "column": 5, - "offset": 669 - }, - "end": { - "line": 17, - "column": 29, - "offset": 693 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#p", - "children": [ - { - "type": "text", - "value": "Paragraphs and Line Breaks", - "position": { - "start": { - "line": 18, - "column": 10, - "offset": 703 - }, - "end": { - "line": 18, - "column": 36, - "offset": 729 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 9, - "offset": 702 - }, - "end": { - "line": 18, - "column": 41, - "offset": 734 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 9, - "offset": 702 - }, - "end": { - "line": 18, - "column": 41, - "offset": 734 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 5, - "offset": 698 - }, - "end": { - "line": 18, - "column": 41, - "offset": 734 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#header", - "children": [ - { - "type": "text", - "value": "Headers", - "position": { - "start": { - "line": 19, - "column": 10, - "offset": 744 - }, - "end": { - "line": 19, - "column": 17, - "offset": 751 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 19, - "column": 9, - "offset": 743 - }, - "end": { - "line": 19, - "column": 27, - "offset": 761 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 19, - "column": 9, - "offset": 743 - }, - "end": { - "line": 19, - "column": 27, - "offset": 761 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 19, - "column": 5, - "offset": 739 - }, - "end": { - "line": 19, - "column": 27, - "offset": 761 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#blockquote", - "children": [ - { - "type": "text", - "value": "Blockquotes", - "position": { - "start": { - "line": 20, - "column": 10, - "offset": 771 - }, - "end": { - "line": 20, - "column": 21, - "offset": 782 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 9, - "offset": 770 - }, - "end": { - "line": 20, - "column": 35, - "offset": 796 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 9, - "offset": 770 - }, - "end": { - "line": 20, - "column": 35, - "offset": 796 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 5, - "offset": 766 - }, - "end": { - "line": 20, - "column": 35, - "offset": 796 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#list", - "children": [ - { - "type": "text", - "value": "Lists", - "position": { - "start": { - "line": 21, - "column": 10, - "offset": 806 - }, - "end": { - "line": 21, - "column": 15, - "offset": 811 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 9, - "offset": 805 - }, - "end": { - "line": 21, - "column": 23, - "offset": 819 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 9, - "offset": 805 - }, - "end": { - "line": 21, - "column": 23, - "offset": 819 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 5, - "offset": 801 - }, - "end": { - "line": 21, - "column": 23, - "offset": 819 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#precode", - "children": [ - { - "type": "text", - "value": "Code Blocks", - "position": { - "start": { - "line": 22, - "column": 10, - "offset": 829 - }, - "end": { - "line": 22, - "column": 21, - "offset": 840 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 22, - "column": 9, - "offset": 828 - }, - "end": { - "line": 22, - "column": 32, - "offset": 851 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 22, - "column": 9, - "offset": 828 - }, - "end": { - "line": 22, - "column": 32, - "offset": 851 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 22, - "column": 5, - "offset": 824 - }, - "end": { - "line": 22, - "column": 32, - "offset": 851 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#hr", - "children": [ - { - "type": "text", - "value": "Horizontal Rules", - "position": { - "start": { - "line": 23, - "column": 10, - "offset": 861 - }, - "end": { - "line": 23, - "column": 26, - "offset": 877 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 23, - "column": 9, - "offset": 860 - }, - "end": { - "line": 23, - "column": 32, - "offset": 883 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 23, - "column": 9, - "offset": 860 - }, - "end": { - "line": 23, - "column": 32, - "offset": 883 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 23, - "column": 5, - "offset": 856 - }, - "end": { - "line": 23, - "column": 32, - "offset": 883 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 5, - "offset": 698 - }, - "end": { - "line": 23, - "column": 32, - "offset": 883 - }, - "indent": [ - 5, - 5, - 5, - 5, - 5 - ] - } - } - ], - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 665 - }, - "end": { - "line": 23, - "column": 32, - "offset": 883 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#span", - "children": [ - { - "type": "text", - "value": "Span Elements", - "position": { - "start": { - "line": 24, - "column": 6, - "offset": 889 - }, - "end": { - "line": 24, - "column": 19, - "offset": 902 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 24, - "column": 5, - "offset": 888 - }, - "end": { - "line": 24, - "column": 27, - "offset": 910 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 24, - "column": 5, - "offset": 888 - }, - "end": { - "line": 24, - "column": 27, - "offset": 910 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#link", - "children": [ - { - "type": "text", - "value": "Links", - "position": { - "start": { - "line": 25, - "column": 10, - "offset": 920 - }, - "end": { - "line": 25, - "column": 15, - "offset": 925 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 25, - "column": 9, - "offset": 919 - }, - "end": { - "line": 25, - "column": 23, - "offset": 933 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 25, - "column": 9, - "offset": 919 - }, - "end": { - "line": 25, - "column": 23, - "offset": 933 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 25, - "column": 5, - "offset": 915 - }, - "end": { - "line": 25, - "column": 23, - "offset": 933 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#em", - "children": [ - { - "type": "text", - "value": "Emphasis", - "position": { - "start": { - "line": 26, - "column": 10, - "offset": 943 - }, - "end": { - "line": 26, - "column": 18, - "offset": 951 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 26, - "column": 9, - "offset": 942 - }, - "end": { - "line": 26, - "column": 24, - "offset": 957 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 26, - "column": 9, - "offset": 942 - }, - "end": { - "line": 26, - "column": 24, - "offset": 957 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 26, - "column": 5, - "offset": 938 - }, - "end": { - "line": 26, - "column": 24, - "offset": 957 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#code", - "children": [ - { - "type": "text", - "value": "Code", - "position": { - "start": { - "line": 27, - "column": 10, - "offset": 967 - }, - "end": { - "line": 27, - "column": 14, - "offset": 971 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 27, - "column": 9, - "offset": 966 - }, - "end": { - "line": 27, - "column": 22, - "offset": 979 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 27, - "column": 9, - "offset": 966 - }, - "end": { - "line": 27, - "column": 22, - "offset": 979 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 27, - "column": 5, - "offset": 962 - }, - "end": { - "line": 27, - "column": 22, - "offset": 979 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#img", - "children": [ - { - "type": "text", - "value": "Images", - "position": { - "start": { - "line": 28, - "column": 10, - "offset": 989 - }, - "end": { - "line": 28, - "column": 16, - "offset": 995 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 28, - "column": 9, - "offset": 988 - }, - "end": { - "line": 28, - "column": 23, - "offset": 1002 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 28, - "column": 9, - "offset": 988 - }, - "end": { - "line": 28, - "column": 23, - "offset": 1002 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 28, - "column": 5, - "offset": 984 - }, - "end": { - "line": 28, - "column": 23, - "offset": 1002 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 25, - "column": 5, - "offset": 915 - }, - "end": { - "line": 28, - "column": 23, - "offset": 1002 - }, - "indent": [ - 5, - 5, - 5 - ] - } - } - ], - "position": { - "start": { - "line": 24, - "column": 1, - "offset": 884 - }, - "end": { - "line": 28, - "column": 23, - "offset": 1002 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#misc", - "children": [ - { - "type": "text", - "value": "Miscellaneous", - "position": { - "start": { - "line": 29, - "column": 6, - "offset": 1008 - }, - "end": { - "line": 29, - "column": 19, - "offset": 1021 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 29, - "column": 5, - "offset": 1007 - }, - "end": { - "line": 29, - "column": 27, - "offset": 1029 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 29, - "column": 5, - "offset": 1007 - }, - "end": { - "line": 29, - "column": 27, - "offset": 1029 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#backslash", - "children": [ - { - "type": "text", - "value": "Backslash Escapes", - "position": { - "start": { - "line": 30, - "column": 10, - "offset": 1039 - }, - "end": { - "line": 30, - "column": 27, - "offset": 1056 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 30, - "column": 9, - "offset": 1038 - }, - "end": { - "line": 30, - "column": 40, - "offset": 1069 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 30, - "column": 9, - "offset": 1038 - }, - "end": { - "line": 30, - "column": 40, - "offset": 1069 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 30, - "column": 5, - "offset": 1034 - }, - "end": { - "line": 30, - "column": 40, - "offset": 1069 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#autolink", - "children": [ - { - "type": "text", - "value": "Automatic Links", - "position": { - "start": { - "line": 31, - "column": 10, - "offset": 1079 - }, - "end": { - "line": 31, - "column": 25, - "offset": 1094 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 31, - "column": 9, - "offset": 1078 - }, - "end": { - "line": 31, - "column": 37, - "offset": 1106 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 31, - "column": 9, - "offset": 1078 - }, - "end": { - "line": 31, - "column": 37, - "offset": 1106 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 31, - "column": 5, - "offset": 1074 - }, - "end": { - "line": 31, - "column": 37, - "offset": 1106 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 30, - "column": 5, - "offset": 1034 - }, - "end": { - "line": 31, - "column": 37, - "offset": 1106 - }, - "indent": [ - 5 - ] - } - } - ], - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 1003 - }, - "end": { - "line": 31, - "column": 37, - "offset": 1106 - }, - "indent": [ - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 511 - }, - "end": { - "line": 31, - "column": 37, - "offset": 1106 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "Note:", - "position": { - "start": { - "line": 34, - "column": 3, - "offset": 1111 - }, - "end": { - "line": 34, - "column": 8, - "offset": 1116 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 34, - "column": 1, - "offset": 1109 - }, - "end": { - "line": 34, - "column": 10, - "offset": 1118 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " This document is itself written using Markdown; you\ncan ", - "position": { - "start": { - "line": 34, - "column": 10, - "offset": 1118 - }, - "end": { - "line": 35, - "column": 5, - "offset": 1175 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "linkReference", - "identifier": "src", - "label": "src", - "referenceType": "full", - "children": [ - { - "type": "text", - "value": "see the source for it by adding '.text' to the URL", - "position": { - "start": { - "line": 35, - "column": 6, - "offset": 1176 - }, - "end": { - "line": 35, - "column": 56, - "offset": 1226 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 35, - "column": 5, - "offset": 1175 - }, - "end": { - "line": 35, - "column": 62, - "offset": 1232 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 35, - "column": 62, - "offset": 1232 - }, - "end": { - "line": 35, - "column": 63, - "offset": 1233 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 34, - "column": 1, - "offset": 1109 - }, - "end": { - "line": 35, - "column": 63, - "offset": 1233 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "definition", - "identifier": "src", - "label": "src", - "title": null, - "url": "/projects/markdown/syntax.text", - "position": { - "start": { - "line": 37, - "column": 1, - "offset": 1235 - }, - "end": { - "line": 37, - "column": 40, - "offset": 1274 - }, - "indent": [] - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 39, - "column": 1, - "offset": 1276 - }, - "end": { - "line": 39, - "column": 6, - "offset": 1281 - }, - "indent": [] - } - }, - { - "type": "html", - "value": "

Overview

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

Philosophy

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

Inline HTML

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

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

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

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

Automatic Escaping for Special Characters

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

Block Elements

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

Paragraphs and Line Breaks

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

Headers

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

Blockquotes

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

Lists

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

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

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

  • \n
  • Magic

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

Code Blocks

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

This is a normal paragraph:

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

Here is an example of AppleScript:

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

Horizontal Rules

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

Span Elements

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

Links

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

This is \nan example inline link.

\n\n

This link has no\ntitle attribute.

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

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

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

Emphasis

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

Code

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

Use the printf() function.

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

There is a literal backtick (`) here.

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

A single backtick in a code span: `

\n\n

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

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

Please don't use any <blink> tags.

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

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

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

Images

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

Miscellaneous

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

Automatic Links

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

Backslash Escapes

", - "position": { - "start": { - "line": 863, - "column": 1, - "offset": 26752 - }, - "end": { - "line": 863, - "column": 42, - "offset": 26793 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Markdown allows you to use backslash escapes to generate literal\ncharacters which would otherwise have special meaning in Markdown's\nformatting syntax. For example, if you wanted to surround a word with\nliteral asterisks (instead of an HTML ", - "position": { - "start": { - "line": 865, - "column": 1, - "offset": 26795 - }, - "end": { - "line": 868, - "column": 39, - "offset": 27036 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "inlineCode", - "value": "", - "position": { - "start": { - "line": 868, - "column": 39, - "offset": 27036 - }, - "end": { - "line": 868, - "column": 45, - "offset": 27042 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " tag), you can backslashes\nbefore the asterisks, like this:", - "position": { - "start": { - "line": 868, - "column": 45, - "offset": 27042 - }, - "end": { - "line": 869, - "column": 33, - "offset": 27101 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 865, - "column": 1, - "offset": 26795 - }, - "end": { - "line": 869, - "column": 33, - "offset": 27101 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "\\*literal asterisks\\*", - "position": { - "start": { - "line": 871, - "column": 1, - "offset": 27103 - }, - "end": { - "line": 871, - "column": 26, - "offset": 27128 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Markdown provides backslash escapes for the following characters:", - "position": { - "start": { - "line": 873, - "column": 1, - "offset": 27130 - }, - "end": { - "line": 873, - "column": 66, - "offset": 27195 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 873, - "column": 1, - "offset": 27130 - }, - "end": { - "line": 873, - "column": 66, - "offset": 27195 - }, - "indent": [] - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "\\ backslash\n` backtick\n* asterisk\n_ underscore\n{} curly braces\n[] square brackets\n() parentheses\n# hash mark\n+\tplus sign\n-\tminus sign (hyphen)\n. dot\n! exclamation mark", - "position": { - "start": { - "line": 875, - "column": 1, - "offset": 27197 - }, - "end": { - "line": 886, - "column": 25, - "offset": 27423 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 888, - "column": 1, - "offset": 27425 - } - } -} diff --git a/test/fixtures/tree/markdown-documentation-syntax.nogfm.json b/test/fixtures/tree/markdown-documentation-syntax.nogfm.json deleted file mode 100644 index a43a48166..000000000 --- a/test/fixtures/tree/markdown-documentation-syntax.nogfm.json +++ /dev/null @@ -1,12911 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Markdown: Syntax", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 17, - "offset": 16 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 17, - "offset": 33 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 35 - }, - "end": { - "line": 10, - "column": 6, - "offset": 508 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#overview", - "children": [ - { - "type": "text", - "value": "Overview", - "position": { - "start": { - "line": 13, - "column": 6, - "offset": 516 - }, - "end": { - "line": 13, - "column": 14, - "offset": 524 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 5, - "offset": 515 - }, - "end": { - "line": 13, - "column": 26, - "offset": 536 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 5, - "offset": 515 - }, - "end": { - "line": 13, - "column": 26, - "offset": 536 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#philosophy", - "children": [ - { - "type": "text", - "value": "Philosophy", - "position": { - "start": { - "line": 14, - "column": 10, - "offset": 546 - }, - "end": { - "line": 14, - "column": 20, - "offset": 556 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 9, - "offset": 545 - }, - "end": { - "line": 14, - "column": 34, - "offset": 570 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 9, - "offset": 545 - }, - "end": { - "line": 14, - "column": 34, - "offset": 570 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 5, - "offset": 541 - }, - "end": { - "line": 14, - "column": 34, - "offset": 570 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#html", - "children": [ - { - "type": "text", - "value": "Inline HTML", - "position": { - "start": { - "line": 15, - "column": 10, - "offset": 580 - }, - "end": { - "line": 15, - "column": 21, - "offset": 591 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 9, - "offset": 579 - }, - "end": { - "line": 15, - "column": 29, - "offset": 599 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 9, - "offset": 579 - }, - "end": { - "line": 15, - "column": 29, - "offset": 599 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 5, - "offset": 575 - }, - "end": { - "line": 15, - "column": 29, - "offset": 599 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#autoescape", - "children": [ - { - "type": "text", - "value": "Automatic Escaping for Special Characters", - "position": { - "start": { - "line": 16, - "column": 10, - "offset": 609 - }, - "end": { - "line": 16, - "column": 51, - "offset": 650 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 9, - "offset": 608 - }, - "end": { - "line": 16, - "column": 65, - "offset": 664 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 9, - "offset": 608 - }, - "end": { - "line": 16, - "column": 65, - "offset": 664 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 5, - "offset": 604 - }, - "end": { - "line": 16, - "column": 65, - "offset": 664 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 5, - "offset": 541 - }, - "end": { - "line": 16, - "column": 65, - "offset": 664 - }, - "indent": [ - 5, - 5 - ] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 511 - }, - "end": { - "line": 16, - "column": 65, - "offset": 664 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#block", - "children": [ - { - "type": "text", - "value": "Block Elements", - "position": { - "start": { - "line": 17, - "column": 6, - "offset": 670 - }, - "end": { - "line": 17, - "column": 20, - "offset": 684 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 17, - "column": 5, - "offset": 669 - }, - "end": { - "line": 17, - "column": 29, - "offset": 693 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 17, - "column": 5, - "offset": 669 - }, - "end": { - "line": 17, - "column": 29, - "offset": 693 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#p", - "children": [ - { - "type": "text", - "value": "Paragraphs and Line Breaks", - "position": { - "start": { - "line": 18, - "column": 10, - "offset": 703 - }, - "end": { - "line": 18, - "column": 36, - "offset": 729 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 9, - "offset": 702 - }, - "end": { - "line": 18, - "column": 41, - "offset": 734 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 9, - "offset": 702 - }, - "end": { - "line": 18, - "column": 41, - "offset": 734 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 5, - "offset": 698 - }, - "end": { - "line": 18, - "column": 41, - "offset": 734 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#header", - "children": [ - { - "type": "text", - "value": "Headers", - "position": { - "start": { - "line": 19, - "column": 10, - "offset": 744 - }, - "end": { - "line": 19, - "column": 17, - "offset": 751 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 19, - "column": 9, - "offset": 743 - }, - "end": { - "line": 19, - "column": 27, - "offset": 761 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 19, - "column": 9, - "offset": 743 - }, - "end": { - "line": 19, - "column": 27, - "offset": 761 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 19, - "column": 5, - "offset": 739 - }, - "end": { - "line": 19, - "column": 27, - "offset": 761 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#blockquote", - "children": [ - { - "type": "text", - "value": "Blockquotes", - "position": { - "start": { - "line": 20, - "column": 10, - "offset": 771 - }, - "end": { - "line": 20, - "column": 21, - "offset": 782 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 9, - "offset": 770 - }, - "end": { - "line": 20, - "column": 35, - "offset": 796 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 9, - "offset": 770 - }, - "end": { - "line": 20, - "column": 35, - "offset": 796 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 5, - "offset": 766 - }, - "end": { - "line": 20, - "column": 35, - "offset": 796 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#list", - "children": [ - { - "type": "text", - "value": "Lists", - "position": { - "start": { - "line": 21, - "column": 10, - "offset": 806 - }, - "end": { - "line": 21, - "column": 15, - "offset": 811 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 9, - "offset": 805 - }, - "end": { - "line": 21, - "column": 23, - "offset": 819 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 9, - "offset": 805 - }, - "end": { - "line": 21, - "column": 23, - "offset": 819 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 5, - "offset": 801 - }, - "end": { - "line": 21, - "column": 23, - "offset": 819 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#precode", - "children": [ - { - "type": "text", - "value": "Code Blocks", - "position": { - "start": { - "line": 22, - "column": 10, - "offset": 829 - }, - "end": { - "line": 22, - "column": 21, - "offset": 840 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 22, - "column": 9, - "offset": 828 - }, - "end": { - "line": 22, - "column": 32, - "offset": 851 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 22, - "column": 9, - "offset": 828 - }, - "end": { - "line": 22, - "column": 32, - "offset": 851 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 22, - "column": 5, - "offset": 824 - }, - "end": { - "line": 22, - "column": 32, - "offset": 851 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#hr", - "children": [ - { - "type": "text", - "value": "Horizontal Rules", - "position": { - "start": { - "line": 23, - "column": 10, - "offset": 861 - }, - "end": { - "line": 23, - "column": 26, - "offset": 877 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 23, - "column": 9, - "offset": 860 - }, - "end": { - "line": 23, - "column": 32, - "offset": 883 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 23, - "column": 9, - "offset": 860 - }, - "end": { - "line": 23, - "column": 32, - "offset": 883 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 23, - "column": 5, - "offset": 856 - }, - "end": { - "line": 23, - "column": 32, - "offset": 883 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 5, - "offset": 698 - }, - "end": { - "line": 23, - "column": 32, - "offset": 883 - }, - "indent": [ - 5, - 5, - 5, - 5, - 5 - ] - } - } - ], - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 665 - }, - "end": { - "line": 23, - "column": 32, - "offset": 883 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#span", - "children": [ - { - "type": "text", - "value": "Span Elements", - "position": { - "start": { - "line": 24, - "column": 6, - "offset": 889 - }, - "end": { - "line": 24, - "column": 19, - "offset": 902 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 24, - "column": 5, - "offset": 888 - }, - "end": { - "line": 24, - "column": 27, - "offset": 910 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 24, - "column": 5, - "offset": 888 - }, - "end": { - "line": 24, - "column": 27, - "offset": 910 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#link", - "children": [ - { - "type": "text", - "value": "Links", - "position": { - "start": { - "line": 25, - "column": 10, - "offset": 920 - }, - "end": { - "line": 25, - "column": 15, - "offset": 925 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 25, - "column": 9, - "offset": 919 - }, - "end": { - "line": 25, - "column": 23, - "offset": 933 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 25, - "column": 9, - "offset": 919 - }, - "end": { - "line": 25, - "column": 23, - "offset": 933 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 25, - "column": 5, - "offset": 915 - }, - "end": { - "line": 25, - "column": 23, - "offset": 933 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#em", - "children": [ - { - "type": "text", - "value": "Emphasis", - "position": { - "start": { - "line": 26, - "column": 10, - "offset": 943 - }, - "end": { - "line": 26, - "column": 18, - "offset": 951 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 26, - "column": 9, - "offset": 942 - }, - "end": { - "line": 26, - "column": 24, - "offset": 957 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 26, - "column": 9, - "offset": 942 - }, - "end": { - "line": 26, - "column": 24, - "offset": 957 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 26, - "column": 5, - "offset": 938 - }, - "end": { - "line": 26, - "column": 24, - "offset": 957 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#code", - "children": [ - { - "type": "text", - "value": "Code", - "position": { - "start": { - "line": 27, - "column": 10, - "offset": 967 - }, - "end": { - "line": 27, - "column": 14, - "offset": 971 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 27, - "column": 9, - "offset": 966 - }, - "end": { - "line": 27, - "column": 22, - "offset": 979 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 27, - "column": 9, - "offset": 966 - }, - "end": { - "line": 27, - "column": 22, - "offset": 979 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 27, - "column": 5, - "offset": 962 - }, - "end": { - "line": 27, - "column": 22, - "offset": 979 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#img", - "children": [ - { - "type": "text", - "value": "Images", - "position": { - "start": { - "line": 28, - "column": 10, - "offset": 989 - }, - "end": { - "line": 28, - "column": 16, - "offset": 995 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 28, - "column": 9, - "offset": 988 - }, - "end": { - "line": 28, - "column": 23, - "offset": 1002 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 28, - "column": 9, - "offset": 988 - }, - "end": { - "line": 28, - "column": 23, - "offset": 1002 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 28, - "column": 5, - "offset": 984 - }, - "end": { - "line": 28, - "column": 23, - "offset": 1002 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 25, - "column": 5, - "offset": 915 - }, - "end": { - "line": 28, - "column": 23, - "offset": 1002 - }, - "indent": [ - 5, - 5, - 5 - ] - } - } - ], - "position": { - "start": { - "line": 24, - "column": 1, - "offset": 884 - }, - "end": { - "line": 28, - "column": 23, - "offset": 1002 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#misc", - "children": [ - { - "type": "text", - "value": "Miscellaneous", - "position": { - "start": { - "line": 29, - "column": 6, - "offset": 1008 - }, - "end": { - "line": 29, - "column": 19, - "offset": 1021 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 29, - "column": 5, - "offset": 1007 - }, - "end": { - "line": 29, - "column": 27, - "offset": 1029 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 29, - "column": 5, - "offset": 1007 - }, - "end": { - "line": 29, - "column": 27, - "offset": 1029 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#backslash", - "children": [ - { - "type": "text", - "value": "Backslash Escapes", - "position": { - "start": { - "line": 30, - "column": 10, - "offset": 1039 - }, - "end": { - "line": 30, - "column": 27, - "offset": 1056 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 30, - "column": 9, - "offset": 1038 - }, - "end": { - "line": 30, - "column": 40, - "offset": 1069 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 30, - "column": 9, - "offset": 1038 - }, - "end": { - "line": 30, - "column": 40, - "offset": 1069 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 30, - "column": 5, - "offset": 1034 - }, - "end": { - "line": 30, - "column": 40, - "offset": 1069 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#autolink", - "children": [ - { - "type": "text", - "value": "Automatic Links", - "position": { - "start": { - "line": 31, - "column": 10, - "offset": 1079 - }, - "end": { - "line": 31, - "column": 25, - "offset": 1094 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 31, - "column": 9, - "offset": 1078 - }, - "end": { - "line": 31, - "column": 37, - "offset": 1106 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 31, - "column": 9, - "offset": 1078 - }, - "end": { - "line": 31, - "column": 37, - "offset": 1106 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 31, - "column": 5, - "offset": 1074 - }, - "end": { - "line": 31, - "column": 37, - "offset": 1106 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 30, - "column": 5, - "offset": 1034 - }, - "end": { - "line": 31, - "column": 37, - "offset": 1106 - }, - "indent": [ - 5 - ] - } - } - ], - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 1003 - }, - "end": { - "line": 31, - "column": 37, - "offset": 1106 - }, - "indent": [ - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 511 - }, - "end": { - "line": 31, - "column": 37, - "offset": 1106 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "Note:", - "position": { - "start": { - "line": 34, - "column": 3, - "offset": 1111 - }, - "end": { - "line": 34, - "column": 8, - "offset": 1116 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 34, - "column": 1, - "offset": 1109 - }, - "end": { - "line": 34, - "column": 10, - "offset": 1118 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " This document is itself written using Markdown; you\ncan ", - "position": { - "start": { - "line": 34, - "column": 10, - "offset": 1118 - }, - "end": { - "line": 35, - "column": 5, - "offset": 1175 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "linkReference", - "identifier": "src", - "label": "src", - "referenceType": "full", - "children": [ - { - "type": "text", - "value": "see the source for it by adding '.text' to the URL", - "position": { - "start": { - "line": 35, - "column": 6, - "offset": 1176 - }, - "end": { - "line": 35, - "column": 56, - "offset": 1226 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 35, - "column": 5, - "offset": 1175 - }, - "end": { - "line": 35, - "column": 62, - "offset": 1232 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 35, - "column": 62, - "offset": 1232 - }, - "end": { - "line": 35, - "column": 63, - "offset": 1233 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 34, - "column": 1, - "offset": 1109 - }, - "end": { - "line": 35, - "column": 63, - "offset": 1233 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "definition", - "identifier": "src", - "label": "src", - "title": null, - "url": "/projects/markdown/syntax.text", - "position": { - "start": { - "line": 37, - "column": 1, - "offset": 1235 - }, - "end": { - "line": 37, - "column": 40, - "offset": 1274 - }, - "indent": [] - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 39, - "column": 1, - "offset": 1276 - }, - "end": { - "line": 39, - "column": 6, - "offset": 1281 - }, - "indent": [] - } - }, - { - "type": "html", - "value": "

Overview

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

Philosophy

", - "position": { - "start": { - "line": 43, - "column": 1, - "offset": 1316 - }, - "end": { - "line": 43, - "column": 36, - "offset": 1351 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Markdown is intended to be as easy-to-read and easy-to-write as is feasible.", - "position": { - "start": { - "line": 45, - "column": 1, - "offset": 1353 - }, - "end": { - "line": 45, - "column": 77, - "offset": 1429 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 45, - "column": 1, - "offset": 1353 - }, - "end": { - "line": 45, - "column": 77, - "offset": 1429 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Readability, however, is emphasized above all else. A Markdown-formatted\ndocument should be publishable as-is, as plain text, without looking\nlike it's been marked up with tags or formatting instructions. While\nMarkdown's syntax has been influenced by several existing text-to-HTML\nfilters -- including ", - "position": { - "start": { - "line": 47, - "column": 1, - "offset": 1431 - }, - "end": { - "line": 51, - "column": 22, - "offset": 1734 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "linkReference", - "identifier": "1", - "label": "1", - "referenceType": "full", - "children": [ - { - "type": "text", - "value": "Setext", - "position": { - "start": { - "line": 51, - "column": 23, - "offset": 1735 - }, - "end": { - "line": 51, - "column": 29, - "offset": 1741 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 51, - "column": 22, - "offset": 1734 - }, - "end": { - "line": 51, - "column": 34, - "offset": 1746 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ", ", - "position": { - "start": { - "line": 51, - "column": 34, - "offset": 1746 - }, - "end": { - "line": 51, - "column": 36, - "offset": 1748 - }, - "indent": [] - } - }, - { - "type": "linkReference", - "identifier": "2", - "label": "2", - "referenceType": "full", - "children": [ - { - "type": "text", - "value": "atx", - "position": { - "start": { - "line": 51, - "column": 37, - "offset": 1749 - }, - "end": { - "line": 51, - "column": 40, - "offset": 1752 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 51, - "column": 36, - "offset": 1748 - }, - "end": { - "line": 51, - "column": 45, - "offset": 1757 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ", ", - "position": { - "start": { - "line": 51, - "column": 45, - "offset": 1757 - }, - "end": { - "line": 51, - "column": 47, - "offset": 1759 - }, - "indent": [] - } - }, - { - "type": "linkReference", - "identifier": "3", - "label": "3", - "referenceType": "full", - "children": [ - { - "type": "text", - "value": "Textile", - "position": { - "start": { - "line": 51, - "column": 48, - "offset": 1760 - }, - "end": { - "line": 51, - "column": 55, - "offset": 1767 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 51, - "column": 47, - "offset": 1759 - }, - "end": { - "line": 51, - "column": 60, - "offset": 1772 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ", ", - "position": { - "start": { - "line": 51, - "column": 60, - "offset": 1772 - }, - "end": { - "line": 51, - "column": 62, - "offset": 1774 - }, - "indent": [] - } - }, - { - "type": "linkReference", - "identifier": "4", - "label": "4", - "referenceType": "full", - "children": [ - { - "type": "text", - "value": "reStructuredText", - "position": { - "start": { - "line": 51, - "column": 63, - "offset": 1775 - }, - "end": { - "line": 51, - "column": 79, - "offset": 1791 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 51, - "column": 62, - "offset": 1774 - }, - "end": { - "line": 51, - "column": 84, - "offset": 1796 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ",\n", - "position": { - "start": { - "line": 51, - "column": 84, - "offset": 1796 - }, - "end": { - "line": 52, - "column": 1, - "offset": 1798 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "linkReference", - "identifier": "5", - "label": "5", - "referenceType": "full", - "children": [ - { - "type": "text", - "value": "Grutatext", - "position": { - "start": { - "line": 52, - "column": 2, - "offset": 1799 - }, - "end": { - "line": 52, - "column": 11, - "offset": 1808 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 52, - "column": 1, - "offset": 1798 - }, - "end": { - "line": 52, - "column": 16, - "offset": 1813 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ", and ", - "position": { - "start": { - "line": 52, - "column": 16, - "offset": 1813 - }, - "end": { - "line": 52, - "column": 22, - "offset": 1819 - }, - "indent": [] - } - }, - { - "type": "linkReference", - "identifier": "6", - "label": "6", - "referenceType": "full", - "children": [ - { - "type": "text", - "value": "EtText", - "position": { - "start": { - "line": 52, - "column": 23, - "offset": 1820 - }, - "end": { - "line": 52, - "column": 29, - "offset": 1826 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 52, - "column": 22, - "offset": 1819 - }, - "end": { - "line": 52, - "column": 34, - "offset": 1831 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " -- the single biggest source of\ninspiration for Markdown's syntax is the format of plain text email.", - "position": { - "start": { - "line": 52, - "column": 34, - "offset": 1831 - }, - "end": { - "line": 53, - "column": 69, - "offset": 1932 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 47, - "column": 1, - "offset": 1431 - }, - "end": { - "line": 53, - "column": 69, - "offset": 1932 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "definition", - "identifier": "1", - "label": "1", - "title": null, - "url": "http://docutils.sourceforge.net/mirror/setext.html", - "position": { - "start": { - "line": 55, - "column": 1, - "offset": 1934 - }, - "end": { - "line": 55, - "column": 58, - "offset": 1991 - }, - "indent": [] - } - }, - { - "type": "definition", - "identifier": "2", - "label": "2", - "title": null, - "url": "http://www.aaronsw.com/2002/atx/", - "position": { - "start": { - "line": 56, - "column": 1, - "offset": 1992 - }, - "end": { - "line": 56, - "column": 40, - "offset": 2031 - }, - "indent": [] - } - }, - { - "type": "definition", - "identifier": "3", - "label": "3", - "title": null, - "url": "http://textism.com/tools/textile/", - "position": { - "start": { - "line": 57, - "column": 1, - "offset": 2032 - }, - "end": { - "line": 57, - "column": 41, - "offset": 2072 - }, - "indent": [] - } - }, - { - "type": "definition", - "identifier": "4", - "label": "4", - "title": null, - "url": "http://docutils.sourceforge.net/rst.html", - "position": { - "start": { - "line": 58, - "column": 1, - "offset": 2073 - }, - "end": { - "line": 58, - "column": 48, - "offset": 2120 - }, - "indent": [] - } - }, - { - "type": "definition", - "identifier": "5", - "label": "5", - "title": null, - "url": "http://www.triptico.com/software/grutatxt.html", - "position": { - "start": { - "line": 59, - "column": 1, - "offset": 2121 - }, - "end": { - "line": 59, - "column": 54, - "offset": 2174 - }, - "indent": [] - } - }, - { - "type": "definition", - "identifier": "6", - "label": "6", - "title": null, - "url": "http://ettext.taint.org/doc/", - "position": { - "start": { - "line": 60, - "column": 1, - "offset": 2175 - }, - "end": { - "line": 60, - "column": 36, - "offset": 2210 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "To this end, Markdown's syntax is comprised entirely of punctuation\ncharacters, which punctuation characters have been carefully chosen so\nas to look like what they mean. E.g., asterisks around a word actually\nlook like ", - "position": { - "start": { - "line": 62, - "column": 1, - "offset": 2212 - }, - "end": { - "line": 65, - "column": 11, - "offset": 2432 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "text", - "value": "*", - "position": { - "start": { - "line": 65, - "column": 11, - "offset": 2432 - }, - "end": { - "line": 65, - "column": 13, - "offset": 2434 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "emphasis", - "position": { - "start": { - "line": 65, - "column": 13, - "offset": 2434 - }, - "end": { - "line": 65, - "column": 21, - "offset": 2442 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "*", - "position": { - "start": { - "line": 65, - "column": 21, - "offset": 2442 - }, - "end": { - "line": 65, - "column": 23, - "offset": 2444 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ". Markdown lists look like, well, lists. Even\nblockquotes look like quoted passages of text, assuming you've ever\nused email.", - "position": { - "start": { - "line": 65, - "column": 23, - "offset": 2444 - }, - "end": { - "line": 67, - "column": 12, - "offset": 2569 - }, - "indent": [ - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 62, - "column": 1, - "offset": 2212 - }, - "end": { - "line": 67, - "column": 12, - "offset": 2569 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "html", - "value": "

Inline HTML

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

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

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

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

Automatic Escaping for Special Characters

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

Block Elements

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

Paragraphs and Line Breaks

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

Headers

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

Blockquotes

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

Lists

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

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

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

  • \n
  • Magic

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

Code Blocks

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

This is a normal paragraph:

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

Here is an example of AppleScript:

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

Horizontal Rules

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

Span Elements

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

Links

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

This is \nan example inline link.

\n\n

This link has no\ntitle attribute.

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

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

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

Emphasis

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

Code

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

Use the printf() function.

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

There is a literal backtick (`) here.

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

A single backtick in a code span: `

\n\n

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

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

Please don't use any <blink> tags.

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

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

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

Images

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

Miscellaneous

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

Automatic Links

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

Backslash Escapes

", - "position": { - "start": { - "line": 863, - "column": 1, - "offset": 26752 - }, - "end": { - "line": 863, - "column": 42, - "offset": 26793 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Markdown allows you to use backslash escapes to generate literal\ncharacters which would otherwise have special meaning in Markdown's\nformatting syntax. For example, if you wanted to surround a word with\nliteral asterisks (instead of an HTML ", - "position": { - "start": { - "line": 865, - "column": 1, - "offset": 26795 - }, - "end": { - "line": 868, - "column": 39, - "offset": 27036 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "inlineCode", - "value": "", - "position": { - "start": { - "line": 868, - "column": 39, - "offset": 27036 - }, - "end": { - "line": 868, - "column": 45, - "offset": 27042 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " tag), you can backslashes\nbefore the asterisks, like this:", - "position": { - "start": { - "line": 868, - "column": 45, - "offset": 27042 - }, - "end": { - "line": 869, - "column": 33, - "offset": 27101 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 865, - "column": 1, - "offset": 26795 - }, - "end": { - "line": 869, - "column": 33, - "offset": 27101 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "\\*literal asterisks\\*", - "position": { - "start": { - "line": 871, - "column": 1, - "offset": 27103 - }, - "end": { - "line": 871, - "column": 26, - "offset": 27128 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Markdown provides backslash escapes for the following characters:", - "position": { - "start": { - "line": 873, - "column": 1, - "offset": 27130 - }, - "end": { - "line": 873, - "column": 66, - "offset": 27195 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 873, - "column": 1, - "offset": 27130 - }, - "end": { - "line": 873, - "column": 66, - "offset": 27195 - }, - "indent": [] - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "\\ backslash\n` backtick\n* asterisk\n_ underscore\n{} curly braces\n[] square brackets\n() parentheses\n# hash mark\n+\tplus sign\n-\tminus sign (hyphen)\n. dot\n! exclamation mark", - "position": { - "start": { - "line": 875, - "column": 1, - "offset": 27197 - }, - "end": { - "line": 886, - "column": 25, - "offset": 27423 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 888, - "column": 1, - "offset": 27425 - } - } -} diff --git a/test/fixtures/tree/markdown-documentation-syntax.nogfm.pedantic.json b/test/fixtures/tree/markdown-documentation-syntax.nogfm.pedantic.json deleted file mode 100644 index a43a48166..000000000 --- a/test/fixtures/tree/markdown-documentation-syntax.nogfm.pedantic.json +++ /dev/null @@ -1,12911 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Markdown: Syntax", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 17, - "offset": 16 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 17, - "offset": 33 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 35 - }, - "end": { - "line": 10, - "column": 6, - "offset": 508 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#overview", - "children": [ - { - "type": "text", - "value": "Overview", - "position": { - "start": { - "line": 13, - "column": 6, - "offset": 516 - }, - "end": { - "line": 13, - "column": 14, - "offset": 524 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 5, - "offset": 515 - }, - "end": { - "line": 13, - "column": 26, - "offset": 536 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 5, - "offset": 515 - }, - "end": { - "line": 13, - "column": 26, - "offset": 536 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#philosophy", - "children": [ - { - "type": "text", - "value": "Philosophy", - "position": { - "start": { - "line": 14, - "column": 10, - "offset": 546 - }, - "end": { - "line": 14, - "column": 20, - "offset": 556 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 9, - "offset": 545 - }, - "end": { - "line": 14, - "column": 34, - "offset": 570 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 9, - "offset": 545 - }, - "end": { - "line": 14, - "column": 34, - "offset": 570 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 5, - "offset": 541 - }, - "end": { - "line": 14, - "column": 34, - "offset": 570 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#html", - "children": [ - { - "type": "text", - "value": "Inline HTML", - "position": { - "start": { - "line": 15, - "column": 10, - "offset": 580 - }, - "end": { - "line": 15, - "column": 21, - "offset": 591 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 9, - "offset": 579 - }, - "end": { - "line": 15, - "column": 29, - "offset": 599 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 9, - "offset": 579 - }, - "end": { - "line": 15, - "column": 29, - "offset": 599 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 5, - "offset": 575 - }, - "end": { - "line": 15, - "column": 29, - "offset": 599 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#autoescape", - "children": [ - { - "type": "text", - "value": "Automatic Escaping for Special Characters", - "position": { - "start": { - "line": 16, - "column": 10, - "offset": 609 - }, - "end": { - "line": 16, - "column": 51, - "offset": 650 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 9, - "offset": 608 - }, - "end": { - "line": 16, - "column": 65, - "offset": 664 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 9, - "offset": 608 - }, - "end": { - "line": 16, - "column": 65, - "offset": 664 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 5, - "offset": 604 - }, - "end": { - "line": 16, - "column": 65, - "offset": 664 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 5, - "offset": 541 - }, - "end": { - "line": 16, - "column": 65, - "offset": 664 - }, - "indent": [ - 5, - 5 - ] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 511 - }, - "end": { - "line": 16, - "column": 65, - "offset": 664 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#block", - "children": [ - { - "type": "text", - "value": "Block Elements", - "position": { - "start": { - "line": 17, - "column": 6, - "offset": 670 - }, - "end": { - "line": 17, - "column": 20, - "offset": 684 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 17, - "column": 5, - "offset": 669 - }, - "end": { - "line": 17, - "column": 29, - "offset": 693 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 17, - "column": 5, - "offset": 669 - }, - "end": { - "line": 17, - "column": 29, - "offset": 693 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#p", - "children": [ - { - "type": "text", - "value": "Paragraphs and Line Breaks", - "position": { - "start": { - "line": 18, - "column": 10, - "offset": 703 - }, - "end": { - "line": 18, - "column": 36, - "offset": 729 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 9, - "offset": 702 - }, - "end": { - "line": 18, - "column": 41, - "offset": 734 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 9, - "offset": 702 - }, - "end": { - "line": 18, - "column": 41, - "offset": 734 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 5, - "offset": 698 - }, - "end": { - "line": 18, - "column": 41, - "offset": 734 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#header", - "children": [ - { - "type": "text", - "value": "Headers", - "position": { - "start": { - "line": 19, - "column": 10, - "offset": 744 - }, - "end": { - "line": 19, - "column": 17, - "offset": 751 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 19, - "column": 9, - "offset": 743 - }, - "end": { - "line": 19, - "column": 27, - "offset": 761 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 19, - "column": 9, - "offset": 743 - }, - "end": { - "line": 19, - "column": 27, - "offset": 761 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 19, - "column": 5, - "offset": 739 - }, - "end": { - "line": 19, - "column": 27, - "offset": 761 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#blockquote", - "children": [ - { - "type": "text", - "value": "Blockquotes", - "position": { - "start": { - "line": 20, - "column": 10, - "offset": 771 - }, - "end": { - "line": 20, - "column": 21, - "offset": 782 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 9, - "offset": 770 - }, - "end": { - "line": 20, - "column": 35, - "offset": 796 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 9, - "offset": 770 - }, - "end": { - "line": 20, - "column": 35, - "offset": 796 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 5, - "offset": 766 - }, - "end": { - "line": 20, - "column": 35, - "offset": 796 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#list", - "children": [ - { - "type": "text", - "value": "Lists", - "position": { - "start": { - "line": 21, - "column": 10, - "offset": 806 - }, - "end": { - "line": 21, - "column": 15, - "offset": 811 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 9, - "offset": 805 - }, - "end": { - "line": 21, - "column": 23, - "offset": 819 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 9, - "offset": 805 - }, - "end": { - "line": 21, - "column": 23, - "offset": 819 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 5, - "offset": 801 - }, - "end": { - "line": 21, - "column": 23, - "offset": 819 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#precode", - "children": [ - { - "type": "text", - "value": "Code Blocks", - "position": { - "start": { - "line": 22, - "column": 10, - "offset": 829 - }, - "end": { - "line": 22, - "column": 21, - "offset": 840 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 22, - "column": 9, - "offset": 828 - }, - "end": { - "line": 22, - "column": 32, - "offset": 851 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 22, - "column": 9, - "offset": 828 - }, - "end": { - "line": 22, - "column": 32, - "offset": 851 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 22, - "column": 5, - "offset": 824 - }, - "end": { - "line": 22, - "column": 32, - "offset": 851 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#hr", - "children": [ - { - "type": "text", - "value": "Horizontal Rules", - "position": { - "start": { - "line": 23, - "column": 10, - "offset": 861 - }, - "end": { - "line": 23, - "column": 26, - "offset": 877 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 23, - "column": 9, - "offset": 860 - }, - "end": { - "line": 23, - "column": 32, - "offset": 883 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 23, - "column": 9, - "offset": 860 - }, - "end": { - "line": 23, - "column": 32, - "offset": 883 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 23, - "column": 5, - "offset": 856 - }, - "end": { - "line": 23, - "column": 32, - "offset": 883 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 5, - "offset": 698 - }, - "end": { - "line": 23, - "column": 32, - "offset": 883 - }, - "indent": [ - 5, - 5, - 5, - 5, - 5 - ] - } - } - ], - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 665 - }, - "end": { - "line": 23, - "column": 32, - "offset": 883 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#span", - "children": [ - { - "type": "text", - "value": "Span Elements", - "position": { - "start": { - "line": 24, - "column": 6, - "offset": 889 - }, - "end": { - "line": 24, - "column": 19, - "offset": 902 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 24, - "column": 5, - "offset": 888 - }, - "end": { - "line": 24, - "column": 27, - "offset": 910 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 24, - "column": 5, - "offset": 888 - }, - "end": { - "line": 24, - "column": 27, - "offset": 910 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#link", - "children": [ - { - "type": "text", - "value": "Links", - "position": { - "start": { - "line": 25, - "column": 10, - "offset": 920 - }, - "end": { - "line": 25, - "column": 15, - "offset": 925 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 25, - "column": 9, - "offset": 919 - }, - "end": { - "line": 25, - "column": 23, - "offset": 933 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 25, - "column": 9, - "offset": 919 - }, - "end": { - "line": 25, - "column": 23, - "offset": 933 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 25, - "column": 5, - "offset": 915 - }, - "end": { - "line": 25, - "column": 23, - "offset": 933 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#em", - "children": [ - { - "type": "text", - "value": "Emphasis", - "position": { - "start": { - "line": 26, - "column": 10, - "offset": 943 - }, - "end": { - "line": 26, - "column": 18, - "offset": 951 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 26, - "column": 9, - "offset": 942 - }, - "end": { - "line": 26, - "column": 24, - "offset": 957 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 26, - "column": 9, - "offset": 942 - }, - "end": { - "line": 26, - "column": 24, - "offset": 957 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 26, - "column": 5, - "offset": 938 - }, - "end": { - "line": 26, - "column": 24, - "offset": 957 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#code", - "children": [ - { - "type": "text", - "value": "Code", - "position": { - "start": { - "line": 27, - "column": 10, - "offset": 967 - }, - "end": { - "line": 27, - "column": 14, - "offset": 971 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 27, - "column": 9, - "offset": 966 - }, - "end": { - "line": 27, - "column": 22, - "offset": 979 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 27, - "column": 9, - "offset": 966 - }, - "end": { - "line": 27, - "column": 22, - "offset": 979 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 27, - "column": 5, - "offset": 962 - }, - "end": { - "line": 27, - "column": 22, - "offset": 979 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#img", - "children": [ - { - "type": "text", - "value": "Images", - "position": { - "start": { - "line": 28, - "column": 10, - "offset": 989 - }, - "end": { - "line": 28, - "column": 16, - "offset": 995 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 28, - "column": 9, - "offset": 988 - }, - "end": { - "line": 28, - "column": 23, - "offset": 1002 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 28, - "column": 9, - "offset": 988 - }, - "end": { - "line": 28, - "column": 23, - "offset": 1002 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 28, - "column": 5, - "offset": 984 - }, - "end": { - "line": 28, - "column": 23, - "offset": 1002 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 25, - "column": 5, - "offset": 915 - }, - "end": { - "line": 28, - "column": 23, - "offset": 1002 - }, - "indent": [ - 5, - 5, - 5 - ] - } - } - ], - "position": { - "start": { - "line": 24, - "column": 1, - "offset": 884 - }, - "end": { - "line": 28, - "column": 23, - "offset": 1002 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#misc", - "children": [ - { - "type": "text", - "value": "Miscellaneous", - "position": { - "start": { - "line": 29, - "column": 6, - "offset": 1008 - }, - "end": { - "line": 29, - "column": 19, - "offset": 1021 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 29, - "column": 5, - "offset": 1007 - }, - "end": { - "line": 29, - "column": 27, - "offset": 1029 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 29, - "column": 5, - "offset": 1007 - }, - "end": { - "line": 29, - "column": 27, - "offset": 1029 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#backslash", - "children": [ - { - "type": "text", - "value": "Backslash Escapes", - "position": { - "start": { - "line": 30, - "column": 10, - "offset": 1039 - }, - "end": { - "line": 30, - "column": 27, - "offset": 1056 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 30, - "column": 9, - "offset": 1038 - }, - "end": { - "line": 30, - "column": 40, - "offset": 1069 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 30, - "column": 9, - "offset": 1038 - }, - "end": { - "line": 30, - "column": 40, - "offset": 1069 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 30, - "column": 5, - "offset": 1034 - }, - "end": { - "line": 30, - "column": 40, - "offset": 1069 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#autolink", - "children": [ - { - "type": "text", - "value": "Automatic Links", - "position": { - "start": { - "line": 31, - "column": 10, - "offset": 1079 - }, - "end": { - "line": 31, - "column": 25, - "offset": 1094 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 31, - "column": 9, - "offset": 1078 - }, - "end": { - "line": 31, - "column": 37, - "offset": 1106 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 31, - "column": 9, - "offset": 1078 - }, - "end": { - "line": 31, - "column": 37, - "offset": 1106 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 31, - "column": 5, - "offset": 1074 - }, - "end": { - "line": 31, - "column": 37, - "offset": 1106 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 30, - "column": 5, - "offset": 1034 - }, - "end": { - "line": 31, - "column": 37, - "offset": 1106 - }, - "indent": [ - 5 - ] - } - } - ], - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 1003 - }, - "end": { - "line": 31, - "column": 37, - "offset": 1106 - }, - "indent": [ - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 511 - }, - "end": { - "line": 31, - "column": 37, - "offset": 1106 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "Note:", - "position": { - "start": { - "line": 34, - "column": 3, - "offset": 1111 - }, - "end": { - "line": 34, - "column": 8, - "offset": 1116 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 34, - "column": 1, - "offset": 1109 - }, - "end": { - "line": 34, - "column": 10, - "offset": 1118 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " This document is itself written using Markdown; you\ncan ", - "position": { - "start": { - "line": 34, - "column": 10, - "offset": 1118 - }, - "end": { - "line": 35, - "column": 5, - "offset": 1175 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "linkReference", - "identifier": "src", - "label": "src", - "referenceType": "full", - "children": [ - { - "type": "text", - "value": "see the source for it by adding '.text' to the URL", - "position": { - "start": { - "line": 35, - "column": 6, - "offset": 1176 - }, - "end": { - "line": 35, - "column": 56, - "offset": 1226 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 35, - "column": 5, - "offset": 1175 - }, - "end": { - "line": 35, - "column": 62, - "offset": 1232 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 35, - "column": 62, - "offset": 1232 - }, - "end": { - "line": 35, - "column": 63, - "offset": 1233 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 34, - "column": 1, - "offset": 1109 - }, - "end": { - "line": 35, - "column": 63, - "offset": 1233 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "definition", - "identifier": "src", - "label": "src", - "title": null, - "url": "/projects/markdown/syntax.text", - "position": { - "start": { - "line": 37, - "column": 1, - "offset": 1235 - }, - "end": { - "line": 37, - "column": 40, - "offset": 1274 - }, - "indent": [] - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 39, - "column": 1, - "offset": 1276 - }, - "end": { - "line": 39, - "column": 6, - "offset": 1281 - }, - "indent": [] - } - }, - { - "type": "html", - "value": "

Overview

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

Philosophy

", - "position": { - "start": { - "line": 43, - "column": 1, - "offset": 1316 - }, - "end": { - "line": 43, - "column": 36, - "offset": 1351 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Markdown is intended to be as easy-to-read and easy-to-write as is feasible.", - "position": { - "start": { - "line": 45, - "column": 1, - "offset": 1353 - }, - "end": { - "line": 45, - "column": 77, - "offset": 1429 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 45, - "column": 1, - "offset": 1353 - }, - "end": { - "line": 45, - "column": 77, - "offset": 1429 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Readability, however, is emphasized above all else. A Markdown-formatted\ndocument should be publishable as-is, as plain text, without looking\nlike it's been marked up with tags or formatting instructions. While\nMarkdown's syntax has been influenced by several existing text-to-HTML\nfilters -- including ", - "position": { - "start": { - "line": 47, - "column": 1, - "offset": 1431 - }, - "end": { - "line": 51, - "column": 22, - "offset": 1734 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "linkReference", - "identifier": "1", - "label": "1", - "referenceType": "full", - "children": [ - { - "type": "text", - "value": "Setext", - "position": { - "start": { - "line": 51, - "column": 23, - "offset": 1735 - }, - "end": { - "line": 51, - "column": 29, - "offset": 1741 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 51, - "column": 22, - "offset": 1734 - }, - "end": { - "line": 51, - "column": 34, - "offset": 1746 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ", ", - "position": { - "start": { - "line": 51, - "column": 34, - "offset": 1746 - }, - "end": { - "line": 51, - "column": 36, - "offset": 1748 - }, - "indent": [] - } - }, - { - "type": "linkReference", - "identifier": "2", - "label": "2", - "referenceType": "full", - "children": [ - { - "type": "text", - "value": "atx", - "position": { - "start": { - "line": 51, - "column": 37, - "offset": 1749 - }, - "end": { - "line": 51, - "column": 40, - "offset": 1752 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 51, - "column": 36, - "offset": 1748 - }, - "end": { - "line": 51, - "column": 45, - "offset": 1757 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ", ", - "position": { - "start": { - "line": 51, - "column": 45, - "offset": 1757 - }, - "end": { - "line": 51, - "column": 47, - "offset": 1759 - }, - "indent": [] - } - }, - { - "type": "linkReference", - "identifier": "3", - "label": "3", - "referenceType": "full", - "children": [ - { - "type": "text", - "value": "Textile", - "position": { - "start": { - "line": 51, - "column": 48, - "offset": 1760 - }, - "end": { - "line": 51, - "column": 55, - "offset": 1767 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 51, - "column": 47, - "offset": 1759 - }, - "end": { - "line": 51, - "column": 60, - "offset": 1772 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ", ", - "position": { - "start": { - "line": 51, - "column": 60, - "offset": 1772 - }, - "end": { - "line": 51, - "column": 62, - "offset": 1774 - }, - "indent": [] - } - }, - { - "type": "linkReference", - "identifier": "4", - "label": "4", - "referenceType": "full", - "children": [ - { - "type": "text", - "value": "reStructuredText", - "position": { - "start": { - "line": 51, - "column": 63, - "offset": 1775 - }, - "end": { - "line": 51, - "column": 79, - "offset": 1791 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 51, - "column": 62, - "offset": 1774 - }, - "end": { - "line": 51, - "column": 84, - "offset": 1796 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ",\n", - "position": { - "start": { - "line": 51, - "column": 84, - "offset": 1796 - }, - "end": { - "line": 52, - "column": 1, - "offset": 1798 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "linkReference", - "identifier": "5", - "label": "5", - "referenceType": "full", - "children": [ - { - "type": "text", - "value": "Grutatext", - "position": { - "start": { - "line": 52, - "column": 2, - "offset": 1799 - }, - "end": { - "line": 52, - "column": 11, - "offset": 1808 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 52, - "column": 1, - "offset": 1798 - }, - "end": { - "line": 52, - "column": 16, - "offset": 1813 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ", and ", - "position": { - "start": { - "line": 52, - "column": 16, - "offset": 1813 - }, - "end": { - "line": 52, - "column": 22, - "offset": 1819 - }, - "indent": [] - } - }, - { - "type": "linkReference", - "identifier": "6", - "label": "6", - "referenceType": "full", - "children": [ - { - "type": "text", - "value": "EtText", - "position": { - "start": { - "line": 52, - "column": 23, - "offset": 1820 - }, - "end": { - "line": 52, - "column": 29, - "offset": 1826 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 52, - "column": 22, - "offset": 1819 - }, - "end": { - "line": 52, - "column": 34, - "offset": 1831 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " -- the single biggest source of\ninspiration for Markdown's syntax is the format of plain text email.", - "position": { - "start": { - "line": 52, - "column": 34, - "offset": 1831 - }, - "end": { - "line": 53, - "column": 69, - "offset": 1932 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 47, - "column": 1, - "offset": 1431 - }, - "end": { - "line": 53, - "column": 69, - "offset": 1932 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "definition", - "identifier": "1", - "label": "1", - "title": null, - "url": "http://docutils.sourceforge.net/mirror/setext.html", - "position": { - "start": { - "line": 55, - "column": 1, - "offset": 1934 - }, - "end": { - "line": 55, - "column": 58, - "offset": 1991 - }, - "indent": [] - } - }, - { - "type": "definition", - "identifier": "2", - "label": "2", - "title": null, - "url": "http://www.aaronsw.com/2002/atx/", - "position": { - "start": { - "line": 56, - "column": 1, - "offset": 1992 - }, - "end": { - "line": 56, - "column": 40, - "offset": 2031 - }, - "indent": [] - } - }, - { - "type": "definition", - "identifier": "3", - "label": "3", - "title": null, - "url": "http://textism.com/tools/textile/", - "position": { - "start": { - "line": 57, - "column": 1, - "offset": 2032 - }, - "end": { - "line": 57, - "column": 41, - "offset": 2072 - }, - "indent": [] - } - }, - { - "type": "definition", - "identifier": "4", - "label": "4", - "title": null, - "url": "http://docutils.sourceforge.net/rst.html", - "position": { - "start": { - "line": 58, - "column": 1, - "offset": 2073 - }, - "end": { - "line": 58, - "column": 48, - "offset": 2120 - }, - "indent": [] - } - }, - { - "type": "definition", - "identifier": "5", - "label": "5", - "title": null, - "url": "http://www.triptico.com/software/grutatxt.html", - "position": { - "start": { - "line": 59, - "column": 1, - "offset": 2121 - }, - "end": { - "line": 59, - "column": 54, - "offset": 2174 - }, - "indent": [] - } - }, - { - "type": "definition", - "identifier": "6", - "label": "6", - "title": null, - "url": "http://ettext.taint.org/doc/", - "position": { - "start": { - "line": 60, - "column": 1, - "offset": 2175 - }, - "end": { - "line": 60, - "column": 36, - "offset": 2210 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "To this end, Markdown's syntax is comprised entirely of punctuation\ncharacters, which punctuation characters have been carefully chosen so\nas to look like what they mean. E.g., asterisks around a word actually\nlook like ", - "position": { - "start": { - "line": 62, - "column": 1, - "offset": 2212 - }, - "end": { - "line": 65, - "column": 11, - "offset": 2432 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "text", - "value": "*", - "position": { - "start": { - "line": 65, - "column": 11, - "offset": 2432 - }, - "end": { - "line": 65, - "column": 13, - "offset": 2434 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "emphasis", - "position": { - "start": { - "line": 65, - "column": 13, - "offset": 2434 - }, - "end": { - "line": 65, - "column": 21, - "offset": 2442 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "*", - "position": { - "start": { - "line": 65, - "column": 21, - "offset": 2442 - }, - "end": { - "line": 65, - "column": 23, - "offset": 2444 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ". Markdown lists look like, well, lists. Even\nblockquotes look like quoted passages of text, assuming you've ever\nused email.", - "position": { - "start": { - "line": 65, - "column": 23, - "offset": 2444 - }, - "end": { - "line": 67, - "column": 12, - "offset": 2569 - }, - "indent": [ - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 62, - "column": 1, - "offset": 2212 - }, - "end": { - "line": 67, - "column": 12, - "offset": 2569 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "html", - "value": "

Inline HTML

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

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

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

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

Automatic Escaping for Special Characters

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

Block Elements

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

Paragraphs and Line Breaks

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

Headers

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

Blockquotes

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

Lists

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

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

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

  • \n
  • Magic

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

Code Blocks

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

This is a normal paragraph:

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

Here is an example of AppleScript:

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

Horizontal Rules

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

Span Elements

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

Links

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

This is \nan example inline link.

\n\n

This link has no\ntitle attribute.

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

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

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

Emphasis

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

Code

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

Use the printf() function.

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

There is a literal backtick (`) here.

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

A single backtick in a code span: `

\n\n

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

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

Please don't use any <blink> tags.

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

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

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

Images

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

Miscellaneous

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

Automatic Links

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

Backslash Escapes

", - "position": { - "start": { - "line": 863, - "column": 1, - "offset": 26752 - }, - "end": { - "line": 863, - "column": 42, - "offset": 26793 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Markdown allows you to use backslash escapes to generate literal\ncharacters which would otherwise have special meaning in Markdown's\nformatting syntax. For example, if you wanted to surround a word with\nliteral asterisks (instead of an HTML ", - "position": { - "start": { - "line": 865, - "column": 1, - "offset": 26795 - }, - "end": { - "line": 868, - "column": 39, - "offset": 27036 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "inlineCode", - "value": "", - "position": { - "start": { - "line": 868, - "column": 39, - "offset": 27036 - }, - "end": { - "line": 868, - "column": 45, - "offset": 27042 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " tag), you can backslashes\nbefore the asterisks, like this:", - "position": { - "start": { - "line": 868, - "column": 45, - "offset": 27042 - }, - "end": { - "line": 869, - "column": 33, - "offset": 27101 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 865, - "column": 1, - "offset": 26795 - }, - "end": { - "line": 869, - "column": 33, - "offset": 27101 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "\\*literal asterisks\\*", - "position": { - "start": { - "line": 871, - "column": 1, - "offset": 27103 - }, - "end": { - "line": 871, - "column": 26, - "offset": 27128 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Markdown provides backslash escapes for the following characters:", - "position": { - "start": { - "line": 873, - "column": 1, - "offset": 27130 - }, - "end": { - "line": 873, - "column": 66, - "offset": 27195 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 873, - "column": 1, - "offset": 27130 - }, - "end": { - "line": 873, - "column": 66, - "offset": 27195 - }, - "indent": [] - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "\\ backslash\n` backtick\n* asterisk\n_ underscore\n{} curly braces\n[] square brackets\n() parentheses\n# hash mark\n+\tplus sign\n-\tminus sign (hyphen)\n. dot\n! exclamation mark", - "position": { - "start": { - "line": 875, - "column": 1, - "offset": 27197 - }, - "end": { - "line": 886, - "column": 25, - "offset": 27423 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 888, - "column": 1, - "offset": 27425 - } - } -} diff --git a/test/fixtures/tree/markdown-documentation-syntax.pedantic.json b/test/fixtures/tree/markdown-documentation-syntax.pedantic.json deleted file mode 100644 index b468dcb91..000000000 --- a/test/fixtures/tree/markdown-documentation-syntax.pedantic.json +++ /dev/null @@ -1,12965 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Markdown: Syntax", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 17, - "offset": 16 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 17, - "offset": 33 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 35 - }, - "end": { - "line": 10, - "column": 6, - "offset": 508 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#overview", - "children": [ - { - "type": "text", - "value": "Overview", - "position": { - "start": { - "line": 13, - "column": 6, - "offset": 516 - }, - "end": { - "line": 13, - "column": 14, - "offset": 524 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 5, - "offset": 515 - }, - "end": { - "line": 13, - "column": 26, - "offset": 536 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 5, - "offset": 515 - }, - "end": { - "line": 13, - "column": 26, - "offset": 536 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#philosophy", - "children": [ - { - "type": "text", - "value": "Philosophy", - "position": { - "start": { - "line": 14, - "column": 10, - "offset": 546 - }, - "end": { - "line": 14, - "column": 20, - "offset": 556 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 9, - "offset": 545 - }, - "end": { - "line": 14, - "column": 34, - "offset": 570 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 9, - "offset": 545 - }, - "end": { - "line": 14, - "column": 34, - "offset": 570 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 5, - "offset": 541 - }, - "end": { - "line": 14, - "column": 34, - "offset": 570 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#html", - "children": [ - { - "type": "text", - "value": "Inline HTML", - "position": { - "start": { - "line": 15, - "column": 10, - "offset": 580 - }, - "end": { - "line": 15, - "column": 21, - "offset": 591 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 9, - "offset": 579 - }, - "end": { - "line": 15, - "column": 29, - "offset": 599 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 9, - "offset": 579 - }, - "end": { - "line": 15, - "column": 29, - "offset": 599 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 5, - "offset": 575 - }, - "end": { - "line": 15, - "column": 29, - "offset": 599 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#autoescape", - "children": [ - { - "type": "text", - "value": "Automatic Escaping for Special Characters", - "position": { - "start": { - "line": 16, - "column": 10, - "offset": 609 - }, - "end": { - "line": 16, - "column": 51, - "offset": 650 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 9, - "offset": 608 - }, - "end": { - "line": 16, - "column": 65, - "offset": 664 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 9, - "offset": 608 - }, - "end": { - "line": 16, - "column": 65, - "offset": 664 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 5, - "offset": 604 - }, - "end": { - "line": 16, - "column": 65, - "offset": 664 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 5, - "offset": 541 - }, - "end": { - "line": 16, - "column": 65, - "offset": 664 - }, - "indent": [ - 5, - 5 - ] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 511 - }, - "end": { - "line": 16, - "column": 65, - "offset": 664 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#block", - "children": [ - { - "type": "text", - "value": "Block Elements", - "position": { - "start": { - "line": 17, - "column": 6, - "offset": 670 - }, - "end": { - "line": 17, - "column": 20, - "offset": 684 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 17, - "column": 5, - "offset": 669 - }, - "end": { - "line": 17, - "column": 29, - "offset": 693 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 17, - "column": 5, - "offset": 669 - }, - "end": { - "line": 17, - "column": 29, - "offset": 693 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#p", - "children": [ - { - "type": "text", - "value": "Paragraphs and Line Breaks", - "position": { - "start": { - "line": 18, - "column": 10, - "offset": 703 - }, - "end": { - "line": 18, - "column": 36, - "offset": 729 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 9, - "offset": 702 - }, - "end": { - "line": 18, - "column": 41, - "offset": 734 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 9, - "offset": 702 - }, - "end": { - "line": 18, - "column": 41, - "offset": 734 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 5, - "offset": 698 - }, - "end": { - "line": 18, - "column": 41, - "offset": 734 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#header", - "children": [ - { - "type": "text", - "value": "Headers", - "position": { - "start": { - "line": 19, - "column": 10, - "offset": 744 - }, - "end": { - "line": 19, - "column": 17, - "offset": 751 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 19, - "column": 9, - "offset": 743 - }, - "end": { - "line": 19, - "column": 27, - "offset": 761 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 19, - "column": 9, - "offset": 743 - }, - "end": { - "line": 19, - "column": 27, - "offset": 761 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 19, - "column": 5, - "offset": 739 - }, - "end": { - "line": 19, - "column": 27, - "offset": 761 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#blockquote", - "children": [ - { - "type": "text", - "value": "Blockquotes", - "position": { - "start": { - "line": 20, - "column": 10, - "offset": 771 - }, - "end": { - "line": 20, - "column": 21, - "offset": 782 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 9, - "offset": 770 - }, - "end": { - "line": 20, - "column": 35, - "offset": 796 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 9, - "offset": 770 - }, - "end": { - "line": 20, - "column": 35, - "offset": 796 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 5, - "offset": 766 - }, - "end": { - "line": 20, - "column": 35, - "offset": 796 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#list", - "children": [ - { - "type": "text", - "value": "Lists", - "position": { - "start": { - "line": 21, - "column": 10, - "offset": 806 - }, - "end": { - "line": 21, - "column": 15, - "offset": 811 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 9, - "offset": 805 - }, - "end": { - "line": 21, - "column": 23, - "offset": 819 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 9, - "offset": 805 - }, - "end": { - "line": 21, - "column": 23, - "offset": 819 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 5, - "offset": 801 - }, - "end": { - "line": 21, - "column": 23, - "offset": 819 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#precode", - "children": [ - { - "type": "text", - "value": "Code Blocks", - "position": { - "start": { - "line": 22, - "column": 10, - "offset": 829 - }, - "end": { - "line": 22, - "column": 21, - "offset": 840 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 22, - "column": 9, - "offset": 828 - }, - "end": { - "line": 22, - "column": 32, - "offset": 851 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 22, - "column": 9, - "offset": 828 - }, - "end": { - "line": 22, - "column": 32, - "offset": 851 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 22, - "column": 5, - "offset": 824 - }, - "end": { - "line": 22, - "column": 32, - "offset": 851 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#hr", - "children": [ - { - "type": "text", - "value": "Horizontal Rules", - "position": { - "start": { - "line": 23, - "column": 10, - "offset": 861 - }, - "end": { - "line": 23, - "column": 26, - "offset": 877 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 23, - "column": 9, - "offset": 860 - }, - "end": { - "line": 23, - "column": 32, - "offset": 883 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 23, - "column": 9, - "offset": 860 - }, - "end": { - "line": 23, - "column": 32, - "offset": 883 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 23, - "column": 5, - "offset": 856 - }, - "end": { - "line": 23, - "column": 32, - "offset": 883 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 5, - "offset": 698 - }, - "end": { - "line": 23, - "column": 32, - "offset": 883 - }, - "indent": [ - 5, - 5, - 5, - 5, - 5 - ] - } - } - ], - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 665 - }, - "end": { - "line": 23, - "column": 32, - "offset": 883 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#span", - "children": [ - { - "type": "text", - "value": "Span Elements", - "position": { - "start": { - "line": 24, - "column": 6, - "offset": 889 - }, - "end": { - "line": 24, - "column": 19, - "offset": 902 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 24, - "column": 5, - "offset": 888 - }, - "end": { - "line": 24, - "column": 27, - "offset": 910 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 24, - "column": 5, - "offset": 888 - }, - "end": { - "line": 24, - "column": 27, - "offset": 910 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#link", - "children": [ - { - "type": "text", - "value": "Links", - "position": { - "start": { - "line": 25, - "column": 10, - "offset": 920 - }, - "end": { - "line": 25, - "column": 15, - "offset": 925 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 25, - "column": 9, - "offset": 919 - }, - "end": { - "line": 25, - "column": 23, - "offset": 933 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 25, - "column": 9, - "offset": 919 - }, - "end": { - "line": 25, - "column": 23, - "offset": 933 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 25, - "column": 5, - "offset": 915 - }, - "end": { - "line": 25, - "column": 23, - "offset": 933 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#em", - "children": [ - { - "type": "text", - "value": "Emphasis", - "position": { - "start": { - "line": 26, - "column": 10, - "offset": 943 - }, - "end": { - "line": 26, - "column": 18, - "offset": 951 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 26, - "column": 9, - "offset": 942 - }, - "end": { - "line": 26, - "column": 24, - "offset": 957 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 26, - "column": 9, - "offset": 942 - }, - "end": { - "line": 26, - "column": 24, - "offset": 957 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 26, - "column": 5, - "offset": 938 - }, - "end": { - "line": 26, - "column": 24, - "offset": 957 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#code", - "children": [ - { - "type": "text", - "value": "Code", - "position": { - "start": { - "line": 27, - "column": 10, - "offset": 967 - }, - "end": { - "line": 27, - "column": 14, - "offset": 971 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 27, - "column": 9, - "offset": 966 - }, - "end": { - "line": 27, - "column": 22, - "offset": 979 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 27, - "column": 9, - "offset": 966 - }, - "end": { - "line": 27, - "column": 22, - "offset": 979 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 27, - "column": 5, - "offset": 962 - }, - "end": { - "line": 27, - "column": 22, - "offset": 979 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#img", - "children": [ - { - "type": "text", - "value": "Images", - "position": { - "start": { - "line": 28, - "column": 10, - "offset": 989 - }, - "end": { - "line": 28, - "column": 16, - "offset": 995 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 28, - "column": 9, - "offset": 988 - }, - "end": { - "line": 28, - "column": 23, - "offset": 1002 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 28, - "column": 9, - "offset": 988 - }, - "end": { - "line": 28, - "column": 23, - "offset": 1002 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 28, - "column": 5, - "offset": 984 - }, - "end": { - "line": 28, - "column": 23, - "offset": 1002 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 25, - "column": 5, - "offset": 915 - }, - "end": { - "line": 28, - "column": 23, - "offset": 1002 - }, - "indent": [ - 5, - 5, - 5 - ] - } - } - ], - "position": { - "start": { - "line": 24, - "column": 1, - "offset": 884 - }, - "end": { - "line": 28, - "column": 23, - "offset": 1002 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#misc", - "children": [ - { - "type": "text", - "value": "Miscellaneous", - "position": { - "start": { - "line": 29, - "column": 6, - "offset": 1008 - }, - "end": { - "line": 29, - "column": 19, - "offset": 1021 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 29, - "column": 5, - "offset": 1007 - }, - "end": { - "line": 29, - "column": 27, - "offset": 1029 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 29, - "column": 5, - "offset": 1007 - }, - "end": { - "line": 29, - "column": 27, - "offset": 1029 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#backslash", - "children": [ - { - "type": "text", - "value": "Backslash Escapes", - "position": { - "start": { - "line": 30, - "column": 10, - "offset": 1039 - }, - "end": { - "line": 30, - "column": 27, - "offset": 1056 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 30, - "column": 9, - "offset": 1038 - }, - "end": { - "line": 30, - "column": 40, - "offset": 1069 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 30, - "column": 9, - "offset": 1038 - }, - "end": { - "line": 30, - "column": 40, - "offset": 1069 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 30, - "column": 5, - "offset": 1034 - }, - "end": { - "line": 30, - "column": 40, - "offset": 1069 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "#autolink", - "children": [ - { - "type": "text", - "value": "Automatic Links", - "position": { - "start": { - "line": 31, - "column": 10, - "offset": 1079 - }, - "end": { - "line": 31, - "column": 25, - "offset": 1094 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 31, - "column": 9, - "offset": 1078 - }, - "end": { - "line": 31, - "column": 37, - "offset": 1106 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 31, - "column": 9, - "offset": 1078 - }, - "end": { - "line": 31, - "column": 37, - "offset": 1106 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 31, - "column": 5, - "offset": 1074 - }, - "end": { - "line": 31, - "column": 37, - "offset": 1106 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 30, - "column": 5, - "offset": 1034 - }, - "end": { - "line": 31, - "column": 37, - "offset": 1106 - }, - "indent": [ - 5 - ] - } - } - ], - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 1003 - }, - "end": { - "line": 31, - "column": 37, - "offset": 1106 - }, - "indent": [ - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 511 - }, - "end": { - "line": 31, - "column": 37, - "offset": 1106 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "Note:", - "position": { - "start": { - "line": 34, - "column": 3, - "offset": 1111 - }, - "end": { - "line": 34, - "column": 8, - "offset": 1116 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 34, - "column": 1, - "offset": 1109 - }, - "end": { - "line": 34, - "column": 10, - "offset": 1118 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " This document is itself written using Markdown; you\ncan ", - "position": { - "start": { - "line": 34, - "column": 10, - "offset": 1118 - }, - "end": { - "line": 35, - "column": 5, - "offset": 1175 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "linkReference", - "identifier": "src", - "label": "src", - "referenceType": "full", - "children": [ - { - "type": "text", - "value": "see the source for it by adding '.text' to the URL", - "position": { - "start": { - "line": 35, - "column": 6, - "offset": 1176 - }, - "end": { - "line": 35, - "column": 56, - "offset": 1226 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 35, - "column": 5, - "offset": 1175 - }, - "end": { - "line": 35, - "column": 62, - "offset": 1232 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 35, - "column": 62, - "offset": 1232 - }, - "end": { - "line": 35, - "column": 63, - "offset": 1233 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 34, - "column": 1, - "offset": 1109 - }, - "end": { - "line": 35, - "column": 63, - "offset": 1233 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "definition", - "identifier": "src", - "label": "src", - "title": null, - "url": "/projects/markdown/syntax.text", - "position": { - "start": { - "line": 37, - "column": 1, - "offset": 1235 - }, - "end": { - "line": 37, - "column": 40, - "offset": 1274 - }, - "indent": [] - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 39, - "column": 1, - "offset": 1276 - }, - "end": { - "line": 39, - "column": 6, - "offset": 1281 - }, - "indent": [] - } - }, - { - "type": "html", - "value": "

Overview

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

Philosophy

", - "position": { - "start": { - "line": 43, - "column": 1, - "offset": 1316 - }, - "end": { - "line": 43, - "column": 36, - "offset": 1351 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Markdown is intended to be as easy-to-read and easy-to-write as is feasible.", - "position": { - "start": { - "line": 45, - "column": 1, - "offset": 1353 - }, - "end": { - "line": 45, - "column": 77, - "offset": 1429 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 45, - "column": 1, - "offset": 1353 - }, - "end": { - "line": 45, - "column": 77, - "offset": 1429 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Readability, however, is emphasized above all else. A Markdown-formatted\ndocument should be publishable as-is, as plain text, without looking\nlike it's been marked up with tags or formatting instructions. While\nMarkdown's syntax has been influenced by several existing text-to-HTML\nfilters -- including ", - "position": { - "start": { - "line": 47, - "column": 1, - "offset": 1431 - }, - "end": { - "line": 51, - "column": 22, - "offset": 1734 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "linkReference", - "identifier": "1", - "label": "1", - "referenceType": "full", - "children": [ - { - "type": "text", - "value": "Setext", - "position": { - "start": { - "line": 51, - "column": 23, - "offset": 1735 - }, - "end": { - "line": 51, - "column": 29, - "offset": 1741 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 51, - "column": 22, - "offset": 1734 - }, - "end": { - "line": 51, - "column": 34, - "offset": 1746 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ", ", - "position": { - "start": { - "line": 51, - "column": 34, - "offset": 1746 - }, - "end": { - "line": 51, - "column": 36, - "offset": 1748 - }, - "indent": [] - } - }, - { - "type": "linkReference", - "identifier": "2", - "label": "2", - "referenceType": "full", - "children": [ - { - "type": "text", - "value": "atx", - "position": { - "start": { - "line": 51, - "column": 37, - "offset": 1749 - }, - "end": { - "line": 51, - "column": 40, - "offset": 1752 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 51, - "column": 36, - "offset": 1748 - }, - "end": { - "line": 51, - "column": 45, - "offset": 1757 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ", ", - "position": { - "start": { - "line": 51, - "column": 45, - "offset": 1757 - }, - "end": { - "line": 51, - "column": 47, - "offset": 1759 - }, - "indent": [] - } - }, - { - "type": "linkReference", - "identifier": "3", - "label": "3", - "referenceType": "full", - "children": [ - { - "type": "text", - "value": "Textile", - "position": { - "start": { - "line": 51, - "column": 48, - "offset": 1760 - }, - "end": { - "line": 51, - "column": 55, - "offset": 1767 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 51, - "column": 47, - "offset": 1759 - }, - "end": { - "line": 51, - "column": 60, - "offset": 1772 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ", ", - "position": { - "start": { - "line": 51, - "column": 60, - "offset": 1772 - }, - "end": { - "line": 51, - "column": 62, - "offset": 1774 - }, - "indent": [] - } - }, - { - "type": "linkReference", - "identifier": "4", - "label": "4", - "referenceType": "full", - "children": [ - { - "type": "text", - "value": "reStructuredText", - "position": { - "start": { - "line": 51, - "column": 63, - "offset": 1775 - }, - "end": { - "line": 51, - "column": 79, - "offset": 1791 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 51, - "column": 62, - "offset": 1774 - }, - "end": { - "line": 51, - "column": 84, - "offset": 1796 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ",\n", - "position": { - "start": { - "line": 51, - "column": 84, - "offset": 1796 - }, - "end": { - "line": 52, - "column": 1, - "offset": 1798 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "linkReference", - "identifier": "5", - "label": "5", - "referenceType": "full", - "children": [ - { - "type": "text", - "value": "Grutatext", - "position": { - "start": { - "line": 52, - "column": 2, - "offset": 1799 - }, - "end": { - "line": 52, - "column": 11, - "offset": 1808 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 52, - "column": 1, - "offset": 1798 - }, - "end": { - "line": 52, - "column": 16, - "offset": 1813 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ", and ", - "position": { - "start": { - "line": 52, - "column": 16, - "offset": 1813 - }, - "end": { - "line": 52, - "column": 22, - "offset": 1819 - }, - "indent": [] - } - }, - { - "type": "linkReference", - "identifier": "6", - "label": "6", - "referenceType": "full", - "children": [ - { - "type": "text", - "value": "EtText", - "position": { - "start": { - "line": 52, - "column": 23, - "offset": 1820 - }, - "end": { - "line": 52, - "column": 29, - "offset": 1826 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 52, - "column": 22, - "offset": 1819 - }, - "end": { - "line": 52, - "column": 34, - "offset": 1831 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " -- the single biggest source of\ninspiration for Markdown's syntax is the format of plain text email.", - "position": { - "start": { - "line": 52, - "column": 34, - "offset": 1831 - }, - "end": { - "line": 53, - "column": 69, - "offset": 1932 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 47, - "column": 1, - "offset": 1431 - }, - "end": { - "line": 53, - "column": 69, - "offset": 1932 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "definition", - "identifier": "1", - "label": "1", - "title": null, - "url": "http://docutils.sourceforge.net/mirror/setext.html", - "position": { - "start": { - "line": 55, - "column": 1, - "offset": 1934 - }, - "end": { - "line": 55, - "column": 58, - "offset": 1991 - }, - "indent": [] - } - }, - { - "type": "definition", - "identifier": "2", - "label": "2", - "title": null, - "url": "http://www.aaronsw.com/2002/atx/", - "position": { - "start": { - "line": 56, - "column": 1, - "offset": 1992 - }, - "end": { - "line": 56, - "column": 40, - "offset": 2031 - }, - "indent": [] - } - }, - { - "type": "definition", - "identifier": "3", - "label": "3", - "title": null, - "url": "http://textism.com/tools/textile/", - "position": { - "start": { - "line": 57, - "column": 1, - "offset": 2032 - }, - "end": { - "line": 57, - "column": 41, - "offset": 2072 - }, - "indent": [] - } - }, - { - "type": "definition", - "identifier": "4", - "label": "4", - "title": null, - "url": "http://docutils.sourceforge.net/rst.html", - "position": { - "start": { - "line": 58, - "column": 1, - "offset": 2073 - }, - "end": { - "line": 58, - "column": 48, - "offset": 2120 - }, - "indent": [] - } - }, - { - "type": "definition", - "identifier": "5", - "label": "5", - "title": null, - "url": "http://www.triptico.com/software/grutatxt.html", - "position": { - "start": { - "line": 59, - "column": 1, - "offset": 2121 - }, - "end": { - "line": 59, - "column": 54, - "offset": 2174 - }, - "indent": [] - } - }, - { - "type": "definition", - "identifier": "6", - "label": "6", - "title": null, - "url": "http://ettext.taint.org/doc/", - "position": { - "start": { - "line": 60, - "column": 1, - "offset": 2175 - }, - "end": { - "line": 60, - "column": 36, - "offset": 2210 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "To this end, Markdown's syntax is comprised entirely of punctuation\ncharacters, which punctuation characters have been carefully chosen so\nas to look like what they mean. E.g., asterisks around a word actually\nlook like ", - "position": { - "start": { - "line": 62, - "column": 1, - "offset": 2212 - }, - "end": { - "line": 65, - "column": 11, - "offset": 2432 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "text", - "value": "*", - "position": { - "start": { - "line": 65, - "column": 11, - "offset": 2432 - }, - "end": { - "line": 65, - "column": 13, - "offset": 2434 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "emphasis", - "position": { - "start": { - "line": 65, - "column": 13, - "offset": 2434 - }, - "end": { - "line": 65, - "column": 21, - "offset": 2442 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "*", - "position": { - "start": { - "line": 65, - "column": 21, - "offset": 2442 - }, - "end": { - "line": 65, - "column": 23, - "offset": 2444 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ". Markdown lists look like, well, lists. Even\nblockquotes look like quoted passages of text, assuming you've ever\nused email.", - "position": { - "start": { - "line": 65, - "column": 23, - "offset": 2444 - }, - "end": { - "line": 67, - "column": 12, - "offset": 2569 - }, - "indent": [ - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 62, - "column": 1, - "offset": 2212 - }, - "end": { - "line": 67, - "column": 12, - "offset": 2569 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "html", - "value": "

Inline HTML

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

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

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

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

Automatic Escaping for Special Characters

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

Block Elements

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

Paragraphs and Line Breaks

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

Headers

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

Blockquotes

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

Lists

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

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

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

  • \n
  • Magic

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

Code Blocks

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

This is a normal paragraph:

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

Here is an example of AppleScript:

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

Horizontal Rules

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

Span Elements

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

Links

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

This is \nan example inline link.

\n\n

This link has no\ntitle attribute.

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

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

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

Emphasis

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

Code

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

Use the printf() function.

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

There is a literal backtick (`) here.

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

A single backtick in a code span: `

\n\n

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

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

Please don't use any <blink> tags.

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

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

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

Images

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

Miscellaneous

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

Automatic Links

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

Backslash Escapes

", - "position": { - "start": { - "line": 863, - "column": 1, - "offset": 26752 - }, - "end": { - "line": 863, - "column": 42, - "offset": 26793 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Markdown allows you to use backslash escapes to generate literal\ncharacters which would otherwise have special meaning in Markdown's\nformatting syntax. For example, if you wanted to surround a word with\nliteral asterisks (instead of an HTML ", - "position": { - "start": { - "line": 865, - "column": 1, - "offset": 26795 - }, - "end": { - "line": 868, - "column": 39, - "offset": 27036 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "inlineCode", - "value": "", - "position": { - "start": { - "line": 868, - "column": 39, - "offset": 27036 - }, - "end": { - "line": 868, - "column": 45, - "offset": 27042 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " tag), you can backslashes\nbefore the asterisks, like this:", - "position": { - "start": { - "line": 868, - "column": 45, - "offset": 27042 - }, - "end": { - "line": 869, - "column": 33, - "offset": 27101 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 865, - "column": 1, - "offset": 26795 - }, - "end": { - "line": 869, - "column": 33, - "offset": 27101 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "\\*literal asterisks\\*", - "position": { - "start": { - "line": 871, - "column": 1, - "offset": 27103 - }, - "end": { - "line": 871, - "column": 26, - "offset": 27128 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Markdown provides backslash escapes for the following characters:", - "position": { - "start": { - "line": 873, - "column": 1, - "offset": 27130 - }, - "end": { - "line": 873, - "column": 66, - "offset": 27195 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 873, - "column": 1, - "offset": 27130 - }, - "end": { - "line": 873, - "column": 66, - "offset": 27195 - }, - "indent": [] - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "\\ backslash\n` backtick\n* asterisk\n_ underscore\n{} curly braces\n[] square brackets\n() parentheses\n# hash mark\n+\tplus sign\n-\tminus sign (hyphen)\n. dot\n! exclamation mark", - "position": { - "start": { - "line": 875, - "column": 1, - "offset": 27197 - }, - "end": { - "line": 886, - "column": 25, - "offset": 27423 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 888, - "column": 1, - "offset": 27425 - } - } -} diff --git a/test/fixtures/tree/mixed-indentation.commonmark.json b/test/fixtures/tree/mixed-indentation.commonmark.json deleted file mode 100644 index 0e256b0bf..000000000 --- a/test/fixtures/tree/mixed-indentation.commonmark.json +++ /dev/null @@ -1,389 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Mixed spaces and tabs", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 24, - "offset": 23 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 24, - "offset": 23 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Very long\n\tparagraph", - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 27 - }, - "end": { - "line": 4, - "column": 12, - "offset": 48 - }, - "indent": [ - 2 - ] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 27 - }, - "end": { - "line": 4, - "column": 12, - "offset": 48 - }, - "indent": [ - 2 - ] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 25 - }, - "end": { - "line": 4, - "column": 12, - "offset": 48 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 25 - }, - "end": { - "line": 4, - "column": 12, - "offset": 48 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Very long\n\tparagraph", - "position": { - "start": { - "line": 6, - "column": 4, - "offset": 53 - }, - "end": { - "line": 7, - "column": 12, - "offset": 74 - }, - "indent": [ - 2 - ] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 4, - "offset": 53 - }, - "end": { - "line": 7, - "column": 12, - "offset": 74 - }, - "indent": [ - 2 - ] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 50 - }, - "end": { - "line": 7, - "column": 12, - "offset": 74 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 50 - }, - "end": { - "line": 7, - "column": 12, - "offset": 74 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Very long\n\tparagraph", - "position": { - "start": { - "line": 9, - "column": 3, - "offset": 78 - }, - "end": { - "line": 10, - "column": 12, - "offset": 99 - }, - "indent": [ - 2 - ] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 3, - "offset": 78 - }, - "end": { - "line": 10, - "column": 12, - "offset": 99 - }, - "indent": [ - 2 - ] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 76 - }, - "end": { - "line": 10, - "column": 12, - "offset": 99 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 76 - }, - "end": { - "line": 10, - "column": 12, - "offset": 99 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Very long\n\tparagraph", - "position": { - "start": { - "line": 12, - "column": 4, - "offset": 104 - }, - "end": { - "line": 13, - "column": 12, - "offset": 125 - }, - "indent": [ - 2 - ] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 4, - "offset": 104 - }, - "end": { - "line": 13, - "column": 12, - "offset": 125 - }, - "indent": [ - 2 - ] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 101 - }, - "end": { - "line": 13, - "column": 12, - "offset": 125 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 101 - }, - "end": { - "line": 13, - "column": 12, - "offset": 125 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 14, - "column": 1, - "offset": 126 - } - } -} diff --git a/test/fixtures/tree/mixed-indentation.commonmark.pedantic.json b/test/fixtures/tree/mixed-indentation.commonmark.pedantic.json deleted file mode 100644 index 0dd5e0ea4..000000000 --- a/test/fixtures/tree/mixed-indentation.commonmark.pedantic.json +++ /dev/null @@ -1,332 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Mixed spaces and tabs", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 24, - "offset": 23 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 24, - "offset": 23 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Very long\n\tparagraph", - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 27 - }, - "end": { - "line": 4, - "column": 12, - "offset": 48 - }, - "indent": [ - 2 - ] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 27 - }, - "end": { - "line": 4, - "column": 12, - "offset": 48 - }, - "indent": [ - 2 - ] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 25 - }, - "end": { - "line": 5, - "column": 1, - "offset": 49 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Very long\n\tparagraph", - "position": { - "start": { - "line": 6, - "column": 4, - "offset": 53 - }, - "end": { - "line": 7, - "column": 12, - "offset": 74 - }, - "indent": [ - 2 - ] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 4, - "offset": 53 - }, - "end": { - "line": 7, - "column": 12, - "offset": 74 - }, - "indent": [ - 2 - ] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 50 - }, - "end": { - "line": 8, - "column": 1, - "offset": 75 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Very long\n\tparagraph", - "position": { - "start": { - "line": 9, - "column": 3, - "offset": 78 - }, - "end": { - "line": 10, - "column": 12, - "offset": 99 - }, - "indent": [ - 2 - ] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 3, - "offset": 78 - }, - "end": { - "line": 10, - "column": 12, - "offset": 99 - }, - "indent": [ - 2 - ] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 76 - }, - "end": { - "line": 11, - "column": 1, - "offset": 100 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Very long\n\tparagraph", - "position": { - "start": { - "line": 12, - "column": 4, - "offset": 104 - }, - "end": { - "line": 13, - "column": 12, - "offset": 125 - }, - "indent": [ - 2 - ] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 4, - "offset": 104 - }, - "end": { - "line": 13, - "column": 12, - "offset": 125 - }, - "indent": [ - 2 - ] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 101 - }, - "end": { - "line": 13, - "column": 12, - "offset": 125 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 25 - }, - "end": { - "line": 13, - "column": 12, - "offset": 125 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 14, - "column": 1, - "offset": 126 - } - } -} diff --git a/test/fixtures/tree/mixed-indentation.json b/test/fixtures/tree/mixed-indentation.json index 0e256b0bf..54f9edbfd 100644 --- a/test/fixtures/tree/mixed-indentation.json +++ b/test/fixtures/tree/mixed-indentation.json @@ -18,8 +18,7 @@ "line": 1, "column": 24, "offset": 23 - }, - "indent": [] + } } } ], @@ -33,8 +32,7 @@ "line": 1, "column": 24, "offset": 23 - }, - "indent": [] + } } }, { @@ -53,7 +51,7 @@ "children": [ { "type": "text", - "value": "Very long\n\tparagraph", + "value": "Very long\nparagraph", "position": { "start": { "line": 3, @@ -64,10 +62,7 @@ "line": 4, "column": 12, "offset": 48 - }, - "indent": [ - 2 - ] + } } } ], @@ -81,10 +76,7 @@ "line": 4, "column": 12, "offset": 48 - }, - "indent": [ - 2 - ] + } } } ], @@ -98,10 +90,7 @@ "line": 4, "column": 12, "offset": 48 - }, - "indent": [ - 1 - ] + } } } ], @@ -115,10 +104,7 @@ "line": 4, "column": 12, "offset": 48 - }, - "indent": [ - 1 - ] + } } }, { @@ -137,7 +123,7 @@ "children": [ { "type": "text", - "value": "Very long\n\tparagraph", + "value": "Very long\nparagraph", "position": { "start": { "line": 6, @@ -148,10 +134,7 @@ "line": 7, "column": 12, "offset": 74 - }, - "indent": [ - 2 - ] + } } } ], @@ -165,10 +148,7 @@ "line": 7, "column": 12, "offset": 74 - }, - "indent": [ - 2 - ] + } } } ], @@ -182,10 +162,7 @@ "line": 7, "column": 12, "offset": 74 - }, - "indent": [ - 1 - ] + } } } ], @@ -199,10 +176,7 @@ "line": 7, "column": 12, "offset": 74 - }, - "indent": [ - 1 - ] + } } }, { @@ -221,7 +195,7 @@ "children": [ { "type": "text", - "value": "Very long\n\tparagraph", + "value": "Very long\nparagraph", "position": { "start": { "line": 9, @@ -232,10 +206,7 @@ "line": 10, "column": 12, "offset": 99 - }, - "indent": [ - 2 - ] + } } } ], @@ -249,10 +220,7 @@ "line": 10, "column": 12, "offset": 99 - }, - "indent": [ - 2 - ] + } } } ], @@ -266,10 +234,7 @@ "line": 10, "column": 12, "offset": 99 - }, - "indent": [ - 1 - ] + } } } ], @@ -283,10 +248,7 @@ "line": 10, "column": 12, "offset": 99 - }, - "indent": [ - 1 - ] + } } }, { @@ -305,7 +267,7 @@ "children": [ { "type": "text", - "value": "Very long\n\tparagraph", + "value": "Very long\nparagraph", "position": { "start": { "line": 12, @@ -316,10 +278,7 @@ "line": 13, "column": 12, "offset": 125 - }, - "indent": [ - 2 - ] + } } } ], @@ -333,10 +292,7 @@ "line": 13, "column": 12, "offset": 125 - }, - "indent": [ - 2 - ] + } } } ], @@ -350,10 +306,7 @@ "line": 13, "column": 12, "offset": 125 - }, - "indent": [ - 1 - ] + } } } ], @@ -367,10 +320,7 @@ "line": 13, "column": 12, "offset": 125 - }, - "indent": [ - 1 - ] + } } } ], diff --git a/test/fixtures/tree/mixed-indentation.pedantic.json b/test/fixtures/tree/mixed-indentation.pedantic.json deleted file mode 100644 index 0dd5e0ea4..000000000 --- a/test/fixtures/tree/mixed-indentation.pedantic.json +++ /dev/null @@ -1,332 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Mixed spaces and tabs", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 24, - "offset": 23 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 24, - "offset": 23 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Very long\n\tparagraph", - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 27 - }, - "end": { - "line": 4, - "column": 12, - "offset": 48 - }, - "indent": [ - 2 - ] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 27 - }, - "end": { - "line": 4, - "column": 12, - "offset": 48 - }, - "indent": [ - 2 - ] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 25 - }, - "end": { - "line": 5, - "column": 1, - "offset": 49 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Very long\n\tparagraph", - "position": { - "start": { - "line": 6, - "column": 4, - "offset": 53 - }, - "end": { - "line": 7, - "column": 12, - "offset": 74 - }, - "indent": [ - 2 - ] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 4, - "offset": 53 - }, - "end": { - "line": 7, - "column": 12, - "offset": 74 - }, - "indent": [ - 2 - ] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 50 - }, - "end": { - "line": 8, - "column": 1, - "offset": 75 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Very long\n\tparagraph", - "position": { - "start": { - "line": 9, - "column": 3, - "offset": 78 - }, - "end": { - "line": 10, - "column": 12, - "offset": 99 - }, - "indent": [ - 2 - ] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 3, - "offset": 78 - }, - "end": { - "line": 10, - "column": 12, - "offset": 99 - }, - "indent": [ - 2 - ] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 76 - }, - "end": { - "line": 11, - "column": 1, - "offset": 100 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Very long\n\tparagraph", - "position": { - "start": { - "line": 12, - "column": 4, - "offset": 104 - }, - "end": { - "line": 13, - "column": 12, - "offset": 125 - }, - "indent": [ - 2 - ] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 4, - "offset": 104 - }, - "end": { - "line": 13, - "column": 12, - "offset": 125 - }, - "indent": [ - 2 - ] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 101 - }, - "end": { - "line": 13, - "column": 12, - "offset": 125 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 25 - }, - "end": { - "line": 13, - "column": 12, - "offset": 125 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 14, - "column": 1, - "offset": 126 - } - } -} diff --git a/test/fixtures/tree/nested-blockquotes.json b/test/fixtures/tree/nested-blockquotes.json index 62d445e83..67a82b743 100644 --- a/test/fixtures/tree/nested-blockquotes.json +++ b/test/fixtures/tree/nested-blockquotes.json @@ -20,8 +20,7 @@ "line": 1, "column": 6, "offset": 5 - }, - "indent": [] + } } } ], @@ -35,8 +34,7 @@ "line": 1, "column": 6, "offset": 5 - }, - "indent": [] + } } }, { @@ -58,8 +56,7 @@ "line": 3, "column": 8, "offset": 15 - }, - "indent": [] + } } } ], @@ -73,8 +70,7 @@ "line": 3, "column": 8, "offset": 15 - }, - "indent": [] + } } } ], @@ -88,8 +84,7 @@ "line": 3, "column": 8, "offset": 15 - }, - "indent": [] + } } }, { @@ -108,8 +103,7 @@ "line": 5, "column": 6, "offset": 23 - }, - "indent": [] + } } } ], @@ -123,8 +117,7 @@ "line": 5, "column": 6, "offset": 23 - }, - "indent": [] + } } } ], @@ -138,13 +131,7 @@ "line": 5, "column": 6, "offset": 23 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] + } } } ], diff --git a/test/fixtures/tree/nested-code.json b/test/fixtures/tree/nested-code.json index 799fea521..7859e770d 100644 --- a/test/fixtures/tree/nested-code.json +++ b/test/fixtures/tree/nested-code.json @@ -17,8 +17,7 @@ "line": 1, "column": 30, "offset": 29 - }, - "indent": [] + } } } ], @@ -32,8 +31,7 @@ "line": 1, "column": 30, "offset": 29 - }, - "indent": [] + } } }, { @@ -52,8 +50,7 @@ "line": 3, "column": 16, "offset": 46 - }, - "indent": [] + } } } ], @@ -67,8 +64,7 @@ "line": 3, "column": 16, "offset": 46 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/nested-em.nooutput.json b/test/fixtures/tree/nested-em.nooutput.json index 46ec065bf..4de07ce48 100644 --- a/test/fixtures/tree/nested-em.nooutput.json +++ b/test/fixtures/tree/nested-em.nooutput.json @@ -20,8 +20,7 @@ "line": 1, "column": 7, "offset": 6 - }, - "indent": [] + } } }, { @@ -40,8 +39,7 @@ "line": 1, "column": 13, "offset": 12 - }, - "indent": [] + } } } ], @@ -55,8 +53,7 @@ "line": 1, "column": 15, "offset": 14 - }, - "indent": [] + } } }, { @@ -72,8 +69,7 @@ "line": 1, "column": 20, "offset": 19 - }, - "indent": [] + } } } ], @@ -87,8 +83,7 @@ "line": 1, "column": 21, "offset": 20 - }, - "indent": [] + } } } ], @@ -102,8 +97,7 @@ "line": 1, "column": 21, "offset": 20 - }, - "indent": [] + } } }, { @@ -125,8 +119,7 @@ "line": 3, "column": 7, "offset": 28 - }, - "indent": [] + } } }, { @@ -145,8 +138,7 @@ "line": 3, "column": 13, "offset": 34 - }, - "indent": [] + } } } ], @@ -160,8 +152,7 @@ "line": 3, "column": 15, "offset": 36 - }, - "indent": [] + } } }, { @@ -177,8 +168,7 @@ "line": 3, "column": 20, "offset": 41 - }, - "indent": [] + } } } ], @@ -192,8 +182,7 @@ "line": 3, "column": 21, "offset": 42 - }, - "indent": [] + } } } ], @@ -207,8 +196,7 @@ "line": 3, "column": 21, "offset": 42 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/nested-em.nooutput.pedantic.json b/test/fixtures/tree/nested-em.nooutput.pedantic.json deleted file mode 100644 index 70dbaa529..000000000 --- a/test/fixtures/tree/nested-em.nooutput.pedantic.json +++ /dev/null @@ -1,191 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "*test ", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - }, - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "test", - "position": { - "start": { - "line": 1, - "column": 9, - "offset": 8 - }, - "end": { - "line": 1, - "column": 13, - "offset": 12 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 7, - "offset": 6 - }, - "end": { - "line": 1, - "column": 15, - "offset": 14 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " test*", - "position": { - "start": { - "line": 1, - "column": 15, - "offset": 14 - }, - "end": { - "line": 1, - "column": 21, - "offset": 20 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 21, - "offset": 20 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "_test ", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 22 - }, - "end": { - "line": 3, - "column": 7, - "offset": 28 - }, - "indent": [] - } - }, - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "test", - "position": { - "start": { - "line": 3, - "column": 9, - "offset": 30 - }, - "end": { - "line": 3, - "column": 13, - "offset": 34 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 7, - "offset": 28 - }, - "end": { - "line": 3, - "column": 15, - "offset": 36 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " test_", - "position": { - "start": { - "line": 3, - "column": 15, - "offset": 36 - }, - "end": { - "line": 3, - "column": 21, - "offset": 42 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 22 - }, - "end": { - "line": 3, - "column": 21, - "offset": 42 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 4, - "column": 1, - "offset": 43 - } - } -} diff --git a/test/fixtures/tree/nested-references.commonmark.json b/test/fixtures/tree/nested-references.commonmark.json deleted file mode 100644 index de84e4cad..000000000 --- a/test/fixtures/tree/nested-references.commonmark.json +++ /dev/null @@ -1,242 +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": "definition", - "identifier": "bar", - "label": "bar", - "title": "bar", - "url": "https://bar.com", - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 106 - }, - "end": { - "line": 9, - "column": 29, - "offset": 134 - }, - "indent": [] - } - }, - { - "type": "definition", - "identifier": "baz", - "label": "baz", - "title": "baz", - "url": "https://baz.com", - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 135 - }, - "end": { - "line": 10, - "column": 29, - "offset": 163 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 11, - "column": 1, - "offset": 164 - } - } -} diff --git a/test/fixtures/tree/nested-references.json b/test/fixtures/tree/nested-references.json index de84e4cad..a44955148 100644 --- a/test/fixtures/tree/nested-references.json +++ b/test/fixtures/tree/nested-references.json @@ -17,8 +17,7 @@ "line": 1, "column": 31, "offset": 30 - }, - "indent": [] + } } } ], @@ -32,8 +31,7 @@ "line": 1, "column": 31, "offset": 30 - }, - "indent": [] + } } }, { @@ -41,15 +39,9 @@ "children": [ { "type": "linkReference", - "identifier": "baz", - "label": "baz", - "referenceType": "full", "children": [ { "type": "imageReference", - "identifier": "bar", - "label": "bar", - "referenceType": "full", "alt": "Foo", "position": { "start": { @@ -61,9 +53,11 @@ "line": 3, "column": 13, "offset": 44 - }, - "indent": [] - } + } + }, + "identifier": "bar", + "label": "bar", + "referenceType": "full" } ], "position": { @@ -76,9 +70,11 @@ "line": 3, "column": 19, "offset": 50 - }, - "indent": [] - } + } + }, + "identifier": "baz", + "label": "baz", + "referenceType": "full" } ], "position": { @@ -91,8 +87,7 @@ "line": 3, "column": 19, "offset": 50 - }, - "indent": [] + } } }, { @@ -111,8 +106,7 @@ "line": 5, "column": 34, "offset": 85 - }, - "indent": [] + } } } ], @@ -126,50 +120,115 @@ "line": 5, "column": 34, "offset": 85 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ + { + "type": "text", + "value": "[", + "position": { + "start": { + "line": 7, + "column": 1, + "offset": 87 + }, + "end": { + "line": 7, + "column": 2, + "offset": 88 + } + } + }, { "type": "linkReference", - "identifier": "baz", - "label": "baz", - "referenceType": "full", "children": [ { "type": "text", - "value": "[Foo][bar]", + "value": "Foo", "position": { "start": { "line": 7, - "column": 2, - "offset": 88 + "column": 3, + "offset": 89 }, "end": { "line": 7, - "column": 12, - "offset": 98 + "column": 6, + "offset": 92 + } + } + } + ], + "position": { + "start": { + "line": 7, + "column": 2, + "offset": 88 + }, + "end": { + "line": 7, + "column": 12, + "offset": 98 + } + }, + "identifier": "bar", + "label": "bar", + "referenceType": "full" + }, + { + "type": "text", + "value": "]", + "position": { + "start": { + "line": 7, + "column": 12, + "offset": 98 + }, + "end": { + "line": 7, + "column": 13, + "offset": 99 + } + } + }, + { + "type": "linkReference", + "children": [ + { + "type": "text", + "value": "baz", + "position": { + "start": { + "line": 7, + "column": 14, + "offset": 100 }, - "indent": [] + "end": { + "line": 7, + "column": 17, + "offset": 103 + } } } ], "position": { "start": { "line": 7, - "column": 1, - "offset": 87 + "column": 13, + "offset": 99 }, "end": { "line": 7, "column": 18, "offset": 104 - }, - "indent": [] - } + } + }, + "identifier": "baz", + "label": "baz", + "referenceType": "shortcut" } ], "position": { @@ -182,8 +241,7 @@ "line": 7, "column": 18, "offset": 104 - }, - "indent": [] + } } }, { @@ -202,8 +260,7 @@ "line": 9, "column": 29, "offset": 134 - }, - "indent": [] + } } }, { @@ -222,8 +279,7 @@ "line": 10, "column": 29, "offset": 163 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/nested-square-link.commonmark.json b/test/fixtures/tree/nested-square-link.commonmark.json deleted file mode 100644 index b3e960a41..000000000 --- a/test/fixtures/tree/nested-square-link.commonmark.json +++ /dev/null @@ -1,320 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "the `", - "label": "the `", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "the `", - "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": "text", - "value": "` character](/url)", - "position": { - "start": { - "line": 1, - "column": 8, - "offset": 7 - }, - "end": { - "line": 1, - "column": 26, - "offset": 25 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 26, - "offset": 25 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[the ", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 27 - }, - "end": { - "line": 3, - "column": 6, - "offset": 32 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "[", - "position": { - "start": { - "line": 3, - "column": 6, - "offset": 32 - }, - "end": { - "line": 3, - "column": 13, - "offset": 39 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " character](/url)", - "position": { - "start": { - "line": 3, - "column": 13, - "offset": 39 - }, - "end": { - "line": 3, - "column": 30, - "offset": 56 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 27 - }, - "end": { - "line": 3, - "column": 30, - "offset": 56 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[the `` ", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 58 - }, - "end": { - "line": 5, - "column": 9, - "offset": 66 - }, - "indent": [] - } - }, - { - "type": "link", - "title": null, - "url": "/url", - "children": [ - { - "type": "text", - "value": " ``` character", - "position": { - "start": { - "line": 5, - "column": 10, - "offset": 67 - }, - "end": { - "line": 5, - "column": 24, - "offset": 81 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 9, - "offset": 66 - }, - "end": { - "line": 5, - "column": 31, - "offset": 88 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 58 - }, - "end": { - "line": 5, - "column": 31, - "offset": 88 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "/url", - "children": [ - { - "type": "text", - "value": "the ", - "position": { - "start": { - "line": 7, - "column": 2, - "offset": 91 - }, - "end": { - "line": 7, - "column": 6, - "offset": 95 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "`", - "position": { - "start": { - "line": 7, - "column": 6, - "offset": 95 - }, - "end": { - "line": 7, - "column": 13, - "offset": 102 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " character", - "position": { - "start": { - "line": 7, - "column": 13, - "offset": 102 - }, - "end": { - "line": 7, - "column": 23, - "offset": 112 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 90 - }, - "end": { - "line": 7, - "column": 30, - "offset": 119 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 90 - }, - "end": { - "line": 7, - "column": 30, - "offset": 119 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 120 - } - } -} diff --git a/test/fixtures/tree/nested-square-link.json b/test/fixtures/tree/nested-square-link.json index b3e960a41..667a35304 100644 --- a/test/fixtures/tree/nested-square-link.json +++ b/test/fixtures/tree/nested-square-link.json @@ -5,14 +5,13 @@ "type": "paragraph", "children": [ { - "type": "linkReference", - "identifier": "the `", - "label": "the `", - "referenceType": "shortcut", + "type": "link", + "title": null, + "url": "/url", "children": [ { "type": "text", - "value": "the `", + "value": "the ", "position": { "start": { "line": 1, @@ -21,10 +20,41 @@ }, "end": { "line": 1, - "column": 7, - "offset": 6 + "column": 6, + "offset": 5 + } + } + }, + { + "type": "inlineCode", + "value": "]", + "position": { + "start": { + "line": 1, + "column": 6, + "offset": 5 + }, + "end": { + "line": 1, + "column": 9, + "offset": 8 + } + } + }, + { + "type": "text", + "value": " character", + "position": { + "start": { + "line": 1, + "column": 9, + "offset": 8 }, - "indent": [] + "end": { + "line": 1, + "column": 19, + "offset": 18 + } } } ], @@ -34,29 +64,11 @@ "column": 1, "offset": 0 }, - "end": { - "line": 1, - "column": 8, - "offset": 7 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "` character](/url)", - "position": { - "start": { - "line": 1, - "column": 8, - "offset": 7 - }, "end": { "line": 1, "column": 26, "offset": 25 - }, - "indent": [] + } } } ], @@ -70,62 +82,77 @@ "line": 1, "column": 26, "offset": 25 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "text", - "value": "[the ", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 27 - }, - "end": { - "line": 3, - "column": 6, - "offset": 32 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "[", - "position": { - "start": { - "line": 3, - "column": 6, - "offset": 32 + "type": "link", + "title": null, + "url": "/url", + "children": [ + { + "type": "text", + "value": "the ", + "position": { + "start": { + "line": 3, + "column": 2, + "offset": 28 + }, + "end": { + "line": 3, + "column": 6, + "offset": 32 + } + } }, - "end": { - "line": 3, - "column": 13, - "offset": 39 + { + "type": "inlineCode", + "value": "[", + "position": { + "start": { + "line": 3, + "column": 6, + "offset": 32 + }, + "end": { + "line": 3, + "column": 13, + "offset": 39 + } + } }, - "indent": [] - } - }, - { - "type": "text", - "value": " character](/url)", + { + "type": "text", + "value": " character", + "position": { + "start": { + "line": 3, + "column": 13, + "offset": 39 + }, + "end": { + "line": 3, + "column": 23, + "offset": 49 + } + } + } + ], "position": { "start": { "line": 3, - "column": 13, - "offset": 39 + "column": 1, + "offset": 27 }, "end": { "line": 3, "column": 30, "offset": 56 - }, - "indent": [] + } } } ], @@ -139,8 +166,7 @@ "line": 3, "column": 30, "offset": 56 - }, - "indent": [] + } } }, { @@ -159,8 +185,7 @@ "line": 5, "column": 9, "offset": 66 - }, - "indent": [] + } } }, { @@ -181,8 +206,7 @@ "line": 5, "column": 24, "offset": 81 - }, - "indent": [] + } } } ], @@ -196,8 +220,7 @@ "line": 5, "column": 31, "offset": 88 - }, - "indent": [] + } } } ], @@ -211,8 +234,7 @@ "line": 5, "column": 31, "offset": 88 - }, - "indent": [] + } } }, { @@ -236,8 +258,7 @@ "line": 7, "column": 6, "offset": 95 - }, - "indent": [] + } } }, { @@ -253,8 +274,7 @@ "line": 7, "column": 13, "offset": 102 - }, - "indent": [] + } } }, { @@ -270,8 +290,7 @@ "line": 7, "column": 23, "offset": 112 - }, - "indent": [] + } } } ], @@ -285,8 +304,7 @@ "line": 7, "column": 30, "offset": 119 - }, - "indent": [] + } } } ], @@ -300,8 +318,7 @@ "line": 7, "column": 30, "offset": 119 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/nested-square-link.nogfm.commonmark.json b/test/fixtures/tree/nested-square-link.nogfm.commonmark.json deleted file mode 100644 index 413897608..000000000 --- a/test/fixtures/tree/nested-square-link.nogfm.commonmark.json +++ /dev/null @@ -1,339 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "/url", - "children": [ - { - "type": "text", - "value": "the ", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 6, - "offset": 5 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "]", - "position": { - "start": { - "line": 1, - "column": 6, - "offset": 5 - }, - "end": { - "line": 1, - "column": 9, - "offset": 8 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " character", - "position": { - "start": { - "line": 1, - "column": 9, - "offset": 8 - }, - "end": { - "line": 1, - "column": 19, - "offset": 18 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 26, - "offset": 25 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 26, - "offset": 25 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "/url", - "children": [ - { - "type": "text", - "value": "the ", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 28 - }, - "end": { - "line": 3, - "column": 6, - "offset": 32 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "[", - "position": { - "start": { - "line": 3, - "column": 6, - "offset": 32 - }, - "end": { - "line": 3, - "column": 13, - "offset": 39 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " character", - "position": { - "start": { - "line": 3, - "column": 13, - "offset": 39 - }, - "end": { - "line": 3, - "column": 23, - "offset": 49 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 27 - }, - "end": { - "line": 3, - "column": 30, - "offset": 56 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 27 - }, - "end": { - "line": 3, - "column": 30, - "offset": 56 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "/url", - "children": [ - { - "type": "text", - "value": "the `` [ ``` character", - "position": { - "start": { - "line": 5, - "column": 2, - "offset": 59 - }, - "end": { - "line": 5, - "column": 24, - "offset": 81 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 58 - }, - "end": { - "line": 5, - "column": 31, - "offset": 88 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 58 - }, - "end": { - "line": 5, - "column": 31, - "offset": 88 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "/url", - "children": [ - { - "type": "text", - "value": "the ", - "position": { - "start": { - "line": 7, - "column": 2, - "offset": 91 - }, - "end": { - "line": 7, - "column": 6, - "offset": 95 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "`", - "position": { - "start": { - "line": 7, - "column": 6, - "offset": 95 - }, - "end": { - "line": 7, - "column": 13, - "offset": 102 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " character", - "position": { - "start": { - "line": 7, - "column": 13, - "offset": 102 - }, - "end": { - "line": 7, - "column": 23, - "offset": 112 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 90 - }, - "end": { - "line": 7, - "column": 30, - "offset": 119 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 90 - }, - "end": { - "line": 7, - "column": 30, - "offset": 119 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 120 - } - } -} diff --git a/test/fixtures/tree/nested-square-link.nogfm.json b/test/fixtures/tree/nested-square-link.nogfm.json deleted file mode 100644 index 413897608..000000000 --- a/test/fixtures/tree/nested-square-link.nogfm.json +++ /dev/null @@ -1,339 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "/url", - "children": [ - { - "type": "text", - "value": "the ", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 6, - "offset": 5 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "]", - "position": { - "start": { - "line": 1, - "column": 6, - "offset": 5 - }, - "end": { - "line": 1, - "column": 9, - "offset": 8 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " character", - "position": { - "start": { - "line": 1, - "column": 9, - "offset": 8 - }, - "end": { - "line": 1, - "column": 19, - "offset": 18 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 26, - "offset": 25 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 26, - "offset": 25 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "/url", - "children": [ - { - "type": "text", - "value": "the ", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 28 - }, - "end": { - "line": 3, - "column": 6, - "offset": 32 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "[", - "position": { - "start": { - "line": 3, - "column": 6, - "offset": 32 - }, - "end": { - "line": 3, - "column": 13, - "offset": 39 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " character", - "position": { - "start": { - "line": 3, - "column": 13, - "offset": 39 - }, - "end": { - "line": 3, - "column": 23, - "offset": 49 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 27 - }, - "end": { - "line": 3, - "column": 30, - "offset": 56 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 27 - }, - "end": { - "line": 3, - "column": 30, - "offset": 56 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "/url", - "children": [ - { - "type": "text", - "value": "the `` [ ``` character", - "position": { - "start": { - "line": 5, - "column": 2, - "offset": 59 - }, - "end": { - "line": 5, - "column": 24, - "offset": 81 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 58 - }, - "end": { - "line": 5, - "column": 31, - "offset": 88 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 58 - }, - "end": { - "line": 5, - "column": 31, - "offset": 88 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": null, - "url": "/url", - "children": [ - { - "type": "text", - "value": "the ", - "position": { - "start": { - "line": 7, - "column": 2, - "offset": 91 - }, - "end": { - "line": 7, - "column": 6, - "offset": 95 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "`", - "position": { - "start": { - "line": 7, - "column": 6, - "offset": 95 - }, - "end": { - "line": 7, - "column": 13, - "offset": 102 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " character", - "position": { - "start": { - "line": 7, - "column": 13, - "offset": 102 - }, - "end": { - "line": 7, - "column": 23, - "offset": 112 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 90 - }, - "end": { - "line": 7, - "column": 30, - "offset": 119 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 90 - }, - "end": { - "line": 7, - "column": 30, - "offset": 119 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 120 - } - } -} diff --git a/test/fixtures/tree/no-positionals.nooutput.commonmark.json b/test/fixtures/tree/no-positionals.nooutput.commonmark.json deleted file mode 100644 index f12b1d25c..000000000 --- a/test/fixtures/tree/no-positionals.nooutput.commonmark.json +++ /dev/null @@ -1,596 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This document tests for the working of ", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 40, - "offset": 39 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "position: false", - "position": { - "start": { - "line": 1, - "column": 40, - "offset": 39 - }, - "end": { - "line": 1, - "column": 57, - "offset": 56 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " as a parse\noption.", - "position": { - "start": { - "line": 1, - "column": 57, - "offset": 56 - }, - "end": { - "line": 2, - "column": 8, - "offset": 75 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 8, - "offset": 75 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "blockquote", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": " Block-quotes", - "position": { - "start": { - "line": 4, - "column": 3, - "offset": 79 - }, - "end": { - "line": 4, - "column": 17, - "offset": 93 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 3, - "offset": 79 - }, - "end": { - "line": 4, - "column": 17, - "offset": 93 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "With list items.", - "position": { - "start": { - "line": 6, - "column": 9, - "offset": 104 - }, - "end": { - "line": 6, - "column": 25, - "offset": 120 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 9, - "offset": 104 - }, - "end": { - "line": 6, - "column": 25, - "offset": 120 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 3, - "offset": 98 - }, - "end": { - "line": 6, - "column": 25, - "offset": 120 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 3, - "offset": 98 - }, - "end": { - "line": 6, - "column": 25, - "offset": 120 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 77 - }, - "end": { - "line": 6, - "column": 25, - "offset": 120 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Another block-quote:", - "position": { - "start": { - "line": 8, - "column": 1, - "offset": 122 - }, - "end": { - "line": 8, - "column": 21, - "offset": 142 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 8, - "column": 1, - "offset": 122 - }, - "end": { - "line": 8, - "column": 21, - "offset": 142 - }, - "indent": [] - } - }, - { - "type": "blockquote", - "children": [ - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And another list.", - "position": { - "start": { - "line": 10, - "column": 9, - "offset": 152 - }, - "end": { - "line": 10, - "column": 26, - "offset": 169 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 10, - "column": 9, - "offset": 152 - }, - "end": { - "line": 10, - "column": 26, - "offset": 169 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 10, - "column": 3, - "offset": 146 - }, - "end": { - "line": 10, - "column": 26, - "offset": 169 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 10, - "column": 3, - "offset": 146 - }, - "end": { - "line": 10, - "column": 26, - "offset": 169 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 144 - }, - "end": { - "line": 10, - "column": 26, - "offset": 169 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Some ", - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 171 - }, - "end": { - "line": 12, - "column": 6, - "offset": 176 - }, - "indent": [] - } - }, - { - "type": "link", - "title": null, - "url": "http://example.com", - "children": [ - { - "type": "text", - "value": "deeply ", - "position": { - "start": { - "line": 12, - "column": 7, - "offset": 177 - }, - "end": { - "line": 12, - "column": 14, - "offset": 184 - }, - "indent": [] - } - }, - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "nested ", - "position": { - "start": { - "line": 12, - "column": 16, - "offset": 186 - }, - "end": { - "line": 12, - "column": 23, - "offset": 193 - }, - "indent": [] - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "elements", - "position": { - "start": { - "line": 12, - "column": 24, - "offset": 194 - }, - "end": { - "line": 12, - "column": 32, - "offset": 202 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 23, - "offset": 193 - }, - "end": { - "line": 12, - "column": 33, - "offset": 203 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 14, - "offset": 184 - }, - "end": { - "line": 12, - "column": 35, - "offset": 205 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 6, - "offset": 176 - }, - "end": { - "line": 12, - "column": 56, - "offset": 226 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 171 - }, - "end": { - "line": 12, - "column": 56, - "offset": 226 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "An entity: ", - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 228 - }, - "end": { - "line": 14, - "column": 12, - "offset": 239 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "©", - "position": { - "start": { - "line": 14, - "column": 12, - "offset": 239 - }, - "end": { - "line": 14, - "column": 18, - "offset": 245 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ", and an warning entity: ", - "position": { - "start": { - "line": 14, - "column": 18, - "offset": 245 - }, - "end": { - "line": 14, - "column": 43, - "offset": 270 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "©", - "position": { - "start": { - "line": 14, - "column": 43, - "offset": 270 - }, - "end": { - "line": 14, - "column": 48, - "offset": 275 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 14, - "column": 48, - "offset": 275 - }, - "end": { - "line": 14, - "column": 49, - "offset": 276 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 228 - }, - "end": { - "line": 14, - "column": 49, - "offset": 276 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 15, - "column": 1, - "offset": 277 - } - } -} diff --git a/test/fixtures/tree/no-positionals.nooutput.commonmark.pedantic.json b/test/fixtures/tree/no-positionals.nooutput.commonmark.pedantic.json deleted file mode 100644 index f12b1d25c..000000000 --- a/test/fixtures/tree/no-positionals.nooutput.commonmark.pedantic.json +++ /dev/null @@ -1,596 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This document tests for the working of ", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 40, - "offset": 39 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "position: false", - "position": { - "start": { - "line": 1, - "column": 40, - "offset": 39 - }, - "end": { - "line": 1, - "column": 57, - "offset": 56 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " as a parse\noption.", - "position": { - "start": { - "line": 1, - "column": 57, - "offset": 56 - }, - "end": { - "line": 2, - "column": 8, - "offset": 75 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 8, - "offset": 75 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "blockquote", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": " Block-quotes", - "position": { - "start": { - "line": 4, - "column": 3, - "offset": 79 - }, - "end": { - "line": 4, - "column": 17, - "offset": 93 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 3, - "offset": 79 - }, - "end": { - "line": 4, - "column": 17, - "offset": 93 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "With list items.", - "position": { - "start": { - "line": 6, - "column": 9, - "offset": 104 - }, - "end": { - "line": 6, - "column": 25, - "offset": 120 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 9, - "offset": 104 - }, - "end": { - "line": 6, - "column": 25, - "offset": 120 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 3, - "offset": 98 - }, - "end": { - "line": 6, - "column": 25, - "offset": 120 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 3, - "offset": 98 - }, - "end": { - "line": 6, - "column": 25, - "offset": 120 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 77 - }, - "end": { - "line": 6, - "column": 25, - "offset": 120 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Another block-quote:", - "position": { - "start": { - "line": 8, - "column": 1, - "offset": 122 - }, - "end": { - "line": 8, - "column": 21, - "offset": 142 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 8, - "column": 1, - "offset": 122 - }, - "end": { - "line": 8, - "column": 21, - "offset": 142 - }, - "indent": [] - } - }, - { - "type": "blockquote", - "children": [ - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And another list.", - "position": { - "start": { - "line": 10, - "column": 9, - "offset": 152 - }, - "end": { - "line": 10, - "column": 26, - "offset": 169 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 10, - "column": 9, - "offset": 152 - }, - "end": { - "line": 10, - "column": 26, - "offset": 169 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 10, - "column": 3, - "offset": 146 - }, - "end": { - "line": 10, - "column": 26, - "offset": 169 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 10, - "column": 3, - "offset": 146 - }, - "end": { - "line": 10, - "column": 26, - "offset": 169 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 144 - }, - "end": { - "line": 10, - "column": 26, - "offset": 169 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Some ", - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 171 - }, - "end": { - "line": 12, - "column": 6, - "offset": 176 - }, - "indent": [] - } - }, - { - "type": "link", - "title": null, - "url": "http://example.com", - "children": [ - { - "type": "text", - "value": "deeply ", - "position": { - "start": { - "line": 12, - "column": 7, - "offset": 177 - }, - "end": { - "line": 12, - "column": 14, - "offset": 184 - }, - "indent": [] - } - }, - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "nested ", - "position": { - "start": { - "line": 12, - "column": 16, - "offset": 186 - }, - "end": { - "line": 12, - "column": 23, - "offset": 193 - }, - "indent": [] - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "elements", - "position": { - "start": { - "line": 12, - "column": 24, - "offset": 194 - }, - "end": { - "line": 12, - "column": 32, - "offset": 202 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 23, - "offset": 193 - }, - "end": { - "line": 12, - "column": 33, - "offset": 203 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 14, - "offset": 184 - }, - "end": { - "line": 12, - "column": 35, - "offset": 205 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 6, - "offset": 176 - }, - "end": { - "line": 12, - "column": 56, - "offset": 226 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 171 - }, - "end": { - "line": 12, - "column": 56, - "offset": 226 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "An entity: ", - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 228 - }, - "end": { - "line": 14, - "column": 12, - "offset": 239 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "©", - "position": { - "start": { - "line": 14, - "column": 12, - "offset": 239 - }, - "end": { - "line": 14, - "column": 18, - "offset": 245 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ", and an warning entity: ", - "position": { - "start": { - "line": 14, - "column": 18, - "offset": 245 - }, - "end": { - "line": 14, - "column": 43, - "offset": 270 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "©", - "position": { - "start": { - "line": 14, - "column": 43, - "offset": 270 - }, - "end": { - "line": 14, - "column": 48, - "offset": 275 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 14, - "column": 48, - "offset": 275 - }, - "end": { - "line": 14, - "column": 49, - "offset": 276 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 228 - }, - "end": { - "line": 14, - "column": 49, - "offset": 276 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 15, - "column": 1, - "offset": 277 - } - } -} diff --git a/test/fixtures/tree/no-positionals.nooutput.json b/test/fixtures/tree/no-positionals.nooutput.json deleted file mode 100644 index f12b1d25c..000000000 --- a/test/fixtures/tree/no-positionals.nooutput.json +++ /dev/null @@ -1,596 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This document tests for the working of ", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 40, - "offset": 39 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "position: false", - "position": { - "start": { - "line": 1, - "column": 40, - "offset": 39 - }, - "end": { - "line": 1, - "column": 57, - "offset": 56 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " as a parse\noption.", - "position": { - "start": { - "line": 1, - "column": 57, - "offset": 56 - }, - "end": { - "line": 2, - "column": 8, - "offset": 75 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 8, - "offset": 75 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "blockquote", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": " Block-quotes", - "position": { - "start": { - "line": 4, - "column": 3, - "offset": 79 - }, - "end": { - "line": 4, - "column": 17, - "offset": 93 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 3, - "offset": 79 - }, - "end": { - "line": 4, - "column": 17, - "offset": 93 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "With list items.", - "position": { - "start": { - "line": 6, - "column": 9, - "offset": 104 - }, - "end": { - "line": 6, - "column": 25, - "offset": 120 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 9, - "offset": 104 - }, - "end": { - "line": 6, - "column": 25, - "offset": 120 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 3, - "offset": 98 - }, - "end": { - "line": 6, - "column": 25, - "offset": 120 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 3, - "offset": 98 - }, - "end": { - "line": 6, - "column": 25, - "offset": 120 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 77 - }, - "end": { - "line": 6, - "column": 25, - "offset": 120 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Another block-quote:", - "position": { - "start": { - "line": 8, - "column": 1, - "offset": 122 - }, - "end": { - "line": 8, - "column": 21, - "offset": 142 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 8, - "column": 1, - "offset": 122 - }, - "end": { - "line": 8, - "column": 21, - "offset": 142 - }, - "indent": [] - } - }, - { - "type": "blockquote", - "children": [ - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And another list.", - "position": { - "start": { - "line": 10, - "column": 9, - "offset": 152 - }, - "end": { - "line": 10, - "column": 26, - "offset": 169 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 10, - "column": 9, - "offset": 152 - }, - "end": { - "line": 10, - "column": 26, - "offset": 169 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 10, - "column": 3, - "offset": 146 - }, - "end": { - "line": 10, - "column": 26, - "offset": 169 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 10, - "column": 3, - "offset": 146 - }, - "end": { - "line": 10, - "column": 26, - "offset": 169 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 144 - }, - "end": { - "line": 10, - "column": 26, - "offset": 169 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Some ", - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 171 - }, - "end": { - "line": 12, - "column": 6, - "offset": 176 - }, - "indent": [] - } - }, - { - "type": "link", - "title": null, - "url": "http://example.com", - "children": [ - { - "type": "text", - "value": "deeply ", - "position": { - "start": { - "line": 12, - "column": 7, - "offset": 177 - }, - "end": { - "line": 12, - "column": 14, - "offset": 184 - }, - "indent": [] - } - }, - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "nested ", - "position": { - "start": { - "line": 12, - "column": 16, - "offset": 186 - }, - "end": { - "line": 12, - "column": 23, - "offset": 193 - }, - "indent": [] - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "elements", - "position": { - "start": { - "line": 12, - "column": 24, - "offset": 194 - }, - "end": { - "line": 12, - "column": 32, - "offset": 202 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 23, - "offset": 193 - }, - "end": { - "line": 12, - "column": 33, - "offset": 203 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 14, - "offset": 184 - }, - "end": { - "line": 12, - "column": 35, - "offset": 205 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 6, - "offset": 176 - }, - "end": { - "line": 12, - "column": 56, - "offset": 226 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 171 - }, - "end": { - "line": 12, - "column": 56, - "offset": 226 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "An entity: ", - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 228 - }, - "end": { - "line": 14, - "column": 12, - "offset": 239 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "©", - "position": { - "start": { - "line": 14, - "column": 12, - "offset": 239 - }, - "end": { - "line": 14, - "column": 18, - "offset": 245 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ", and an warning entity: ", - "position": { - "start": { - "line": 14, - "column": 18, - "offset": 245 - }, - "end": { - "line": 14, - "column": 43, - "offset": 270 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "©", - "position": { - "start": { - "line": 14, - "column": 43, - "offset": 270 - }, - "end": { - "line": 14, - "column": 48, - "offset": 275 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 14, - "column": 48, - "offset": 275 - }, - "end": { - "line": 14, - "column": 49, - "offset": 276 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 228 - }, - "end": { - "line": 14, - "column": 49, - "offset": 276 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 15, - "column": 1, - "offset": 277 - } - } -} diff --git a/test/fixtures/tree/no-positionals.nooutput.noposition.commonmark.json b/test/fixtures/tree/no-positionals.nooutput.noposition.commonmark.json deleted file mode 100644 index f4186412f..000000000 --- a/test/fixtures/tree/no-positionals.nooutput.noposition.commonmark.json +++ /dev/null @@ -1,161 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This document tests for the working of " - }, - { - "type": "inlineCode", - "value": "position: false" - }, - { - "type": "text", - "value": " as a parse\noption." - } - ] - }, - { - "type": "blockquote", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": " Block-quotes" - } - ] - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "With list items." - } - ] - } - ] - } - ] - } - ] - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Another block-quote:" - } - ] - }, - { - "type": "blockquote", - "children": [ - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And another list." - } - ] - } - ] - } - ] - } - ] - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Some " - }, - { - "type": "link", - "title": null, - "url": "http://example.com", - "children": [ - { - "type": "text", - "value": "deeply " - }, - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "nested " - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "elements" - } - ] - } - ] - } - ] - } - ] - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "An entity: " - }, - { - "type": "text", - "value": "©" - }, - { - "type": "text", - "value": ", and an warning entity: " - }, - { - "type": "text", - "value": "©" - }, - { - "type": "text", - "value": "." - } - ] - } - ] -} diff --git a/test/fixtures/tree/no-positionals.nooutput.noposition.commonmark.pedantic.json b/test/fixtures/tree/no-positionals.nooutput.noposition.commonmark.pedantic.json deleted file mode 100644 index f4186412f..000000000 --- a/test/fixtures/tree/no-positionals.nooutput.noposition.commonmark.pedantic.json +++ /dev/null @@ -1,161 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This document tests for the working of " - }, - { - "type": "inlineCode", - "value": "position: false" - }, - { - "type": "text", - "value": " as a parse\noption." - } - ] - }, - { - "type": "blockquote", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": " Block-quotes" - } - ] - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "With list items." - } - ] - } - ] - } - ] - } - ] - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Another block-quote:" - } - ] - }, - { - "type": "blockquote", - "children": [ - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And another list." - } - ] - } - ] - } - ] - } - ] - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Some " - }, - { - "type": "link", - "title": null, - "url": "http://example.com", - "children": [ - { - "type": "text", - "value": "deeply " - }, - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "nested " - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "elements" - } - ] - } - ] - } - ] - } - ] - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "An entity: " - }, - { - "type": "text", - "value": "©" - }, - { - "type": "text", - "value": ", and an warning entity: " - }, - { - "type": "text", - "value": "©" - }, - { - "type": "text", - "value": "." - } - ] - } - ] -} diff --git a/test/fixtures/tree/no-positionals.nooutput.noposition.json b/test/fixtures/tree/no-positionals.nooutput.noposition.json deleted file mode 100644 index f4186412f..000000000 --- a/test/fixtures/tree/no-positionals.nooutput.noposition.json +++ /dev/null @@ -1,161 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This document tests for the working of " - }, - { - "type": "inlineCode", - "value": "position: false" - }, - { - "type": "text", - "value": " as a parse\noption." - } - ] - }, - { - "type": "blockquote", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": " Block-quotes" - } - ] - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "With list items." - } - ] - } - ] - } - ] - } - ] - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Another block-quote:" - } - ] - }, - { - "type": "blockquote", - "children": [ - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And another list." - } - ] - } - ] - } - ] - } - ] - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Some " - }, - { - "type": "link", - "title": null, - "url": "http://example.com", - "children": [ - { - "type": "text", - "value": "deeply " - }, - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "nested " - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "elements" - } - ] - } - ] - } - ] - } - ] - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "An entity: " - }, - { - "type": "text", - "value": "©" - }, - { - "type": "text", - "value": ", and an warning entity: " - }, - { - "type": "text", - "value": "©" - }, - { - "type": "text", - "value": "." - } - ] - } - ] -} diff --git a/test/fixtures/tree/no-positionals.nooutput.pedantic.json b/test/fixtures/tree/no-positionals.nooutput.pedantic.json deleted file mode 100644 index f12b1d25c..000000000 --- a/test/fixtures/tree/no-positionals.nooutput.pedantic.json +++ /dev/null @@ -1,596 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This document tests for the working of ", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 40, - "offset": 39 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "position: false", - "position": { - "start": { - "line": 1, - "column": 40, - "offset": 39 - }, - "end": { - "line": 1, - "column": 57, - "offset": 56 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " as a parse\noption.", - "position": { - "start": { - "line": 1, - "column": 57, - "offset": 56 - }, - "end": { - "line": 2, - "column": 8, - "offset": 75 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 8, - "offset": 75 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "blockquote", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": " Block-quotes", - "position": { - "start": { - "line": 4, - "column": 3, - "offset": 79 - }, - "end": { - "line": 4, - "column": 17, - "offset": 93 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 3, - "offset": 79 - }, - "end": { - "line": 4, - "column": 17, - "offset": 93 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "With list items.", - "position": { - "start": { - "line": 6, - "column": 9, - "offset": 104 - }, - "end": { - "line": 6, - "column": 25, - "offset": 120 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 9, - "offset": 104 - }, - "end": { - "line": 6, - "column": 25, - "offset": 120 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 3, - "offset": 98 - }, - "end": { - "line": 6, - "column": 25, - "offset": 120 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 3, - "offset": 98 - }, - "end": { - "line": 6, - "column": 25, - "offset": 120 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 77 - }, - "end": { - "line": 6, - "column": 25, - "offset": 120 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Another block-quote:", - "position": { - "start": { - "line": 8, - "column": 1, - "offset": 122 - }, - "end": { - "line": 8, - "column": 21, - "offset": 142 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 8, - "column": 1, - "offset": 122 - }, - "end": { - "line": 8, - "column": 21, - "offset": 142 - }, - "indent": [] - } - }, - { - "type": "blockquote", - "children": [ - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And another list.", - "position": { - "start": { - "line": 10, - "column": 9, - "offset": 152 - }, - "end": { - "line": 10, - "column": 26, - "offset": 169 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 10, - "column": 9, - "offset": 152 - }, - "end": { - "line": 10, - "column": 26, - "offset": 169 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 10, - "column": 3, - "offset": 146 - }, - "end": { - "line": 10, - "column": 26, - "offset": 169 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 10, - "column": 3, - "offset": 146 - }, - "end": { - "line": 10, - "column": 26, - "offset": 169 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 144 - }, - "end": { - "line": 10, - "column": 26, - "offset": 169 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Some ", - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 171 - }, - "end": { - "line": 12, - "column": 6, - "offset": 176 - }, - "indent": [] - } - }, - { - "type": "link", - "title": null, - "url": "http://example.com", - "children": [ - { - "type": "text", - "value": "deeply ", - "position": { - "start": { - "line": 12, - "column": 7, - "offset": 177 - }, - "end": { - "line": 12, - "column": 14, - "offset": 184 - }, - "indent": [] - } - }, - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "nested ", - "position": { - "start": { - "line": 12, - "column": 16, - "offset": 186 - }, - "end": { - "line": 12, - "column": 23, - "offset": 193 - }, - "indent": [] - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "elements", - "position": { - "start": { - "line": 12, - "column": 24, - "offset": 194 - }, - "end": { - "line": 12, - "column": 32, - "offset": 202 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 23, - "offset": 193 - }, - "end": { - "line": 12, - "column": 33, - "offset": 203 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 14, - "offset": 184 - }, - "end": { - "line": 12, - "column": 35, - "offset": 205 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 6, - "offset": 176 - }, - "end": { - "line": 12, - "column": 56, - "offset": 226 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 171 - }, - "end": { - "line": 12, - "column": 56, - "offset": 226 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "An entity: ", - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 228 - }, - "end": { - "line": 14, - "column": 12, - "offset": 239 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "©", - "position": { - "start": { - "line": 14, - "column": 12, - "offset": 239 - }, - "end": { - "line": 14, - "column": 18, - "offset": 245 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ", and an warning entity: ", - "position": { - "start": { - "line": 14, - "column": 18, - "offset": 245 - }, - "end": { - "line": 14, - "column": 43, - "offset": 270 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "©", - "position": { - "start": { - "line": 14, - "column": 43, - "offset": 270 - }, - "end": { - "line": 14, - "column": 48, - "offset": 275 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 14, - "column": 48, - "offset": 275 - }, - "end": { - "line": 14, - "column": 49, - "offset": 276 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 228 - }, - "end": { - "line": 14, - "column": 49, - "offset": 276 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 15, - "column": 1, - "offset": 277 - } - } -} diff --git a/test/fixtures/tree/no-positionals.nooutput.pedantic.noposition.json b/test/fixtures/tree/no-positionals.nooutput.pedantic.noposition.json deleted file mode 100644 index a44822a76..000000000 --- a/test/fixtures/tree/no-positionals.nooutput.pedantic.noposition.json +++ /dev/null @@ -1,122 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This document tests for the working of " - }, - { - "type": "inlineCode", - "value": "position: false" - }, - { - "type": "text", - "value": " as a parse\noption." - } - ] - }, - { - "type": "blockquote", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": " Block-quotes" - } - ] - }, - { - "type": "list", - "ordered": false, - "start": null, - "loose": false, - "children": [ - { - "type": "listItem", - "loose": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "With list items." - } - ] - } - ] - } - ] - }, - { - "type": "list", - "ordered": true, - "start": 1, - "loose": false, - "children": [ - { - "type": "listItem", - "loose": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And another list." - } - ] - } - ] - } - ] - } - ] - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Some " - }, - { - "type": "link", - "title": null, - "href": "http://example.com", - "children": [ - { - "type": "text", - "value": "deeply " - }, - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "nested " - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "elements" - } - ] - } - ] - } - ] - } - ] - } - ] -} diff --git a/test/fixtures/tree/not-a-link.json b/test/fixtures/tree/not-a-link.json index 67bf15063..3cbaeeee3 100644 --- a/test/fixtures/tree/not-a-link.json +++ b/test/fixtures/tree/not-a-link.json @@ -6,36 +6,18 @@ "children": [ { "type": "text", - "value": "[", + "value": "[test](not a link)", "position": { "start": { "line": 1, "column": 1, "offset": 0 }, - "end": { - "line": 1, - "column": 3, - "offset": 2 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "test](not a link)", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, "end": { "line": 1, "column": 20, "offset": 19 - }, - "indent": [] + } } } ], @@ -49,8 +31,7 @@ "line": 1, "column": 20, "offset": 19 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/ordered-and-unordered-lists.json b/test/fixtures/tree/ordered-and-unordered-lists.json index a5b35f374..e3eb9aea9 100644 --- a/test/fixtures/tree/ordered-and-unordered-lists.json +++ b/test/fixtures/tree/ordered-and-unordered-lists.json @@ -18,8 +18,7 @@ "line": 1, "column": 13, "offset": 12 - }, - "indent": [] + } } } ], @@ -33,8 +32,7 @@ "line": 1, "column": 13, "offset": 12 - }, - "indent": [] + } } }, { @@ -53,8 +51,7 @@ "line": 3, "column": 17, "offset": 30 - }, - "indent": [] + } } } ], @@ -68,8 +65,7 @@ "line": 3, "column": 17, "offset": 30 - }, - "indent": [] + } } }, { @@ -99,8 +95,7 @@ "line": 5, "column": 13, "offset": 44 - }, - "indent": [] + } } } ], @@ -114,8 +109,7 @@ "line": 5, "column": 13, "offset": 44 - }, - "indent": [] + } } } ], @@ -129,8 +123,7 @@ "line": 5, "column": 13, "offset": 44 - }, - "indent": [] + } } }, { @@ -154,8 +147,7 @@ "line": 6, "column": 13, "offset": 57 - }, - "indent": [] + } } } ], @@ -169,8 +161,7 @@ "line": 6, "column": 13, "offset": 57 - }, - "indent": [] + } } } ], @@ -184,8 +175,7 @@ "line": 6, "column": 13, "offset": 57 - }, - "indent": [] + } } }, { @@ -209,8 +199,7 @@ "line": 7, "column": 13, "offset": 70 - }, - "indent": [] + } } } ], @@ -224,8 +213,7 @@ "line": 7, "column": 13, "offset": 70 - }, - "indent": [] + } } } ], @@ -239,8 +227,7 @@ "line": 7, "column": 13, "offset": 70 - }, - "indent": [] + } } } ], @@ -254,11 +241,7 @@ "line": 7, "column": 13, "offset": 70 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -277,8 +260,7 @@ "line": 10, "column": 17, "offset": 89 - }, - "indent": [] + } } } ], @@ -292,8 +274,7 @@ "line": 10, "column": 17, "offset": 89 - }, - "indent": [] + } } }, { @@ -323,8 +304,7 @@ "line": 12, "column": 13, "offset": 103 - }, - "indent": [] + } } } ], @@ -338,8 +318,7 @@ "line": 12, "column": 13, "offset": 103 - }, - "indent": [] + } } } ], @@ -350,13 +329,10 @@ "offset": 91 }, "end": { - "line": 13, - "column": 1, - "offset": 104 - }, - "indent": [ - 1 - ] + "line": 12, + "column": 13, + "offset": 103 + } } }, { @@ -380,8 +356,7 @@ "line": 14, "column": 13, "offset": 117 - }, - "indent": [] + } } } ], @@ -395,8 +370,7 @@ "line": 14, "column": 13, "offset": 117 - }, - "indent": [] + } } } ], @@ -407,13 +381,10 @@ "offset": 105 }, "end": { - "line": 15, - "column": 1, - "offset": 118 - }, - "indent": [ - 1 - ] + "line": 14, + "column": 13, + "offset": 117 + } } }, { @@ -437,8 +408,7 @@ "line": 16, "column": 13, "offset": 131 - }, - "indent": [] + } } } ], @@ -452,8 +422,7 @@ "line": 16, "column": 13, "offset": 131 - }, - "indent": [] + } } } ], @@ -467,8 +436,7 @@ "line": 16, "column": 13, "offset": 131 - }, - "indent": [] + } } } ], @@ -482,13 +450,7 @@ "line": 16, "column": 13, "offset": 131 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] + } } }, { @@ -503,8 +465,7 @@ "line": 18, "column": 6, "offset": 138 - }, - "indent": [] + } } }, { @@ -523,8 +484,7 @@ "line": 20, "column": 14, "offset": 153 - }, - "indent": [] + } } } ], @@ -538,8 +498,7 @@ "line": 20, "column": 14, "offset": 153 - }, - "indent": [] + } } }, { @@ -569,8 +528,7 @@ "line": 22, "column": 9, "offset": 163 - }, - "indent": [] + } } } ], @@ -584,8 +542,7 @@ "line": 22, "column": 9, "offset": 163 - }, - "indent": [] + } } } ], @@ -599,8 +556,7 @@ "line": 22, "column": 9, "offset": 163 - }, - "indent": [] + } } }, { @@ -624,8 +580,7 @@ "line": 23, "column": 9, "offset": 172 - }, - "indent": [] + } } } ], @@ -639,8 +594,7 @@ "line": 23, "column": 9, "offset": 172 - }, - "indent": [] + } } } ], @@ -654,8 +608,7 @@ "line": 23, "column": 9, "offset": 172 - }, - "indent": [] + } } }, { @@ -679,8 +632,7 @@ "line": 24, "column": 9, "offset": 181 - }, - "indent": [] + } } } ], @@ -694,8 +646,7 @@ "line": 24, "column": 9, "offset": 181 - }, - "indent": [] + } } } ], @@ -709,8 +660,7 @@ "line": 24, "column": 9, "offset": 181 - }, - "indent": [] + } } } ], @@ -724,11 +674,7 @@ "line": 24, "column": 9, "offset": 181 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -747,8 +693,7 @@ "line": 27, "column": 14, "offset": 197 - }, - "indent": [] + } } } ], @@ -762,8 +707,7 @@ "line": 27, "column": 14, "offset": 197 - }, - "indent": [] + } } }, { @@ -793,8 +737,7 @@ "line": 29, "column": 9, "offset": 207 - }, - "indent": [] + } } } ], @@ -808,8 +751,7 @@ "line": 29, "column": 9, "offset": 207 - }, - "indent": [] + } } } ], @@ -820,13 +762,10 @@ "offset": 199 }, "end": { - "line": 30, - "column": 1, - "offset": 208 - }, - "indent": [ - 1 - ] + "line": 29, + "column": 9, + "offset": 207 + } } }, { @@ -850,8 +789,7 @@ "line": 31, "column": 9, "offset": 217 - }, - "indent": [] + } } } ], @@ -865,8 +803,7 @@ "line": 31, "column": 9, "offset": 217 - }, - "indent": [] + } } } ], @@ -877,13 +814,10 @@ "offset": 209 }, "end": { - "line": 32, - "column": 1, - "offset": 218 - }, - "indent": [ - 1 - ] + "line": 31, + "column": 9, + "offset": 217 + } } }, { @@ -907,8 +841,7 @@ "line": 33, "column": 9, "offset": 227 - }, - "indent": [] + } } } ], @@ -922,8 +855,7 @@ "line": 33, "column": 9, "offset": 227 - }, - "indent": [] + } } } ], @@ -937,8 +869,7 @@ "line": 33, "column": 9, "offset": 227 - }, - "indent": [] + } } } ], @@ -952,13 +883,7 @@ "line": 33, "column": 9, "offset": 227 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] + } } }, { @@ -973,8 +898,7 @@ "line": 35, "column": 6, "offset": 234 - }, - "indent": [] + } } }, { @@ -993,8 +917,7 @@ "line": 38, "column": 15, "offset": 251 - }, - "indent": [] + } } } ], @@ -1008,8 +931,7 @@ "line": 38, "column": 15, "offset": 251 - }, - "indent": [] + } } }, { @@ -1039,8 +961,7 @@ "line": 40, "column": 10, "offset": 262 - }, - "indent": [] + } } } ], @@ -1054,8 +975,7 @@ "line": 40, "column": 10, "offset": 262 - }, - "indent": [] + } } } ], @@ -1069,8 +989,7 @@ "line": 40, "column": 10, "offset": 262 - }, - "indent": [] + } } }, { @@ -1094,8 +1013,7 @@ "line": 41, "column": 10, "offset": 272 - }, - "indent": [] + } } } ], @@ -1109,8 +1027,7 @@ "line": 41, "column": 10, "offset": 272 - }, - "indent": [] + } } } ], @@ -1124,8 +1041,7 @@ "line": 41, "column": 10, "offset": 272 - }, - "indent": [] + } } }, { @@ -1149,8 +1065,7 @@ "line": 42, "column": 10, "offset": 282 - }, - "indent": [] + } } } ], @@ -1164,8 +1079,7 @@ "line": 42, "column": 10, "offset": 282 - }, - "indent": [] + } } } ], @@ -1179,8 +1093,7 @@ "line": 42, "column": 10, "offset": 282 - }, - "indent": [] + } } } ], @@ -1194,11 +1107,7 @@ "line": 42, "column": 10, "offset": 282 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -1217,8 +1126,7 @@ "line": 45, "column": 15, "offset": 299 - }, - "indent": [] + } } } ], @@ -1232,8 +1140,7 @@ "line": 45, "column": 15, "offset": 299 - }, - "indent": [] + } } }, { @@ -1263,8 +1170,7 @@ "line": 47, "column": 10, "offset": 310 - }, - "indent": [] + } } } ], @@ -1278,8 +1184,7 @@ "line": 47, "column": 10, "offset": 310 - }, - "indent": [] + } } } ], @@ -1290,13 +1195,10 @@ "offset": 301 }, "end": { - "line": 48, - "column": 1, - "offset": 311 - }, - "indent": [ - 1 - ] + "line": 47, + "column": 10, + "offset": 310 + } } }, { @@ -1320,8 +1222,7 @@ "line": 49, "column": 10, "offset": 321 - }, - "indent": [] + } } } ], @@ -1335,8 +1236,7 @@ "line": 49, "column": 10, "offset": 321 - }, - "indent": [] + } } } ], @@ -1347,13 +1247,10 @@ "offset": 312 }, "end": { - "line": 50, - "column": 1, - "offset": 322 - }, - "indent": [ - 1 - ] + "line": 49, + "column": 10, + "offset": 321 + } } }, { @@ -1377,8 +1274,7 @@ "line": 51, "column": 10, "offset": 332 - }, - "indent": [] + } } } ], @@ -1392,8 +1288,7 @@ "line": 51, "column": 10, "offset": 332 - }, - "indent": [] + } } } ], @@ -1407,8 +1302,7 @@ "line": 51, "column": 10, "offset": 332 - }, - "indent": [] + } } } ], @@ -1422,13 +1316,7 @@ "line": 51, "column": 10, "offset": 332 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] + } } }, { @@ -1448,8 +1336,7 @@ "line": 54, "column": 11, "offset": 345 - }, - "indent": [] + } } } ], @@ -1463,8 +1350,7 @@ "line": 54, "column": 11, "offset": 345 - }, - "indent": [] + } } }, { @@ -1483,8 +1369,7 @@ "line": 56, "column": 7, "offset": 353 - }, - "indent": [] + } } } ], @@ -1498,8 +1383,7 @@ "line": 56, "column": 7, "offset": 353 - }, - "indent": [] + } } }, { @@ -1529,8 +1413,7 @@ "line": 58, "column": 9, "offset": 363 - }, - "indent": [] + } } } ], @@ -1544,8 +1427,7 @@ "line": 58, "column": 9, "offset": 363 - }, - "indent": [] + } } } ], @@ -1559,8 +1441,7 @@ "line": 58, "column": 9, "offset": 363 - }, - "indent": [] + } } }, { @@ -1584,8 +1465,7 @@ "line": 59, "column": 10, "offset": 373 - }, - "indent": [] + } } } ], @@ -1599,8 +1479,7 @@ "line": 59, "column": 10, "offset": 373 - }, - "indent": [] + } } } ], @@ -1614,8 +1493,7 @@ "line": 59, "column": 10, "offset": 373 - }, - "indent": [] + } } }, { @@ -1639,8 +1517,7 @@ "line": 60, "column": 9, "offset": 382 - }, - "indent": [] + } } } ], @@ -1654,8 +1531,7 @@ "line": 60, "column": 9, "offset": 382 - }, - "indent": [] + } } } ], @@ -1669,8 +1545,7 @@ "line": 60, "column": 9, "offset": 382 - }, - "indent": [] + } } } ], @@ -1684,11 +1559,7 @@ "line": 60, "column": 9, "offset": 382 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -1707,8 +1578,7 @@ "line": 62, "column": 5, "offset": 388 - }, - "indent": [] + } } } ], @@ -1722,8 +1592,7 @@ "line": 62, "column": 5, "offset": 388 - }, - "indent": [] + } } }, { @@ -1753,8 +1622,7 @@ "line": 64, "column": 7, "offset": 396 - }, - "indent": [] + } } } ], @@ -1768,8 +1636,7 @@ "line": 64, "column": 7, "offset": 396 - }, - "indent": [] + } } } ], @@ -1783,8 +1650,7 @@ "line": 64, "column": 7, "offset": 396 - }, - "indent": [] + } } }, { @@ -1808,8 +1674,7 @@ "line": 65, "column": 7, "offset": 403 - }, - "indent": [] + } } } ], @@ -1823,8 +1688,7 @@ "line": 65, "column": 7, "offset": 403 - }, - "indent": [] + } } } ], @@ -1838,8 +1702,7 @@ "line": 65, "column": 7, "offset": 403 - }, - "indent": [] + } } }, { @@ -1863,8 +1726,7 @@ "line": 66, "column": 9, "offset": 412 - }, - "indent": [] + } } } ], @@ -1878,8 +1740,7 @@ "line": 66, "column": 9, "offset": 412 - }, - "indent": [] + } } } ], @@ -1893,8 +1754,7 @@ "line": 66, "column": 9, "offset": 412 - }, - "indent": [] + } } } ], @@ -1908,11 +1768,7 @@ "line": 66, "column": 9, "offset": 412 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -1931,8 +1787,7 @@ "line": 69, "column": 18, "offset": 432 - }, - "indent": [] + } } } ], @@ -1946,8 +1801,7 @@ "line": 69, "column": 18, "offset": 432 - }, - "indent": [] + } } }, { @@ -1977,8 +1831,7 @@ "line": 71, "column": 9, "offset": 442 - }, - "indent": [] + } } } ], @@ -1992,8 +1845,7 @@ "line": 71, "column": 9, "offset": 442 - }, - "indent": [] + } } } ], @@ -2004,13 +1856,10 @@ "offset": 434 }, "end": { - "line": 72, - "column": 1, - "offset": 443 - }, - "indent": [ - 1 - ] + "line": 71, + "column": 9, + "offset": 442 + } } }, { @@ -2034,8 +1883,7 @@ "line": 73, "column": 10, "offset": 453 - }, - "indent": [] + } } } ], @@ -2049,8 +1897,7 @@ "line": 73, "column": 10, "offset": 453 - }, - "indent": [] + } } } ], @@ -2061,13 +1908,10 @@ "offset": 444 }, "end": { - "line": 74, - "column": 1, - "offset": 454 - }, - "indent": [ - 1 - ] + "line": 73, + "column": 10, + "offset": 453 + } } }, { @@ -2091,8 +1935,7 @@ "line": 75, "column": 9, "offset": 463 - }, - "indent": [] + } } } ], @@ -2106,8 +1949,7 @@ "line": 75, "column": 9, "offset": 463 - }, - "indent": [] + } } } ], @@ -2121,8 +1963,7 @@ "line": 75, "column": 9, "offset": 463 - }, - "indent": [] + } } } ], @@ -2136,13 +1977,7 @@ "line": 75, "column": 9, "offset": 463 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] + } } }, { @@ -2161,8 +1996,7 @@ "line": 77, "column": 18, "offset": 482 - }, - "indent": [] + } } } ], @@ -2176,8 +2010,7 @@ "line": 77, "column": 18, "offset": 482 - }, - "indent": [] + } } }, { @@ -2207,8 +2040,7 @@ "line": 79, "column": 7, "offset": 490 - }, - "indent": [] + } } } ], @@ -2222,8 +2054,7 @@ "line": 79, "column": 7, "offset": 490 - }, - "indent": [] + } } } ], @@ -2234,13 +2065,10 @@ "offset": 484 }, "end": { - "line": 80, - "column": 1, - "offset": 491 - }, - "indent": [ - 1 - ] + "line": 79, + "column": 7, + "offset": 490 + } } }, { @@ -2264,8 +2092,7 @@ "line": 81, "column": 7, "offset": 498 - }, - "indent": [] + } } } ], @@ -2279,8 +2106,7 @@ "line": 81, "column": 7, "offset": 498 - }, - "indent": [] + } } } ], @@ -2291,13 +2117,10 @@ "offset": 492 }, "end": { - "line": 82, - "column": 1, - "offset": 499 - }, - "indent": [ - 1 - ] + "line": 81, + "column": 7, + "offset": 498 + } } }, { @@ -2321,8 +2144,7 @@ "line": 83, "column": 9, "offset": 508 - }, - "indent": [] + } } } ], @@ -2336,8 +2158,7 @@ "line": 83, "column": 9, "offset": 508 - }, - "indent": [] + } } } ], @@ -2351,8 +2172,7 @@ "line": 83, "column": 9, "offset": 508 - }, - "indent": [] + } } } ], @@ -2366,13 +2186,7 @@ "line": 83, "column": 9, "offset": 508 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] + } } }, { @@ -2391,8 +2205,7 @@ "line": 85, "column": 21, "offset": 530 - }, - "indent": [] + } } } ], @@ -2406,8 +2219,7 @@ "line": 85, "column": 21, "offset": 530 - }, - "indent": [] + } } }, { @@ -2437,8 +2249,7 @@ "line": 87, "column": 21, "offset": 552 - }, - "indent": [] + } } } ], @@ -2452,8 +2263,7 @@ "line": 87, "column": 21, "offset": 552 - }, - "indent": [] + } } }, { @@ -2472,10 +2282,7 @@ "line": 90, "column": 7, "offset": 626 - }, - "indent": [ - 2 - ] + } } } ], @@ -2489,10 +2296,7 @@ "line": 90, "column": 7, "offset": 626 - }, - "indent": [ - 2 - ] + } } } ], @@ -2503,16 +2307,10 @@ "offset": 532 }, "end": { - "line": 91, - "column": 2, - "offset": 628 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] + "line": 90, + "column": 7, + "offset": 626 + } } }, { @@ -2536,8 +2334,7 @@ "line": 92, "column": 11, "offset": 639 - }, - "indent": [] + } } } ], @@ -2551,8 +2348,7 @@ "line": 92, "column": 11, "offset": 639 - }, - "indent": [] + } } } ], @@ -2563,13 +2359,10 @@ "offset": 629 }, "end": { - "line": 93, - "column": 1, - "offset": 640 - }, - "indent": [ - 1 - ] + "line": 92, + "column": 11, + "offset": 639 + } } }, { @@ -2593,8 +2386,7 @@ "line": 94, "column": 11, "offset": 651 - }, - "indent": [] + } } } ], @@ -2608,8 +2400,7 @@ "line": 94, "column": 11, "offset": 651 - }, - "indent": [] + } } } ], @@ -2623,8 +2414,7 @@ "line": 94, "column": 11, "offset": 651 - }, - "indent": [] + } } } ], @@ -2638,16 +2428,7 @@ "line": 94, "column": 11, "offset": 651 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] + } } }, { @@ -2667,8 +2448,7 @@ "line": 98, "column": 10, "offset": 664 - }, - "indent": [] + } } } ], @@ -2682,8 +2462,7 @@ "line": 98, "column": 10, "offset": 664 - }, - "indent": [] + } } }, { @@ -2713,8 +2492,7 @@ "line": 100, "column": 6, "offset": 671 - }, - "indent": [] + } } } ], @@ -2728,8 +2506,7 @@ "line": 100, "column": 6, "offset": 671 - }, - "indent": [] + } } }, { @@ -2759,8 +2536,7 @@ "line": 101, "column": 7, "offset": 678 - }, - "indent": [] + } } } ], @@ -2774,8 +2550,7 @@ "line": 101, "column": 7, "offset": 678 - }, - "indent": [] + } } }, { @@ -2805,8 +2580,7 @@ "line": 102, "column": 8, "offset": 686 - }, - "indent": [] + } } } ], @@ -2820,8 +2594,7 @@ "line": 102, "column": 8, "offset": 686 - }, - "indent": [] + } } } ], @@ -2835,8 +2608,7 @@ "line": 102, "column": 8, "offset": 686 - }, - "indent": [] + } } } ], @@ -2850,8 +2622,7 @@ "line": 102, "column": 8, "offset": 686 - }, - "indent": [] + } } } ], @@ -2865,10 +2636,7 @@ "line": 102, "column": 8, "offset": 686 - }, - "indent": [ - 2 - ] + } } } ], @@ -2882,10 +2650,7 @@ "line": 102, "column": 8, "offset": 686 - }, - "indent": [ - 2 - ] + } } } ], @@ -2899,11 +2664,7 @@ "line": 102, "column": 8, "offset": 686 - }, - "indent": [ - 1, - 1 - ] + } } } ], @@ -2917,11 +2678,7 @@ "line": 102, "column": 8, "offset": 686 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -2940,8 +2697,7 @@ "line": 104, "column": 16, "offset": 703 - }, - "indent": [] + } } } ], @@ -2955,8 +2711,7 @@ "line": 104, "column": 16, "offset": 703 - }, - "indent": [] + } } }, { @@ -2986,8 +2741,7 @@ "line": 106, "column": 9, "offset": 713 - }, - "indent": [] + } } } ], @@ -3001,8 +2755,7 @@ "line": 106, "column": 9, "offset": 713 - }, - "indent": [] + } } } ], @@ -3016,8 +2769,7 @@ "line": 106, "column": 9, "offset": 713 - }, - "indent": [] + } } }, { @@ -3041,8 +2793,7 @@ "line": 107, "column": 11, "offset": 724 - }, - "indent": [] + } } } ], @@ -3056,8 +2807,7 @@ "line": 107, "column": 11, "offset": 724 - }, - "indent": [] + } } }, { @@ -3087,8 +2837,7 @@ "line": 108, "column": 7, "offset": 731 - }, - "indent": [] + } } } ], @@ -3102,8 +2851,7 @@ "line": 108, "column": 7, "offset": 731 - }, - "indent": [] + } } } ], @@ -3117,8 +2865,7 @@ "line": 108, "column": 7, "offset": 731 - }, - "indent": [] + } } }, { @@ -3142,8 +2889,7 @@ "line": 109, "column": 7, "offset": 738 - }, - "indent": [] + } } } ], @@ -3157,8 +2903,7 @@ "line": 109, "column": 7, "offset": 738 - }, - "indent": [] + } } } ], @@ -3172,8 +2917,7 @@ "line": 109, "column": 7, "offset": 738 - }, - "indent": [] + } } }, { @@ -3197,8 +2941,7 @@ "line": 110, "column": 7, "offset": 745 - }, - "indent": [] + } } } ], @@ -3212,8 +2955,7 @@ "line": 110, "column": 7, "offset": 745 - }, - "indent": [] + } } } ], @@ -3227,8 +2969,7 @@ "line": 110, "column": 7, "offset": 745 - }, - "indent": [] + } } } ], @@ -3242,11 +2983,7 @@ "line": 110, "column": 7, "offset": 745 - }, - "indent": [ - 2, - 2 - ] + } } } ], @@ -3260,12 +2997,7 @@ "line": 110, "column": 7, "offset": 745 - }, - "indent": [ - 1, - 1, - 1 - ] + } } }, { @@ -3289,8 +3021,7 @@ "line": 111, "column": 9, "offset": 754 - }, - "indent": [] + } } } ], @@ -3304,8 +3035,7 @@ "line": 111, "column": 9, "offset": 754 - }, - "indent": [] + } } } ], @@ -3319,8 +3049,7 @@ "line": 111, "column": 9, "offset": 754 - }, - "indent": [] + } } } ], @@ -3334,14 +3063,7 @@ "line": 111, "column": 9, "offset": 754 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1 - ] + } } }, { @@ -3360,8 +3082,7 @@ "line": 113, "column": 32, "offset": 787 - }, - "indent": [] + } } } ], @@ -3375,8 +3096,7 @@ "line": 113, "column": 32, "offset": 787 - }, - "indent": [] + } } }, { @@ -3406,8 +3126,7 @@ "line": 115, "column": 9, "offset": 797 - }, - "indent": [] + } } } ], @@ -3421,8 +3140,7 @@ "line": 115, "column": 9, "offset": 797 - }, - "indent": [] + } } } ], @@ -3433,13 +3151,10 @@ "offset": 789 }, "end": { - "line": 116, - "column": 1, - "offset": 798 - }, - "indent": [ - 1 - ] + "line": 115, + "column": 9, + "offset": 797 + } } }, { @@ -3463,8 +3178,7 @@ "line": 117, "column": 11, "offset": 809 - }, - "indent": [] + } } } ], @@ -3478,8 +3192,7 @@ "line": 117, "column": 11, "offset": 809 - }, - "indent": [] + } } }, { @@ -3509,8 +3222,7 @@ "line": 118, "column": 7, "offset": 816 - }, - "indent": [] + } } } ], @@ -3524,8 +3236,7 @@ "line": 118, "column": 7, "offset": 816 - }, - "indent": [] + } } } ], @@ -3539,8 +3250,7 @@ "line": 118, "column": 7, "offset": 816 - }, - "indent": [] + } } }, { @@ -3564,8 +3274,7 @@ "line": 119, "column": 7, "offset": 823 - }, - "indent": [] + } } } ], @@ -3579,8 +3288,7 @@ "line": 119, "column": 7, "offset": 823 - }, - "indent": [] + } } } ], @@ -3594,8 +3302,7 @@ "line": 119, "column": 7, "offset": 823 - }, - "indent": [] + } } }, { @@ -3619,8 +3326,7 @@ "line": 120, "column": 7, "offset": 830 - }, - "indent": [] + } } } ], @@ -3634,8 +3340,7 @@ "line": 120, "column": 7, "offset": 830 - }, - "indent": [] + } } } ], @@ -3649,8 +3354,7 @@ "line": 120, "column": 7, "offset": 830 - }, - "indent": [] + } } } ], @@ -3664,11 +3368,7 @@ "line": 120, "column": 7, "offset": 830 - }, - "indent": [ - 2, - 2 - ] + } } } ], @@ -3679,16 +3379,10 @@ "offset": 799 }, "end": { - "line": 121, - "column": 1, - "offset": 831 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] + "line": 120, + "column": 7, + "offset": 830 + } } }, { @@ -3712,8 +3406,7 @@ "line": 122, "column": 9, "offset": 840 - }, - "indent": [] + } } } ], @@ -3727,8 +3420,7 @@ "line": 122, "column": 9, "offset": 840 - }, - "indent": [] + } } } ], @@ -3742,8 +3434,7 @@ "line": 122, "column": 9, "offset": 840 - }, - "indent": [] + } } } ], @@ -3757,16 +3448,7 @@ "line": 122, "column": 9, "offset": 840 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] + } } }, { @@ -3785,8 +3467,7 @@ "line": 125, "column": 37, "offset": 879 - }, - "indent": [] + } } } ], @@ -3800,8 +3481,7 @@ "line": 125, "column": 37, "offset": 879 - }, - "indent": [] + } } }, { @@ -3831,8 +3511,7 @@ "line": 127, "column": 7, "offset": 887 - }, - "indent": [] + } } } ], @@ -3846,8 +3525,7 @@ "line": 127, "column": 7, "offset": 887 - }, - "indent": [] + } } }, { @@ -3877,8 +3555,7 @@ "line": 129, "column": 7, "offset": 895 - }, - "indent": [] + } } } ], @@ -3892,8 +3569,7 @@ "line": 129, "column": 7, "offset": 895 - }, - "indent": [] + } } } ], @@ -3907,8 +3583,7 @@ "line": 129, "column": 7, "offset": 895 - }, - "indent": [] + } } } ], @@ -3922,8 +3597,7 @@ "line": 129, "column": 7, "offset": 895 - }, - "indent": [] + } } }, { @@ -3942,8 +3616,7 @@ "line": 131, "column": 6, "offset": 902 - }, - "indent": [] + } } } ], @@ -3957,8 +3630,7 @@ "line": 131, "column": 6, "offset": 902 - }, - "indent": [] + } } } ], @@ -3972,13 +3644,7 @@ "line": 131, "column": 6, "offset": 902 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] + } } } ], @@ -3992,13 +3658,7 @@ "line": 131, "column": 6, "offset": 902 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] + } } } ], diff --git a/test/fixtures/tree/ordered-and-unordered-lists.nogfm.json b/test/fixtures/tree/ordered-and-unordered-lists.nogfm.json deleted file mode 100644 index a5b35f374..000000000 --- a/test/fixtures/tree/ordered-and-unordered-lists.nogfm.json +++ /dev/null @@ -1,4017 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "heading", - "depth": 2, - "children": [ - { - "type": "text", - "value": "Unordered", - "position": { - "start": { - "line": 1, - "column": 4, - "offset": 3 - }, - "end": { - "line": 1, - "column": 13, - "offset": 12 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 13, - "offset": 12 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Asterisks tight:", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 14 - }, - "end": { - "line": 3, - "column": 17, - "offset": 30 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 14 - }, - "end": { - "line": 3, - "column": 17, - "offset": 30 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "asterisk 1", - "position": { - "start": { - "line": 5, - "column": 3, - "offset": 34 - }, - "end": { - "line": 5, - "column": 13, - "offset": 44 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 3, - "offset": 34 - }, - "end": { - "line": 5, - "column": 13, - "offset": 44 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 32 - }, - "end": { - "line": 5, - "column": 13, - "offset": 44 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "asterisk 2", - "position": { - "start": { - "line": 6, - "column": 3, - "offset": 47 - }, - "end": { - "line": 6, - "column": 13, - "offset": 57 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 3, - "offset": 47 - }, - "end": { - "line": 6, - "column": 13, - "offset": 57 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 45 - }, - "end": { - "line": 6, - "column": 13, - "offset": 57 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "asterisk 3", - "position": { - "start": { - "line": 7, - "column": 3, - "offset": 60 - }, - "end": { - "line": 7, - "column": 13, - "offset": 70 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 3, - "offset": 60 - }, - "end": { - "line": 7, - "column": 13, - "offset": 70 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 58 - }, - "end": { - "line": 7, - "column": 13, - "offset": 70 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 32 - }, - "end": { - "line": 7, - "column": 13, - "offset": 70 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Asterisks loose:", - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 73 - }, - "end": { - "line": 10, - "column": 17, - "offset": 89 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 73 - }, - "end": { - "line": 10, - "column": 17, - "offset": 89 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "asterisk 1", - "position": { - "start": { - "line": 12, - "column": 3, - "offset": 93 - }, - "end": { - "line": 12, - "column": 13, - "offset": 103 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 3, - "offset": 93 - }, - "end": { - "line": 12, - "column": 13, - "offset": 103 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 91 - }, - "end": { - "line": 13, - "column": 1, - "offset": 104 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "asterisk 2", - "position": { - "start": { - "line": 14, - "column": 3, - "offset": 107 - }, - "end": { - "line": 14, - "column": 13, - "offset": 117 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 3, - "offset": 107 - }, - "end": { - "line": 14, - "column": 13, - "offset": 117 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 105 - }, - "end": { - "line": 15, - "column": 1, - "offset": 118 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "asterisk 3", - "position": { - "start": { - "line": 16, - "column": 3, - "offset": 121 - }, - "end": { - "line": 16, - "column": 13, - "offset": 131 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 3, - "offset": 121 - }, - "end": { - "line": 16, - "column": 13, - "offset": 131 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 119 - }, - "end": { - "line": 16, - "column": 13, - "offset": 131 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 91 - }, - "end": { - "line": 16, - "column": 13, - "offset": 131 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 133 - }, - "end": { - "line": 18, - "column": 6, - "offset": 138 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Pluses tight:", - "position": { - "start": { - "line": 20, - "column": 1, - "offset": 140 - }, - "end": { - "line": 20, - "column": 14, - "offset": 153 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 1, - "offset": 140 - }, - "end": { - "line": 20, - "column": 14, - "offset": 153 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Plus 1", - "position": { - "start": { - "line": 22, - "column": 3, - "offset": 157 - }, - "end": { - "line": 22, - "column": 9, - "offset": 163 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 22, - "column": 3, - "offset": 157 - }, - "end": { - "line": 22, - "column": 9, - "offset": 163 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 22, - "column": 1, - "offset": 155 - }, - "end": { - "line": 22, - "column": 9, - "offset": 163 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Plus 2", - "position": { - "start": { - "line": 23, - "column": 3, - "offset": 166 - }, - "end": { - "line": 23, - "column": 9, - "offset": 172 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 23, - "column": 3, - "offset": 166 - }, - "end": { - "line": 23, - "column": 9, - "offset": 172 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 23, - "column": 1, - "offset": 164 - }, - "end": { - "line": 23, - "column": 9, - "offset": 172 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Plus 3", - "position": { - "start": { - "line": 24, - "column": 3, - "offset": 175 - }, - "end": { - "line": 24, - "column": 9, - "offset": 181 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 24, - "column": 3, - "offset": 175 - }, - "end": { - "line": 24, - "column": 9, - "offset": 181 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 24, - "column": 1, - "offset": 173 - }, - "end": { - "line": 24, - "column": 9, - "offset": 181 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 22, - "column": 1, - "offset": 155 - }, - "end": { - "line": 24, - "column": 9, - "offset": 181 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Pluses loose:", - "position": { - "start": { - "line": 27, - "column": 1, - "offset": 184 - }, - "end": { - "line": 27, - "column": 14, - "offset": 197 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 27, - "column": 1, - "offset": 184 - }, - "end": { - "line": 27, - "column": 14, - "offset": 197 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Plus 1", - "position": { - "start": { - "line": 29, - "column": 3, - "offset": 201 - }, - "end": { - "line": 29, - "column": 9, - "offset": 207 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 29, - "column": 3, - "offset": 201 - }, - "end": { - "line": 29, - "column": 9, - "offset": 207 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 199 - }, - "end": { - "line": 30, - "column": 1, - "offset": 208 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Plus 2", - "position": { - "start": { - "line": 31, - "column": 3, - "offset": 211 - }, - "end": { - "line": 31, - "column": 9, - "offset": 217 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 31, - "column": 3, - "offset": 211 - }, - "end": { - "line": 31, - "column": 9, - "offset": 217 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 31, - "column": 1, - "offset": 209 - }, - "end": { - "line": 32, - "column": 1, - "offset": 218 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Plus 3", - "position": { - "start": { - "line": 33, - "column": 3, - "offset": 221 - }, - "end": { - "line": 33, - "column": 9, - "offset": 227 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 33, - "column": 3, - "offset": 221 - }, - "end": { - "line": 33, - "column": 9, - "offset": 227 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 33, - "column": 1, - "offset": 219 - }, - "end": { - "line": 33, - "column": 9, - "offset": 227 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 199 - }, - "end": { - "line": 33, - "column": 9, - "offset": 227 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 35, - "column": 1, - "offset": 229 - }, - "end": { - "line": 35, - "column": 6, - "offset": 234 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Minuses tight:", - "position": { - "start": { - "line": 38, - "column": 1, - "offset": 237 - }, - "end": { - "line": 38, - "column": 15, - "offset": 251 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 38, - "column": 1, - "offset": 237 - }, - "end": { - "line": 38, - "column": 15, - "offset": 251 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Minus 1", - "position": { - "start": { - "line": 40, - "column": 3, - "offset": 255 - }, - "end": { - "line": 40, - "column": 10, - "offset": 262 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 40, - "column": 3, - "offset": 255 - }, - "end": { - "line": 40, - "column": 10, - "offset": 262 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 40, - "column": 1, - "offset": 253 - }, - "end": { - "line": 40, - "column": 10, - "offset": 262 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Minus 2", - "position": { - "start": { - "line": 41, - "column": 3, - "offset": 265 - }, - "end": { - "line": 41, - "column": 10, - "offset": 272 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 41, - "column": 3, - "offset": 265 - }, - "end": { - "line": 41, - "column": 10, - "offset": 272 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 41, - "column": 1, - "offset": 263 - }, - "end": { - "line": 41, - "column": 10, - "offset": 272 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Minus 3", - "position": { - "start": { - "line": 42, - "column": 3, - "offset": 275 - }, - "end": { - "line": 42, - "column": 10, - "offset": 282 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 42, - "column": 3, - "offset": 275 - }, - "end": { - "line": 42, - "column": 10, - "offset": 282 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 42, - "column": 1, - "offset": 273 - }, - "end": { - "line": 42, - "column": 10, - "offset": 282 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 40, - "column": 1, - "offset": 253 - }, - "end": { - "line": 42, - "column": 10, - "offset": 282 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Minuses loose:", - "position": { - "start": { - "line": 45, - "column": 1, - "offset": 285 - }, - "end": { - "line": 45, - "column": 15, - "offset": 299 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 45, - "column": 1, - "offset": 285 - }, - "end": { - "line": 45, - "column": 15, - "offset": 299 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Minus 1", - "position": { - "start": { - "line": 47, - "column": 3, - "offset": 303 - }, - "end": { - "line": 47, - "column": 10, - "offset": 310 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 47, - "column": 3, - "offset": 303 - }, - "end": { - "line": 47, - "column": 10, - "offset": 310 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 47, - "column": 1, - "offset": 301 - }, - "end": { - "line": 48, - "column": 1, - "offset": 311 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Minus 2", - "position": { - "start": { - "line": 49, - "column": 3, - "offset": 314 - }, - "end": { - "line": 49, - "column": 10, - "offset": 321 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 49, - "column": 3, - "offset": 314 - }, - "end": { - "line": 49, - "column": 10, - "offset": 321 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 49, - "column": 1, - "offset": 312 - }, - "end": { - "line": 50, - "column": 1, - "offset": 322 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Minus 3", - "position": { - "start": { - "line": 51, - "column": 3, - "offset": 325 - }, - "end": { - "line": 51, - "column": 10, - "offset": 332 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 51, - "column": 3, - "offset": 325 - }, - "end": { - "line": 51, - "column": 10, - "offset": 332 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 51, - "column": 1, - "offset": 323 - }, - "end": { - "line": 51, - "column": 10, - "offset": 332 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 47, - "column": 1, - "offset": 301 - }, - "end": { - "line": 51, - "column": 10, - "offset": 332 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "heading", - "depth": 2, - "children": [ - { - "type": "text", - "value": "Ordered", - "position": { - "start": { - "line": 54, - "column": 4, - "offset": 338 - }, - "end": { - "line": 54, - "column": 11, - "offset": 345 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 54, - "column": 1, - "offset": 335 - }, - "end": { - "line": 54, - "column": 11, - "offset": 345 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Tight:", - "position": { - "start": { - "line": 56, - "column": 1, - "offset": 347 - }, - "end": { - "line": 56, - "column": 7, - "offset": 353 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 56, - "column": 1, - "offset": 347 - }, - "end": { - "line": 56, - "column": 7, - "offset": 353 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "First", - "position": { - "start": { - "line": 58, - "column": 4, - "offset": 358 - }, - "end": { - "line": 58, - "column": 9, - "offset": 363 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 58, - "column": 4, - "offset": 358 - }, - "end": { - "line": 58, - "column": 9, - "offset": 363 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 58, - "column": 1, - "offset": 355 - }, - "end": { - "line": 58, - "column": 9, - "offset": 363 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Second", - "position": { - "start": { - "line": 59, - "column": 4, - "offset": 367 - }, - "end": { - "line": 59, - "column": 10, - "offset": 373 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 59, - "column": 4, - "offset": 367 - }, - "end": { - "line": 59, - "column": 10, - "offset": 373 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 59, - "column": 1, - "offset": 364 - }, - "end": { - "line": 59, - "column": 10, - "offset": 373 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Third", - "position": { - "start": { - "line": 60, - "column": 4, - "offset": 377 - }, - "end": { - "line": 60, - "column": 9, - "offset": 382 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 60, - "column": 4, - "offset": 377 - }, - "end": { - "line": 60, - "column": 9, - "offset": 382 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 60, - "column": 1, - "offset": 374 - }, - "end": { - "line": 60, - "column": 9, - "offset": 382 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 58, - "column": 1, - "offset": 355 - }, - "end": { - "line": 60, - "column": 9, - "offset": 382 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "and:", - "position": { - "start": { - "line": 62, - "column": 1, - "offset": 384 - }, - "end": { - "line": 62, - "column": 5, - "offset": 388 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 62, - "column": 1, - "offset": 384 - }, - "end": { - "line": 62, - "column": 5, - "offset": 388 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "One", - "position": { - "start": { - "line": 64, - "column": 4, - "offset": 393 - }, - "end": { - "line": 64, - "column": 7, - "offset": 396 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 64, - "column": 4, - "offset": 393 - }, - "end": { - "line": 64, - "column": 7, - "offset": 396 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 64, - "column": 1, - "offset": 390 - }, - "end": { - "line": 64, - "column": 7, - "offset": 396 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Two", - "position": { - "start": { - "line": 65, - "column": 4, - "offset": 400 - }, - "end": { - "line": 65, - "column": 7, - "offset": 403 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 65, - "column": 4, - "offset": 400 - }, - "end": { - "line": 65, - "column": 7, - "offset": 403 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 65, - "column": 1, - "offset": 397 - }, - "end": { - "line": 65, - "column": 7, - "offset": 403 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Three", - "position": { - "start": { - "line": 66, - "column": 4, - "offset": 407 - }, - "end": { - "line": 66, - "column": 9, - "offset": 412 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 66, - "column": 4, - "offset": 407 - }, - "end": { - "line": 66, - "column": 9, - "offset": 412 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 66, - "column": 1, - "offset": 404 - }, - "end": { - "line": 66, - "column": 9, - "offset": 412 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 64, - "column": 1, - "offset": 390 - }, - "end": { - "line": 66, - "column": 9, - "offset": 412 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Loose using tabs:", - "position": { - "start": { - "line": 69, - "column": 1, - "offset": 415 - }, - "end": { - "line": 69, - "column": 18, - "offset": 432 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 69, - "column": 1, - "offset": 415 - }, - "end": { - "line": 69, - "column": 18, - "offset": 432 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "First", - "position": { - "start": { - "line": 71, - "column": 4, - "offset": 437 - }, - "end": { - "line": 71, - "column": 9, - "offset": 442 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 71, - "column": 4, - "offset": 437 - }, - "end": { - "line": 71, - "column": 9, - "offset": 442 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 71, - "column": 1, - "offset": 434 - }, - "end": { - "line": 72, - "column": 1, - "offset": 443 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Second", - "position": { - "start": { - "line": 73, - "column": 4, - "offset": 447 - }, - "end": { - "line": 73, - "column": 10, - "offset": 453 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 73, - "column": 4, - "offset": 447 - }, - "end": { - "line": 73, - "column": 10, - "offset": 453 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 73, - "column": 1, - "offset": 444 - }, - "end": { - "line": 74, - "column": 1, - "offset": 454 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Third", - "position": { - "start": { - "line": 75, - "column": 4, - "offset": 458 - }, - "end": { - "line": 75, - "column": 9, - "offset": 463 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 75, - "column": 4, - "offset": 458 - }, - "end": { - "line": 75, - "column": 9, - "offset": 463 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 75, - "column": 1, - "offset": 455 - }, - "end": { - "line": 75, - "column": 9, - "offset": 463 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 71, - "column": 1, - "offset": 434 - }, - "end": { - "line": 75, - "column": 9, - "offset": 463 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "and using spaces:", - "position": { - "start": { - "line": 77, - "column": 1, - "offset": 465 - }, - "end": { - "line": 77, - "column": 18, - "offset": 482 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 77, - "column": 1, - "offset": 465 - }, - "end": { - "line": 77, - "column": 18, - "offset": 482 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "One", - "position": { - "start": { - "line": 79, - "column": 4, - "offset": 487 - }, - "end": { - "line": 79, - "column": 7, - "offset": 490 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 79, - "column": 4, - "offset": 487 - }, - "end": { - "line": 79, - "column": 7, - "offset": 490 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 79, - "column": 1, - "offset": 484 - }, - "end": { - "line": 80, - "column": 1, - "offset": 491 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Two", - "position": { - "start": { - "line": 81, - "column": 4, - "offset": 495 - }, - "end": { - "line": 81, - "column": 7, - "offset": 498 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 81, - "column": 4, - "offset": 495 - }, - "end": { - "line": 81, - "column": 7, - "offset": 498 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 81, - "column": 1, - "offset": 492 - }, - "end": { - "line": 82, - "column": 1, - "offset": 499 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Three", - "position": { - "start": { - "line": 83, - "column": 4, - "offset": 503 - }, - "end": { - "line": 83, - "column": 9, - "offset": 508 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 83, - "column": 4, - "offset": 503 - }, - "end": { - "line": 83, - "column": 9, - "offset": 508 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 83, - "column": 1, - "offset": 500 - }, - "end": { - "line": 83, - "column": 9, - "offset": 508 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 79, - "column": 1, - "offset": 484 - }, - "end": { - "line": 83, - "column": 9, - "offset": 508 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Multiple paragraphs:", - "position": { - "start": { - "line": 85, - "column": 1, - "offset": 510 - }, - "end": { - "line": 85, - "column": 21, - "offset": 530 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 85, - "column": 1, - "offset": 510 - }, - "end": { - "line": 85, - "column": 21, - "offset": 530 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Item 1, graf one.", - "position": { - "start": { - "line": 87, - "column": 4, - "offset": 535 - }, - "end": { - "line": 87, - "column": 21, - "offset": 552 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 87, - "column": 4, - "offset": 535 - }, - "end": { - "line": 87, - "column": 21, - "offset": 552 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Item 2. graf two. The quick brown fox jumped over the lazy dog's\nback.", - "position": { - "start": { - "line": 89, - "column": 2, - "offset": 555 - }, - "end": { - "line": 90, - "column": 7, - "offset": 626 - }, - "indent": [ - 2 - ] - } - } - ], - "position": { - "start": { - "line": 89, - "column": 2, - "offset": 555 - }, - "end": { - "line": 90, - "column": 7, - "offset": 626 - }, - "indent": [ - 2 - ] - } - } - ], - "position": { - "start": { - "line": 87, - "column": 1, - "offset": 532 - }, - "end": { - "line": 91, - "column": 2, - "offset": 628 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Item 2.", - "position": { - "start": { - "line": 92, - "column": 4, - "offset": 632 - }, - "end": { - "line": 92, - "column": 11, - "offset": 639 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 92, - "column": 4, - "offset": 632 - }, - "end": { - "line": 92, - "column": 11, - "offset": 639 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 92, - "column": 1, - "offset": 629 - }, - "end": { - "line": 93, - "column": 1, - "offset": 640 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Item 3.", - "position": { - "start": { - "line": 94, - "column": 4, - "offset": 644 - }, - "end": { - "line": 94, - "column": 11, - "offset": 651 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 94, - "column": 4, - "offset": 644 - }, - "end": { - "line": 94, - "column": 11, - "offset": 651 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 94, - "column": 1, - "offset": 641 - }, - "end": { - "line": 94, - "column": 11, - "offset": 651 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 87, - "column": 1, - "offset": 532 - }, - "end": { - "line": 94, - "column": 11, - "offset": 651 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "heading", - "depth": 2, - "children": [ - { - "type": "text", - "value": "Nested", - "position": { - "start": { - "line": 98, - "column": 4, - "offset": 658 - }, - "end": { - "line": 98, - "column": 10, - "offset": 664 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 98, - "column": 1, - "offset": 655 - }, - "end": { - "line": 98, - "column": 10, - "offset": 664 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Tab", - "position": { - "start": { - "line": 100, - "column": 3, - "offset": 668 - }, - "end": { - "line": 100, - "column": 6, - "offset": 671 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 100, - "column": 3, - "offset": 668 - }, - "end": { - "line": 100, - "column": 6, - "offset": 671 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Tab", - "position": { - "start": { - "line": 101, - "column": 4, - "offset": 675 - }, - "end": { - "line": 101, - "column": 7, - "offset": 678 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 101, - "column": 4, - "offset": 675 - }, - "end": { - "line": 101, - "column": 7, - "offset": 678 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Tab", - "position": { - "start": { - "line": 102, - "column": 5, - "offset": 683 - }, - "end": { - "line": 102, - "column": 8, - "offset": 686 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 102, - "column": 5, - "offset": 683 - }, - "end": { - "line": 102, - "column": 8, - "offset": 686 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 102, - "column": 3, - "offset": 681 - }, - "end": { - "line": 102, - "column": 8, - "offset": 686 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 102, - "column": 3, - "offset": 681 - }, - "end": { - "line": 102, - "column": 8, - "offset": 686 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 101, - "column": 2, - "offset": 673 - }, - "end": { - "line": 102, - "column": 8, - "offset": 686 - }, - "indent": [ - 2 - ] - } - } - ], - "position": { - "start": { - "line": 101, - "column": 2, - "offset": 673 - }, - "end": { - "line": 102, - "column": 8, - "offset": 686 - }, - "indent": [ - 2 - ] - } - } - ], - "position": { - "start": { - "line": 100, - "column": 1, - "offset": 666 - }, - "end": { - "line": 102, - "column": 8, - "offset": 686 - }, - "indent": [ - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 100, - "column": 1, - "offset": 666 - }, - "end": { - "line": 102, - "column": 8, - "offset": 686 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Here's another:", - "position": { - "start": { - "line": 104, - "column": 1, - "offset": 688 - }, - "end": { - "line": 104, - "column": 16, - "offset": 703 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 104, - "column": 1, - "offset": 688 - }, - "end": { - "line": 104, - "column": 16, - "offset": 703 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "First", - "position": { - "start": { - "line": 106, - "column": 4, - "offset": 708 - }, - "end": { - "line": 106, - "column": 9, - "offset": 713 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 106, - "column": 4, - "offset": 708 - }, - "end": { - "line": 106, - "column": 9, - "offset": 713 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 106, - "column": 1, - "offset": 705 - }, - "end": { - "line": 106, - "column": 9, - "offset": 713 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Second:", - "position": { - "start": { - "line": 107, - "column": 4, - "offset": 717 - }, - "end": { - "line": 107, - "column": 11, - "offset": 724 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 107, - "column": 4, - "offset": 717 - }, - "end": { - "line": 107, - "column": 11, - "offset": 724 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Fee", - "position": { - "start": { - "line": 108, - "column": 4, - "offset": 728 - }, - "end": { - "line": 108, - "column": 7, - "offset": 731 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 108, - "column": 4, - "offset": 728 - }, - "end": { - "line": 108, - "column": 7, - "offset": 731 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 108, - "column": 2, - "offset": 726 - }, - "end": { - "line": 108, - "column": 7, - "offset": 731 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Fie", - "position": { - "start": { - "line": 109, - "column": 4, - "offset": 735 - }, - "end": { - "line": 109, - "column": 7, - "offset": 738 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 109, - "column": 4, - "offset": 735 - }, - "end": { - "line": 109, - "column": 7, - "offset": 738 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 109, - "column": 2, - "offset": 733 - }, - "end": { - "line": 109, - "column": 7, - "offset": 738 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Foe", - "position": { - "start": { - "line": 110, - "column": 4, - "offset": 742 - }, - "end": { - "line": 110, - "column": 7, - "offset": 745 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 110, - "column": 4, - "offset": 742 - }, - "end": { - "line": 110, - "column": 7, - "offset": 745 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 110, - "column": 2, - "offset": 740 - }, - "end": { - "line": 110, - "column": 7, - "offset": 745 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 108, - "column": 2, - "offset": 726 - }, - "end": { - "line": 110, - "column": 7, - "offset": 745 - }, - "indent": [ - 2, - 2 - ] - } - } - ], - "position": { - "start": { - "line": 107, - "column": 1, - "offset": 714 - }, - "end": { - "line": 110, - "column": 7, - "offset": 745 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Third", - "position": { - "start": { - "line": 111, - "column": 4, - "offset": 749 - }, - "end": { - "line": 111, - "column": 9, - "offset": 754 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 111, - "column": 4, - "offset": 749 - }, - "end": { - "line": 111, - "column": 9, - "offset": 754 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 111, - "column": 1, - "offset": 746 - }, - "end": { - "line": 111, - "column": 9, - "offset": 754 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 106, - "column": 1, - "offset": 705 - }, - "end": { - "line": 111, - "column": 9, - "offset": 754 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Same thing but with paragraphs:", - "position": { - "start": { - "line": 113, - "column": 1, - "offset": 756 - }, - "end": { - "line": 113, - "column": 32, - "offset": 787 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 113, - "column": 1, - "offset": 756 - }, - "end": { - "line": 113, - "column": 32, - "offset": 787 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "First", - "position": { - "start": { - "line": 115, - "column": 4, - "offset": 792 - }, - "end": { - "line": 115, - "column": 9, - "offset": 797 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 115, - "column": 4, - "offset": 792 - }, - "end": { - "line": 115, - "column": 9, - "offset": 797 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 115, - "column": 1, - "offset": 789 - }, - "end": { - "line": 116, - "column": 1, - "offset": 798 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Second:", - "position": { - "start": { - "line": 117, - "column": 4, - "offset": 802 - }, - "end": { - "line": 117, - "column": 11, - "offset": 809 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 117, - "column": 4, - "offset": 802 - }, - "end": { - "line": 117, - "column": 11, - "offset": 809 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Fee", - "position": { - "start": { - "line": 118, - "column": 4, - "offset": 813 - }, - "end": { - "line": 118, - "column": 7, - "offset": 816 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 118, - "column": 4, - "offset": 813 - }, - "end": { - "line": 118, - "column": 7, - "offset": 816 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 118, - "column": 2, - "offset": 811 - }, - "end": { - "line": 118, - "column": 7, - "offset": 816 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Fie", - "position": { - "start": { - "line": 119, - "column": 4, - "offset": 820 - }, - "end": { - "line": 119, - "column": 7, - "offset": 823 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 119, - "column": 4, - "offset": 820 - }, - "end": { - "line": 119, - "column": 7, - "offset": 823 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 119, - "column": 2, - "offset": 818 - }, - "end": { - "line": 119, - "column": 7, - "offset": 823 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Foe", - "position": { - "start": { - "line": 120, - "column": 4, - "offset": 827 - }, - "end": { - "line": 120, - "column": 7, - "offset": 830 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 120, - "column": 4, - "offset": 827 - }, - "end": { - "line": 120, - "column": 7, - "offset": 830 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 120, - "column": 2, - "offset": 825 - }, - "end": { - "line": 120, - "column": 7, - "offset": 830 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 118, - "column": 2, - "offset": 811 - }, - "end": { - "line": 120, - "column": 7, - "offset": 830 - }, - "indent": [ - 2, - 2 - ] - } - } - ], - "position": { - "start": { - "line": 117, - "column": 1, - "offset": 799 - }, - "end": { - "line": 121, - "column": 1, - "offset": 831 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Third", - "position": { - "start": { - "line": 122, - "column": 4, - "offset": 835 - }, - "end": { - "line": 122, - "column": 9, - "offset": 840 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 122, - "column": 4, - "offset": 835 - }, - "end": { - "line": 122, - "column": 9, - "offset": 840 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 122, - "column": 1, - "offset": 832 - }, - "end": { - "line": 122, - "column": 9, - "offset": 840 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 115, - "column": 1, - "offset": 789 - }, - "end": { - "line": 122, - "column": 9, - "offset": 840 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This was an error in Markdown 1.0.1:", - "position": { - "start": { - "line": 125, - "column": 1, - "offset": 843 - }, - "end": { - "line": 125, - "column": 37, - "offset": 879 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 125, - "column": 1, - "offset": 843 - }, - "end": { - "line": 125, - "column": 37, - "offset": 879 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "this", - "position": { - "start": { - "line": 127, - "column": 3, - "offset": 883 - }, - "end": { - "line": 127, - "column": 7, - "offset": 887 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 127, - "column": 3, - "offset": 883 - }, - "end": { - "line": 127, - "column": 7, - "offset": 887 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "sub", - "position": { - "start": { - "line": 129, - "column": 4, - "offset": 892 - }, - "end": { - "line": 129, - "column": 7, - "offset": 895 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 129, - "column": 4, - "offset": 892 - }, - "end": { - "line": 129, - "column": 7, - "offset": 895 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 129, - "column": 2, - "offset": 890 - }, - "end": { - "line": 129, - "column": 7, - "offset": 895 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 129, - "column": 2, - "offset": 890 - }, - "end": { - "line": 129, - "column": 7, - "offset": 895 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "that", - "position": { - "start": { - "line": 131, - "column": 2, - "offset": 898 - }, - "end": { - "line": 131, - "column": 6, - "offset": 902 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 131, - "column": 2, - "offset": 898 - }, - "end": { - "line": 131, - "column": 6, - "offset": 902 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 127, - "column": 1, - "offset": 881 - }, - "end": { - "line": 131, - "column": 6, - "offset": 902 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 127, - "column": 1, - "offset": 881 - }, - "end": { - "line": 131, - "column": 6, - "offset": 902 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 132, - "column": 1, - "offset": 903 - } - } -} diff --git a/test/fixtures/tree/ordered-and-unordered-lists.nogfm.pedantic.json b/test/fixtures/tree/ordered-and-unordered-lists.nogfm.pedantic.json deleted file mode 100644 index a5b35f374..000000000 --- a/test/fixtures/tree/ordered-and-unordered-lists.nogfm.pedantic.json +++ /dev/null @@ -1,4017 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "heading", - "depth": 2, - "children": [ - { - "type": "text", - "value": "Unordered", - "position": { - "start": { - "line": 1, - "column": 4, - "offset": 3 - }, - "end": { - "line": 1, - "column": 13, - "offset": 12 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 13, - "offset": 12 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Asterisks tight:", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 14 - }, - "end": { - "line": 3, - "column": 17, - "offset": 30 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 14 - }, - "end": { - "line": 3, - "column": 17, - "offset": 30 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "asterisk 1", - "position": { - "start": { - "line": 5, - "column": 3, - "offset": 34 - }, - "end": { - "line": 5, - "column": 13, - "offset": 44 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 3, - "offset": 34 - }, - "end": { - "line": 5, - "column": 13, - "offset": 44 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 32 - }, - "end": { - "line": 5, - "column": 13, - "offset": 44 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "asterisk 2", - "position": { - "start": { - "line": 6, - "column": 3, - "offset": 47 - }, - "end": { - "line": 6, - "column": 13, - "offset": 57 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 3, - "offset": 47 - }, - "end": { - "line": 6, - "column": 13, - "offset": 57 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 45 - }, - "end": { - "line": 6, - "column": 13, - "offset": 57 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "asterisk 3", - "position": { - "start": { - "line": 7, - "column": 3, - "offset": 60 - }, - "end": { - "line": 7, - "column": 13, - "offset": 70 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 3, - "offset": 60 - }, - "end": { - "line": 7, - "column": 13, - "offset": 70 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 58 - }, - "end": { - "line": 7, - "column": 13, - "offset": 70 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 32 - }, - "end": { - "line": 7, - "column": 13, - "offset": 70 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Asterisks loose:", - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 73 - }, - "end": { - "line": 10, - "column": 17, - "offset": 89 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 73 - }, - "end": { - "line": 10, - "column": 17, - "offset": 89 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "asterisk 1", - "position": { - "start": { - "line": 12, - "column": 3, - "offset": 93 - }, - "end": { - "line": 12, - "column": 13, - "offset": 103 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 3, - "offset": 93 - }, - "end": { - "line": 12, - "column": 13, - "offset": 103 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 91 - }, - "end": { - "line": 13, - "column": 1, - "offset": 104 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "asterisk 2", - "position": { - "start": { - "line": 14, - "column": 3, - "offset": 107 - }, - "end": { - "line": 14, - "column": 13, - "offset": 117 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 3, - "offset": 107 - }, - "end": { - "line": 14, - "column": 13, - "offset": 117 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 105 - }, - "end": { - "line": 15, - "column": 1, - "offset": 118 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "asterisk 3", - "position": { - "start": { - "line": 16, - "column": 3, - "offset": 121 - }, - "end": { - "line": 16, - "column": 13, - "offset": 131 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 3, - "offset": 121 - }, - "end": { - "line": 16, - "column": 13, - "offset": 131 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 119 - }, - "end": { - "line": 16, - "column": 13, - "offset": 131 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 91 - }, - "end": { - "line": 16, - "column": 13, - "offset": 131 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 133 - }, - "end": { - "line": 18, - "column": 6, - "offset": 138 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Pluses tight:", - "position": { - "start": { - "line": 20, - "column": 1, - "offset": 140 - }, - "end": { - "line": 20, - "column": 14, - "offset": 153 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 1, - "offset": 140 - }, - "end": { - "line": 20, - "column": 14, - "offset": 153 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Plus 1", - "position": { - "start": { - "line": 22, - "column": 3, - "offset": 157 - }, - "end": { - "line": 22, - "column": 9, - "offset": 163 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 22, - "column": 3, - "offset": 157 - }, - "end": { - "line": 22, - "column": 9, - "offset": 163 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 22, - "column": 1, - "offset": 155 - }, - "end": { - "line": 22, - "column": 9, - "offset": 163 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Plus 2", - "position": { - "start": { - "line": 23, - "column": 3, - "offset": 166 - }, - "end": { - "line": 23, - "column": 9, - "offset": 172 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 23, - "column": 3, - "offset": 166 - }, - "end": { - "line": 23, - "column": 9, - "offset": 172 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 23, - "column": 1, - "offset": 164 - }, - "end": { - "line": 23, - "column": 9, - "offset": 172 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Plus 3", - "position": { - "start": { - "line": 24, - "column": 3, - "offset": 175 - }, - "end": { - "line": 24, - "column": 9, - "offset": 181 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 24, - "column": 3, - "offset": 175 - }, - "end": { - "line": 24, - "column": 9, - "offset": 181 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 24, - "column": 1, - "offset": 173 - }, - "end": { - "line": 24, - "column": 9, - "offset": 181 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 22, - "column": 1, - "offset": 155 - }, - "end": { - "line": 24, - "column": 9, - "offset": 181 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Pluses loose:", - "position": { - "start": { - "line": 27, - "column": 1, - "offset": 184 - }, - "end": { - "line": 27, - "column": 14, - "offset": 197 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 27, - "column": 1, - "offset": 184 - }, - "end": { - "line": 27, - "column": 14, - "offset": 197 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Plus 1", - "position": { - "start": { - "line": 29, - "column": 3, - "offset": 201 - }, - "end": { - "line": 29, - "column": 9, - "offset": 207 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 29, - "column": 3, - "offset": 201 - }, - "end": { - "line": 29, - "column": 9, - "offset": 207 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 199 - }, - "end": { - "line": 30, - "column": 1, - "offset": 208 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Plus 2", - "position": { - "start": { - "line": 31, - "column": 3, - "offset": 211 - }, - "end": { - "line": 31, - "column": 9, - "offset": 217 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 31, - "column": 3, - "offset": 211 - }, - "end": { - "line": 31, - "column": 9, - "offset": 217 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 31, - "column": 1, - "offset": 209 - }, - "end": { - "line": 32, - "column": 1, - "offset": 218 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Plus 3", - "position": { - "start": { - "line": 33, - "column": 3, - "offset": 221 - }, - "end": { - "line": 33, - "column": 9, - "offset": 227 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 33, - "column": 3, - "offset": 221 - }, - "end": { - "line": 33, - "column": 9, - "offset": 227 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 33, - "column": 1, - "offset": 219 - }, - "end": { - "line": 33, - "column": 9, - "offset": 227 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 199 - }, - "end": { - "line": 33, - "column": 9, - "offset": 227 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 35, - "column": 1, - "offset": 229 - }, - "end": { - "line": 35, - "column": 6, - "offset": 234 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Minuses tight:", - "position": { - "start": { - "line": 38, - "column": 1, - "offset": 237 - }, - "end": { - "line": 38, - "column": 15, - "offset": 251 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 38, - "column": 1, - "offset": 237 - }, - "end": { - "line": 38, - "column": 15, - "offset": 251 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Minus 1", - "position": { - "start": { - "line": 40, - "column": 3, - "offset": 255 - }, - "end": { - "line": 40, - "column": 10, - "offset": 262 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 40, - "column": 3, - "offset": 255 - }, - "end": { - "line": 40, - "column": 10, - "offset": 262 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 40, - "column": 1, - "offset": 253 - }, - "end": { - "line": 40, - "column": 10, - "offset": 262 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Minus 2", - "position": { - "start": { - "line": 41, - "column": 3, - "offset": 265 - }, - "end": { - "line": 41, - "column": 10, - "offset": 272 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 41, - "column": 3, - "offset": 265 - }, - "end": { - "line": 41, - "column": 10, - "offset": 272 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 41, - "column": 1, - "offset": 263 - }, - "end": { - "line": 41, - "column": 10, - "offset": 272 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Minus 3", - "position": { - "start": { - "line": 42, - "column": 3, - "offset": 275 - }, - "end": { - "line": 42, - "column": 10, - "offset": 282 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 42, - "column": 3, - "offset": 275 - }, - "end": { - "line": 42, - "column": 10, - "offset": 282 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 42, - "column": 1, - "offset": 273 - }, - "end": { - "line": 42, - "column": 10, - "offset": 282 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 40, - "column": 1, - "offset": 253 - }, - "end": { - "line": 42, - "column": 10, - "offset": 282 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Minuses loose:", - "position": { - "start": { - "line": 45, - "column": 1, - "offset": 285 - }, - "end": { - "line": 45, - "column": 15, - "offset": 299 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 45, - "column": 1, - "offset": 285 - }, - "end": { - "line": 45, - "column": 15, - "offset": 299 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Minus 1", - "position": { - "start": { - "line": 47, - "column": 3, - "offset": 303 - }, - "end": { - "line": 47, - "column": 10, - "offset": 310 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 47, - "column": 3, - "offset": 303 - }, - "end": { - "line": 47, - "column": 10, - "offset": 310 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 47, - "column": 1, - "offset": 301 - }, - "end": { - "line": 48, - "column": 1, - "offset": 311 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Minus 2", - "position": { - "start": { - "line": 49, - "column": 3, - "offset": 314 - }, - "end": { - "line": 49, - "column": 10, - "offset": 321 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 49, - "column": 3, - "offset": 314 - }, - "end": { - "line": 49, - "column": 10, - "offset": 321 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 49, - "column": 1, - "offset": 312 - }, - "end": { - "line": 50, - "column": 1, - "offset": 322 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Minus 3", - "position": { - "start": { - "line": 51, - "column": 3, - "offset": 325 - }, - "end": { - "line": 51, - "column": 10, - "offset": 332 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 51, - "column": 3, - "offset": 325 - }, - "end": { - "line": 51, - "column": 10, - "offset": 332 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 51, - "column": 1, - "offset": 323 - }, - "end": { - "line": 51, - "column": 10, - "offset": 332 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 47, - "column": 1, - "offset": 301 - }, - "end": { - "line": 51, - "column": 10, - "offset": 332 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "heading", - "depth": 2, - "children": [ - { - "type": "text", - "value": "Ordered", - "position": { - "start": { - "line": 54, - "column": 4, - "offset": 338 - }, - "end": { - "line": 54, - "column": 11, - "offset": 345 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 54, - "column": 1, - "offset": 335 - }, - "end": { - "line": 54, - "column": 11, - "offset": 345 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Tight:", - "position": { - "start": { - "line": 56, - "column": 1, - "offset": 347 - }, - "end": { - "line": 56, - "column": 7, - "offset": 353 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 56, - "column": 1, - "offset": 347 - }, - "end": { - "line": 56, - "column": 7, - "offset": 353 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "First", - "position": { - "start": { - "line": 58, - "column": 4, - "offset": 358 - }, - "end": { - "line": 58, - "column": 9, - "offset": 363 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 58, - "column": 4, - "offset": 358 - }, - "end": { - "line": 58, - "column": 9, - "offset": 363 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 58, - "column": 1, - "offset": 355 - }, - "end": { - "line": 58, - "column": 9, - "offset": 363 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Second", - "position": { - "start": { - "line": 59, - "column": 4, - "offset": 367 - }, - "end": { - "line": 59, - "column": 10, - "offset": 373 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 59, - "column": 4, - "offset": 367 - }, - "end": { - "line": 59, - "column": 10, - "offset": 373 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 59, - "column": 1, - "offset": 364 - }, - "end": { - "line": 59, - "column": 10, - "offset": 373 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Third", - "position": { - "start": { - "line": 60, - "column": 4, - "offset": 377 - }, - "end": { - "line": 60, - "column": 9, - "offset": 382 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 60, - "column": 4, - "offset": 377 - }, - "end": { - "line": 60, - "column": 9, - "offset": 382 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 60, - "column": 1, - "offset": 374 - }, - "end": { - "line": 60, - "column": 9, - "offset": 382 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 58, - "column": 1, - "offset": 355 - }, - "end": { - "line": 60, - "column": 9, - "offset": 382 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "and:", - "position": { - "start": { - "line": 62, - "column": 1, - "offset": 384 - }, - "end": { - "line": 62, - "column": 5, - "offset": 388 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 62, - "column": 1, - "offset": 384 - }, - "end": { - "line": 62, - "column": 5, - "offset": 388 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "One", - "position": { - "start": { - "line": 64, - "column": 4, - "offset": 393 - }, - "end": { - "line": 64, - "column": 7, - "offset": 396 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 64, - "column": 4, - "offset": 393 - }, - "end": { - "line": 64, - "column": 7, - "offset": 396 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 64, - "column": 1, - "offset": 390 - }, - "end": { - "line": 64, - "column": 7, - "offset": 396 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Two", - "position": { - "start": { - "line": 65, - "column": 4, - "offset": 400 - }, - "end": { - "line": 65, - "column": 7, - "offset": 403 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 65, - "column": 4, - "offset": 400 - }, - "end": { - "line": 65, - "column": 7, - "offset": 403 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 65, - "column": 1, - "offset": 397 - }, - "end": { - "line": 65, - "column": 7, - "offset": 403 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Three", - "position": { - "start": { - "line": 66, - "column": 4, - "offset": 407 - }, - "end": { - "line": 66, - "column": 9, - "offset": 412 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 66, - "column": 4, - "offset": 407 - }, - "end": { - "line": 66, - "column": 9, - "offset": 412 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 66, - "column": 1, - "offset": 404 - }, - "end": { - "line": 66, - "column": 9, - "offset": 412 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 64, - "column": 1, - "offset": 390 - }, - "end": { - "line": 66, - "column": 9, - "offset": 412 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Loose using tabs:", - "position": { - "start": { - "line": 69, - "column": 1, - "offset": 415 - }, - "end": { - "line": 69, - "column": 18, - "offset": 432 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 69, - "column": 1, - "offset": 415 - }, - "end": { - "line": 69, - "column": 18, - "offset": 432 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "First", - "position": { - "start": { - "line": 71, - "column": 4, - "offset": 437 - }, - "end": { - "line": 71, - "column": 9, - "offset": 442 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 71, - "column": 4, - "offset": 437 - }, - "end": { - "line": 71, - "column": 9, - "offset": 442 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 71, - "column": 1, - "offset": 434 - }, - "end": { - "line": 72, - "column": 1, - "offset": 443 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Second", - "position": { - "start": { - "line": 73, - "column": 4, - "offset": 447 - }, - "end": { - "line": 73, - "column": 10, - "offset": 453 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 73, - "column": 4, - "offset": 447 - }, - "end": { - "line": 73, - "column": 10, - "offset": 453 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 73, - "column": 1, - "offset": 444 - }, - "end": { - "line": 74, - "column": 1, - "offset": 454 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Third", - "position": { - "start": { - "line": 75, - "column": 4, - "offset": 458 - }, - "end": { - "line": 75, - "column": 9, - "offset": 463 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 75, - "column": 4, - "offset": 458 - }, - "end": { - "line": 75, - "column": 9, - "offset": 463 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 75, - "column": 1, - "offset": 455 - }, - "end": { - "line": 75, - "column": 9, - "offset": 463 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 71, - "column": 1, - "offset": 434 - }, - "end": { - "line": 75, - "column": 9, - "offset": 463 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "and using spaces:", - "position": { - "start": { - "line": 77, - "column": 1, - "offset": 465 - }, - "end": { - "line": 77, - "column": 18, - "offset": 482 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 77, - "column": 1, - "offset": 465 - }, - "end": { - "line": 77, - "column": 18, - "offset": 482 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "One", - "position": { - "start": { - "line": 79, - "column": 4, - "offset": 487 - }, - "end": { - "line": 79, - "column": 7, - "offset": 490 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 79, - "column": 4, - "offset": 487 - }, - "end": { - "line": 79, - "column": 7, - "offset": 490 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 79, - "column": 1, - "offset": 484 - }, - "end": { - "line": 80, - "column": 1, - "offset": 491 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Two", - "position": { - "start": { - "line": 81, - "column": 4, - "offset": 495 - }, - "end": { - "line": 81, - "column": 7, - "offset": 498 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 81, - "column": 4, - "offset": 495 - }, - "end": { - "line": 81, - "column": 7, - "offset": 498 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 81, - "column": 1, - "offset": 492 - }, - "end": { - "line": 82, - "column": 1, - "offset": 499 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Three", - "position": { - "start": { - "line": 83, - "column": 4, - "offset": 503 - }, - "end": { - "line": 83, - "column": 9, - "offset": 508 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 83, - "column": 4, - "offset": 503 - }, - "end": { - "line": 83, - "column": 9, - "offset": 508 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 83, - "column": 1, - "offset": 500 - }, - "end": { - "line": 83, - "column": 9, - "offset": 508 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 79, - "column": 1, - "offset": 484 - }, - "end": { - "line": 83, - "column": 9, - "offset": 508 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Multiple paragraphs:", - "position": { - "start": { - "line": 85, - "column": 1, - "offset": 510 - }, - "end": { - "line": 85, - "column": 21, - "offset": 530 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 85, - "column": 1, - "offset": 510 - }, - "end": { - "line": 85, - "column": 21, - "offset": 530 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Item 1, graf one.", - "position": { - "start": { - "line": 87, - "column": 4, - "offset": 535 - }, - "end": { - "line": 87, - "column": 21, - "offset": 552 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 87, - "column": 4, - "offset": 535 - }, - "end": { - "line": 87, - "column": 21, - "offset": 552 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Item 2. graf two. The quick brown fox jumped over the lazy dog's\nback.", - "position": { - "start": { - "line": 89, - "column": 2, - "offset": 555 - }, - "end": { - "line": 90, - "column": 7, - "offset": 626 - }, - "indent": [ - 2 - ] - } - } - ], - "position": { - "start": { - "line": 89, - "column": 2, - "offset": 555 - }, - "end": { - "line": 90, - "column": 7, - "offset": 626 - }, - "indent": [ - 2 - ] - } - } - ], - "position": { - "start": { - "line": 87, - "column": 1, - "offset": 532 - }, - "end": { - "line": 91, - "column": 2, - "offset": 628 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Item 2.", - "position": { - "start": { - "line": 92, - "column": 4, - "offset": 632 - }, - "end": { - "line": 92, - "column": 11, - "offset": 639 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 92, - "column": 4, - "offset": 632 - }, - "end": { - "line": 92, - "column": 11, - "offset": 639 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 92, - "column": 1, - "offset": 629 - }, - "end": { - "line": 93, - "column": 1, - "offset": 640 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Item 3.", - "position": { - "start": { - "line": 94, - "column": 4, - "offset": 644 - }, - "end": { - "line": 94, - "column": 11, - "offset": 651 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 94, - "column": 4, - "offset": 644 - }, - "end": { - "line": 94, - "column": 11, - "offset": 651 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 94, - "column": 1, - "offset": 641 - }, - "end": { - "line": 94, - "column": 11, - "offset": 651 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 87, - "column": 1, - "offset": 532 - }, - "end": { - "line": 94, - "column": 11, - "offset": 651 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "heading", - "depth": 2, - "children": [ - { - "type": "text", - "value": "Nested", - "position": { - "start": { - "line": 98, - "column": 4, - "offset": 658 - }, - "end": { - "line": 98, - "column": 10, - "offset": 664 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 98, - "column": 1, - "offset": 655 - }, - "end": { - "line": 98, - "column": 10, - "offset": 664 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Tab", - "position": { - "start": { - "line": 100, - "column": 3, - "offset": 668 - }, - "end": { - "line": 100, - "column": 6, - "offset": 671 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 100, - "column": 3, - "offset": 668 - }, - "end": { - "line": 100, - "column": 6, - "offset": 671 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Tab", - "position": { - "start": { - "line": 101, - "column": 4, - "offset": 675 - }, - "end": { - "line": 101, - "column": 7, - "offset": 678 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 101, - "column": 4, - "offset": 675 - }, - "end": { - "line": 101, - "column": 7, - "offset": 678 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Tab", - "position": { - "start": { - "line": 102, - "column": 5, - "offset": 683 - }, - "end": { - "line": 102, - "column": 8, - "offset": 686 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 102, - "column": 5, - "offset": 683 - }, - "end": { - "line": 102, - "column": 8, - "offset": 686 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 102, - "column": 3, - "offset": 681 - }, - "end": { - "line": 102, - "column": 8, - "offset": 686 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 102, - "column": 3, - "offset": 681 - }, - "end": { - "line": 102, - "column": 8, - "offset": 686 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 101, - "column": 2, - "offset": 673 - }, - "end": { - "line": 102, - "column": 8, - "offset": 686 - }, - "indent": [ - 2 - ] - } - } - ], - "position": { - "start": { - "line": 101, - "column": 2, - "offset": 673 - }, - "end": { - "line": 102, - "column": 8, - "offset": 686 - }, - "indent": [ - 2 - ] - } - } - ], - "position": { - "start": { - "line": 100, - "column": 1, - "offset": 666 - }, - "end": { - "line": 102, - "column": 8, - "offset": 686 - }, - "indent": [ - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 100, - "column": 1, - "offset": 666 - }, - "end": { - "line": 102, - "column": 8, - "offset": 686 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Here's another:", - "position": { - "start": { - "line": 104, - "column": 1, - "offset": 688 - }, - "end": { - "line": 104, - "column": 16, - "offset": 703 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 104, - "column": 1, - "offset": 688 - }, - "end": { - "line": 104, - "column": 16, - "offset": 703 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "First", - "position": { - "start": { - "line": 106, - "column": 4, - "offset": 708 - }, - "end": { - "line": 106, - "column": 9, - "offset": 713 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 106, - "column": 4, - "offset": 708 - }, - "end": { - "line": 106, - "column": 9, - "offset": 713 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 106, - "column": 1, - "offset": 705 - }, - "end": { - "line": 106, - "column": 9, - "offset": 713 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Second:", - "position": { - "start": { - "line": 107, - "column": 4, - "offset": 717 - }, - "end": { - "line": 107, - "column": 11, - "offset": 724 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 107, - "column": 4, - "offset": 717 - }, - "end": { - "line": 107, - "column": 11, - "offset": 724 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Fee", - "position": { - "start": { - "line": 108, - "column": 4, - "offset": 728 - }, - "end": { - "line": 108, - "column": 7, - "offset": 731 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 108, - "column": 4, - "offset": 728 - }, - "end": { - "line": 108, - "column": 7, - "offset": 731 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 108, - "column": 2, - "offset": 726 - }, - "end": { - "line": 108, - "column": 7, - "offset": 731 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Fie", - "position": { - "start": { - "line": 109, - "column": 4, - "offset": 735 - }, - "end": { - "line": 109, - "column": 7, - "offset": 738 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 109, - "column": 4, - "offset": 735 - }, - "end": { - "line": 109, - "column": 7, - "offset": 738 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 109, - "column": 2, - "offset": 733 - }, - "end": { - "line": 109, - "column": 7, - "offset": 738 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Foe", - "position": { - "start": { - "line": 110, - "column": 4, - "offset": 742 - }, - "end": { - "line": 110, - "column": 7, - "offset": 745 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 110, - "column": 4, - "offset": 742 - }, - "end": { - "line": 110, - "column": 7, - "offset": 745 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 110, - "column": 2, - "offset": 740 - }, - "end": { - "line": 110, - "column": 7, - "offset": 745 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 108, - "column": 2, - "offset": 726 - }, - "end": { - "line": 110, - "column": 7, - "offset": 745 - }, - "indent": [ - 2, - 2 - ] - } - } - ], - "position": { - "start": { - "line": 107, - "column": 1, - "offset": 714 - }, - "end": { - "line": 110, - "column": 7, - "offset": 745 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Third", - "position": { - "start": { - "line": 111, - "column": 4, - "offset": 749 - }, - "end": { - "line": 111, - "column": 9, - "offset": 754 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 111, - "column": 4, - "offset": 749 - }, - "end": { - "line": 111, - "column": 9, - "offset": 754 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 111, - "column": 1, - "offset": 746 - }, - "end": { - "line": 111, - "column": 9, - "offset": 754 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 106, - "column": 1, - "offset": 705 - }, - "end": { - "line": 111, - "column": 9, - "offset": 754 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Same thing but with paragraphs:", - "position": { - "start": { - "line": 113, - "column": 1, - "offset": 756 - }, - "end": { - "line": 113, - "column": 32, - "offset": 787 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 113, - "column": 1, - "offset": 756 - }, - "end": { - "line": 113, - "column": 32, - "offset": 787 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "First", - "position": { - "start": { - "line": 115, - "column": 4, - "offset": 792 - }, - "end": { - "line": 115, - "column": 9, - "offset": 797 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 115, - "column": 4, - "offset": 792 - }, - "end": { - "line": 115, - "column": 9, - "offset": 797 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 115, - "column": 1, - "offset": 789 - }, - "end": { - "line": 116, - "column": 1, - "offset": 798 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Second:", - "position": { - "start": { - "line": 117, - "column": 4, - "offset": 802 - }, - "end": { - "line": 117, - "column": 11, - "offset": 809 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 117, - "column": 4, - "offset": 802 - }, - "end": { - "line": 117, - "column": 11, - "offset": 809 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Fee", - "position": { - "start": { - "line": 118, - "column": 4, - "offset": 813 - }, - "end": { - "line": 118, - "column": 7, - "offset": 816 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 118, - "column": 4, - "offset": 813 - }, - "end": { - "line": 118, - "column": 7, - "offset": 816 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 118, - "column": 2, - "offset": 811 - }, - "end": { - "line": 118, - "column": 7, - "offset": 816 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Fie", - "position": { - "start": { - "line": 119, - "column": 4, - "offset": 820 - }, - "end": { - "line": 119, - "column": 7, - "offset": 823 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 119, - "column": 4, - "offset": 820 - }, - "end": { - "line": 119, - "column": 7, - "offset": 823 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 119, - "column": 2, - "offset": 818 - }, - "end": { - "line": 119, - "column": 7, - "offset": 823 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Foe", - "position": { - "start": { - "line": 120, - "column": 4, - "offset": 827 - }, - "end": { - "line": 120, - "column": 7, - "offset": 830 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 120, - "column": 4, - "offset": 827 - }, - "end": { - "line": 120, - "column": 7, - "offset": 830 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 120, - "column": 2, - "offset": 825 - }, - "end": { - "line": 120, - "column": 7, - "offset": 830 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 118, - "column": 2, - "offset": 811 - }, - "end": { - "line": 120, - "column": 7, - "offset": 830 - }, - "indent": [ - 2, - 2 - ] - } - } - ], - "position": { - "start": { - "line": 117, - "column": 1, - "offset": 799 - }, - "end": { - "line": 121, - "column": 1, - "offset": 831 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Third", - "position": { - "start": { - "line": 122, - "column": 4, - "offset": 835 - }, - "end": { - "line": 122, - "column": 9, - "offset": 840 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 122, - "column": 4, - "offset": 835 - }, - "end": { - "line": 122, - "column": 9, - "offset": 840 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 122, - "column": 1, - "offset": 832 - }, - "end": { - "line": 122, - "column": 9, - "offset": 840 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 115, - "column": 1, - "offset": 789 - }, - "end": { - "line": 122, - "column": 9, - "offset": 840 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This was an error in Markdown 1.0.1:", - "position": { - "start": { - "line": 125, - "column": 1, - "offset": 843 - }, - "end": { - "line": 125, - "column": 37, - "offset": 879 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 125, - "column": 1, - "offset": 843 - }, - "end": { - "line": 125, - "column": 37, - "offset": 879 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "this", - "position": { - "start": { - "line": 127, - "column": 3, - "offset": 883 - }, - "end": { - "line": 127, - "column": 7, - "offset": 887 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 127, - "column": 3, - "offset": 883 - }, - "end": { - "line": 127, - "column": 7, - "offset": 887 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "sub", - "position": { - "start": { - "line": 129, - "column": 4, - "offset": 892 - }, - "end": { - "line": 129, - "column": 7, - "offset": 895 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 129, - "column": 4, - "offset": 892 - }, - "end": { - "line": 129, - "column": 7, - "offset": 895 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 129, - "column": 2, - "offset": 890 - }, - "end": { - "line": 129, - "column": 7, - "offset": 895 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 129, - "column": 2, - "offset": 890 - }, - "end": { - "line": 129, - "column": 7, - "offset": 895 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "that", - "position": { - "start": { - "line": 131, - "column": 2, - "offset": 898 - }, - "end": { - "line": 131, - "column": 6, - "offset": 902 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 131, - "column": 2, - "offset": 898 - }, - "end": { - "line": 131, - "column": 6, - "offset": 902 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 127, - "column": 1, - "offset": 881 - }, - "end": { - "line": 131, - "column": 6, - "offset": 902 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 127, - "column": 1, - "offset": 881 - }, - "end": { - "line": 131, - "column": 6, - "offset": 902 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 132, - "column": 1, - "offset": 903 - } - } -} diff --git a/test/fixtures/tree/ordered-and-unordered-lists.pedantic.json b/test/fixtures/tree/ordered-and-unordered-lists.pedantic.json deleted file mode 100644 index a5b35f374..000000000 --- a/test/fixtures/tree/ordered-and-unordered-lists.pedantic.json +++ /dev/null @@ -1,4017 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "heading", - "depth": 2, - "children": [ - { - "type": "text", - "value": "Unordered", - "position": { - "start": { - "line": 1, - "column": 4, - "offset": 3 - }, - "end": { - "line": 1, - "column": 13, - "offset": 12 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 13, - "offset": 12 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Asterisks tight:", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 14 - }, - "end": { - "line": 3, - "column": 17, - "offset": 30 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 14 - }, - "end": { - "line": 3, - "column": 17, - "offset": 30 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "asterisk 1", - "position": { - "start": { - "line": 5, - "column": 3, - "offset": 34 - }, - "end": { - "line": 5, - "column": 13, - "offset": 44 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 3, - "offset": 34 - }, - "end": { - "line": 5, - "column": 13, - "offset": 44 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 32 - }, - "end": { - "line": 5, - "column": 13, - "offset": 44 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "asterisk 2", - "position": { - "start": { - "line": 6, - "column": 3, - "offset": 47 - }, - "end": { - "line": 6, - "column": 13, - "offset": 57 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 3, - "offset": 47 - }, - "end": { - "line": 6, - "column": 13, - "offset": 57 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 45 - }, - "end": { - "line": 6, - "column": 13, - "offset": 57 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "asterisk 3", - "position": { - "start": { - "line": 7, - "column": 3, - "offset": 60 - }, - "end": { - "line": 7, - "column": 13, - "offset": 70 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 3, - "offset": 60 - }, - "end": { - "line": 7, - "column": 13, - "offset": 70 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 58 - }, - "end": { - "line": 7, - "column": 13, - "offset": 70 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 32 - }, - "end": { - "line": 7, - "column": 13, - "offset": 70 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Asterisks loose:", - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 73 - }, - "end": { - "line": 10, - "column": 17, - "offset": 89 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 73 - }, - "end": { - "line": 10, - "column": 17, - "offset": 89 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "asterisk 1", - "position": { - "start": { - "line": 12, - "column": 3, - "offset": 93 - }, - "end": { - "line": 12, - "column": 13, - "offset": 103 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 3, - "offset": 93 - }, - "end": { - "line": 12, - "column": 13, - "offset": 103 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 91 - }, - "end": { - "line": 13, - "column": 1, - "offset": 104 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "asterisk 2", - "position": { - "start": { - "line": 14, - "column": 3, - "offset": 107 - }, - "end": { - "line": 14, - "column": 13, - "offset": 117 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 3, - "offset": 107 - }, - "end": { - "line": 14, - "column": 13, - "offset": 117 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 105 - }, - "end": { - "line": 15, - "column": 1, - "offset": 118 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "asterisk 3", - "position": { - "start": { - "line": 16, - "column": 3, - "offset": 121 - }, - "end": { - "line": 16, - "column": 13, - "offset": 131 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 3, - "offset": 121 - }, - "end": { - "line": 16, - "column": 13, - "offset": 131 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 119 - }, - "end": { - "line": 16, - "column": 13, - "offset": 131 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 91 - }, - "end": { - "line": 16, - "column": 13, - "offset": 131 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 133 - }, - "end": { - "line": 18, - "column": 6, - "offset": 138 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Pluses tight:", - "position": { - "start": { - "line": 20, - "column": 1, - "offset": 140 - }, - "end": { - "line": 20, - "column": 14, - "offset": 153 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 1, - "offset": 140 - }, - "end": { - "line": 20, - "column": 14, - "offset": 153 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Plus 1", - "position": { - "start": { - "line": 22, - "column": 3, - "offset": 157 - }, - "end": { - "line": 22, - "column": 9, - "offset": 163 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 22, - "column": 3, - "offset": 157 - }, - "end": { - "line": 22, - "column": 9, - "offset": 163 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 22, - "column": 1, - "offset": 155 - }, - "end": { - "line": 22, - "column": 9, - "offset": 163 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Plus 2", - "position": { - "start": { - "line": 23, - "column": 3, - "offset": 166 - }, - "end": { - "line": 23, - "column": 9, - "offset": 172 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 23, - "column": 3, - "offset": 166 - }, - "end": { - "line": 23, - "column": 9, - "offset": 172 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 23, - "column": 1, - "offset": 164 - }, - "end": { - "line": 23, - "column": 9, - "offset": 172 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Plus 3", - "position": { - "start": { - "line": 24, - "column": 3, - "offset": 175 - }, - "end": { - "line": 24, - "column": 9, - "offset": 181 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 24, - "column": 3, - "offset": 175 - }, - "end": { - "line": 24, - "column": 9, - "offset": 181 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 24, - "column": 1, - "offset": 173 - }, - "end": { - "line": 24, - "column": 9, - "offset": 181 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 22, - "column": 1, - "offset": 155 - }, - "end": { - "line": 24, - "column": 9, - "offset": 181 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Pluses loose:", - "position": { - "start": { - "line": 27, - "column": 1, - "offset": 184 - }, - "end": { - "line": 27, - "column": 14, - "offset": 197 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 27, - "column": 1, - "offset": 184 - }, - "end": { - "line": 27, - "column": 14, - "offset": 197 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Plus 1", - "position": { - "start": { - "line": 29, - "column": 3, - "offset": 201 - }, - "end": { - "line": 29, - "column": 9, - "offset": 207 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 29, - "column": 3, - "offset": 201 - }, - "end": { - "line": 29, - "column": 9, - "offset": 207 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 199 - }, - "end": { - "line": 30, - "column": 1, - "offset": 208 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Plus 2", - "position": { - "start": { - "line": 31, - "column": 3, - "offset": 211 - }, - "end": { - "line": 31, - "column": 9, - "offset": 217 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 31, - "column": 3, - "offset": 211 - }, - "end": { - "line": 31, - "column": 9, - "offset": 217 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 31, - "column": 1, - "offset": 209 - }, - "end": { - "line": 32, - "column": 1, - "offset": 218 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Plus 3", - "position": { - "start": { - "line": 33, - "column": 3, - "offset": 221 - }, - "end": { - "line": 33, - "column": 9, - "offset": 227 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 33, - "column": 3, - "offset": 221 - }, - "end": { - "line": 33, - "column": 9, - "offset": 227 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 33, - "column": 1, - "offset": 219 - }, - "end": { - "line": 33, - "column": 9, - "offset": 227 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 199 - }, - "end": { - "line": 33, - "column": 9, - "offset": 227 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 35, - "column": 1, - "offset": 229 - }, - "end": { - "line": 35, - "column": 6, - "offset": 234 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Minuses tight:", - "position": { - "start": { - "line": 38, - "column": 1, - "offset": 237 - }, - "end": { - "line": 38, - "column": 15, - "offset": 251 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 38, - "column": 1, - "offset": 237 - }, - "end": { - "line": 38, - "column": 15, - "offset": 251 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Minus 1", - "position": { - "start": { - "line": 40, - "column": 3, - "offset": 255 - }, - "end": { - "line": 40, - "column": 10, - "offset": 262 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 40, - "column": 3, - "offset": 255 - }, - "end": { - "line": 40, - "column": 10, - "offset": 262 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 40, - "column": 1, - "offset": 253 - }, - "end": { - "line": 40, - "column": 10, - "offset": 262 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Minus 2", - "position": { - "start": { - "line": 41, - "column": 3, - "offset": 265 - }, - "end": { - "line": 41, - "column": 10, - "offset": 272 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 41, - "column": 3, - "offset": 265 - }, - "end": { - "line": 41, - "column": 10, - "offset": 272 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 41, - "column": 1, - "offset": 263 - }, - "end": { - "line": 41, - "column": 10, - "offset": 272 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Minus 3", - "position": { - "start": { - "line": 42, - "column": 3, - "offset": 275 - }, - "end": { - "line": 42, - "column": 10, - "offset": 282 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 42, - "column": 3, - "offset": 275 - }, - "end": { - "line": 42, - "column": 10, - "offset": 282 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 42, - "column": 1, - "offset": 273 - }, - "end": { - "line": 42, - "column": 10, - "offset": 282 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 40, - "column": 1, - "offset": 253 - }, - "end": { - "line": 42, - "column": 10, - "offset": 282 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Minuses loose:", - "position": { - "start": { - "line": 45, - "column": 1, - "offset": 285 - }, - "end": { - "line": 45, - "column": 15, - "offset": 299 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 45, - "column": 1, - "offset": 285 - }, - "end": { - "line": 45, - "column": 15, - "offset": 299 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Minus 1", - "position": { - "start": { - "line": 47, - "column": 3, - "offset": 303 - }, - "end": { - "line": 47, - "column": 10, - "offset": 310 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 47, - "column": 3, - "offset": 303 - }, - "end": { - "line": 47, - "column": 10, - "offset": 310 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 47, - "column": 1, - "offset": 301 - }, - "end": { - "line": 48, - "column": 1, - "offset": 311 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Minus 2", - "position": { - "start": { - "line": 49, - "column": 3, - "offset": 314 - }, - "end": { - "line": 49, - "column": 10, - "offset": 321 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 49, - "column": 3, - "offset": 314 - }, - "end": { - "line": 49, - "column": 10, - "offset": 321 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 49, - "column": 1, - "offset": 312 - }, - "end": { - "line": 50, - "column": 1, - "offset": 322 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Minus 3", - "position": { - "start": { - "line": 51, - "column": 3, - "offset": 325 - }, - "end": { - "line": 51, - "column": 10, - "offset": 332 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 51, - "column": 3, - "offset": 325 - }, - "end": { - "line": 51, - "column": 10, - "offset": 332 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 51, - "column": 1, - "offset": 323 - }, - "end": { - "line": 51, - "column": 10, - "offset": 332 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 47, - "column": 1, - "offset": 301 - }, - "end": { - "line": 51, - "column": 10, - "offset": 332 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "heading", - "depth": 2, - "children": [ - { - "type": "text", - "value": "Ordered", - "position": { - "start": { - "line": 54, - "column": 4, - "offset": 338 - }, - "end": { - "line": 54, - "column": 11, - "offset": 345 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 54, - "column": 1, - "offset": 335 - }, - "end": { - "line": 54, - "column": 11, - "offset": 345 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Tight:", - "position": { - "start": { - "line": 56, - "column": 1, - "offset": 347 - }, - "end": { - "line": 56, - "column": 7, - "offset": 353 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 56, - "column": 1, - "offset": 347 - }, - "end": { - "line": 56, - "column": 7, - "offset": 353 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "First", - "position": { - "start": { - "line": 58, - "column": 4, - "offset": 358 - }, - "end": { - "line": 58, - "column": 9, - "offset": 363 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 58, - "column": 4, - "offset": 358 - }, - "end": { - "line": 58, - "column": 9, - "offset": 363 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 58, - "column": 1, - "offset": 355 - }, - "end": { - "line": 58, - "column": 9, - "offset": 363 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Second", - "position": { - "start": { - "line": 59, - "column": 4, - "offset": 367 - }, - "end": { - "line": 59, - "column": 10, - "offset": 373 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 59, - "column": 4, - "offset": 367 - }, - "end": { - "line": 59, - "column": 10, - "offset": 373 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 59, - "column": 1, - "offset": 364 - }, - "end": { - "line": 59, - "column": 10, - "offset": 373 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Third", - "position": { - "start": { - "line": 60, - "column": 4, - "offset": 377 - }, - "end": { - "line": 60, - "column": 9, - "offset": 382 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 60, - "column": 4, - "offset": 377 - }, - "end": { - "line": 60, - "column": 9, - "offset": 382 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 60, - "column": 1, - "offset": 374 - }, - "end": { - "line": 60, - "column": 9, - "offset": 382 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 58, - "column": 1, - "offset": 355 - }, - "end": { - "line": 60, - "column": 9, - "offset": 382 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "and:", - "position": { - "start": { - "line": 62, - "column": 1, - "offset": 384 - }, - "end": { - "line": 62, - "column": 5, - "offset": 388 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 62, - "column": 1, - "offset": 384 - }, - "end": { - "line": 62, - "column": 5, - "offset": 388 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "One", - "position": { - "start": { - "line": 64, - "column": 4, - "offset": 393 - }, - "end": { - "line": 64, - "column": 7, - "offset": 396 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 64, - "column": 4, - "offset": 393 - }, - "end": { - "line": 64, - "column": 7, - "offset": 396 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 64, - "column": 1, - "offset": 390 - }, - "end": { - "line": 64, - "column": 7, - "offset": 396 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Two", - "position": { - "start": { - "line": 65, - "column": 4, - "offset": 400 - }, - "end": { - "line": 65, - "column": 7, - "offset": 403 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 65, - "column": 4, - "offset": 400 - }, - "end": { - "line": 65, - "column": 7, - "offset": 403 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 65, - "column": 1, - "offset": 397 - }, - "end": { - "line": 65, - "column": 7, - "offset": 403 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Three", - "position": { - "start": { - "line": 66, - "column": 4, - "offset": 407 - }, - "end": { - "line": 66, - "column": 9, - "offset": 412 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 66, - "column": 4, - "offset": 407 - }, - "end": { - "line": 66, - "column": 9, - "offset": 412 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 66, - "column": 1, - "offset": 404 - }, - "end": { - "line": 66, - "column": 9, - "offset": 412 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 64, - "column": 1, - "offset": 390 - }, - "end": { - "line": 66, - "column": 9, - "offset": 412 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Loose using tabs:", - "position": { - "start": { - "line": 69, - "column": 1, - "offset": 415 - }, - "end": { - "line": 69, - "column": 18, - "offset": 432 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 69, - "column": 1, - "offset": 415 - }, - "end": { - "line": 69, - "column": 18, - "offset": 432 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "First", - "position": { - "start": { - "line": 71, - "column": 4, - "offset": 437 - }, - "end": { - "line": 71, - "column": 9, - "offset": 442 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 71, - "column": 4, - "offset": 437 - }, - "end": { - "line": 71, - "column": 9, - "offset": 442 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 71, - "column": 1, - "offset": 434 - }, - "end": { - "line": 72, - "column": 1, - "offset": 443 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Second", - "position": { - "start": { - "line": 73, - "column": 4, - "offset": 447 - }, - "end": { - "line": 73, - "column": 10, - "offset": 453 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 73, - "column": 4, - "offset": 447 - }, - "end": { - "line": 73, - "column": 10, - "offset": 453 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 73, - "column": 1, - "offset": 444 - }, - "end": { - "line": 74, - "column": 1, - "offset": 454 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Third", - "position": { - "start": { - "line": 75, - "column": 4, - "offset": 458 - }, - "end": { - "line": 75, - "column": 9, - "offset": 463 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 75, - "column": 4, - "offset": 458 - }, - "end": { - "line": 75, - "column": 9, - "offset": 463 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 75, - "column": 1, - "offset": 455 - }, - "end": { - "line": 75, - "column": 9, - "offset": 463 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 71, - "column": 1, - "offset": 434 - }, - "end": { - "line": 75, - "column": 9, - "offset": 463 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "and using spaces:", - "position": { - "start": { - "line": 77, - "column": 1, - "offset": 465 - }, - "end": { - "line": 77, - "column": 18, - "offset": 482 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 77, - "column": 1, - "offset": 465 - }, - "end": { - "line": 77, - "column": 18, - "offset": 482 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "One", - "position": { - "start": { - "line": 79, - "column": 4, - "offset": 487 - }, - "end": { - "line": 79, - "column": 7, - "offset": 490 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 79, - "column": 4, - "offset": 487 - }, - "end": { - "line": 79, - "column": 7, - "offset": 490 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 79, - "column": 1, - "offset": 484 - }, - "end": { - "line": 80, - "column": 1, - "offset": 491 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Two", - "position": { - "start": { - "line": 81, - "column": 4, - "offset": 495 - }, - "end": { - "line": 81, - "column": 7, - "offset": 498 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 81, - "column": 4, - "offset": 495 - }, - "end": { - "line": 81, - "column": 7, - "offset": 498 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 81, - "column": 1, - "offset": 492 - }, - "end": { - "line": 82, - "column": 1, - "offset": 499 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Three", - "position": { - "start": { - "line": 83, - "column": 4, - "offset": 503 - }, - "end": { - "line": 83, - "column": 9, - "offset": 508 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 83, - "column": 4, - "offset": 503 - }, - "end": { - "line": 83, - "column": 9, - "offset": 508 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 83, - "column": 1, - "offset": 500 - }, - "end": { - "line": 83, - "column": 9, - "offset": 508 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 79, - "column": 1, - "offset": 484 - }, - "end": { - "line": 83, - "column": 9, - "offset": 508 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Multiple paragraphs:", - "position": { - "start": { - "line": 85, - "column": 1, - "offset": 510 - }, - "end": { - "line": 85, - "column": 21, - "offset": 530 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 85, - "column": 1, - "offset": 510 - }, - "end": { - "line": 85, - "column": 21, - "offset": 530 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Item 1, graf one.", - "position": { - "start": { - "line": 87, - "column": 4, - "offset": 535 - }, - "end": { - "line": 87, - "column": 21, - "offset": 552 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 87, - "column": 4, - "offset": 535 - }, - "end": { - "line": 87, - "column": 21, - "offset": 552 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Item 2. graf two. The quick brown fox jumped over the lazy dog's\nback.", - "position": { - "start": { - "line": 89, - "column": 2, - "offset": 555 - }, - "end": { - "line": 90, - "column": 7, - "offset": 626 - }, - "indent": [ - 2 - ] - } - } - ], - "position": { - "start": { - "line": 89, - "column": 2, - "offset": 555 - }, - "end": { - "line": 90, - "column": 7, - "offset": 626 - }, - "indent": [ - 2 - ] - } - } - ], - "position": { - "start": { - "line": 87, - "column": 1, - "offset": 532 - }, - "end": { - "line": 91, - "column": 2, - "offset": 628 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Item 2.", - "position": { - "start": { - "line": 92, - "column": 4, - "offset": 632 - }, - "end": { - "line": 92, - "column": 11, - "offset": 639 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 92, - "column": 4, - "offset": 632 - }, - "end": { - "line": 92, - "column": 11, - "offset": 639 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 92, - "column": 1, - "offset": 629 - }, - "end": { - "line": 93, - "column": 1, - "offset": 640 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Item 3.", - "position": { - "start": { - "line": 94, - "column": 4, - "offset": 644 - }, - "end": { - "line": 94, - "column": 11, - "offset": 651 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 94, - "column": 4, - "offset": 644 - }, - "end": { - "line": 94, - "column": 11, - "offset": 651 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 94, - "column": 1, - "offset": 641 - }, - "end": { - "line": 94, - "column": 11, - "offset": 651 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 87, - "column": 1, - "offset": 532 - }, - "end": { - "line": 94, - "column": 11, - "offset": 651 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "heading", - "depth": 2, - "children": [ - { - "type": "text", - "value": "Nested", - "position": { - "start": { - "line": 98, - "column": 4, - "offset": 658 - }, - "end": { - "line": 98, - "column": 10, - "offset": 664 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 98, - "column": 1, - "offset": 655 - }, - "end": { - "line": 98, - "column": 10, - "offset": 664 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Tab", - "position": { - "start": { - "line": 100, - "column": 3, - "offset": 668 - }, - "end": { - "line": 100, - "column": 6, - "offset": 671 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 100, - "column": 3, - "offset": 668 - }, - "end": { - "line": 100, - "column": 6, - "offset": 671 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Tab", - "position": { - "start": { - "line": 101, - "column": 4, - "offset": 675 - }, - "end": { - "line": 101, - "column": 7, - "offset": 678 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 101, - "column": 4, - "offset": 675 - }, - "end": { - "line": 101, - "column": 7, - "offset": 678 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Tab", - "position": { - "start": { - "line": 102, - "column": 5, - "offset": 683 - }, - "end": { - "line": 102, - "column": 8, - "offset": 686 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 102, - "column": 5, - "offset": 683 - }, - "end": { - "line": 102, - "column": 8, - "offset": 686 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 102, - "column": 3, - "offset": 681 - }, - "end": { - "line": 102, - "column": 8, - "offset": 686 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 102, - "column": 3, - "offset": 681 - }, - "end": { - "line": 102, - "column": 8, - "offset": 686 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 101, - "column": 2, - "offset": 673 - }, - "end": { - "line": 102, - "column": 8, - "offset": 686 - }, - "indent": [ - 2 - ] - } - } - ], - "position": { - "start": { - "line": 101, - "column": 2, - "offset": 673 - }, - "end": { - "line": 102, - "column": 8, - "offset": 686 - }, - "indent": [ - 2 - ] - } - } - ], - "position": { - "start": { - "line": 100, - "column": 1, - "offset": 666 - }, - "end": { - "line": 102, - "column": 8, - "offset": 686 - }, - "indent": [ - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 100, - "column": 1, - "offset": 666 - }, - "end": { - "line": 102, - "column": 8, - "offset": 686 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Here's another:", - "position": { - "start": { - "line": 104, - "column": 1, - "offset": 688 - }, - "end": { - "line": 104, - "column": 16, - "offset": 703 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 104, - "column": 1, - "offset": 688 - }, - "end": { - "line": 104, - "column": 16, - "offset": 703 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "First", - "position": { - "start": { - "line": 106, - "column": 4, - "offset": 708 - }, - "end": { - "line": 106, - "column": 9, - "offset": 713 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 106, - "column": 4, - "offset": 708 - }, - "end": { - "line": 106, - "column": 9, - "offset": 713 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 106, - "column": 1, - "offset": 705 - }, - "end": { - "line": 106, - "column": 9, - "offset": 713 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Second:", - "position": { - "start": { - "line": 107, - "column": 4, - "offset": 717 - }, - "end": { - "line": 107, - "column": 11, - "offset": 724 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 107, - "column": 4, - "offset": 717 - }, - "end": { - "line": 107, - "column": 11, - "offset": 724 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Fee", - "position": { - "start": { - "line": 108, - "column": 4, - "offset": 728 - }, - "end": { - "line": 108, - "column": 7, - "offset": 731 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 108, - "column": 4, - "offset": 728 - }, - "end": { - "line": 108, - "column": 7, - "offset": 731 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 108, - "column": 2, - "offset": 726 - }, - "end": { - "line": 108, - "column": 7, - "offset": 731 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Fie", - "position": { - "start": { - "line": 109, - "column": 4, - "offset": 735 - }, - "end": { - "line": 109, - "column": 7, - "offset": 738 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 109, - "column": 4, - "offset": 735 - }, - "end": { - "line": 109, - "column": 7, - "offset": 738 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 109, - "column": 2, - "offset": 733 - }, - "end": { - "line": 109, - "column": 7, - "offset": 738 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Foe", - "position": { - "start": { - "line": 110, - "column": 4, - "offset": 742 - }, - "end": { - "line": 110, - "column": 7, - "offset": 745 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 110, - "column": 4, - "offset": 742 - }, - "end": { - "line": 110, - "column": 7, - "offset": 745 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 110, - "column": 2, - "offset": 740 - }, - "end": { - "line": 110, - "column": 7, - "offset": 745 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 108, - "column": 2, - "offset": 726 - }, - "end": { - "line": 110, - "column": 7, - "offset": 745 - }, - "indent": [ - 2, - 2 - ] - } - } - ], - "position": { - "start": { - "line": 107, - "column": 1, - "offset": 714 - }, - "end": { - "line": 110, - "column": 7, - "offset": 745 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Third", - "position": { - "start": { - "line": 111, - "column": 4, - "offset": 749 - }, - "end": { - "line": 111, - "column": 9, - "offset": 754 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 111, - "column": 4, - "offset": 749 - }, - "end": { - "line": 111, - "column": 9, - "offset": 754 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 111, - "column": 1, - "offset": 746 - }, - "end": { - "line": 111, - "column": 9, - "offset": 754 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 106, - "column": 1, - "offset": 705 - }, - "end": { - "line": 111, - "column": 9, - "offset": 754 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Same thing but with paragraphs:", - "position": { - "start": { - "line": 113, - "column": 1, - "offset": 756 - }, - "end": { - "line": 113, - "column": 32, - "offset": 787 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 113, - "column": 1, - "offset": 756 - }, - "end": { - "line": 113, - "column": 32, - "offset": 787 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "First", - "position": { - "start": { - "line": 115, - "column": 4, - "offset": 792 - }, - "end": { - "line": 115, - "column": 9, - "offset": 797 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 115, - "column": 4, - "offset": 792 - }, - "end": { - "line": 115, - "column": 9, - "offset": 797 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 115, - "column": 1, - "offset": 789 - }, - "end": { - "line": 116, - "column": 1, - "offset": 798 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Second:", - "position": { - "start": { - "line": 117, - "column": 4, - "offset": 802 - }, - "end": { - "line": 117, - "column": 11, - "offset": 809 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 117, - "column": 4, - "offset": 802 - }, - "end": { - "line": 117, - "column": 11, - "offset": 809 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Fee", - "position": { - "start": { - "line": 118, - "column": 4, - "offset": 813 - }, - "end": { - "line": 118, - "column": 7, - "offset": 816 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 118, - "column": 4, - "offset": 813 - }, - "end": { - "line": 118, - "column": 7, - "offset": 816 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 118, - "column": 2, - "offset": 811 - }, - "end": { - "line": 118, - "column": 7, - "offset": 816 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Fie", - "position": { - "start": { - "line": 119, - "column": 4, - "offset": 820 - }, - "end": { - "line": 119, - "column": 7, - "offset": 823 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 119, - "column": 4, - "offset": 820 - }, - "end": { - "line": 119, - "column": 7, - "offset": 823 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 119, - "column": 2, - "offset": 818 - }, - "end": { - "line": 119, - "column": 7, - "offset": 823 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Foe", - "position": { - "start": { - "line": 120, - "column": 4, - "offset": 827 - }, - "end": { - "line": 120, - "column": 7, - "offset": 830 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 120, - "column": 4, - "offset": 827 - }, - "end": { - "line": 120, - "column": 7, - "offset": 830 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 120, - "column": 2, - "offset": 825 - }, - "end": { - "line": 120, - "column": 7, - "offset": 830 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 118, - "column": 2, - "offset": 811 - }, - "end": { - "line": 120, - "column": 7, - "offset": 830 - }, - "indent": [ - 2, - 2 - ] - } - } - ], - "position": { - "start": { - "line": 117, - "column": 1, - "offset": 799 - }, - "end": { - "line": 121, - "column": 1, - "offset": 831 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Third", - "position": { - "start": { - "line": 122, - "column": 4, - "offset": 835 - }, - "end": { - "line": 122, - "column": 9, - "offset": 840 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 122, - "column": 4, - "offset": 835 - }, - "end": { - "line": 122, - "column": 9, - "offset": 840 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 122, - "column": 1, - "offset": 832 - }, - "end": { - "line": 122, - "column": 9, - "offset": 840 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 115, - "column": 1, - "offset": 789 - }, - "end": { - "line": 122, - "column": 9, - "offset": 840 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This was an error in Markdown 1.0.1:", - "position": { - "start": { - "line": 125, - "column": 1, - "offset": 843 - }, - "end": { - "line": 125, - "column": 37, - "offset": 879 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 125, - "column": 1, - "offset": 843 - }, - "end": { - "line": 125, - "column": 37, - "offset": 879 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "this", - "position": { - "start": { - "line": 127, - "column": 3, - "offset": 883 - }, - "end": { - "line": 127, - "column": 7, - "offset": 887 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 127, - "column": 3, - "offset": 883 - }, - "end": { - "line": 127, - "column": 7, - "offset": 887 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "sub", - "position": { - "start": { - "line": 129, - "column": 4, - "offset": 892 - }, - "end": { - "line": 129, - "column": 7, - "offset": 895 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 129, - "column": 4, - "offset": 892 - }, - "end": { - "line": 129, - "column": 7, - "offset": 895 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 129, - "column": 2, - "offset": 890 - }, - "end": { - "line": 129, - "column": 7, - "offset": 895 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 129, - "column": 2, - "offset": 890 - }, - "end": { - "line": 129, - "column": 7, - "offset": 895 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "that", - "position": { - "start": { - "line": 131, - "column": 2, - "offset": 898 - }, - "end": { - "line": 131, - "column": 6, - "offset": 902 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 131, - "column": 2, - "offset": 898 - }, - "end": { - "line": 131, - "column": 6, - "offset": 902 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 127, - "column": 1, - "offset": 881 - }, - "end": { - "line": 131, - "column": 6, - "offset": 902 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 127, - "column": 1, - "offset": 881 - }, - "end": { - "line": 131, - "column": 6, - "offset": 902 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 132, - "column": 1, - "offset": 903 - } - } -} diff --git a/test/fixtures/tree/ordered-different-types.nooutput.commonmark.json b/test/fixtures/tree/ordered-different-types.nooutput.commonmark.json deleted file mode 100644 index 1287861a5..000000000 --- a/test/fixtures/tree/ordered-different-types.nooutput.commonmark.json +++ /dev/null @@ -1,226 +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": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "bar", - "position": { - "start": { - "line": 2, - "column": 4, - "offset": 10 - }, - "end": { - "line": 2, - "column": 7, - "offset": 13 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 2, - "column": 4, - "offset": 10 - }, - "end": { - "line": 2, - "column": 7, - "offset": 13 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 2, - "column": 1, - "offset": 7 - }, - "end": { - "line": 2, - "column": 7, - "offset": 13 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 7, - "offset": 13 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": true, - "start": 3, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "baz", - "position": { - "start": { - "line": 3, - "column": 4, - "offset": 17 - }, - "end": { - "line": 3, - "column": 7, - "offset": 20 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 4, - "offset": 17 - }, - "end": { - "line": 3, - "column": 7, - "offset": 20 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 14 - }, - "end": { - "line": 3, - "column": 7, - "offset": 20 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 14 - }, - "end": { - "line": 3, - "column": 7, - "offset": 20 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 4, - "column": 1, - "offset": 21 - } - } -} diff --git a/test/fixtures/tree/ordered-different-types.nooutput.json b/test/fixtures/tree/ordered-different-types.nooutput.json index 42eebab43..7ae58608b 100644 --- a/test/fixtures/tree/ordered-different-types.nooutput.json +++ b/test/fixtures/tree/ordered-different-types.nooutput.json @@ -28,8 +28,7 @@ "line": 1, "column": 7, "offset": 6 - }, - "indent": [] + } } } ], @@ -43,8 +42,7 @@ "line": 1, "column": 7, "offset": 6 - }, - "indent": [] + } } } ], @@ -58,8 +56,7 @@ "line": 1, "column": 7, "offset": 6 - }, - "indent": [] + } } }, { @@ -72,7 +69,7 @@ "children": [ { "type": "text", - "value": "bar\n3) baz", + "value": "bar", "position": { "start": { "line": 2, @@ -80,13 +77,10 @@ "offset": 10 }, "end": { - "line": 3, + "line": 2, "column": 7, - "offset": 20 - }, - "indent": [ - 1 - ] + "offset": 13 + } } } ], @@ -97,13 +91,10 @@ "offset": 10 }, "end": { - "line": 3, + "line": 2, "column": 7, - "offset": 20 - }, - "indent": [ - 1 - ] + "offset": 13 + } } } ], @@ -114,13 +105,10 @@ "offset": 7 }, "end": { - "line": 3, + "line": 2, "column": 7, - "offset": 20 - }, - "indent": [ - 1 - ] + "offset": 13 + } } } ], @@ -130,15 +118,83 @@ "column": 1, "offset": 0 }, + "end": { + "line": 2, + "column": 7, + "offset": 13 + } + } + }, + { + "type": "list", + "ordered": true, + "start": 3, + "spread": false, + "children": [ + { + "type": "listItem", + "spread": false, + "checked": null, + "children": [ + { + "type": "paragraph", + "children": [ + { + "type": "text", + "value": "baz", + "position": { + "start": { + "line": 3, + "column": 4, + "offset": 17 + }, + "end": { + "line": 3, + "column": 7, + "offset": 20 + } + } + } + ], + "position": { + "start": { + "line": 3, + "column": 4, + "offset": 17 + }, + "end": { + "line": 3, + "column": 7, + "offset": 20 + } + } + } + ], + "position": { + "start": { + "line": 3, + "column": 1, + "offset": 14 + }, + "end": { + "line": 3, + "column": 7, + "offset": 20 + } + } + } + ], + "position": { + "start": { + "line": 3, + "column": 1, + "offset": 14 + }, "end": { "line": 3, "column": 7, "offset": 20 - }, - "indent": [ - 1, - 1 - ] + } } } ], diff --git a/test/fixtures/tree/ordered-with-parentheses.commonmark.json b/test/fixtures/tree/ordered-with-parentheses.commonmark.json deleted file mode 100644 index 3a6935cef..000000000 --- a/test/fixtures/tree/ordered-with-parentheses.commonmark.json +++ /dev/null @@ -1,1236 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "heading", - "depth": 2, - "children": [ - { - "type": "text", - "value": "Ordered", - "position": { - "start": { - "line": 1, - "column": 4, - "offset": 3 - }, - "end": { - "line": 1, - "column": 11, - "offset": 10 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 11, - "offset": 10 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Tight:", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 12 - }, - "end": { - "line": 3, - "column": 7, - "offset": 18 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 12 - }, - "end": { - "line": 3, - "column": 7, - "offset": 18 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "First", - "position": { - "start": { - "line": 5, - "column": 4, - "offset": 23 - }, - "end": { - "line": 5, - "column": 9, - "offset": 28 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 4, - "offset": 23 - }, - "end": { - "line": 5, - "column": 9, - "offset": 28 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 20 - }, - "end": { - "line": 5, - "column": 9, - "offset": 28 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Second", - "position": { - "start": { - "line": 6, - "column": 4, - "offset": 32 - }, - "end": { - "line": 6, - "column": 10, - "offset": 38 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 4, - "offset": 32 - }, - "end": { - "line": 6, - "column": 10, - "offset": 38 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 29 - }, - "end": { - "line": 6, - "column": 10, - "offset": 38 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Third", - "position": { - "start": { - "line": 7, - "column": 4, - "offset": 42 - }, - "end": { - "line": 7, - "column": 9, - "offset": 47 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 4, - "offset": 42 - }, - "end": { - "line": 7, - "column": 9, - "offset": 47 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 39 - }, - "end": { - "line": 7, - "column": 9, - "offset": 47 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 20 - }, - "end": { - "line": 7, - "column": 9, - "offset": 47 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "and:", - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 49 - }, - "end": { - "line": 9, - "column": 5, - "offset": 53 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 49 - }, - "end": { - "line": 9, - "column": 5, - "offset": 53 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "One", - "position": { - "start": { - "line": 11, - "column": 4, - "offset": 58 - }, - "end": { - "line": 11, - "column": 7, - "offset": 61 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 4, - "offset": 58 - }, - "end": { - "line": 11, - "column": 7, - "offset": 61 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 55 - }, - "end": { - "line": 11, - "column": 7, - "offset": 61 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Two", - "position": { - "start": { - "line": 12, - "column": 4, - "offset": 65 - }, - "end": { - "line": 12, - "column": 7, - "offset": 68 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 4, - "offset": 65 - }, - "end": { - "line": 12, - "column": 7, - "offset": 68 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 62 - }, - "end": { - "line": 12, - "column": 7, - "offset": 68 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Three", - "position": { - "start": { - "line": 13, - "column": 4, - "offset": 72 - }, - "end": { - "line": 13, - "column": 9, - "offset": 77 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 4, - "offset": 72 - }, - "end": { - "line": 13, - "column": 9, - "offset": 77 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 69 - }, - "end": { - "line": 13, - "column": 9, - "offset": 77 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 55 - }, - "end": { - "line": 13, - "column": 9, - "offset": 77 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Loose using tabs:", - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 79 - }, - "end": { - "line": 15, - "column": 18, - "offset": 96 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 79 - }, - "end": { - "line": 15, - "column": 18, - "offset": 96 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "First", - "position": { - "start": { - "line": 17, - "column": 4, - "offset": 101 - }, - "end": { - "line": 17, - "column": 9, - "offset": 106 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 17, - "column": 4, - "offset": 101 - }, - "end": { - "line": 17, - "column": 9, - "offset": 106 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 98 - }, - "end": { - "line": 18, - "column": 1, - "offset": 107 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Second", - "position": { - "start": { - "line": 19, - "column": 4, - "offset": 111 - }, - "end": { - "line": 19, - "column": 10, - "offset": 117 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 19, - "column": 4, - "offset": 111 - }, - "end": { - "line": 19, - "column": 10, - "offset": 117 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 108 - }, - "end": { - "line": 20, - "column": 1, - "offset": 118 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Third", - "position": { - "start": { - "line": 21, - "column": 4, - "offset": 122 - }, - "end": { - "line": 21, - "column": 9, - "offset": 127 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 4, - "offset": 122 - }, - "end": { - "line": 21, - "column": 9, - "offset": 127 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 1, - "offset": 119 - }, - "end": { - "line": 21, - "column": 9, - "offset": 127 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 98 - }, - "end": { - "line": 21, - "column": 9, - "offset": 127 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "and using spaces:", - "position": { - "start": { - "line": 23, - "column": 1, - "offset": 129 - }, - "end": { - "line": 23, - "column": 18, - "offset": 146 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 23, - "column": 1, - "offset": 129 - }, - "end": { - "line": 23, - "column": 18, - "offset": 146 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "One", - "position": { - "start": { - "line": 25, - "column": 4, - "offset": 151 - }, - "end": { - "line": 25, - "column": 7, - "offset": 154 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 25, - "column": 4, - "offset": 151 - }, - "end": { - "line": 25, - "column": 7, - "offset": 154 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 25, - "column": 1, - "offset": 148 - }, - "end": { - "line": 26, - "column": 1, - "offset": 155 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Two", - "position": { - "start": { - "line": 27, - "column": 4, - "offset": 159 - }, - "end": { - "line": 27, - "column": 7, - "offset": 162 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 27, - "column": 4, - "offset": 159 - }, - "end": { - "line": 27, - "column": 7, - "offset": 162 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 27, - "column": 1, - "offset": 156 - }, - "end": { - "line": 28, - "column": 1, - "offset": 163 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Three", - "position": { - "start": { - "line": 29, - "column": 4, - "offset": 167 - }, - "end": { - "line": 29, - "column": 9, - "offset": 172 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 29, - "column": 4, - "offset": 167 - }, - "end": { - "line": 29, - "column": 9, - "offset": 172 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 164 - }, - "end": { - "line": 29, - "column": 9, - "offset": 172 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 25, - "column": 1, - "offset": 148 - }, - "end": { - "line": 29, - "column": 9, - "offset": 172 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Multiple paragraphs:", - "position": { - "start": { - "line": 31, - "column": 1, - "offset": 174 - }, - "end": { - "line": 31, - "column": 21, - "offset": 194 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 31, - "column": 1, - "offset": 174 - }, - "end": { - "line": 31, - "column": 21, - "offset": 194 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Item 1, graf one.", - "position": { - "start": { - "line": 33, - "column": 4, - "offset": 199 - }, - "end": { - "line": 33, - "column": 21, - "offset": 216 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 33, - "column": 4, - "offset": 199 - }, - "end": { - "line": 33, - "column": 21, - "offset": 216 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Item 2. graf two. The quick brown fox jumped over the lazy dog's\nback.", - "position": { - "start": { - "line": 35, - "column": 2, - "offset": 219 - }, - "end": { - "line": 36, - "column": 7, - "offset": 290 - }, - "indent": [ - 2 - ] - } - } - ], - "position": { - "start": { - "line": 35, - "column": 2, - "offset": 219 - }, - "end": { - "line": 36, - "column": 7, - "offset": 290 - }, - "indent": [ - 2 - ] - } - } - ], - "position": { - "start": { - "line": 33, - "column": 1, - "offset": 196 - }, - "end": { - "line": 37, - "column": 2, - "offset": 292 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Item 2.", - "position": { - "start": { - "line": 38, - "column": 4, - "offset": 296 - }, - "end": { - "line": 38, - "column": 11, - "offset": 303 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 38, - "column": 4, - "offset": 296 - }, - "end": { - "line": 38, - "column": 11, - "offset": 303 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 38, - "column": 1, - "offset": 293 - }, - "end": { - "line": 39, - "column": 1, - "offset": 304 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Item 3.", - "position": { - "start": { - "line": 40, - "column": 4, - "offset": 308 - }, - "end": { - "line": 40, - "column": 11, - "offset": 315 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 40, - "column": 4, - "offset": 308 - }, - "end": { - "line": 40, - "column": 11, - "offset": 315 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 40, - "column": 1, - "offset": 305 - }, - "end": { - "line": 40, - "column": 11, - "offset": 315 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 33, - "column": 1, - "offset": 196 - }, - "end": { - "line": 40, - "column": 11, - "offset": 315 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 41, - "column": 1, - "offset": 316 - } - } -} diff --git a/test/fixtures/tree/ordered-with-parentheses.json b/test/fixtures/tree/ordered-with-parentheses.json index e84f97521..5293b8b5a 100644 --- a/test/fixtures/tree/ordered-with-parentheses.json +++ b/test/fixtures/tree/ordered-with-parentheses.json @@ -18,8 +18,7 @@ "line": 1, "column": 11, "offset": 10 - }, - "indent": [] + } } } ], @@ -33,8 +32,7 @@ "line": 1, "column": 11, "offset": 10 - }, - "indent": [] + } } }, { @@ -53,8 +51,7 @@ "line": 3, "column": 7, "offset": 18 - }, - "indent": [] + } } } ], @@ -68,31 +65,169 @@ "line": 3, "column": 7, "offset": 18 - }, - "indent": [] + } } }, { - "type": "paragraph", + "type": "list", + "ordered": true, + "start": 1, + "spread": false, "children": [ { - "type": "text", - "value": "1)\tFirst\n2)\tSecond\n3)\tThird", + "type": "listItem", + "spread": false, + "checked": null, + "children": [ + { + "type": "paragraph", + "children": [ + { + "type": "text", + "value": "First", + "position": { + "start": { + "line": 5, + "column": 4, + "offset": 23 + }, + "end": { + "line": 5, + "column": 9, + "offset": 28 + } + } + } + ], + "position": { + "start": { + "line": 5, + "column": 4, + "offset": 23 + }, + "end": { + "line": 5, + "column": 9, + "offset": 28 + } + } + } + ], "position": { "start": { "line": 5, "column": 1, "offset": 20 }, + "end": { + "line": 5, + "column": 9, + "offset": 28 + } + } + }, + { + "type": "listItem", + "spread": false, + "checked": null, + "children": [ + { + "type": "paragraph", + "children": [ + { + "type": "text", + "value": "Second", + "position": { + "start": { + "line": 6, + "column": 4, + "offset": 32 + }, + "end": { + "line": 6, + "column": 10, + "offset": 38 + } + } + } + ], + "position": { + "start": { + "line": 6, + "column": 4, + "offset": 32 + }, + "end": { + "line": 6, + "column": 10, + "offset": 38 + } + } + } + ], + "position": { + "start": { + "line": 6, + "column": 1, + "offset": 29 + }, + "end": { + "line": 6, + "column": 10, + "offset": 38 + } + } + }, + { + "type": "listItem", + "spread": false, + "checked": null, + "children": [ + { + "type": "paragraph", + "children": [ + { + "type": "text", + "value": "Third", + "position": { + "start": { + "line": 7, + "column": 4, + "offset": 42 + }, + "end": { + "line": 7, + "column": 9, + "offset": 47 + } + } + } + ], + "position": { + "start": { + "line": 7, + "column": 4, + "offset": 42 + }, + "end": { + "line": 7, + "column": 9, + "offset": 47 + } + } + } + ], + "position": { + "start": { + "line": 7, + "column": 1, + "offset": 39 + }, "end": { "line": 7, "column": 9, "offset": 47 - }, - "indent": [ - 1, - 1 - ] + } } } ], @@ -106,11 +241,7 @@ "line": 7, "column": 9, "offset": 47 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -129,8 +260,7 @@ "line": 9, "column": 5, "offset": 53 - }, - "indent": [] + } } } ], @@ -144,31 +274,169 @@ "line": 9, "column": 5, "offset": 53 - }, - "indent": [] + } } }, { - "type": "paragraph", + "type": "list", + "ordered": true, + "start": 1, + "spread": false, "children": [ { - "type": "text", - "value": "1) One\n2) Two\n3) Three", + "type": "listItem", + "spread": false, + "checked": null, + "children": [ + { + "type": "paragraph", + "children": [ + { + "type": "text", + "value": "One", + "position": { + "start": { + "line": 11, + "column": 4, + "offset": 58 + }, + "end": { + "line": 11, + "column": 7, + "offset": 61 + } + } + } + ], + "position": { + "start": { + "line": 11, + "column": 4, + "offset": 58 + }, + "end": { + "line": 11, + "column": 7, + "offset": 61 + } + } + } + ], "position": { "start": { "line": 11, "column": 1, "offset": 55 }, + "end": { + "line": 11, + "column": 7, + "offset": 61 + } + } + }, + { + "type": "listItem", + "spread": false, + "checked": null, + "children": [ + { + "type": "paragraph", + "children": [ + { + "type": "text", + "value": "Two", + "position": { + "start": { + "line": 12, + "column": 4, + "offset": 65 + }, + "end": { + "line": 12, + "column": 7, + "offset": 68 + } + } + } + ], + "position": { + "start": { + "line": 12, + "column": 4, + "offset": 65 + }, + "end": { + "line": 12, + "column": 7, + "offset": 68 + } + } + } + ], + "position": { + "start": { + "line": 12, + "column": 1, + "offset": 62 + }, + "end": { + "line": 12, + "column": 7, + "offset": 68 + } + } + }, + { + "type": "listItem", + "spread": false, + "checked": null, + "children": [ + { + "type": "paragraph", + "children": [ + { + "type": "text", + "value": "Three", + "position": { + "start": { + "line": 13, + "column": 4, + "offset": 72 + }, + "end": { + "line": 13, + "column": 9, + "offset": 77 + } + } + } + ], + "position": { + "start": { + "line": 13, + "column": 4, + "offset": 72 + }, + "end": { + "line": 13, + "column": 9, + "offset": 77 + } + } + } + ], + "position": { + "start": { + "line": 13, + "column": 1, + "offset": 69 + }, "end": { "line": 13, "column": 9, "offset": 77 - }, - "indent": [ - 1, - 1 - ] + } } } ], @@ -182,11 +450,7 @@ "line": 13, "column": 9, "offset": 77 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -205,8 +469,7 @@ "line": 15, "column": 18, "offset": 96 - }, - "indent": [] + } } } ], @@ -220,16 +483,54 @@ "line": 15, "column": 18, "offset": 96 - }, - "indent": [] + } } }, { - "type": "paragraph", + "type": "list", + "ordered": true, + "start": 1, + "spread": true, "children": [ { - "type": "text", - "value": "1)\tFirst", + "type": "listItem", + "spread": false, + "checked": null, + "children": [ + { + "type": "paragraph", + "children": [ + { + "type": "text", + "value": "First", + "position": { + "start": { + "line": 17, + "column": 4, + "offset": 101 + }, + "end": { + "line": 17, + "column": 9, + "offset": 106 + } + } + } + ], + "position": { + "start": { + "line": 17, + "column": 4, + "offset": 101 + }, + "end": { + "line": 17, + "column": 9, + "offset": 106 + } + } + } + ], "position": { "start": { "line": 17, @@ -240,31 +541,48 @@ "line": 17, "column": 9, "offset": 106 - }, - "indent": [] + } } - } - ], - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 98 - }, - "end": { - "line": 17, - "column": 9, - "offset": 106 }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ { - "type": "text", - "value": "2)\tSecond", + "type": "listItem", + "spread": false, + "checked": null, + "children": [ + { + "type": "paragraph", + "children": [ + { + "type": "text", + "value": "Second", + "position": { + "start": { + "line": 19, + "column": 4, + "offset": 111 + }, + "end": { + "line": 19, + "column": 10, + "offset": 117 + } + } + } + ], + "position": { + "start": { + "line": 19, + "column": 4, + "offset": 111 + }, + "end": { + "line": 19, + "column": 10, + "offset": 117 + } + } + } + ], "position": { "start": { "line": 19, @@ -275,31 +593,48 @@ "line": 19, "column": 10, "offset": 117 - }, - "indent": [] + } } - } - ], - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 108 - }, - "end": { - "line": 19, - "column": 10, - "offset": 117 }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ { - "type": "text", - "value": "3)\tThird", + "type": "listItem", + "spread": false, + "checked": null, + "children": [ + { + "type": "paragraph", + "children": [ + { + "type": "text", + "value": "Third", + "position": { + "start": { + "line": 21, + "column": 4, + "offset": 122 + }, + "end": { + "line": 21, + "column": 9, + "offset": 127 + } + } + } + ], + "position": { + "start": { + "line": 21, + "column": 4, + "offset": 122 + }, + "end": { + "line": 21, + "column": 9, + "offset": 127 + } + } + } + ], "position": { "start": { "line": 21, @@ -310,23 +645,21 @@ "line": 21, "column": 9, "offset": 127 - }, - "indent": [] + } } } ], "position": { "start": { - "line": 21, + "line": 17, "column": 1, - "offset": 119 + "offset": 98 }, "end": { "line": 21, "column": 9, "offset": 127 - }, - "indent": [] + } } }, { @@ -345,8 +678,7 @@ "line": 23, "column": 18, "offset": 146 - }, - "indent": [] + } } } ], @@ -360,16 +692,54 @@ "line": 23, "column": 18, "offset": 146 - }, - "indent": [] + } } }, { - "type": "paragraph", + "type": "list", + "ordered": true, + "start": 1, + "spread": true, "children": [ { - "type": "text", - "value": "1) One", + "type": "listItem", + "spread": false, + "checked": null, + "children": [ + { + "type": "paragraph", + "children": [ + { + "type": "text", + "value": "One", + "position": { + "start": { + "line": 25, + "column": 4, + "offset": 151 + }, + "end": { + "line": 25, + "column": 7, + "offset": 154 + } + } + } + ], + "position": { + "start": { + "line": 25, + "column": 4, + "offset": 151 + }, + "end": { + "line": 25, + "column": 7, + "offset": 154 + } + } + } + ], "position": { "start": { "line": 25, @@ -380,31 +750,48 @@ "line": 25, "column": 7, "offset": 154 - }, - "indent": [] + } } - } - ], - "position": { - "start": { - "line": 25, - "column": 1, - "offset": 148 }, - "end": { - "line": 25, - "column": 7, - "offset": 154 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ { - "type": "text", - "value": "2) Two", + "type": "listItem", + "spread": false, + "checked": null, + "children": [ + { + "type": "paragraph", + "children": [ + { + "type": "text", + "value": "Two", + "position": { + "start": { + "line": 27, + "column": 4, + "offset": 159 + }, + "end": { + "line": 27, + "column": 7, + "offset": 162 + } + } + } + ], + "position": { + "start": { + "line": 27, + "column": 4, + "offset": 159 + }, + "end": { + "line": 27, + "column": 7, + "offset": 162 + } + } + } + ], "position": { "start": { "line": 27, @@ -415,31 +802,48 @@ "line": 27, "column": 7, "offset": 162 - }, - "indent": [] + } } - } - ], - "position": { - "start": { - "line": 27, - "column": 1, - "offset": 156 }, - "end": { - "line": 27, - "column": 7, - "offset": 162 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ { - "type": "text", - "value": "3) Three", + "type": "listItem", + "spread": false, + "checked": null, + "children": [ + { + "type": "paragraph", + "children": [ + { + "type": "text", + "value": "Three", + "position": { + "start": { + "line": 29, + "column": 4, + "offset": 167 + }, + "end": { + "line": 29, + "column": 9, + "offset": 172 + } + } + } + ], + "position": { + "start": { + "line": 29, + "column": 4, + "offset": 167 + }, + "end": { + "line": 29, + "column": 9, + "offset": 172 + } + } + } + ], "position": { "start": { "line": 29, @@ -450,23 +854,21 @@ "line": 29, "column": 9, "offset": 172 - }, - "indent": [] + } } } ], "position": { "start": { - "line": 29, + "line": 25, "column": 1, - "offset": 164 + "offset": 148 }, "end": { "line": 29, "column": 9, "offset": 172 - }, - "indent": [] + } } }, { @@ -485,8 +887,7 @@ "line": 31, "column": 21, "offset": 194 - }, - "indent": [] + } } } ], @@ -500,16 +901,87 @@ "line": 31, "column": 21, "offset": 194 - }, - "indent": [] + } } }, { - "type": "paragraph", + "type": "list", + "ordered": true, + "start": 1, + "spread": true, "children": [ { - "type": "text", - "value": "1)\tItem 1, graf one.", + "type": "listItem", + "spread": true, + "checked": null, + "children": [ + { + "type": "paragraph", + "children": [ + { + "type": "text", + "value": "Item 1, graf one.", + "position": { + "start": { + "line": 33, + "column": 4, + "offset": 199 + }, + "end": { + "line": 33, + "column": 21, + "offset": 216 + } + } + } + ], + "position": { + "start": { + "line": 33, + "column": 4, + "offset": 199 + }, + "end": { + "line": 33, + "column": 21, + "offset": 216 + } + } + }, + { + "type": "paragraph", + "children": [ + { + "type": "text", + "value": "Item 2. graf two. The quick brown fox jumped over the lazy dog's\nback.", + "position": { + "start": { + "line": 35, + "column": 2, + "offset": 219 + }, + "end": { + "line": 36, + "column": 7, + "offset": 290 + } + } + } + ], + "position": { + "start": { + "line": 35, + "column": 2, + "offset": 219 + }, + "end": { + "line": 36, + "column": 7, + "offset": 290 + } + } + } + ], "position": { "start": { "line": 33, @@ -517,56 +989,51 @@ "offset": 196 }, "end": { - "line": 33, - "column": 21, - "offset": 216 - }, - "indent": [] + "line": 36, + "column": 7, + "offset": 290 + } } - } - ], - "position": { - "start": { - "line": 33, - "column": 1, - "offset": 196 }, - "end": { - "line": 33, - "column": 21, - "offset": 216 - }, - "indent": [] - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "Item 2. graf two. The quick brown fox jumped over the lazy dog's\nback.", - "position": { - "start": { - "line": 35, - "column": 1, - "offset": 218 - }, - "end": { - "line": 37, - "column": 2, - "offset": 292 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ { - "type": "text", - "value": "2)\tItem 2.", + "type": "listItem", + "spread": false, + "checked": null, + "children": [ + { + "type": "paragraph", + "children": [ + { + "type": "text", + "value": "Item 2.", + "position": { + "start": { + "line": 38, + "column": 4, + "offset": 296 + }, + "end": { + "line": 38, + "column": 11, + "offset": 303 + } + } + } + ], + "position": { + "start": { + "line": 38, + "column": 4, + "offset": 296 + }, + "end": { + "line": 38, + "column": 11, + "offset": 303 + } + } + } + ], "position": { "start": { "line": 38, @@ -577,31 +1044,48 @@ "line": 38, "column": 11, "offset": 303 - }, - "indent": [] + } } - } - ], - "position": { - "start": { - "line": 38, - "column": 1, - "offset": 293 - }, - "end": { - "line": 38, - "column": 11, - "offset": 303 }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ { - "type": "text", - "value": "3)\tItem 3.", + "type": "listItem", + "spread": false, + "checked": null, + "children": [ + { + "type": "paragraph", + "children": [ + { + "type": "text", + "value": "Item 3.", + "position": { + "start": { + "line": 40, + "column": 4, + "offset": 308 + }, + "end": { + "line": 40, + "column": 11, + "offset": 315 + } + } + } + ], + "position": { + "start": { + "line": 40, + "column": 4, + "offset": 308 + }, + "end": { + "line": 40, + "column": 11, + "offset": 315 + } + } + } + ], "position": { "start": { "line": 40, @@ -612,23 +1096,21 @@ "line": 40, "column": 11, "offset": 315 - }, - "indent": [] + } } } ], "position": { "start": { - "line": 40, + "line": 33, "column": 1, - "offset": 305 + "offset": 196 }, "end": { "line": 40, "column": 11, "offset": 315 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/paragraphs-and-indentation.commonmark.json b/test/fixtures/tree/paragraphs-and-indentation.commonmark.json deleted file mode 100644 index b160aad1a..000000000 --- a/test/fixtures/tree/paragraphs-and-indentation.commonmark.json +++ /dev/null @@ -1,556 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Without lines.", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 17, - "offset": 16 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 17, - "offset": 16 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This is a paragraph\n and this is further text", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 18 - }, - "end": { - "line": 4, - "column": 29, - "offset": 66 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 18 - }, - "end": { - "line": 4, - "column": 29, - "offset": 66 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This is a paragraph\n and this is further text", - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 68 - }, - "end": { - "line": 7, - "column": 28, - "offset": 115 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 68 - }, - "end": { - "line": 7, - "column": 28, - "offset": 115 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This is a paragraph", - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 117 - }, - "end": { - "line": 9, - "column": 20, - "offset": 136 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 117 - }, - "end": { - "line": 9, - "column": 20, - "offset": 136 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "and this is a new paragraph", - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 142 - }, - "end": { - "line": 11, - "column": 28, - "offset": 169 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 142 - }, - "end": { - "line": 11, - "column": 28, - "offset": 169 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This is a paragraph with some asterisks\n ***", - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 171 - }, - "end": { - "line": 14, - "column": 8, - "offset": 218 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 171 - }, - "end": { - "line": 14, - "column": 8, - "offset": 218 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This is a paragraph followed by a horizontal rule", - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 220 - }, - "end": { - "line": 16, - "column": 50, - "offset": 269 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 220 - }, - "end": { - "line": 16, - "column": 50, - "offset": 269 - }, - "indent": [] - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 270 - }, - "end": { - "line": 17, - "column": 7, - "offset": 276 - }, - "indent": [] - } - }, - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "With lines.", - "position": { - "start": { - "line": 19, - "column": 3, - "offset": 280 - }, - "end": { - "line": 19, - "column": 14, - "offset": 291 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 278 - }, - "end": { - "line": 19, - "column": 14, - "offset": 291 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This is a paragraph", - "position": { - "start": { - "line": 21, - "column": 1, - "offset": 293 - }, - "end": { - "line": 21, - "column": 20, - "offset": 312 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 1, - "offset": 293 - }, - "end": { - "line": 21, - "column": 20, - "offset": 312 - }, - "indent": [] - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "and this is code", - "position": { - "start": { - "line": 23, - "column": 1, - "offset": 314 - }, - "end": { - "line": 23, - "column": 21, - "offset": 334 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This is a paragraph", - "position": { - "start": { - "line": 25, - "column": 1, - "offset": 336 - }, - "end": { - "line": 25, - "column": 20, - "offset": 355 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 25, - "column": 1, - "offset": 336 - }, - "end": { - "line": 25, - "column": 20, - "offset": 355 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": " and this is a new paragraph", - "position": { - "start": { - "line": 27, - "column": 1, - "offset": 357 - }, - "end": { - "line": 27, - "column": 31, - "offset": 387 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 27, - "column": 1, - "offset": 357 - }, - "end": { - "line": 27, - "column": 31, - "offset": 387 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This is a paragraph with some asterisks in a code block", - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 389 - }, - "end": { - "line": 29, - "column": 56, - "offset": 444 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 389 - }, - "end": { - "line": 29, - "column": 56, - "offset": 444 - }, - "indent": [] - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "***", - "position": { - "start": { - "line": 31, - "column": 1, - "offset": 446 - }, - "end": { - "line": 31, - "column": 8, - "offset": 453 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This is a paragraph followed by a horizontal rule", - "position": { - "start": { - "line": 33, - "column": 1, - "offset": 455 - }, - "end": { - "line": 33, - "column": 50, - "offset": 504 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 33, - "column": 1, - "offset": 455 - }, - "end": { - "line": 33, - "column": 50, - "offset": 504 - }, - "indent": [] - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 35, - "column": 1, - "offset": 506 - }, - "end": { - "line": 35, - "column": 7, - "offset": 512 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 37, - "column": 1, - "offset": 514 - } - } -} diff --git a/test/fixtures/tree/paragraphs-and-indentation.json b/test/fixtures/tree/paragraphs-and-indentation.json index 2f40b460f..9a650a533 100644 --- a/test/fixtures/tree/paragraphs-and-indentation.json +++ b/test/fixtures/tree/paragraphs-and-indentation.json @@ -18,8 +18,7 @@ "line": 1, "column": 17, "offset": 16 - }, - "indent": [] + } } } ], @@ -33,8 +32,7 @@ "line": 1, "column": 17, "offset": 16 - }, - "indent": [] + } } }, { @@ -42,7 +40,7 @@ "children": [ { "type": "text", - "value": "This is a paragraph\n and this is further text", + "value": "This is a paragraph\nand this is further text", "position": { "start": { "line": 3, @@ -53,10 +51,7 @@ "line": 4, "column": 29, "offset": 66 - }, - "indent": [ - 1 - ] + } } } ], @@ -70,10 +65,7 @@ "line": 4, "column": 29, "offset": 66 - }, - "indent": [ - 1 - ] + } } }, { @@ -81,7 +73,7 @@ "children": [ { "type": "text", - "value": "This is a paragraph\n and this is further text", + "value": "This is a paragraph\nand this is further text", "position": { "start": { "line": 6, @@ -92,10 +84,7 @@ "line": 7, "column": 28, "offset": 115 - }, - "indent": [ - 1 - ] + } } } ], @@ -109,10 +98,7 @@ "line": 7, "column": 28, "offset": 115 - }, - "indent": [ - 1 - ] + } } }, { @@ -131,8 +117,7 @@ "line": 9, "column": 20, "offset": 136 - }, - "indent": [] + } } } ], @@ -146,8 +131,7 @@ "line": 9, "column": 20, "offset": 136 - }, - "indent": [] + } } }, { @@ -166,8 +150,7 @@ "line": 11, "column": 28, "offset": 169 - }, - "indent": [] + } } } ], @@ -181,8 +164,7 @@ "line": 11, "column": 28, "offset": 169 - }, - "indent": [] + } } }, { @@ -190,7 +172,7 @@ "children": [ { "type": "text", - "value": "This is a paragraph with some asterisks", + "value": "This is a paragraph with some asterisks\n***", "position": { "start": { "line": 13, @@ -198,11 +180,10 @@ "offset": 171 }, "end": { - "line": 13, - "column": 40, - "offset": 210 - }, - "indent": [] + "line": 14, + "column": 8, + "offset": 218 + } } } ], @@ -212,31 +193,11 @@ "column": 1, "offset": 171 }, - "end": { - "line": 13, - "column": 40, - "offset": 210 - }, - "indent": [] - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "***", - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 211 - }, "end": { "line": 14, "column": 8, "offset": 218 - }, - "indent": [] + } } }, { @@ -255,8 +216,7 @@ "line": 16, "column": 50, "offset": 269 - }, - "indent": [] + } } } ], @@ -270,8 +230,7 @@ "line": 16, "column": 50, "offset": 269 - }, - "indent": [] + } } }, { @@ -279,15 +238,14 @@ "position": { "start": { "line": 17, - "column": 1, - "offset": 270 + "column": 4, + "offset": 273 }, "end": { "line": 17, "column": 7, "offset": 276 - }, - "indent": [] + } } }, { @@ -307,8 +265,7 @@ "line": 19, "column": 14, "offset": 291 - }, - "indent": [] + } } } ], @@ -322,8 +279,7 @@ "line": 19, "column": 14, "offset": 291 - }, - "indent": [] + } } }, { @@ -342,8 +298,7 @@ "line": 21, "column": 20, "offset": 312 - }, - "indent": [] + } } } ], @@ -357,8 +312,7 @@ "line": 21, "column": 20, "offset": 312 - }, - "indent": [] + } } }, { @@ -376,8 +330,7 @@ "line": 23, "column": 21, "offset": 334 - }, - "indent": [] + } } }, { @@ -396,8 +349,7 @@ "line": 25, "column": 20, "offset": 355 - }, - "indent": [] + } } } ], @@ -411,8 +363,7 @@ "line": 25, "column": 20, "offset": 355 - }, - "indent": [] + } } }, { @@ -420,34 +371,32 @@ "children": [ { "type": "text", - "value": " and this is a new paragraph", + "value": "and this is a new paragraph", "position": { "start": { "line": 27, - "column": 1, - "offset": 357 + "column": 4, + "offset": 360 }, "end": { "line": 27, "column": 31, "offset": 387 - }, - "indent": [] + } } } ], "position": { "start": { "line": 27, - "column": 1, - "offset": 357 + "column": 4, + "offset": 360 }, "end": { "line": 27, "column": 31, "offset": 387 - }, - "indent": [] + } } }, { @@ -466,8 +415,7 @@ "line": 29, "column": 56, "offset": 444 - }, - "indent": [] + } } } ], @@ -481,8 +429,7 @@ "line": 29, "column": 56, "offset": 444 - }, - "indent": [] + } } }, { @@ -500,8 +447,7 @@ "line": 31, "column": 8, "offset": 453 - }, - "indent": [] + } } }, { @@ -520,8 +466,7 @@ "line": 33, "column": 50, "offset": 504 - }, - "indent": [] + } } } ], @@ -535,8 +480,7 @@ "line": 33, "column": 50, "offset": 504 - }, - "indent": [] + } } }, { @@ -544,15 +488,14 @@ "position": { "start": { "line": 35, - "column": 1, - "offset": 506 + "column": 4, + "offset": 509 }, "end": { "line": 35, "column": 7, "offset": 512 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/paragraphs-and-indentation.nogfm.commonmark.json b/test/fixtures/tree/paragraphs-and-indentation.nogfm.commonmark.json deleted file mode 100644 index b160aad1a..000000000 --- a/test/fixtures/tree/paragraphs-and-indentation.nogfm.commonmark.json +++ /dev/null @@ -1,556 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Without lines.", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 17, - "offset": 16 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 17, - "offset": 16 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This is a paragraph\n and this is further text", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 18 - }, - "end": { - "line": 4, - "column": 29, - "offset": 66 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 18 - }, - "end": { - "line": 4, - "column": 29, - "offset": 66 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This is a paragraph\n and this is further text", - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 68 - }, - "end": { - "line": 7, - "column": 28, - "offset": 115 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 68 - }, - "end": { - "line": 7, - "column": 28, - "offset": 115 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This is a paragraph", - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 117 - }, - "end": { - "line": 9, - "column": 20, - "offset": 136 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 117 - }, - "end": { - "line": 9, - "column": 20, - "offset": 136 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "and this is a new paragraph", - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 142 - }, - "end": { - "line": 11, - "column": 28, - "offset": 169 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 142 - }, - "end": { - "line": 11, - "column": 28, - "offset": 169 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This is a paragraph with some asterisks\n ***", - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 171 - }, - "end": { - "line": 14, - "column": 8, - "offset": 218 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 171 - }, - "end": { - "line": 14, - "column": 8, - "offset": 218 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This is a paragraph followed by a horizontal rule", - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 220 - }, - "end": { - "line": 16, - "column": 50, - "offset": 269 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 220 - }, - "end": { - "line": 16, - "column": 50, - "offset": 269 - }, - "indent": [] - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 270 - }, - "end": { - "line": 17, - "column": 7, - "offset": 276 - }, - "indent": [] - } - }, - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "With lines.", - "position": { - "start": { - "line": 19, - "column": 3, - "offset": 280 - }, - "end": { - "line": 19, - "column": 14, - "offset": 291 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 278 - }, - "end": { - "line": 19, - "column": 14, - "offset": 291 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This is a paragraph", - "position": { - "start": { - "line": 21, - "column": 1, - "offset": 293 - }, - "end": { - "line": 21, - "column": 20, - "offset": 312 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 1, - "offset": 293 - }, - "end": { - "line": 21, - "column": 20, - "offset": 312 - }, - "indent": [] - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "and this is code", - "position": { - "start": { - "line": 23, - "column": 1, - "offset": 314 - }, - "end": { - "line": 23, - "column": 21, - "offset": 334 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This is a paragraph", - "position": { - "start": { - "line": 25, - "column": 1, - "offset": 336 - }, - "end": { - "line": 25, - "column": 20, - "offset": 355 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 25, - "column": 1, - "offset": 336 - }, - "end": { - "line": 25, - "column": 20, - "offset": 355 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": " and this is a new paragraph", - "position": { - "start": { - "line": 27, - "column": 1, - "offset": 357 - }, - "end": { - "line": 27, - "column": 31, - "offset": 387 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 27, - "column": 1, - "offset": 357 - }, - "end": { - "line": 27, - "column": 31, - "offset": 387 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This is a paragraph with some asterisks in a code block", - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 389 - }, - "end": { - "line": 29, - "column": 56, - "offset": 444 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 389 - }, - "end": { - "line": 29, - "column": 56, - "offset": 444 - }, - "indent": [] - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "***", - "position": { - "start": { - "line": 31, - "column": 1, - "offset": 446 - }, - "end": { - "line": 31, - "column": 8, - "offset": 453 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This is a paragraph followed by a horizontal rule", - "position": { - "start": { - "line": 33, - "column": 1, - "offset": 455 - }, - "end": { - "line": 33, - "column": 50, - "offset": 504 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 33, - "column": 1, - "offset": 455 - }, - "end": { - "line": 33, - "column": 50, - "offset": 504 - }, - "indent": [] - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 35, - "column": 1, - "offset": 506 - }, - "end": { - "line": 35, - "column": 7, - "offset": 512 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 37, - "column": 1, - "offset": 514 - } - } -} diff --git a/test/fixtures/tree/paragraphs-and-indentation.nogfm.json b/test/fixtures/tree/paragraphs-and-indentation.nogfm.json deleted file mode 100644 index 2f40b460f..000000000 --- a/test/fixtures/tree/paragraphs-and-indentation.nogfm.json +++ /dev/null @@ -1,571 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Without lines.", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 17, - "offset": 16 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 17, - "offset": 16 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This is a paragraph\n and this is further text", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 18 - }, - "end": { - "line": 4, - "column": 29, - "offset": 66 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 18 - }, - "end": { - "line": 4, - "column": 29, - "offset": 66 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This is a paragraph\n and this is further text", - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 68 - }, - "end": { - "line": 7, - "column": 28, - "offset": 115 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 68 - }, - "end": { - "line": 7, - "column": 28, - "offset": 115 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This is a paragraph", - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 117 - }, - "end": { - "line": 9, - "column": 20, - "offset": 136 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 117 - }, - "end": { - "line": 9, - "column": 20, - "offset": 136 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "and this is a new paragraph", - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 142 - }, - "end": { - "line": 11, - "column": 28, - "offset": 169 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 142 - }, - "end": { - "line": 11, - "column": 28, - "offset": 169 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This is a paragraph with some asterisks", - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 171 - }, - "end": { - "line": 13, - "column": 40, - "offset": 210 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 171 - }, - "end": { - "line": 13, - "column": 40, - "offset": 210 - }, - "indent": [] - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "***", - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 211 - }, - "end": { - "line": 14, - "column": 8, - "offset": 218 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This is a paragraph followed by a horizontal rule", - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 220 - }, - "end": { - "line": 16, - "column": 50, - "offset": 269 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 220 - }, - "end": { - "line": 16, - "column": 50, - "offset": 269 - }, - "indent": [] - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 270 - }, - "end": { - "line": 17, - "column": 7, - "offset": 276 - }, - "indent": [] - } - }, - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "With lines.", - "position": { - "start": { - "line": 19, - "column": 3, - "offset": 280 - }, - "end": { - "line": 19, - "column": 14, - "offset": 291 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 278 - }, - "end": { - "line": 19, - "column": 14, - "offset": 291 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This is a paragraph", - "position": { - "start": { - "line": 21, - "column": 1, - "offset": 293 - }, - "end": { - "line": 21, - "column": 20, - "offset": 312 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 1, - "offset": 293 - }, - "end": { - "line": 21, - "column": 20, - "offset": 312 - }, - "indent": [] - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "and this is code", - "position": { - "start": { - "line": 23, - "column": 1, - "offset": 314 - }, - "end": { - "line": 23, - "column": 21, - "offset": 334 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This is a paragraph", - "position": { - "start": { - "line": 25, - "column": 1, - "offset": 336 - }, - "end": { - "line": 25, - "column": 20, - "offset": 355 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 25, - "column": 1, - "offset": 336 - }, - "end": { - "line": 25, - "column": 20, - "offset": 355 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": " and this is a new paragraph", - "position": { - "start": { - "line": 27, - "column": 1, - "offset": 357 - }, - "end": { - "line": 27, - "column": 31, - "offset": 387 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 27, - "column": 1, - "offset": 357 - }, - "end": { - "line": 27, - "column": 31, - "offset": 387 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This is a paragraph with some asterisks in a code block", - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 389 - }, - "end": { - "line": 29, - "column": 56, - "offset": 444 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 389 - }, - "end": { - "line": 29, - "column": 56, - "offset": 444 - }, - "indent": [] - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "***", - "position": { - "start": { - "line": 31, - "column": 1, - "offset": 446 - }, - "end": { - "line": 31, - "column": 8, - "offset": 453 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This is a paragraph followed by a horizontal rule", - "position": { - "start": { - "line": 33, - "column": 1, - "offset": 455 - }, - "end": { - "line": 33, - "column": 50, - "offset": 504 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 33, - "column": 1, - "offset": 455 - }, - "end": { - "line": 33, - "column": 50, - "offset": 504 - }, - "indent": [] - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 35, - "column": 1, - "offset": 506 - }, - "end": { - "line": 35, - "column": 7, - "offset": 512 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 37, - "column": 1, - "offset": 514 - } - } -} diff --git a/test/fixtures/tree/paragraphs-empty.json b/test/fixtures/tree/paragraphs-empty.json index 1a30e83c5..65a953cd5 100644 --- a/test/fixtures/tree/paragraphs-empty.json +++ b/test/fixtures/tree/paragraphs-empty.json @@ -17,8 +17,7 @@ "line": 3, "column": 4, "offset": 7 - }, - "indent": [] + } } } ], @@ -32,8 +31,7 @@ "line": 3, "column": 4, "offset": 7 - }, - "indent": [] + } } }, { @@ -53,8 +51,7 @@ "line": 6, "column": 6, "offset": 17 - }, - "indent": [] + } } } ], @@ -68,8 +65,7 @@ "line": 6, "column": 6, "offset": 17 - }, - "indent": [] + } } }, { @@ -88,8 +84,7 @@ "line": 10, "column": 4, "offset": 26 - }, - "indent": [] + } } } ], @@ -103,8 +98,7 @@ "line": 10, "column": 4, "offset": 26 - }, - "indent": [] + } } }, { @@ -123,8 +117,7 @@ "line": 12, "column": 4, "offset": 33 - }, - "indent": [] + } } } ], @@ -138,8 +131,7 @@ "line": 12, "column": 4, "offset": 33 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/ref-paren.json b/test/fixtures/tree/ref-paren.json index c60f99e80..17dd82f9f 100644 --- a/test/fixtures/tree/ref-paren.json +++ b/test/fixtures/tree/ref-paren.json @@ -6,9 +6,6 @@ "children": [ { "type": "linkReference", - "identifier": "hi", - "label": "hi", - "referenceType": "shortcut", "children": [ { "type": "text", @@ -23,8 +20,7 @@ "line": 1, "column": 4, "offset": 3 - }, - "indent": [] + } } } ], @@ -38,9 +34,11 @@ "line": 1, "column": 5, "offset": 4 - }, - "indent": [] - } + } + }, + "identifier": "hi", + "label": "hi", + "referenceType": "shortcut" } ], "position": { @@ -53,8 +51,7 @@ "line": 1, "column": 5, "offset": 4 - }, - "indent": [] + } } }, { @@ -73,8 +70,7 @@ "line": 3, "column": 19, "offset": 24 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/reference-image-empty-alt.json b/test/fixtures/tree/reference-image-empty-alt.json index 1902a606e..42203b59a 100644 --- a/test/fixtures/tree/reference-image-empty-alt.json +++ b/test/fixtures/tree/reference-image-empty-alt.json @@ -6,10 +6,7 @@ "children": [ { "type": "imageReference", - "identifier": "1", - "label": "1", - "referenceType": "full", - "alt": null, + "alt": "", "position": { "start": { "line": 1, @@ -20,9 +17,11 @@ "line": 1, "column": 7, "offset": 6 - }, - "indent": [] - } + } + }, + "identifier": "1", + "label": "1", + "referenceType": "full" } ], "position": { @@ -35,8 +34,7 @@ "line": 1, "column": 7, "offset": 6 - }, - "indent": [] + } } }, { @@ -55,8 +53,7 @@ "line": 3, "column": 14, "offset": 21 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/reference-link-escape.nooutput.json b/test/fixtures/tree/reference-link-escape.nooutput.json index fa1a411c3..0927037f0 100644 --- a/test/fixtures/tree/reference-link-escape.nooutput.json +++ b/test/fixtures/tree/reference-link-escape.nooutput.json @@ -6,13 +6,10 @@ "children": [ { "type": "linkReference", - "identifier": "b\\-r", - "label": "b\\-r", - "referenceType": "full", "children": [ { "type": "text", - "value": "b", + "value": "a", "position": { "start": { "line": 1, @@ -23,42 +20,7 @@ "line": 1, "column": 3, "offset": 2 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "*", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 5, - "offset": 4 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "r*", - "position": { - "start": { - "line": 1, - "column": 5, - "offset": 4 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] + } } } ], @@ -70,11 +32,13 @@ }, "end": { "line": 1, - "column": 14, - "offset": 13 - }, - "indent": [] - } + "column": 11, + "offset": 10 + } + }, + "identifier": "b\\*r*", + "label": "b*r*", + "referenceType": "full" }, { "type": "text", @@ -82,88 +46,51 @@ "position": { "start": { "line": 1, - "column": 14, - "offset": 13 + "column": 11, + "offset": 10 }, "end": { "line": 1, - "column": 16, - "offset": 15 - }, - "indent": [] + "column": 13, + "offset": 12 + } } }, { "type": "linkReference", - "identifier": "b\\*r*", - "label": "b\\*r*", - "referenceType": "collapsed", "children": [ { "type": "text", - "value": "b", - "position": { - "start": { - "line": 1, - "column": 17, - "offset": 16 - }, - "end": { - "line": 1, - "column": 18, - "offset": 17 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "*", + "value": "b*r*", "position": { "start": { "line": 1, - "column": 18, - "offset": 17 + "column": 14, + "offset": 13 }, "end": { "line": 1, - "column": 20, - "offset": 19 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "r*", - "position": { - "start": { - "line": 1, - "column": 20, - "offset": 19 - }, - "end": { - "line": 1, - "column": 22, - "offset": 21 - }, - "indent": [] + "column": 19, + "offset": 18 + } } } ], "position": { "start": { "line": 1, - "column": 16, - "offset": 15 + "column": 13, + "offset": 12 }, "end": { "line": 1, - "column": 25, - "offset": 24 - }, - "indent": [] - } + "column": 22, + "offset": 21 + } + }, + "identifier": "b\\*r*", + "label": "b*r*", + "referenceType": "collapsed" }, { "type": "text", @@ -171,88 +98,51 @@ "position": { "start": { "line": 1, - "column": 25, - "offset": 24 + "column": 22, + "offset": 21 }, "end": { "line": 1, - "column": 27, - "offset": 26 - }, - "indent": [] + "column": 24, + "offset": 23 + } } }, { "type": "linkReference", - "identifier": "b\\*r*", - "label": "b\\*r*", - "referenceType": "shortcut", "children": [ { "type": "text", - "value": "b", - "position": { - "start": { - "line": 1, - "column": 28, - "offset": 27 - }, - "end": { - "line": 1, - "column": 29, - "offset": 28 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "*", + "value": "b*r*", "position": { "start": { "line": 1, - "column": 29, - "offset": 28 + "column": 25, + "offset": 24 }, "end": { "line": 1, - "column": 31, - "offset": 30 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "r*", - "position": { - "start": { - "line": 1, - "column": 31, - "offset": 30 - }, - "end": { - "line": 1, - "column": 33, - "offset": 32 - }, - "indent": [] + "column": 30, + "offset": 29 + } } } ], "position": { "start": { "line": 1, - "column": 27, - "offset": 26 + "column": 24, + "offset": 23 }, "end": { "line": 1, - "column": 34, - "offset": 33 - }, - "indent": [] - } + "column": 31, + "offset": 30 + } + }, + "identifier": "b\\*r*", + "label": "b*r*", + "referenceType": "shortcut" }, { "type": "text", @@ -260,15 +150,14 @@ "position": { "start": { "line": 1, - "column": 34, - "offset": 33 + "column": 31, + "offset": 30 }, "end": { "line": 1, - "column": 35, - "offset": 34 - }, - "indent": [] + "column": 32, + "offset": 31 + } } } ], @@ -280,10 +169,9 @@ }, "end": { "line": 1, - "column": 35, - "offset": 34 - }, - "indent": [] + "column": 32, + "offset": 31 + } } }, { @@ -291,23 +179,22 @@ "children": [ { "type": "imageReference", - "identifier": "b\\*r*", - "label": "b\\*r*", - "referenceType": "full", "alt": "foo", "position": { "start": { "line": 3, "column": 1, - "offset": 36 + "offset": 33 }, "end": { "line": 3, "column": 14, - "offset": 49 - }, - "indent": [] - } + "offset": 46 + } + }, + "identifier": "b\\*r*", + "label": "b*r*", + "referenceType": "full" }, { "type": "text", @@ -316,35 +203,33 @@ "start": { "line": 3, "column": 14, - "offset": 49 + "offset": 46 }, "end": { "line": 3, "column": 16, - "offset": 51 - }, - "indent": [] + "offset": 48 + } } }, { "type": "imageReference", - "identifier": "b\\*r*", - "label": "b\\*r*", - "referenceType": "collapsed", "alt": "b*r*", "position": { "start": { "line": 3, "column": 16, - "offset": 51 + "offset": 48 }, "end": { "line": 3, "column": 26, - "offset": 61 - }, - "indent": [] - } + "offset": 58 + } + }, + "identifier": "b\\*r*", + "label": "b*r*", + "referenceType": "collapsed" }, { "type": "text", @@ -353,35 +238,33 @@ "start": { "line": 3, "column": 26, - "offset": 61 + "offset": 58 }, "end": { "line": 3, "column": 28, - "offset": 63 - }, - "indent": [] + "offset": 60 + } } }, { "type": "imageReference", - "identifier": "b\\*r*", - "label": "b\\*r*", - "referenceType": "shortcut", "alt": "b*r*", "position": { "start": { "line": 3, "column": 28, - "offset": 63 + "offset": 60 }, "end": { "line": 3, "column": 36, - "offset": 71 - }, - "indent": [] - } + "offset": 68 + } + }, + "identifier": "b\\*r*", + "label": "b*r*", + "referenceType": "shortcut" }, { "type": "text", @@ -390,14 +273,13 @@ "start": { "line": 3, "column": 36, - "offset": 71 + "offset": 68 }, "end": { "line": 3, "column": 37, - "offset": 72 - }, - "indent": [] + "offset": 69 + } } } ], @@ -405,34 +287,32 @@ "start": { "line": 3, "column": 1, - "offset": 36 + "offset": 33 }, "end": { "line": 3, "column": 37, - "offset": 72 - }, - "indent": [] + "offset": 69 + } } }, { "type": "definition", "identifier": "b\\*r*", - "label": "b\\*r*", + "label": "b*r*", "title": null, "url": "http://google.com", "position": { "start": { "line": 5, "column": 1, - "offset": 74 + "offset": 71 }, "end": { "line": 5, "column": 27, - "offset": 100 - }, - "indent": [] + "offset": 97 + } } } ], @@ -445,7 +325,7 @@ "end": { "line": 6, "column": 1, - "offset": 101 + "offset": 98 } } } diff --git a/test/fixtures/tree/reference-link-not-closed.json b/test/fixtures/tree/reference-link-not-closed.json index 4f6f09d13..e1e3392a0 100644 --- a/test/fixtures/tree/reference-link-not-closed.json +++ b/test/fixtures/tree/reference-link-not-closed.json @@ -5,58 +5,19 @@ "type": "paragraph", "children": [ { - "type": "linkReference", - "identifier": "bar", - "label": "bar", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "bar", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 5, - "offset": 4 - }, - "indent": [] - } - } - ], + "type": "text", + "value": "[bar][bar", "position": { "start": { "line": 1, "column": 1, "offset": 0 }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "bar", - "position": { - "start": { - "line": 1, - "column": 7, - "offset": 6 - }, "end": { "line": 1, "column": 10, "offset": 9 - }, - "indent": [] + } } } ], @@ -70,37 +31,15 @@ "line": 1, "column": 10, "offset": 9 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "linkReference", - "identifier": "bar", - "label": "bar", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "bar", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 12 - }, - "end": { - "line": 3, - "column": 5, - "offset": 15 - }, - "indent": [] - } - } - ], + "type": "text", + "value": "[bar][", "position": { "start": { "line": 3, @@ -111,8 +50,7 @@ "line": 3, "column": 7, "offset": 17 - }, - "indent": [] + } } } ], @@ -126,37 +64,15 @@ "line": 3, "column": 7, "offset": 17 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "linkReference", - "identifier": "bar", - "label": "bar", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "bar", - "position": { - "start": { - "line": 5, - "column": 2, - "offset": 20 - }, - "end": { - "line": 5, - "column": 5, - "offset": 23 - }, - "indent": [] - } - } - ], + "type": "text", + "value": "[bar]", "position": { "start": { "line": 5, @@ -167,8 +83,7 @@ "line": 5, "column": 6, "offset": 24 - }, - "indent": [] + } } } ], @@ -182,8 +97,7 @@ "line": 5, "column": 6, "offset": 24 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/reference-link-with-angle-brackets.json b/test/fixtures/tree/reference-link-with-angle-brackets.json index d66294db6..0129c231f 100644 --- a/test/fixtures/tree/reference-link-with-angle-brackets.json +++ b/test/fixtures/tree/reference-link-with-angle-brackets.json @@ -6,9 +6,6 @@ "children": [ { "type": "linkReference", - "identifier": "foo", - "label": "foo", - "referenceType": "shortcut", "children": [ { "type": "text", @@ -23,8 +20,7 @@ "line": 1, "column": 5, "offset": 4 - }, - "indent": [] + } } } ], @@ -38,9 +34,11 @@ "line": 1, "column": 6, "offset": 5 - }, - "indent": [] - } + } + }, + "identifier": "foo", + "label": "foo", + "referenceType": "shortcut" } ], "position": { @@ -53,8 +51,7 @@ "line": 1, "column": 6, "offset": 5 - }, - "indent": [] + } } }, { @@ -73,8 +70,7 @@ "line": 3, "column": 27, "offset": 33 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/reference-link-with-multiple-definitions.json b/test/fixtures/tree/reference-link-with-multiple-definitions.json index 9c64fc6fe..9e804f6e0 100644 --- a/test/fixtures/tree/reference-link-with-multiple-definitions.json +++ b/test/fixtures/tree/reference-link-with-multiple-definitions.json @@ -6,9 +6,6 @@ "children": [ { "type": "linkReference", - "identifier": "foo", - "label": "foo", - "referenceType": "shortcut", "children": [ { "type": "text", @@ -23,8 +20,7 @@ "line": 1, "column": 5, "offset": 4 - }, - "indent": [] + } } } ], @@ -38,9 +34,11 @@ "line": 1, "column": 6, "offset": 5 - }, - "indent": [] - } + } + }, + "identifier": "foo", + "label": "foo", + "referenceType": "shortcut" } ], "position": { @@ -53,8 +51,7 @@ "line": 1, "column": 6, "offset": 5 - }, - "indent": [] + } } }, { @@ -73,8 +70,7 @@ "line": 3, "column": 13, "offset": 19 - }, - "indent": [] + } } }, { @@ -93,8 +89,7 @@ "line": 4, "column": 14, "offset": 33 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/remarkjs-remark-lint-gh-111.json b/test/fixtures/tree/remarkjs-remark-lint-gh-111.json new file mode 100644 index 000000000..5410cdb0a --- /dev/null +++ b/test/fixtures/tree/remarkjs-remark-lint-gh-111.json @@ -0,0 +1,280 @@ +{ + "type": "root", + "children": [ + { + "type": "list", + "ordered": true, + "start": 1, + "spread": false, + "children": [ + { + "type": "listItem", + "spread": false, + "checked": null, + "children": [ + { + "type": "paragraph", + "children": [ + { + "type": "strong", + "children": [ + { + "type": "text", + "value": "Fork", + "position": { + "start": { + "line": 1, + "column": 6, + "offset": 5 + }, + "end": { + "line": 1, + "column": 10, + "offset": 9 + } + } + } + ], + "position": { + "start": { + "line": 1, + "column": 4, + "offset": 3 + }, + "end": { + "line": 1, + "column": 12, + "offset": 11 + } + } + } + ], + "position": { + "start": { + "line": 1, + "column": 4, + "offset": 3 + }, + "end": { + "line": 1, + "column": 12, + "offset": 11 + } + } + } + ], + "position": { + "start": { + "line": 1, + "column": 1, + "offset": 0 + }, + "end": { + "line": 1, + "column": 12, + "offset": 11 + } + } + }, + { + "type": "listItem", + "spread": true, + "checked": null, + "children": [ + { + "type": "paragraph", + "children": [ + { + "type": "strong", + "children": [ + { + "type": "text", + "value": "Clone", + "position": { + "start": { + "line": 2, + "column": 6, + "offset": 17 + }, + "end": { + "line": 2, + "column": 11, + "offset": 22 + } + } + } + ], + "position": { + "start": { + "line": 2, + "column": 4, + "offset": 15 + }, + "end": { + "line": 2, + "column": 13, + "offset": 24 + } + } + } + ], + "position": { + "start": { + "line": 2, + "column": 4, + "offset": 15 + }, + "end": { + "line": 2, + "column": 13, + "offset": 24 + } + } + }, + { + "type": "code", + "lang": null, + "meta": null, + "value": " git clone ", + "position": { + "start": { + "line": 4, + "column": 4, + "offset": 29 + }, + "end": { + "line": 4, + "column": 29, + "offset": 54 + } + } + } + ], + "position": { + "start": { + "line": 2, + "column": 1, + "offset": 12 + }, + "end": { + "line": 4, + "column": 29, + "offset": 54 + } + } + }, + { + "type": "listItem", + "spread": true, + "checked": null, + "children": [ + { + "type": "paragraph", + "children": [ + { + "type": "strong", + "children": [ + { + "type": "text", + "value": "Configure remotes", + "position": { + "start": { + "line": 5, + "column": 6, + "offset": 60 + }, + "end": { + "line": 5, + "column": 23, + "offset": 77 + } + } + } + ], + "position": { + "start": { + "line": 5, + "column": 4, + "offset": 58 + }, + "end": { + "line": 5, + "column": 25, + "offset": 79 + } + } + } + ], + "position": { + "start": { + "line": 5, + "column": 4, + "offset": 58 + }, + "end": { + "line": 5, + "column": 25, + "offset": 79 + } + } + }, + { + "type": "code", + "lang": null, + "meta": null, + "value": " cd \n git remote add upstream ", + "position": { + "start": { + "line": 7, + "column": 4, + "offset": 84 + }, + "end": { + "line": 8, + "column": 47, + "offset": 152 + } + } + } + ], + "position": { + "start": { + "line": 5, + "column": 1, + "offset": 55 + }, + "end": { + "line": 8, + "column": 47, + "offset": 152 + } + } + } + ], + "position": { + "start": { + "line": 1, + "column": 1, + "offset": 0 + }, + "end": { + "line": 8, + "column": 47, + "offset": 152 + } + } + } + ], + "position": { + "start": { + "line": 1, + "column": 1, + "offset": 0 + }, + "end": { + "line": 9, + "column": 1, + "offset": 153 + } + } +} diff --git a/test/fixtures/tree/same-bullet.nooutput.commonmark.json b/test/fixtures/tree/same-bullet.nooutput.commonmark.json deleted file mode 100644 index 9b3de8ba3..000000000 --- a/test/fixtures/tree/same-bullet.nooutput.commonmark.json +++ /dev/null @@ -1,245 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "test", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "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": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "test", - "position": { - "start": { - "line": 2, - "column": 3, - "offset": 9 - }, - "end": { - "line": 2, - "column": 7, - "offset": 13 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 2, - "column": 3, - "offset": 9 - }, - "end": { - "line": 2, - "column": 7, - "offset": 13 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 2, - "column": 1, - "offset": 7 - }, - "end": { - "line": 2, - "column": 7, - "offset": 13 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 2, - "column": 1, - "offset": 7 - }, - "end": { - "line": 2, - "column": 7, - "offset": 13 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "test", - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 16 - }, - "end": { - "line": 3, - "column": 7, - "offset": 20 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 16 - }, - "end": { - "line": 3, - "column": 7, - "offset": 20 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 14 - }, - "end": { - "line": 3, - "column": 7, - "offset": 20 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 14 - }, - "end": { - "line": 3, - "column": 7, - "offset": 20 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 4, - "column": 1, - "offset": 21 - } - } -} diff --git a/test/fixtures/tree/same-bullet.nooutput.json b/test/fixtures/tree/same-bullet.nooutput.json index 9b3de8ba3..17ec46ace 100644 --- a/test/fixtures/tree/same-bullet.nooutput.json +++ b/test/fixtures/tree/same-bullet.nooutput.json @@ -28,8 +28,7 @@ "line": 1, "column": 7, "offset": 6 - }, - "indent": [] + } } } ], @@ -43,8 +42,7 @@ "line": 1, "column": 7, "offset": 6 - }, - "indent": [] + } } } ], @@ -58,8 +56,7 @@ "line": 1, "column": 7, "offset": 6 - }, - "indent": [] + } } } ], @@ -73,8 +70,7 @@ "line": 1, "column": 7, "offset": 6 - }, - "indent": [] + } } }, { @@ -104,8 +100,7 @@ "line": 2, "column": 7, "offset": 13 - }, - "indent": [] + } } } ], @@ -119,8 +114,7 @@ "line": 2, "column": 7, "offset": 13 - }, - "indent": [] + } } } ], @@ -134,8 +128,7 @@ "line": 2, "column": 7, "offset": 13 - }, - "indent": [] + } } } ], @@ -149,8 +142,7 @@ "line": 2, "column": 7, "offset": 13 - }, - "indent": [] + } } }, { @@ -180,8 +172,7 @@ "line": 3, "column": 7, "offset": 20 - }, - "indent": [] + } } } ], @@ -195,8 +186,7 @@ "line": 3, "column": 7, "offset": 20 - }, - "indent": [] + } } } ], @@ -210,8 +200,7 @@ "line": 3, "column": 7, "offset": 20 - }, - "indent": [] + } } } ], @@ -225,8 +214,7 @@ "line": 3, "column": 7, "offset": 20 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/stringify-escape.commonmark.json b/test/fixtures/tree/stringify-escape.commonmark.json deleted file mode 100644 index 79f584c93..000000000 --- a/test/fixtures/tree/stringify-escape.commonmark.json +++ /dev/null @@ -1,3848 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Characters that should be escaped in general:", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 46, - "offset": 45 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 46, - "offset": 45 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "\\", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 47 - }, - "end": { - "line": 3, - "column": 3, - "offset": 49 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 49 - }, - "end": { - "line": 3, - "column": 4, - "offset": 50 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "`", - "position": { - "start": { - "line": 3, - "column": 4, - "offset": 50 - }, - "end": { - "line": 3, - "column": 6, - "offset": 52 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 3, - "column": 6, - "offset": 52 - }, - "end": { - "line": 3, - "column": 7, - "offset": 53 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "*", - "position": { - "start": { - "line": 3, - "column": 7, - "offset": 53 - }, - "end": { - "line": 3, - "column": 9, - "offset": 55 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 3, - "column": 9, - "offset": 55 - }, - "end": { - "line": 3, - "column": 10, - "offset": 56 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "[", - "position": { - "start": { - "line": 3, - "column": 10, - "offset": 56 - }, - "end": { - "line": 3, - "column": 12, - "offset": 58 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 47 - }, - "end": { - "line": 3, - "column": 12, - "offset": 58 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Characters that shouldn't:", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 60 - }, - "end": { - "line": 5, - "column": 27, - "offset": 86 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 60 - }, - "end": { - "line": 5, - "column": 27, - "offset": 86 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "{}]()#+-.!>\"$%',/:;=?@^~", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 88 - }, - "end": { - "line": 7, - "column": 25, - "offset": 112 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 88 - }, - "end": { - "line": 7, - "column": 25, - "offset": 112 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Underscores are ", - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 114 - }, - "end": { - "line": 9, - "column": 17, - "offset": 130 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "_", - "position": { - "start": { - "line": 9, - "column": 17, - "offset": 130 - }, - "end": { - "line": 9, - "column": 19, - "offset": 132 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "escaped", - "position": { - "start": { - "line": 9, - "column": 19, - "offset": 132 - }, - "end": { - "line": 9, - "column": 26, - "offset": 139 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "_", - "position": { - "start": { - "line": 9, - "column": 26, - "offset": 139 - }, - "end": { - "line": 9, - "column": 28, - "offset": 141 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " unless they appear in_the_middle_of_a_word.\nor ", - "position": { - "start": { - "line": 9, - "column": 28, - "offset": 141 - }, - "end": { - "line": 10, - "column": 4, - "offset": 189 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "_here", - "position": { - "start": { - "line": 10, - "column": 6, - "offset": 191 - }, - "end": { - "line": 10, - "column": 11, - "offset": 196 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 10, - "column": 4, - "offset": 189 - }, - "end": { - "line": 10, - "column": 13, - "offset": 198 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ", or here__", - "position": { - "start": { - "line": 10, - "column": 13, - "offset": 198 - }, - "end": { - "line": 10, - "column": 24, - "offset": 209 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 114 - }, - "end": { - "line": 10, - "column": 24, - "offset": 209 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Ampersands are escaped only when they would otherwise start an entity:", - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 211 - }, - "end": { - "line": 12, - "column": 71, - "offset": 281 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 211 - }, - "end": { - "line": 12, - "column": 71, - "offset": 281 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "&", - "position": { - "start": { - "line": 14, - "column": 5, - "offset": 287 - }, - "end": { - "line": 14, - "column": 7, - "offset": 289 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "copycat ", - "position": { - "start": { - "line": 14, - "column": 7, - "offset": 289 - }, - "end": { - "line": 14, - "column": 15, - "offset": 297 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "&", - "position": { - "start": { - "line": 14, - "column": 15, - "offset": 297 - }, - "end": { - "line": 14, - "column": 17, - "offset": 299 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "amp; ", - "position": { - "start": { - "line": 14, - "column": 17, - "offset": 299 - }, - "end": { - "line": 14, - "column": 22, - "offset": 304 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "&", - "position": { - "start": { - "line": 14, - "column": 22, - "offset": 304 - }, - "end": { - "line": 14, - "column": 24, - "offset": 306 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "#x26", - "position": { - "start": { - "line": 14, - "column": 24, - "offset": 306 - }, - "end": { - "line": 14, - "column": 28, - "offset": 310 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 5, - "offset": 287 - }, - "end": { - "line": 14, - "column": 28, - "offset": 310 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 283 - }, - "end": { - "line": 14, - "column": 28, - "offset": 310 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "&", - "position": { - "start": { - "line": 15, - "column": 5, - "offset": 315 - }, - "end": { - "line": 15, - "column": 10, - "offset": 320 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "copycat ", - "position": { - "start": { - "line": 15, - "column": 10, - "offset": 320 - }, - "end": { - "line": 15, - "column": 18, - "offset": 328 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "&", - "position": { - "start": { - "line": 15, - "column": 18, - "offset": 328 - }, - "end": { - "line": 15, - "column": 23, - "offset": 333 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "amp; ", - "position": { - "start": { - "line": 15, - "column": 23, - "offset": 333 - }, - "end": { - "line": 15, - "column": 28, - "offset": 338 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "&", - "position": { - "start": { - "line": 15, - "column": 28, - "offset": 338 - }, - "end": { - "line": 15, - "column": 33, - "offset": 343 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "#x26", - "position": { - "start": { - "line": 15, - "column": 33, - "offset": 343 - }, - "end": { - "line": 15, - "column": 37, - "offset": 347 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 5, - "offset": 315 - }, - "end": { - "line": 15, - "column": 37, - "offset": 347 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 311 - }, - "end": { - "line": 15, - "column": 37, - "offset": 347 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "But: ©cat; ", - "position": { - "start": { - "line": 16, - "column": 5, - "offset": 352 - }, - "end": { - "line": 16, - "column": 16, - "offset": 363 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "≬", - "position": { - "start": { - "line": 16, - "column": 16, - "offset": 363 - }, - "end": { - "line": 16, - "column": 27, - "offset": 374 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " &foo; & AT&T &c", - "position": { - "start": { - "line": 16, - "column": 27, - "offset": 374 - }, - "end": { - "line": 16, - "column": 43, - "offset": 390 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 5, - "offset": 352 - }, - "end": { - "line": 16, - "column": 43, - "offset": 390 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 348 - }, - "end": { - "line": 16, - "column": 43, - "offset": 390 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 283 - }, - "end": { - "line": 16, - "column": 43, - "offset": 390 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Open parenthesis should be escaped after a shortcut reference:", - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 392 - }, - "end": { - "line": 18, - "column": 63, - "offset": 454 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 392 - }, - "end": { - "line": 18, - "column": 63, - "offset": 454 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "ref", - "label": "ref", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "ref", - "position": { - "start": { - "line": 20, - "column": 2, - "offset": 457 - }, - "end": { - "line": 20, - "column": 5, - "offset": 460 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 1, - "offset": 456 - }, - "end": { - "line": 20, - "column": 6, - "offset": 461 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(", - "position": { - "start": { - "line": 20, - "column": 6, - "offset": 461 - }, - "end": { - "line": 20, - "column": 8, - "offset": 463 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "text)", - "position": { - "start": { - "line": 20, - "column": 8, - "offset": 463 - }, - "end": { - "line": 20, - "column": 13, - "offset": 468 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 1, - "offset": 456 - }, - "end": { - "line": 20, - "column": 13, - "offset": 468 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And after a shortcut reference and a space (for GitHub):", - "position": { - "start": { - "line": 22, - "column": 1, - "offset": 470 - }, - "end": { - "line": 22, - "column": 57, - "offset": 526 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 22, - "column": 1, - "offset": 470 - }, - "end": { - "line": 22, - "column": 57, - "offset": 526 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "ref", - "label": "ref", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "ref", - "position": { - "start": { - "line": 24, - "column": 2, - "offset": 529 - }, - "end": { - "line": 24, - "column": 5, - "offset": 532 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 24, - "column": 1, - "offset": 528 - }, - "end": { - "line": 24, - "column": 6, - "offset": 533 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 24, - "column": 6, - "offset": 533 - }, - "end": { - "line": 24, - "column": 7, - "offset": 534 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(", - "position": { - "start": { - "line": 24, - "column": 7, - "offset": 534 - }, - "end": { - "line": 24, - "column": 9, - "offset": 536 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "text)", - "position": { - "start": { - "line": 24, - "column": 9, - "offset": 536 - }, - "end": { - "line": 24, - "column": 14, - "offset": 541 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 24, - "column": 1, - "offset": 528 - }, - "end": { - "line": 24, - "column": 14, - "offset": 541 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hyphen should be escaped at the beginning of a line:", - "position": { - "start": { - "line": 26, - "column": 1, - "offset": 543 - }, - "end": { - "line": 26, - "column": 53, - "offset": 595 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 26, - "column": 1, - "offset": 543 - }, - "end": { - "line": 26, - "column": 53, - "offset": 595 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "-", - "position": { - "start": { - "line": 28, - "column": 1, - "offset": 597 - }, - "end": { - "line": 28, - "column": 3, - "offset": 599 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " not a list item\n", - "position": { - "start": { - "line": 28, - "column": 3, - "offset": 599 - }, - "end": { - "line": 29, - "column": 1, - "offset": 616 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "-", - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 616 - }, - "end": { - "line": 29, - "column": 3, - "offset": 618 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " not a list item\n ", - "position": { - "start": { - "line": 29, - "column": 3, - "offset": 618 - }, - "end": { - "line": 30, - "column": 3, - "offset": 637 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "+", - "position": { - "start": { - "line": 30, - "column": 3, - "offset": 637 - }, - "end": { - "line": 30, - "column": 5, - "offset": 639 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " not a list item", - "position": { - "start": { - "line": 30, - "column": 5, - "offset": 639 - }, - "end": { - "line": 30, - "column": 21, - "offset": 655 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 28, - "column": 1, - "offset": 597 - }, - "end": { - "line": 30, - "column": 21, - "offset": 655 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Same for angle brackets:", - "position": { - "start": { - "line": 32, - "column": 1, - "offset": 657 - }, - "end": { - "line": 32, - "column": 25, - "offset": 681 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 32, - "column": 1, - "offset": 657 - }, - "end": { - "line": 32, - "column": 25, - "offset": 681 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": ">", - "position": { - "start": { - "line": 34, - "column": 1, - "offset": 683 - }, - "end": { - "line": 34, - "column": 3, - "offset": 685 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " not a block quote", - "position": { - "start": { - "line": 34, - "column": 3, - "offset": 685 - }, - "end": { - "line": 34, - "column": 21, - "offset": 703 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 34, - "column": 1, - "offset": 683 - }, - "end": { - "line": 34, - "column": 21, - "offset": 703 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And hash signs:", - "position": { - "start": { - "line": 36, - "column": 1, - "offset": 705 - }, - "end": { - "line": 36, - "column": 16, - "offset": 720 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 36, - "column": 1, - "offset": 705 - }, - "end": { - "line": 36, - "column": 16, - "offset": 720 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "#", - "position": { - "start": { - "line": 38, - "column": 1, - "offset": 722 - }, - "end": { - "line": 38, - "column": 3, - "offset": 724 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " not a heading\n ", - "position": { - "start": { - "line": 38, - "column": 3, - "offset": 724 - }, - "end": { - "line": 39, - "column": 3, - "offset": 741 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "#", - "position": { - "start": { - "line": 39, - "column": 3, - "offset": 741 - }, - "end": { - "line": 39, - "column": 5, - "offset": 743 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "# not a subheading", - "position": { - "start": { - "line": 39, - "column": 5, - "offset": 743 - }, - "end": { - "line": 39, - "column": 23, - "offset": 761 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 38, - "column": 1, - "offset": 722 - }, - "end": { - "line": 39, - "column": 23, - "offset": 761 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Text under a shortcut reference should be preserved verbatim:", - "position": { - "start": { - "line": 41, - "column": 1, - "offset": 763 - }, - "end": { - "line": 41, - "column": 62, - "offset": 824 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 41, - "column": 1, - "offset": 763 - }, - "end": { - "line": 41, - "column": 62, - "offset": 824 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "two*three", - "label": "two*three", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "two*three", - "position": { - "start": { - "line": 43, - "column": 6, - "offset": 831 - }, - "end": { - "line": 43, - "column": 15, - "offset": 840 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 43, - "column": 5, - "offset": 830 - }, - "end": { - "line": 43, - "column": 16, - "offset": 841 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 43, - "column": 5, - "offset": 830 - }, - "end": { - "line": 43, - "column": 16, - "offset": 841 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 43, - "column": 1, - "offset": 826 - }, - "end": { - "line": 43, - "column": 16, - "offset": 841 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "two\\*three", - "label": "two\\*three", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "two", - "position": { - "start": { - "line": 44, - "column": 6, - "offset": 847 - }, - "end": { - "line": 44, - "column": 9, - "offset": 850 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "*", - "position": { - "start": { - "line": 44, - "column": 9, - "offset": 850 - }, - "end": { - "line": 44, - "column": 11, - "offset": 852 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "three", - "position": { - "start": { - "line": 44, - "column": 11, - "offset": 852 - }, - "end": { - "line": 44, - "column": 16, - "offset": 857 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 44, - "column": 5, - "offset": 846 - }, - "end": { - "line": 44, - "column": 17, - "offset": 858 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 44, - "column": 5, - "offset": 846 - }, - "end": { - "line": 44, - "column": 17, - "offset": 858 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 44, - "column": 1, - "offset": 842 - }, - "end": { - "line": 44, - "column": 17, - "offset": 858 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "a\\a", - "label": "a\\a", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "a\\a", - "position": { - "start": { - "line": 45, - "column": 6, - "offset": 864 - }, - "end": { - "line": 45, - "column": 9, - "offset": 867 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 45, - "column": 5, - "offset": 863 - }, - "end": { - "line": 45, - "column": 10, - "offset": 868 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 45, - "column": 5, - "offset": 863 - }, - "end": { - "line": 45, - "column": 10, - "offset": 868 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 45, - "column": 1, - "offset": 859 - }, - "end": { - "line": 45, - "column": 10, - "offset": 868 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "a\\\\a", - "label": "a\\\\a", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "a", - "position": { - "start": { - "line": 46, - "column": 6, - "offset": 874 - }, - "end": { - "line": 46, - "column": 7, - "offset": 875 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\\", - "position": { - "start": { - "line": 46, - "column": 7, - "offset": 875 - }, - "end": { - "line": 46, - "column": 9, - "offset": 877 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "a", - "position": { - "start": { - "line": 46, - "column": 9, - "offset": 877 - }, - "end": { - "line": 46, - "column": 10, - "offset": 878 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 46, - "column": 5, - "offset": 873 - }, - "end": { - "line": 46, - "column": 11, - "offset": 879 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 46, - "column": 5, - "offset": 873 - }, - "end": { - "line": 46, - "column": 11, - "offset": 879 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 46, - "column": 1, - "offset": 869 - }, - "end": { - "line": 46, - "column": 11, - "offset": 879 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "a\\\\\\a", - "label": "a\\\\\\a", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "a", - "position": { - "start": { - "line": 47, - "column": 6, - "offset": 885 - }, - "end": { - "line": 47, - "column": 7, - "offset": 886 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\\", - "position": { - "start": { - "line": 47, - "column": 7, - "offset": 886 - }, - "end": { - "line": 47, - "column": 9, - "offset": 888 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\\a", - "position": { - "start": { - "line": 47, - "column": 9, - "offset": 888 - }, - "end": { - "line": 47, - "column": 11, - "offset": 890 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 47, - "column": 5, - "offset": 884 - }, - "end": { - "line": 47, - "column": 12, - "offset": 891 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 47, - "column": 5, - "offset": 884 - }, - "end": { - "line": 47, - "column": 12, - "offset": 891 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 47, - "column": 1, - "offset": 880 - }, - "end": { - "line": 47, - "column": 12, - "offset": 891 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "a_a\\_a", - "label": "a_a\\_a", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "a_a", - "position": { - "start": { - "line": 48, - "column": 6, - "offset": 897 - }, - "end": { - "line": 48, - "column": 9, - "offset": 900 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "_", - "position": { - "start": { - "line": 48, - "column": 9, - "offset": 900 - }, - "end": { - "line": 48, - "column": 11, - "offset": 902 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "a", - "position": { - "start": { - "line": 48, - "column": 11, - "offset": 902 - }, - "end": { - "line": 48, - "column": 12, - "offset": 903 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 48, - "column": 5, - "offset": 896 - }, - "end": { - "line": 48, - "column": 13, - "offset": 904 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 48, - "column": 5, - "offset": 896 - }, - "end": { - "line": 48, - "column": 13, - "offset": 904 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 48, - "column": 1, - "offset": 892 - }, - "end": { - "line": 48, - "column": 13, - "offset": 904 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 43, - "column": 1, - "offset": 826 - }, - "end": { - "line": 48, - "column": 13, - "offset": 904 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "GFM:", - "position": { - "start": { - "line": 50, - "column": 3, - "offset": 908 - }, - "end": { - "line": 50, - "column": 7, - "offset": 912 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 50, - "column": 1, - "offset": 906 - }, - "end": { - "line": 50, - "column": 9, - "offset": 914 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 50, - "column": 1, - "offset": 906 - }, - "end": { - "line": 50, - "column": 9, - "offset": 914 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Colon should be escaped in URLs:", - "position": { - "start": { - "line": 52, - "column": 1, - "offset": 916 - }, - "end": { - "line": 52, - "column": 33, - "offset": 948 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 52, - "column": 1, - "offset": 916 - }, - "end": { - "line": 52, - "column": 33, - "offset": 948 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "http", - "position": { - "start": { - "line": 54, - "column": 5, - "offset": 954 - }, - "end": { - "line": 54, - "column": 9, - "offset": 958 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ":", - "position": { - "start": { - "line": 54, - "column": 9, - "offset": 958 - }, - "end": { - "line": 54, - "column": 11, - "offset": 960 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "//user:password@host:port/path?key=value#fragment", - "position": { - "start": { - "line": 54, - "column": 11, - "offset": 960 - }, - "end": { - "line": 54, - "column": 60, - "offset": 1009 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 54, - "column": 5, - "offset": 954 - }, - "end": { - "line": 54, - "column": 60, - "offset": 1009 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 54, - "column": 1, - "offset": 950 - }, - "end": { - "line": 54, - "column": 60, - "offset": 1009 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "https", - "position": { - "start": { - "line": 55, - "column": 5, - "offset": 1014 - }, - "end": { - "line": 55, - "column": 10, - "offset": 1019 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ":", - "position": { - "start": { - "line": 55, - "column": 10, - "offset": 1019 - }, - "end": { - "line": 55, - "column": 12, - "offset": 1021 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "//user:password@host:port/path?key=value#fragment", - "position": { - "start": { - "line": 55, - "column": 12, - "offset": 1021 - }, - "end": { - "line": 55, - "column": 61, - "offset": 1070 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 55, - "column": 5, - "offset": 1014 - }, - "end": { - "line": 55, - "column": 61, - "offset": 1070 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 55, - "column": 1, - "offset": 1010 - }, - "end": { - "line": 55, - "column": 61, - "offset": 1070 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "http", - "position": { - "start": { - "line": 56, - "column": 5, - "offset": 1075 - }, - "end": { - "line": 56, - "column": 9, - "offset": 1079 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ":", - "position": { - "start": { - "line": 56, - "column": 9, - "offset": 1079 - }, - "end": { - "line": 56, - "column": 16, - "offset": 1086 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "//user:password@host:port/path?key=value#fragment", - "position": { - "start": { - "line": 56, - "column": 16, - "offset": 1086 - }, - "end": { - "line": 56, - "column": 65, - "offset": 1135 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 56, - "column": 5, - "offset": 1075 - }, - "end": { - "line": 56, - "column": 65, - "offset": 1135 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 56, - "column": 1, - "offset": 1071 - }, - "end": { - "line": 56, - "column": 65, - "offset": 1135 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "https", - "position": { - "start": { - "line": 57, - "column": 5, - "offset": 1140 - }, - "end": { - "line": 57, - "column": 10, - "offset": 1145 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ":", - "position": { - "start": { - "line": 57, - "column": 10, - "offset": 1145 - }, - "end": { - "line": 57, - "column": 17, - "offset": 1152 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "//user:password@host:port/path?key=value#fragment", - "position": { - "start": { - "line": 57, - "column": 17, - "offset": 1152 - }, - "end": { - "line": 57, - "column": 66, - "offset": 1201 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 57, - "column": 5, - "offset": 1140 - }, - "end": { - "line": 57, - "column": 66, - "offset": 1201 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 57, - "column": 1, - "offset": 1136 - }, - "end": { - "line": 57, - "column": 66, - "offset": 1201 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 54, - "column": 1, - "offset": 950 - }, - "end": { - "line": 57, - "column": 66, - "offset": 1201 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Double tildes should be ", - "position": { - "start": { - "line": 59, - "column": 1, - "offset": 1203 - }, - "end": { - "line": 59, - "column": 25, - "offset": 1227 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "~", - "position": { - "start": { - "line": 59, - "column": 25, - "offset": 1227 - }, - "end": { - "line": 59, - "column": 27, - "offset": 1229 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "~escaped", - "position": { - "start": { - "line": 59, - "column": 27, - "offset": 1229 - }, - "end": { - "line": 59, - "column": 35, - "offset": 1237 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "~", - "position": { - "start": { - "line": 59, - "column": 35, - "offset": 1237 - }, - "end": { - "line": 59, - "column": 37, - "offset": 1239 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "~.\nAnd here: foo~~.", - "position": { - "start": { - "line": 59, - "column": 37, - "offset": 1239 - }, - "end": { - "line": 60, - "column": 17, - "offset": 1258 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 59, - "column": 1, - "offset": 1203 - }, - "end": { - "line": 60, - "column": 17, - "offset": 1258 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Pipes should not be escaped here: |", - "position": { - "start": { - "line": 62, - "column": 1, - "offset": 1260 - }, - "end": { - "line": 62, - "column": 36, - "offset": 1295 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 62, - "column": 1, - "offset": 1260 - }, - "end": { - "line": 62, - "column": 36, - "offset": 1295 - }, - "indent": [] - } - }, - { - "type": "table", - "align": [ - null, - null - ], - "children": [ - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "here", - "position": { - "start": { - "line": 64, - "column": 3, - "offset": 1299 - }, - "end": { - "line": 64, - "column": 7, - "offset": 1303 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 64, - "column": 3, - "offset": 1299 - }, - "end": { - "line": 64, - "column": 9, - "offset": 1305 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "they", - "position": { - "start": { - "line": 64, - "column": 12, - "offset": 1308 - }, - "end": { - "line": 64, - "column": 16, - "offset": 1312 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 64, - "column": 12, - "offset": 1308 - }, - "end": { - "line": 64, - "column": 20, - "offset": 1316 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 64, - "column": 1, - "offset": 1297 - }, - "end": { - "line": 64, - "column": 22, - "offset": 1318 - }, - "indent": [] - } - }, - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "should", - "position": { - "start": { - "line": 66, - "column": 3, - "offset": 1343 - }, - "end": { - "line": 66, - "column": 9, - "offset": 1349 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 66, - "column": 3, - "offset": 1343 - }, - "end": { - "line": 66, - "column": 9, - "offset": 1349 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "tho", - "position": { - "start": { - "line": 66, - "column": 12, - "offset": 1352 - }, - "end": { - "line": 66, - "column": 15, - "offset": 1355 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "|", - "position": { - "start": { - "line": 66, - "column": 15, - "offset": 1355 - }, - "end": { - "line": 66, - "column": 17, - "offset": 1357 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "ugh", - "position": { - "start": { - "line": 66, - "column": 17, - "offset": 1357 - }, - "end": { - "line": 66, - "column": 20, - "offset": 1360 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 66, - "column": 12, - "offset": 1352 - }, - "end": { - "line": 66, - "column": 20, - "offset": 1360 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 66, - "column": 1, - "offset": 1341 - }, - "end": { - "line": 66, - "column": 22, - "offset": 1362 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 64, - "column": 1, - "offset": 1297 - }, - "end": { - "line": 66, - "column": 22, - "offset": 1362 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And here:", - "position": { - "start": { - "line": 68, - "column": 1, - "offset": 1364 - }, - "end": { - "line": 68, - "column": 10, - "offset": 1373 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 68, - "column": 1, - "offset": 1364 - }, - "end": { - "line": 68, - "column": 10, - "offset": 1373 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "| here | they |\n", - "position": { - "start": { - "line": 70, - "column": 1, - "offset": 1375 - }, - "end": { - "line": 71, - "column": 1, - "offset": 1395 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "|", - "position": { - "start": { - "line": 71, - "column": 1, - "offset": 1395 - }, - "end": { - "line": 71, - "column": 3, - "offset": 1397 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ---- ", - "position": { - "start": { - "line": 71, - "column": 3, - "offset": 1397 - }, - "end": { - "line": 71, - "column": 9, - "offset": 1403 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "|", - "position": { - "start": { - "line": 71, - "column": 9, - "offset": 1403 - }, - "end": { - "line": 71, - "column": 11, - "offset": 1405 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ----- ", - "position": { - "start": { - "line": 71, - "column": 11, - "offset": 1405 - }, - "end": { - "line": 71, - "column": 18, - "offset": 1412 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "|", - "position": { - "start": { - "line": 71, - "column": 18, - "offset": 1412 - }, - "end": { - "line": 71, - "column": 20, - "offset": 1414 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\n| should | though |", - "position": { - "start": { - "line": 71, - "column": 20, - "offset": 1414 - }, - "end": { - "line": 72, - "column": 20, - "offset": 1434 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 70, - "column": 1, - "offset": 1375 - }, - "end": { - "line": 72, - "column": 20, - "offset": 1434 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And here:", - "position": { - "start": { - "line": 74, - "column": 1, - "offset": 1436 - }, - "end": { - "line": 74, - "column": 10, - "offset": 1445 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 74, - "column": 1, - "offset": 1436 - }, - "end": { - "line": 74, - "column": 10, - "offset": 1445 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "here | they\n", - "position": { - "start": { - "line": 76, - "column": 1, - "offset": 1447 - }, - "end": { - "line": 77, - "column": 1, - "offset": 1461 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "-", - "position": { - "start": { - "line": 77, - "column": 1, - "offset": 1461 - }, - "end": { - "line": 77, - "column": 3, - "offset": 1463 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "--- ", - "position": { - "start": { - "line": 77, - "column": 3, - "offset": 1463 - }, - "end": { - "line": 77, - "column": 7, - "offset": 1467 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "|", - "position": { - "start": { - "line": 77, - "column": 7, - "offset": 1467 - }, - "end": { - "line": 77, - "column": 9, - "offset": 1469 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ------\nshould | though", - "position": { - "start": { - "line": 77, - "column": 9, - "offset": 1469 - }, - "end": { - "line": 78, - "column": 16, - "offset": 1492 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 76, - "column": 1, - "offset": 1447 - }, - "end": { - "line": 78, - "column": 16, - "offset": 1492 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "Commonmark:", - "position": { - "start": { - "line": 80, - "column": 3, - "offset": 1496 - }, - "end": { - "line": 80, - "column": 14, - "offset": 1507 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 80, - "column": 1, - "offset": 1494 - }, - "end": { - "line": 80, - "column": 16, - "offset": 1509 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 80, - "column": 1, - "offset": 1494 - }, - "end": { - "line": 80, - "column": 16, - "offset": 1509 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Open angle bracket should be escaped:", - "position": { - "start": { - "line": 82, - "column": 1, - "offset": 1511 - }, - "end": { - "line": 82, - "column": 38, - "offset": 1548 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 82, - "column": 1, - "offset": 1511 - }, - "end": { - "line": 82, - "column": 38, - "offset": 1548 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "<", - "position": { - "start": { - "line": 84, - "column": 5, - "offset": 1554 - }, - "end": { - "line": 84, - "column": 7, - "offset": 1556 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "div>", - "position": { - "start": { - "line": 84, - "column": 7, - "offset": 1556 - }, - "end": { - "line": 84, - "column": 11, - "offset": 1560 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "<", - "position": { - "start": { - "line": 84, - "column": 11, - "offset": 1560 - }, - "end": { - "line": 84, - "column": 13, - "offset": 1562 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "/div>", - "position": { - "start": { - "line": 84, - "column": 13, - "offset": 1562 - }, - "end": { - "line": 84, - "column": 18, - "offset": 1567 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 84, - "column": 5, - "offset": 1554 - }, - "end": { - "line": 84, - "column": 18, - "offset": 1567 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 84, - "column": 1, - "offset": 1550 - }, - "end": { - "line": 84, - "column": 18, - "offset": 1567 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "<", - "position": { - "start": { - "line": 85, - "column": 5, - "offset": 1572 - }, - "end": { - "line": 85, - "column": 7, - "offset": 1574 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "http", - "position": { - "start": { - "line": 85, - "column": 7, - "offset": 1574 - }, - "end": { - "line": 85, - "column": 11, - "offset": 1578 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ":", - "position": { - "start": { - "line": 85, - "column": 11, - "offset": 1578 - }, - "end": { - "line": 85, - "column": 13, - "offset": 1580 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "google.com>", - "position": { - "start": { - "line": 85, - "column": 13, - "offset": 1580 - }, - "end": { - "line": 85, - "column": 24, - "offset": 1591 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 85, - "column": 5, - "offset": 1572 - }, - "end": { - "line": 85, - "column": 24, - "offset": 1591 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 85, - "column": 1, - "offset": 1568 - }, - "end": { - "line": 85, - "column": 24, - "offset": 1591 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "<", - "position": { - "start": { - "line": 86, - "column": 5, - "offset": 1596 - }, - "end": { - "line": 86, - "column": 9, - "offset": 1600 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "div>", - "position": { - "start": { - "line": 86, - "column": 9, - "offset": 1600 - }, - "end": { - "line": 86, - "column": 13, - "offset": 1604 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "<", - "position": { - "start": { - "line": 86, - "column": 13, - "offset": 1604 - }, - "end": { - "line": 86, - "column": 17, - "offset": 1608 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "/div>", - "position": { - "start": { - "line": 86, - "column": 17, - "offset": 1608 - }, - "end": { - "line": 86, - "column": 22, - "offset": 1613 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 86, - "column": 5, - "offset": 1596 - }, - "end": { - "line": 86, - "column": 22, - "offset": 1613 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 86, - "column": 1, - "offset": 1592 - }, - "end": { - "line": 86, - "column": 22, - "offset": 1613 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "<", - "position": { - "start": { - "line": 87, - "column": 5, - "offset": 1618 - }, - "end": { - "line": 87, - "column": 9, - "offset": 1622 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "http", - "position": { - "start": { - "line": 87, - "column": 9, - "offset": 1622 - }, - "end": { - "line": 87, - "column": 13, - "offset": 1626 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ":", - "position": { - "start": { - "line": 87, - "column": 13, - "offset": 1626 - }, - "end": { - "line": 87, - "column": 20, - "offset": 1633 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "google.com>", - "position": { - "start": { - "line": 87, - "column": 20, - "offset": 1633 - }, - "end": { - "line": 87, - "column": 31, - "offset": 1644 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 87, - "column": 5, - "offset": 1618 - }, - "end": { - "line": 87, - "column": 31, - "offset": 1644 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 87, - "column": 1, - "offset": 1614 - }, - "end": { - "line": 87, - "column": 31, - "offset": 1644 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 84, - "column": 1, - "offset": 1550 - }, - "end": { - "line": 87, - "column": 31, - "offset": 1644 - }, - "indent": [ - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 88, - "column": 1, - "offset": 1645 - } - } -} diff --git a/test/fixtures/tree/stringify-escape.commonmark.pedantic.json b/test/fixtures/tree/stringify-escape.commonmark.pedantic.json deleted file mode 100644 index aff91e23c..000000000 --- a/test/fixtures/tree/stringify-escape.commonmark.pedantic.json +++ /dev/null @@ -1,3972 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Characters that should be escaped in general:", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 46, - "offset": 45 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 46, - "offset": 45 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "\\", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 47 - }, - "end": { - "line": 3, - "column": 3, - "offset": 49 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 49 - }, - "end": { - "line": 3, - "column": 4, - "offset": 50 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "`", - "position": { - "start": { - "line": 3, - "column": 4, - "offset": 50 - }, - "end": { - "line": 3, - "column": 6, - "offset": 52 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 3, - "column": 6, - "offset": 52 - }, - "end": { - "line": 3, - "column": 7, - "offset": 53 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "*", - "position": { - "start": { - "line": 3, - "column": 7, - "offset": 53 - }, - "end": { - "line": 3, - "column": 9, - "offset": 55 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 3, - "column": 9, - "offset": 55 - }, - "end": { - "line": 3, - "column": 10, - "offset": 56 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "[", - "position": { - "start": { - "line": 3, - "column": 10, - "offset": 56 - }, - "end": { - "line": 3, - "column": 12, - "offset": 58 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 47 - }, - "end": { - "line": 3, - "column": 12, - "offset": 58 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Characters that shouldn't:", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 60 - }, - "end": { - "line": 5, - "column": 27, - "offset": 86 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 60 - }, - "end": { - "line": 5, - "column": 27, - "offset": 86 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "{}]()#+-.!>\"$%',/:;=?@^~", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 88 - }, - "end": { - "line": 7, - "column": 25, - "offset": 112 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 88 - }, - "end": { - "line": 7, - "column": 25, - "offset": 112 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Underscores are ", - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 114 - }, - "end": { - "line": 9, - "column": 17, - "offset": 130 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "_", - "position": { - "start": { - "line": 9, - "column": 17, - "offset": 130 - }, - "end": { - "line": 9, - "column": 19, - "offset": 132 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "escaped", - "position": { - "start": { - "line": 9, - "column": 19, - "offset": 132 - }, - "end": { - "line": 9, - "column": 26, - "offset": 139 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "_", - "position": { - "start": { - "line": 9, - "column": 26, - "offset": 139 - }, - "end": { - "line": 9, - "column": 28, - "offset": 141 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " unless they appear in", - "position": { - "start": { - "line": 9, - "column": 28, - "offset": 141 - }, - "end": { - "line": 9, - "column": 50, - "offset": 163 - }, - "indent": [] - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "the", - "position": { - "start": { - "line": 9, - "column": 51, - "offset": 164 - }, - "end": { - "line": 9, - "column": 54, - "offset": 167 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 50, - "offset": 163 - }, - "end": { - "line": 9, - "column": 55, - "offset": 168 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "middle", - "position": { - "start": { - "line": 9, - "column": 55, - "offset": 168 - }, - "end": { - "line": 9, - "column": 61, - "offset": 174 - }, - "indent": [] - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "of", - "position": { - "start": { - "line": 9, - "column": 62, - "offset": 175 - }, - "end": { - "line": 9, - "column": 64, - "offset": 177 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 61, - "offset": 174 - }, - "end": { - "line": 9, - "column": 65, - "offset": 178 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "a", - "position": { - "start": { - "line": 9, - "column": 65, - "offset": 178 - }, - "end": { - "line": 9, - "column": 66, - "offset": 179 - }, - "indent": [] - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "word.\nor **", - "position": { - "start": { - "line": 9, - "column": 67, - "offset": 180 - }, - "end": { - "line": 10, - "column": 6, - "offset": 191 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 66, - "offset": 179 - }, - "end": { - "line": 10, - "column": 7, - "offset": 192 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "here**, or here__", - "position": { - "start": { - "line": 10, - "column": 7, - "offset": 192 - }, - "end": { - "line": 10, - "column": 24, - "offset": 209 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 114 - }, - "end": { - "line": 10, - "column": 24, - "offset": 209 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Ampersands are escaped only when they would otherwise start an entity:", - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 211 - }, - "end": { - "line": 12, - "column": 71, - "offset": 281 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 211 - }, - "end": { - "line": 12, - "column": 71, - "offset": 281 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "&", - "position": { - "start": { - "line": 14, - "column": 5, - "offset": 287 - }, - "end": { - "line": 14, - "column": 7, - "offset": 289 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "copycat ", - "position": { - "start": { - "line": 14, - "column": 7, - "offset": 289 - }, - "end": { - "line": 14, - "column": 15, - "offset": 297 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "&", - "position": { - "start": { - "line": 14, - "column": 15, - "offset": 297 - }, - "end": { - "line": 14, - "column": 17, - "offset": 299 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "amp; ", - "position": { - "start": { - "line": 14, - "column": 17, - "offset": 299 - }, - "end": { - "line": 14, - "column": 22, - "offset": 304 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "&", - "position": { - "start": { - "line": 14, - "column": 22, - "offset": 304 - }, - "end": { - "line": 14, - "column": 24, - "offset": 306 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "#x26", - "position": { - "start": { - "line": 14, - "column": 24, - "offset": 306 - }, - "end": { - "line": 14, - "column": 28, - "offset": 310 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 5, - "offset": 287 - }, - "end": { - "line": 14, - "column": 28, - "offset": 310 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 283 - }, - "end": { - "line": 14, - "column": 28, - "offset": 310 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "&", - "position": { - "start": { - "line": 15, - "column": 5, - "offset": 315 - }, - "end": { - "line": 15, - "column": 10, - "offset": 320 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "copycat ", - "position": { - "start": { - "line": 15, - "column": 10, - "offset": 320 - }, - "end": { - "line": 15, - "column": 18, - "offset": 328 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "&", - "position": { - "start": { - "line": 15, - "column": 18, - "offset": 328 - }, - "end": { - "line": 15, - "column": 23, - "offset": 333 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "amp; ", - "position": { - "start": { - "line": 15, - "column": 23, - "offset": 333 - }, - "end": { - "line": 15, - "column": 28, - "offset": 338 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "&", - "position": { - "start": { - "line": 15, - "column": 28, - "offset": 338 - }, - "end": { - "line": 15, - "column": 33, - "offset": 343 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "#x26", - "position": { - "start": { - "line": 15, - "column": 33, - "offset": 343 - }, - "end": { - "line": 15, - "column": 37, - "offset": 347 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 5, - "offset": 315 - }, - "end": { - "line": 15, - "column": 37, - "offset": 347 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 311 - }, - "end": { - "line": 15, - "column": 37, - "offset": 347 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "But: ©cat; ", - "position": { - "start": { - "line": 16, - "column": 5, - "offset": 352 - }, - "end": { - "line": 16, - "column": 16, - "offset": 363 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "≬", - "position": { - "start": { - "line": 16, - "column": 16, - "offset": 363 - }, - "end": { - "line": 16, - "column": 27, - "offset": 374 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " &foo; & AT&T &c", - "position": { - "start": { - "line": 16, - "column": 27, - "offset": 374 - }, - "end": { - "line": 16, - "column": 43, - "offset": 390 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 5, - "offset": 352 - }, - "end": { - "line": 16, - "column": 43, - "offset": 390 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 348 - }, - "end": { - "line": 16, - "column": 43, - "offset": 390 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 283 - }, - "end": { - "line": 16, - "column": 43, - "offset": 390 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Open parenthesis should be escaped after a shortcut reference:", - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 392 - }, - "end": { - "line": 18, - "column": 63, - "offset": 454 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 392 - }, - "end": { - "line": 18, - "column": 63, - "offset": 454 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "ref", - "label": "ref", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "ref", - "position": { - "start": { - "line": 20, - "column": 2, - "offset": 457 - }, - "end": { - "line": 20, - "column": 5, - "offset": 460 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 1, - "offset": 456 - }, - "end": { - "line": 20, - "column": 6, - "offset": 461 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(", - "position": { - "start": { - "line": 20, - "column": 6, - "offset": 461 - }, - "end": { - "line": 20, - "column": 8, - "offset": 463 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "text)", - "position": { - "start": { - "line": 20, - "column": 8, - "offset": 463 - }, - "end": { - "line": 20, - "column": 13, - "offset": 468 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 1, - "offset": 456 - }, - "end": { - "line": 20, - "column": 13, - "offset": 468 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And after a shortcut reference and a space (for GitHub):", - "position": { - "start": { - "line": 22, - "column": 1, - "offset": 470 - }, - "end": { - "line": 22, - "column": 57, - "offset": 526 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 22, - "column": 1, - "offset": 470 - }, - "end": { - "line": 22, - "column": 57, - "offset": 526 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "ref", - "label": "ref", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "ref", - "position": { - "start": { - "line": 24, - "column": 2, - "offset": 529 - }, - "end": { - "line": 24, - "column": 5, - "offset": 532 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 24, - "column": 1, - "offset": 528 - }, - "end": { - "line": 24, - "column": 6, - "offset": 533 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 24, - "column": 6, - "offset": 533 - }, - "end": { - "line": 24, - "column": 7, - "offset": 534 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(", - "position": { - "start": { - "line": 24, - "column": 7, - "offset": 534 - }, - "end": { - "line": 24, - "column": 9, - "offset": 536 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "text)", - "position": { - "start": { - "line": 24, - "column": 9, - "offset": 536 - }, - "end": { - "line": 24, - "column": 14, - "offset": 541 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 24, - "column": 1, - "offset": 528 - }, - "end": { - "line": 24, - "column": 14, - "offset": 541 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hyphen should be escaped at the beginning of a line:", - "position": { - "start": { - "line": 26, - "column": 1, - "offset": 543 - }, - "end": { - "line": 26, - "column": 53, - "offset": 595 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 26, - "column": 1, - "offset": 543 - }, - "end": { - "line": 26, - "column": 53, - "offset": 595 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "-", - "position": { - "start": { - "line": 28, - "column": 1, - "offset": 597 - }, - "end": { - "line": 28, - "column": 3, - "offset": 599 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " not a list item\n", - "position": { - "start": { - "line": 28, - "column": 3, - "offset": 599 - }, - "end": { - "line": 29, - "column": 1, - "offset": 616 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "-", - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 616 - }, - "end": { - "line": 29, - "column": 3, - "offset": 618 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " not a list item\n ", - "position": { - "start": { - "line": 29, - "column": 3, - "offset": 618 - }, - "end": { - "line": 30, - "column": 3, - "offset": 637 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "+", - "position": { - "start": { - "line": 30, - "column": 3, - "offset": 637 - }, - "end": { - "line": 30, - "column": 5, - "offset": 639 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " not a list item", - "position": { - "start": { - "line": 30, - "column": 5, - "offset": 639 - }, - "end": { - "line": 30, - "column": 21, - "offset": 655 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 28, - "column": 1, - "offset": 597 - }, - "end": { - "line": 30, - "column": 21, - "offset": 655 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Same for angle brackets:", - "position": { - "start": { - "line": 32, - "column": 1, - "offset": 657 - }, - "end": { - "line": 32, - "column": 25, - "offset": 681 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 32, - "column": 1, - "offset": 657 - }, - "end": { - "line": 32, - "column": 25, - "offset": 681 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": ">", - "position": { - "start": { - "line": 34, - "column": 1, - "offset": 683 - }, - "end": { - "line": 34, - "column": 3, - "offset": 685 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " not a block quote", - "position": { - "start": { - "line": 34, - "column": 3, - "offset": 685 - }, - "end": { - "line": 34, - "column": 21, - "offset": 703 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 34, - "column": 1, - "offset": 683 - }, - "end": { - "line": 34, - "column": 21, - "offset": 703 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And hash signs:", - "position": { - "start": { - "line": 36, - "column": 1, - "offset": 705 - }, - "end": { - "line": 36, - "column": 16, - "offset": 720 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 36, - "column": 1, - "offset": 705 - }, - "end": { - "line": 36, - "column": 16, - "offset": 720 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "#", - "position": { - "start": { - "line": 38, - "column": 1, - "offset": 722 - }, - "end": { - "line": 38, - "column": 3, - "offset": 724 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " not a heading\n ", - "position": { - "start": { - "line": 38, - "column": 3, - "offset": 724 - }, - "end": { - "line": 39, - "column": 3, - "offset": 741 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "#", - "position": { - "start": { - "line": 39, - "column": 3, - "offset": 741 - }, - "end": { - "line": 39, - "column": 5, - "offset": 743 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "# not a subheading", - "position": { - "start": { - "line": 39, - "column": 5, - "offset": 743 - }, - "end": { - "line": 39, - "column": 23, - "offset": 761 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 38, - "column": 1, - "offset": 722 - }, - "end": { - "line": 39, - "column": 23, - "offset": 761 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Text under a shortcut reference should be preserved verbatim:", - "position": { - "start": { - "line": 41, - "column": 1, - "offset": 763 - }, - "end": { - "line": 41, - "column": 62, - "offset": 824 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 41, - "column": 1, - "offset": 763 - }, - "end": { - "line": 41, - "column": 62, - "offset": 824 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "two*three", - "label": "two*three", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "two*three", - "position": { - "start": { - "line": 43, - "column": 6, - "offset": 831 - }, - "end": { - "line": 43, - "column": 15, - "offset": 840 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 43, - "column": 5, - "offset": 830 - }, - "end": { - "line": 43, - "column": 16, - "offset": 841 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 43, - "column": 5, - "offset": 830 - }, - "end": { - "line": 43, - "column": 16, - "offset": 841 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 43, - "column": 1, - "offset": 826 - }, - "end": { - "line": 43, - "column": 16, - "offset": 841 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "two\\*three", - "label": "two\\*three", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "two", - "position": { - "start": { - "line": 44, - "column": 6, - "offset": 847 - }, - "end": { - "line": 44, - "column": 9, - "offset": 850 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "*", - "position": { - "start": { - "line": 44, - "column": 9, - "offset": 850 - }, - "end": { - "line": 44, - "column": 11, - "offset": 852 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "three", - "position": { - "start": { - "line": 44, - "column": 11, - "offset": 852 - }, - "end": { - "line": 44, - "column": 16, - "offset": 857 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 44, - "column": 5, - "offset": 846 - }, - "end": { - "line": 44, - "column": 17, - "offset": 858 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 44, - "column": 5, - "offset": 846 - }, - "end": { - "line": 44, - "column": 17, - "offset": 858 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 44, - "column": 1, - "offset": 842 - }, - "end": { - "line": 44, - "column": 17, - "offset": 858 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "a\\a", - "label": "a\\a", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "a\\a", - "position": { - "start": { - "line": 45, - "column": 6, - "offset": 864 - }, - "end": { - "line": 45, - "column": 9, - "offset": 867 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 45, - "column": 5, - "offset": 863 - }, - "end": { - "line": 45, - "column": 10, - "offset": 868 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 45, - "column": 5, - "offset": 863 - }, - "end": { - "line": 45, - "column": 10, - "offset": 868 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 45, - "column": 1, - "offset": 859 - }, - "end": { - "line": 45, - "column": 10, - "offset": 868 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "a\\\\a", - "label": "a\\\\a", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "a", - "position": { - "start": { - "line": 46, - "column": 6, - "offset": 874 - }, - "end": { - "line": 46, - "column": 7, - "offset": 875 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\\", - "position": { - "start": { - "line": 46, - "column": 7, - "offset": 875 - }, - "end": { - "line": 46, - "column": 9, - "offset": 877 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "a", - "position": { - "start": { - "line": 46, - "column": 9, - "offset": 877 - }, - "end": { - "line": 46, - "column": 10, - "offset": 878 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 46, - "column": 5, - "offset": 873 - }, - "end": { - "line": 46, - "column": 11, - "offset": 879 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 46, - "column": 5, - "offset": 873 - }, - "end": { - "line": 46, - "column": 11, - "offset": 879 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 46, - "column": 1, - "offset": 869 - }, - "end": { - "line": 46, - "column": 11, - "offset": 879 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "a\\\\\\a", - "label": "a\\\\\\a", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "a", - "position": { - "start": { - "line": 47, - "column": 6, - "offset": 885 - }, - "end": { - "line": 47, - "column": 7, - "offset": 886 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\\", - "position": { - "start": { - "line": 47, - "column": 7, - "offset": 886 - }, - "end": { - "line": 47, - "column": 9, - "offset": 888 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\\a", - "position": { - "start": { - "line": 47, - "column": 9, - "offset": 888 - }, - "end": { - "line": 47, - "column": 11, - "offset": 890 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 47, - "column": 5, - "offset": 884 - }, - "end": { - "line": 47, - "column": 12, - "offset": 891 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 47, - "column": 5, - "offset": 884 - }, - "end": { - "line": 47, - "column": 12, - "offset": 891 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 47, - "column": 1, - "offset": 880 - }, - "end": { - "line": 47, - "column": 12, - "offset": 891 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "a_a\\_a", - "label": "a_a\\_a", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "a", - "position": { - "start": { - "line": 48, - "column": 6, - "offset": 897 - }, - "end": { - "line": 48, - "column": 7, - "offset": 898 - }, - "indent": [] - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "a\\", - "position": { - "start": { - "line": 48, - "column": 8, - "offset": 899 - }, - "end": { - "line": 48, - "column": 10, - "offset": 901 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 48, - "column": 7, - "offset": 898 - }, - "end": { - "line": 48, - "column": 11, - "offset": 902 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "a", - "position": { - "start": { - "line": 48, - "column": 11, - "offset": 902 - }, - "end": { - "line": 48, - "column": 12, - "offset": 903 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 48, - "column": 5, - "offset": 896 - }, - "end": { - "line": 48, - "column": 13, - "offset": 904 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 48, - "column": 5, - "offset": 896 - }, - "end": { - "line": 48, - "column": 13, - "offset": 904 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 48, - "column": 1, - "offset": 892 - }, - "end": { - "line": 48, - "column": 13, - "offset": 904 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 43, - "column": 1, - "offset": 826 - }, - "end": { - "line": 48, - "column": 13, - "offset": 904 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "GFM:", - "position": { - "start": { - "line": 50, - "column": 3, - "offset": 908 - }, - "end": { - "line": 50, - "column": 7, - "offset": 912 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 50, - "column": 1, - "offset": 906 - }, - "end": { - "line": 50, - "column": 9, - "offset": 914 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 50, - "column": 1, - "offset": 906 - }, - "end": { - "line": 50, - "column": 9, - "offset": 914 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Colon should be escaped in URLs:", - "position": { - "start": { - "line": 52, - "column": 1, - "offset": 916 - }, - "end": { - "line": 52, - "column": 33, - "offset": 948 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 52, - "column": 1, - "offset": 916 - }, - "end": { - "line": 52, - "column": 33, - "offset": 948 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "http", - "position": { - "start": { - "line": 54, - "column": 5, - "offset": 954 - }, - "end": { - "line": 54, - "column": 9, - "offset": 958 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ":", - "position": { - "start": { - "line": 54, - "column": 9, - "offset": 958 - }, - "end": { - "line": 54, - "column": 11, - "offset": 960 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "//user:password@host:port/path?key=value#fragment", - "position": { - "start": { - "line": 54, - "column": 11, - "offset": 960 - }, - "end": { - "line": 54, - "column": 60, - "offset": 1009 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 54, - "column": 5, - "offset": 954 - }, - "end": { - "line": 54, - "column": 60, - "offset": 1009 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 54, - "column": 1, - "offset": 950 - }, - "end": { - "line": 54, - "column": 60, - "offset": 1009 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "https", - "position": { - "start": { - "line": 55, - "column": 5, - "offset": 1014 - }, - "end": { - "line": 55, - "column": 10, - "offset": 1019 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ":", - "position": { - "start": { - "line": 55, - "column": 10, - "offset": 1019 - }, - "end": { - "line": 55, - "column": 12, - "offset": 1021 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "//user:password@host:port/path?key=value#fragment", - "position": { - "start": { - "line": 55, - "column": 12, - "offset": 1021 - }, - "end": { - "line": 55, - "column": 61, - "offset": 1070 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 55, - "column": 5, - "offset": 1014 - }, - "end": { - "line": 55, - "column": 61, - "offset": 1070 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 55, - "column": 1, - "offset": 1010 - }, - "end": { - "line": 55, - "column": 61, - "offset": 1070 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "http", - "position": { - "start": { - "line": 56, - "column": 5, - "offset": 1075 - }, - "end": { - "line": 56, - "column": 9, - "offset": 1079 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ":", - "position": { - "start": { - "line": 56, - "column": 9, - "offset": 1079 - }, - "end": { - "line": 56, - "column": 16, - "offset": 1086 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "//user:password@host:port/path?key=value#fragment", - "position": { - "start": { - "line": 56, - "column": 16, - "offset": 1086 - }, - "end": { - "line": 56, - "column": 65, - "offset": 1135 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 56, - "column": 5, - "offset": 1075 - }, - "end": { - "line": 56, - "column": 65, - "offset": 1135 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 56, - "column": 1, - "offset": 1071 - }, - "end": { - "line": 56, - "column": 65, - "offset": 1135 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "https", - "position": { - "start": { - "line": 57, - "column": 5, - "offset": 1140 - }, - "end": { - "line": 57, - "column": 10, - "offset": 1145 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ":", - "position": { - "start": { - "line": 57, - "column": 10, - "offset": 1145 - }, - "end": { - "line": 57, - "column": 17, - "offset": 1152 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "//user:password@host:port/path?key=value#fragment", - "position": { - "start": { - "line": 57, - "column": 17, - "offset": 1152 - }, - "end": { - "line": 57, - "column": 66, - "offset": 1201 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 57, - "column": 5, - "offset": 1140 - }, - "end": { - "line": 57, - "column": 66, - "offset": 1201 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 57, - "column": 1, - "offset": 1136 - }, - "end": { - "line": 57, - "column": 66, - "offset": 1201 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 54, - "column": 1, - "offset": 950 - }, - "end": { - "line": 57, - "column": 66, - "offset": 1201 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Double tildes should be ", - "position": { - "start": { - "line": 59, - "column": 1, - "offset": 1203 - }, - "end": { - "line": 59, - "column": 25, - "offset": 1227 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "~", - "position": { - "start": { - "line": 59, - "column": 25, - "offset": 1227 - }, - "end": { - "line": 59, - "column": 27, - "offset": 1229 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "~escaped", - "position": { - "start": { - "line": 59, - "column": 27, - "offset": 1229 - }, - "end": { - "line": 59, - "column": 35, - "offset": 1237 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "~", - "position": { - "start": { - "line": 59, - "column": 35, - "offset": 1237 - }, - "end": { - "line": 59, - "column": 37, - "offset": 1239 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "~.\nAnd here: foo~~.", - "position": { - "start": { - "line": 59, - "column": 37, - "offset": 1239 - }, - "end": { - "line": 60, - "column": 17, - "offset": 1258 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 59, - "column": 1, - "offset": 1203 - }, - "end": { - "line": 60, - "column": 17, - "offset": 1258 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Pipes should not be escaped here: |", - "position": { - "start": { - "line": 62, - "column": 1, - "offset": 1260 - }, - "end": { - "line": 62, - "column": 36, - "offset": 1295 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 62, - "column": 1, - "offset": 1260 - }, - "end": { - "line": 62, - "column": 36, - "offset": 1295 - }, - "indent": [] - } - }, - { - "type": "table", - "align": [ - null, - null - ], - "children": [ - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "here", - "position": { - "start": { - "line": 64, - "column": 3, - "offset": 1299 - }, - "end": { - "line": 64, - "column": 7, - "offset": 1303 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 64, - "column": 3, - "offset": 1299 - }, - "end": { - "line": 64, - "column": 9, - "offset": 1305 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "they", - "position": { - "start": { - "line": 64, - "column": 12, - "offset": 1308 - }, - "end": { - "line": 64, - "column": 16, - "offset": 1312 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 64, - "column": 12, - "offset": 1308 - }, - "end": { - "line": 64, - "column": 20, - "offset": 1316 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 64, - "column": 1, - "offset": 1297 - }, - "end": { - "line": 64, - "column": 22, - "offset": 1318 - }, - "indent": [] - } - }, - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "should", - "position": { - "start": { - "line": 66, - "column": 3, - "offset": 1343 - }, - "end": { - "line": 66, - "column": 9, - "offset": 1349 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 66, - "column": 3, - "offset": 1343 - }, - "end": { - "line": 66, - "column": 9, - "offset": 1349 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "tho", - "position": { - "start": { - "line": 66, - "column": 12, - "offset": 1352 - }, - "end": { - "line": 66, - "column": 15, - "offset": 1355 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "|", - "position": { - "start": { - "line": 66, - "column": 15, - "offset": 1355 - }, - "end": { - "line": 66, - "column": 17, - "offset": 1357 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "ugh", - "position": { - "start": { - "line": 66, - "column": 17, - "offset": 1357 - }, - "end": { - "line": 66, - "column": 20, - "offset": 1360 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 66, - "column": 12, - "offset": 1352 - }, - "end": { - "line": 66, - "column": 20, - "offset": 1360 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 66, - "column": 1, - "offset": 1341 - }, - "end": { - "line": 66, - "column": 22, - "offset": 1362 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 64, - "column": 1, - "offset": 1297 - }, - "end": { - "line": 66, - "column": 22, - "offset": 1362 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And here:", - "position": { - "start": { - "line": 68, - "column": 1, - "offset": 1364 - }, - "end": { - "line": 68, - "column": 10, - "offset": 1373 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 68, - "column": 1, - "offset": 1364 - }, - "end": { - "line": 68, - "column": 10, - "offset": 1373 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "| here | they |\n", - "position": { - "start": { - "line": 70, - "column": 1, - "offset": 1375 - }, - "end": { - "line": 71, - "column": 1, - "offset": 1395 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "|", - "position": { - "start": { - "line": 71, - "column": 1, - "offset": 1395 - }, - "end": { - "line": 71, - "column": 3, - "offset": 1397 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ---- ", - "position": { - "start": { - "line": 71, - "column": 3, - "offset": 1397 - }, - "end": { - "line": 71, - "column": 9, - "offset": 1403 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "|", - "position": { - "start": { - "line": 71, - "column": 9, - "offset": 1403 - }, - "end": { - "line": 71, - "column": 11, - "offset": 1405 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ----- ", - "position": { - "start": { - "line": 71, - "column": 11, - "offset": 1405 - }, - "end": { - "line": 71, - "column": 18, - "offset": 1412 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "|", - "position": { - "start": { - "line": 71, - "column": 18, - "offset": 1412 - }, - "end": { - "line": 71, - "column": 20, - "offset": 1414 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\n| should | though |", - "position": { - "start": { - "line": 71, - "column": 20, - "offset": 1414 - }, - "end": { - "line": 72, - "column": 20, - "offset": 1434 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 70, - "column": 1, - "offset": 1375 - }, - "end": { - "line": 72, - "column": 20, - "offset": 1434 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And here:", - "position": { - "start": { - "line": 74, - "column": 1, - "offset": 1436 - }, - "end": { - "line": 74, - "column": 10, - "offset": 1445 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 74, - "column": 1, - "offset": 1436 - }, - "end": { - "line": 74, - "column": 10, - "offset": 1445 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "here | they\n", - "position": { - "start": { - "line": 76, - "column": 1, - "offset": 1447 - }, - "end": { - "line": 77, - "column": 1, - "offset": 1461 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "-", - "position": { - "start": { - "line": 77, - "column": 1, - "offset": 1461 - }, - "end": { - "line": 77, - "column": 3, - "offset": 1463 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "--- ", - "position": { - "start": { - "line": 77, - "column": 3, - "offset": 1463 - }, - "end": { - "line": 77, - "column": 7, - "offset": 1467 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "|", - "position": { - "start": { - "line": 77, - "column": 7, - "offset": 1467 - }, - "end": { - "line": 77, - "column": 9, - "offset": 1469 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ------\nshould | though", - "position": { - "start": { - "line": 77, - "column": 9, - "offset": 1469 - }, - "end": { - "line": 78, - "column": 16, - "offset": 1492 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 76, - "column": 1, - "offset": 1447 - }, - "end": { - "line": 78, - "column": 16, - "offset": 1492 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "Commonmark:", - "position": { - "start": { - "line": 80, - "column": 3, - "offset": 1496 - }, - "end": { - "line": 80, - "column": 14, - "offset": 1507 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 80, - "column": 1, - "offset": 1494 - }, - "end": { - "line": 80, - "column": 16, - "offset": 1509 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 80, - "column": 1, - "offset": 1494 - }, - "end": { - "line": 80, - "column": 16, - "offset": 1509 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Open angle bracket should be escaped:", - "position": { - "start": { - "line": 82, - "column": 1, - "offset": 1511 - }, - "end": { - "line": 82, - "column": 38, - "offset": 1548 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 82, - "column": 1, - "offset": 1511 - }, - "end": { - "line": 82, - "column": 38, - "offset": 1548 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "<", - "position": { - "start": { - "line": 84, - "column": 5, - "offset": 1554 - }, - "end": { - "line": 84, - "column": 7, - "offset": 1556 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "div>", - "position": { - "start": { - "line": 84, - "column": 7, - "offset": 1556 - }, - "end": { - "line": 84, - "column": 11, - "offset": 1560 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "<", - "position": { - "start": { - "line": 84, - "column": 11, - "offset": 1560 - }, - "end": { - "line": 84, - "column": 13, - "offset": 1562 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "/div>", - "position": { - "start": { - "line": 84, - "column": 13, - "offset": 1562 - }, - "end": { - "line": 84, - "column": 18, - "offset": 1567 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 84, - "column": 5, - "offset": 1554 - }, - "end": { - "line": 84, - "column": 18, - "offset": 1567 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 84, - "column": 1, - "offset": 1550 - }, - "end": { - "line": 84, - "column": 18, - "offset": 1567 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "<", - "position": { - "start": { - "line": 85, - "column": 5, - "offset": 1572 - }, - "end": { - "line": 85, - "column": 7, - "offset": 1574 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "http", - "position": { - "start": { - "line": 85, - "column": 7, - "offset": 1574 - }, - "end": { - "line": 85, - "column": 11, - "offset": 1578 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ":", - "position": { - "start": { - "line": 85, - "column": 11, - "offset": 1578 - }, - "end": { - "line": 85, - "column": 13, - "offset": 1580 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "google.com>", - "position": { - "start": { - "line": 85, - "column": 13, - "offset": 1580 - }, - "end": { - "line": 85, - "column": 24, - "offset": 1591 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 85, - "column": 5, - "offset": 1572 - }, - "end": { - "line": 85, - "column": 24, - "offset": 1591 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 85, - "column": 1, - "offset": 1568 - }, - "end": { - "line": 85, - "column": 24, - "offset": 1591 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "<", - "position": { - "start": { - "line": 86, - "column": 5, - "offset": 1596 - }, - "end": { - "line": 86, - "column": 9, - "offset": 1600 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "div>", - "position": { - "start": { - "line": 86, - "column": 9, - "offset": 1600 - }, - "end": { - "line": 86, - "column": 13, - "offset": 1604 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "<", - "position": { - "start": { - "line": 86, - "column": 13, - "offset": 1604 - }, - "end": { - "line": 86, - "column": 17, - "offset": 1608 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "/div>", - "position": { - "start": { - "line": 86, - "column": 17, - "offset": 1608 - }, - "end": { - "line": 86, - "column": 22, - "offset": 1613 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 86, - "column": 5, - "offset": 1596 - }, - "end": { - "line": 86, - "column": 22, - "offset": 1613 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 86, - "column": 1, - "offset": 1592 - }, - "end": { - "line": 86, - "column": 22, - "offset": 1613 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "<", - "position": { - "start": { - "line": 87, - "column": 5, - "offset": 1618 - }, - "end": { - "line": 87, - "column": 9, - "offset": 1622 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "http", - "position": { - "start": { - "line": 87, - "column": 9, - "offset": 1622 - }, - "end": { - "line": 87, - "column": 13, - "offset": 1626 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ":", - "position": { - "start": { - "line": 87, - "column": 13, - "offset": 1626 - }, - "end": { - "line": 87, - "column": 20, - "offset": 1633 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "google.com>", - "position": { - "start": { - "line": 87, - "column": 20, - "offset": 1633 - }, - "end": { - "line": 87, - "column": 31, - "offset": 1644 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 87, - "column": 5, - "offset": 1618 - }, - "end": { - "line": 87, - "column": 31, - "offset": 1644 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 87, - "column": 1, - "offset": 1614 - }, - "end": { - "line": 87, - "column": 31, - "offset": 1644 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 84, - "column": 1, - "offset": 1550 - }, - "end": { - "line": 87, - "column": 31, - "offset": 1644 - }, - "indent": [ - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 88, - "column": 1, - "offset": 1645 - } - } -} diff --git a/test/fixtures/tree/stringify-escape.json b/test/fixtures/tree/stringify-escape.json index 4042180fc..1ee0a7be0 100644 --- a/test/fixtures/tree/stringify-escape.json +++ b/test/fixtures/tree/stringify-escape.json @@ -17,8 +17,7 @@ "line": 1, "column": 46, "offset": 45 - }, - "indent": [] + } } } ], @@ -32,8 +31,7 @@ "line": 1, "column": 46, "offset": 45 - }, - "indent": [] + } } }, { @@ -41,121 +39,18 @@ "children": [ { "type": "text", - "value": "\\", + "value": "\\ ` * [", "position": { "start": { "line": 3, "column": 1, "offset": 47 }, - "end": { - "line": 3, - "column": 3, - "offset": 49 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 49 - }, - "end": { - "line": 3, - "column": 4, - "offset": 50 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "`", - "position": { - "start": { - "line": 3, - "column": 4, - "offset": 50 - }, - "end": { - "line": 3, - "column": 6, - "offset": 52 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 3, - "column": 6, - "offset": 52 - }, - "end": { - "line": 3, - "column": 7, - "offset": 53 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "*", - "position": { - "start": { - "line": 3, - "column": 7, - "offset": 53 - }, - "end": { - "line": 3, - "column": 9, - "offset": 55 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 3, - "column": 9, - "offset": 55 - }, - "end": { - "line": 3, - "column": 10, - "offset": 56 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "[", - "position": { - "start": { - "line": 3, - "column": 10, - "offset": 56 - }, "end": { "line": 3, "column": 12, "offset": 58 - }, - "indent": [] + } } } ], @@ -169,8 +64,7 @@ "line": 3, "column": 12, "offset": 58 - }, - "indent": [] + } } }, { @@ -189,8 +83,7 @@ "line": 5, "column": 27, "offset": 86 - }, - "indent": [] + } } } ], @@ -204,8 +97,7 @@ "line": 5, "column": 27, "offset": 86 - }, - "indent": [] + } } }, { @@ -224,8 +116,7 @@ "line": 7, "column": 25, "offset": 112 - }, - "indent": [] + } } } ], @@ -239,8 +130,7 @@ "line": 7, "column": 25, "offset": 112 - }, - "indent": [] + } } }, { @@ -248,89 +138,18 @@ "children": [ { "type": "text", - "value": "Underscores are ", + "value": "Underscores are _escaped_ unless they appear in_the_middle_of_a_word.\nor ", "position": { "start": { "line": 9, "column": 1, "offset": 114 }, - "end": { - "line": 9, - "column": 17, - "offset": 130 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "_", - "position": { - "start": { - "line": 9, - "column": 17, - "offset": 130 - }, - "end": { - "line": 9, - "column": 19, - "offset": 132 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "escaped", - "position": { - "start": { - "line": 9, - "column": 19, - "offset": 132 - }, - "end": { - "line": 9, - "column": 26, - "offset": 139 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "_", - "position": { - "start": { - "line": 9, - "column": 26, - "offset": 139 - }, - "end": { - "line": 9, - "column": 28, - "offset": 141 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " unless they appear in_the_middle_of_a_word.\nor ", - "position": { - "start": { - "line": 9, - "column": 28, - "offset": 141 - }, "end": { "line": 10, "column": 4, "offset": 189 - }, - "indent": [ - 1 - ] + } } }, { @@ -349,8 +168,7 @@ "line": 10, "column": 11, "offset": 196 - }, - "indent": [] + } } } ], @@ -364,8 +182,7 @@ "line": 10, "column": 13, "offset": 198 - }, - "indent": [] + } } }, { @@ -381,8 +198,7 @@ "line": 10, "column": 24, "offset": 209 - }, - "indent": [] + } } } ], @@ -396,10 +212,7 @@ "line": 10, "column": 24, "offset": 209 - }, - "indent": [ - 1 - ] + } } }, { @@ -418,8 +231,7 @@ "line": 12, "column": 71, "offset": 281 - }, - "indent": [] + } } } ], @@ -433,8 +245,7 @@ "line": 12, "column": 71, "offset": 281 - }, - "indent": [] + } } }, { @@ -453,104 +264,18 @@ "children": [ { "type": "text", - "value": "\\", + "value": "©cat & &", "position": { "start": { "line": 14, "column": 5, "offset": 287 }, - "end": { - "line": 14, - "column": 6, - "offset": 288 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "©", - "position": { - "start": { - "line": 14, - "column": 6, - "offset": 288 - }, - "end": { - "line": 14, - "column": 11, - "offset": 293 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "cat \\", - "position": { - "start": { - "line": 14, - "column": 11, - "offset": 293 - }, - "end": { - "line": 14, - "column": 16, - "offset": 298 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "&", - "position": { - "start": { - "line": 14, - "column": 16, - "offset": 298 - }, - "end": { - "line": 14, - "column": 21, - "offset": 303 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " \\", - "position": { - "start": { - "line": 14, - "column": 21, - "offset": 303 - }, - "end": { - "line": 14, - "column": 23, - "offset": 305 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "&", - "position": { - "start": { - "line": 14, - "column": 23, - "offset": 305 - }, "end": { "line": 14, "column": 28, "offset": 310 - }, - "indent": [] + } } } ], @@ -564,8 +289,7 @@ "line": 14, "column": 28, "offset": 310 - }, - "indent": [] + } } } ], @@ -579,8 +303,7 @@ "line": 14, "column": 28, "offset": 310 - }, - "indent": [] + } } }, { @@ -593,7 +316,7 @@ "children": [ { "type": "text", - "value": "&", + "value": "©cat & &", "position": { "start": { "line": 15, @@ -602,135 +325,47 @@ }, "end": { "line": 15, - "column": 10, - "offset": 320 - }, - "indent": [] + "column": 37, + "offset": 347 + } } + } + ], + "position": { + "start": { + "line": 15, + "column": 5, + "offset": 315 }, - { - "type": "text", - "value": "copycat ", - "position": { - "start": { - "line": 15, - "column": 10, - "offset": 320 - }, - "end": { - "line": 15, - "column": 18, - "offset": 328 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "&", - "position": { - "start": { - "line": 15, - "column": 18, - "offset": 328 - }, - "end": { - "line": 15, - "column": 23, - "offset": 333 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "amp; ", - "position": { - "start": { - "line": 15, - "column": 23, - "offset": 333 - }, - "end": { - "line": 15, - "column": 28, - "offset": 338 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "&", - "position": { - "start": { - "line": 15, - "column": 28, - "offset": 338 - }, - "end": { - "line": 15, - "column": 33, - "offset": 343 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "#x26", - "position": { - "start": { - "line": 15, - "column": 33, - "offset": 343 - }, - "end": { - "line": 15, - "column": 37, - "offset": 347 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 5, - "offset": 315 - }, - "end": { - "line": 15, - "column": 37, - "offset": 347 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 311 - }, - "end": { - "line": 15, - "column": 37, - "offset": 347 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ + "end": { + "line": 15, + "column": 37, + "offset": 347 + } + } + } + ], + "position": { + "start": { + "line": 15, + "column": 1, + "offset": 311 + }, + "end": { + "line": 15, + "column": 37, + "offset": 347 + } + } + }, + { + "type": "listItem", + "spread": false, + "checked": null, + "children": [ + { + "type": "paragraph", + "children": [ { "type": "text", "value": "But: ©cat; ", @@ -744,8 +379,7 @@ "line": 16, "column": 16, "offset": 363 - }, - "indent": [] + } } }, { @@ -761,8 +395,7 @@ "line": 16, "column": 27, "offset": 374 - }, - "indent": [] + } } }, { @@ -778,8 +411,7 @@ "line": 16, "column": 43, "offset": 390 - }, - "indent": [] + } } } ], @@ -793,8 +425,7 @@ "line": 16, "column": 43, "offset": 390 - }, - "indent": [] + } } } ], @@ -808,8 +439,7 @@ "line": 16, "column": 43, "offset": 390 - }, - "indent": [] + } } } ], @@ -823,11 +453,7 @@ "line": 16, "column": 43, "offset": 390 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -846,8 +472,7 @@ "line": 18, "column": 63, "offset": 454 - }, - "indent": [] + } } } ], @@ -861,83 +486,26 @@ "line": 18, "column": 63, "offset": 454 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "linkReference", - "identifier": "ref", - "label": "ref", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "ref", - "position": { - "start": { - "line": 20, - "column": 2, - "offset": 457 - }, - "end": { - "line": 20, - "column": 5, - "offset": 460 - }, - "indent": [] - } - } - ], + "type": "text", + "value": "[ref](text)", "position": { "start": { "line": 20, "column": 1, "offset": 456 }, - "end": { - "line": 20, - "column": 6, - "offset": 461 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(", - "position": { - "start": { - "line": 20, - "column": 6, - "offset": 461 - }, - "end": { - "line": 20, - "column": 8, - "offset": 463 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "text)", - "position": { - "start": { - "line": 20, - "column": 8, - "offset": 463 - }, "end": { "line": 20, "column": 13, "offset": 468 - }, - "indent": [] + } } } ], @@ -951,8 +519,7 @@ "line": 20, "column": 13, "offset": 468 - }, - "indent": [] + } } }, { @@ -971,8 +538,7 @@ "line": 22, "column": 57, "offset": 526 - }, - "indent": [] + } } } ], @@ -986,100 +552,26 @@ "line": 22, "column": 57, "offset": 526 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "linkReference", - "identifier": "ref", - "label": "ref", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "ref", - "position": { - "start": { - "line": 24, - "column": 2, - "offset": 529 - }, - "end": { - "line": 24, - "column": 5, - "offset": 532 - }, - "indent": [] - } - } - ], + "type": "text", + "value": "[ref] (text)", "position": { "start": { "line": 24, "column": 1, "offset": 528 }, - "end": { - "line": 24, - "column": 6, - "offset": 533 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 24, - "column": 6, - "offset": 533 - }, - "end": { - "line": 24, - "column": 7, - "offset": 534 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(", - "position": { - "start": { - "line": 24, - "column": 7, - "offset": 534 - }, - "end": { - "line": 24, - "column": 9, - "offset": 536 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "text)", - "position": { - "start": { - "line": 24, - "column": 9, - "offset": 536 - }, "end": { "line": 24, "column": 14, "offset": 541 - }, - "indent": [] + } } } ], @@ -1093,8 +585,7 @@ "line": 24, "column": 14, "offset": 541 - }, - "indent": [] + } } }, { @@ -1113,8 +604,7 @@ "line": 26, "column": 53, "offset": 595 - }, - "indent": [] + } } } ], @@ -1128,8 +618,7 @@ "line": 26, "column": 53, "offset": 595 - }, - "indent": [] + } } }, { @@ -1137,7 +626,7 @@ "children": [ { "type": "text", - "value": "-", + "value": "- not a list item\n- not a list item\n+ not a list item", "position": { "start": { "line": 28, @@ -1145,138 +634,43 @@ "offset": 597 }, "end": { - "line": 28, - "column": 3, - "offset": 599 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " not a list item\n", - "position": { - "start": { - "line": 28, - "column": 3, - "offset": 599 - }, - "end": { - "line": 29, - "column": 1, - "offset": 616 - }, - "indent": [ - 1 - ] + "line": 30, + "column": 21, + "offset": 655 + } } + } + ], + "position": { + "start": { + "line": 28, + "column": 1, + "offset": 597 }, + "end": { + "line": 30, + "column": 21, + "offset": 655 + } + } + }, + { + "type": "paragraph", + "children": [ { "type": "text", - "value": "-", + "value": "Same for angle brackets:", "position": { "start": { - "line": 29, + "line": 32, "column": 1, - "offset": 616 + "offset": 657 }, "end": { - "line": 29, - "column": 3, - "offset": 618 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " not a list item\n ", - "position": { - "start": { - "line": 29, - "column": 3, - "offset": 618 - }, - "end": { - "line": 30, - "column": 3, - "offset": 637 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "+", - "position": { - "start": { - "line": 30, - "column": 3, - "offset": 637 - }, - "end": { - "line": 30, - "column": 5, - "offset": 639 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " not a list item", - "position": { - "start": { - "line": 30, - "column": 5, - "offset": 639 - }, - "end": { - "line": 30, - "column": 21, - "offset": 655 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 28, - "column": 1, - "offset": 597 - }, - "end": { - "line": 30, - "column": 21, - "offset": 655 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Same for angle brackets:", - "position": { - "start": { - "line": 32, - "column": 1, - "offset": 657 - }, - "end": { - "line": 32, - "column": 25, - "offset": 681 - }, - "indent": [] + "line": 32, + "column": 25, + "offset": 681 + } } } ], @@ -1290,8 +684,7 @@ "line": 32, "column": 25, "offset": 681 - }, - "indent": [] + } } }, { @@ -1299,36 +692,18 @@ "children": [ { "type": "text", - "value": ">", + "value": "> not a block quote", "position": { "start": { "line": 34, "column": 1, "offset": 683 }, - "end": { - "line": 34, - "column": 3, - "offset": 685 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " not a block quote", - "position": { - "start": { - "line": 34, - "column": 3, - "offset": 685 - }, "end": { "line": 34, "column": 21, "offset": 703 - }, - "indent": [] + } } } ], @@ -1342,8 +717,7 @@ "line": 34, "column": 21, "offset": 703 - }, - "indent": [] + } } }, { @@ -1362,8 +736,7 @@ "line": 36, "column": 16, "offset": 720 - }, - "indent": [] + } } } ], @@ -1377,8 +750,7 @@ "line": 36, "column": 16, "offset": 720 - }, - "indent": [] + } } }, { @@ -1386,72 +758,18 @@ "children": [ { "type": "text", - "value": "#", + "value": "# not a heading\n## not a subheading", "position": { "start": { "line": 38, "column": 1, "offset": 722 }, - "end": { - "line": 38, - "column": 3, - "offset": 724 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " not a heading\n ", - "position": { - "start": { - "line": 38, - "column": 3, - "offset": 724 - }, - "end": { - "line": 39, - "column": 3, - "offset": 741 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "#", - "position": { - "start": { - "line": 39, - "column": 3, - "offset": 741 - }, - "end": { - "line": 39, - "column": 5, - "offset": 743 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "# not a subheading", - "position": { - "start": { - "line": 39, - "column": 5, - "offset": 743 - }, "end": { "line": 39, "column": 23, "offset": 761 - }, - "indent": [] + } } } ], @@ -1465,10 +783,7 @@ "line": 39, "column": 23, "offset": 761 - }, - "indent": [ - 1 - ] + } } }, { @@ -1487,8 +802,7 @@ "line": 41, "column": 62, "offset": 824 - }, - "indent": [] + } } } ], @@ -1502,8 +816,7 @@ "line": 41, "column": 62, "offset": 824 - }, - "indent": [] + } } }, { @@ -1521,29 +834,8 @@ "type": "paragraph", "children": [ { - "type": "linkReference", - "identifier": "two*three", - "label": "two*three", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "two*three", - "position": { - "start": { - "line": 43, - "column": 6, - "offset": 831 - }, - "end": { - "line": 43, - "column": 15, - "offset": 840 - }, - "indent": [] - } - } - ], + "type": "text", + "value": "[two*three]", "position": { "start": { "line": 43, @@ -1554,8 +846,7 @@ "line": 43, "column": 16, "offset": 841 - }, - "indent": [] + } } } ], @@ -1569,8 +860,7 @@ "line": 43, "column": 16, "offset": 841 - }, - "indent": [] + } } } ], @@ -1584,8 +874,7 @@ "line": 43, "column": 16, "offset": 841 - }, - "indent": [] + } } }, { @@ -1597,63 +886,8 @@ "type": "paragraph", "children": [ { - "type": "linkReference", - "identifier": "two\\*three", - "label": "two\\*three", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "two", - "position": { - "start": { - "line": 44, - "column": 6, - "offset": 847 - }, - "end": { - "line": 44, - "column": 9, - "offset": 850 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "*", - "position": { - "start": { - "line": 44, - "column": 9, - "offset": 850 - }, - "end": { - "line": 44, - "column": 11, - "offset": 852 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "three", - "position": { - "start": { - "line": 44, - "column": 11, - "offset": 852 - }, - "end": { - "line": 44, - "column": 16, - "offset": 857 - }, - "indent": [] - } - } - ], + "type": "text", + "value": "[two*three]", "position": { "start": { "line": 44, @@ -1664,8 +898,7 @@ "line": 44, "column": 17, "offset": 858 - }, - "indent": [] + } } } ], @@ -1679,8 +912,7 @@ "line": 44, "column": 17, "offset": 858 - }, - "indent": [] + } } } ], @@ -1694,8 +926,7 @@ "line": 44, "column": 17, "offset": 858 - }, - "indent": [] + } } }, { @@ -1707,29 +938,8 @@ "type": "paragraph", "children": [ { - "type": "linkReference", - "identifier": "a\\a", - "label": "a\\a", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "a\\a", - "position": { - "start": { - "line": 45, - "column": 6, - "offset": 864 - }, - "end": { - "line": 45, - "column": 9, - "offset": 867 - }, - "indent": [] - } - } - ], + "type": "text", + "value": "[a\\a]", "position": { "start": { "line": 45, @@ -1740,8 +950,7 @@ "line": 45, "column": 10, "offset": 868 - }, - "indent": [] + } } } ], @@ -1755,8 +964,7 @@ "line": 45, "column": 10, "offset": 868 - }, - "indent": [] + } } } ], @@ -1770,8 +978,7 @@ "line": 45, "column": 10, "offset": 868 - }, - "indent": [] + } } }, { @@ -1783,63 +990,8 @@ "type": "paragraph", "children": [ { - "type": "linkReference", - "identifier": "a\\\\a", - "label": "a\\\\a", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "a", - "position": { - "start": { - "line": 46, - "column": 6, - "offset": 874 - }, - "end": { - "line": 46, - "column": 7, - "offset": 875 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\\", - "position": { - "start": { - "line": 46, - "column": 7, - "offset": 875 - }, - "end": { - "line": 46, - "column": 9, - "offset": 877 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "a", - "position": { - "start": { - "line": 46, - "column": 9, - "offset": 877 - }, - "end": { - "line": 46, - "column": 10, - "offset": 878 - }, - "indent": [] - } - } - ], + "type": "text", + "value": "[a\\a]", "position": { "start": { "line": 46, @@ -1850,8 +1002,7 @@ "line": 46, "column": 11, "offset": 879 - }, - "indent": [] + } } } ], @@ -1865,8 +1016,7 @@ "line": 46, "column": 11, "offset": 879 - }, - "indent": [] + } } } ], @@ -1880,8 +1030,7 @@ "line": 46, "column": 11, "offset": 879 - }, - "indent": [] + } } }, { @@ -1893,63 +1042,8 @@ "type": "paragraph", "children": [ { - "type": "linkReference", - "identifier": "a\\\\\\a", - "label": "a\\\\\\a", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "a", - "position": { - "start": { - "line": 47, - "column": 6, - "offset": 885 - }, - "end": { - "line": 47, - "column": 7, - "offset": 886 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\\", - "position": { - "start": { - "line": 47, - "column": 7, - "offset": 886 - }, - "end": { - "line": 47, - "column": 9, - "offset": 888 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\\a", - "position": { - "start": { - "line": 47, - "column": 9, - "offset": 888 - }, - "end": { - "line": 47, - "column": 11, - "offset": 890 - }, - "indent": [] - } - } - ], + "type": "text", + "value": "[a\\\\a]", "position": { "start": { "line": 47, @@ -1960,8 +1054,7 @@ "line": 47, "column": 12, "offset": 891 - }, - "indent": [] + } } } ], @@ -1975,8 +1068,7 @@ "line": 47, "column": 12, "offset": 891 - }, - "indent": [] + } } } ], @@ -1990,8 +1082,7 @@ "line": 47, "column": 12, "offset": 891 - }, - "indent": [] + } } }, { @@ -2003,63 +1094,8 @@ "type": "paragraph", "children": [ { - "type": "linkReference", - "identifier": "a_a\\_a", - "label": "a_a\\_a", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "a_a", - "position": { - "start": { - "line": 48, - "column": 6, - "offset": 897 - }, - "end": { - "line": 48, - "column": 9, - "offset": 900 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "_", - "position": { - "start": { - "line": 48, - "column": 9, - "offset": 900 - }, - "end": { - "line": 48, - "column": 11, - "offset": 902 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "a", - "position": { - "start": { - "line": 48, - "column": 11, - "offset": 902 - }, - "end": { - "line": 48, - "column": 12, - "offset": 903 - }, - "indent": [] - } - } - ], + "type": "text", + "value": "[a_a_a]", "position": { "start": { "line": 48, @@ -2070,8 +1106,7 @@ "line": 48, "column": 13, "offset": 904 - }, - "indent": [] + } } } ], @@ -2085,8 +1120,7 @@ "line": 48, "column": 13, "offset": 904 - }, - "indent": [] + } } } ], @@ -2100,8 +1134,7 @@ "line": 48, "column": 13, "offset": 904 - }, - "indent": [] + } } } ], @@ -2115,14 +1148,7 @@ "line": 48, "column": 13, "offset": 904 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1 - ] + } } }, { @@ -2144,8 +1170,7 @@ "line": 50, "column": 7, "offset": 912 - }, - "indent": [] + } } } ], @@ -2159,8 +1184,7 @@ "line": 50, "column": 9, "offset": 914 - }, - "indent": [] + } } } ], @@ -2174,8 +1198,7 @@ "line": 50, "column": 9, "offset": 914 - }, - "indent": [] + } } }, { @@ -2194,8 +1217,7 @@ "line": 52, "column": 33, "offset": 948 - }, - "indent": [] + } } } ], @@ -2209,8 +1231,7 @@ "line": 52, "column": 33, "offset": 948 - }, - "indent": [] + } } }, { @@ -2229,7 +1250,7 @@ "children": [ { "type": "text", - "value": "http\\://user:password@host:port/path?key=value#fragment", + "value": "http://user:password@host:port/path?key=value#fragment", "position": { "start": { "line": 54, @@ -2240,8 +1261,7 @@ "line": 54, "column": 60, "offset": 1009 - }, - "indent": [] + } } } ], @@ -2255,8 +1275,7 @@ "line": 54, "column": 60, "offset": 1009 - }, - "indent": [] + } } } ], @@ -2270,8 +1289,7 @@ "line": 54, "column": 60, "offset": 1009 - }, - "indent": [] + } } }, { @@ -2284,7 +1302,7 @@ "children": [ { "type": "text", - "value": "https\\://user:password@host:port/path?key=value#fragment", + "value": "https://user:password@host:port/path?key=value#fragment", "position": { "start": { "line": 55, @@ -2295,8 +1313,7 @@ "line": 55, "column": 61, "offset": 1070 - }, - "indent": [] + } } } ], @@ -2310,8 +1327,7 @@ "line": 55, "column": 61, "offset": 1070 - }, - "indent": [] + } } } ], @@ -2325,8 +1341,7 @@ "line": 55, "column": 61, "offset": 1070 - }, - "indent": [] + } } }, { @@ -2339,53 +1354,18 @@ "children": [ { "type": "text", - "value": "http", + "value": "http://user:password@host:port/path?key=value#fragment", "position": { "start": { "line": 56, "column": 5, "offset": 1075 }, - "end": { - "line": 56, - "column": 9, - "offset": 1079 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ":", - "position": { - "start": { - "line": 56, - "column": 9, - "offset": 1079 - }, - "end": { - "line": 56, - "column": 16, - "offset": 1086 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "//user:password@host:port/path?key=value#fragment", - "position": { - "start": { - "line": 56, - "column": 16, - "offset": 1086 - }, "end": { "line": 56, "column": 65, "offset": 1135 - }, - "indent": [] + } } } ], @@ -2399,8 +1379,7 @@ "line": 56, "column": 65, "offset": 1135 - }, - "indent": [] + } } } ], @@ -2414,8 +1393,7 @@ "line": 56, "column": 65, "offset": 1135 - }, - "indent": [] + } } }, { @@ -2428,7 +1406,7 @@ "children": [ { "type": "text", - "value": "https", + "value": "https://user:password@host:port/path?key=value#fragment", "position": { "start": { "line": 57, @@ -2437,59 +1415,23 @@ }, "end": { "line": 57, - "column": 10, - "offset": 1145 - }, - "indent": [] + "column": 66, + "offset": 1201 + } } - }, - { - "type": "text", - "value": ":", - "position": { - "start": { - "line": 57, - "column": 10, - "offset": 1145 - }, - "end": { - "line": 57, - "column": 17, - "offset": 1152 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "//user:password@host:port/path?key=value#fragment", - "position": { - "start": { - "line": 57, - "column": 17, - "offset": 1152 - }, - "end": { - "line": 57, - "column": 66, - "offset": 1201 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 57, - "column": 5, - "offset": 1140 + } + ], + "position": { + "start": { + "line": 57, + "column": 5, + "offset": 1140 }, "end": { "line": 57, "column": 66, "offset": 1201 - }, - "indent": [] + } } } ], @@ -2503,8 +1445,7 @@ "line": 57, "column": 66, "offset": 1201 - }, - "indent": [] + } } } ], @@ -2518,12 +1459,7 @@ "line": 57, "column": 66, "offset": 1201 - }, - "indent": [ - 1, - 1, - 1 - ] + } } }, { @@ -2531,89 +1467,18 @@ "children": [ { "type": "text", - "value": "Double tildes should be ", + "value": "Double tildes should be ~~escaped~~.\nAnd here: foo~~.", "position": { "start": { "line": 59, "column": 1, "offset": 1203 }, - "end": { - "line": 59, - "column": 25, - "offset": 1227 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "~", - "position": { - "start": { - "line": 59, - "column": 25, - "offset": 1227 - }, - "end": { - "line": 59, - "column": 27, - "offset": 1229 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "~escaped", - "position": { - "start": { - "line": 59, - "column": 27, - "offset": 1229 - }, - "end": { - "line": 59, - "column": 35, - "offset": 1237 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "~", - "position": { - "start": { - "line": 59, - "column": 35, - "offset": 1237 - }, - "end": { - "line": 59, - "column": 37, - "offset": 1239 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "~.\nAnd here: foo~~.", - "position": { - "start": { - "line": 59, - "column": 37, - "offset": 1239 - }, "end": { "line": 60, "column": 17, "offset": 1258 - }, - "indent": [ - 1 - ] + } } } ], @@ -2627,10 +1492,7 @@ "line": 60, "column": 17, "offset": 1258 - }, - "indent": [ - 1 - ] + } } }, { @@ -2649,8 +1511,7 @@ "line": 62, "column": 36, "offset": 1295 - }, - "indent": [] + } } } ], @@ -2664,404 +1525,92 @@ "line": 62, "column": 36, "offset": 1295 - }, - "indent": [] - } - }, - { - "type": "table", - "align": [ - null, - null - ], - "children": [ - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "here", - "position": { - "start": { - "line": 64, - "column": 3, - "offset": 1299 - }, - "end": { - "line": 64, - "column": 7, - "offset": 1303 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 64, - "column": 3, - "offset": 1299 - }, - "end": { - "line": 64, - "column": 9, - "offset": 1305 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "they", - "position": { - "start": { - "line": 64, - "column": 12, - "offset": 1308 - }, - "end": { - "line": 64, - "column": 16, - "offset": 1312 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 64, - "column": 12, - "offset": 1308 - }, - "end": { - "line": 64, - "column": 20, - "offset": 1316 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 64, - "column": 1, - "offset": 1297 - }, - "end": { - "line": 64, - "column": 22, - "offset": 1318 - }, - "indent": [] - } - }, - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "should", - "position": { - "start": { - "line": 66, - "column": 3, - "offset": 1343 - }, - "end": { - "line": 66, - "column": 9, - "offset": 1349 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 66, - "column": 3, - "offset": 1343 - }, - "end": { - "line": 66, - "column": 9, - "offset": 1349 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "tho", - "position": { - "start": { - "line": 66, - "column": 12, - "offset": 1352 - }, - "end": { - "line": 66, - "column": 15, - "offset": 1355 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "|", - "position": { - "start": { - "line": 66, - "column": 15, - "offset": 1355 - }, - "end": { - "line": 66, - "column": 17, - "offset": 1357 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "ugh", - "position": { - "start": { - "line": 66, - "column": 17, - "offset": 1357 - }, - "end": { - "line": 66, - "column": 20, - "offset": 1360 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 66, - "column": 12, - "offset": 1352 - }, - "end": { - "line": 66, - "column": 20, - "offset": 1360 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 66, - "column": 1, - "offset": 1341 - }, - "end": { - "line": 66, - "column": 22, - "offset": 1362 - }, - "indent": [] - } } - ], - "position": { - "start": { - "line": 64, - "column": 1, - "offset": 1297 - }, - "end": { - "line": 66, - "column": 22, - "offset": 1362 - }, - "indent": [ - 1, - 1 - ] } }, { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And here:", - "position": { - "start": { - "line": 68, - "column": 1, - "offset": 1364 - }, - "end": { - "line": 68, - "column": 10, - "offset": 1373 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 68, - "column": 1, - "offset": 1364 - }, - "end": { - "line": 68, - "column": 10, - "offset": 1373 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "| here | they |\n", - "position": { - "start": { - "line": 70, - "column": 1, - "offset": 1375 - }, - "end": { - "line": 71, - "column": 1, - "offset": 1395 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "|", - "position": { - "start": { - "line": 71, - "column": 1, - "offset": 1395 - }, - "end": { - "line": 71, - "column": 3, - "offset": 1397 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ---- ", - "position": { - "start": { - "line": 71, - "column": 3, - "offset": 1397 - }, - "end": { - "line": 71, - "column": 9, - "offset": 1403 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "|", - "position": { - "start": { - "line": 71, - "column": 9, - "offset": 1403 - }, - "end": { - "line": 71, - "column": 11, - "offset": 1405 - }, - "indent": [] - } - }, + "type": "paragraph", + "children": [ { "type": "text", - "value": " ----- ", + "value": "| here | they |\n| ------ | -------- |\n| should | tho|ugh |", "position": { "start": { - "line": 71, - "column": 11, - "offset": 1405 + "line": 64, + "column": 1, + "offset": 1297 }, "end": { - "line": 71, - "column": 18, - "offset": 1412 - }, - "indent": [] + "line": 66, + "column": 22, + "offset": 1362 + } } + } + ], + "position": { + "start": { + "line": 64, + "column": 1, + "offset": 1297 }, + "end": { + "line": 66, + "column": 22, + "offset": 1362 + } + } + }, + { + "type": "paragraph", + "children": [ { "type": "text", - "value": "|", + "value": "And here:", "position": { "start": { - "line": 71, - "column": 18, - "offset": 1412 + "line": 68, + "column": 1, + "offset": 1364 }, "end": { - "line": 71, - "column": 20, - "offset": 1414 - }, - "indent": [] + "line": 68, + "column": 10, + "offset": 1373 + } } + } + ], + "position": { + "start": { + "line": 68, + "column": 1, + "offset": 1364 }, + "end": { + "line": 68, + "column": 10, + "offset": 1373 + } + } + }, + { + "type": "paragraph", + "children": [ { "type": "text", - "value": "\n| should | though |", + "value": "| here | they |\n| ---- | ----- |\n| should | though |", "position": { "start": { - "line": 71, - "column": 20, - "offset": 1414 + "line": 70, + "column": 1, + "offset": 1375 }, "end": { "line": 72, "column": 20, "offset": 1434 - }, - "indent": [ - 1 - ] + } } } ], @@ -3075,11 +1624,7 @@ "line": 72, "column": 20, "offset": 1434 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -3098,8 +1643,7 @@ "line": 74, "column": 10, "offset": 1445 - }, - "indent": [] + } } } ], @@ -3113,8 +1657,7 @@ "line": 74, "column": 10, "offset": 1445 - }, - "indent": [] + } } }, { @@ -3122,91 +1665,18 @@ "children": [ { "type": "text", - "value": "here | they\n", + "value": "here | they\n---- | ------\nshould | though", "position": { "start": { "line": 76, "column": 1, "offset": 1447 }, - "end": { - "line": 77, - "column": 1, - "offset": 1461 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "-", - "position": { - "start": { - "line": 77, - "column": 1, - "offset": 1461 - }, - "end": { - "line": 77, - "column": 3, - "offset": 1463 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "--- ", - "position": { - "start": { - "line": 77, - "column": 3, - "offset": 1463 - }, - "end": { - "line": 77, - "column": 7, - "offset": 1467 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "|", - "position": { - "start": { - "line": 77, - "column": 7, - "offset": 1467 - }, - "end": { - "line": 77, - "column": 9, - "offset": 1469 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ------\nshould | though", - "position": { - "start": { - "line": 77, - "column": 9, - "offset": 1469 - }, "end": { "line": 78, "column": 16, "offset": 1492 - }, - "indent": [ - 1 - ] + } } } ], @@ -3220,11 +1690,7 @@ "line": 78, "column": 16, "offset": 1492 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -3246,8 +1712,7 @@ "line": 80, "column": 14, "offset": 1507 - }, - "indent": [] + } } } ], @@ -3261,8 +1726,7 @@ "line": 80, "column": 16, "offset": 1509 - }, - "indent": [] + } } } ], @@ -3276,8 +1740,7 @@ "line": 80, "column": 16, "offset": 1509 - }, - "indent": [] + } } }, { @@ -3296,8 +1759,7 @@ "line": 82, "column": 38, "offset": 1548 - }, - "indent": [] + } } } ], @@ -3311,8 +1773,7 @@ "line": 82, "column": 38, "offset": 1548 - }, - "indent": [] + } } }, { @@ -3331,70 +1792,18 @@ "children": [ { "type": "text", - "value": "\\", + "value": "
", "position": { "start": { "line": 84, "column": 5, "offset": 1554 }, - "end": { - "line": 84, - "column": 6, - "offset": 1555 - }, - "indent": [] - } - }, - { - "type": "html", - "value": "
", - "position": { - "start": { - "line": 84, - "column": 6, - "offset": 1555 - }, - "end": { - "line": 84, - "column": 11, - "offset": 1560 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\\", - "position": { - "start": { - "line": 84, - "column": 11, - "offset": 1560 - }, - "end": { - "line": 84, - "column": 12, - "offset": 1561 - }, - "indent": [] - } - }, - { - "type": "html", - "value": "
", - "position": { - "start": { - "line": 84, - "column": 12, - "offset": 1561 - }, "end": { "line": 84, "column": 18, "offset": 1567 - }, - "indent": [] + } } } ], @@ -3408,8 +1817,7 @@ "line": 84, "column": 18, "offset": 1567 - }, - "indent": [] + } } } ], @@ -3423,8 +1831,7 @@ "line": 84, "column": 18, "offset": 1567 - }, - "indent": [] + } } }, { @@ -3437,7 +1844,7 @@ "children": [ { "type": "text", - "value": "\\", + "value": "", "position": { "start": { "line": 85, @@ -3448,8 +1855,7 @@ "line": 85, "column": 24, "offset": 1591 - }, - "indent": [] + } } } ], @@ -3463,8 +1869,7 @@ "line": 85, "column": 24, "offset": 1591 - }, - "indent": [] + } } } ], @@ -3478,8 +1883,7 @@ "line": 85, "column": 24, "offset": 1591 - }, - "indent": [] + } } }, { @@ -3492,70 +1896,18 @@ "children": [ { "type": "text", - "value": "<", + "value": "
", "position": { "start": { "line": 86, "column": 5, "offset": 1596 }, - "end": { - "line": 86, - "column": 9, - "offset": 1600 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "div>", - "position": { - "start": { - "line": 86, - "column": 9, - "offset": 1600 - }, - "end": { - "line": 86, - "column": 13, - "offset": 1604 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "<", - "position": { - "start": { - "line": 86, - "column": 13, - "offset": 1604 - }, - "end": { - "line": 86, - "column": 17, - "offset": 1608 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "/div>", - "position": { - "start": { - "line": 86, - "column": 17, - "offset": 1608 - }, "end": { "line": 86, "column": 22, "offset": 1613 - }, - "indent": [] + } } } ], @@ -3569,8 +1921,7 @@ "line": 86, "column": 22, "offset": 1613 - }, - "indent": [] + } } } ], @@ -3584,8 +1935,7 @@ "line": 86, "column": 22, "offset": 1613 - }, - "indent": [] + } } }, { @@ -3598,70 +1948,18 @@ "children": [ { "type": "text", - "value": "<", + "value": "", "position": { "start": { "line": 87, "column": 5, "offset": 1618 }, - "end": { - "line": 87, - "column": 9, - "offset": 1622 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "http", - "position": { - "start": { - "line": 87, - "column": 9, - "offset": 1622 - }, - "end": { - "line": 87, - "column": 13, - "offset": 1626 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ":", - "position": { - "start": { - "line": 87, - "column": 13, - "offset": 1626 - }, - "end": { - "line": 87, - "column": 20, - "offset": 1633 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "google.com>", - "position": { - "start": { - "line": 87, - "column": 20, - "offset": 1633 - }, "end": { "line": 87, "column": 31, "offset": 1644 - }, - "indent": [] + } } } ], @@ -3675,8 +1973,7 @@ "line": 87, "column": 31, "offset": 1644 - }, - "indent": [] + } } } ], @@ -3690,8 +1987,7 @@ "line": 87, "column": 31, "offset": 1644 - }, - "indent": [] + } } } ], @@ -3705,12 +2001,7 @@ "line": 87, "column": 31, "offset": 1644 - }, - "indent": [ - 1, - 1, - 1 - ] + } } } ], diff --git a/test/fixtures/tree/stringify-escape.nogfm.commonmark.json b/test/fixtures/tree/stringify-escape.nogfm.commonmark.json deleted file mode 100644 index 96d98329b..000000000 --- a/test/fixtures/tree/stringify-escape.nogfm.commonmark.json +++ /dev/null @@ -1,3688 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Characters that should be escaped in general:", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 46, - "offset": 45 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 46, - "offset": 45 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "\\", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 47 - }, - "end": { - "line": 3, - "column": 3, - "offset": 49 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 49 - }, - "end": { - "line": 3, - "column": 4, - "offset": 50 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "`", - "position": { - "start": { - "line": 3, - "column": 4, - "offset": 50 - }, - "end": { - "line": 3, - "column": 6, - "offset": 52 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 3, - "column": 6, - "offset": 52 - }, - "end": { - "line": 3, - "column": 7, - "offset": 53 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "*", - "position": { - "start": { - "line": 3, - "column": 7, - "offset": 53 - }, - "end": { - "line": 3, - "column": 9, - "offset": 55 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 3, - "column": 9, - "offset": 55 - }, - "end": { - "line": 3, - "column": 10, - "offset": 56 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "[", - "position": { - "start": { - "line": 3, - "column": 10, - "offset": 56 - }, - "end": { - "line": 3, - "column": 12, - "offset": 58 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 47 - }, - "end": { - "line": 3, - "column": 12, - "offset": 58 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Characters that shouldn't:", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 60 - }, - "end": { - "line": 5, - "column": 27, - "offset": 86 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 60 - }, - "end": { - "line": 5, - "column": 27, - "offset": 86 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "{}]()#+-.!>\"$%',/:;=?@^~", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 88 - }, - "end": { - "line": 7, - "column": 25, - "offset": 112 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 88 - }, - "end": { - "line": 7, - "column": 25, - "offset": 112 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Underscores are ", - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 114 - }, - "end": { - "line": 9, - "column": 17, - "offset": 130 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "_", - "position": { - "start": { - "line": 9, - "column": 17, - "offset": 130 - }, - "end": { - "line": 9, - "column": 19, - "offset": 132 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "escaped", - "position": { - "start": { - "line": 9, - "column": 19, - "offset": 132 - }, - "end": { - "line": 9, - "column": 26, - "offset": 139 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "_", - "position": { - "start": { - "line": 9, - "column": 26, - "offset": 139 - }, - "end": { - "line": 9, - "column": 28, - "offset": 141 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " unless they appear in_the_middle_of_a_word.\nor ", - "position": { - "start": { - "line": 9, - "column": 28, - "offset": 141 - }, - "end": { - "line": 10, - "column": 4, - "offset": 189 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "_here", - "position": { - "start": { - "line": 10, - "column": 6, - "offset": 191 - }, - "end": { - "line": 10, - "column": 11, - "offset": 196 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 10, - "column": 4, - "offset": 189 - }, - "end": { - "line": 10, - "column": 13, - "offset": 198 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ", or here__", - "position": { - "start": { - "line": 10, - "column": 13, - "offset": 198 - }, - "end": { - "line": 10, - "column": 24, - "offset": 209 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 114 - }, - "end": { - "line": 10, - "column": 24, - "offset": 209 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Ampersands are escaped only when they would otherwise start an entity:", - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 211 - }, - "end": { - "line": 12, - "column": 71, - "offset": 281 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 211 - }, - "end": { - "line": 12, - "column": 71, - "offset": 281 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "&", - "position": { - "start": { - "line": 14, - "column": 5, - "offset": 287 - }, - "end": { - "line": 14, - "column": 7, - "offset": 289 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "copycat ", - "position": { - "start": { - "line": 14, - "column": 7, - "offset": 289 - }, - "end": { - "line": 14, - "column": 15, - "offset": 297 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "&", - "position": { - "start": { - "line": 14, - "column": 15, - "offset": 297 - }, - "end": { - "line": 14, - "column": 17, - "offset": 299 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "amp; ", - "position": { - "start": { - "line": 14, - "column": 17, - "offset": 299 - }, - "end": { - "line": 14, - "column": 22, - "offset": 304 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "&", - "position": { - "start": { - "line": 14, - "column": 22, - "offset": 304 - }, - "end": { - "line": 14, - "column": 24, - "offset": 306 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "#x26", - "position": { - "start": { - "line": 14, - "column": 24, - "offset": 306 - }, - "end": { - "line": 14, - "column": 28, - "offset": 310 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 5, - "offset": 287 - }, - "end": { - "line": 14, - "column": 28, - "offset": 310 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 283 - }, - "end": { - "line": 14, - "column": 28, - "offset": 310 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "&", - "position": { - "start": { - "line": 15, - "column": 5, - "offset": 315 - }, - "end": { - "line": 15, - "column": 10, - "offset": 320 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "copycat ", - "position": { - "start": { - "line": 15, - "column": 10, - "offset": 320 - }, - "end": { - "line": 15, - "column": 18, - "offset": 328 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "&", - "position": { - "start": { - "line": 15, - "column": 18, - "offset": 328 - }, - "end": { - "line": 15, - "column": 23, - "offset": 333 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "amp; ", - "position": { - "start": { - "line": 15, - "column": 23, - "offset": 333 - }, - "end": { - "line": 15, - "column": 28, - "offset": 338 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "&", - "position": { - "start": { - "line": 15, - "column": 28, - "offset": 338 - }, - "end": { - "line": 15, - "column": 33, - "offset": 343 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "#x26", - "position": { - "start": { - "line": 15, - "column": 33, - "offset": 343 - }, - "end": { - "line": 15, - "column": 37, - "offset": 347 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 5, - "offset": 315 - }, - "end": { - "line": 15, - "column": 37, - "offset": 347 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 311 - }, - "end": { - "line": 15, - "column": 37, - "offset": 347 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "But: ©cat; ", - "position": { - "start": { - "line": 16, - "column": 5, - "offset": 352 - }, - "end": { - "line": 16, - "column": 16, - "offset": 363 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "≬", - "position": { - "start": { - "line": 16, - "column": 16, - "offset": 363 - }, - "end": { - "line": 16, - "column": 27, - "offset": 374 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " &foo; & AT&T &c", - "position": { - "start": { - "line": 16, - "column": 27, - "offset": 374 - }, - "end": { - "line": 16, - "column": 43, - "offset": 390 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 5, - "offset": 352 - }, - "end": { - "line": 16, - "column": 43, - "offset": 390 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 348 - }, - "end": { - "line": 16, - "column": 43, - "offset": 390 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 283 - }, - "end": { - "line": 16, - "column": 43, - "offset": 390 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Open parenthesis should be escaped after a shortcut reference:", - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 392 - }, - "end": { - "line": 18, - "column": 63, - "offset": 454 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 392 - }, - "end": { - "line": 18, - "column": 63, - "offset": 454 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "ref", - "label": "ref", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "ref", - "position": { - "start": { - "line": 20, - "column": 2, - "offset": 457 - }, - "end": { - "line": 20, - "column": 5, - "offset": 460 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 1, - "offset": 456 - }, - "end": { - "line": 20, - "column": 6, - "offset": 461 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(", - "position": { - "start": { - "line": 20, - "column": 6, - "offset": 461 - }, - "end": { - "line": 20, - "column": 8, - "offset": 463 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "text)", - "position": { - "start": { - "line": 20, - "column": 8, - "offset": 463 - }, - "end": { - "line": 20, - "column": 13, - "offset": 468 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 1, - "offset": 456 - }, - "end": { - "line": 20, - "column": 13, - "offset": 468 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And after a shortcut reference and a space (for GitHub):", - "position": { - "start": { - "line": 22, - "column": 1, - "offset": 470 - }, - "end": { - "line": 22, - "column": 57, - "offset": 526 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 22, - "column": 1, - "offset": 470 - }, - "end": { - "line": 22, - "column": 57, - "offset": 526 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "ref", - "label": "ref", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "ref", - "position": { - "start": { - "line": 24, - "column": 2, - "offset": 529 - }, - "end": { - "line": 24, - "column": 5, - "offset": 532 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 24, - "column": 1, - "offset": 528 - }, - "end": { - "line": 24, - "column": 6, - "offset": 533 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 24, - "column": 6, - "offset": 533 - }, - "end": { - "line": 24, - "column": 7, - "offset": 534 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(", - "position": { - "start": { - "line": 24, - "column": 7, - "offset": 534 - }, - "end": { - "line": 24, - "column": 9, - "offset": 536 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "text)", - "position": { - "start": { - "line": 24, - "column": 9, - "offset": 536 - }, - "end": { - "line": 24, - "column": 14, - "offset": 541 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 24, - "column": 1, - "offset": 528 - }, - "end": { - "line": 24, - "column": 14, - "offset": 541 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hyphen should be escaped at the beginning of a line:", - "position": { - "start": { - "line": 26, - "column": 1, - "offset": 543 - }, - "end": { - "line": 26, - "column": 53, - "offset": 595 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 26, - "column": 1, - "offset": 543 - }, - "end": { - "line": 26, - "column": 53, - "offset": 595 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "-", - "position": { - "start": { - "line": 28, - "column": 1, - "offset": 597 - }, - "end": { - "line": 28, - "column": 3, - "offset": 599 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " not a list item\n", - "position": { - "start": { - "line": 28, - "column": 3, - "offset": 599 - }, - "end": { - "line": 29, - "column": 1, - "offset": 616 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "-", - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 616 - }, - "end": { - "line": 29, - "column": 3, - "offset": 618 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " not a list item\n ", - "position": { - "start": { - "line": 29, - "column": 3, - "offset": 618 - }, - "end": { - "line": 30, - "column": 3, - "offset": 637 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "+", - "position": { - "start": { - "line": 30, - "column": 3, - "offset": 637 - }, - "end": { - "line": 30, - "column": 5, - "offset": 639 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " not a list item", - "position": { - "start": { - "line": 30, - "column": 5, - "offset": 639 - }, - "end": { - "line": 30, - "column": 21, - "offset": 655 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 28, - "column": 1, - "offset": 597 - }, - "end": { - "line": 30, - "column": 21, - "offset": 655 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Same for angle brackets:", - "position": { - "start": { - "line": 32, - "column": 1, - "offset": 657 - }, - "end": { - "line": 32, - "column": 25, - "offset": 681 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 32, - "column": 1, - "offset": 657 - }, - "end": { - "line": 32, - "column": 25, - "offset": 681 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": ">", - "position": { - "start": { - "line": 34, - "column": 1, - "offset": 683 - }, - "end": { - "line": 34, - "column": 3, - "offset": 685 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " not a block quote", - "position": { - "start": { - "line": 34, - "column": 3, - "offset": 685 - }, - "end": { - "line": 34, - "column": 21, - "offset": 703 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 34, - "column": 1, - "offset": 683 - }, - "end": { - "line": 34, - "column": 21, - "offset": 703 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And hash signs:", - "position": { - "start": { - "line": 36, - "column": 1, - "offset": 705 - }, - "end": { - "line": 36, - "column": 16, - "offset": 720 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 36, - "column": 1, - "offset": 705 - }, - "end": { - "line": 36, - "column": 16, - "offset": 720 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "#", - "position": { - "start": { - "line": 38, - "column": 1, - "offset": 722 - }, - "end": { - "line": 38, - "column": 3, - "offset": 724 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " not a heading\n ", - "position": { - "start": { - "line": 38, - "column": 3, - "offset": 724 - }, - "end": { - "line": 39, - "column": 3, - "offset": 741 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "#", - "position": { - "start": { - "line": 39, - "column": 3, - "offset": 741 - }, - "end": { - "line": 39, - "column": 5, - "offset": 743 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "# not a subheading", - "position": { - "start": { - "line": 39, - "column": 5, - "offset": 743 - }, - "end": { - "line": 39, - "column": 23, - "offset": 761 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 38, - "column": 1, - "offset": 722 - }, - "end": { - "line": 39, - "column": 23, - "offset": 761 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Text under a shortcut reference should be preserved verbatim:", - "position": { - "start": { - "line": 41, - "column": 1, - "offset": 763 - }, - "end": { - "line": 41, - "column": 62, - "offset": 824 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 41, - "column": 1, - "offset": 763 - }, - "end": { - "line": 41, - "column": 62, - "offset": 824 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "two*three", - "label": "two*three", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "two*three", - "position": { - "start": { - "line": 43, - "column": 6, - "offset": 831 - }, - "end": { - "line": 43, - "column": 15, - "offset": 840 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 43, - "column": 5, - "offset": 830 - }, - "end": { - "line": 43, - "column": 16, - "offset": 841 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 43, - "column": 5, - "offset": 830 - }, - "end": { - "line": 43, - "column": 16, - "offset": 841 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 43, - "column": 1, - "offset": 826 - }, - "end": { - "line": 43, - "column": 16, - "offset": 841 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "two\\*three", - "label": "two\\*three", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "two", - "position": { - "start": { - "line": 44, - "column": 6, - "offset": 847 - }, - "end": { - "line": 44, - "column": 9, - "offset": 850 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "*", - "position": { - "start": { - "line": 44, - "column": 9, - "offset": 850 - }, - "end": { - "line": 44, - "column": 11, - "offset": 852 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "three", - "position": { - "start": { - "line": 44, - "column": 11, - "offset": 852 - }, - "end": { - "line": 44, - "column": 16, - "offset": 857 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 44, - "column": 5, - "offset": 846 - }, - "end": { - "line": 44, - "column": 17, - "offset": 858 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 44, - "column": 5, - "offset": 846 - }, - "end": { - "line": 44, - "column": 17, - "offset": 858 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 44, - "column": 1, - "offset": 842 - }, - "end": { - "line": 44, - "column": 17, - "offset": 858 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "a\\a", - "label": "a\\a", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "a\\a", - "position": { - "start": { - "line": 45, - "column": 6, - "offset": 864 - }, - "end": { - "line": 45, - "column": 9, - "offset": 867 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 45, - "column": 5, - "offset": 863 - }, - "end": { - "line": 45, - "column": 10, - "offset": 868 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 45, - "column": 5, - "offset": 863 - }, - "end": { - "line": 45, - "column": 10, - "offset": 868 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 45, - "column": 1, - "offset": 859 - }, - "end": { - "line": 45, - "column": 10, - "offset": 868 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "a\\\\a", - "label": "a\\\\a", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "a", - "position": { - "start": { - "line": 46, - "column": 6, - "offset": 874 - }, - "end": { - "line": 46, - "column": 7, - "offset": 875 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\\", - "position": { - "start": { - "line": 46, - "column": 7, - "offset": 875 - }, - "end": { - "line": 46, - "column": 9, - "offset": 877 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "a", - "position": { - "start": { - "line": 46, - "column": 9, - "offset": 877 - }, - "end": { - "line": 46, - "column": 10, - "offset": 878 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 46, - "column": 5, - "offset": 873 - }, - "end": { - "line": 46, - "column": 11, - "offset": 879 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 46, - "column": 5, - "offset": 873 - }, - "end": { - "line": 46, - "column": 11, - "offset": 879 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 46, - "column": 1, - "offset": 869 - }, - "end": { - "line": 46, - "column": 11, - "offset": 879 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "a\\\\\\a", - "label": "a\\\\\\a", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "a", - "position": { - "start": { - "line": 47, - "column": 6, - "offset": 885 - }, - "end": { - "line": 47, - "column": 7, - "offset": 886 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\\", - "position": { - "start": { - "line": 47, - "column": 7, - "offset": 886 - }, - "end": { - "line": 47, - "column": 9, - "offset": 888 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\\a", - "position": { - "start": { - "line": 47, - "column": 9, - "offset": 888 - }, - "end": { - "line": 47, - "column": 11, - "offset": 890 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 47, - "column": 5, - "offset": 884 - }, - "end": { - "line": 47, - "column": 12, - "offset": 891 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 47, - "column": 5, - "offset": 884 - }, - "end": { - "line": 47, - "column": 12, - "offset": 891 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 47, - "column": 1, - "offset": 880 - }, - "end": { - "line": 47, - "column": 12, - "offset": 891 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "a_a\\_a", - "label": "a_a\\_a", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "a_a", - "position": { - "start": { - "line": 48, - "column": 6, - "offset": 897 - }, - "end": { - "line": 48, - "column": 9, - "offset": 900 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "_", - "position": { - "start": { - "line": 48, - "column": 9, - "offset": 900 - }, - "end": { - "line": 48, - "column": 11, - "offset": 902 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "a", - "position": { - "start": { - "line": 48, - "column": 11, - "offset": 902 - }, - "end": { - "line": 48, - "column": 12, - "offset": 903 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 48, - "column": 5, - "offset": 896 - }, - "end": { - "line": 48, - "column": 13, - "offset": 904 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 48, - "column": 5, - "offset": 896 - }, - "end": { - "line": 48, - "column": 13, - "offset": 904 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 48, - "column": 1, - "offset": 892 - }, - "end": { - "line": 48, - "column": 13, - "offset": 904 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 43, - "column": 1, - "offset": 826 - }, - "end": { - "line": 48, - "column": 13, - "offset": 904 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "GFM:", - "position": { - "start": { - "line": 50, - "column": 3, - "offset": 908 - }, - "end": { - "line": 50, - "column": 7, - "offset": 912 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 50, - "column": 1, - "offset": 906 - }, - "end": { - "line": 50, - "column": 9, - "offset": 914 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 50, - "column": 1, - "offset": 906 - }, - "end": { - "line": 50, - "column": 9, - "offset": 914 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Colon should be escaped in URLs:", - "position": { - "start": { - "line": 52, - "column": 1, - "offset": 916 - }, - "end": { - "line": 52, - "column": 33, - "offset": 948 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 52, - "column": 1, - "offset": 916 - }, - "end": { - "line": 52, - "column": 33, - "offset": 948 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "http", - "position": { - "start": { - "line": 54, - "column": 5, - "offset": 954 - }, - "end": { - "line": 54, - "column": 9, - "offset": 958 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ":", - "position": { - "start": { - "line": 54, - "column": 9, - "offset": 958 - }, - "end": { - "line": 54, - "column": 11, - "offset": 960 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "//user:password@host:port/path?key=value#fragment", - "position": { - "start": { - "line": 54, - "column": 11, - "offset": 960 - }, - "end": { - "line": 54, - "column": 60, - "offset": 1009 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 54, - "column": 5, - "offset": 954 - }, - "end": { - "line": 54, - "column": 60, - "offset": 1009 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 54, - "column": 1, - "offset": 950 - }, - "end": { - "line": 54, - "column": 60, - "offset": 1009 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "https", - "position": { - "start": { - "line": 55, - "column": 5, - "offset": 1014 - }, - "end": { - "line": 55, - "column": 10, - "offset": 1019 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ":", - "position": { - "start": { - "line": 55, - "column": 10, - "offset": 1019 - }, - "end": { - "line": 55, - "column": 12, - "offset": 1021 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "//user:password@host:port/path?key=value#fragment", - "position": { - "start": { - "line": 55, - "column": 12, - "offset": 1021 - }, - "end": { - "line": 55, - "column": 61, - "offset": 1070 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 55, - "column": 5, - "offset": 1014 - }, - "end": { - "line": 55, - "column": 61, - "offset": 1070 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 55, - "column": 1, - "offset": 1010 - }, - "end": { - "line": 55, - "column": 61, - "offset": 1070 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "http", - "position": { - "start": { - "line": 56, - "column": 5, - "offset": 1075 - }, - "end": { - "line": 56, - "column": 9, - "offset": 1079 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ":", - "position": { - "start": { - "line": 56, - "column": 9, - "offset": 1079 - }, - "end": { - "line": 56, - "column": 16, - "offset": 1086 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "//user:password@host:port/path?key=value#fragment", - "position": { - "start": { - "line": 56, - "column": 16, - "offset": 1086 - }, - "end": { - "line": 56, - "column": 65, - "offset": 1135 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 56, - "column": 5, - "offset": 1075 - }, - "end": { - "line": 56, - "column": 65, - "offset": 1135 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 56, - "column": 1, - "offset": 1071 - }, - "end": { - "line": 56, - "column": 65, - "offset": 1135 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "https", - "position": { - "start": { - "line": 57, - "column": 5, - "offset": 1140 - }, - "end": { - "line": 57, - "column": 10, - "offset": 1145 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ":", - "position": { - "start": { - "line": 57, - "column": 10, - "offset": 1145 - }, - "end": { - "line": 57, - "column": 17, - "offset": 1152 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "//user:password@host:port/path?key=value#fragment", - "position": { - "start": { - "line": 57, - "column": 17, - "offset": 1152 - }, - "end": { - "line": 57, - "column": 66, - "offset": 1201 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 57, - "column": 5, - "offset": 1140 - }, - "end": { - "line": 57, - "column": 66, - "offset": 1201 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 57, - "column": 1, - "offset": 1136 - }, - "end": { - "line": 57, - "column": 66, - "offset": 1201 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 54, - "column": 1, - "offset": 950 - }, - "end": { - "line": 57, - "column": 66, - "offset": 1201 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Double tildes should be ", - "position": { - "start": { - "line": 59, - "column": 1, - "offset": 1203 - }, - "end": { - "line": 59, - "column": 25, - "offset": 1227 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "~", - "position": { - "start": { - "line": 59, - "column": 25, - "offset": 1227 - }, - "end": { - "line": 59, - "column": 27, - "offset": 1229 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "~escaped", - "position": { - "start": { - "line": 59, - "column": 27, - "offset": 1229 - }, - "end": { - "line": 59, - "column": 35, - "offset": 1237 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "~", - "position": { - "start": { - "line": 59, - "column": 35, - "offset": 1237 - }, - "end": { - "line": 59, - "column": 37, - "offset": 1239 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "~.\nAnd here: foo~~.", - "position": { - "start": { - "line": 59, - "column": 37, - "offset": 1239 - }, - "end": { - "line": 60, - "column": 17, - "offset": 1258 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 59, - "column": 1, - "offset": 1203 - }, - "end": { - "line": 60, - "column": 17, - "offset": 1258 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Pipes should not be escaped here: |", - "position": { - "start": { - "line": 62, - "column": 1, - "offset": 1260 - }, - "end": { - "line": 62, - "column": 36, - "offset": 1295 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 62, - "column": 1, - "offset": 1260 - }, - "end": { - "line": 62, - "column": 36, - "offset": 1295 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "| here | they |\n| ------ | -------- |\n| should | tho", - "position": { - "start": { - "line": 64, - "column": 1, - "offset": 1297 - }, - "end": { - "line": 66, - "column": 15, - "offset": 1355 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "text", - "value": "|", - "position": { - "start": { - "line": 66, - "column": 15, - "offset": 1355 - }, - "end": { - "line": 66, - "column": 17, - "offset": 1357 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "ugh |", - "position": { - "start": { - "line": 66, - "column": 17, - "offset": 1357 - }, - "end": { - "line": 66, - "column": 22, - "offset": 1362 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 64, - "column": 1, - "offset": 1297 - }, - "end": { - "line": 66, - "column": 22, - "offset": 1362 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And here:", - "position": { - "start": { - "line": 68, - "column": 1, - "offset": 1364 - }, - "end": { - "line": 68, - "column": 10, - "offset": 1373 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 68, - "column": 1, - "offset": 1364 - }, - "end": { - "line": 68, - "column": 10, - "offset": 1373 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "| here | they |\n", - "position": { - "start": { - "line": 70, - "column": 1, - "offset": 1375 - }, - "end": { - "line": 71, - "column": 1, - "offset": 1395 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "|", - "position": { - "start": { - "line": 71, - "column": 1, - "offset": 1395 - }, - "end": { - "line": 71, - "column": 3, - "offset": 1397 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ---- ", - "position": { - "start": { - "line": 71, - "column": 3, - "offset": 1397 - }, - "end": { - "line": 71, - "column": 9, - "offset": 1403 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "|", - "position": { - "start": { - "line": 71, - "column": 9, - "offset": 1403 - }, - "end": { - "line": 71, - "column": 11, - "offset": 1405 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ----- ", - "position": { - "start": { - "line": 71, - "column": 11, - "offset": 1405 - }, - "end": { - "line": 71, - "column": 18, - "offset": 1412 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "|", - "position": { - "start": { - "line": 71, - "column": 18, - "offset": 1412 - }, - "end": { - "line": 71, - "column": 20, - "offset": 1414 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\n| should | though |", - "position": { - "start": { - "line": 71, - "column": 20, - "offset": 1414 - }, - "end": { - "line": 72, - "column": 20, - "offset": 1434 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 70, - "column": 1, - "offset": 1375 - }, - "end": { - "line": 72, - "column": 20, - "offset": 1434 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And here:", - "position": { - "start": { - "line": 74, - "column": 1, - "offset": 1436 - }, - "end": { - "line": 74, - "column": 10, - "offset": 1445 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 74, - "column": 1, - "offset": 1436 - }, - "end": { - "line": 74, - "column": 10, - "offset": 1445 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "here | they\n", - "position": { - "start": { - "line": 76, - "column": 1, - "offset": 1447 - }, - "end": { - "line": 77, - "column": 1, - "offset": 1461 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "-", - "position": { - "start": { - "line": 77, - "column": 1, - "offset": 1461 - }, - "end": { - "line": 77, - "column": 3, - "offset": 1463 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "--- ", - "position": { - "start": { - "line": 77, - "column": 3, - "offset": 1463 - }, - "end": { - "line": 77, - "column": 7, - "offset": 1467 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "|", - "position": { - "start": { - "line": 77, - "column": 7, - "offset": 1467 - }, - "end": { - "line": 77, - "column": 9, - "offset": 1469 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ------\nshould | though", - "position": { - "start": { - "line": 77, - "column": 9, - "offset": 1469 - }, - "end": { - "line": 78, - "column": 16, - "offset": 1492 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 76, - "column": 1, - "offset": 1447 - }, - "end": { - "line": 78, - "column": 16, - "offset": 1492 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "Commonmark:", - "position": { - "start": { - "line": 80, - "column": 3, - "offset": 1496 - }, - "end": { - "line": 80, - "column": 14, - "offset": 1507 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 80, - "column": 1, - "offset": 1494 - }, - "end": { - "line": 80, - "column": 16, - "offset": 1509 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 80, - "column": 1, - "offset": 1494 - }, - "end": { - "line": 80, - "column": 16, - "offset": 1509 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Open angle bracket should be escaped:", - "position": { - "start": { - "line": 82, - "column": 1, - "offset": 1511 - }, - "end": { - "line": 82, - "column": 38, - "offset": 1548 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 82, - "column": 1, - "offset": 1511 - }, - "end": { - "line": 82, - "column": 38, - "offset": 1548 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "<", - "position": { - "start": { - "line": 84, - "column": 5, - "offset": 1554 - }, - "end": { - "line": 84, - "column": 7, - "offset": 1556 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "div>", - "position": { - "start": { - "line": 84, - "column": 7, - "offset": 1556 - }, - "end": { - "line": 84, - "column": 11, - "offset": 1560 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "<", - "position": { - "start": { - "line": 84, - "column": 11, - "offset": 1560 - }, - "end": { - "line": 84, - "column": 13, - "offset": 1562 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "/div>", - "position": { - "start": { - "line": 84, - "column": 13, - "offset": 1562 - }, - "end": { - "line": 84, - "column": 18, - "offset": 1567 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 84, - "column": 5, - "offset": 1554 - }, - "end": { - "line": 84, - "column": 18, - "offset": 1567 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 84, - "column": 1, - "offset": 1550 - }, - "end": { - "line": 84, - "column": 18, - "offset": 1567 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "<", - "position": { - "start": { - "line": 85, - "column": 5, - "offset": 1572 - }, - "end": { - "line": 85, - "column": 7, - "offset": 1574 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "http", - "position": { - "start": { - "line": 85, - "column": 7, - "offset": 1574 - }, - "end": { - "line": 85, - "column": 11, - "offset": 1578 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ":", - "position": { - "start": { - "line": 85, - "column": 11, - "offset": 1578 - }, - "end": { - "line": 85, - "column": 13, - "offset": 1580 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "google.com>", - "position": { - "start": { - "line": 85, - "column": 13, - "offset": 1580 - }, - "end": { - "line": 85, - "column": 24, - "offset": 1591 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 85, - "column": 5, - "offset": 1572 - }, - "end": { - "line": 85, - "column": 24, - "offset": 1591 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 85, - "column": 1, - "offset": 1568 - }, - "end": { - "line": 85, - "column": 24, - "offset": 1591 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "<", - "position": { - "start": { - "line": 86, - "column": 5, - "offset": 1596 - }, - "end": { - "line": 86, - "column": 9, - "offset": 1600 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "div>", - "position": { - "start": { - "line": 86, - "column": 9, - "offset": 1600 - }, - "end": { - "line": 86, - "column": 13, - "offset": 1604 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "<", - "position": { - "start": { - "line": 86, - "column": 13, - "offset": 1604 - }, - "end": { - "line": 86, - "column": 17, - "offset": 1608 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "/div>", - "position": { - "start": { - "line": 86, - "column": 17, - "offset": 1608 - }, - "end": { - "line": 86, - "column": 22, - "offset": 1613 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 86, - "column": 5, - "offset": 1596 - }, - "end": { - "line": 86, - "column": 22, - "offset": 1613 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 86, - "column": 1, - "offset": 1592 - }, - "end": { - "line": 86, - "column": 22, - "offset": 1613 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "<", - "position": { - "start": { - "line": 87, - "column": 5, - "offset": 1618 - }, - "end": { - "line": 87, - "column": 9, - "offset": 1622 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "http", - "position": { - "start": { - "line": 87, - "column": 9, - "offset": 1622 - }, - "end": { - "line": 87, - "column": 13, - "offset": 1626 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ":", - "position": { - "start": { - "line": 87, - "column": 13, - "offset": 1626 - }, - "end": { - "line": 87, - "column": 20, - "offset": 1633 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "google.com>", - "position": { - "start": { - "line": 87, - "column": 20, - "offset": 1633 - }, - "end": { - "line": 87, - "column": 31, - "offset": 1644 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 87, - "column": 5, - "offset": 1618 - }, - "end": { - "line": 87, - "column": 31, - "offset": 1644 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 87, - "column": 1, - "offset": 1614 - }, - "end": { - "line": 87, - "column": 31, - "offset": 1644 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 84, - "column": 1, - "offset": 1550 - }, - "end": { - "line": 87, - "column": 31, - "offset": 1644 - }, - "indent": [ - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 88, - "column": 1, - "offset": 1645 - } - } -} diff --git a/test/fixtures/tree/stringify-escape.nogfm.commonmark.pedantic.json b/test/fixtures/tree/stringify-escape.nogfm.commonmark.pedantic.json deleted file mode 100644 index 81e8a3916..000000000 --- a/test/fixtures/tree/stringify-escape.nogfm.commonmark.pedantic.json +++ /dev/null @@ -1,3812 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Characters that should be escaped in general:", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 46, - "offset": 45 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 46, - "offset": 45 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "\\", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 47 - }, - "end": { - "line": 3, - "column": 3, - "offset": 49 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 49 - }, - "end": { - "line": 3, - "column": 4, - "offset": 50 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "`", - "position": { - "start": { - "line": 3, - "column": 4, - "offset": 50 - }, - "end": { - "line": 3, - "column": 6, - "offset": 52 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 3, - "column": 6, - "offset": 52 - }, - "end": { - "line": 3, - "column": 7, - "offset": 53 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "*", - "position": { - "start": { - "line": 3, - "column": 7, - "offset": 53 - }, - "end": { - "line": 3, - "column": 9, - "offset": 55 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 3, - "column": 9, - "offset": 55 - }, - "end": { - "line": 3, - "column": 10, - "offset": 56 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "[", - "position": { - "start": { - "line": 3, - "column": 10, - "offset": 56 - }, - "end": { - "line": 3, - "column": 12, - "offset": 58 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 47 - }, - "end": { - "line": 3, - "column": 12, - "offset": 58 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Characters that shouldn't:", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 60 - }, - "end": { - "line": 5, - "column": 27, - "offset": 86 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 60 - }, - "end": { - "line": 5, - "column": 27, - "offset": 86 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "{}]()#+-.!>\"$%',/:;=?@^~", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 88 - }, - "end": { - "line": 7, - "column": 25, - "offset": 112 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 88 - }, - "end": { - "line": 7, - "column": 25, - "offset": 112 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Underscores are ", - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 114 - }, - "end": { - "line": 9, - "column": 17, - "offset": 130 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "_", - "position": { - "start": { - "line": 9, - "column": 17, - "offset": 130 - }, - "end": { - "line": 9, - "column": 19, - "offset": 132 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "escaped", - "position": { - "start": { - "line": 9, - "column": 19, - "offset": 132 - }, - "end": { - "line": 9, - "column": 26, - "offset": 139 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "_", - "position": { - "start": { - "line": 9, - "column": 26, - "offset": 139 - }, - "end": { - "line": 9, - "column": 28, - "offset": 141 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " unless they appear in", - "position": { - "start": { - "line": 9, - "column": 28, - "offset": 141 - }, - "end": { - "line": 9, - "column": 50, - "offset": 163 - }, - "indent": [] - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "the", - "position": { - "start": { - "line": 9, - "column": 51, - "offset": 164 - }, - "end": { - "line": 9, - "column": 54, - "offset": 167 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 50, - "offset": 163 - }, - "end": { - "line": 9, - "column": 55, - "offset": 168 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "middle", - "position": { - "start": { - "line": 9, - "column": 55, - "offset": 168 - }, - "end": { - "line": 9, - "column": 61, - "offset": 174 - }, - "indent": [] - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "of", - "position": { - "start": { - "line": 9, - "column": 62, - "offset": 175 - }, - "end": { - "line": 9, - "column": 64, - "offset": 177 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 61, - "offset": 174 - }, - "end": { - "line": 9, - "column": 65, - "offset": 178 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "a", - "position": { - "start": { - "line": 9, - "column": 65, - "offset": 178 - }, - "end": { - "line": 9, - "column": 66, - "offset": 179 - }, - "indent": [] - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "word.\nor **", - "position": { - "start": { - "line": 9, - "column": 67, - "offset": 180 - }, - "end": { - "line": 10, - "column": 6, - "offset": 191 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 66, - "offset": 179 - }, - "end": { - "line": 10, - "column": 7, - "offset": 192 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "here**, or here__", - "position": { - "start": { - "line": 10, - "column": 7, - "offset": 192 - }, - "end": { - "line": 10, - "column": 24, - "offset": 209 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 114 - }, - "end": { - "line": 10, - "column": 24, - "offset": 209 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Ampersands are escaped only when they would otherwise start an entity:", - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 211 - }, - "end": { - "line": 12, - "column": 71, - "offset": 281 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 211 - }, - "end": { - "line": 12, - "column": 71, - "offset": 281 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "&", - "position": { - "start": { - "line": 14, - "column": 5, - "offset": 287 - }, - "end": { - "line": 14, - "column": 7, - "offset": 289 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "copycat ", - "position": { - "start": { - "line": 14, - "column": 7, - "offset": 289 - }, - "end": { - "line": 14, - "column": 15, - "offset": 297 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "&", - "position": { - "start": { - "line": 14, - "column": 15, - "offset": 297 - }, - "end": { - "line": 14, - "column": 17, - "offset": 299 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "amp; ", - "position": { - "start": { - "line": 14, - "column": 17, - "offset": 299 - }, - "end": { - "line": 14, - "column": 22, - "offset": 304 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "&", - "position": { - "start": { - "line": 14, - "column": 22, - "offset": 304 - }, - "end": { - "line": 14, - "column": 24, - "offset": 306 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "#x26", - "position": { - "start": { - "line": 14, - "column": 24, - "offset": 306 - }, - "end": { - "line": 14, - "column": 28, - "offset": 310 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 5, - "offset": 287 - }, - "end": { - "line": 14, - "column": 28, - "offset": 310 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 283 - }, - "end": { - "line": 14, - "column": 28, - "offset": 310 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "&", - "position": { - "start": { - "line": 15, - "column": 5, - "offset": 315 - }, - "end": { - "line": 15, - "column": 10, - "offset": 320 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "copycat ", - "position": { - "start": { - "line": 15, - "column": 10, - "offset": 320 - }, - "end": { - "line": 15, - "column": 18, - "offset": 328 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "&", - "position": { - "start": { - "line": 15, - "column": 18, - "offset": 328 - }, - "end": { - "line": 15, - "column": 23, - "offset": 333 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "amp; ", - "position": { - "start": { - "line": 15, - "column": 23, - "offset": 333 - }, - "end": { - "line": 15, - "column": 28, - "offset": 338 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "&", - "position": { - "start": { - "line": 15, - "column": 28, - "offset": 338 - }, - "end": { - "line": 15, - "column": 33, - "offset": 343 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "#x26", - "position": { - "start": { - "line": 15, - "column": 33, - "offset": 343 - }, - "end": { - "line": 15, - "column": 37, - "offset": 347 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 5, - "offset": 315 - }, - "end": { - "line": 15, - "column": 37, - "offset": 347 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 311 - }, - "end": { - "line": 15, - "column": 37, - "offset": 347 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "But: ©cat; ", - "position": { - "start": { - "line": 16, - "column": 5, - "offset": 352 - }, - "end": { - "line": 16, - "column": 16, - "offset": 363 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "≬", - "position": { - "start": { - "line": 16, - "column": 16, - "offset": 363 - }, - "end": { - "line": 16, - "column": 27, - "offset": 374 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " &foo; & AT&T &c", - "position": { - "start": { - "line": 16, - "column": 27, - "offset": 374 - }, - "end": { - "line": 16, - "column": 43, - "offset": 390 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 5, - "offset": 352 - }, - "end": { - "line": 16, - "column": 43, - "offset": 390 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 348 - }, - "end": { - "line": 16, - "column": 43, - "offset": 390 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 283 - }, - "end": { - "line": 16, - "column": 43, - "offset": 390 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Open parenthesis should be escaped after a shortcut reference:", - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 392 - }, - "end": { - "line": 18, - "column": 63, - "offset": 454 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 392 - }, - "end": { - "line": 18, - "column": 63, - "offset": 454 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "ref", - "label": "ref", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "ref", - "position": { - "start": { - "line": 20, - "column": 2, - "offset": 457 - }, - "end": { - "line": 20, - "column": 5, - "offset": 460 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 1, - "offset": 456 - }, - "end": { - "line": 20, - "column": 6, - "offset": 461 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(", - "position": { - "start": { - "line": 20, - "column": 6, - "offset": 461 - }, - "end": { - "line": 20, - "column": 8, - "offset": 463 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "text)", - "position": { - "start": { - "line": 20, - "column": 8, - "offset": 463 - }, - "end": { - "line": 20, - "column": 13, - "offset": 468 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 1, - "offset": 456 - }, - "end": { - "line": 20, - "column": 13, - "offset": 468 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And after a shortcut reference and a space (for GitHub):", - "position": { - "start": { - "line": 22, - "column": 1, - "offset": 470 - }, - "end": { - "line": 22, - "column": 57, - "offset": 526 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 22, - "column": 1, - "offset": 470 - }, - "end": { - "line": 22, - "column": 57, - "offset": 526 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "ref", - "label": "ref", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "ref", - "position": { - "start": { - "line": 24, - "column": 2, - "offset": 529 - }, - "end": { - "line": 24, - "column": 5, - "offset": 532 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 24, - "column": 1, - "offset": 528 - }, - "end": { - "line": 24, - "column": 6, - "offset": 533 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 24, - "column": 6, - "offset": 533 - }, - "end": { - "line": 24, - "column": 7, - "offset": 534 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(", - "position": { - "start": { - "line": 24, - "column": 7, - "offset": 534 - }, - "end": { - "line": 24, - "column": 9, - "offset": 536 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "text)", - "position": { - "start": { - "line": 24, - "column": 9, - "offset": 536 - }, - "end": { - "line": 24, - "column": 14, - "offset": 541 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 24, - "column": 1, - "offset": 528 - }, - "end": { - "line": 24, - "column": 14, - "offset": 541 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hyphen should be escaped at the beginning of a line:", - "position": { - "start": { - "line": 26, - "column": 1, - "offset": 543 - }, - "end": { - "line": 26, - "column": 53, - "offset": 595 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 26, - "column": 1, - "offset": 543 - }, - "end": { - "line": 26, - "column": 53, - "offset": 595 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "-", - "position": { - "start": { - "line": 28, - "column": 1, - "offset": 597 - }, - "end": { - "line": 28, - "column": 3, - "offset": 599 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " not a list item\n", - "position": { - "start": { - "line": 28, - "column": 3, - "offset": 599 - }, - "end": { - "line": 29, - "column": 1, - "offset": 616 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "-", - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 616 - }, - "end": { - "line": 29, - "column": 3, - "offset": 618 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " not a list item\n ", - "position": { - "start": { - "line": 29, - "column": 3, - "offset": 618 - }, - "end": { - "line": 30, - "column": 3, - "offset": 637 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "+", - "position": { - "start": { - "line": 30, - "column": 3, - "offset": 637 - }, - "end": { - "line": 30, - "column": 5, - "offset": 639 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " not a list item", - "position": { - "start": { - "line": 30, - "column": 5, - "offset": 639 - }, - "end": { - "line": 30, - "column": 21, - "offset": 655 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 28, - "column": 1, - "offset": 597 - }, - "end": { - "line": 30, - "column": 21, - "offset": 655 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Same for angle brackets:", - "position": { - "start": { - "line": 32, - "column": 1, - "offset": 657 - }, - "end": { - "line": 32, - "column": 25, - "offset": 681 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 32, - "column": 1, - "offset": 657 - }, - "end": { - "line": 32, - "column": 25, - "offset": 681 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": ">", - "position": { - "start": { - "line": 34, - "column": 1, - "offset": 683 - }, - "end": { - "line": 34, - "column": 3, - "offset": 685 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " not a block quote", - "position": { - "start": { - "line": 34, - "column": 3, - "offset": 685 - }, - "end": { - "line": 34, - "column": 21, - "offset": 703 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 34, - "column": 1, - "offset": 683 - }, - "end": { - "line": 34, - "column": 21, - "offset": 703 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And hash signs:", - "position": { - "start": { - "line": 36, - "column": 1, - "offset": 705 - }, - "end": { - "line": 36, - "column": 16, - "offset": 720 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 36, - "column": 1, - "offset": 705 - }, - "end": { - "line": 36, - "column": 16, - "offset": 720 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "#", - "position": { - "start": { - "line": 38, - "column": 1, - "offset": 722 - }, - "end": { - "line": 38, - "column": 3, - "offset": 724 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " not a heading\n ", - "position": { - "start": { - "line": 38, - "column": 3, - "offset": 724 - }, - "end": { - "line": 39, - "column": 3, - "offset": 741 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "#", - "position": { - "start": { - "line": 39, - "column": 3, - "offset": 741 - }, - "end": { - "line": 39, - "column": 5, - "offset": 743 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "# not a subheading", - "position": { - "start": { - "line": 39, - "column": 5, - "offset": 743 - }, - "end": { - "line": 39, - "column": 23, - "offset": 761 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 38, - "column": 1, - "offset": 722 - }, - "end": { - "line": 39, - "column": 23, - "offset": 761 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Text under a shortcut reference should be preserved verbatim:", - "position": { - "start": { - "line": 41, - "column": 1, - "offset": 763 - }, - "end": { - "line": 41, - "column": 62, - "offset": 824 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 41, - "column": 1, - "offset": 763 - }, - "end": { - "line": 41, - "column": 62, - "offset": 824 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "two*three", - "label": "two*three", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "two*three", - "position": { - "start": { - "line": 43, - "column": 6, - "offset": 831 - }, - "end": { - "line": 43, - "column": 15, - "offset": 840 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 43, - "column": 5, - "offset": 830 - }, - "end": { - "line": 43, - "column": 16, - "offset": 841 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 43, - "column": 5, - "offset": 830 - }, - "end": { - "line": 43, - "column": 16, - "offset": 841 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 43, - "column": 1, - "offset": 826 - }, - "end": { - "line": 43, - "column": 16, - "offset": 841 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "two\\*three", - "label": "two\\*three", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "two", - "position": { - "start": { - "line": 44, - "column": 6, - "offset": 847 - }, - "end": { - "line": 44, - "column": 9, - "offset": 850 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "*", - "position": { - "start": { - "line": 44, - "column": 9, - "offset": 850 - }, - "end": { - "line": 44, - "column": 11, - "offset": 852 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "three", - "position": { - "start": { - "line": 44, - "column": 11, - "offset": 852 - }, - "end": { - "line": 44, - "column": 16, - "offset": 857 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 44, - "column": 5, - "offset": 846 - }, - "end": { - "line": 44, - "column": 17, - "offset": 858 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 44, - "column": 5, - "offset": 846 - }, - "end": { - "line": 44, - "column": 17, - "offset": 858 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 44, - "column": 1, - "offset": 842 - }, - "end": { - "line": 44, - "column": 17, - "offset": 858 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "a\\a", - "label": "a\\a", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "a\\a", - "position": { - "start": { - "line": 45, - "column": 6, - "offset": 864 - }, - "end": { - "line": 45, - "column": 9, - "offset": 867 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 45, - "column": 5, - "offset": 863 - }, - "end": { - "line": 45, - "column": 10, - "offset": 868 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 45, - "column": 5, - "offset": 863 - }, - "end": { - "line": 45, - "column": 10, - "offset": 868 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 45, - "column": 1, - "offset": 859 - }, - "end": { - "line": 45, - "column": 10, - "offset": 868 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "a\\\\a", - "label": "a\\\\a", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "a", - "position": { - "start": { - "line": 46, - "column": 6, - "offset": 874 - }, - "end": { - "line": 46, - "column": 7, - "offset": 875 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\\", - "position": { - "start": { - "line": 46, - "column": 7, - "offset": 875 - }, - "end": { - "line": 46, - "column": 9, - "offset": 877 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "a", - "position": { - "start": { - "line": 46, - "column": 9, - "offset": 877 - }, - "end": { - "line": 46, - "column": 10, - "offset": 878 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 46, - "column": 5, - "offset": 873 - }, - "end": { - "line": 46, - "column": 11, - "offset": 879 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 46, - "column": 5, - "offset": 873 - }, - "end": { - "line": 46, - "column": 11, - "offset": 879 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 46, - "column": 1, - "offset": 869 - }, - "end": { - "line": 46, - "column": 11, - "offset": 879 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "a\\\\\\a", - "label": "a\\\\\\a", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "a", - "position": { - "start": { - "line": 47, - "column": 6, - "offset": 885 - }, - "end": { - "line": 47, - "column": 7, - "offset": 886 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\\", - "position": { - "start": { - "line": 47, - "column": 7, - "offset": 886 - }, - "end": { - "line": 47, - "column": 9, - "offset": 888 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\\a", - "position": { - "start": { - "line": 47, - "column": 9, - "offset": 888 - }, - "end": { - "line": 47, - "column": 11, - "offset": 890 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 47, - "column": 5, - "offset": 884 - }, - "end": { - "line": 47, - "column": 12, - "offset": 891 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 47, - "column": 5, - "offset": 884 - }, - "end": { - "line": 47, - "column": 12, - "offset": 891 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 47, - "column": 1, - "offset": 880 - }, - "end": { - "line": 47, - "column": 12, - "offset": 891 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "a_a\\_a", - "label": "a_a\\_a", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "a", - "position": { - "start": { - "line": 48, - "column": 6, - "offset": 897 - }, - "end": { - "line": 48, - "column": 7, - "offset": 898 - }, - "indent": [] - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "a\\", - "position": { - "start": { - "line": 48, - "column": 8, - "offset": 899 - }, - "end": { - "line": 48, - "column": 10, - "offset": 901 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 48, - "column": 7, - "offset": 898 - }, - "end": { - "line": 48, - "column": 11, - "offset": 902 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "a", - "position": { - "start": { - "line": 48, - "column": 11, - "offset": 902 - }, - "end": { - "line": 48, - "column": 12, - "offset": 903 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 48, - "column": 5, - "offset": 896 - }, - "end": { - "line": 48, - "column": 13, - "offset": 904 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 48, - "column": 5, - "offset": 896 - }, - "end": { - "line": 48, - "column": 13, - "offset": 904 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 48, - "column": 1, - "offset": 892 - }, - "end": { - "line": 48, - "column": 13, - "offset": 904 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 43, - "column": 1, - "offset": 826 - }, - "end": { - "line": 48, - "column": 13, - "offset": 904 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "GFM:", - "position": { - "start": { - "line": 50, - "column": 3, - "offset": 908 - }, - "end": { - "line": 50, - "column": 7, - "offset": 912 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 50, - "column": 1, - "offset": 906 - }, - "end": { - "line": 50, - "column": 9, - "offset": 914 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 50, - "column": 1, - "offset": 906 - }, - "end": { - "line": 50, - "column": 9, - "offset": 914 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Colon should be escaped in URLs:", - "position": { - "start": { - "line": 52, - "column": 1, - "offset": 916 - }, - "end": { - "line": 52, - "column": 33, - "offset": 948 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 52, - "column": 1, - "offset": 916 - }, - "end": { - "line": 52, - "column": 33, - "offset": 948 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "http", - "position": { - "start": { - "line": 54, - "column": 5, - "offset": 954 - }, - "end": { - "line": 54, - "column": 9, - "offset": 958 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ":", - "position": { - "start": { - "line": 54, - "column": 9, - "offset": 958 - }, - "end": { - "line": 54, - "column": 11, - "offset": 960 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "//user:password@host:port/path?key=value#fragment", - "position": { - "start": { - "line": 54, - "column": 11, - "offset": 960 - }, - "end": { - "line": 54, - "column": 60, - "offset": 1009 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 54, - "column": 5, - "offset": 954 - }, - "end": { - "line": 54, - "column": 60, - "offset": 1009 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 54, - "column": 1, - "offset": 950 - }, - "end": { - "line": 54, - "column": 60, - "offset": 1009 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "https", - "position": { - "start": { - "line": 55, - "column": 5, - "offset": 1014 - }, - "end": { - "line": 55, - "column": 10, - "offset": 1019 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ":", - "position": { - "start": { - "line": 55, - "column": 10, - "offset": 1019 - }, - "end": { - "line": 55, - "column": 12, - "offset": 1021 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "//user:password@host:port/path?key=value#fragment", - "position": { - "start": { - "line": 55, - "column": 12, - "offset": 1021 - }, - "end": { - "line": 55, - "column": 61, - "offset": 1070 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 55, - "column": 5, - "offset": 1014 - }, - "end": { - "line": 55, - "column": 61, - "offset": 1070 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 55, - "column": 1, - "offset": 1010 - }, - "end": { - "line": 55, - "column": 61, - "offset": 1070 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "http", - "position": { - "start": { - "line": 56, - "column": 5, - "offset": 1075 - }, - "end": { - "line": 56, - "column": 9, - "offset": 1079 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ":", - "position": { - "start": { - "line": 56, - "column": 9, - "offset": 1079 - }, - "end": { - "line": 56, - "column": 16, - "offset": 1086 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "//user:password@host:port/path?key=value#fragment", - "position": { - "start": { - "line": 56, - "column": 16, - "offset": 1086 - }, - "end": { - "line": 56, - "column": 65, - "offset": 1135 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 56, - "column": 5, - "offset": 1075 - }, - "end": { - "line": 56, - "column": 65, - "offset": 1135 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 56, - "column": 1, - "offset": 1071 - }, - "end": { - "line": 56, - "column": 65, - "offset": 1135 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "https", - "position": { - "start": { - "line": 57, - "column": 5, - "offset": 1140 - }, - "end": { - "line": 57, - "column": 10, - "offset": 1145 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ":", - "position": { - "start": { - "line": 57, - "column": 10, - "offset": 1145 - }, - "end": { - "line": 57, - "column": 17, - "offset": 1152 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "//user:password@host:port/path?key=value#fragment", - "position": { - "start": { - "line": 57, - "column": 17, - "offset": 1152 - }, - "end": { - "line": 57, - "column": 66, - "offset": 1201 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 57, - "column": 5, - "offset": 1140 - }, - "end": { - "line": 57, - "column": 66, - "offset": 1201 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 57, - "column": 1, - "offset": 1136 - }, - "end": { - "line": 57, - "column": 66, - "offset": 1201 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 54, - "column": 1, - "offset": 950 - }, - "end": { - "line": 57, - "column": 66, - "offset": 1201 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Double tildes should be ", - "position": { - "start": { - "line": 59, - "column": 1, - "offset": 1203 - }, - "end": { - "line": 59, - "column": 25, - "offset": 1227 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "~", - "position": { - "start": { - "line": 59, - "column": 25, - "offset": 1227 - }, - "end": { - "line": 59, - "column": 27, - "offset": 1229 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "~escaped", - "position": { - "start": { - "line": 59, - "column": 27, - "offset": 1229 - }, - "end": { - "line": 59, - "column": 35, - "offset": 1237 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "~", - "position": { - "start": { - "line": 59, - "column": 35, - "offset": 1237 - }, - "end": { - "line": 59, - "column": 37, - "offset": 1239 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "~.\nAnd here: foo~~.", - "position": { - "start": { - "line": 59, - "column": 37, - "offset": 1239 - }, - "end": { - "line": 60, - "column": 17, - "offset": 1258 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 59, - "column": 1, - "offset": 1203 - }, - "end": { - "line": 60, - "column": 17, - "offset": 1258 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Pipes should not be escaped here: |", - "position": { - "start": { - "line": 62, - "column": 1, - "offset": 1260 - }, - "end": { - "line": 62, - "column": 36, - "offset": 1295 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 62, - "column": 1, - "offset": 1260 - }, - "end": { - "line": 62, - "column": 36, - "offset": 1295 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "| here | they |\n| ------ | -------- |\n| should | tho", - "position": { - "start": { - "line": 64, - "column": 1, - "offset": 1297 - }, - "end": { - "line": 66, - "column": 15, - "offset": 1355 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "text", - "value": "|", - "position": { - "start": { - "line": 66, - "column": 15, - "offset": 1355 - }, - "end": { - "line": 66, - "column": 17, - "offset": 1357 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "ugh |", - "position": { - "start": { - "line": 66, - "column": 17, - "offset": 1357 - }, - "end": { - "line": 66, - "column": 22, - "offset": 1362 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 64, - "column": 1, - "offset": 1297 - }, - "end": { - "line": 66, - "column": 22, - "offset": 1362 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And here:", - "position": { - "start": { - "line": 68, - "column": 1, - "offset": 1364 - }, - "end": { - "line": 68, - "column": 10, - "offset": 1373 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 68, - "column": 1, - "offset": 1364 - }, - "end": { - "line": 68, - "column": 10, - "offset": 1373 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "| here | they |\n", - "position": { - "start": { - "line": 70, - "column": 1, - "offset": 1375 - }, - "end": { - "line": 71, - "column": 1, - "offset": 1395 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "|", - "position": { - "start": { - "line": 71, - "column": 1, - "offset": 1395 - }, - "end": { - "line": 71, - "column": 3, - "offset": 1397 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ---- ", - "position": { - "start": { - "line": 71, - "column": 3, - "offset": 1397 - }, - "end": { - "line": 71, - "column": 9, - "offset": 1403 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "|", - "position": { - "start": { - "line": 71, - "column": 9, - "offset": 1403 - }, - "end": { - "line": 71, - "column": 11, - "offset": 1405 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ----- ", - "position": { - "start": { - "line": 71, - "column": 11, - "offset": 1405 - }, - "end": { - "line": 71, - "column": 18, - "offset": 1412 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "|", - "position": { - "start": { - "line": 71, - "column": 18, - "offset": 1412 - }, - "end": { - "line": 71, - "column": 20, - "offset": 1414 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\n| should | though |", - "position": { - "start": { - "line": 71, - "column": 20, - "offset": 1414 - }, - "end": { - "line": 72, - "column": 20, - "offset": 1434 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 70, - "column": 1, - "offset": 1375 - }, - "end": { - "line": 72, - "column": 20, - "offset": 1434 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And here:", - "position": { - "start": { - "line": 74, - "column": 1, - "offset": 1436 - }, - "end": { - "line": 74, - "column": 10, - "offset": 1445 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 74, - "column": 1, - "offset": 1436 - }, - "end": { - "line": 74, - "column": 10, - "offset": 1445 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "here | they\n", - "position": { - "start": { - "line": 76, - "column": 1, - "offset": 1447 - }, - "end": { - "line": 77, - "column": 1, - "offset": 1461 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "-", - "position": { - "start": { - "line": 77, - "column": 1, - "offset": 1461 - }, - "end": { - "line": 77, - "column": 3, - "offset": 1463 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "--- ", - "position": { - "start": { - "line": 77, - "column": 3, - "offset": 1463 - }, - "end": { - "line": 77, - "column": 7, - "offset": 1467 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "|", - "position": { - "start": { - "line": 77, - "column": 7, - "offset": 1467 - }, - "end": { - "line": 77, - "column": 9, - "offset": 1469 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ------\nshould | though", - "position": { - "start": { - "line": 77, - "column": 9, - "offset": 1469 - }, - "end": { - "line": 78, - "column": 16, - "offset": 1492 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 76, - "column": 1, - "offset": 1447 - }, - "end": { - "line": 78, - "column": 16, - "offset": 1492 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "Commonmark:", - "position": { - "start": { - "line": 80, - "column": 3, - "offset": 1496 - }, - "end": { - "line": 80, - "column": 14, - "offset": 1507 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 80, - "column": 1, - "offset": 1494 - }, - "end": { - "line": 80, - "column": 16, - "offset": 1509 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 80, - "column": 1, - "offset": 1494 - }, - "end": { - "line": 80, - "column": 16, - "offset": 1509 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Open angle bracket should be escaped:", - "position": { - "start": { - "line": 82, - "column": 1, - "offset": 1511 - }, - "end": { - "line": 82, - "column": 38, - "offset": 1548 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 82, - "column": 1, - "offset": 1511 - }, - "end": { - "line": 82, - "column": 38, - "offset": 1548 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "<", - "position": { - "start": { - "line": 84, - "column": 5, - "offset": 1554 - }, - "end": { - "line": 84, - "column": 7, - "offset": 1556 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "div>", - "position": { - "start": { - "line": 84, - "column": 7, - "offset": 1556 - }, - "end": { - "line": 84, - "column": 11, - "offset": 1560 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "<", - "position": { - "start": { - "line": 84, - "column": 11, - "offset": 1560 - }, - "end": { - "line": 84, - "column": 13, - "offset": 1562 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "/div>", - "position": { - "start": { - "line": 84, - "column": 13, - "offset": 1562 - }, - "end": { - "line": 84, - "column": 18, - "offset": 1567 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 84, - "column": 5, - "offset": 1554 - }, - "end": { - "line": 84, - "column": 18, - "offset": 1567 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 84, - "column": 1, - "offset": 1550 - }, - "end": { - "line": 84, - "column": 18, - "offset": 1567 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "<", - "position": { - "start": { - "line": 85, - "column": 5, - "offset": 1572 - }, - "end": { - "line": 85, - "column": 7, - "offset": 1574 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "http", - "position": { - "start": { - "line": 85, - "column": 7, - "offset": 1574 - }, - "end": { - "line": 85, - "column": 11, - "offset": 1578 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ":", - "position": { - "start": { - "line": 85, - "column": 11, - "offset": 1578 - }, - "end": { - "line": 85, - "column": 13, - "offset": 1580 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "google.com>", - "position": { - "start": { - "line": 85, - "column": 13, - "offset": 1580 - }, - "end": { - "line": 85, - "column": 24, - "offset": 1591 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 85, - "column": 5, - "offset": 1572 - }, - "end": { - "line": 85, - "column": 24, - "offset": 1591 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 85, - "column": 1, - "offset": 1568 - }, - "end": { - "line": 85, - "column": 24, - "offset": 1591 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "<", - "position": { - "start": { - "line": 86, - "column": 5, - "offset": 1596 - }, - "end": { - "line": 86, - "column": 9, - "offset": 1600 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "div>", - "position": { - "start": { - "line": 86, - "column": 9, - "offset": 1600 - }, - "end": { - "line": 86, - "column": 13, - "offset": 1604 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "<", - "position": { - "start": { - "line": 86, - "column": 13, - "offset": 1604 - }, - "end": { - "line": 86, - "column": 17, - "offset": 1608 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "/div>", - "position": { - "start": { - "line": 86, - "column": 17, - "offset": 1608 - }, - "end": { - "line": 86, - "column": 22, - "offset": 1613 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 86, - "column": 5, - "offset": 1596 - }, - "end": { - "line": 86, - "column": 22, - "offset": 1613 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 86, - "column": 1, - "offset": 1592 - }, - "end": { - "line": 86, - "column": 22, - "offset": 1613 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "<", - "position": { - "start": { - "line": 87, - "column": 5, - "offset": 1618 - }, - "end": { - "line": 87, - "column": 9, - "offset": 1622 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "http", - "position": { - "start": { - "line": 87, - "column": 9, - "offset": 1622 - }, - "end": { - "line": 87, - "column": 13, - "offset": 1626 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ":", - "position": { - "start": { - "line": 87, - "column": 13, - "offset": 1626 - }, - "end": { - "line": 87, - "column": 20, - "offset": 1633 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "google.com>", - "position": { - "start": { - "line": 87, - "column": 20, - "offset": 1633 - }, - "end": { - "line": 87, - "column": 31, - "offset": 1644 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 87, - "column": 5, - "offset": 1618 - }, - "end": { - "line": 87, - "column": 31, - "offset": 1644 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 87, - "column": 1, - "offset": 1614 - }, - "end": { - "line": 87, - "column": 31, - "offset": 1644 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 84, - "column": 1, - "offset": 1550 - }, - "end": { - "line": 87, - "column": 31, - "offset": 1644 - }, - "indent": [ - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 88, - "column": 1, - "offset": 1645 - } - } -} diff --git a/test/fixtures/tree/stringify-escape.nogfm.json b/test/fixtures/tree/stringify-escape.nogfm.json deleted file mode 100644 index f9e5976da..000000000 --- a/test/fixtures/tree/stringify-escape.nogfm.json +++ /dev/null @@ -1,3330 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Characters that should be escaped in general:", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 46, - "offset": 45 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 46, - "offset": 45 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "\\", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 47 - }, - "end": { - "line": 3, - "column": 3, - "offset": 49 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 49 - }, - "end": { - "line": 3, - "column": 4, - "offset": 50 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "`", - "position": { - "start": { - "line": 3, - "column": 4, - "offset": 50 - }, - "end": { - "line": 3, - "column": 6, - "offset": 52 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 3, - "column": 6, - "offset": 52 - }, - "end": { - "line": 3, - "column": 7, - "offset": 53 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "*", - "position": { - "start": { - "line": 3, - "column": 7, - "offset": 53 - }, - "end": { - "line": 3, - "column": 9, - "offset": 55 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 3, - "column": 9, - "offset": 55 - }, - "end": { - "line": 3, - "column": 10, - "offset": 56 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "[", - "position": { - "start": { - "line": 3, - "column": 10, - "offset": 56 - }, - "end": { - "line": 3, - "column": 12, - "offset": 58 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 47 - }, - "end": { - "line": 3, - "column": 12, - "offset": 58 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Characters that shouldn't:", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 60 - }, - "end": { - "line": 5, - "column": 27, - "offset": 86 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 60 - }, - "end": { - "line": 5, - "column": 27, - "offset": 86 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "{}]()#+-.!>\"$%',/:;=?@^~", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 88 - }, - "end": { - "line": 7, - "column": 25, - "offset": 112 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 88 - }, - "end": { - "line": 7, - "column": 25, - "offset": 112 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Underscores are ", - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 114 - }, - "end": { - "line": 9, - "column": 17, - "offset": 130 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "_", - "position": { - "start": { - "line": 9, - "column": 17, - "offset": 130 - }, - "end": { - "line": 9, - "column": 19, - "offset": 132 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "escaped", - "position": { - "start": { - "line": 9, - "column": 19, - "offset": 132 - }, - "end": { - "line": 9, - "column": 26, - "offset": 139 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "_", - "position": { - "start": { - "line": 9, - "column": 26, - "offset": 139 - }, - "end": { - "line": 9, - "column": 28, - "offset": 141 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " unless they appear in_the_middle_of_a_word.\nor ", - "position": { - "start": { - "line": 9, - "column": 28, - "offset": 141 - }, - "end": { - "line": 10, - "column": 4, - "offset": 189 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "_here", - "position": { - "start": { - "line": 10, - "column": 6, - "offset": 191 - }, - "end": { - "line": 10, - "column": 11, - "offset": 196 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 10, - "column": 4, - "offset": 189 - }, - "end": { - "line": 10, - "column": 13, - "offset": 198 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ", or here__", - "position": { - "start": { - "line": 10, - "column": 13, - "offset": 198 - }, - "end": { - "line": 10, - "column": 24, - "offset": 209 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 114 - }, - "end": { - "line": 10, - "column": 24, - "offset": 209 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Ampersands are escaped only when they would otherwise start an entity:", - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 211 - }, - "end": { - "line": 12, - "column": 71, - "offset": 281 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 211 - }, - "end": { - "line": 12, - "column": 71, - "offset": 281 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "\\", - "position": { - "start": { - "line": 14, - "column": 5, - "offset": 287 - }, - "end": { - "line": 14, - "column": 6, - "offset": 288 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "©", - "position": { - "start": { - "line": 14, - "column": 6, - "offset": 288 - }, - "end": { - "line": 14, - "column": 11, - "offset": 293 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "cat \\", - "position": { - "start": { - "line": 14, - "column": 11, - "offset": 293 - }, - "end": { - "line": 14, - "column": 16, - "offset": 298 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "&", - "position": { - "start": { - "line": 14, - "column": 16, - "offset": 298 - }, - "end": { - "line": 14, - "column": 21, - "offset": 303 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " \\", - "position": { - "start": { - "line": 14, - "column": 21, - "offset": 303 - }, - "end": { - "line": 14, - "column": 23, - "offset": 305 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "&", - "position": { - "start": { - "line": 14, - "column": 23, - "offset": 305 - }, - "end": { - "line": 14, - "column": 28, - "offset": 310 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 5, - "offset": 287 - }, - "end": { - "line": 14, - "column": 28, - "offset": 310 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 283 - }, - "end": { - "line": 14, - "column": 28, - "offset": 310 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "&", - "position": { - "start": { - "line": 15, - "column": 5, - "offset": 315 - }, - "end": { - "line": 15, - "column": 10, - "offset": 320 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "copycat ", - "position": { - "start": { - "line": 15, - "column": 10, - "offset": 320 - }, - "end": { - "line": 15, - "column": 18, - "offset": 328 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "&", - "position": { - "start": { - "line": 15, - "column": 18, - "offset": 328 - }, - "end": { - "line": 15, - "column": 23, - "offset": 333 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "amp; ", - "position": { - "start": { - "line": 15, - "column": 23, - "offset": 333 - }, - "end": { - "line": 15, - "column": 28, - "offset": 338 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "&", - "position": { - "start": { - "line": 15, - "column": 28, - "offset": 338 - }, - "end": { - "line": 15, - "column": 33, - "offset": 343 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "#x26", - "position": { - "start": { - "line": 15, - "column": 33, - "offset": 343 - }, - "end": { - "line": 15, - "column": 37, - "offset": 347 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 5, - "offset": 315 - }, - "end": { - "line": 15, - "column": 37, - "offset": 347 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 311 - }, - "end": { - "line": 15, - "column": 37, - "offset": 347 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "But: ©cat; ", - "position": { - "start": { - "line": 16, - "column": 5, - "offset": 352 - }, - "end": { - "line": 16, - "column": 16, - "offset": 363 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "≬", - "position": { - "start": { - "line": 16, - "column": 16, - "offset": 363 - }, - "end": { - "line": 16, - "column": 27, - "offset": 374 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " &foo; & AT&T &c", - "position": { - "start": { - "line": 16, - "column": 27, - "offset": 374 - }, - "end": { - "line": 16, - "column": 43, - "offset": 390 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 5, - "offset": 352 - }, - "end": { - "line": 16, - "column": 43, - "offset": 390 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 348 - }, - "end": { - "line": 16, - "column": 43, - "offset": 390 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 283 - }, - "end": { - "line": 16, - "column": 43, - "offset": 390 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Open parenthesis should be escaped after a shortcut reference:", - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 392 - }, - "end": { - "line": 18, - "column": 63, - "offset": 454 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 392 - }, - "end": { - "line": 18, - "column": 63, - "offset": 454 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "ref", - "label": "ref", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "ref", - "position": { - "start": { - "line": 20, - "column": 2, - "offset": 457 - }, - "end": { - "line": 20, - "column": 5, - "offset": 460 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 1, - "offset": 456 - }, - "end": { - "line": 20, - "column": 6, - "offset": 461 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(", - "position": { - "start": { - "line": 20, - "column": 6, - "offset": 461 - }, - "end": { - "line": 20, - "column": 8, - "offset": 463 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "text)", - "position": { - "start": { - "line": 20, - "column": 8, - "offset": 463 - }, - "end": { - "line": 20, - "column": 13, - "offset": 468 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 1, - "offset": 456 - }, - "end": { - "line": 20, - "column": 13, - "offset": 468 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And after a shortcut reference and a space (for GitHub):", - "position": { - "start": { - "line": 22, - "column": 1, - "offset": 470 - }, - "end": { - "line": 22, - "column": 57, - "offset": 526 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 22, - "column": 1, - "offset": 470 - }, - "end": { - "line": 22, - "column": 57, - "offset": 526 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "ref", - "label": "ref", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "ref", - "position": { - "start": { - "line": 24, - "column": 2, - "offset": 529 - }, - "end": { - "line": 24, - "column": 5, - "offset": 532 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 24, - "column": 1, - "offset": 528 - }, - "end": { - "line": 24, - "column": 6, - "offset": 533 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 24, - "column": 6, - "offset": 533 - }, - "end": { - "line": 24, - "column": 7, - "offset": 534 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(", - "position": { - "start": { - "line": 24, - "column": 7, - "offset": 534 - }, - "end": { - "line": 24, - "column": 9, - "offset": 536 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "text)", - "position": { - "start": { - "line": 24, - "column": 9, - "offset": 536 - }, - "end": { - "line": 24, - "column": 14, - "offset": 541 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 24, - "column": 1, - "offset": 528 - }, - "end": { - "line": 24, - "column": 14, - "offset": 541 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hyphen should be escaped at the beginning of a line:", - "position": { - "start": { - "line": 26, - "column": 1, - "offset": 543 - }, - "end": { - "line": 26, - "column": 53, - "offset": 595 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 26, - "column": 1, - "offset": 543 - }, - "end": { - "line": 26, - "column": 53, - "offset": 595 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "-", - "position": { - "start": { - "line": 28, - "column": 1, - "offset": 597 - }, - "end": { - "line": 28, - "column": 3, - "offset": 599 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " not a list item\n", - "position": { - "start": { - "line": 28, - "column": 3, - "offset": 599 - }, - "end": { - "line": 29, - "column": 1, - "offset": 616 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "-", - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 616 - }, - "end": { - "line": 29, - "column": 3, - "offset": 618 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " not a list item\n ", - "position": { - "start": { - "line": 29, - "column": 3, - "offset": 618 - }, - "end": { - "line": 30, - "column": 3, - "offset": 637 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "+", - "position": { - "start": { - "line": 30, - "column": 3, - "offset": 637 - }, - "end": { - "line": 30, - "column": 5, - "offset": 639 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " not a list item", - "position": { - "start": { - "line": 30, - "column": 5, - "offset": 639 - }, - "end": { - "line": 30, - "column": 21, - "offset": 655 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 28, - "column": 1, - "offset": 597 - }, - "end": { - "line": 30, - "column": 21, - "offset": 655 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Same for angle brackets:", - "position": { - "start": { - "line": 32, - "column": 1, - "offset": 657 - }, - "end": { - "line": 32, - "column": 25, - "offset": 681 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 32, - "column": 1, - "offset": 657 - }, - "end": { - "line": 32, - "column": 25, - "offset": 681 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": ">", - "position": { - "start": { - "line": 34, - "column": 1, - "offset": 683 - }, - "end": { - "line": 34, - "column": 3, - "offset": 685 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " not a block quote", - "position": { - "start": { - "line": 34, - "column": 3, - "offset": 685 - }, - "end": { - "line": 34, - "column": 21, - "offset": 703 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 34, - "column": 1, - "offset": 683 - }, - "end": { - "line": 34, - "column": 21, - "offset": 703 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And hash signs:", - "position": { - "start": { - "line": 36, - "column": 1, - "offset": 705 - }, - "end": { - "line": 36, - "column": 16, - "offset": 720 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 36, - "column": 1, - "offset": 705 - }, - "end": { - "line": 36, - "column": 16, - "offset": 720 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "#", - "position": { - "start": { - "line": 38, - "column": 1, - "offset": 722 - }, - "end": { - "line": 38, - "column": 3, - "offset": 724 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " not a heading\n ", - "position": { - "start": { - "line": 38, - "column": 3, - "offset": 724 - }, - "end": { - "line": 39, - "column": 3, - "offset": 741 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "#", - "position": { - "start": { - "line": 39, - "column": 3, - "offset": 741 - }, - "end": { - "line": 39, - "column": 5, - "offset": 743 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "# not a subheading", - "position": { - "start": { - "line": 39, - "column": 5, - "offset": 743 - }, - "end": { - "line": 39, - "column": 23, - "offset": 761 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 38, - "column": 1, - "offset": 722 - }, - "end": { - "line": 39, - "column": 23, - "offset": 761 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Text under a shortcut reference should be preserved verbatim:", - "position": { - "start": { - "line": 41, - "column": 1, - "offset": 763 - }, - "end": { - "line": 41, - "column": 62, - "offset": 824 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 41, - "column": 1, - "offset": 763 - }, - "end": { - "line": 41, - "column": 62, - "offset": 824 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "two*three", - "label": "two*three", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "two*three", - "position": { - "start": { - "line": 43, - "column": 6, - "offset": 831 - }, - "end": { - "line": 43, - "column": 15, - "offset": 840 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 43, - "column": 5, - "offset": 830 - }, - "end": { - "line": 43, - "column": 16, - "offset": 841 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 43, - "column": 5, - "offset": 830 - }, - "end": { - "line": 43, - "column": 16, - "offset": 841 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 43, - "column": 1, - "offset": 826 - }, - "end": { - "line": 43, - "column": 16, - "offset": 841 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "two\\*three", - "label": "two\\*three", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "two", - "position": { - "start": { - "line": 44, - "column": 6, - "offset": 847 - }, - "end": { - "line": 44, - "column": 9, - "offset": 850 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "*", - "position": { - "start": { - "line": 44, - "column": 9, - "offset": 850 - }, - "end": { - "line": 44, - "column": 11, - "offset": 852 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "three", - "position": { - "start": { - "line": 44, - "column": 11, - "offset": 852 - }, - "end": { - "line": 44, - "column": 16, - "offset": 857 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 44, - "column": 5, - "offset": 846 - }, - "end": { - "line": 44, - "column": 17, - "offset": 858 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 44, - "column": 5, - "offset": 846 - }, - "end": { - "line": 44, - "column": 17, - "offset": 858 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 44, - "column": 1, - "offset": 842 - }, - "end": { - "line": 44, - "column": 17, - "offset": 858 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "a\\a", - "label": "a\\a", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "a\\a", - "position": { - "start": { - "line": 45, - "column": 6, - "offset": 864 - }, - "end": { - "line": 45, - "column": 9, - "offset": 867 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 45, - "column": 5, - "offset": 863 - }, - "end": { - "line": 45, - "column": 10, - "offset": 868 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 45, - "column": 5, - "offset": 863 - }, - "end": { - "line": 45, - "column": 10, - "offset": 868 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 45, - "column": 1, - "offset": 859 - }, - "end": { - "line": 45, - "column": 10, - "offset": 868 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "a\\\\a", - "label": "a\\\\a", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "a", - "position": { - "start": { - "line": 46, - "column": 6, - "offset": 874 - }, - "end": { - "line": 46, - "column": 7, - "offset": 875 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\\", - "position": { - "start": { - "line": 46, - "column": 7, - "offset": 875 - }, - "end": { - "line": 46, - "column": 9, - "offset": 877 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "a", - "position": { - "start": { - "line": 46, - "column": 9, - "offset": 877 - }, - "end": { - "line": 46, - "column": 10, - "offset": 878 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 46, - "column": 5, - "offset": 873 - }, - "end": { - "line": 46, - "column": 11, - "offset": 879 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 46, - "column": 5, - "offset": 873 - }, - "end": { - "line": 46, - "column": 11, - "offset": 879 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 46, - "column": 1, - "offset": 869 - }, - "end": { - "line": 46, - "column": 11, - "offset": 879 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "a\\\\\\a", - "label": "a\\\\\\a", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "a", - "position": { - "start": { - "line": 47, - "column": 6, - "offset": 885 - }, - "end": { - "line": 47, - "column": 7, - "offset": 886 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\\", - "position": { - "start": { - "line": 47, - "column": 7, - "offset": 886 - }, - "end": { - "line": 47, - "column": 9, - "offset": 888 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\\a", - "position": { - "start": { - "line": 47, - "column": 9, - "offset": 888 - }, - "end": { - "line": 47, - "column": 11, - "offset": 890 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 47, - "column": 5, - "offset": 884 - }, - "end": { - "line": 47, - "column": 12, - "offset": 891 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 47, - "column": 5, - "offset": 884 - }, - "end": { - "line": 47, - "column": 12, - "offset": 891 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 47, - "column": 1, - "offset": 880 - }, - "end": { - "line": 47, - "column": 12, - "offset": 891 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "a_a\\_a", - "label": "a_a\\_a", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "a_a", - "position": { - "start": { - "line": 48, - "column": 6, - "offset": 897 - }, - "end": { - "line": 48, - "column": 9, - "offset": 900 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "_", - "position": { - "start": { - "line": 48, - "column": 9, - "offset": 900 - }, - "end": { - "line": 48, - "column": 11, - "offset": 902 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "a", - "position": { - "start": { - "line": 48, - "column": 11, - "offset": 902 - }, - "end": { - "line": 48, - "column": 12, - "offset": 903 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 48, - "column": 5, - "offset": 896 - }, - "end": { - "line": 48, - "column": 13, - "offset": 904 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 48, - "column": 5, - "offset": 896 - }, - "end": { - "line": 48, - "column": 13, - "offset": 904 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 48, - "column": 1, - "offset": 892 - }, - "end": { - "line": 48, - "column": 13, - "offset": 904 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 43, - "column": 1, - "offset": 826 - }, - "end": { - "line": 48, - "column": 13, - "offset": 904 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "GFM:", - "position": { - "start": { - "line": 50, - "column": 3, - "offset": 908 - }, - "end": { - "line": 50, - "column": 7, - "offset": 912 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 50, - "column": 1, - "offset": 906 - }, - "end": { - "line": 50, - "column": 9, - "offset": 914 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 50, - "column": 1, - "offset": 906 - }, - "end": { - "line": 50, - "column": 9, - "offset": 914 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Colon should be escaped in URLs:", - "position": { - "start": { - "line": 52, - "column": 1, - "offset": 916 - }, - "end": { - "line": 52, - "column": 33, - "offset": 948 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 52, - "column": 1, - "offset": 916 - }, - "end": { - "line": 52, - "column": 33, - "offset": 948 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "http\\://user:password@host:port/path?key=value#fragment", - "position": { - "start": { - "line": 54, - "column": 5, - "offset": 954 - }, - "end": { - "line": 54, - "column": 60, - "offset": 1009 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 54, - "column": 5, - "offset": 954 - }, - "end": { - "line": 54, - "column": 60, - "offset": 1009 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 54, - "column": 1, - "offset": 950 - }, - "end": { - "line": 54, - "column": 60, - "offset": 1009 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "https\\://user:password@host:port/path?key=value#fragment", - "position": { - "start": { - "line": 55, - "column": 5, - "offset": 1014 - }, - "end": { - "line": 55, - "column": 61, - "offset": 1070 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 55, - "column": 5, - "offset": 1014 - }, - "end": { - "line": 55, - "column": 61, - "offset": 1070 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 55, - "column": 1, - "offset": 1010 - }, - "end": { - "line": 55, - "column": 61, - "offset": 1070 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "http", - "position": { - "start": { - "line": 56, - "column": 5, - "offset": 1075 - }, - "end": { - "line": 56, - "column": 9, - "offset": 1079 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ":", - "position": { - "start": { - "line": 56, - "column": 9, - "offset": 1079 - }, - "end": { - "line": 56, - "column": 16, - "offset": 1086 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "//user:password@host:port/path?key=value#fragment", - "position": { - "start": { - "line": 56, - "column": 16, - "offset": 1086 - }, - "end": { - "line": 56, - "column": 65, - "offset": 1135 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 56, - "column": 5, - "offset": 1075 - }, - "end": { - "line": 56, - "column": 65, - "offset": 1135 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 56, - "column": 1, - "offset": 1071 - }, - "end": { - "line": 56, - "column": 65, - "offset": 1135 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "https", - "position": { - "start": { - "line": 57, - "column": 5, - "offset": 1140 - }, - "end": { - "line": 57, - "column": 10, - "offset": 1145 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ":", - "position": { - "start": { - "line": 57, - "column": 10, - "offset": 1145 - }, - "end": { - "line": 57, - "column": 17, - "offset": 1152 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "//user:password@host:port/path?key=value#fragment", - "position": { - "start": { - "line": 57, - "column": 17, - "offset": 1152 - }, - "end": { - "line": 57, - "column": 66, - "offset": 1201 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 57, - "column": 5, - "offset": 1140 - }, - "end": { - "line": 57, - "column": 66, - "offset": 1201 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 57, - "column": 1, - "offset": 1136 - }, - "end": { - "line": 57, - "column": 66, - "offset": 1201 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 54, - "column": 1, - "offset": 950 - }, - "end": { - "line": 57, - "column": 66, - "offset": 1201 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Double tildes should be \\~~escaped\\~~.\nAnd here: foo~~.", - "position": { - "start": { - "line": 59, - "column": 1, - "offset": 1203 - }, - "end": { - "line": 60, - "column": 17, - "offset": 1258 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 59, - "column": 1, - "offset": 1203 - }, - "end": { - "line": 60, - "column": 17, - "offset": 1258 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Pipes should not be escaped here: |", - "position": { - "start": { - "line": 62, - "column": 1, - "offset": 1260 - }, - "end": { - "line": 62, - "column": 36, - "offset": 1295 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 62, - "column": 1, - "offset": 1260 - }, - "end": { - "line": 62, - "column": 36, - "offset": 1295 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "| here | they |\n| ------ | -------- |\n| should | tho\\|ugh |", - "position": { - "start": { - "line": 64, - "column": 1, - "offset": 1297 - }, - "end": { - "line": 66, - "column": 22, - "offset": 1362 - }, - "indent": [ - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 64, - "column": 1, - "offset": 1297 - }, - "end": { - "line": 66, - "column": 22, - "offset": 1362 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And here:", - "position": { - "start": { - "line": 68, - "column": 1, - "offset": 1364 - }, - "end": { - "line": 68, - "column": 10, - "offset": 1373 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 68, - "column": 1, - "offset": 1364 - }, - "end": { - "line": 68, - "column": 10, - "offset": 1373 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "| here | they |\n\\| ---- \\| ----- \\|\n| should | though |", - "position": { - "start": { - "line": 70, - "column": 1, - "offset": 1375 - }, - "end": { - "line": 72, - "column": 20, - "offset": 1434 - }, - "indent": [ - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 70, - "column": 1, - "offset": 1375 - }, - "end": { - "line": 72, - "column": 20, - "offset": 1434 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And here:", - "position": { - "start": { - "line": 74, - "column": 1, - "offset": 1436 - }, - "end": { - "line": 74, - "column": 10, - "offset": 1445 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 74, - "column": 1, - "offset": 1436 - }, - "end": { - "line": 74, - "column": 10, - "offset": 1445 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "here | they\n", - "position": { - "start": { - "line": 76, - "column": 1, - "offset": 1447 - }, - "end": { - "line": 77, - "column": 1, - "offset": 1461 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "-", - "position": { - "start": { - "line": 77, - "column": 1, - "offset": 1461 - }, - "end": { - "line": 77, - "column": 3, - "offset": 1463 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "--- \\| ------\nshould | though", - "position": { - "start": { - "line": 77, - "column": 3, - "offset": 1463 - }, - "end": { - "line": 78, - "column": 16, - "offset": 1492 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 76, - "column": 1, - "offset": 1447 - }, - "end": { - "line": 78, - "column": 16, - "offset": 1492 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "Commonmark:", - "position": { - "start": { - "line": 80, - "column": 3, - "offset": 1496 - }, - "end": { - "line": 80, - "column": 14, - "offset": 1507 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 80, - "column": 1, - "offset": 1494 - }, - "end": { - "line": 80, - "column": 16, - "offset": 1509 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 80, - "column": 1, - "offset": 1494 - }, - "end": { - "line": 80, - "column": 16, - "offset": 1509 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Open angle bracket should be escaped:", - "position": { - "start": { - "line": 82, - "column": 1, - "offset": 1511 - }, - "end": { - "line": 82, - "column": 38, - "offset": 1548 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 82, - "column": 1, - "offset": 1511 - }, - "end": { - "line": 82, - "column": 38, - "offset": 1548 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "\\", - "position": { - "start": { - "line": 84, - "column": 5, - "offset": 1554 - }, - "end": { - "line": 84, - "column": 6, - "offset": 1555 - }, - "indent": [] - } - }, - { - "type": "html", - "value": "
", - "position": { - "start": { - "line": 84, - "column": 6, - "offset": 1555 - }, - "end": { - "line": 84, - "column": 11, - "offset": 1560 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\\", - "position": { - "start": { - "line": 84, - "column": 11, - "offset": 1560 - }, - "end": { - "line": 84, - "column": 12, - "offset": 1561 - }, - "indent": [] - } - }, - { - "type": "html", - "value": "
", - "position": { - "start": { - "line": 84, - "column": 12, - "offset": 1561 - }, - "end": { - "line": 84, - "column": 18, - "offset": 1567 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 84, - "column": 5, - "offset": 1554 - }, - "end": { - "line": 84, - "column": 18, - "offset": 1567 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 84, - "column": 1, - "offset": 1550 - }, - "end": { - "line": 84, - "column": 18, - "offset": 1567 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "\\", - "position": { - "start": { - "line": 85, - "column": 5, - "offset": 1572 - }, - "end": { - "line": 85, - "column": 24, - "offset": 1591 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 85, - "column": 5, - "offset": 1572 - }, - "end": { - "line": 85, - "column": 24, - "offset": 1591 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 85, - "column": 1, - "offset": 1568 - }, - "end": { - "line": 85, - "column": 24, - "offset": 1591 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "<", - "position": { - "start": { - "line": 86, - "column": 5, - "offset": 1596 - }, - "end": { - "line": 86, - "column": 9, - "offset": 1600 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "div>", - "position": { - "start": { - "line": 86, - "column": 9, - "offset": 1600 - }, - "end": { - "line": 86, - "column": 13, - "offset": 1604 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "<", - "position": { - "start": { - "line": 86, - "column": 13, - "offset": 1604 - }, - "end": { - "line": 86, - "column": 17, - "offset": 1608 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "/div>", - "position": { - "start": { - "line": 86, - "column": 17, - "offset": 1608 - }, - "end": { - "line": 86, - "column": 22, - "offset": 1613 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 86, - "column": 5, - "offset": 1596 - }, - "end": { - "line": 86, - "column": 22, - "offset": 1613 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 86, - "column": 1, - "offset": 1592 - }, - "end": { - "line": 86, - "column": 22, - "offset": 1613 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "<", - "position": { - "start": { - "line": 87, - "column": 5, - "offset": 1618 - }, - "end": { - "line": 87, - "column": 9, - "offset": 1622 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "http", - "position": { - "start": { - "line": 87, - "column": 9, - "offset": 1622 - }, - "end": { - "line": 87, - "column": 13, - "offset": 1626 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ":", - "position": { - "start": { - "line": 87, - "column": 13, - "offset": 1626 - }, - "end": { - "line": 87, - "column": 20, - "offset": 1633 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "google.com>", - "position": { - "start": { - "line": 87, - "column": 20, - "offset": 1633 - }, - "end": { - "line": 87, - "column": 31, - "offset": 1644 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 87, - "column": 5, - "offset": 1618 - }, - "end": { - "line": 87, - "column": 31, - "offset": 1644 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 87, - "column": 1, - "offset": 1614 - }, - "end": { - "line": 87, - "column": 31, - "offset": 1644 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 84, - "column": 1, - "offset": 1550 - }, - "end": { - "line": 87, - "column": 31, - "offset": 1644 - }, - "indent": [ - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 88, - "column": 1, - "offset": 1645 - } - } -} diff --git a/test/fixtures/tree/stringify-escape.nogfm.pedantic.json b/test/fixtures/tree/stringify-escape.nogfm.pedantic.json deleted file mode 100644 index 31031f0c7..000000000 --- a/test/fixtures/tree/stringify-escape.nogfm.pedantic.json +++ /dev/null @@ -1,3454 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Characters that should be escaped in general:", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 46, - "offset": 45 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 46, - "offset": 45 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "\\", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 47 - }, - "end": { - "line": 3, - "column": 3, - "offset": 49 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 49 - }, - "end": { - "line": 3, - "column": 4, - "offset": 50 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "`", - "position": { - "start": { - "line": 3, - "column": 4, - "offset": 50 - }, - "end": { - "line": 3, - "column": 6, - "offset": 52 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 3, - "column": 6, - "offset": 52 - }, - "end": { - "line": 3, - "column": 7, - "offset": 53 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "*", - "position": { - "start": { - "line": 3, - "column": 7, - "offset": 53 - }, - "end": { - "line": 3, - "column": 9, - "offset": 55 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 3, - "column": 9, - "offset": 55 - }, - "end": { - "line": 3, - "column": 10, - "offset": 56 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "[", - "position": { - "start": { - "line": 3, - "column": 10, - "offset": 56 - }, - "end": { - "line": 3, - "column": 12, - "offset": 58 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 47 - }, - "end": { - "line": 3, - "column": 12, - "offset": 58 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Characters that shouldn't:", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 60 - }, - "end": { - "line": 5, - "column": 27, - "offset": 86 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 60 - }, - "end": { - "line": 5, - "column": 27, - "offset": 86 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "{}]()#+-.!>\"$%',/:;=?@^~", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 88 - }, - "end": { - "line": 7, - "column": 25, - "offset": 112 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 88 - }, - "end": { - "line": 7, - "column": 25, - "offset": 112 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Underscores are ", - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 114 - }, - "end": { - "line": 9, - "column": 17, - "offset": 130 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "_", - "position": { - "start": { - "line": 9, - "column": 17, - "offset": 130 - }, - "end": { - "line": 9, - "column": 19, - "offset": 132 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "escaped", - "position": { - "start": { - "line": 9, - "column": 19, - "offset": 132 - }, - "end": { - "line": 9, - "column": 26, - "offset": 139 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "_", - "position": { - "start": { - "line": 9, - "column": 26, - "offset": 139 - }, - "end": { - "line": 9, - "column": 28, - "offset": 141 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " unless they appear in", - "position": { - "start": { - "line": 9, - "column": 28, - "offset": 141 - }, - "end": { - "line": 9, - "column": 50, - "offset": 163 - }, - "indent": [] - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "the", - "position": { - "start": { - "line": 9, - "column": 51, - "offset": 164 - }, - "end": { - "line": 9, - "column": 54, - "offset": 167 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 50, - "offset": 163 - }, - "end": { - "line": 9, - "column": 55, - "offset": 168 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "middle", - "position": { - "start": { - "line": 9, - "column": 55, - "offset": 168 - }, - "end": { - "line": 9, - "column": 61, - "offset": 174 - }, - "indent": [] - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "of", - "position": { - "start": { - "line": 9, - "column": 62, - "offset": 175 - }, - "end": { - "line": 9, - "column": 64, - "offset": 177 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 61, - "offset": 174 - }, - "end": { - "line": 9, - "column": 65, - "offset": 178 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "a", - "position": { - "start": { - "line": 9, - "column": 65, - "offset": 178 - }, - "end": { - "line": 9, - "column": 66, - "offset": 179 - }, - "indent": [] - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "word.\nor **", - "position": { - "start": { - "line": 9, - "column": 67, - "offset": 180 - }, - "end": { - "line": 10, - "column": 6, - "offset": 191 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 66, - "offset": 179 - }, - "end": { - "line": 10, - "column": 7, - "offset": 192 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "here**, or here__", - "position": { - "start": { - "line": 10, - "column": 7, - "offset": 192 - }, - "end": { - "line": 10, - "column": 24, - "offset": 209 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 114 - }, - "end": { - "line": 10, - "column": 24, - "offset": 209 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Ampersands are escaped only when they would otherwise start an entity:", - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 211 - }, - "end": { - "line": 12, - "column": 71, - "offset": 281 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 211 - }, - "end": { - "line": 12, - "column": 71, - "offset": 281 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "\\", - "position": { - "start": { - "line": 14, - "column": 5, - "offset": 287 - }, - "end": { - "line": 14, - "column": 6, - "offset": 288 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "©", - "position": { - "start": { - "line": 14, - "column": 6, - "offset": 288 - }, - "end": { - "line": 14, - "column": 11, - "offset": 293 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "cat \\", - "position": { - "start": { - "line": 14, - "column": 11, - "offset": 293 - }, - "end": { - "line": 14, - "column": 16, - "offset": 298 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "&", - "position": { - "start": { - "line": 14, - "column": 16, - "offset": 298 - }, - "end": { - "line": 14, - "column": 21, - "offset": 303 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " \\", - "position": { - "start": { - "line": 14, - "column": 21, - "offset": 303 - }, - "end": { - "line": 14, - "column": 23, - "offset": 305 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "&", - "position": { - "start": { - "line": 14, - "column": 23, - "offset": 305 - }, - "end": { - "line": 14, - "column": 28, - "offset": 310 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 5, - "offset": 287 - }, - "end": { - "line": 14, - "column": 28, - "offset": 310 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 283 - }, - "end": { - "line": 14, - "column": 28, - "offset": 310 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "&", - "position": { - "start": { - "line": 15, - "column": 5, - "offset": 315 - }, - "end": { - "line": 15, - "column": 10, - "offset": 320 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "copycat ", - "position": { - "start": { - "line": 15, - "column": 10, - "offset": 320 - }, - "end": { - "line": 15, - "column": 18, - "offset": 328 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "&", - "position": { - "start": { - "line": 15, - "column": 18, - "offset": 328 - }, - "end": { - "line": 15, - "column": 23, - "offset": 333 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "amp; ", - "position": { - "start": { - "line": 15, - "column": 23, - "offset": 333 - }, - "end": { - "line": 15, - "column": 28, - "offset": 338 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "&", - "position": { - "start": { - "line": 15, - "column": 28, - "offset": 338 - }, - "end": { - "line": 15, - "column": 33, - "offset": 343 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "#x26", - "position": { - "start": { - "line": 15, - "column": 33, - "offset": 343 - }, - "end": { - "line": 15, - "column": 37, - "offset": 347 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 5, - "offset": 315 - }, - "end": { - "line": 15, - "column": 37, - "offset": 347 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 311 - }, - "end": { - "line": 15, - "column": 37, - "offset": 347 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "But: ©cat; ", - "position": { - "start": { - "line": 16, - "column": 5, - "offset": 352 - }, - "end": { - "line": 16, - "column": 16, - "offset": 363 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "≬", - "position": { - "start": { - "line": 16, - "column": 16, - "offset": 363 - }, - "end": { - "line": 16, - "column": 27, - "offset": 374 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " &foo; & AT&T &c", - "position": { - "start": { - "line": 16, - "column": 27, - "offset": 374 - }, - "end": { - "line": 16, - "column": 43, - "offset": 390 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 5, - "offset": 352 - }, - "end": { - "line": 16, - "column": 43, - "offset": 390 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 348 - }, - "end": { - "line": 16, - "column": 43, - "offset": 390 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 283 - }, - "end": { - "line": 16, - "column": 43, - "offset": 390 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Open parenthesis should be escaped after a shortcut reference:", - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 392 - }, - "end": { - "line": 18, - "column": 63, - "offset": 454 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 392 - }, - "end": { - "line": 18, - "column": 63, - "offset": 454 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "ref", - "label": "ref", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "ref", - "position": { - "start": { - "line": 20, - "column": 2, - "offset": 457 - }, - "end": { - "line": 20, - "column": 5, - "offset": 460 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 1, - "offset": 456 - }, - "end": { - "line": 20, - "column": 6, - "offset": 461 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(", - "position": { - "start": { - "line": 20, - "column": 6, - "offset": 461 - }, - "end": { - "line": 20, - "column": 8, - "offset": 463 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "text)", - "position": { - "start": { - "line": 20, - "column": 8, - "offset": 463 - }, - "end": { - "line": 20, - "column": 13, - "offset": 468 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 1, - "offset": 456 - }, - "end": { - "line": 20, - "column": 13, - "offset": 468 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And after a shortcut reference and a space (for GitHub):", - "position": { - "start": { - "line": 22, - "column": 1, - "offset": 470 - }, - "end": { - "line": 22, - "column": 57, - "offset": 526 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 22, - "column": 1, - "offset": 470 - }, - "end": { - "line": 22, - "column": 57, - "offset": 526 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "ref", - "label": "ref", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "ref", - "position": { - "start": { - "line": 24, - "column": 2, - "offset": 529 - }, - "end": { - "line": 24, - "column": 5, - "offset": 532 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 24, - "column": 1, - "offset": 528 - }, - "end": { - "line": 24, - "column": 6, - "offset": 533 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 24, - "column": 6, - "offset": 533 - }, - "end": { - "line": 24, - "column": 7, - "offset": 534 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(", - "position": { - "start": { - "line": 24, - "column": 7, - "offset": 534 - }, - "end": { - "line": 24, - "column": 9, - "offset": 536 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "text)", - "position": { - "start": { - "line": 24, - "column": 9, - "offset": 536 - }, - "end": { - "line": 24, - "column": 14, - "offset": 541 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 24, - "column": 1, - "offset": 528 - }, - "end": { - "line": 24, - "column": 14, - "offset": 541 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hyphen should be escaped at the beginning of a line:", - "position": { - "start": { - "line": 26, - "column": 1, - "offset": 543 - }, - "end": { - "line": 26, - "column": 53, - "offset": 595 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 26, - "column": 1, - "offset": 543 - }, - "end": { - "line": 26, - "column": 53, - "offset": 595 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "-", - "position": { - "start": { - "line": 28, - "column": 1, - "offset": 597 - }, - "end": { - "line": 28, - "column": 3, - "offset": 599 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " not a list item\n", - "position": { - "start": { - "line": 28, - "column": 3, - "offset": 599 - }, - "end": { - "line": 29, - "column": 1, - "offset": 616 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "-", - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 616 - }, - "end": { - "line": 29, - "column": 3, - "offset": 618 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " not a list item\n ", - "position": { - "start": { - "line": 29, - "column": 3, - "offset": 618 - }, - "end": { - "line": 30, - "column": 3, - "offset": 637 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "+", - "position": { - "start": { - "line": 30, - "column": 3, - "offset": 637 - }, - "end": { - "line": 30, - "column": 5, - "offset": 639 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " not a list item", - "position": { - "start": { - "line": 30, - "column": 5, - "offset": 639 - }, - "end": { - "line": 30, - "column": 21, - "offset": 655 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 28, - "column": 1, - "offset": 597 - }, - "end": { - "line": 30, - "column": 21, - "offset": 655 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Same for angle brackets:", - "position": { - "start": { - "line": 32, - "column": 1, - "offset": 657 - }, - "end": { - "line": 32, - "column": 25, - "offset": 681 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 32, - "column": 1, - "offset": 657 - }, - "end": { - "line": 32, - "column": 25, - "offset": 681 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": ">", - "position": { - "start": { - "line": 34, - "column": 1, - "offset": 683 - }, - "end": { - "line": 34, - "column": 3, - "offset": 685 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " not a block quote", - "position": { - "start": { - "line": 34, - "column": 3, - "offset": 685 - }, - "end": { - "line": 34, - "column": 21, - "offset": 703 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 34, - "column": 1, - "offset": 683 - }, - "end": { - "line": 34, - "column": 21, - "offset": 703 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And hash signs:", - "position": { - "start": { - "line": 36, - "column": 1, - "offset": 705 - }, - "end": { - "line": 36, - "column": 16, - "offset": 720 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 36, - "column": 1, - "offset": 705 - }, - "end": { - "line": 36, - "column": 16, - "offset": 720 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "#", - "position": { - "start": { - "line": 38, - "column": 1, - "offset": 722 - }, - "end": { - "line": 38, - "column": 3, - "offset": 724 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " not a heading\n ", - "position": { - "start": { - "line": 38, - "column": 3, - "offset": 724 - }, - "end": { - "line": 39, - "column": 3, - "offset": 741 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "#", - "position": { - "start": { - "line": 39, - "column": 3, - "offset": 741 - }, - "end": { - "line": 39, - "column": 5, - "offset": 743 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "# not a subheading", - "position": { - "start": { - "line": 39, - "column": 5, - "offset": 743 - }, - "end": { - "line": 39, - "column": 23, - "offset": 761 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 38, - "column": 1, - "offset": 722 - }, - "end": { - "line": 39, - "column": 23, - "offset": 761 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Text under a shortcut reference should be preserved verbatim:", - "position": { - "start": { - "line": 41, - "column": 1, - "offset": 763 - }, - "end": { - "line": 41, - "column": 62, - "offset": 824 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 41, - "column": 1, - "offset": 763 - }, - "end": { - "line": 41, - "column": 62, - "offset": 824 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "two*three", - "label": "two*three", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "two*three", - "position": { - "start": { - "line": 43, - "column": 6, - "offset": 831 - }, - "end": { - "line": 43, - "column": 15, - "offset": 840 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 43, - "column": 5, - "offset": 830 - }, - "end": { - "line": 43, - "column": 16, - "offset": 841 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 43, - "column": 5, - "offset": 830 - }, - "end": { - "line": 43, - "column": 16, - "offset": 841 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 43, - "column": 1, - "offset": 826 - }, - "end": { - "line": 43, - "column": 16, - "offset": 841 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "two\\*three", - "label": "two\\*three", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "two", - "position": { - "start": { - "line": 44, - "column": 6, - "offset": 847 - }, - "end": { - "line": 44, - "column": 9, - "offset": 850 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "*", - "position": { - "start": { - "line": 44, - "column": 9, - "offset": 850 - }, - "end": { - "line": 44, - "column": 11, - "offset": 852 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "three", - "position": { - "start": { - "line": 44, - "column": 11, - "offset": 852 - }, - "end": { - "line": 44, - "column": 16, - "offset": 857 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 44, - "column": 5, - "offset": 846 - }, - "end": { - "line": 44, - "column": 17, - "offset": 858 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 44, - "column": 5, - "offset": 846 - }, - "end": { - "line": 44, - "column": 17, - "offset": 858 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 44, - "column": 1, - "offset": 842 - }, - "end": { - "line": 44, - "column": 17, - "offset": 858 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "a\\a", - "label": "a\\a", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "a\\a", - "position": { - "start": { - "line": 45, - "column": 6, - "offset": 864 - }, - "end": { - "line": 45, - "column": 9, - "offset": 867 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 45, - "column": 5, - "offset": 863 - }, - "end": { - "line": 45, - "column": 10, - "offset": 868 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 45, - "column": 5, - "offset": 863 - }, - "end": { - "line": 45, - "column": 10, - "offset": 868 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 45, - "column": 1, - "offset": 859 - }, - "end": { - "line": 45, - "column": 10, - "offset": 868 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "a\\\\a", - "label": "a\\\\a", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "a", - "position": { - "start": { - "line": 46, - "column": 6, - "offset": 874 - }, - "end": { - "line": 46, - "column": 7, - "offset": 875 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\\", - "position": { - "start": { - "line": 46, - "column": 7, - "offset": 875 - }, - "end": { - "line": 46, - "column": 9, - "offset": 877 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "a", - "position": { - "start": { - "line": 46, - "column": 9, - "offset": 877 - }, - "end": { - "line": 46, - "column": 10, - "offset": 878 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 46, - "column": 5, - "offset": 873 - }, - "end": { - "line": 46, - "column": 11, - "offset": 879 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 46, - "column": 5, - "offset": 873 - }, - "end": { - "line": 46, - "column": 11, - "offset": 879 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 46, - "column": 1, - "offset": 869 - }, - "end": { - "line": 46, - "column": 11, - "offset": 879 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "a\\\\\\a", - "label": "a\\\\\\a", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "a", - "position": { - "start": { - "line": 47, - "column": 6, - "offset": 885 - }, - "end": { - "line": 47, - "column": 7, - "offset": 886 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\\", - "position": { - "start": { - "line": 47, - "column": 7, - "offset": 886 - }, - "end": { - "line": 47, - "column": 9, - "offset": 888 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\\a", - "position": { - "start": { - "line": 47, - "column": 9, - "offset": 888 - }, - "end": { - "line": 47, - "column": 11, - "offset": 890 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 47, - "column": 5, - "offset": 884 - }, - "end": { - "line": 47, - "column": 12, - "offset": 891 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 47, - "column": 5, - "offset": 884 - }, - "end": { - "line": 47, - "column": 12, - "offset": 891 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 47, - "column": 1, - "offset": 880 - }, - "end": { - "line": 47, - "column": 12, - "offset": 891 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "a_a\\_a", - "label": "a_a\\_a", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "a", - "position": { - "start": { - "line": 48, - "column": 6, - "offset": 897 - }, - "end": { - "line": 48, - "column": 7, - "offset": 898 - }, - "indent": [] - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "a\\", - "position": { - "start": { - "line": 48, - "column": 8, - "offset": 899 - }, - "end": { - "line": 48, - "column": 10, - "offset": 901 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 48, - "column": 7, - "offset": 898 - }, - "end": { - "line": 48, - "column": 11, - "offset": 902 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "a", - "position": { - "start": { - "line": 48, - "column": 11, - "offset": 902 - }, - "end": { - "line": 48, - "column": 12, - "offset": 903 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 48, - "column": 5, - "offset": 896 - }, - "end": { - "line": 48, - "column": 13, - "offset": 904 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 48, - "column": 5, - "offset": 896 - }, - "end": { - "line": 48, - "column": 13, - "offset": 904 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 48, - "column": 1, - "offset": 892 - }, - "end": { - "line": 48, - "column": 13, - "offset": 904 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 43, - "column": 1, - "offset": 826 - }, - "end": { - "line": 48, - "column": 13, - "offset": 904 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "GFM:", - "position": { - "start": { - "line": 50, - "column": 3, - "offset": 908 - }, - "end": { - "line": 50, - "column": 7, - "offset": 912 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 50, - "column": 1, - "offset": 906 - }, - "end": { - "line": 50, - "column": 9, - "offset": 914 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 50, - "column": 1, - "offset": 906 - }, - "end": { - "line": 50, - "column": 9, - "offset": 914 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Colon should be escaped in URLs:", - "position": { - "start": { - "line": 52, - "column": 1, - "offset": 916 - }, - "end": { - "line": 52, - "column": 33, - "offset": 948 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 52, - "column": 1, - "offset": 916 - }, - "end": { - "line": 52, - "column": 33, - "offset": 948 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "http\\://user:password@host:port/path?key=value#fragment", - "position": { - "start": { - "line": 54, - "column": 5, - "offset": 954 - }, - "end": { - "line": 54, - "column": 60, - "offset": 1009 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 54, - "column": 5, - "offset": 954 - }, - "end": { - "line": 54, - "column": 60, - "offset": 1009 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 54, - "column": 1, - "offset": 950 - }, - "end": { - "line": 54, - "column": 60, - "offset": 1009 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "https\\://user:password@host:port/path?key=value#fragment", - "position": { - "start": { - "line": 55, - "column": 5, - "offset": 1014 - }, - "end": { - "line": 55, - "column": 61, - "offset": 1070 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 55, - "column": 5, - "offset": 1014 - }, - "end": { - "line": 55, - "column": 61, - "offset": 1070 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 55, - "column": 1, - "offset": 1010 - }, - "end": { - "line": 55, - "column": 61, - "offset": 1070 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "http", - "position": { - "start": { - "line": 56, - "column": 5, - "offset": 1075 - }, - "end": { - "line": 56, - "column": 9, - "offset": 1079 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ":", - "position": { - "start": { - "line": 56, - "column": 9, - "offset": 1079 - }, - "end": { - "line": 56, - "column": 16, - "offset": 1086 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "//user:password@host:port/path?key=value#fragment", - "position": { - "start": { - "line": 56, - "column": 16, - "offset": 1086 - }, - "end": { - "line": 56, - "column": 65, - "offset": 1135 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 56, - "column": 5, - "offset": 1075 - }, - "end": { - "line": 56, - "column": 65, - "offset": 1135 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 56, - "column": 1, - "offset": 1071 - }, - "end": { - "line": 56, - "column": 65, - "offset": 1135 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "https", - "position": { - "start": { - "line": 57, - "column": 5, - "offset": 1140 - }, - "end": { - "line": 57, - "column": 10, - "offset": 1145 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ":", - "position": { - "start": { - "line": 57, - "column": 10, - "offset": 1145 - }, - "end": { - "line": 57, - "column": 17, - "offset": 1152 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "//user:password@host:port/path?key=value#fragment", - "position": { - "start": { - "line": 57, - "column": 17, - "offset": 1152 - }, - "end": { - "line": 57, - "column": 66, - "offset": 1201 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 57, - "column": 5, - "offset": 1140 - }, - "end": { - "line": 57, - "column": 66, - "offset": 1201 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 57, - "column": 1, - "offset": 1136 - }, - "end": { - "line": 57, - "column": 66, - "offset": 1201 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 54, - "column": 1, - "offset": 950 - }, - "end": { - "line": 57, - "column": 66, - "offset": 1201 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Double tildes should be \\~~escaped\\~~.\nAnd here: foo~~.", - "position": { - "start": { - "line": 59, - "column": 1, - "offset": 1203 - }, - "end": { - "line": 60, - "column": 17, - "offset": 1258 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 59, - "column": 1, - "offset": 1203 - }, - "end": { - "line": 60, - "column": 17, - "offset": 1258 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Pipes should not be escaped here: |", - "position": { - "start": { - "line": 62, - "column": 1, - "offset": 1260 - }, - "end": { - "line": 62, - "column": 36, - "offset": 1295 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 62, - "column": 1, - "offset": 1260 - }, - "end": { - "line": 62, - "column": 36, - "offset": 1295 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "| here | they |\n| ------ | -------- |\n| should | tho\\|ugh |", - "position": { - "start": { - "line": 64, - "column": 1, - "offset": 1297 - }, - "end": { - "line": 66, - "column": 22, - "offset": 1362 - }, - "indent": [ - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 64, - "column": 1, - "offset": 1297 - }, - "end": { - "line": 66, - "column": 22, - "offset": 1362 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And here:", - "position": { - "start": { - "line": 68, - "column": 1, - "offset": 1364 - }, - "end": { - "line": 68, - "column": 10, - "offset": 1373 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 68, - "column": 1, - "offset": 1364 - }, - "end": { - "line": 68, - "column": 10, - "offset": 1373 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "| here | they |\n\\| ---- \\| ----- \\|\n| should | though |", - "position": { - "start": { - "line": 70, - "column": 1, - "offset": 1375 - }, - "end": { - "line": 72, - "column": 20, - "offset": 1434 - }, - "indent": [ - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 70, - "column": 1, - "offset": 1375 - }, - "end": { - "line": 72, - "column": 20, - "offset": 1434 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And here:", - "position": { - "start": { - "line": 74, - "column": 1, - "offset": 1436 - }, - "end": { - "line": 74, - "column": 10, - "offset": 1445 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 74, - "column": 1, - "offset": 1436 - }, - "end": { - "line": 74, - "column": 10, - "offset": 1445 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "here | they\n", - "position": { - "start": { - "line": 76, - "column": 1, - "offset": 1447 - }, - "end": { - "line": 77, - "column": 1, - "offset": 1461 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "-", - "position": { - "start": { - "line": 77, - "column": 1, - "offset": 1461 - }, - "end": { - "line": 77, - "column": 3, - "offset": 1463 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "--- \\| ------\nshould | though", - "position": { - "start": { - "line": 77, - "column": 3, - "offset": 1463 - }, - "end": { - "line": 78, - "column": 16, - "offset": 1492 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 76, - "column": 1, - "offset": 1447 - }, - "end": { - "line": 78, - "column": 16, - "offset": 1492 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "Commonmark:", - "position": { - "start": { - "line": 80, - "column": 3, - "offset": 1496 - }, - "end": { - "line": 80, - "column": 14, - "offset": 1507 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 80, - "column": 1, - "offset": 1494 - }, - "end": { - "line": 80, - "column": 16, - "offset": 1509 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 80, - "column": 1, - "offset": 1494 - }, - "end": { - "line": 80, - "column": 16, - "offset": 1509 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Open angle bracket should be escaped:", - "position": { - "start": { - "line": 82, - "column": 1, - "offset": 1511 - }, - "end": { - "line": 82, - "column": 38, - "offset": 1548 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 82, - "column": 1, - "offset": 1511 - }, - "end": { - "line": 82, - "column": 38, - "offset": 1548 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "\\", - "position": { - "start": { - "line": 84, - "column": 5, - "offset": 1554 - }, - "end": { - "line": 84, - "column": 6, - "offset": 1555 - }, - "indent": [] - } - }, - { - "type": "html", - "value": "
", - "position": { - "start": { - "line": 84, - "column": 6, - "offset": 1555 - }, - "end": { - "line": 84, - "column": 11, - "offset": 1560 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\\", - "position": { - "start": { - "line": 84, - "column": 11, - "offset": 1560 - }, - "end": { - "line": 84, - "column": 12, - "offset": 1561 - }, - "indent": [] - } - }, - { - "type": "html", - "value": "
", - "position": { - "start": { - "line": 84, - "column": 12, - "offset": 1561 - }, - "end": { - "line": 84, - "column": 18, - "offset": 1567 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 84, - "column": 5, - "offset": 1554 - }, - "end": { - "line": 84, - "column": 18, - "offset": 1567 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 84, - "column": 1, - "offset": 1550 - }, - "end": { - "line": 84, - "column": 18, - "offset": 1567 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "\\", - "position": { - "start": { - "line": 85, - "column": 5, - "offset": 1572 - }, - "end": { - "line": 85, - "column": 24, - "offset": 1591 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 85, - "column": 5, - "offset": 1572 - }, - "end": { - "line": 85, - "column": 24, - "offset": 1591 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 85, - "column": 1, - "offset": 1568 - }, - "end": { - "line": 85, - "column": 24, - "offset": 1591 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "<", - "position": { - "start": { - "line": 86, - "column": 5, - "offset": 1596 - }, - "end": { - "line": 86, - "column": 9, - "offset": 1600 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "div>", - "position": { - "start": { - "line": 86, - "column": 9, - "offset": 1600 - }, - "end": { - "line": 86, - "column": 13, - "offset": 1604 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "<", - "position": { - "start": { - "line": 86, - "column": 13, - "offset": 1604 - }, - "end": { - "line": 86, - "column": 17, - "offset": 1608 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "/div>", - "position": { - "start": { - "line": 86, - "column": 17, - "offset": 1608 - }, - "end": { - "line": 86, - "column": 22, - "offset": 1613 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 86, - "column": 5, - "offset": 1596 - }, - "end": { - "line": 86, - "column": 22, - "offset": 1613 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 86, - "column": 1, - "offset": 1592 - }, - "end": { - "line": 86, - "column": 22, - "offset": 1613 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "<", - "position": { - "start": { - "line": 87, - "column": 5, - "offset": 1618 - }, - "end": { - "line": 87, - "column": 9, - "offset": 1622 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "http", - "position": { - "start": { - "line": 87, - "column": 9, - "offset": 1622 - }, - "end": { - "line": 87, - "column": 13, - "offset": 1626 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ":", - "position": { - "start": { - "line": 87, - "column": 13, - "offset": 1626 - }, - "end": { - "line": 87, - "column": 20, - "offset": 1633 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "google.com>", - "position": { - "start": { - "line": 87, - "column": 20, - "offset": 1633 - }, - "end": { - "line": 87, - "column": 31, - "offset": 1644 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 87, - "column": 5, - "offset": 1618 - }, - "end": { - "line": 87, - "column": 31, - "offset": 1644 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 87, - "column": 1, - "offset": 1614 - }, - "end": { - "line": 87, - "column": 31, - "offset": 1644 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 84, - "column": 1, - "offset": 1550 - }, - "end": { - "line": 87, - "column": 31, - "offset": 1644 - }, - "indent": [ - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 88, - "column": 1, - "offset": 1645 - } - } -} diff --git a/test/fixtures/tree/stringify-escape.output.commonmark.commonmark.json b/test/fixtures/tree/stringify-escape.output.commonmark.commonmark.json deleted file mode 100644 index 49ce2f406..000000000 --- a/test/fixtures/tree/stringify-escape.output.commonmark.commonmark.json +++ /dev/null @@ -1,3291 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Characters that should be escaped in general:", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 46, - "offset": 45 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 46, - "offset": 45 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "\\", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 47 - }, - "end": { - "line": 3, - "column": 3, - "offset": 49 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 49 - }, - "end": { - "line": 3, - "column": 4, - "offset": 50 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "`", - "position": { - "start": { - "line": 3, - "column": 4, - "offset": 50 - }, - "end": { - "line": 3, - "column": 6, - "offset": 52 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 3, - "column": 6, - "offset": 52 - }, - "end": { - "line": 3, - "column": 7, - "offset": 53 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "*", - "position": { - "start": { - "line": 3, - "column": 7, - "offset": 53 - }, - "end": { - "line": 3, - "column": 9, - "offset": 55 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 3, - "column": 9, - "offset": 55 - }, - "end": { - "line": 3, - "column": 10, - "offset": 56 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "[", - "position": { - "start": { - "line": 3, - "column": 10, - "offset": 56 - }, - "end": { - "line": 3, - "column": 12, - "offset": 58 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 47 - }, - "end": { - "line": 3, - "column": 12, - "offset": 58 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Characters that shouldn't:", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 60 - }, - "end": { - "line": 5, - "column": 27, - "offset": 86 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 60 - }, - "end": { - "line": 5, - "column": 27, - "offset": 86 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "{}]()#+-.!>\"$%',/:;=?@^~", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 88 - }, - "end": { - "line": 7, - "column": 25, - "offset": 112 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 88 - }, - "end": { - "line": 7, - "column": 25, - "offset": 112 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Underscores are ", - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 114 - }, - "end": { - "line": 9, - "column": 17, - "offset": 130 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "_", - "position": { - "start": { - "line": 9, - "column": 17, - "offset": 130 - }, - "end": { - "line": 9, - "column": 19, - "offset": 132 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "escaped", - "position": { - "start": { - "line": 9, - "column": 19, - "offset": 132 - }, - "end": { - "line": 9, - "column": 26, - "offset": 139 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "_", - "position": { - "start": { - "line": 9, - "column": 26, - "offset": 139 - }, - "end": { - "line": 9, - "column": 28, - "offset": 141 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " unless they appear in_the_middle_of_a_word.", - "position": { - "start": { - "line": 9, - "column": 28, - "offset": 141 - }, - "end": { - "line": 9, - "column": 72, - "offset": 185 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 114 - }, - "end": { - "line": 9, - "column": 72, - "offset": 185 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Ampersands are escaped only when they would otherwise start an entity:", - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 187 - }, - "end": { - "line": 11, - "column": 71, - "offset": 257 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 187 - }, - "end": { - "line": 11, - "column": 71, - "offset": 257 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "&", - "position": { - "start": { - "line": 13, - "column": 5, - "offset": 263 - }, - "end": { - "line": 13, - "column": 7, - "offset": 265 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "copycat ", - "position": { - "start": { - "line": 13, - "column": 7, - "offset": 265 - }, - "end": { - "line": 13, - "column": 15, - "offset": 273 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "&", - "position": { - "start": { - "line": 13, - "column": 15, - "offset": 273 - }, - "end": { - "line": 13, - "column": 17, - "offset": 275 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "amp; ", - "position": { - "start": { - "line": 13, - "column": 17, - "offset": 275 - }, - "end": { - "line": 13, - "column": 22, - "offset": 280 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "&", - "position": { - "start": { - "line": 13, - "column": 22, - "offset": 280 - }, - "end": { - "line": 13, - "column": 24, - "offset": 282 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "#x26", - "position": { - "start": { - "line": 13, - "column": 24, - "offset": 282 - }, - "end": { - "line": 13, - "column": 28, - "offset": 286 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 5, - "offset": 263 - }, - "end": { - "line": 13, - "column": 28, - "offset": 286 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 259 - }, - "end": { - "line": 13, - "column": 28, - "offset": 286 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "But: ©cat; ", - "position": { - "start": { - "line": 14, - "column": 5, - "offset": 291 - }, - "end": { - "line": 14, - "column": 16, - "offset": 302 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "≬", - "position": { - "start": { - "line": 14, - "column": 16, - "offset": 302 - }, - "end": { - "line": 14, - "column": 27, - "offset": 313 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " &foo; & AT&T &c", - "position": { - "start": { - "line": 14, - "column": 27, - "offset": 313 - }, - "end": { - "line": 14, - "column": 43, - "offset": 329 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 5, - "offset": 291 - }, - "end": { - "line": 14, - "column": 43, - "offset": 329 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 287 - }, - "end": { - "line": 14, - "column": 43, - "offset": 329 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 259 - }, - "end": { - "line": 14, - "column": 43, - "offset": 329 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Open parenthesis should be escaped after a shortcut reference:", - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 331 - }, - "end": { - "line": 16, - "column": 63, - "offset": 393 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 331 - }, - "end": { - "line": 16, - "column": 63, - "offset": 393 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "ref", - "label": "ref", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "ref", - "position": { - "start": { - "line": 18, - "column": 2, - "offset": 396 - }, - "end": { - "line": 18, - "column": 5, - "offset": 399 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 395 - }, - "end": { - "line": 18, - "column": 6, - "offset": 400 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(", - "position": { - "start": { - "line": 18, - "column": 6, - "offset": 400 - }, - "end": { - "line": 18, - "column": 8, - "offset": 402 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "text)", - "position": { - "start": { - "line": 18, - "column": 8, - "offset": 402 - }, - "end": { - "line": 18, - "column": 13, - "offset": 407 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 395 - }, - "end": { - "line": 18, - "column": 13, - "offset": 407 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And after a shortcut reference and a space (for GitHub):", - "position": { - "start": { - "line": 20, - "column": 1, - "offset": 409 - }, - "end": { - "line": 20, - "column": 57, - "offset": 465 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 1, - "offset": 409 - }, - "end": { - "line": 20, - "column": 57, - "offset": 465 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "ref", - "label": "ref", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "ref", - "position": { - "start": { - "line": 22, - "column": 2, - "offset": 468 - }, - "end": { - "line": 22, - "column": 5, - "offset": 471 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 22, - "column": 1, - "offset": 467 - }, - "end": { - "line": 22, - "column": 6, - "offset": 472 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 22, - "column": 6, - "offset": 472 - }, - "end": { - "line": 22, - "column": 7, - "offset": 473 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(", - "position": { - "start": { - "line": 22, - "column": 7, - "offset": 473 - }, - "end": { - "line": 22, - "column": 9, - "offset": 475 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "text)", - "position": { - "start": { - "line": 22, - "column": 9, - "offset": 475 - }, - "end": { - "line": 22, - "column": 14, - "offset": 480 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 22, - "column": 1, - "offset": 467 - }, - "end": { - "line": 22, - "column": 14, - "offset": 480 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hyphen should be escaped at the beginning of a line:", - "position": { - "start": { - "line": 24, - "column": 1, - "offset": 482 - }, - "end": { - "line": 24, - "column": 53, - "offset": 534 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 24, - "column": 1, - "offset": 482 - }, - "end": { - "line": 24, - "column": 53, - "offset": 534 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "-", - "position": { - "start": { - "line": 26, - "column": 1, - "offset": 536 - }, - "end": { - "line": 26, - "column": 3, - "offset": 538 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " not a list item\n", - "position": { - "start": { - "line": 26, - "column": 3, - "offset": 538 - }, - "end": { - "line": 27, - "column": 1, - "offset": 555 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "-", - "position": { - "start": { - "line": 27, - "column": 1, - "offset": 555 - }, - "end": { - "line": 27, - "column": 3, - "offset": 557 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " not a list item\n ", - "position": { - "start": { - "line": 27, - "column": 3, - "offset": 557 - }, - "end": { - "line": 28, - "column": 3, - "offset": 576 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "+", - "position": { - "start": { - "line": 28, - "column": 3, - "offset": 576 - }, - "end": { - "line": 28, - "column": 5, - "offset": 578 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " not a list item", - "position": { - "start": { - "line": 28, - "column": 5, - "offset": 578 - }, - "end": { - "line": 28, - "column": 21, - "offset": 594 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 26, - "column": 1, - "offset": 536 - }, - "end": { - "line": 28, - "column": 21, - "offset": 594 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Same for angle brackets:", - "position": { - "start": { - "line": 30, - "column": 1, - "offset": 596 - }, - "end": { - "line": 30, - "column": 25, - "offset": 620 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 30, - "column": 1, - "offset": 596 - }, - "end": { - "line": 30, - "column": 25, - "offset": 620 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": ">", - "position": { - "start": { - "line": 32, - "column": 1, - "offset": 622 - }, - "end": { - "line": 32, - "column": 3, - "offset": 624 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " not a block quote", - "position": { - "start": { - "line": 32, - "column": 3, - "offset": 624 - }, - "end": { - "line": 32, - "column": 21, - "offset": 642 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 32, - "column": 1, - "offset": 622 - }, - "end": { - "line": 32, - "column": 21, - "offset": 642 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And hash signs:", - "position": { - "start": { - "line": 34, - "column": 1, - "offset": 644 - }, - "end": { - "line": 34, - "column": 16, - "offset": 659 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 34, - "column": 1, - "offset": 644 - }, - "end": { - "line": 34, - "column": 16, - "offset": 659 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "#", - "position": { - "start": { - "line": 36, - "column": 1, - "offset": 661 - }, - "end": { - "line": 36, - "column": 3, - "offset": 663 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " not a heading\n ", - "position": { - "start": { - "line": 36, - "column": 3, - "offset": 663 - }, - "end": { - "line": 37, - "column": 3, - "offset": 680 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "#", - "position": { - "start": { - "line": 37, - "column": 3, - "offset": 680 - }, - "end": { - "line": 37, - "column": 5, - "offset": 682 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "# not a subheading", - "position": { - "start": { - "line": 37, - "column": 5, - "offset": 682 - }, - "end": { - "line": 37, - "column": 23, - "offset": 700 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 36, - "column": 1, - "offset": 661 - }, - "end": { - "line": 37, - "column": 23, - "offset": 700 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Text under a shortcut reference should be preserved verbatim:", - "position": { - "start": { - "line": 39, - "column": 1, - "offset": 702 - }, - "end": { - "line": 39, - "column": 62, - "offset": 763 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 39, - "column": 1, - "offset": 702 - }, - "end": { - "line": 39, - "column": 62, - "offset": 763 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "two*three", - "label": "two*three", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "two*three", - "position": { - "start": { - "line": 41, - "column": 6, - "offset": 770 - }, - "end": { - "line": 41, - "column": 15, - "offset": 779 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 41, - "column": 5, - "offset": 769 - }, - "end": { - "line": 41, - "column": 16, - "offset": 780 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 41, - "column": 5, - "offset": 769 - }, - "end": { - "line": 41, - "column": 16, - "offset": 780 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 41, - "column": 1, - "offset": 765 - }, - "end": { - "line": 41, - "column": 16, - "offset": 780 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "two\\*three", - "label": "two\\*three", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "two", - "position": { - "start": { - "line": 42, - "column": 6, - "offset": 786 - }, - "end": { - "line": 42, - "column": 9, - "offset": 789 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "*", - "position": { - "start": { - "line": 42, - "column": 9, - "offset": 789 - }, - "end": { - "line": 42, - "column": 11, - "offset": 791 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "three", - "position": { - "start": { - "line": 42, - "column": 11, - "offset": 791 - }, - "end": { - "line": 42, - "column": 16, - "offset": 796 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 42, - "column": 5, - "offset": 785 - }, - "end": { - "line": 42, - "column": 17, - "offset": 797 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 42, - "column": 5, - "offset": 785 - }, - "end": { - "line": 42, - "column": 17, - "offset": 797 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 42, - "column": 1, - "offset": 781 - }, - "end": { - "line": 42, - "column": 17, - "offset": 797 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "a\\a", - "label": "a\\a", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "a\\a", - "position": { - "start": { - "line": 43, - "column": 6, - "offset": 803 - }, - "end": { - "line": 43, - "column": 9, - "offset": 806 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 43, - "column": 5, - "offset": 802 - }, - "end": { - "line": 43, - "column": 10, - "offset": 807 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 43, - "column": 5, - "offset": 802 - }, - "end": { - "line": 43, - "column": 10, - "offset": 807 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 43, - "column": 1, - "offset": 798 - }, - "end": { - "line": 43, - "column": 10, - "offset": 807 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "a\\\\a", - "label": "a\\\\a", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "a", - "position": { - "start": { - "line": 44, - "column": 6, - "offset": 813 - }, - "end": { - "line": 44, - "column": 7, - "offset": 814 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\\", - "position": { - "start": { - "line": 44, - "column": 7, - "offset": 814 - }, - "end": { - "line": 44, - "column": 9, - "offset": 816 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "a", - "position": { - "start": { - "line": 44, - "column": 9, - "offset": 816 - }, - "end": { - "line": 44, - "column": 10, - "offset": 817 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 44, - "column": 5, - "offset": 812 - }, - "end": { - "line": 44, - "column": 11, - "offset": 818 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 44, - "column": 5, - "offset": 812 - }, - "end": { - "line": 44, - "column": 11, - "offset": 818 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 44, - "column": 1, - "offset": 808 - }, - "end": { - "line": 44, - "column": 11, - "offset": 818 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "a\\\\\\a", - "label": "a\\\\\\a", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "a", - "position": { - "start": { - "line": 45, - "column": 6, - "offset": 824 - }, - "end": { - "line": 45, - "column": 7, - "offset": 825 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\\", - "position": { - "start": { - "line": 45, - "column": 7, - "offset": 825 - }, - "end": { - "line": 45, - "column": 9, - "offset": 827 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\\a", - "position": { - "start": { - "line": 45, - "column": 9, - "offset": 827 - }, - "end": { - "line": 45, - "column": 11, - "offset": 829 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 45, - "column": 5, - "offset": 823 - }, - "end": { - "line": 45, - "column": 12, - "offset": 830 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 45, - "column": 5, - "offset": 823 - }, - "end": { - "line": 45, - "column": 12, - "offset": 830 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 45, - "column": 1, - "offset": 819 - }, - "end": { - "line": 45, - "column": 12, - "offset": 830 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "a_a\\_a", - "label": "a_a\\_a", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "a_a", - "position": { - "start": { - "line": 46, - "column": 6, - "offset": 836 - }, - "end": { - "line": 46, - "column": 9, - "offset": 839 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "_", - "position": { - "start": { - "line": 46, - "column": 9, - "offset": 839 - }, - "end": { - "line": 46, - "column": 11, - "offset": 841 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "a", - "position": { - "start": { - "line": 46, - "column": 11, - "offset": 841 - }, - "end": { - "line": 46, - "column": 12, - "offset": 842 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 46, - "column": 5, - "offset": 835 - }, - "end": { - "line": 46, - "column": 13, - "offset": 843 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 46, - "column": 5, - "offset": 835 - }, - "end": { - "line": 46, - "column": 13, - "offset": 843 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 46, - "column": 1, - "offset": 831 - }, - "end": { - "line": 46, - "column": 13, - "offset": 843 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 41, - "column": 1, - "offset": 765 - }, - "end": { - "line": 46, - "column": 13, - "offset": 843 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "GFM:", - "position": { - "start": { - "line": 48, - "column": 3, - "offset": 847 - }, - "end": { - "line": 48, - "column": 7, - "offset": 851 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 48, - "column": 1, - "offset": 845 - }, - "end": { - "line": 48, - "column": 9, - "offset": 853 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 48, - "column": 1, - "offset": 845 - }, - "end": { - "line": 48, - "column": 9, - "offset": 853 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Colon should be escaped in URLs:", - "position": { - "start": { - "line": 50, - "column": 1, - "offset": 855 - }, - "end": { - "line": 50, - "column": 33, - "offset": 887 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 50, - "column": 1, - "offset": 855 - }, - "end": { - "line": 50, - "column": 33, - "offset": 887 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "http", - "position": { - "start": { - "line": 52, - "column": 5, - "offset": 893 - }, - "end": { - "line": 52, - "column": 9, - "offset": 897 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ":", - "position": { - "start": { - "line": 52, - "column": 9, - "offset": 897 - }, - "end": { - "line": 52, - "column": 11, - "offset": 899 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "//user:password@host:port/path?key=value#fragment", - "position": { - "start": { - "line": 52, - "column": 11, - "offset": 899 - }, - "end": { - "line": 52, - "column": 60, - "offset": 948 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 52, - "column": 5, - "offset": 893 - }, - "end": { - "line": 52, - "column": 60, - "offset": 948 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 52, - "column": 1, - "offset": 889 - }, - "end": { - "line": 52, - "column": 60, - "offset": 948 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "https", - "position": { - "start": { - "line": 53, - "column": 5, - "offset": 953 - }, - "end": { - "line": 53, - "column": 10, - "offset": 958 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ":", - "position": { - "start": { - "line": 53, - "column": 10, - "offset": 958 - }, - "end": { - "line": 53, - "column": 12, - "offset": 960 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "//user:password@host:port/path?key=value#fragment", - "position": { - "start": { - "line": 53, - "column": 12, - "offset": 960 - }, - "end": { - "line": 53, - "column": 61, - "offset": 1009 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 53, - "column": 5, - "offset": 953 - }, - "end": { - "line": 53, - "column": 61, - "offset": 1009 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 53, - "column": 1, - "offset": 949 - }, - "end": { - "line": 53, - "column": 61, - "offset": 1009 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 52, - "column": 1, - "offset": 889 - }, - "end": { - "line": 53, - "column": 61, - "offset": 1009 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Double tildes should be ", - "position": { - "start": { - "line": 55, - "column": 1, - "offset": 1011 - }, - "end": { - "line": 55, - "column": 25, - "offset": 1035 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "~", - "position": { - "start": { - "line": 55, - "column": 25, - "offset": 1035 - }, - "end": { - "line": 55, - "column": 27, - "offset": 1037 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "~escaped", - "position": { - "start": { - "line": 55, - "column": 27, - "offset": 1037 - }, - "end": { - "line": 55, - "column": 35, - "offset": 1045 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "~", - "position": { - "start": { - "line": 55, - "column": 35, - "offset": 1045 - }, - "end": { - "line": 55, - "column": 37, - "offset": 1047 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "~.\nAnd here: foo", - "position": { - "start": { - "line": 55, - "column": 37, - "offset": 1047 - }, - "end": { - "line": 56, - "column": 14, - "offset": 1063 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "~", - "position": { - "start": { - "line": 56, - "column": 14, - "offset": 1063 - }, - "end": { - "line": 56, - "column": 16, - "offset": 1065 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "~.", - "position": { - "start": { - "line": 56, - "column": 16, - "offset": 1065 - }, - "end": { - "line": 56, - "column": 18, - "offset": 1067 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 55, - "column": 1, - "offset": 1011 - }, - "end": { - "line": 56, - "column": 18, - "offset": 1067 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Pipes should not be escaped here: |", - "position": { - "start": { - "line": 58, - "column": 1, - "offset": 1069 - }, - "end": { - "line": 58, - "column": 36, - "offset": 1104 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 58, - "column": 1, - "offset": 1069 - }, - "end": { - "line": 58, - "column": 36, - "offset": 1104 - }, - "indent": [] - } - }, - { - "type": "table", - "align": [ - null, - null - ], - "children": [ - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "here", - "position": { - "start": { - "line": 60, - "column": 3, - "offset": 1108 - }, - "end": { - "line": 60, - "column": 7, - "offset": 1112 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 60, - "column": 3, - "offset": 1108 - }, - "end": { - "line": 60, - "column": 9, - "offset": 1114 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "they", - "position": { - "start": { - "line": 60, - "column": 12, - "offset": 1117 - }, - "end": { - "line": 60, - "column": 16, - "offset": 1121 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 60, - "column": 12, - "offset": 1117 - }, - "end": { - "line": 60, - "column": 20, - "offset": 1125 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 60, - "column": 1, - "offset": 1106 - }, - "end": { - "line": 60, - "column": 22, - "offset": 1127 - }, - "indent": [] - } - }, - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "should", - "position": { - "start": { - "line": 62, - "column": 3, - "offset": 1152 - }, - "end": { - "line": 62, - "column": 9, - "offset": 1158 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 62, - "column": 3, - "offset": 1152 - }, - "end": { - "line": 62, - "column": 9, - "offset": 1158 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "tho", - "position": { - "start": { - "line": 62, - "column": 12, - "offset": 1161 - }, - "end": { - "line": 62, - "column": 15, - "offset": 1164 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "|", - "position": { - "start": { - "line": 62, - "column": 15, - "offset": 1164 - }, - "end": { - "line": 62, - "column": 17, - "offset": 1166 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "ugh", - "position": { - "start": { - "line": 62, - "column": 17, - "offset": 1166 - }, - "end": { - "line": 62, - "column": 20, - "offset": 1169 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 62, - "column": 12, - "offset": 1161 - }, - "end": { - "line": 62, - "column": 20, - "offset": 1169 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 62, - "column": 1, - "offset": 1150 - }, - "end": { - "line": 62, - "column": 22, - "offset": 1171 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 60, - "column": 1, - "offset": 1106 - }, - "end": { - "line": 62, - "column": 22, - "offset": 1171 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And here:", - "position": { - "start": { - "line": 64, - "column": 1, - "offset": 1173 - }, - "end": { - "line": 64, - "column": 10, - "offset": 1182 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 64, - "column": 1, - "offset": 1173 - }, - "end": { - "line": 64, - "column": 10, - "offset": 1182 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "| here | they |\n", - "position": { - "start": { - "line": 66, - "column": 1, - "offset": 1184 - }, - "end": { - "line": 67, - "column": 1, - "offset": 1204 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "|", - "position": { - "start": { - "line": 67, - "column": 1, - "offset": 1204 - }, - "end": { - "line": 67, - "column": 3, - "offset": 1206 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ---- ", - "position": { - "start": { - "line": 67, - "column": 3, - "offset": 1206 - }, - "end": { - "line": 67, - "column": 9, - "offset": 1212 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "|", - "position": { - "start": { - "line": 67, - "column": 9, - "offset": 1212 - }, - "end": { - "line": 67, - "column": 11, - "offset": 1214 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ----- ", - "position": { - "start": { - "line": 67, - "column": 11, - "offset": 1214 - }, - "end": { - "line": 67, - "column": 18, - "offset": 1221 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "|", - "position": { - "start": { - "line": 67, - "column": 18, - "offset": 1221 - }, - "end": { - "line": 67, - "column": 20, - "offset": 1223 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\n| should | though |", - "position": { - "start": { - "line": 67, - "column": 20, - "offset": 1223 - }, - "end": { - "line": 68, - "column": 20, - "offset": 1243 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 66, - "column": 1, - "offset": 1184 - }, - "end": { - "line": 68, - "column": 20, - "offset": 1243 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And here:", - "position": { - "start": { - "line": 70, - "column": 1, - "offset": 1245 - }, - "end": { - "line": 70, - "column": 10, - "offset": 1254 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 70, - "column": 1, - "offset": 1245 - }, - "end": { - "line": 70, - "column": 10, - "offset": 1254 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "here | they\n", - "position": { - "start": { - "line": 72, - "column": 1, - "offset": 1256 - }, - "end": { - "line": 73, - "column": 1, - "offset": 1270 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "-", - "position": { - "start": { - "line": 73, - "column": 1, - "offset": 1270 - }, - "end": { - "line": 73, - "column": 3, - "offset": 1272 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "--- ", - "position": { - "start": { - "line": 73, - "column": 3, - "offset": 1272 - }, - "end": { - "line": 73, - "column": 7, - "offset": 1276 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "|", - "position": { - "start": { - "line": 73, - "column": 7, - "offset": 1276 - }, - "end": { - "line": 73, - "column": 9, - "offset": 1278 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ------\nshould | though", - "position": { - "start": { - "line": 73, - "column": 9, - "offset": 1278 - }, - "end": { - "line": 74, - "column": 16, - "offset": 1301 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 72, - "column": 1, - "offset": 1256 - }, - "end": { - "line": 74, - "column": 16, - "offset": 1301 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "Commonmark:", - "position": { - "start": { - "line": 76, - "column": 3, - "offset": 1305 - }, - "end": { - "line": 76, - "column": 14, - "offset": 1316 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 76, - "column": 1, - "offset": 1303 - }, - "end": { - "line": 76, - "column": 16, - "offset": 1318 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 76, - "column": 1, - "offset": 1303 - }, - "end": { - "line": 76, - "column": 16, - "offset": 1318 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Open angle bracket should be escaped:", - "position": { - "start": { - "line": 78, - "column": 1, - "offset": 1320 - }, - "end": { - "line": 78, - "column": 38, - "offset": 1357 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 78, - "column": 1, - "offset": 1320 - }, - "end": { - "line": 78, - "column": 38, - "offset": 1357 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "<", - "position": { - "start": { - "line": 80, - "column": 5, - "offset": 1363 - }, - "end": { - "line": 80, - "column": 7, - "offset": 1365 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "div>", - "position": { - "start": { - "line": 80, - "column": 7, - "offset": 1365 - }, - "end": { - "line": 80, - "column": 11, - "offset": 1369 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "<", - "position": { - "start": { - "line": 80, - "column": 11, - "offset": 1369 - }, - "end": { - "line": 80, - "column": 13, - "offset": 1371 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "/div>", - "position": { - "start": { - "line": 80, - "column": 13, - "offset": 1371 - }, - "end": { - "line": 80, - "column": 18, - "offset": 1376 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 80, - "column": 5, - "offset": 1363 - }, - "end": { - "line": 80, - "column": 18, - "offset": 1376 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 80, - "column": 1, - "offset": 1359 - }, - "end": { - "line": 80, - "column": 18, - "offset": 1376 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "<", - "position": { - "start": { - "line": 81, - "column": 5, - "offset": 1381 - }, - "end": { - "line": 81, - "column": 7, - "offset": 1383 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "http", - "position": { - "start": { - "line": 81, - "column": 7, - "offset": 1383 - }, - "end": { - "line": 81, - "column": 11, - "offset": 1387 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ":", - "position": { - "start": { - "line": 81, - "column": 11, - "offset": 1387 - }, - "end": { - "line": 81, - "column": 13, - "offset": 1389 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "google.com>", - "position": { - "start": { - "line": 81, - "column": 13, - "offset": 1389 - }, - "end": { - "line": 81, - "column": 24, - "offset": 1400 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 81, - "column": 5, - "offset": 1381 - }, - "end": { - "line": 81, - "column": 24, - "offset": 1400 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 81, - "column": 1, - "offset": 1377 - }, - "end": { - "line": 81, - "column": 24, - "offset": 1400 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 80, - "column": 1, - "offset": 1359 - }, - "end": { - "line": 81, - "column": 24, - "offset": 1400 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 82, - "column": 1, - "offset": 1401 - } - } -} diff --git a/test/fixtures/tree/stringify-escape.output.json b/test/fixtures/tree/stringify-escape.output.json deleted file mode 100644 index 19ed37bb7..000000000 --- a/test/fixtures/tree/stringify-escape.output.json +++ /dev/null @@ -1,3291 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Characters that should be escaped in general:", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 46, - "offset": 45 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 46, - "offset": 45 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "\\", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 47 - }, - "end": { - "line": 3, - "column": 3, - "offset": 49 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 49 - }, - "end": { - "line": 3, - "column": 4, - "offset": 50 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "`", - "position": { - "start": { - "line": 3, - "column": 4, - "offset": 50 - }, - "end": { - "line": 3, - "column": 6, - "offset": 52 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 3, - "column": 6, - "offset": 52 - }, - "end": { - "line": 3, - "column": 7, - "offset": 53 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "*", - "position": { - "start": { - "line": 3, - "column": 7, - "offset": 53 - }, - "end": { - "line": 3, - "column": 9, - "offset": 55 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 3, - "column": 9, - "offset": 55 - }, - "end": { - "line": 3, - "column": 10, - "offset": 56 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "[", - "position": { - "start": { - "line": 3, - "column": 10, - "offset": 56 - }, - "end": { - "line": 3, - "column": 12, - "offset": 58 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 47 - }, - "end": { - "line": 3, - "column": 12, - "offset": 58 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Characters that shouldn't:", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 60 - }, - "end": { - "line": 5, - "column": 27, - "offset": 86 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 60 - }, - "end": { - "line": 5, - "column": 27, - "offset": 86 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "{}]()#+-.!>\"$%',/:;=?@^~", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 88 - }, - "end": { - "line": 7, - "column": 25, - "offset": 112 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 88 - }, - "end": { - "line": 7, - "column": 25, - "offset": 112 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Underscores are ", - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 114 - }, - "end": { - "line": 9, - "column": 17, - "offset": 130 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "_", - "position": { - "start": { - "line": 9, - "column": 17, - "offset": 130 - }, - "end": { - "line": 9, - "column": 19, - "offset": 132 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "escaped", - "position": { - "start": { - "line": 9, - "column": 19, - "offset": 132 - }, - "end": { - "line": 9, - "column": 26, - "offset": 139 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "_", - "position": { - "start": { - "line": 9, - "column": 26, - "offset": 139 - }, - "end": { - "line": 9, - "column": 28, - "offset": 141 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " unless they appear in_the_middle_of_a_word.", - "position": { - "start": { - "line": 9, - "column": 28, - "offset": 141 - }, - "end": { - "line": 9, - "column": 72, - "offset": 185 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 114 - }, - "end": { - "line": 9, - "column": 72, - "offset": 185 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Ampersands are escaped only when they would otherwise start an entity:", - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 187 - }, - "end": { - "line": 11, - "column": 71, - "offset": 257 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 187 - }, - "end": { - "line": 11, - "column": 71, - "offset": 257 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "&", - "position": { - "start": { - "line": 13, - "column": 5, - "offset": 263 - }, - "end": { - "line": 13, - "column": 10, - "offset": 268 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "copycat ", - "position": { - "start": { - "line": 13, - "column": 10, - "offset": 268 - }, - "end": { - "line": 13, - "column": 18, - "offset": 276 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "&", - "position": { - "start": { - "line": 13, - "column": 18, - "offset": 276 - }, - "end": { - "line": 13, - "column": 23, - "offset": 281 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "amp; ", - "position": { - "start": { - "line": 13, - "column": 23, - "offset": 281 - }, - "end": { - "line": 13, - "column": 28, - "offset": 286 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "&", - "position": { - "start": { - "line": 13, - "column": 28, - "offset": 286 - }, - "end": { - "line": 13, - "column": 33, - "offset": 291 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "#x26", - "position": { - "start": { - "line": 13, - "column": 33, - "offset": 291 - }, - "end": { - "line": 13, - "column": 37, - "offset": 295 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 5, - "offset": 263 - }, - "end": { - "line": 13, - "column": 37, - "offset": 295 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 259 - }, - "end": { - "line": 13, - "column": 37, - "offset": 295 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "But: ©cat; ", - "position": { - "start": { - "line": 14, - "column": 5, - "offset": 300 - }, - "end": { - "line": 14, - "column": 16, - "offset": 311 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "≬", - "position": { - "start": { - "line": 14, - "column": 16, - "offset": 311 - }, - "end": { - "line": 14, - "column": 27, - "offset": 322 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " &foo; & AT&T &c", - "position": { - "start": { - "line": 14, - "column": 27, - "offset": 322 - }, - "end": { - "line": 14, - "column": 43, - "offset": 338 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 5, - "offset": 300 - }, - "end": { - "line": 14, - "column": 43, - "offset": 338 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 296 - }, - "end": { - "line": 14, - "column": 43, - "offset": 338 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 259 - }, - "end": { - "line": 14, - "column": 43, - "offset": 338 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Open parenthesis should be escaped after a shortcut reference:", - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 340 - }, - "end": { - "line": 16, - "column": 63, - "offset": 402 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 340 - }, - "end": { - "line": 16, - "column": 63, - "offset": 402 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "ref", - "label": "ref", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "ref", - "position": { - "start": { - "line": 18, - "column": 2, - "offset": 405 - }, - "end": { - "line": 18, - "column": 5, - "offset": 408 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 404 - }, - "end": { - "line": 18, - "column": 6, - "offset": 409 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(", - "position": { - "start": { - "line": 18, - "column": 6, - "offset": 409 - }, - "end": { - "line": 18, - "column": 8, - "offset": 411 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "text)", - "position": { - "start": { - "line": 18, - "column": 8, - "offset": 411 - }, - "end": { - "line": 18, - "column": 13, - "offset": 416 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 404 - }, - "end": { - "line": 18, - "column": 13, - "offset": 416 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And after a shortcut reference and a space (for GitHub):", - "position": { - "start": { - "line": 20, - "column": 1, - "offset": 418 - }, - "end": { - "line": 20, - "column": 57, - "offset": 474 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 1, - "offset": 418 - }, - "end": { - "line": 20, - "column": 57, - "offset": 474 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "ref", - "label": "ref", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "ref", - "position": { - "start": { - "line": 22, - "column": 2, - "offset": 477 - }, - "end": { - "line": 22, - "column": 5, - "offset": 480 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 22, - "column": 1, - "offset": 476 - }, - "end": { - "line": 22, - "column": 6, - "offset": 481 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 22, - "column": 6, - "offset": 481 - }, - "end": { - "line": 22, - "column": 7, - "offset": 482 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(", - "position": { - "start": { - "line": 22, - "column": 7, - "offset": 482 - }, - "end": { - "line": 22, - "column": 9, - "offset": 484 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "text)", - "position": { - "start": { - "line": 22, - "column": 9, - "offset": 484 - }, - "end": { - "line": 22, - "column": 14, - "offset": 489 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 22, - "column": 1, - "offset": 476 - }, - "end": { - "line": 22, - "column": 14, - "offset": 489 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hyphen should be escaped at the beginning of a line:", - "position": { - "start": { - "line": 24, - "column": 1, - "offset": 491 - }, - "end": { - "line": 24, - "column": 53, - "offset": 543 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 24, - "column": 1, - "offset": 491 - }, - "end": { - "line": 24, - "column": 53, - "offset": 543 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "-", - "position": { - "start": { - "line": 26, - "column": 1, - "offset": 545 - }, - "end": { - "line": 26, - "column": 3, - "offset": 547 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " not a list item\n", - "position": { - "start": { - "line": 26, - "column": 3, - "offset": 547 - }, - "end": { - "line": 27, - "column": 1, - "offset": 564 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "-", - "position": { - "start": { - "line": 27, - "column": 1, - "offset": 564 - }, - "end": { - "line": 27, - "column": 3, - "offset": 566 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " not a list item\n ", - "position": { - "start": { - "line": 27, - "column": 3, - "offset": 566 - }, - "end": { - "line": 28, - "column": 3, - "offset": 585 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "+", - "position": { - "start": { - "line": 28, - "column": 3, - "offset": 585 - }, - "end": { - "line": 28, - "column": 5, - "offset": 587 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " not a list item", - "position": { - "start": { - "line": 28, - "column": 5, - "offset": 587 - }, - "end": { - "line": 28, - "column": 21, - "offset": 603 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 26, - "column": 1, - "offset": 545 - }, - "end": { - "line": 28, - "column": 21, - "offset": 603 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Same for angle brackets:", - "position": { - "start": { - "line": 30, - "column": 1, - "offset": 605 - }, - "end": { - "line": 30, - "column": 25, - "offset": 629 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 30, - "column": 1, - "offset": 605 - }, - "end": { - "line": 30, - "column": 25, - "offset": 629 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": ">", - "position": { - "start": { - "line": 32, - "column": 1, - "offset": 631 - }, - "end": { - "line": 32, - "column": 3, - "offset": 633 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " not a block quote", - "position": { - "start": { - "line": 32, - "column": 3, - "offset": 633 - }, - "end": { - "line": 32, - "column": 21, - "offset": 651 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 32, - "column": 1, - "offset": 631 - }, - "end": { - "line": 32, - "column": 21, - "offset": 651 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And hash signs:", - "position": { - "start": { - "line": 34, - "column": 1, - "offset": 653 - }, - "end": { - "line": 34, - "column": 16, - "offset": 668 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 34, - "column": 1, - "offset": 653 - }, - "end": { - "line": 34, - "column": 16, - "offset": 668 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "#", - "position": { - "start": { - "line": 36, - "column": 1, - "offset": 670 - }, - "end": { - "line": 36, - "column": 3, - "offset": 672 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " not a heading\n ", - "position": { - "start": { - "line": 36, - "column": 3, - "offset": 672 - }, - "end": { - "line": 37, - "column": 3, - "offset": 689 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "#", - "position": { - "start": { - "line": 37, - "column": 3, - "offset": 689 - }, - "end": { - "line": 37, - "column": 5, - "offset": 691 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "# not a subheading", - "position": { - "start": { - "line": 37, - "column": 5, - "offset": 691 - }, - "end": { - "line": 37, - "column": 23, - "offset": 709 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 36, - "column": 1, - "offset": 670 - }, - "end": { - "line": 37, - "column": 23, - "offset": 709 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Text under a shortcut reference should be preserved verbatim:", - "position": { - "start": { - "line": 39, - "column": 1, - "offset": 711 - }, - "end": { - "line": 39, - "column": 62, - "offset": 772 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 39, - "column": 1, - "offset": 711 - }, - "end": { - "line": 39, - "column": 62, - "offset": 772 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "two*three", - "label": "two*three", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "two*three", - "position": { - "start": { - "line": 41, - "column": 6, - "offset": 779 - }, - "end": { - "line": 41, - "column": 15, - "offset": 788 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 41, - "column": 5, - "offset": 778 - }, - "end": { - "line": 41, - "column": 16, - "offset": 789 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 41, - "column": 5, - "offset": 778 - }, - "end": { - "line": 41, - "column": 16, - "offset": 789 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 41, - "column": 1, - "offset": 774 - }, - "end": { - "line": 41, - "column": 16, - "offset": 789 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "two\\*three", - "label": "two\\*three", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "two", - "position": { - "start": { - "line": 42, - "column": 6, - "offset": 795 - }, - "end": { - "line": 42, - "column": 9, - "offset": 798 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "*", - "position": { - "start": { - "line": 42, - "column": 9, - "offset": 798 - }, - "end": { - "line": 42, - "column": 11, - "offset": 800 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "three", - "position": { - "start": { - "line": 42, - "column": 11, - "offset": 800 - }, - "end": { - "line": 42, - "column": 16, - "offset": 805 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 42, - "column": 5, - "offset": 794 - }, - "end": { - "line": 42, - "column": 17, - "offset": 806 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 42, - "column": 5, - "offset": 794 - }, - "end": { - "line": 42, - "column": 17, - "offset": 806 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 42, - "column": 1, - "offset": 790 - }, - "end": { - "line": 42, - "column": 17, - "offset": 806 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "a\\a", - "label": "a\\a", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "a\\a", - "position": { - "start": { - "line": 43, - "column": 6, - "offset": 812 - }, - "end": { - "line": 43, - "column": 9, - "offset": 815 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 43, - "column": 5, - "offset": 811 - }, - "end": { - "line": 43, - "column": 10, - "offset": 816 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 43, - "column": 5, - "offset": 811 - }, - "end": { - "line": 43, - "column": 10, - "offset": 816 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 43, - "column": 1, - "offset": 807 - }, - "end": { - "line": 43, - "column": 10, - "offset": 816 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "a\\\\a", - "label": "a\\\\a", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "a", - "position": { - "start": { - "line": 44, - "column": 6, - "offset": 822 - }, - "end": { - "line": 44, - "column": 7, - "offset": 823 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\\", - "position": { - "start": { - "line": 44, - "column": 7, - "offset": 823 - }, - "end": { - "line": 44, - "column": 9, - "offset": 825 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "a", - "position": { - "start": { - "line": 44, - "column": 9, - "offset": 825 - }, - "end": { - "line": 44, - "column": 10, - "offset": 826 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 44, - "column": 5, - "offset": 821 - }, - "end": { - "line": 44, - "column": 11, - "offset": 827 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 44, - "column": 5, - "offset": 821 - }, - "end": { - "line": 44, - "column": 11, - "offset": 827 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 44, - "column": 1, - "offset": 817 - }, - "end": { - "line": 44, - "column": 11, - "offset": 827 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "a\\\\\\a", - "label": "a\\\\\\a", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "a", - "position": { - "start": { - "line": 45, - "column": 6, - "offset": 833 - }, - "end": { - "line": 45, - "column": 7, - "offset": 834 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\\", - "position": { - "start": { - "line": 45, - "column": 7, - "offset": 834 - }, - "end": { - "line": 45, - "column": 9, - "offset": 836 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\\a", - "position": { - "start": { - "line": 45, - "column": 9, - "offset": 836 - }, - "end": { - "line": 45, - "column": 11, - "offset": 838 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 45, - "column": 5, - "offset": 832 - }, - "end": { - "line": 45, - "column": 12, - "offset": 839 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 45, - "column": 5, - "offset": 832 - }, - "end": { - "line": 45, - "column": 12, - "offset": 839 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 45, - "column": 1, - "offset": 828 - }, - "end": { - "line": 45, - "column": 12, - "offset": 839 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "a_a\\_a", - "label": "a_a\\_a", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "a_a", - "position": { - "start": { - "line": 46, - "column": 6, - "offset": 845 - }, - "end": { - "line": 46, - "column": 9, - "offset": 848 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "_", - "position": { - "start": { - "line": 46, - "column": 9, - "offset": 848 - }, - "end": { - "line": 46, - "column": 11, - "offset": 850 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "a", - "position": { - "start": { - "line": 46, - "column": 11, - "offset": 850 - }, - "end": { - "line": 46, - "column": 12, - "offset": 851 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 46, - "column": 5, - "offset": 844 - }, - "end": { - "line": 46, - "column": 13, - "offset": 852 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 46, - "column": 5, - "offset": 844 - }, - "end": { - "line": 46, - "column": 13, - "offset": 852 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 46, - "column": 1, - "offset": 840 - }, - "end": { - "line": 46, - "column": 13, - "offset": 852 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 41, - "column": 1, - "offset": 774 - }, - "end": { - "line": 46, - "column": 13, - "offset": 852 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "GFM:", - "position": { - "start": { - "line": 48, - "column": 3, - "offset": 856 - }, - "end": { - "line": 48, - "column": 7, - "offset": 860 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 48, - "column": 1, - "offset": 854 - }, - "end": { - "line": 48, - "column": 9, - "offset": 862 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 48, - "column": 1, - "offset": 854 - }, - "end": { - "line": 48, - "column": 9, - "offset": 862 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Colon should be escaped in URLs:", - "position": { - "start": { - "line": 50, - "column": 1, - "offset": 864 - }, - "end": { - "line": 50, - "column": 33, - "offset": 896 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 50, - "column": 1, - "offset": 864 - }, - "end": { - "line": 50, - "column": 33, - "offset": 896 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "http", - "position": { - "start": { - "line": 52, - "column": 5, - "offset": 902 - }, - "end": { - "line": 52, - "column": 9, - "offset": 906 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ":", - "position": { - "start": { - "line": 52, - "column": 9, - "offset": 906 - }, - "end": { - "line": 52, - "column": 15, - "offset": 912 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "//user:password@host:port/path?key=value#fragment", - "position": { - "start": { - "line": 52, - "column": 15, - "offset": 912 - }, - "end": { - "line": 52, - "column": 64, - "offset": 961 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 52, - "column": 5, - "offset": 902 - }, - "end": { - "line": 52, - "column": 64, - "offset": 961 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 52, - "column": 1, - "offset": 898 - }, - "end": { - "line": 52, - "column": 64, - "offset": 961 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "https", - "position": { - "start": { - "line": 53, - "column": 5, - "offset": 966 - }, - "end": { - "line": 53, - "column": 10, - "offset": 971 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ":", - "position": { - "start": { - "line": 53, - "column": 10, - "offset": 971 - }, - "end": { - "line": 53, - "column": 16, - "offset": 977 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "//user:password@host:port/path?key=value#fragment", - "position": { - "start": { - "line": 53, - "column": 16, - "offset": 977 - }, - "end": { - "line": 53, - "column": 65, - "offset": 1026 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 53, - "column": 5, - "offset": 966 - }, - "end": { - "line": 53, - "column": 65, - "offset": 1026 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 53, - "column": 1, - "offset": 962 - }, - "end": { - "line": 53, - "column": 65, - "offset": 1026 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 52, - "column": 1, - "offset": 898 - }, - "end": { - "line": 53, - "column": 65, - "offset": 1026 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Double tildes should be ", - "position": { - "start": { - "line": 55, - "column": 1, - "offset": 1028 - }, - "end": { - "line": 55, - "column": 25, - "offset": 1052 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "~", - "position": { - "start": { - "line": 55, - "column": 25, - "offset": 1052 - }, - "end": { - "line": 55, - "column": 27, - "offset": 1054 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "~escaped", - "position": { - "start": { - "line": 55, - "column": 27, - "offset": 1054 - }, - "end": { - "line": 55, - "column": 35, - "offset": 1062 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "~", - "position": { - "start": { - "line": 55, - "column": 35, - "offset": 1062 - }, - "end": { - "line": 55, - "column": 37, - "offset": 1064 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "~.\nAnd here: foo", - "position": { - "start": { - "line": 55, - "column": 37, - "offset": 1064 - }, - "end": { - "line": 56, - "column": 14, - "offset": 1080 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "~", - "position": { - "start": { - "line": 56, - "column": 14, - "offset": 1080 - }, - "end": { - "line": 56, - "column": 16, - "offset": 1082 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "~.", - "position": { - "start": { - "line": 56, - "column": 16, - "offset": 1082 - }, - "end": { - "line": 56, - "column": 18, - "offset": 1084 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 55, - "column": 1, - "offset": 1028 - }, - "end": { - "line": 56, - "column": 18, - "offset": 1084 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Pipes should not be escaped here: |", - "position": { - "start": { - "line": 58, - "column": 1, - "offset": 1086 - }, - "end": { - "line": 58, - "column": 36, - "offset": 1121 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 58, - "column": 1, - "offset": 1086 - }, - "end": { - "line": 58, - "column": 36, - "offset": 1121 - }, - "indent": [] - } - }, - { - "type": "table", - "align": [ - null, - null - ], - "children": [ - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "here", - "position": { - "start": { - "line": 60, - "column": 3, - "offset": 1125 - }, - "end": { - "line": 60, - "column": 7, - "offset": 1129 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 60, - "column": 3, - "offset": 1125 - }, - "end": { - "line": 60, - "column": 9, - "offset": 1131 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "they", - "position": { - "start": { - "line": 60, - "column": 12, - "offset": 1134 - }, - "end": { - "line": 60, - "column": 16, - "offset": 1138 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 60, - "column": 12, - "offset": 1134 - }, - "end": { - "line": 60, - "column": 20, - "offset": 1142 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 60, - "column": 1, - "offset": 1123 - }, - "end": { - "line": 60, - "column": 22, - "offset": 1144 - }, - "indent": [] - } - }, - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "should", - "position": { - "start": { - "line": 62, - "column": 3, - "offset": 1169 - }, - "end": { - "line": 62, - "column": 9, - "offset": 1175 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 62, - "column": 3, - "offset": 1169 - }, - "end": { - "line": 62, - "column": 9, - "offset": 1175 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "tho", - "position": { - "start": { - "line": 62, - "column": 12, - "offset": 1178 - }, - "end": { - "line": 62, - "column": 15, - "offset": 1181 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "|", - "position": { - "start": { - "line": 62, - "column": 15, - "offset": 1181 - }, - "end": { - "line": 62, - "column": 17, - "offset": 1183 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "ugh", - "position": { - "start": { - "line": 62, - "column": 17, - "offset": 1183 - }, - "end": { - "line": 62, - "column": 20, - "offset": 1186 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 62, - "column": 12, - "offset": 1178 - }, - "end": { - "line": 62, - "column": 20, - "offset": 1186 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 62, - "column": 1, - "offset": 1167 - }, - "end": { - "line": 62, - "column": 22, - "offset": 1188 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 60, - "column": 1, - "offset": 1123 - }, - "end": { - "line": 62, - "column": 22, - "offset": 1188 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And here:", - "position": { - "start": { - "line": 64, - "column": 1, - "offset": 1190 - }, - "end": { - "line": 64, - "column": 10, - "offset": 1199 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 64, - "column": 1, - "offset": 1190 - }, - "end": { - "line": 64, - "column": 10, - "offset": 1199 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "| here | they |\n", - "position": { - "start": { - "line": 66, - "column": 1, - "offset": 1201 - }, - "end": { - "line": 67, - "column": 1, - "offset": 1221 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "|", - "position": { - "start": { - "line": 67, - "column": 1, - "offset": 1221 - }, - "end": { - "line": 67, - "column": 3, - "offset": 1223 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ---- ", - "position": { - "start": { - "line": 67, - "column": 3, - "offset": 1223 - }, - "end": { - "line": 67, - "column": 9, - "offset": 1229 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "|", - "position": { - "start": { - "line": 67, - "column": 9, - "offset": 1229 - }, - "end": { - "line": 67, - "column": 11, - "offset": 1231 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ----- ", - "position": { - "start": { - "line": 67, - "column": 11, - "offset": 1231 - }, - "end": { - "line": 67, - "column": 18, - "offset": 1238 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "|", - "position": { - "start": { - "line": 67, - "column": 18, - "offset": 1238 - }, - "end": { - "line": 67, - "column": 20, - "offset": 1240 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\n| should | though |", - "position": { - "start": { - "line": 67, - "column": 20, - "offset": 1240 - }, - "end": { - "line": 68, - "column": 20, - "offset": 1260 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 66, - "column": 1, - "offset": 1201 - }, - "end": { - "line": 68, - "column": 20, - "offset": 1260 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And here:", - "position": { - "start": { - "line": 70, - "column": 1, - "offset": 1262 - }, - "end": { - "line": 70, - "column": 10, - "offset": 1271 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 70, - "column": 1, - "offset": 1262 - }, - "end": { - "line": 70, - "column": 10, - "offset": 1271 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "here | they\n", - "position": { - "start": { - "line": 72, - "column": 1, - "offset": 1273 - }, - "end": { - "line": 73, - "column": 1, - "offset": 1287 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "-", - "position": { - "start": { - "line": 73, - "column": 1, - "offset": 1287 - }, - "end": { - "line": 73, - "column": 3, - "offset": 1289 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "--- ", - "position": { - "start": { - "line": 73, - "column": 3, - "offset": 1289 - }, - "end": { - "line": 73, - "column": 7, - "offset": 1293 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "|", - "position": { - "start": { - "line": 73, - "column": 7, - "offset": 1293 - }, - "end": { - "line": 73, - "column": 9, - "offset": 1295 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ------\nshould | though", - "position": { - "start": { - "line": 73, - "column": 9, - "offset": 1295 - }, - "end": { - "line": 74, - "column": 16, - "offset": 1318 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 72, - "column": 1, - "offset": 1273 - }, - "end": { - "line": 74, - "column": 16, - "offset": 1318 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "Commonmark:", - "position": { - "start": { - "line": 76, - "column": 3, - "offset": 1322 - }, - "end": { - "line": 76, - "column": 14, - "offset": 1333 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 76, - "column": 1, - "offset": 1320 - }, - "end": { - "line": 76, - "column": 16, - "offset": 1335 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 76, - "column": 1, - "offset": 1320 - }, - "end": { - "line": 76, - "column": 16, - "offset": 1335 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Open angle bracket should be escaped:", - "position": { - "start": { - "line": 78, - "column": 1, - "offset": 1337 - }, - "end": { - "line": 78, - "column": 38, - "offset": 1374 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 78, - "column": 1, - "offset": 1337 - }, - "end": { - "line": 78, - "column": 38, - "offset": 1374 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "<", - "position": { - "start": { - "line": 80, - "column": 5, - "offset": 1380 - }, - "end": { - "line": 80, - "column": 9, - "offset": 1384 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "div>", - "position": { - "start": { - "line": 80, - "column": 9, - "offset": 1384 - }, - "end": { - "line": 80, - "column": 13, - "offset": 1388 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "<", - "position": { - "start": { - "line": 80, - "column": 13, - "offset": 1388 - }, - "end": { - "line": 80, - "column": 17, - "offset": 1392 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "/div>", - "position": { - "start": { - "line": 80, - "column": 17, - "offset": 1392 - }, - "end": { - "line": 80, - "column": 22, - "offset": 1397 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 80, - "column": 5, - "offset": 1380 - }, - "end": { - "line": 80, - "column": 22, - "offset": 1397 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 80, - "column": 1, - "offset": 1376 - }, - "end": { - "line": 80, - "column": 22, - "offset": 1397 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "<", - "position": { - "start": { - "line": 81, - "column": 5, - "offset": 1402 - }, - "end": { - "line": 81, - "column": 9, - "offset": 1406 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "http", - "position": { - "start": { - "line": 81, - "column": 9, - "offset": 1406 - }, - "end": { - "line": 81, - "column": 13, - "offset": 1410 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ":", - "position": { - "start": { - "line": 81, - "column": 13, - "offset": 1410 - }, - "end": { - "line": 81, - "column": 19, - "offset": 1416 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "google.com>", - "position": { - "start": { - "line": 81, - "column": 19, - "offset": 1416 - }, - "end": { - "line": 81, - "column": 30, - "offset": 1427 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 81, - "column": 5, - "offset": 1402 - }, - "end": { - "line": 81, - "column": 30, - "offset": 1427 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 81, - "column": 1, - "offset": 1398 - }, - "end": { - "line": 81, - "column": 30, - "offset": 1427 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 80, - "column": 1, - "offset": 1376 - }, - "end": { - "line": 81, - "column": 30, - "offset": 1427 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 82, - "column": 1, - "offset": 1428 - } - } -} diff --git a/test/fixtures/tree/stringify-escape.output.nogfm.commonmark.nogfm.commonmark.json b/test/fixtures/tree/stringify-escape.output.nogfm.commonmark.nogfm.commonmark.json deleted file mode 100644 index 6e1c8dc75..000000000 --- a/test/fixtures/tree/stringify-escape.output.nogfm.commonmark.nogfm.commonmark.json +++ /dev/null @@ -1,2756 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Characters that should be escaped in general:", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 46, - "offset": 45 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 46, - "offset": 45 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "\\", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 47 - }, - "end": { - "line": 3, - "column": 3, - "offset": 49 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 49 - }, - "end": { - "line": 3, - "column": 4, - "offset": 50 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "`", - "position": { - "start": { - "line": 3, - "column": 4, - "offset": 50 - }, - "end": { - "line": 3, - "column": 6, - "offset": 52 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 3, - "column": 6, - "offset": 52 - }, - "end": { - "line": 3, - "column": 7, - "offset": 53 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "*", - "position": { - "start": { - "line": 3, - "column": 7, - "offset": 53 - }, - "end": { - "line": 3, - "column": 9, - "offset": 55 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 3, - "column": 9, - "offset": 55 - }, - "end": { - "line": 3, - "column": 10, - "offset": 56 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "[", - "position": { - "start": { - "line": 3, - "column": 10, - "offset": 56 - }, - "end": { - "line": 3, - "column": 12, - "offset": 58 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 47 - }, - "end": { - "line": 3, - "column": 12, - "offset": 58 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Characters that shouldn't:", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 60 - }, - "end": { - "line": 5, - "column": 27, - "offset": 86 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 60 - }, - "end": { - "line": 5, - "column": 27, - "offset": 86 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "{}]()#+-.!>\"$%',/:;=?@^~", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 88 - }, - "end": { - "line": 7, - "column": 25, - "offset": 112 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 88 - }, - "end": { - "line": 7, - "column": 25, - "offset": 112 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Underscores are ", - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 114 - }, - "end": { - "line": 9, - "column": 17, - "offset": 130 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "_", - "position": { - "start": { - "line": 9, - "column": 17, - "offset": 130 - }, - "end": { - "line": 9, - "column": 19, - "offset": 132 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "escaped", - "position": { - "start": { - "line": 9, - "column": 19, - "offset": 132 - }, - "end": { - "line": 9, - "column": 26, - "offset": 139 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "_", - "position": { - "start": { - "line": 9, - "column": 26, - "offset": 139 - }, - "end": { - "line": 9, - "column": 28, - "offset": 141 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " unless they appear in_the_middle_of_a_word.", - "position": { - "start": { - "line": 9, - "column": 28, - "offset": 141 - }, - "end": { - "line": 9, - "column": 72, - "offset": 185 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 114 - }, - "end": { - "line": 9, - "column": 72, - "offset": 185 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Ampersands are escaped only when they would otherwise start an entity:", - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 187 - }, - "end": { - "line": 11, - "column": 71, - "offset": 257 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 187 - }, - "end": { - "line": 11, - "column": 71, - "offset": 257 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "&", - "position": { - "start": { - "line": 13, - "column": 5, - "offset": 263 - }, - "end": { - "line": 13, - "column": 7, - "offset": 265 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "copycat ", - "position": { - "start": { - "line": 13, - "column": 7, - "offset": 265 - }, - "end": { - "line": 13, - "column": 15, - "offset": 273 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "&", - "position": { - "start": { - "line": 13, - "column": 15, - "offset": 273 - }, - "end": { - "line": 13, - "column": 17, - "offset": 275 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "amp; ", - "position": { - "start": { - "line": 13, - "column": 17, - "offset": 275 - }, - "end": { - "line": 13, - "column": 22, - "offset": 280 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "&", - "position": { - "start": { - "line": 13, - "column": 22, - "offset": 280 - }, - "end": { - "line": 13, - "column": 24, - "offset": 282 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "#x26", - "position": { - "start": { - "line": 13, - "column": 24, - "offset": 282 - }, - "end": { - "line": 13, - "column": 28, - "offset": 286 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 5, - "offset": 263 - }, - "end": { - "line": 13, - "column": 28, - "offset": 286 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 259 - }, - "end": { - "line": 13, - "column": 28, - "offset": 286 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "But: ©cat; ", - "position": { - "start": { - "line": 14, - "column": 5, - "offset": 291 - }, - "end": { - "line": 14, - "column": 16, - "offset": 302 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "≬", - "position": { - "start": { - "line": 14, - "column": 16, - "offset": 302 - }, - "end": { - "line": 14, - "column": 27, - "offset": 313 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " &foo; & AT&T &c", - "position": { - "start": { - "line": 14, - "column": 27, - "offset": 313 - }, - "end": { - "line": 14, - "column": 43, - "offset": 329 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 5, - "offset": 291 - }, - "end": { - "line": 14, - "column": 43, - "offset": 329 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 287 - }, - "end": { - "line": 14, - "column": 43, - "offset": 329 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 259 - }, - "end": { - "line": 14, - "column": 43, - "offset": 329 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Open parenthesis should be escaped after a shortcut reference:", - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 331 - }, - "end": { - "line": 16, - "column": 63, - "offset": 393 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 331 - }, - "end": { - "line": 16, - "column": 63, - "offset": 393 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "ref", - "label": "ref", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "ref", - "position": { - "start": { - "line": 18, - "column": 2, - "offset": 396 - }, - "end": { - "line": 18, - "column": 5, - "offset": 399 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 395 - }, - "end": { - "line": 18, - "column": 6, - "offset": 400 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(", - "position": { - "start": { - "line": 18, - "column": 6, - "offset": 400 - }, - "end": { - "line": 18, - "column": 8, - "offset": 402 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "text)", - "position": { - "start": { - "line": 18, - "column": 8, - "offset": 402 - }, - "end": { - "line": 18, - "column": 13, - "offset": 407 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 395 - }, - "end": { - "line": 18, - "column": 13, - "offset": 407 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And after a shortcut reference and a space (for GitHub):", - "position": { - "start": { - "line": 20, - "column": 1, - "offset": 409 - }, - "end": { - "line": 20, - "column": 57, - "offset": 465 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 1, - "offset": 409 - }, - "end": { - "line": 20, - "column": 57, - "offset": 465 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "ref", - "label": "ref", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "ref", - "position": { - "start": { - "line": 22, - "column": 2, - "offset": 468 - }, - "end": { - "line": 22, - "column": 5, - "offset": 471 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 22, - "column": 1, - "offset": 467 - }, - "end": { - "line": 22, - "column": 6, - "offset": 472 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 22, - "column": 6, - "offset": 472 - }, - "end": { - "line": 22, - "column": 7, - "offset": 473 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(", - "position": { - "start": { - "line": 22, - "column": 7, - "offset": 473 - }, - "end": { - "line": 22, - "column": 9, - "offset": 475 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "text)", - "position": { - "start": { - "line": 22, - "column": 9, - "offset": 475 - }, - "end": { - "line": 22, - "column": 14, - "offset": 480 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 22, - "column": 1, - "offset": 467 - }, - "end": { - "line": 22, - "column": 14, - "offset": 480 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hyphen should be escaped at the beginning of a line:", - "position": { - "start": { - "line": 24, - "column": 1, - "offset": 482 - }, - "end": { - "line": 24, - "column": 53, - "offset": 534 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 24, - "column": 1, - "offset": 482 - }, - "end": { - "line": 24, - "column": 53, - "offset": 534 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "-", - "position": { - "start": { - "line": 26, - "column": 1, - "offset": 536 - }, - "end": { - "line": 26, - "column": 3, - "offset": 538 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " not a list item\n", - "position": { - "start": { - "line": 26, - "column": 3, - "offset": 538 - }, - "end": { - "line": 27, - "column": 1, - "offset": 555 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "-", - "position": { - "start": { - "line": 27, - "column": 1, - "offset": 555 - }, - "end": { - "line": 27, - "column": 3, - "offset": 557 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " not a list item\n ", - "position": { - "start": { - "line": 27, - "column": 3, - "offset": 557 - }, - "end": { - "line": 28, - "column": 3, - "offset": 576 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "+", - "position": { - "start": { - "line": 28, - "column": 3, - "offset": 576 - }, - "end": { - "line": 28, - "column": 5, - "offset": 578 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " not a list item", - "position": { - "start": { - "line": 28, - "column": 5, - "offset": 578 - }, - "end": { - "line": 28, - "column": 21, - "offset": 594 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 26, - "column": 1, - "offset": 536 - }, - "end": { - "line": 28, - "column": 21, - "offset": 594 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Same for angle brackets:", - "position": { - "start": { - "line": 30, - "column": 1, - "offset": 596 - }, - "end": { - "line": 30, - "column": 25, - "offset": 620 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 30, - "column": 1, - "offset": 596 - }, - "end": { - "line": 30, - "column": 25, - "offset": 620 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": ">", - "position": { - "start": { - "line": 32, - "column": 1, - "offset": 622 - }, - "end": { - "line": 32, - "column": 3, - "offset": 624 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " not a block quote", - "position": { - "start": { - "line": 32, - "column": 3, - "offset": 624 - }, - "end": { - "line": 32, - "column": 21, - "offset": 642 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 32, - "column": 1, - "offset": 622 - }, - "end": { - "line": 32, - "column": 21, - "offset": 642 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And hash signs:", - "position": { - "start": { - "line": 34, - "column": 1, - "offset": 644 - }, - "end": { - "line": 34, - "column": 16, - "offset": 659 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 34, - "column": 1, - "offset": 644 - }, - "end": { - "line": 34, - "column": 16, - "offset": 659 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "#", - "position": { - "start": { - "line": 36, - "column": 1, - "offset": 661 - }, - "end": { - "line": 36, - "column": 3, - "offset": 663 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " not a heading\n ", - "position": { - "start": { - "line": 36, - "column": 3, - "offset": 663 - }, - "end": { - "line": 37, - "column": 3, - "offset": 680 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "#", - "position": { - "start": { - "line": 37, - "column": 3, - "offset": 680 - }, - "end": { - "line": 37, - "column": 5, - "offset": 682 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "# not a subheading", - "position": { - "start": { - "line": 37, - "column": 5, - "offset": 682 - }, - "end": { - "line": 37, - "column": 23, - "offset": 700 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 36, - "column": 1, - "offset": 661 - }, - "end": { - "line": 37, - "column": 23, - "offset": 700 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Text under a shortcut reference should be preserved verbatim:", - "position": { - "start": { - "line": 39, - "column": 1, - "offset": 702 - }, - "end": { - "line": 39, - "column": 62, - "offset": 763 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 39, - "column": 1, - "offset": 702 - }, - "end": { - "line": 39, - "column": 62, - "offset": 763 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "two*three", - "label": "two*three", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "two*three", - "position": { - "start": { - "line": 41, - "column": 6, - "offset": 770 - }, - "end": { - "line": 41, - "column": 15, - "offset": 779 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 41, - "column": 5, - "offset": 769 - }, - "end": { - "line": 41, - "column": 16, - "offset": 780 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 41, - "column": 5, - "offset": 769 - }, - "end": { - "line": 41, - "column": 16, - "offset": 780 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 41, - "column": 1, - "offset": 765 - }, - "end": { - "line": 41, - "column": 16, - "offset": 780 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "two\\*three", - "label": "two\\*three", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "two", - "position": { - "start": { - "line": 42, - "column": 6, - "offset": 786 - }, - "end": { - "line": 42, - "column": 9, - "offset": 789 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "*", - "position": { - "start": { - "line": 42, - "column": 9, - "offset": 789 - }, - "end": { - "line": 42, - "column": 11, - "offset": 791 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "three", - "position": { - "start": { - "line": 42, - "column": 11, - "offset": 791 - }, - "end": { - "line": 42, - "column": 16, - "offset": 796 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 42, - "column": 5, - "offset": 785 - }, - "end": { - "line": 42, - "column": 17, - "offset": 797 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 42, - "column": 5, - "offset": 785 - }, - "end": { - "line": 42, - "column": 17, - "offset": 797 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 42, - "column": 1, - "offset": 781 - }, - "end": { - "line": 42, - "column": 17, - "offset": 797 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "a\\a", - "label": "a\\a", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "a\\a", - "position": { - "start": { - "line": 43, - "column": 6, - "offset": 803 - }, - "end": { - "line": 43, - "column": 9, - "offset": 806 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 43, - "column": 5, - "offset": 802 - }, - "end": { - "line": 43, - "column": 10, - "offset": 807 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 43, - "column": 5, - "offset": 802 - }, - "end": { - "line": 43, - "column": 10, - "offset": 807 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 43, - "column": 1, - "offset": 798 - }, - "end": { - "line": 43, - "column": 10, - "offset": 807 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "a\\\\a", - "label": "a\\\\a", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "a", - "position": { - "start": { - "line": 44, - "column": 6, - "offset": 813 - }, - "end": { - "line": 44, - "column": 7, - "offset": 814 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\\", - "position": { - "start": { - "line": 44, - "column": 7, - "offset": 814 - }, - "end": { - "line": 44, - "column": 9, - "offset": 816 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "a", - "position": { - "start": { - "line": 44, - "column": 9, - "offset": 816 - }, - "end": { - "line": 44, - "column": 10, - "offset": 817 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 44, - "column": 5, - "offset": 812 - }, - "end": { - "line": 44, - "column": 11, - "offset": 818 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 44, - "column": 5, - "offset": 812 - }, - "end": { - "line": 44, - "column": 11, - "offset": 818 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 44, - "column": 1, - "offset": 808 - }, - "end": { - "line": 44, - "column": 11, - "offset": 818 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "a\\\\\\a", - "label": "a\\\\\\a", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "a", - "position": { - "start": { - "line": 45, - "column": 6, - "offset": 824 - }, - "end": { - "line": 45, - "column": 7, - "offset": 825 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\\", - "position": { - "start": { - "line": 45, - "column": 7, - "offset": 825 - }, - "end": { - "line": 45, - "column": 9, - "offset": 827 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\\a", - "position": { - "start": { - "line": 45, - "column": 9, - "offset": 827 - }, - "end": { - "line": 45, - "column": 11, - "offset": 829 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 45, - "column": 5, - "offset": 823 - }, - "end": { - "line": 45, - "column": 12, - "offset": 830 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 45, - "column": 5, - "offset": 823 - }, - "end": { - "line": 45, - "column": 12, - "offset": 830 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 45, - "column": 1, - "offset": 819 - }, - "end": { - "line": 45, - "column": 12, - "offset": 830 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "a_a\\_a", - "label": "a_a\\_a", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "a_a", - "position": { - "start": { - "line": 46, - "column": 6, - "offset": 836 - }, - "end": { - "line": 46, - "column": 9, - "offset": 839 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "_", - "position": { - "start": { - "line": 46, - "column": 9, - "offset": 839 - }, - "end": { - "line": 46, - "column": 11, - "offset": 841 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "a", - "position": { - "start": { - "line": 46, - "column": 11, - "offset": 841 - }, - "end": { - "line": 46, - "column": 12, - "offset": 842 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 46, - "column": 5, - "offset": 835 - }, - "end": { - "line": 46, - "column": 13, - "offset": 843 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 46, - "column": 5, - "offset": 835 - }, - "end": { - "line": 46, - "column": 13, - "offset": 843 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 46, - "column": 1, - "offset": 831 - }, - "end": { - "line": 46, - "column": 13, - "offset": 843 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 41, - "column": 1, - "offset": 765 - }, - "end": { - "line": 46, - "column": 13, - "offset": 843 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "GFM:", - "position": { - "start": { - "line": 48, - "column": 3, - "offset": 847 - }, - "end": { - "line": 48, - "column": 7, - "offset": 851 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 48, - "column": 1, - "offset": 845 - }, - "end": { - "line": 48, - "column": 9, - "offset": 853 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 48, - "column": 1, - "offset": 845 - }, - "end": { - "line": 48, - "column": 9, - "offset": 853 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Colon should not be escaped in URLs:", - "position": { - "start": { - "line": 50, - "column": 1, - "offset": 855 - }, - "end": { - "line": 50, - "column": 37, - "offset": 891 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 50, - "column": 1, - "offset": 855 - }, - "end": { - "line": 50, - "column": 37, - "offset": 891 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "http://user:password@host:port/path?key=value#fragment", - "position": { - "start": { - "line": 52, - "column": 5, - "offset": 897 - }, - "end": { - "line": 52, - "column": 59, - "offset": 951 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 52, - "column": 5, - "offset": 897 - }, - "end": { - "line": 52, - "column": 59, - "offset": 951 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 52, - "column": 1, - "offset": 893 - }, - "end": { - "line": 52, - "column": 59, - "offset": 951 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "https://user:password@host:port/path?key=value#fragment", - "position": { - "start": { - "line": 53, - "column": 5, - "offset": 956 - }, - "end": { - "line": 53, - "column": 60, - "offset": 1011 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 53, - "column": 5, - "offset": 956 - }, - "end": { - "line": 53, - "column": 60, - "offset": 1011 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 53, - "column": 1, - "offset": 952 - }, - "end": { - "line": 53, - "column": 60, - "offset": 1011 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 52, - "column": 1, - "offset": 893 - }, - "end": { - "line": 53, - "column": 60, - "offset": 1011 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Double tildes should not be ~~escaped~~.\nNor here: foo~~.", - "position": { - "start": { - "line": 55, - "column": 1, - "offset": 1013 - }, - "end": { - "line": 56, - "column": 17, - "offset": 1070 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 55, - "column": 1, - "offset": 1013 - }, - "end": { - "line": 56, - "column": 17, - "offset": 1070 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Pipes should not be escaped here: |", - "position": { - "start": { - "line": 58, - "column": 1, - "offset": 1072 - }, - "end": { - "line": 58, - "column": 36, - "offset": 1107 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 58, - "column": 1, - "offset": 1072 - }, - "end": { - "line": 58, - "column": 36, - "offset": 1107 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "| here | they |\n| ------ | -------- |\n| should | nei|ther |", - "position": { - "start": { - "line": 60, - "column": 1, - "offset": 1109 - }, - "end": { - "line": 62, - "column": 22, - "offset": 1174 - }, - "indent": [ - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 60, - "column": 1, - "offset": 1109 - }, - "end": { - "line": 62, - "column": 22, - "offset": 1174 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Nor here:", - "position": { - "start": { - "line": 64, - "column": 1, - "offset": 1176 - }, - "end": { - "line": 64, - "column": 10, - "offset": 1185 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 64, - "column": 1, - "offset": 1176 - }, - "end": { - "line": 64, - "column": 10, - "offset": 1185 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "| here | they |\n| ------ | ------ |\n| should | though |", - "position": { - "start": { - "line": 66, - "column": 1, - "offset": 1187 - }, - "end": { - "line": 68, - "column": 20, - "offset": 1246 - }, - "indent": [ - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 66, - "column": 1, - "offset": 1187 - }, - "end": { - "line": 68, - "column": 20, - "offset": 1246 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Nor here:", - "position": { - "start": { - "line": 70, - "column": 1, - "offset": 1248 - }, - "end": { - "line": 70, - "column": 10, - "offset": 1257 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 70, - "column": 1, - "offset": 1248 - }, - "end": { - "line": 70, - "column": 10, - "offset": 1257 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "here | they\n", - "position": { - "start": { - "line": 72, - "column": 1, - "offset": 1259 - }, - "end": { - "line": 73, - "column": 1, - "offset": 1273 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "-", - "position": { - "start": { - "line": 73, - "column": 1, - "offset": 1273 - }, - "end": { - "line": 73, - "column": 3, - "offset": 1275 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "---- | ------\nshould | though", - "position": { - "start": { - "line": 73, - "column": 3, - "offset": 1275 - }, - "end": { - "line": 74, - "column": 16, - "offset": 1304 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 72, - "column": 1, - "offset": 1259 - }, - "end": { - "line": 74, - "column": 16, - "offset": 1304 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "Commonmark:", - "position": { - "start": { - "line": 76, - "column": 3, - "offset": 1308 - }, - "end": { - "line": 76, - "column": 14, - "offset": 1319 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 76, - "column": 1, - "offset": 1306 - }, - "end": { - "line": 76, - "column": 16, - "offset": 1321 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 76, - "column": 1, - "offset": 1306 - }, - "end": { - "line": 76, - "column": 16, - "offset": 1321 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Open angle bracket should be escaped:", - "position": { - "start": { - "line": 78, - "column": 1, - "offset": 1323 - }, - "end": { - "line": 78, - "column": 38, - "offset": 1360 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 78, - "column": 1, - "offset": 1323 - }, - "end": { - "line": 78, - "column": 38, - "offset": 1360 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "<", - "position": { - "start": { - "line": 80, - "column": 5, - "offset": 1366 - }, - "end": { - "line": 80, - "column": 7, - "offset": 1368 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "div>", - "position": { - "start": { - "line": 80, - "column": 7, - "offset": 1368 - }, - "end": { - "line": 80, - "column": 11, - "offset": 1372 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "<", - "position": { - "start": { - "line": 80, - "column": 11, - "offset": 1372 - }, - "end": { - "line": 80, - "column": 13, - "offset": 1374 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "/div>", - "position": { - "start": { - "line": 80, - "column": 13, - "offset": 1374 - }, - "end": { - "line": 80, - "column": 18, - "offset": 1379 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 80, - "column": 5, - "offset": 1366 - }, - "end": { - "line": 80, - "column": 18, - "offset": 1379 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 80, - "column": 1, - "offset": 1362 - }, - "end": { - "line": 80, - "column": 18, - "offset": 1379 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "<", - "position": { - "start": { - "line": 81, - "column": 5, - "offset": 1384 - }, - "end": { - "line": 81, - "column": 7, - "offset": 1386 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "http:google.com>", - "position": { - "start": { - "line": 81, - "column": 7, - "offset": 1386 - }, - "end": { - "line": 81, - "column": 23, - "offset": 1402 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 81, - "column": 5, - "offset": 1384 - }, - "end": { - "line": 81, - "column": 23, - "offset": 1402 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 81, - "column": 1, - "offset": 1380 - }, - "end": { - "line": 81, - "column": 23, - "offset": 1402 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 80, - "column": 1, - "offset": 1362 - }, - "end": { - "line": 81, - "column": 23, - "offset": 1402 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 82, - "column": 1, - "offset": 1403 - } - } -} diff --git a/test/fixtures/tree/stringify-escape.output.nogfm.nogfm.json b/test/fixtures/tree/stringify-escape.output.nogfm.nogfm.json deleted file mode 100644 index 36e030ea9..000000000 --- a/test/fixtures/tree/stringify-escape.output.nogfm.nogfm.json +++ /dev/null @@ -1,2756 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Characters that should be escaped in general:", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 46, - "offset": 45 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 46, - "offset": 45 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "\\", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 47 - }, - "end": { - "line": 3, - "column": 3, - "offset": 49 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 49 - }, - "end": { - "line": 3, - "column": 4, - "offset": 50 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "`", - "position": { - "start": { - "line": 3, - "column": 4, - "offset": 50 - }, - "end": { - "line": 3, - "column": 6, - "offset": 52 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 3, - "column": 6, - "offset": 52 - }, - "end": { - "line": 3, - "column": 7, - "offset": 53 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "*", - "position": { - "start": { - "line": 3, - "column": 7, - "offset": 53 - }, - "end": { - "line": 3, - "column": 9, - "offset": 55 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 3, - "column": 9, - "offset": 55 - }, - "end": { - "line": 3, - "column": 10, - "offset": 56 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "[", - "position": { - "start": { - "line": 3, - "column": 10, - "offset": 56 - }, - "end": { - "line": 3, - "column": 12, - "offset": 58 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 47 - }, - "end": { - "line": 3, - "column": 12, - "offset": 58 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Characters that shouldn't:", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 60 - }, - "end": { - "line": 5, - "column": 27, - "offset": 86 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 60 - }, - "end": { - "line": 5, - "column": 27, - "offset": 86 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "{}]()#+-.!>\"$%',/:;=?@^~", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 88 - }, - "end": { - "line": 7, - "column": 25, - "offset": 112 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 88 - }, - "end": { - "line": 7, - "column": 25, - "offset": 112 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Underscores are ", - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 114 - }, - "end": { - "line": 9, - "column": 17, - "offset": 130 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "_", - "position": { - "start": { - "line": 9, - "column": 17, - "offset": 130 - }, - "end": { - "line": 9, - "column": 19, - "offset": 132 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "escaped", - "position": { - "start": { - "line": 9, - "column": 19, - "offset": 132 - }, - "end": { - "line": 9, - "column": 26, - "offset": 139 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "_", - "position": { - "start": { - "line": 9, - "column": 26, - "offset": 139 - }, - "end": { - "line": 9, - "column": 28, - "offset": 141 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " unless they appear in_the_middle_of_a_word.", - "position": { - "start": { - "line": 9, - "column": 28, - "offset": 141 - }, - "end": { - "line": 9, - "column": 72, - "offset": 185 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 114 - }, - "end": { - "line": 9, - "column": 72, - "offset": 185 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Ampersands are escaped only when they would otherwise start an entity:", - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 187 - }, - "end": { - "line": 11, - "column": 71, - "offset": 257 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 187 - }, - "end": { - "line": 11, - "column": 71, - "offset": 257 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "&", - "position": { - "start": { - "line": 13, - "column": 5, - "offset": 263 - }, - "end": { - "line": 13, - "column": 10, - "offset": 268 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "copycat ", - "position": { - "start": { - "line": 13, - "column": 10, - "offset": 268 - }, - "end": { - "line": 13, - "column": 18, - "offset": 276 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "&", - "position": { - "start": { - "line": 13, - "column": 18, - "offset": 276 - }, - "end": { - "line": 13, - "column": 23, - "offset": 281 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "amp; ", - "position": { - "start": { - "line": 13, - "column": 23, - "offset": 281 - }, - "end": { - "line": 13, - "column": 28, - "offset": 286 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "&", - "position": { - "start": { - "line": 13, - "column": 28, - "offset": 286 - }, - "end": { - "line": 13, - "column": 33, - "offset": 291 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "#x26", - "position": { - "start": { - "line": 13, - "column": 33, - "offset": 291 - }, - "end": { - "line": 13, - "column": 37, - "offset": 295 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 5, - "offset": 263 - }, - "end": { - "line": 13, - "column": 37, - "offset": 295 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 259 - }, - "end": { - "line": 13, - "column": 37, - "offset": 295 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "But: ©cat; ", - "position": { - "start": { - "line": 14, - "column": 5, - "offset": 300 - }, - "end": { - "line": 14, - "column": 16, - "offset": 311 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "≬", - "position": { - "start": { - "line": 14, - "column": 16, - "offset": 311 - }, - "end": { - "line": 14, - "column": 27, - "offset": 322 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " &foo; & AT&T &c", - "position": { - "start": { - "line": 14, - "column": 27, - "offset": 322 - }, - "end": { - "line": 14, - "column": 43, - "offset": 338 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 5, - "offset": 300 - }, - "end": { - "line": 14, - "column": 43, - "offset": 338 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 296 - }, - "end": { - "line": 14, - "column": 43, - "offset": 338 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 259 - }, - "end": { - "line": 14, - "column": 43, - "offset": 338 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Open parenthesis should be escaped after a shortcut reference:", - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 340 - }, - "end": { - "line": 16, - "column": 63, - "offset": 402 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 340 - }, - "end": { - "line": 16, - "column": 63, - "offset": 402 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "ref", - "label": "ref", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "ref", - "position": { - "start": { - "line": 18, - "column": 2, - "offset": 405 - }, - "end": { - "line": 18, - "column": 5, - "offset": 408 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 404 - }, - "end": { - "line": 18, - "column": 6, - "offset": 409 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(", - "position": { - "start": { - "line": 18, - "column": 6, - "offset": 409 - }, - "end": { - "line": 18, - "column": 8, - "offset": 411 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "text)", - "position": { - "start": { - "line": 18, - "column": 8, - "offset": 411 - }, - "end": { - "line": 18, - "column": 13, - "offset": 416 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 404 - }, - "end": { - "line": 18, - "column": 13, - "offset": 416 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And after a shortcut reference and a space (for GitHub):", - "position": { - "start": { - "line": 20, - "column": 1, - "offset": 418 - }, - "end": { - "line": 20, - "column": 57, - "offset": 474 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 1, - "offset": 418 - }, - "end": { - "line": 20, - "column": 57, - "offset": 474 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "ref", - "label": "ref", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "ref", - "position": { - "start": { - "line": 22, - "column": 2, - "offset": 477 - }, - "end": { - "line": 22, - "column": 5, - "offset": 480 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 22, - "column": 1, - "offset": 476 - }, - "end": { - "line": 22, - "column": 6, - "offset": 481 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 22, - "column": 6, - "offset": 481 - }, - "end": { - "line": 22, - "column": 7, - "offset": 482 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(", - "position": { - "start": { - "line": 22, - "column": 7, - "offset": 482 - }, - "end": { - "line": 22, - "column": 9, - "offset": 484 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "text)", - "position": { - "start": { - "line": 22, - "column": 9, - "offset": 484 - }, - "end": { - "line": 22, - "column": 14, - "offset": 489 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 22, - "column": 1, - "offset": 476 - }, - "end": { - "line": 22, - "column": 14, - "offset": 489 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hyphen should be escaped at the beginning of a line:", - "position": { - "start": { - "line": 24, - "column": 1, - "offset": 491 - }, - "end": { - "line": 24, - "column": 53, - "offset": 543 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 24, - "column": 1, - "offset": 491 - }, - "end": { - "line": 24, - "column": 53, - "offset": 543 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "-", - "position": { - "start": { - "line": 26, - "column": 1, - "offset": 545 - }, - "end": { - "line": 26, - "column": 3, - "offset": 547 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " not a list item\n", - "position": { - "start": { - "line": 26, - "column": 3, - "offset": 547 - }, - "end": { - "line": 27, - "column": 1, - "offset": 564 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "-", - "position": { - "start": { - "line": 27, - "column": 1, - "offset": 564 - }, - "end": { - "line": 27, - "column": 3, - "offset": 566 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " not a list item\n ", - "position": { - "start": { - "line": 27, - "column": 3, - "offset": 566 - }, - "end": { - "line": 28, - "column": 3, - "offset": 585 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "+", - "position": { - "start": { - "line": 28, - "column": 3, - "offset": 585 - }, - "end": { - "line": 28, - "column": 5, - "offset": 587 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " not a list item", - "position": { - "start": { - "line": 28, - "column": 5, - "offset": 587 - }, - "end": { - "line": 28, - "column": 21, - "offset": 603 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 26, - "column": 1, - "offset": 545 - }, - "end": { - "line": 28, - "column": 21, - "offset": 603 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Same for angle brackets:", - "position": { - "start": { - "line": 30, - "column": 1, - "offset": 605 - }, - "end": { - "line": 30, - "column": 25, - "offset": 629 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 30, - "column": 1, - "offset": 605 - }, - "end": { - "line": 30, - "column": 25, - "offset": 629 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": ">", - "position": { - "start": { - "line": 32, - "column": 1, - "offset": 631 - }, - "end": { - "line": 32, - "column": 3, - "offset": 633 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " not a block quote", - "position": { - "start": { - "line": 32, - "column": 3, - "offset": 633 - }, - "end": { - "line": 32, - "column": 21, - "offset": 651 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 32, - "column": 1, - "offset": 631 - }, - "end": { - "line": 32, - "column": 21, - "offset": 651 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And hash signs:", - "position": { - "start": { - "line": 34, - "column": 1, - "offset": 653 - }, - "end": { - "line": 34, - "column": 16, - "offset": 668 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 34, - "column": 1, - "offset": 653 - }, - "end": { - "line": 34, - "column": 16, - "offset": 668 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "#", - "position": { - "start": { - "line": 36, - "column": 1, - "offset": 670 - }, - "end": { - "line": 36, - "column": 3, - "offset": 672 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " not a heading\n ", - "position": { - "start": { - "line": 36, - "column": 3, - "offset": 672 - }, - "end": { - "line": 37, - "column": 3, - "offset": 689 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "#", - "position": { - "start": { - "line": 37, - "column": 3, - "offset": 689 - }, - "end": { - "line": 37, - "column": 5, - "offset": 691 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "# not a subheading", - "position": { - "start": { - "line": 37, - "column": 5, - "offset": 691 - }, - "end": { - "line": 37, - "column": 23, - "offset": 709 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 36, - "column": 1, - "offset": 670 - }, - "end": { - "line": 37, - "column": 23, - "offset": 709 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Text under a shortcut reference should be preserved verbatim:", - "position": { - "start": { - "line": 39, - "column": 1, - "offset": 711 - }, - "end": { - "line": 39, - "column": 62, - "offset": 772 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 39, - "column": 1, - "offset": 711 - }, - "end": { - "line": 39, - "column": 62, - "offset": 772 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "two*three", - "label": "two*three", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "two*three", - "position": { - "start": { - "line": 41, - "column": 6, - "offset": 779 - }, - "end": { - "line": 41, - "column": 15, - "offset": 788 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 41, - "column": 5, - "offset": 778 - }, - "end": { - "line": 41, - "column": 16, - "offset": 789 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 41, - "column": 5, - "offset": 778 - }, - "end": { - "line": 41, - "column": 16, - "offset": 789 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 41, - "column": 1, - "offset": 774 - }, - "end": { - "line": 41, - "column": 16, - "offset": 789 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "two\\*three", - "label": "two\\*three", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "two", - "position": { - "start": { - "line": 42, - "column": 6, - "offset": 795 - }, - "end": { - "line": 42, - "column": 9, - "offset": 798 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "*", - "position": { - "start": { - "line": 42, - "column": 9, - "offset": 798 - }, - "end": { - "line": 42, - "column": 11, - "offset": 800 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "three", - "position": { - "start": { - "line": 42, - "column": 11, - "offset": 800 - }, - "end": { - "line": 42, - "column": 16, - "offset": 805 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 42, - "column": 5, - "offset": 794 - }, - "end": { - "line": 42, - "column": 17, - "offset": 806 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 42, - "column": 5, - "offset": 794 - }, - "end": { - "line": 42, - "column": 17, - "offset": 806 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 42, - "column": 1, - "offset": 790 - }, - "end": { - "line": 42, - "column": 17, - "offset": 806 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "a\\a", - "label": "a\\a", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "a\\a", - "position": { - "start": { - "line": 43, - "column": 6, - "offset": 812 - }, - "end": { - "line": 43, - "column": 9, - "offset": 815 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 43, - "column": 5, - "offset": 811 - }, - "end": { - "line": 43, - "column": 10, - "offset": 816 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 43, - "column": 5, - "offset": 811 - }, - "end": { - "line": 43, - "column": 10, - "offset": 816 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 43, - "column": 1, - "offset": 807 - }, - "end": { - "line": 43, - "column": 10, - "offset": 816 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "a\\\\a", - "label": "a\\\\a", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "a", - "position": { - "start": { - "line": 44, - "column": 6, - "offset": 822 - }, - "end": { - "line": 44, - "column": 7, - "offset": 823 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\\", - "position": { - "start": { - "line": 44, - "column": 7, - "offset": 823 - }, - "end": { - "line": 44, - "column": 9, - "offset": 825 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "a", - "position": { - "start": { - "line": 44, - "column": 9, - "offset": 825 - }, - "end": { - "line": 44, - "column": 10, - "offset": 826 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 44, - "column": 5, - "offset": 821 - }, - "end": { - "line": 44, - "column": 11, - "offset": 827 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 44, - "column": 5, - "offset": 821 - }, - "end": { - "line": 44, - "column": 11, - "offset": 827 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 44, - "column": 1, - "offset": 817 - }, - "end": { - "line": 44, - "column": 11, - "offset": 827 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "a\\\\\\a", - "label": "a\\\\\\a", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "a", - "position": { - "start": { - "line": 45, - "column": 6, - "offset": 833 - }, - "end": { - "line": 45, - "column": 7, - "offset": 834 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\\", - "position": { - "start": { - "line": 45, - "column": 7, - "offset": 834 - }, - "end": { - "line": 45, - "column": 9, - "offset": 836 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\\a", - "position": { - "start": { - "line": 45, - "column": 9, - "offset": 836 - }, - "end": { - "line": 45, - "column": 11, - "offset": 838 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 45, - "column": 5, - "offset": 832 - }, - "end": { - "line": 45, - "column": 12, - "offset": 839 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 45, - "column": 5, - "offset": 832 - }, - "end": { - "line": 45, - "column": 12, - "offset": 839 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 45, - "column": 1, - "offset": 828 - }, - "end": { - "line": 45, - "column": 12, - "offset": 839 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "a_a\\_a", - "label": "a_a\\_a", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "a_a", - "position": { - "start": { - "line": 46, - "column": 6, - "offset": 845 - }, - "end": { - "line": 46, - "column": 9, - "offset": 848 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "_", - "position": { - "start": { - "line": 46, - "column": 9, - "offset": 848 - }, - "end": { - "line": 46, - "column": 11, - "offset": 850 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "a", - "position": { - "start": { - "line": 46, - "column": 11, - "offset": 850 - }, - "end": { - "line": 46, - "column": 12, - "offset": 851 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 46, - "column": 5, - "offset": 844 - }, - "end": { - "line": 46, - "column": 13, - "offset": 852 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 46, - "column": 5, - "offset": 844 - }, - "end": { - "line": 46, - "column": 13, - "offset": 852 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 46, - "column": 1, - "offset": 840 - }, - "end": { - "line": 46, - "column": 13, - "offset": 852 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 41, - "column": 1, - "offset": 774 - }, - "end": { - "line": 46, - "column": 13, - "offset": 852 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "GFM:", - "position": { - "start": { - "line": 48, - "column": 3, - "offset": 856 - }, - "end": { - "line": 48, - "column": 7, - "offset": 860 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 48, - "column": 1, - "offset": 854 - }, - "end": { - "line": 48, - "column": 9, - "offset": 862 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 48, - "column": 1, - "offset": 854 - }, - "end": { - "line": 48, - "column": 9, - "offset": 862 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Colon should not be escaped in URLs:", - "position": { - "start": { - "line": 50, - "column": 1, - "offset": 864 - }, - "end": { - "line": 50, - "column": 37, - "offset": 900 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 50, - "column": 1, - "offset": 864 - }, - "end": { - "line": 50, - "column": 37, - "offset": 900 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "http://user:password@host:port/path?key=value#fragment", - "position": { - "start": { - "line": 52, - "column": 5, - "offset": 906 - }, - "end": { - "line": 52, - "column": 59, - "offset": 960 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 52, - "column": 5, - "offset": 906 - }, - "end": { - "line": 52, - "column": 59, - "offset": 960 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 52, - "column": 1, - "offset": 902 - }, - "end": { - "line": 52, - "column": 59, - "offset": 960 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "https://user:password@host:port/path?key=value#fragment", - "position": { - "start": { - "line": 53, - "column": 5, - "offset": 965 - }, - "end": { - "line": 53, - "column": 60, - "offset": 1020 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 53, - "column": 5, - "offset": 965 - }, - "end": { - "line": 53, - "column": 60, - "offset": 1020 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 53, - "column": 1, - "offset": 961 - }, - "end": { - "line": 53, - "column": 60, - "offset": 1020 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 52, - "column": 1, - "offset": 902 - }, - "end": { - "line": 53, - "column": 60, - "offset": 1020 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Double tildes should not be ~~escaped~~.\nNor here: foo~~.", - "position": { - "start": { - "line": 55, - "column": 1, - "offset": 1022 - }, - "end": { - "line": 56, - "column": 17, - "offset": 1079 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 55, - "column": 1, - "offset": 1022 - }, - "end": { - "line": 56, - "column": 17, - "offset": 1079 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Pipes should not be escaped here: |", - "position": { - "start": { - "line": 58, - "column": 1, - "offset": 1081 - }, - "end": { - "line": 58, - "column": 36, - "offset": 1116 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 58, - "column": 1, - "offset": 1081 - }, - "end": { - "line": 58, - "column": 36, - "offset": 1116 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "| here | they |\n| ------ | -------- |\n| should | nei|ther |", - "position": { - "start": { - "line": 60, - "column": 1, - "offset": 1118 - }, - "end": { - "line": 62, - "column": 22, - "offset": 1183 - }, - "indent": [ - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 60, - "column": 1, - "offset": 1118 - }, - "end": { - "line": 62, - "column": 22, - "offset": 1183 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Nor here:", - "position": { - "start": { - "line": 64, - "column": 1, - "offset": 1185 - }, - "end": { - "line": 64, - "column": 10, - "offset": 1194 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 64, - "column": 1, - "offset": 1185 - }, - "end": { - "line": 64, - "column": 10, - "offset": 1194 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "| here | they |\n| ------ | ------ |\n| should | though |", - "position": { - "start": { - "line": 66, - "column": 1, - "offset": 1196 - }, - "end": { - "line": 68, - "column": 20, - "offset": 1255 - }, - "indent": [ - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 66, - "column": 1, - "offset": 1196 - }, - "end": { - "line": 68, - "column": 20, - "offset": 1255 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Nor here:", - "position": { - "start": { - "line": 70, - "column": 1, - "offset": 1257 - }, - "end": { - "line": 70, - "column": 10, - "offset": 1266 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 70, - "column": 1, - "offset": 1257 - }, - "end": { - "line": 70, - "column": 10, - "offset": 1266 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "here | they\n", - "position": { - "start": { - "line": 72, - "column": 1, - "offset": 1268 - }, - "end": { - "line": 73, - "column": 1, - "offset": 1282 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "-", - "position": { - "start": { - "line": 73, - "column": 1, - "offset": 1282 - }, - "end": { - "line": 73, - "column": 3, - "offset": 1284 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "---- | ------\nshould | though", - "position": { - "start": { - "line": 73, - "column": 3, - "offset": 1284 - }, - "end": { - "line": 74, - "column": 16, - "offset": 1313 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 72, - "column": 1, - "offset": 1268 - }, - "end": { - "line": 74, - "column": 16, - "offset": 1313 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "Commonmark:", - "position": { - "start": { - "line": 76, - "column": 3, - "offset": 1317 - }, - "end": { - "line": 76, - "column": 14, - "offset": 1328 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 76, - "column": 1, - "offset": 1315 - }, - "end": { - "line": 76, - "column": 16, - "offset": 1330 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 76, - "column": 1, - "offset": 1315 - }, - "end": { - "line": 76, - "column": 16, - "offset": 1330 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Open angle bracket should be escaped:", - "position": { - "start": { - "line": 78, - "column": 1, - "offset": 1332 - }, - "end": { - "line": 78, - "column": 38, - "offset": 1369 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 78, - "column": 1, - "offset": 1332 - }, - "end": { - "line": 78, - "column": 38, - "offset": 1369 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "<", - "position": { - "start": { - "line": 80, - "column": 5, - "offset": 1375 - }, - "end": { - "line": 80, - "column": 9, - "offset": 1379 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "div>", - "position": { - "start": { - "line": 80, - "column": 9, - "offset": 1379 - }, - "end": { - "line": 80, - "column": 13, - "offset": 1383 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "<", - "position": { - "start": { - "line": 80, - "column": 13, - "offset": 1383 - }, - "end": { - "line": 80, - "column": 17, - "offset": 1387 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "/div>", - "position": { - "start": { - "line": 80, - "column": 17, - "offset": 1387 - }, - "end": { - "line": 80, - "column": 22, - "offset": 1392 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 80, - "column": 5, - "offset": 1375 - }, - "end": { - "line": 80, - "column": 22, - "offset": 1392 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 80, - "column": 1, - "offset": 1371 - }, - "end": { - "line": 80, - "column": 22, - "offset": 1392 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "<", - "position": { - "start": { - "line": 81, - "column": 5, - "offset": 1397 - }, - "end": { - "line": 81, - "column": 9, - "offset": 1401 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "http:google.com>", - "position": { - "start": { - "line": 81, - "column": 9, - "offset": 1401 - }, - "end": { - "line": 81, - "column": 25, - "offset": 1417 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 81, - "column": 5, - "offset": 1397 - }, - "end": { - "line": 81, - "column": 25, - "offset": 1417 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 81, - "column": 1, - "offset": 1393 - }, - "end": { - "line": 81, - "column": 25, - "offset": 1417 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 80, - "column": 1, - "offset": 1371 - }, - "end": { - "line": 81, - "column": 25, - "offset": 1417 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 82, - "column": 1, - "offset": 1418 - } - } -} diff --git a/test/fixtures/tree/stringify-escape.output.noposition.pedantic.noposition.pedantic.json b/test/fixtures/tree/stringify-escape.output.noposition.pedantic.noposition.pedantic.json deleted file mode 100644 index cfd62ca4c..000000000 --- a/test/fixtures/tree/stringify-escape.output.noposition.pedantic.noposition.pedantic.json +++ /dev/null @@ -1,922 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Characters that should be escaped in general:" - } - ] - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "\\" - }, - { - "type": "text", - "value": " " - }, - { - "type": "text", - "value": "`" - }, - { - "type": "text", - "value": " " - }, - { - "type": "text", - "value": "*" - }, - { - "type": "text", - "value": " " - }, - { - "type": "text", - "value": "[" - }, - { - "type": "text", - "value": " " - }, - { - "type": "text", - "value": "_" - } - ] - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Characters that shouldn't:" - } - ] - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "{}]()#+-.!>\"$%',/:;=?@^~" - } - ] - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Underscores are always " - }, - { - "type": "text", - "value": "_" - }, - { - "type": "text", - "value": "escaped" - }, - { - "type": "text", - "value": "_" - }, - { - "type": "text", - "value": ", even when they appear in" - }, - { - "type": "text", - "value": "_" - }, - { - "type": "text", - "value": "the" - }, - { - "type": "text", - "value": "_" - }, - { - "type": "text", - "value": "middle" - }, - { - "type": "text", - "value": "_" - }, - { - "type": "text", - "value": "of" - }, - { - "type": "text", - "value": "_" - }, - { - "type": "text", - "value": "a" - }, - { - "type": "text", - "value": "_" - }, - { - "type": "text", - "value": "word." - } - ] - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Ampersands are escaped only when they would otherwise start an entity:" - } - ] - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "&" - }, - { - "type": "text", - "value": "copycat " - }, - { - "type": "text", - "value": "&" - }, - { - "type": "text", - "value": "amp; " - }, - { - "type": "text", - "value": "&" - }, - { - "type": "text", - "value": "#x26" - } - ] - } - ] - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "But: ©cat; " - }, - { - "type": "inlineCode", - "value": "≬" - }, - { - "type": "text", - "value": " &foo; & AT&T &c" - } - ] - } - ] - } - ] - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Open parenthesis should be escaped after a shortcut reference:" - } - ] - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "ref", - "label": "ref", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "ref" - } - ] - }, - { - "type": "text", - "value": "(" - }, - { - "type": "text", - "value": "text)" - } - ] - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And after a shortcut reference and a space (for GitHub):" - } - ] - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "ref", - "label": "ref", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "ref" - } - ] - }, - { - "type": "text", - "value": " " - }, - { - "type": "text", - "value": "(" - }, - { - "type": "text", - "value": "text)" - } - ] - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hyphen should be escaped at the beginning of a line:" - } - ] - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "-" - }, - { - "type": "text", - "value": " not a list item\n" - }, - { - "type": "text", - "value": "-" - }, - { - "type": "text", - "value": " not a list item\n " - }, - { - "type": "text", - "value": "+" - }, - { - "type": "text", - "value": " not a list item" - } - ] - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Same for angle brackets:" - } - ] - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": ">" - }, - { - "type": "text", - "value": " not a block quote" - } - ] - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And hash signs:" - } - ] - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "#" - }, - { - "type": "text", - "value": " not a heading\n " - }, - { - "type": "text", - "value": "#" - }, - { - "type": "text", - "value": "# not a subheading" - } - ] - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Text under a shortcut reference should be preserved verbatim:" - } - ] - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "two*three", - "label": "two*three", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "two*three" - } - ] - } - ] - } - ] - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "two\\*three", - "label": "two\\*three", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "two" - }, - { - "type": "text", - "value": "*" - }, - { - "type": "text", - "value": "three" - } - ] - } - ] - } - ] - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "a\\a", - "label": "a\\a", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "a\\a" - } - ] - } - ] - } - ] - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "a\\\\a", - "label": "a\\\\a", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "a" - }, - { - "type": "text", - "value": "\\" - }, - { - "type": "text", - "value": "a" - } - ] - } - ] - } - ] - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "a\\\\\\a", - "label": "a\\\\\\a", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "a" - }, - { - "type": "text", - "value": "\\" - }, - { - "type": "text", - "value": "\\a" - } - ] - } - ] - } - ] - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "a_a\\_a", - "label": "a_a\\_a", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "a" - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "a\\" - } - ] - }, - { - "type": "text", - "value": "a" - } - ] - } - ] - } - ] - } - ] - }, - { - "type": "paragraph", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "GFM:" - } - ] - } - ] - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Colon should be escaped in URLs:" - } - ] - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "http" - }, - { - "type": "text", - "value": ":" - }, - { - "type": "text", - "value": "//user:password@host:port/path?key=value#fragment" - } - ] - } - ] - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "https" - }, - { - "type": "text", - "value": ":" - }, - { - "type": "text", - "value": "//user:password@host:port/path?key=value#fragment" - } - ] - } - ] - } - ] - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Double tildes should be " - }, - { - "type": "text", - "value": "~" - }, - { - "type": "text", - "value": "~escaped" - }, - { - "type": "text", - "value": "~" - }, - { - "type": "text", - "value": "~.\nAnd here: foo" - }, - { - "type": "text", - "value": "~" - }, - { - "type": "text", - "value": "~." - } - ] - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Pipes should not be escaped here: |" - } - ] - }, - { - "type": "table", - "align": [ - null, - null - ], - "children": [ - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "here" - } - ] - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "they" - } - ] - } - ] - }, - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "should" - } - ] - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "tho" - }, - { - "type": "text", - "value": "|" - }, - { - "type": "text", - "value": "ugh" - } - ] - } - ] - } - ] - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And here:" - } - ] - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "| here | they |\n" - }, - { - "type": "text", - "value": "|" - }, - { - "type": "text", - "value": " ---- " - }, - { - "type": "text", - "value": "|" - }, - { - "type": "text", - "value": " ----- " - }, - { - "type": "text", - "value": "|" - }, - { - "type": "text", - "value": "\n| should | though |" - } - ] - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And here:" - } - ] - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "here | they\n" - }, - { - "type": "text", - "value": "-" - }, - { - "type": "text", - "value": "--- " - }, - { - "type": "text", - "value": "|" - }, - { - "type": "text", - "value": " ------\nshould | though" - } - ] - }, - { - "type": "paragraph", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "Commonmark:" - } - ] - } - ] - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Open angle bracket should be escaped:" - } - ] - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "<" - }, - { - "type": "text", - "value": "div>" - }, - { - "type": "text", - "value": "<" - }, - { - "type": "text", - "value": "/div>" - } - ] - } - ] - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "<" - }, - { - "type": "text", - "value": "http" - }, - { - "type": "text", - "value": ":" - }, - { - "type": "text", - "value": "google.com>" - } - ] - } - ] - } - ] - } - ] -} diff --git a/test/fixtures/tree/stringify-escape.output.pedantic.pedantic.json b/test/fixtures/tree/stringify-escape.output.pedantic.pedantic.json deleted file mode 100644 index bc6223143..000000000 --- a/test/fixtures/tree/stringify-escape.output.pedantic.pedantic.json +++ /dev/null @@ -1,3513 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Characters that should be escaped in general:", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 46, - "offset": 45 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 46, - "offset": 45 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "\\", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 47 - }, - "end": { - "line": 3, - "column": 3, - "offset": 49 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 49 - }, - "end": { - "line": 3, - "column": 4, - "offset": 50 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "`", - "position": { - "start": { - "line": 3, - "column": 4, - "offset": 50 - }, - "end": { - "line": 3, - "column": 6, - "offset": 52 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 3, - "column": 6, - "offset": 52 - }, - "end": { - "line": 3, - "column": 7, - "offset": 53 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "*", - "position": { - "start": { - "line": 3, - "column": 7, - "offset": 53 - }, - "end": { - "line": 3, - "column": 9, - "offset": 55 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 3, - "column": 9, - "offset": 55 - }, - "end": { - "line": 3, - "column": 10, - "offset": 56 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "[", - "position": { - "start": { - "line": 3, - "column": 10, - "offset": 56 - }, - "end": { - "line": 3, - "column": 12, - "offset": 58 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 3, - "column": 12, - "offset": 58 - }, - "end": { - "line": 3, - "column": 13, - "offset": 59 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "_", - "position": { - "start": { - "line": 3, - "column": 13, - "offset": 59 - }, - "end": { - "line": 3, - "column": 15, - "offset": 61 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 47 - }, - "end": { - "line": 3, - "column": 15, - "offset": 61 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Characters that shouldn't:", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 63 - }, - "end": { - "line": 5, - "column": 27, - "offset": 89 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 63 - }, - "end": { - "line": 5, - "column": 27, - "offset": 89 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "{}]()#+-.!>\"$%',/:;=?@^~", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 91 - }, - "end": { - "line": 7, - "column": 25, - "offset": 115 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 91 - }, - "end": { - "line": 7, - "column": 25, - "offset": 115 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Underscores are always ", - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 117 - }, - "end": { - "line": 9, - "column": 24, - "offset": 140 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "_", - "position": { - "start": { - "line": 9, - "column": 24, - "offset": 140 - }, - "end": { - "line": 9, - "column": 26, - "offset": 142 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "escaped", - "position": { - "start": { - "line": 9, - "column": 26, - "offset": 142 - }, - "end": { - "line": 9, - "column": 33, - "offset": 149 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "_", - "position": { - "start": { - "line": 9, - "column": 33, - "offset": 149 - }, - "end": { - "line": 9, - "column": 35, - "offset": 151 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ", even when they appear in", - "position": { - "start": { - "line": 9, - "column": 35, - "offset": 151 - }, - "end": { - "line": 9, - "column": 61, - "offset": 177 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "_", - "position": { - "start": { - "line": 9, - "column": 61, - "offset": 177 - }, - "end": { - "line": 9, - "column": 63, - "offset": 179 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "the", - "position": { - "start": { - "line": 9, - "column": 63, - "offset": 179 - }, - "end": { - "line": 9, - "column": 66, - "offset": 182 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "_", - "position": { - "start": { - "line": 9, - "column": 66, - "offset": 182 - }, - "end": { - "line": 9, - "column": 68, - "offset": 184 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "middle", - "position": { - "start": { - "line": 9, - "column": 68, - "offset": 184 - }, - "end": { - "line": 9, - "column": 74, - "offset": 190 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "_", - "position": { - "start": { - "line": 9, - "column": 74, - "offset": 190 - }, - "end": { - "line": 9, - "column": 76, - "offset": 192 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "of", - "position": { - "start": { - "line": 9, - "column": 76, - "offset": 192 - }, - "end": { - "line": 9, - "column": 78, - "offset": 194 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "_", - "position": { - "start": { - "line": 9, - "column": 78, - "offset": 194 - }, - "end": { - "line": 9, - "column": 80, - "offset": 196 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "a", - "position": { - "start": { - "line": 9, - "column": 80, - "offset": 196 - }, - "end": { - "line": 9, - "column": 81, - "offset": 197 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "_", - "position": { - "start": { - "line": 9, - "column": 81, - "offset": 197 - }, - "end": { - "line": 9, - "column": 83, - "offset": 199 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "word.", - "position": { - "start": { - "line": 9, - "column": 83, - "offset": 199 - }, - "end": { - "line": 9, - "column": 88, - "offset": 204 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 117 - }, - "end": { - "line": 9, - "column": 88, - "offset": 204 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Ampersands are escaped only when they would otherwise start an entity:", - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 206 - }, - "end": { - "line": 11, - "column": 71, - "offset": 276 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 206 - }, - "end": { - "line": 11, - "column": 71, - "offset": 276 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "&", - "position": { - "start": { - "line": 13, - "column": 5, - "offset": 282 - }, - "end": { - "line": 13, - "column": 10, - "offset": 287 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "copycat ", - "position": { - "start": { - "line": 13, - "column": 10, - "offset": 287 - }, - "end": { - "line": 13, - "column": 18, - "offset": 295 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "&", - "position": { - "start": { - "line": 13, - "column": 18, - "offset": 295 - }, - "end": { - "line": 13, - "column": 23, - "offset": 300 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "amp; ", - "position": { - "start": { - "line": 13, - "column": 23, - "offset": 300 - }, - "end": { - "line": 13, - "column": 28, - "offset": 305 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "&", - "position": { - "start": { - "line": 13, - "column": 28, - "offset": 305 - }, - "end": { - "line": 13, - "column": 33, - "offset": 310 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "#x26", - "position": { - "start": { - "line": 13, - "column": 33, - "offset": 310 - }, - "end": { - "line": 13, - "column": 37, - "offset": 314 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 5, - "offset": 282 - }, - "end": { - "line": 13, - "column": 37, - "offset": 314 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 278 - }, - "end": { - "line": 13, - "column": 37, - "offset": 314 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "But: ©cat; ", - "position": { - "start": { - "line": 14, - "column": 5, - "offset": 319 - }, - "end": { - "line": 14, - "column": 16, - "offset": 330 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "≬", - "position": { - "start": { - "line": 14, - "column": 16, - "offset": 330 - }, - "end": { - "line": 14, - "column": 27, - "offset": 341 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " &foo; & AT&T &c", - "position": { - "start": { - "line": 14, - "column": 27, - "offset": 341 - }, - "end": { - "line": 14, - "column": 43, - "offset": 357 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 5, - "offset": 319 - }, - "end": { - "line": 14, - "column": 43, - "offset": 357 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 315 - }, - "end": { - "line": 14, - "column": 43, - "offset": 357 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 278 - }, - "end": { - "line": 14, - "column": 43, - "offset": 357 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Open parenthesis should be escaped after a shortcut reference:", - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 359 - }, - "end": { - "line": 16, - "column": 63, - "offset": 421 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 359 - }, - "end": { - "line": 16, - "column": 63, - "offset": 421 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "ref", - "label": "ref", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "ref", - "position": { - "start": { - "line": 18, - "column": 2, - "offset": 424 - }, - "end": { - "line": 18, - "column": 5, - "offset": 427 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 423 - }, - "end": { - "line": 18, - "column": 6, - "offset": 428 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(", - "position": { - "start": { - "line": 18, - "column": 6, - "offset": 428 - }, - "end": { - "line": 18, - "column": 8, - "offset": 430 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "text)", - "position": { - "start": { - "line": 18, - "column": 8, - "offset": 430 - }, - "end": { - "line": 18, - "column": 13, - "offset": 435 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 423 - }, - "end": { - "line": 18, - "column": 13, - "offset": 435 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And after a shortcut reference and a space (for GitHub):", - "position": { - "start": { - "line": 20, - "column": 1, - "offset": 437 - }, - "end": { - "line": 20, - "column": 57, - "offset": 493 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 1, - "offset": 437 - }, - "end": { - "line": 20, - "column": 57, - "offset": 493 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "ref", - "label": "ref", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "ref", - "position": { - "start": { - "line": 22, - "column": 2, - "offset": 496 - }, - "end": { - "line": 22, - "column": 5, - "offset": 499 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 22, - "column": 1, - "offset": 495 - }, - "end": { - "line": 22, - "column": 6, - "offset": 500 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 22, - "column": 6, - "offset": 500 - }, - "end": { - "line": 22, - "column": 7, - "offset": 501 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(", - "position": { - "start": { - "line": 22, - "column": 7, - "offset": 501 - }, - "end": { - "line": 22, - "column": 9, - "offset": 503 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "text)", - "position": { - "start": { - "line": 22, - "column": 9, - "offset": 503 - }, - "end": { - "line": 22, - "column": 14, - "offset": 508 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 22, - "column": 1, - "offset": 495 - }, - "end": { - "line": 22, - "column": 14, - "offset": 508 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hyphen should be escaped at the beginning of a line:", - "position": { - "start": { - "line": 24, - "column": 1, - "offset": 510 - }, - "end": { - "line": 24, - "column": 53, - "offset": 562 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 24, - "column": 1, - "offset": 510 - }, - "end": { - "line": 24, - "column": 53, - "offset": 562 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "-", - "position": { - "start": { - "line": 26, - "column": 1, - "offset": 564 - }, - "end": { - "line": 26, - "column": 3, - "offset": 566 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " not a list item\n", - "position": { - "start": { - "line": 26, - "column": 3, - "offset": 566 - }, - "end": { - "line": 27, - "column": 1, - "offset": 583 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "-", - "position": { - "start": { - "line": 27, - "column": 1, - "offset": 583 - }, - "end": { - "line": 27, - "column": 3, - "offset": 585 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " not a list item\n ", - "position": { - "start": { - "line": 27, - "column": 3, - "offset": 585 - }, - "end": { - "line": 28, - "column": 3, - "offset": 604 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "+", - "position": { - "start": { - "line": 28, - "column": 3, - "offset": 604 - }, - "end": { - "line": 28, - "column": 5, - "offset": 606 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " not a list item", - "position": { - "start": { - "line": 28, - "column": 5, - "offset": 606 - }, - "end": { - "line": 28, - "column": 21, - "offset": 622 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 26, - "column": 1, - "offset": 564 - }, - "end": { - "line": 28, - "column": 21, - "offset": 622 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Same for angle brackets:", - "position": { - "start": { - "line": 30, - "column": 1, - "offset": 624 - }, - "end": { - "line": 30, - "column": 25, - "offset": 648 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 30, - "column": 1, - "offset": 624 - }, - "end": { - "line": 30, - "column": 25, - "offset": 648 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": ">", - "position": { - "start": { - "line": 32, - "column": 1, - "offset": 650 - }, - "end": { - "line": 32, - "column": 3, - "offset": 652 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " not a block quote", - "position": { - "start": { - "line": 32, - "column": 3, - "offset": 652 - }, - "end": { - "line": 32, - "column": 21, - "offset": 670 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 32, - "column": 1, - "offset": 650 - }, - "end": { - "line": 32, - "column": 21, - "offset": 670 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And hash signs:", - "position": { - "start": { - "line": 34, - "column": 1, - "offset": 672 - }, - "end": { - "line": 34, - "column": 16, - "offset": 687 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 34, - "column": 1, - "offset": 672 - }, - "end": { - "line": 34, - "column": 16, - "offset": 687 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "#", - "position": { - "start": { - "line": 36, - "column": 1, - "offset": 689 - }, - "end": { - "line": 36, - "column": 3, - "offset": 691 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " not a heading\n ", - "position": { - "start": { - "line": 36, - "column": 3, - "offset": 691 - }, - "end": { - "line": 37, - "column": 3, - "offset": 708 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "#", - "position": { - "start": { - "line": 37, - "column": 3, - "offset": 708 - }, - "end": { - "line": 37, - "column": 5, - "offset": 710 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "# not a subheading", - "position": { - "start": { - "line": 37, - "column": 5, - "offset": 710 - }, - "end": { - "line": 37, - "column": 23, - "offset": 728 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 36, - "column": 1, - "offset": 689 - }, - "end": { - "line": 37, - "column": 23, - "offset": 728 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Text under a shortcut reference should be preserved verbatim:", - "position": { - "start": { - "line": 39, - "column": 1, - "offset": 730 - }, - "end": { - "line": 39, - "column": 62, - "offset": 791 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 39, - "column": 1, - "offset": 730 - }, - "end": { - "line": 39, - "column": 62, - "offset": 791 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "two*three", - "label": "two*three", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "two*three", - "position": { - "start": { - "line": 41, - "column": 6, - "offset": 798 - }, - "end": { - "line": 41, - "column": 15, - "offset": 807 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 41, - "column": 5, - "offset": 797 - }, - "end": { - "line": 41, - "column": 16, - "offset": 808 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 41, - "column": 5, - "offset": 797 - }, - "end": { - "line": 41, - "column": 16, - "offset": 808 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 41, - "column": 1, - "offset": 793 - }, - "end": { - "line": 41, - "column": 16, - "offset": 808 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "two\\*three", - "label": "two\\*three", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "two", - "position": { - "start": { - "line": 42, - "column": 6, - "offset": 814 - }, - "end": { - "line": 42, - "column": 9, - "offset": 817 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "*", - "position": { - "start": { - "line": 42, - "column": 9, - "offset": 817 - }, - "end": { - "line": 42, - "column": 11, - "offset": 819 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "three", - "position": { - "start": { - "line": 42, - "column": 11, - "offset": 819 - }, - "end": { - "line": 42, - "column": 16, - "offset": 824 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 42, - "column": 5, - "offset": 813 - }, - "end": { - "line": 42, - "column": 17, - "offset": 825 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 42, - "column": 5, - "offset": 813 - }, - "end": { - "line": 42, - "column": 17, - "offset": 825 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 42, - "column": 1, - "offset": 809 - }, - "end": { - "line": 42, - "column": 17, - "offset": 825 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "a\\a", - "label": "a\\a", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "a\\a", - "position": { - "start": { - "line": 43, - "column": 6, - "offset": 831 - }, - "end": { - "line": 43, - "column": 9, - "offset": 834 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 43, - "column": 5, - "offset": 830 - }, - "end": { - "line": 43, - "column": 10, - "offset": 835 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 43, - "column": 5, - "offset": 830 - }, - "end": { - "line": 43, - "column": 10, - "offset": 835 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 43, - "column": 1, - "offset": 826 - }, - "end": { - "line": 43, - "column": 10, - "offset": 835 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "a\\\\a", - "label": "a\\\\a", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "a", - "position": { - "start": { - "line": 44, - "column": 6, - "offset": 841 - }, - "end": { - "line": 44, - "column": 7, - "offset": 842 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\\", - "position": { - "start": { - "line": 44, - "column": 7, - "offset": 842 - }, - "end": { - "line": 44, - "column": 9, - "offset": 844 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "a", - "position": { - "start": { - "line": 44, - "column": 9, - "offset": 844 - }, - "end": { - "line": 44, - "column": 10, - "offset": 845 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 44, - "column": 5, - "offset": 840 - }, - "end": { - "line": 44, - "column": 11, - "offset": 846 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 44, - "column": 5, - "offset": 840 - }, - "end": { - "line": 44, - "column": 11, - "offset": 846 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 44, - "column": 1, - "offset": 836 - }, - "end": { - "line": 44, - "column": 11, - "offset": 846 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "a\\\\\\a", - "label": "a\\\\\\a", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "a", - "position": { - "start": { - "line": 45, - "column": 6, - "offset": 852 - }, - "end": { - "line": 45, - "column": 7, - "offset": 853 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\\", - "position": { - "start": { - "line": 45, - "column": 7, - "offset": 853 - }, - "end": { - "line": 45, - "column": 9, - "offset": 855 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\\a", - "position": { - "start": { - "line": 45, - "column": 9, - "offset": 855 - }, - "end": { - "line": 45, - "column": 11, - "offset": 857 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 45, - "column": 5, - "offset": 851 - }, - "end": { - "line": 45, - "column": 12, - "offset": 858 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 45, - "column": 5, - "offset": 851 - }, - "end": { - "line": 45, - "column": 12, - "offset": 858 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 45, - "column": 1, - "offset": 847 - }, - "end": { - "line": 45, - "column": 12, - "offset": 858 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "a_a\\_a", - "label": "a_a\\_a", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "a", - "position": { - "start": { - "line": 46, - "column": 6, - "offset": 864 - }, - "end": { - "line": 46, - "column": 7, - "offset": 865 - }, - "indent": [] - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "a\\", - "position": { - "start": { - "line": 46, - "column": 8, - "offset": 866 - }, - "end": { - "line": 46, - "column": 10, - "offset": 868 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 46, - "column": 7, - "offset": 865 - }, - "end": { - "line": 46, - "column": 11, - "offset": 869 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "a", - "position": { - "start": { - "line": 46, - "column": 11, - "offset": 869 - }, - "end": { - "line": 46, - "column": 12, - "offset": 870 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 46, - "column": 5, - "offset": 863 - }, - "end": { - "line": 46, - "column": 13, - "offset": 871 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 46, - "column": 5, - "offset": 863 - }, - "end": { - "line": 46, - "column": 13, - "offset": 871 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 46, - "column": 1, - "offset": 859 - }, - "end": { - "line": 46, - "column": 13, - "offset": 871 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 41, - "column": 1, - "offset": 793 - }, - "end": { - "line": 46, - "column": 13, - "offset": 871 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "GFM:", - "position": { - "start": { - "line": 48, - "column": 3, - "offset": 875 - }, - "end": { - "line": 48, - "column": 7, - "offset": 879 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 48, - "column": 1, - "offset": 873 - }, - "end": { - "line": 48, - "column": 9, - "offset": 881 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 48, - "column": 1, - "offset": 873 - }, - "end": { - "line": 48, - "column": 9, - "offset": 881 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Colon should be escaped in URLs:", - "position": { - "start": { - "line": 50, - "column": 1, - "offset": 883 - }, - "end": { - "line": 50, - "column": 33, - "offset": 915 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 50, - "column": 1, - "offset": 883 - }, - "end": { - "line": 50, - "column": 33, - "offset": 915 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "http", - "position": { - "start": { - "line": 52, - "column": 5, - "offset": 921 - }, - "end": { - "line": 52, - "column": 9, - "offset": 925 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ":", - "position": { - "start": { - "line": 52, - "column": 9, - "offset": 925 - }, - "end": { - "line": 52, - "column": 15, - "offset": 931 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "//user:password@host:port/path?key=value#fragment", - "position": { - "start": { - "line": 52, - "column": 15, - "offset": 931 - }, - "end": { - "line": 52, - "column": 64, - "offset": 980 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 52, - "column": 5, - "offset": 921 - }, - "end": { - "line": 52, - "column": 64, - "offset": 980 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 52, - "column": 1, - "offset": 917 - }, - "end": { - "line": 52, - "column": 64, - "offset": 980 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "https", - "position": { - "start": { - "line": 53, - "column": 5, - "offset": 985 - }, - "end": { - "line": 53, - "column": 10, - "offset": 990 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ":", - "position": { - "start": { - "line": 53, - "column": 10, - "offset": 990 - }, - "end": { - "line": 53, - "column": 16, - "offset": 996 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "//user:password@host:port/path?key=value#fragment", - "position": { - "start": { - "line": 53, - "column": 16, - "offset": 996 - }, - "end": { - "line": 53, - "column": 65, - "offset": 1045 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 53, - "column": 5, - "offset": 985 - }, - "end": { - "line": 53, - "column": 65, - "offset": 1045 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 53, - "column": 1, - "offset": 981 - }, - "end": { - "line": 53, - "column": 65, - "offset": 1045 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 52, - "column": 1, - "offset": 917 - }, - "end": { - "line": 53, - "column": 65, - "offset": 1045 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Double tildes should be ", - "position": { - "start": { - "line": 55, - "column": 1, - "offset": 1047 - }, - "end": { - "line": 55, - "column": 25, - "offset": 1071 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "~", - "position": { - "start": { - "line": 55, - "column": 25, - "offset": 1071 - }, - "end": { - "line": 55, - "column": 27, - "offset": 1073 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "~escaped", - "position": { - "start": { - "line": 55, - "column": 27, - "offset": 1073 - }, - "end": { - "line": 55, - "column": 35, - "offset": 1081 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "~", - "position": { - "start": { - "line": 55, - "column": 35, - "offset": 1081 - }, - "end": { - "line": 55, - "column": 37, - "offset": 1083 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "~.\nAnd here: foo", - "position": { - "start": { - "line": 55, - "column": 37, - "offset": 1083 - }, - "end": { - "line": 56, - "column": 14, - "offset": 1099 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "~", - "position": { - "start": { - "line": 56, - "column": 14, - "offset": 1099 - }, - "end": { - "line": 56, - "column": 16, - "offset": 1101 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "~.", - "position": { - "start": { - "line": 56, - "column": 16, - "offset": 1101 - }, - "end": { - "line": 56, - "column": 18, - "offset": 1103 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 55, - "column": 1, - "offset": 1047 - }, - "end": { - "line": 56, - "column": 18, - "offset": 1103 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Pipes should not be escaped here: |", - "position": { - "start": { - "line": 58, - "column": 1, - "offset": 1105 - }, - "end": { - "line": 58, - "column": 36, - "offset": 1140 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 58, - "column": 1, - "offset": 1105 - }, - "end": { - "line": 58, - "column": 36, - "offset": 1140 - }, - "indent": [] - } - }, - { - "type": "table", - "align": [ - null, - null - ], - "children": [ - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "here", - "position": { - "start": { - "line": 60, - "column": 3, - "offset": 1144 - }, - "end": { - "line": 60, - "column": 7, - "offset": 1148 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 60, - "column": 3, - "offset": 1144 - }, - "end": { - "line": 60, - "column": 9, - "offset": 1150 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "they", - "position": { - "start": { - "line": 60, - "column": 12, - "offset": 1153 - }, - "end": { - "line": 60, - "column": 16, - "offset": 1157 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 60, - "column": 12, - "offset": 1153 - }, - "end": { - "line": 60, - "column": 20, - "offset": 1161 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 60, - "column": 1, - "offset": 1142 - }, - "end": { - "line": 60, - "column": 22, - "offset": 1163 - }, - "indent": [] - } - }, - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "should", - "position": { - "start": { - "line": 62, - "column": 3, - "offset": 1188 - }, - "end": { - "line": 62, - "column": 9, - "offset": 1194 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 62, - "column": 3, - "offset": 1188 - }, - "end": { - "line": 62, - "column": 9, - "offset": 1194 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "tho", - "position": { - "start": { - "line": 62, - "column": 12, - "offset": 1197 - }, - "end": { - "line": 62, - "column": 15, - "offset": 1200 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "|", - "position": { - "start": { - "line": 62, - "column": 15, - "offset": 1200 - }, - "end": { - "line": 62, - "column": 17, - "offset": 1202 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "ugh", - "position": { - "start": { - "line": 62, - "column": 17, - "offset": 1202 - }, - "end": { - "line": 62, - "column": 20, - "offset": 1205 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 62, - "column": 12, - "offset": 1197 - }, - "end": { - "line": 62, - "column": 20, - "offset": 1205 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 62, - "column": 1, - "offset": 1186 - }, - "end": { - "line": 62, - "column": 22, - "offset": 1207 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 60, - "column": 1, - "offset": 1142 - }, - "end": { - "line": 62, - "column": 22, - "offset": 1207 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And here:", - "position": { - "start": { - "line": 64, - "column": 1, - "offset": 1209 - }, - "end": { - "line": 64, - "column": 10, - "offset": 1218 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 64, - "column": 1, - "offset": 1209 - }, - "end": { - "line": 64, - "column": 10, - "offset": 1218 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "| here | they |\n", - "position": { - "start": { - "line": 66, - "column": 1, - "offset": 1220 - }, - "end": { - "line": 67, - "column": 1, - "offset": 1240 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "|", - "position": { - "start": { - "line": 67, - "column": 1, - "offset": 1240 - }, - "end": { - "line": 67, - "column": 3, - "offset": 1242 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ---- ", - "position": { - "start": { - "line": 67, - "column": 3, - "offset": 1242 - }, - "end": { - "line": 67, - "column": 9, - "offset": 1248 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "|", - "position": { - "start": { - "line": 67, - "column": 9, - "offset": 1248 - }, - "end": { - "line": 67, - "column": 11, - "offset": 1250 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ----- ", - "position": { - "start": { - "line": 67, - "column": 11, - "offset": 1250 - }, - "end": { - "line": 67, - "column": 18, - "offset": 1257 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "|", - "position": { - "start": { - "line": 67, - "column": 18, - "offset": 1257 - }, - "end": { - "line": 67, - "column": 20, - "offset": 1259 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\n| should | though |", - "position": { - "start": { - "line": 67, - "column": 20, - "offset": 1259 - }, - "end": { - "line": 68, - "column": 20, - "offset": 1279 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 66, - "column": 1, - "offset": 1220 - }, - "end": { - "line": 68, - "column": 20, - "offset": 1279 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And here:", - "position": { - "start": { - "line": 70, - "column": 1, - "offset": 1281 - }, - "end": { - "line": 70, - "column": 10, - "offset": 1290 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 70, - "column": 1, - "offset": 1281 - }, - "end": { - "line": 70, - "column": 10, - "offset": 1290 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "here | they\n", - "position": { - "start": { - "line": 72, - "column": 1, - "offset": 1292 - }, - "end": { - "line": 73, - "column": 1, - "offset": 1306 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "-", - "position": { - "start": { - "line": 73, - "column": 1, - "offset": 1306 - }, - "end": { - "line": 73, - "column": 3, - "offset": 1308 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "--- ", - "position": { - "start": { - "line": 73, - "column": 3, - "offset": 1308 - }, - "end": { - "line": 73, - "column": 7, - "offset": 1312 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "|", - "position": { - "start": { - "line": 73, - "column": 7, - "offset": 1312 - }, - "end": { - "line": 73, - "column": 9, - "offset": 1314 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ------\nshould | though", - "position": { - "start": { - "line": 73, - "column": 9, - "offset": 1314 - }, - "end": { - "line": 74, - "column": 16, - "offset": 1337 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 72, - "column": 1, - "offset": 1292 - }, - "end": { - "line": 74, - "column": 16, - "offset": 1337 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "Commonmark:", - "position": { - "start": { - "line": 76, - "column": 3, - "offset": 1341 - }, - "end": { - "line": 76, - "column": 14, - "offset": 1352 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 76, - "column": 1, - "offset": 1339 - }, - "end": { - "line": 76, - "column": 16, - "offset": 1354 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 76, - "column": 1, - "offset": 1339 - }, - "end": { - "line": 76, - "column": 16, - "offset": 1354 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Open angle bracket should be escaped:", - "position": { - "start": { - "line": 78, - "column": 1, - "offset": 1356 - }, - "end": { - "line": 78, - "column": 38, - "offset": 1393 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 78, - "column": 1, - "offset": 1356 - }, - "end": { - "line": 78, - "column": 38, - "offset": 1393 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "<", - "position": { - "start": { - "line": 80, - "column": 5, - "offset": 1399 - }, - "end": { - "line": 80, - "column": 9, - "offset": 1403 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "div>", - "position": { - "start": { - "line": 80, - "column": 9, - "offset": 1403 - }, - "end": { - "line": 80, - "column": 13, - "offset": 1407 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "<", - "position": { - "start": { - "line": 80, - "column": 13, - "offset": 1407 - }, - "end": { - "line": 80, - "column": 17, - "offset": 1411 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "/div>", - "position": { - "start": { - "line": 80, - "column": 17, - "offset": 1411 - }, - "end": { - "line": 80, - "column": 22, - "offset": 1416 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 80, - "column": 5, - "offset": 1399 - }, - "end": { - "line": 80, - "column": 22, - "offset": 1416 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 80, - "column": 1, - "offset": 1395 - }, - "end": { - "line": 80, - "column": 22, - "offset": 1416 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "<", - "position": { - "start": { - "line": 81, - "column": 5, - "offset": 1421 - }, - "end": { - "line": 81, - "column": 9, - "offset": 1425 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "http", - "position": { - "start": { - "line": 81, - "column": 9, - "offset": 1425 - }, - "end": { - "line": 81, - "column": 13, - "offset": 1429 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ":", - "position": { - "start": { - "line": 81, - "column": 13, - "offset": 1429 - }, - "end": { - "line": 81, - "column": 19, - "offset": 1435 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "google.com>", - "position": { - "start": { - "line": 81, - "column": 19, - "offset": 1435 - }, - "end": { - "line": 81, - "column": 30, - "offset": 1446 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 81, - "column": 5, - "offset": 1421 - }, - "end": { - "line": 81, - "column": 30, - "offset": 1446 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 81, - "column": 1, - "offset": 1417 - }, - "end": { - "line": 81, - "column": 30, - "offset": 1446 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 80, - "column": 1, - "offset": 1395 - }, - "end": { - "line": 81, - "column": 30, - "offset": 1446 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 82, - "column": 1, - "offset": 1447 - } - } -} diff --git a/test/fixtures/tree/stringify-escape.pedantic.json b/test/fixtures/tree/stringify-escape.pedantic.json deleted file mode 100644 index 563348945..000000000 --- a/test/fixtures/tree/stringify-escape.pedantic.json +++ /dev/null @@ -1,3853 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Characters that should be escaped in general:", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 46, - "offset": 45 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 46, - "offset": 45 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "\\", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 47 - }, - "end": { - "line": 3, - "column": 3, - "offset": 49 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 49 - }, - "end": { - "line": 3, - "column": 4, - "offset": 50 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "`", - "position": { - "start": { - "line": 3, - "column": 4, - "offset": 50 - }, - "end": { - "line": 3, - "column": 6, - "offset": 52 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 3, - "column": 6, - "offset": 52 - }, - "end": { - "line": 3, - "column": 7, - "offset": 53 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "*", - "position": { - "start": { - "line": 3, - "column": 7, - "offset": 53 - }, - "end": { - "line": 3, - "column": 9, - "offset": 55 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 3, - "column": 9, - "offset": 55 - }, - "end": { - "line": 3, - "column": 10, - "offset": 56 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "[", - "position": { - "start": { - "line": 3, - "column": 10, - "offset": 56 - }, - "end": { - "line": 3, - "column": 12, - "offset": 58 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 47 - }, - "end": { - "line": 3, - "column": 12, - "offset": 58 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Characters that shouldn't:", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 60 - }, - "end": { - "line": 5, - "column": 27, - "offset": 86 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 60 - }, - "end": { - "line": 5, - "column": 27, - "offset": 86 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "{}]()#+-.!>\"$%',/:;=?@^~", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 88 - }, - "end": { - "line": 7, - "column": 25, - "offset": 112 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 88 - }, - "end": { - "line": 7, - "column": 25, - "offset": 112 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Underscores are ", - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 114 - }, - "end": { - "line": 9, - "column": 17, - "offset": 130 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "_", - "position": { - "start": { - "line": 9, - "column": 17, - "offset": 130 - }, - "end": { - "line": 9, - "column": 19, - "offset": 132 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "escaped", - "position": { - "start": { - "line": 9, - "column": 19, - "offset": 132 - }, - "end": { - "line": 9, - "column": 26, - "offset": 139 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "_", - "position": { - "start": { - "line": 9, - "column": 26, - "offset": 139 - }, - "end": { - "line": 9, - "column": 28, - "offset": 141 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " unless they appear in", - "position": { - "start": { - "line": 9, - "column": 28, - "offset": 141 - }, - "end": { - "line": 9, - "column": 50, - "offset": 163 - }, - "indent": [] - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "the", - "position": { - "start": { - "line": 9, - "column": 51, - "offset": 164 - }, - "end": { - "line": 9, - "column": 54, - "offset": 167 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 50, - "offset": 163 - }, - "end": { - "line": 9, - "column": 55, - "offset": 168 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "middle", - "position": { - "start": { - "line": 9, - "column": 55, - "offset": 168 - }, - "end": { - "line": 9, - "column": 61, - "offset": 174 - }, - "indent": [] - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "of", - "position": { - "start": { - "line": 9, - "column": 62, - "offset": 175 - }, - "end": { - "line": 9, - "column": 64, - "offset": 177 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 61, - "offset": 174 - }, - "end": { - "line": 9, - "column": 65, - "offset": 178 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "a", - "position": { - "start": { - "line": 9, - "column": 65, - "offset": 178 - }, - "end": { - "line": 9, - "column": 66, - "offset": 179 - }, - "indent": [] - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "word.\nor **", - "position": { - "start": { - "line": 9, - "column": 67, - "offset": 180 - }, - "end": { - "line": 10, - "column": 6, - "offset": 191 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 66, - "offset": 179 - }, - "end": { - "line": 10, - "column": 7, - "offset": 192 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "here**, or here__", - "position": { - "start": { - "line": 10, - "column": 7, - "offset": 192 - }, - "end": { - "line": 10, - "column": 24, - "offset": 209 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 114 - }, - "end": { - "line": 10, - "column": 24, - "offset": 209 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Ampersands are escaped only when they would otherwise start an entity:", - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 211 - }, - "end": { - "line": 12, - "column": 71, - "offset": 281 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 211 - }, - "end": { - "line": 12, - "column": 71, - "offset": 281 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "\\", - "position": { - "start": { - "line": 14, - "column": 5, - "offset": 287 - }, - "end": { - "line": 14, - "column": 6, - "offset": 288 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "©", - "position": { - "start": { - "line": 14, - "column": 6, - "offset": 288 - }, - "end": { - "line": 14, - "column": 11, - "offset": 293 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "cat \\", - "position": { - "start": { - "line": 14, - "column": 11, - "offset": 293 - }, - "end": { - "line": 14, - "column": 16, - "offset": 298 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "&", - "position": { - "start": { - "line": 14, - "column": 16, - "offset": 298 - }, - "end": { - "line": 14, - "column": 21, - "offset": 303 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " \\", - "position": { - "start": { - "line": 14, - "column": 21, - "offset": 303 - }, - "end": { - "line": 14, - "column": 23, - "offset": 305 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "&", - "position": { - "start": { - "line": 14, - "column": 23, - "offset": 305 - }, - "end": { - "line": 14, - "column": 28, - "offset": 310 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 5, - "offset": 287 - }, - "end": { - "line": 14, - "column": 28, - "offset": 310 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 283 - }, - "end": { - "line": 14, - "column": 28, - "offset": 310 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "&", - "position": { - "start": { - "line": 15, - "column": 5, - "offset": 315 - }, - "end": { - "line": 15, - "column": 10, - "offset": 320 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "copycat ", - "position": { - "start": { - "line": 15, - "column": 10, - "offset": 320 - }, - "end": { - "line": 15, - "column": 18, - "offset": 328 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "&", - "position": { - "start": { - "line": 15, - "column": 18, - "offset": 328 - }, - "end": { - "line": 15, - "column": 23, - "offset": 333 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "amp; ", - "position": { - "start": { - "line": 15, - "column": 23, - "offset": 333 - }, - "end": { - "line": 15, - "column": 28, - "offset": 338 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "&", - "position": { - "start": { - "line": 15, - "column": 28, - "offset": 338 - }, - "end": { - "line": 15, - "column": 33, - "offset": 343 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "#x26", - "position": { - "start": { - "line": 15, - "column": 33, - "offset": 343 - }, - "end": { - "line": 15, - "column": 37, - "offset": 347 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 5, - "offset": 315 - }, - "end": { - "line": 15, - "column": 37, - "offset": 347 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 311 - }, - "end": { - "line": 15, - "column": 37, - "offset": 347 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "But: ©cat; ", - "position": { - "start": { - "line": 16, - "column": 5, - "offset": 352 - }, - "end": { - "line": 16, - "column": 16, - "offset": 363 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "≬", - "position": { - "start": { - "line": 16, - "column": 16, - "offset": 363 - }, - "end": { - "line": 16, - "column": 27, - "offset": 374 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " &foo; & AT&T &c", - "position": { - "start": { - "line": 16, - "column": 27, - "offset": 374 - }, - "end": { - "line": 16, - "column": 43, - "offset": 390 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 5, - "offset": 352 - }, - "end": { - "line": 16, - "column": 43, - "offset": 390 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 348 - }, - "end": { - "line": 16, - "column": 43, - "offset": 390 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 283 - }, - "end": { - "line": 16, - "column": 43, - "offset": 390 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Open parenthesis should be escaped after a shortcut reference:", - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 392 - }, - "end": { - "line": 18, - "column": 63, - "offset": 454 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 392 - }, - "end": { - "line": 18, - "column": 63, - "offset": 454 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "ref", - "label": "ref", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "ref", - "position": { - "start": { - "line": 20, - "column": 2, - "offset": 457 - }, - "end": { - "line": 20, - "column": 5, - "offset": 460 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 1, - "offset": 456 - }, - "end": { - "line": 20, - "column": 6, - "offset": 461 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(", - "position": { - "start": { - "line": 20, - "column": 6, - "offset": 461 - }, - "end": { - "line": 20, - "column": 8, - "offset": 463 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "text)", - "position": { - "start": { - "line": 20, - "column": 8, - "offset": 463 - }, - "end": { - "line": 20, - "column": 13, - "offset": 468 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 1, - "offset": 456 - }, - "end": { - "line": 20, - "column": 13, - "offset": 468 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And after a shortcut reference and a space (for GitHub):", - "position": { - "start": { - "line": 22, - "column": 1, - "offset": 470 - }, - "end": { - "line": 22, - "column": 57, - "offset": 526 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 22, - "column": 1, - "offset": 470 - }, - "end": { - "line": 22, - "column": 57, - "offset": 526 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "ref", - "label": "ref", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "ref", - "position": { - "start": { - "line": 24, - "column": 2, - "offset": 529 - }, - "end": { - "line": 24, - "column": 5, - "offset": 532 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 24, - "column": 1, - "offset": 528 - }, - "end": { - "line": 24, - "column": 6, - "offset": 533 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 24, - "column": 6, - "offset": 533 - }, - "end": { - "line": 24, - "column": 7, - "offset": 534 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(", - "position": { - "start": { - "line": 24, - "column": 7, - "offset": 534 - }, - "end": { - "line": 24, - "column": 9, - "offset": 536 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "text)", - "position": { - "start": { - "line": 24, - "column": 9, - "offset": 536 - }, - "end": { - "line": 24, - "column": 14, - "offset": 541 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 24, - "column": 1, - "offset": 528 - }, - "end": { - "line": 24, - "column": 14, - "offset": 541 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hyphen should be escaped at the beginning of a line:", - "position": { - "start": { - "line": 26, - "column": 1, - "offset": 543 - }, - "end": { - "line": 26, - "column": 53, - "offset": 595 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 26, - "column": 1, - "offset": 543 - }, - "end": { - "line": 26, - "column": 53, - "offset": 595 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "-", - "position": { - "start": { - "line": 28, - "column": 1, - "offset": 597 - }, - "end": { - "line": 28, - "column": 3, - "offset": 599 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " not a list item\n", - "position": { - "start": { - "line": 28, - "column": 3, - "offset": 599 - }, - "end": { - "line": 29, - "column": 1, - "offset": 616 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "-", - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 616 - }, - "end": { - "line": 29, - "column": 3, - "offset": 618 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " not a list item\n ", - "position": { - "start": { - "line": 29, - "column": 3, - "offset": 618 - }, - "end": { - "line": 30, - "column": 3, - "offset": 637 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "+", - "position": { - "start": { - "line": 30, - "column": 3, - "offset": 637 - }, - "end": { - "line": 30, - "column": 5, - "offset": 639 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " not a list item", - "position": { - "start": { - "line": 30, - "column": 5, - "offset": 639 - }, - "end": { - "line": 30, - "column": 21, - "offset": 655 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 28, - "column": 1, - "offset": 597 - }, - "end": { - "line": 30, - "column": 21, - "offset": 655 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Same for angle brackets:", - "position": { - "start": { - "line": 32, - "column": 1, - "offset": 657 - }, - "end": { - "line": 32, - "column": 25, - "offset": 681 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 32, - "column": 1, - "offset": 657 - }, - "end": { - "line": 32, - "column": 25, - "offset": 681 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": ">", - "position": { - "start": { - "line": 34, - "column": 1, - "offset": 683 - }, - "end": { - "line": 34, - "column": 3, - "offset": 685 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " not a block quote", - "position": { - "start": { - "line": 34, - "column": 3, - "offset": 685 - }, - "end": { - "line": 34, - "column": 21, - "offset": 703 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 34, - "column": 1, - "offset": 683 - }, - "end": { - "line": 34, - "column": 21, - "offset": 703 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And hash signs:", - "position": { - "start": { - "line": 36, - "column": 1, - "offset": 705 - }, - "end": { - "line": 36, - "column": 16, - "offset": 720 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 36, - "column": 1, - "offset": 705 - }, - "end": { - "line": 36, - "column": 16, - "offset": 720 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "#", - "position": { - "start": { - "line": 38, - "column": 1, - "offset": 722 - }, - "end": { - "line": 38, - "column": 3, - "offset": 724 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " not a heading\n ", - "position": { - "start": { - "line": 38, - "column": 3, - "offset": 724 - }, - "end": { - "line": 39, - "column": 3, - "offset": 741 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "#", - "position": { - "start": { - "line": 39, - "column": 3, - "offset": 741 - }, - "end": { - "line": 39, - "column": 5, - "offset": 743 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "# not a subheading", - "position": { - "start": { - "line": 39, - "column": 5, - "offset": 743 - }, - "end": { - "line": 39, - "column": 23, - "offset": 761 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 38, - "column": 1, - "offset": 722 - }, - "end": { - "line": 39, - "column": 23, - "offset": 761 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Text under a shortcut reference should be preserved verbatim:", - "position": { - "start": { - "line": 41, - "column": 1, - "offset": 763 - }, - "end": { - "line": 41, - "column": 62, - "offset": 824 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 41, - "column": 1, - "offset": 763 - }, - "end": { - "line": 41, - "column": 62, - "offset": 824 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "two*three", - "label": "two*three", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "two*three", - "position": { - "start": { - "line": 43, - "column": 6, - "offset": 831 - }, - "end": { - "line": 43, - "column": 15, - "offset": 840 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 43, - "column": 5, - "offset": 830 - }, - "end": { - "line": 43, - "column": 16, - "offset": 841 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 43, - "column": 5, - "offset": 830 - }, - "end": { - "line": 43, - "column": 16, - "offset": 841 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 43, - "column": 1, - "offset": 826 - }, - "end": { - "line": 43, - "column": 16, - "offset": 841 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "two\\*three", - "label": "two\\*three", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "two", - "position": { - "start": { - "line": 44, - "column": 6, - "offset": 847 - }, - "end": { - "line": 44, - "column": 9, - "offset": 850 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "*", - "position": { - "start": { - "line": 44, - "column": 9, - "offset": 850 - }, - "end": { - "line": 44, - "column": 11, - "offset": 852 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "three", - "position": { - "start": { - "line": 44, - "column": 11, - "offset": 852 - }, - "end": { - "line": 44, - "column": 16, - "offset": 857 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 44, - "column": 5, - "offset": 846 - }, - "end": { - "line": 44, - "column": 17, - "offset": 858 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 44, - "column": 5, - "offset": 846 - }, - "end": { - "line": 44, - "column": 17, - "offset": 858 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 44, - "column": 1, - "offset": 842 - }, - "end": { - "line": 44, - "column": 17, - "offset": 858 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "a\\a", - "label": "a\\a", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "a\\a", - "position": { - "start": { - "line": 45, - "column": 6, - "offset": 864 - }, - "end": { - "line": 45, - "column": 9, - "offset": 867 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 45, - "column": 5, - "offset": 863 - }, - "end": { - "line": 45, - "column": 10, - "offset": 868 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 45, - "column": 5, - "offset": 863 - }, - "end": { - "line": 45, - "column": 10, - "offset": 868 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 45, - "column": 1, - "offset": 859 - }, - "end": { - "line": 45, - "column": 10, - "offset": 868 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "a\\\\a", - "label": "a\\\\a", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "a", - "position": { - "start": { - "line": 46, - "column": 6, - "offset": 874 - }, - "end": { - "line": 46, - "column": 7, - "offset": 875 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\\", - "position": { - "start": { - "line": 46, - "column": 7, - "offset": 875 - }, - "end": { - "line": 46, - "column": 9, - "offset": 877 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "a", - "position": { - "start": { - "line": 46, - "column": 9, - "offset": 877 - }, - "end": { - "line": 46, - "column": 10, - "offset": 878 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 46, - "column": 5, - "offset": 873 - }, - "end": { - "line": 46, - "column": 11, - "offset": 879 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 46, - "column": 5, - "offset": 873 - }, - "end": { - "line": 46, - "column": 11, - "offset": 879 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 46, - "column": 1, - "offset": 869 - }, - "end": { - "line": 46, - "column": 11, - "offset": 879 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "a\\\\\\a", - "label": "a\\\\\\a", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "a", - "position": { - "start": { - "line": 47, - "column": 6, - "offset": 885 - }, - "end": { - "line": 47, - "column": 7, - "offset": 886 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\\", - "position": { - "start": { - "line": 47, - "column": 7, - "offset": 886 - }, - "end": { - "line": 47, - "column": 9, - "offset": 888 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\\a", - "position": { - "start": { - "line": 47, - "column": 9, - "offset": 888 - }, - "end": { - "line": 47, - "column": 11, - "offset": 890 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 47, - "column": 5, - "offset": 884 - }, - "end": { - "line": 47, - "column": 12, - "offset": 891 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 47, - "column": 5, - "offset": 884 - }, - "end": { - "line": 47, - "column": 12, - "offset": 891 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 47, - "column": 1, - "offset": 880 - }, - "end": { - "line": 47, - "column": 12, - "offset": 891 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "a_a\\_a", - "label": "a_a\\_a", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "a", - "position": { - "start": { - "line": 48, - "column": 6, - "offset": 897 - }, - "end": { - "line": 48, - "column": 7, - "offset": 898 - }, - "indent": [] - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "a\\", - "position": { - "start": { - "line": 48, - "column": 8, - "offset": 899 - }, - "end": { - "line": 48, - "column": 10, - "offset": 901 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 48, - "column": 7, - "offset": 898 - }, - "end": { - "line": 48, - "column": 11, - "offset": 902 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "a", - "position": { - "start": { - "line": 48, - "column": 11, - "offset": 902 - }, - "end": { - "line": 48, - "column": 12, - "offset": 903 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 48, - "column": 5, - "offset": 896 - }, - "end": { - "line": 48, - "column": 13, - "offset": 904 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 48, - "column": 5, - "offset": 896 - }, - "end": { - "line": 48, - "column": 13, - "offset": 904 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 48, - "column": 1, - "offset": 892 - }, - "end": { - "line": 48, - "column": 13, - "offset": 904 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 43, - "column": 1, - "offset": 826 - }, - "end": { - "line": 48, - "column": 13, - "offset": 904 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "GFM:", - "position": { - "start": { - "line": 50, - "column": 3, - "offset": 908 - }, - "end": { - "line": 50, - "column": 7, - "offset": 912 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 50, - "column": 1, - "offset": 906 - }, - "end": { - "line": 50, - "column": 9, - "offset": 914 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 50, - "column": 1, - "offset": 906 - }, - "end": { - "line": 50, - "column": 9, - "offset": 914 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Colon should be escaped in URLs:", - "position": { - "start": { - "line": 52, - "column": 1, - "offset": 916 - }, - "end": { - "line": 52, - "column": 33, - "offset": 948 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 52, - "column": 1, - "offset": 916 - }, - "end": { - "line": 52, - "column": 33, - "offset": 948 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "http\\://user:password@host:port/path?key=value#fragment", - "position": { - "start": { - "line": 54, - "column": 5, - "offset": 954 - }, - "end": { - "line": 54, - "column": 60, - "offset": 1009 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 54, - "column": 5, - "offset": 954 - }, - "end": { - "line": 54, - "column": 60, - "offset": 1009 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 54, - "column": 1, - "offset": 950 - }, - "end": { - "line": 54, - "column": 60, - "offset": 1009 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "https\\://user:password@host:port/path?key=value#fragment", - "position": { - "start": { - "line": 55, - "column": 5, - "offset": 1014 - }, - "end": { - "line": 55, - "column": 61, - "offset": 1070 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 55, - "column": 5, - "offset": 1014 - }, - "end": { - "line": 55, - "column": 61, - "offset": 1070 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 55, - "column": 1, - "offset": 1010 - }, - "end": { - "line": 55, - "column": 61, - "offset": 1070 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "http", - "position": { - "start": { - "line": 56, - "column": 5, - "offset": 1075 - }, - "end": { - "line": 56, - "column": 9, - "offset": 1079 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ":", - "position": { - "start": { - "line": 56, - "column": 9, - "offset": 1079 - }, - "end": { - "line": 56, - "column": 16, - "offset": 1086 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "//user:password@host:port/path?key=value#fragment", - "position": { - "start": { - "line": 56, - "column": 16, - "offset": 1086 - }, - "end": { - "line": 56, - "column": 65, - "offset": 1135 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 56, - "column": 5, - "offset": 1075 - }, - "end": { - "line": 56, - "column": 65, - "offset": 1135 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 56, - "column": 1, - "offset": 1071 - }, - "end": { - "line": 56, - "column": 65, - "offset": 1135 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "https", - "position": { - "start": { - "line": 57, - "column": 5, - "offset": 1140 - }, - "end": { - "line": 57, - "column": 10, - "offset": 1145 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ":", - "position": { - "start": { - "line": 57, - "column": 10, - "offset": 1145 - }, - "end": { - "line": 57, - "column": 17, - "offset": 1152 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "//user:password@host:port/path?key=value#fragment", - "position": { - "start": { - "line": 57, - "column": 17, - "offset": 1152 - }, - "end": { - "line": 57, - "column": 66, - "offset": 1201 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 57, - "column": 5, - "offset": 1140 - }, - "end": { - "line": 57, - "column": 66, - "offset": 1201 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 57, - "column": 1, - "offset": 1136 - }, - "end": { - "line": 57, - "column": 66, - "offset": 1201 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 54, - "column": 1, - "offset": 950 - }, - "end": { - "line": 57, - "column": 66, - "offset": 1201 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Double tildes should be ", - "position": { - "start": { - "line": 59, - "column": 1, - "offset": 1203 - }, - "end": { - "line": 59, - "column": 25, - "offset": 1227 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "~", - "position": { - "start": { - "line": 59, - "column": 25, - "offset": 1227 - }, - "end": { - "line": 59, - "column": 27, - "offset": 1229 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "~escaped", - "position": { - "start": { - "line": 59, - "column": 27, - "offset": 1229 - }, - "end": { - "line": 59, - "column": 35, - "offset": 1237 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "~", - "position": { - "start": { - "line": 59, - "column": 35, - "offset": 1237 - }, - "end": { - "line": 59, - "column": 37, - "offset": 1239 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "~.\nAnd here: foo~~.", - "position": { - "start": { - "line": 59, - "column": 37, - "offset": 1239 - }, - "end": { - "line": 60, - "column": 17, - "offset": 1258 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 59, - "column": 1, - "offset": 1203 - }, - "end": { - "line": 60, - "column": 17, - "offset": 1258 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Pipes should not be escaped here: |", - "position": { - "start": { - "line": 62, - "column": 1, - "offset": 1260 - }, - "end": { - "line": 62, - "column": 36, - "offset": 1295 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 62, - "column": 1, - "offset": 1260 - }, - "end": { - "line": 62, - "column": 36, - "offset": 1295 - }, - "indent": [] - } - }, - { - "type": "table", - "align": [ - null, - null - ], - "children": [ - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "here", - "position": { - "start": { - "line": 64, - "column": 3, - "offset": 1299 - }, - "end": { - "line": 64, - "column": 7, - "offset": 1303 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 64, - "column": 3, - "offset": 1299 - }, - "end": { - "line": 64, - "column": 9, - "offset": 1305 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "they", - "position": { - "start": { - "line": 64, - "column": 12, - "offset": 1308 - }, - "end": { - "line": 64, - "column": 16, - "offset": 1312 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 64, - "column": 12, - "offset": 1308 - }, - "end": { - "line": 64, - "column": 20, - "offset": 1316 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 64, - "column": 1, - "offset": 1297 - }, - "end": { - "line": 64, - "column": 22, - "offset": 1318 - }, - "indent": [] - } - }, - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "should", - "position": { - "start": { - "line": 66, - "column": 3, - "offset": 1343 - }, - "end": { - "line": 66, - "column": 9, - "offset": 1349 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 66, - "column": 3, - "offset": 1343 - }, - "end": { - "line": 66, - "column": 9, - "offset": 1349 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "tho", - "position": { - "start": { - "line": 66, - "column": 12, - "offset": 1352 - }, - "end": { - "line": 66, - "column": 15, - "offset": 1355 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "|", - "position": { - "start": { - "line": 66, - "column": 15, - "offset": 1355 - }, - "end": { - "line": 66, - "column": 17, - "offset": 1357 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "ugh", - "position": { - "start": { - "line": 66, - "column": 17, - "offset": 1357 - }, - "end": { - "line": 66, - "column": 20, - "offset": 1360 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 66, - "column": 12, - "offset": 1352 - }, - "end": { - "line": 66, - "column": 20, - "offset": 1360 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 66, - "column": 1, - "offset": 1341 - }, - "end": { - "line": 66, - "column": 22, - "offset": 1362 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 64, - "column": 1, - "offset": 1297 - }, - "end": { - "line": 66, - "column": 22, - "offset": 1362 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And here:", - "position": { - "start": { - "line": 68, - "column": 1, - "offset": 1364 - }, - "end": { - "line": 68, - "column": 10, - "offset": 1373 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 68, - "column": 1, - "offset": 1364 - }, - "end": { - "line": 68, - "column": 10, - "offset": 1373 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "| here | they |\n", - "position": { - "start": { - "line": 70, - "column": 1, - "offset": 1375 - }, - "end": { - "line": 71, - "column": 1, - "offset": 1395 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "|", - "position": { - "start": { - "line": 71, - "column": 1, - "offset": 1395 - }, - "end": { - "line": 71, - "column": 3, - "offset": 1397 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ---- ", - "position": { - "start": { - "line": 71, - "column": 3, - "offset": 1397 - }, - "end": { - "line": 71, - "column": 9, - "offset": 1403 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "|", - "position": { - "start": { - "line": 71, - "column": 9, - "offset": 1403 - }, - "end": { - "line": 71, - "column": 11, - "offset": 1405 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ----- ", - "position": { - "start": { - "line": 71, - "column": 11, - "offset": 1405 - }, - "end": { - "line": 71, - "column": 18, - "offset": 1412 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "|", - "position": { - "start": { - "line": 71, - "column": 18, - "offset": 1412 - }, - "end": { - "line": 71, - "column": 20, - "offset": 1414 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\n| should | though |", - "position": { - "start": { - "line": 71, - "column": 20, - "offset": 1414 - }, - "end": { - "line": 72, - "column": 20, - "offset": 1434 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 70, - "column": 1, - "offset": 1375 - }, - "end": { - "line": 72, - "column": 20, - "offset": 1434 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "And here:", - "position": { - "start": { - "line": 74, - "column": 1, - "offset": 1436 - }, - "end": { - "line": 74, - "column": 10, - "offset": 1445 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 74, - "column": 1, - "offset": 1436 - }, - "end": { - "line": 74, - "column": 10, - "offset": 1445 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "here | they\n", - "position": { - "start": { - "line": 76, - "column": 1, - "offset": 1447 - }, - "end": { - "line": 77, - "column": 1, - "offset": 1461 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "-", - "position": { - "start": { - "line": 77, - "column": 1, - "offset": 1461 - }, - "end": { - "line": 77, - "column": 3, - "offset": 1463 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "--- ", - "position": { - "start": { - "line": 77, - "column": 3, - "offset": 1463 - }, - "end": { - "line": 77, - "column": 7, - "offset": 1467 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "|", - "position": { - "start": { - "line": 77, - "column": 7, - "offset": 1467 - }, - "end": { - "line": 77, - "column": 9, - "offset": 1469 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ------\nshould | though", - "position": { - "start": { - "line": 77, - "column": 9, - "offset": 1469 - }, - "end": { - "line": 78, - "column": 16, - "offset": 1492 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 76, - "column": 1, - "offset": 1447 - }, - "end": { - "line": 78, - "column": 16, - "offset": 1492 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "Commonmark:", - "position": { - "start": { - "line": 80, - "column": 3, - "offset": 1496 - }, - "end": { - "line": 80, - "column": 14, - "offset": 1507 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 80, - "column": 1, - "offset": 1494 - }, - "end": { - "line": 80, - "column": 16, - "offset": 1509 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 80, - "column": 1, - "offset": 1494 - }, - "end": { - "line": 80, - "column": 16, - "offset": 1509 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Open angle bracket should be escaped:", - "position": { - "start": { - "line": 82, - "column": 1, - "offset": 1511 - }, - "end": { - "line": 82, - "column": 38, - "offset": 1548 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 82, - "column": 1, - "offset": 1511 - }, - "end": { - "line": 82, - "column": 38, - "offset": 1548 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "\\", - "position": { - "start": { - "line": 84, - "column": 5, - "offset": 1554 - }, - "end": { - "line": 84, - "column": 6, - "offset": 1555 - }, - "indent": [] - } - }, - { - "type": "html", - "value": "
", - "position": { - "start": { - "line": 84, - "column": 6, - "offset": 1555 - }, - "end": { - "line": 84, - "column": 11, - "offset": 1560 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\\", - "position": { - "start": { - "line": 84, - "column": 11, - "offset": 1560 - }, - "end": { - "line": 84, - "column": 12, - "offset": 1561 - }, - "indent": [] - } - }, - { - "type": "html", - "value": "
", - "position": { - "start": { - "line": 84, - "column": 12, - "offset": 1561 - }, - "end": { - "line": 84, - "column": 18, - "offset": 1567 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 84, - "column": 5, - "offset": 1554 - }, - "end": { - "line": 84, - "column": 18, - "offset": 1567 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 84, - "column": 1, - "offset": 1550 - }, - "end": { - "line": 84, - "column": 18, - "offset": 1567 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "\\", - "position": { - "start": { - "line": 85, - "column": 5, - "offset": 1572 - }, - "end": { - "line": 85, - "column": 24, - "offset": 1591 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 85, - "column": 5, - "offset": 1572 - }, - "end": { - "line": 85, - "column": 24, - "offset": 1591 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 85, - "column": 1, - "offset": 1568 - }, - "end": { - "line": 85, - "column": 24, - "offset": 1591 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "<", - "position": { - "start": { - "line": 86, - "column": 5, - "offset": 1596 - }, - "end": { - "line": 86, - "column": 9, - "offset": 1600 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "div>", - "position": { - "start": { - "line": 86, - "column": 9, - "offset": 1600 - }, - "end": { - "line": 86, - "column": 13, - "offset": 1604 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "<", - "position": { - "start": { - "line": 86, - "column": 13, - "offset": 1604 - }, - "end": { - "line": 86, - "column": 17, - "offset": 1608 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "/div>", - "position": { - "start": { - "line": 86, - "column": 17, - "offset": 1608 - }, - "end": { - "line": 86, - "column": 22, - "offset": 1613 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 86, - "column": 5, - "offset": 1596 - }, - "end": { - "line": 86, - "column": 22, - "offset": 1613 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 86, - "column": 1, - "offset": 1592 - }, - "end": { - "line": 86, - "column": 22, - "offset": 1613 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "<", - "position": { - "start": { - "line": 87, - "column": 5, - "offset": 1618 - }, - "end": { - "line": 87, - "column": 9, - "offset": 1622 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "http", - "position": { - "start": { - "line": 87, - "column": 9, - "offset": 1622 - }, - "end": { - "line": 87, - "column": 13, - "offset": 1626 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ":", - "position": { - "start": { - "line": 87, - "column": 13, - "offset": 1626 - }, - "end": { - "line": 87, - "column": 20, - "offset": 1633 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "google.com>", - "position": { - "start": { - "line": 87, - "column": 20, - "offset": 1633 - }, - "end": { - "line": 87, - "column": 31, - "offset": 1644 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 87, - "column": 5, - "offset": 1618 - }, - "end": { - "line": 87, - "column": 31, - "offset": 1644 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 87, - "column": 1, - "offset": 1614 - }, - "end": { - "line": 87, - "column": 31, - "offset": 1644 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 84, - "column": 1, - "offset": 1550 - }, - "end": { - "line": 87, - "column": 31, - "offset": 1644 - }, - "indent": [ - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 88, - "column": 1, - "offset": 1645 - } - } -} diff --git a/test/fixtures/tree/strong-and-em-together-one.json b/test/fixtures/tree/strong-and-em-together-one.json index 888d7d922..6f589f98b 100644 --- a/test/fixtures/tree/strong-and-em-together-one.json +++ b/test/fixtures/tree/strong-and-em-together-one.json @@ -5,10 +5,10 @@ "type": "paragraph", "children": [ { - "type": "strong", + "type": "emphasis", "children": [ { - "type": "emphasis", + "type": "strong", "children": [ { "type": "text", @@ -23,23 +23,21 @@ "line": 1, "column": 26, "offset": 25 - }, - "indent": [] + } } } ], "position": { "start": { "line": 1, - "column": 3, - "offset": 2 + "column": 2, + "offset": 1 }, "end": { "line": 1, - "column": 27, - "offset": 26 - }, - "indent": [] + "column": 28, + "offset": 27 + } } } ], @@ -53,8 +51,7 @@ "line": 1, "column": 29, "offset": 28 - }, - "indent": [] + } } } ], @@ -68,8 +65,7 @@ "line": 1, "column": 29, "offset": 28 - }, - "indent": [] + } } }, { @@ -88,15 +84,14 @@ "line": 3, "column": 7, "offset": 36 - }, - "indent": [] + } } }, { - "type": "strong", + "type": "emphasis", "children": [ { - "type": "emphasis", + "type": "strong", "children": [ { "type": "text", @@ -111,23 +106,21 @@ "line": 3, "column": 14, "offset": 43 - }, - "indent": [] + } } } ], "position": { "start": { "line": 3, - "column": 9, - "offset": 38 + "column": 8, + "offset": 37 }, "end": { "line": 3, - "column": 15, - "offset": 44 - }, - "indent": [] + "column": 16, + "offset": 45 + } } } ], @@ -141,8 +134,7 @@ "line": 3, "column": 17, "offset": 46 - }, - "indent": [] + } } }, { @@ -158,8 +150,7 @@ "line": 3, "column": 23, "offset": 52 - }, - "indent": [] + } } } ], @@ -173,18 +164,17 @@ "line": 3, "column": 23, "offset": 52 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "strong", + "type": "emphasis", "children": [ { - "type": "emphasis", + "type": "strong", "children": [ { "type": "text", @@ -199,23 +189,21 @@ "line": 5, "column": 26, "offset": 79 - }, - "indent": [] + } } } ], "position": { "start": { "line": 5, - "column": 3, - "offset": 56 + "column": 2, + "offset": 55 }, "end": { "line": 5, - "column": 27, - "offset": 80 - }, - "indent": [] + "column": 28, + "offset": 81 + } } } ], @@ -229,8 +217,7 @@ "line": 5, "column": 29, "offset": 82 - }, - "indent": [] + } } } ], @@ -244,8 +231,7 @@ "line": 5, "column": 29, "offset": 82 - }, - "indent": [] + } } }, { @@ -264,15 +250,14 @@ "line": 7, "column": 7, "offset": 90 - }, - "indent": [] + } } }, { - "type": "strong", + "type": "emphasis", "children": [ { - "type": "emphasis", + "type": "strong", "children": [ { "type": "text", @@ -287,23 +272,21 @@ "line": 7, "column": 14, "offset": 97 - }, - "indent": [] + } } } ], "position": { "start": { "line": 7, - "column": 9, - "offset": 92 + "column": 8, + "offset": 91 }, "end": { "line": 7, - "column": 15, - "offset": 98 - }, - "indent": [] + "column": 16, + "offset": 99 + } } } ], @@ -317,8 +300,7 @@ "line": 7, "column": 17, "offset": 100 - }, - "indent": [] + } } }, { @@ -334,8 +316,7 @@ "line": 7, "column": 23, "offset": 106 - }, - "indent": [] + } } } ], @@ -349,8 +330,7 @@ "line": 7, "column": 23, "offset": 106 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/strong-and-em-together-two.nooutput.json b/test/fixtures/tree/strong-and-em-together-two.nooutput.json index 1f5c872eb..767c4cb2c 100644 --- a/test/fixtures/tree/strong-and-em-together-two.nooutput.json +++ b/test/fixtures/tree/strong-and-em-together-two.nooutput.json @@ -17,8 +17,7 @@ "line": 1, "column": 25, "offset": 24 - }, - "indent": [] + } } } ], @@ -32,8 +31,7 @@ "line": 1, "column": 25, "offset": 24 - }, - "indent": [] + } } }, { @@ -52,8 +50,7 @@ "line": 3, "column": 38, "offset": 63 - }, - "indent": [] + } } } ], @@ -67,8 +64,7 @@ "line": 3, "column": 38, "offset": 63 - }, - "indent": [] + } } }, { @@ -87,8 +83,7 @@ "line": 5, "column": 8, "offset": 72 - }, - "indent": [] + } } }, { @@ -107,8 +102,7 @@ "line": 5, "column": 20, "offset": 84 - }, - "indent": [] + } } } ], @@ -122,8 +116,7 @@ "line": 5, "column": 21, "offset": 85 - }, - "indent": [] + } } }, { @@ -139,8 +132,7 @@ "line": 5, "column": 25, "offset": 89 - }, - "indent": [] + } } } ], @@ -154,8 +146,7 @@ "line": 5, "column": 25, "offset": 89 - }, - "indent": [] + } } }, { @@ -174,8 +165,7 @@ "line": 7, "column": 3, "offset": 93 - }, - "indent": [] + } } }, { @@ -194,8 +184,7 @@ "line": 7, "column": 8, "offset": 98 - }, - "indent": [] + } } } ], @@ -209,8 +198,7 @@ "line": 7, "column": 9, "offset": 99 - }, - "indent": [] + } } }, { @@ -226,8 +214,7 @@ "line": 7, "column": 12, "offset": 102 - }, - "indent": [] + } } }, { @@ -246,8 +233,7 @@ "line": 7, "column": 15, "offset": 105 - }, - "indent": [] + } } } ], @@ -261,8 +247,7 @@ "line": 7, "column": 16, "offset": 106 - }, - "indent": [] + } } }, { @@ -278,8 +263,7 @@ "line": 7, "column": 20, "offset": 110 - }, - "indent": [] + } } }, { @@ -298,8 +282,7 @@ "line": 7, "column": 24, "offset": 114 - }, - "indent": [] + } } } ], @@ -313,8 +296,7 @@ "line": 7, "column": 25, "offset": 115 - }, - "indent": [] + } } }, { @@ -330,8 +312,7 @@ "line": 7, "column": 38, "offset": 128 - }, - "indent": [] + } } } ], @@ -345,8 +326,7 @@ "line": 7, "column": 38, "offset": 128 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/strong-and-em-together-two.nooutput.pedantic.json b/test/fixtures/tree/strong-and-em-together-two.nooutput.pedantic.json deleted file mode 100644 index df9404d7f..000000000 --- a/test/fixtures/tree/strong-and-em-together-two.nooutput.pedantic.json +++ /dev/null @@ -1,573 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "perform", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 8, - "offset": 7 - }, - "indent": [] - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "complicated", - "position": { - "start": { - "line": 1, - "column": 9, - "offset": 8 - }, - "end": { - "line": 1, - "column": 20, - "offset": 19 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 8, - "offset": 7 - }, - "end": { - "line": 1, - "column": 21, - "offset": 20 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "task", - "position": { - "start": { - "line": 1, - "column": 21, - "offset": 20 - }, - "end": { - "line": 1, - "column": 25, - "offset": 24 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 25, - "offset": 24 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "do", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 26 - }, - "end": { - "line": 3, - "column": 3, - "offset": 28 - }, - "indent": [] - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "this", - "position": { - "start": { - "line": 3, - "column": 4, - "offset": 29 - }, - "end": { - "line": 3, - "column": 8, - "offset": 33 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 28 - }, - "end": { - "line": 3, - "column": 9, - "offset": 34 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "and", - "position": { - "start": { - "line": 3, - "column": 9, - "offset": 34 - }, - "end": { - "line": 3, - "column": 12, - "offset": 37 - }, - "indent": [] - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "do", - "position": { - "start": { - "line": 3, - "column": 13, - "offset": 38 - }, - "end": { - "line": 3, - "column": 15, - "offset": 40 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 12, - "offset": 37 - }, - "end": { - "line": 3, - "column": 16, - "offset": 41 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "that", - "position": { - "start": { - "line": 3, - "column": 16, - "offset": 41 - }, - "end": { - "line": 3, - "column": 20, - "offset": 45 - }, - "indent": [] - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "and", - "position": { - "start": { - "line": 3, - "column": 21, - "offset": 46 - }, - "end": { - "line": 3, - "column": 24, - "offset": 49 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 20, - "offset": 45 - }, - "end": { - "line": 3, - "column": 25, - "offset": 50 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "another_thing", - "position": { - "start": { - "line": 3, - "column": 25, - "offset": 50 - }, - "end": { - "line": 3, - "column": 38, - "offset": 63 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 26 - }, - "end": { - "line": 3, - "column": 38, - "offset": 63 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "perform", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 65 - }, - "end": { - "line": 5, - "column": 8, - "offset": 72 - }, - "indent": [] - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "complicated", - "position": { - "start": { - "line": 5, - "column": 9, - "offset": 73 - }, - "end": { - "line": 5, - "column": 20, - "offset": 84 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 8, - "offset": 72 - }, - "end": { - "line": 5, - "column": 21, - "offset": 85 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "task", - "position": { - "start": { - "line": 5, - "column": 21, - "offset": 85 - }, - "end": { - "line": 5, - "column": 25, - "offset": 89 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 65 - }, - "end": { - "line": 5, - "column": 25, - "offset": 89 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "do", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 91 - }, - "end": { - "line": 7, - "column": 3, - "offset": 93 - }, - "indent": [] - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "this", - "position": { - "start": { - "line": 7, - "column": 4, - "offset": 94 - }, - "end": { - "line": 7, - "column": 8, - "offset": 98 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 3, - "offset": 93 - }, - "end": { - "line": 7, - "column": 9, - "offset": 99 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "and", - "position": { - "start": { - "line": 7, - "column": 9, - "offset": 99 - }, - "end": { - "line": 7, - "column": 12, - "offset": 102 - }, - "indent": [] - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "do", - "position": { - "start": { - "line": 7, - "column": 13, - "offset": 103 - }, - "end": { - "line": 7, - "column": 15, - "offset": 105 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 12, - "offset": 102 - }, - "end": { - "line": 7, - "column": 16, - "offset": 106 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "that", - "position": { - "start": { - "line": 7, - "column": 16, - "offset": 106 - }, - "end": { - "line": 7, - "column": 20, - "offset": 110 - }, - "indent": [] - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "and", - "position": { - "start": { - "line": 7, - "column": 21, - "offset": 111 - }, - "end": { - "line": 7, - "column": 24, - "offset": 114 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 20, - "offset": 110 - }, - "end": { - "line": 7, - "column": 25, - "offset": 115 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "another*thing", - "position": { - "start": { - "line": 7, - "column": 25, - "offset": 115 - }, - "end": { - "line": 7, - "column": 38, - "offset": 128 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 91 - }, - "end": { - "line": 7, - "column": 38, - "offset": 128 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 8, - "column": 1, - "offset": 129 - } - } -} diff --git a/test/fixtures/tree/strong-emphasis.json b/test/fixtures/tree/strong-emphasis.json index cff41ff84..ce71b0352 100644 --- a/test/fixtures/tree/strong-emphasis.json +++ b/test/fixtures/tree/strong-emphasis.json @@ -17,8 +17,7 @@ "line": 1, "column": 5, "offset": 4 - }, - "indent": [] + } } }, { @@ -37,8 +36,7 @@ "line": 1, "column": 10, "offset": 9 - }, - "indent": [] + } } } ], @@ -52,8 +50,7 @@ "line": 1, "column": 12, "offset": 11 - }, - "indent": [] + } } }, { @@ -69,8 +66,7 @@ "line": 1, "column": 13, "offset": 12 - }, - "indent": [] + } } }, { @@ -89,8 +85,7 @@ "line": 1, "column": 18, "offset": 17 - }, - "indent": [] + } } } ], @@ -104,8 +99,7 @@ "line": 1, "column": 20, "offset": 19 - }, - "indent": [] + } } }, { @@ -121,8 +115,7 @@ "line": 1, "column": 21, "offset": 20 - }, - "indent": [] + } } } ], @@ -136,8 +129,7 @@ "line": 1, "column": 21, "offset": 20 - }, - "indent": [] + } } }, { @@ -156,8 +148,7 @@ "line": 3, "column": 5, "offset": 26 - }, - "indent": [] + } } }, { @@ -176,8 +167,7 @@ "line": 3, "column": 10, "offset": 31 - }, - "indent": [] + } } } ], @@ -191,8 +181,7 @@ "line": 3, "column": 12, "offset": 33 - }, - "indent": [] + } } }, { @@ -208,8 +197,7 @@ "line": 3, "column": 13, "offset": 34 - }, - "indent": [] + } } }, { @@ -228,8 +216,7 @@ "line": 3, "column": 18, "offset": 39 - }, - "indent": [] + } } } ], @@ -243,8 +230,7 @@ "line": 3, "column": 20, "offset": 41 - }, - "indent": [] + } } }, { @@ -260,8 +246,7 @@ "line": 3, "column": 21, "offset": 42 - }, - "indent": [] + } } } ], @@ -275,8 +260,7 @@ "line": 3, "column": 21, "offset": 42 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/strong-initial-white-space.commonmark.json b/test/fixtures/tree/strong-initial-white-space.commonmark.json deleted file mode 100644 index 617ca52fb..000000000 --- a/test/fixtures/tree/strong-initial-white-space.commonmark.json +++ /dev/null @@ -1,157 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": " bar ", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 8, - "offset": 7 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 10, - "offset": 9 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 10, - "offset": 9 - }, - "end": { - "line": 1, - "column": 11, - "offset": 10 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 11, - "offset": 10 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": " bar ", - "position": { - "start": { - "line": 4, - "column": 3, - "offset": 15 - }, - "end": { - "line": 4, - "column": 8, - "offset": 20 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 13 - }, - "end": { - "line": 4, - "column": 10, - "offset": 22 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 4, - "column": 10, - "offset": 22 - }, - "end": { - "line": 4, - "column": 11, - "offset": 23 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 13 - }, - "end": { - "line": 4, - "column": 11, - "offset": 23 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 4, - "column": 11, - "offset": 23 - } - } -} diff --git a/test/fixtures/tree/strong-initial-white-space.json b/test/fixtures/tree/strong-initial-white-space.json index 617ca52fb..c798cf679 100644 --- a/test/fixtures/tree/strong-initial-white-space.json +++ b/test/fixtures/tree/strong-initial-white-space.json @@ -5,55 +5,19 @@ "type": "paragraph", "children": [ { - "type": "strong", - "children": [ - { - "type": "text", - "value": " bar ", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 8, - "offset": 7 - }, - "indent": [] - } - } - ], + "type": "text", + "value": "** bar **.", "position": { "start": { "line": 1, "column": 1, "offset": 0 }, - "end": { - "line": 1, - "column": 10, - "offset": 9 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 1, - "column": 10, - "offset": 9 - }, "end": { "line": 1, "column": 11, "offset": 10 - }, - "indent": [] + } } } ], @@ -67,63 +31,26 @@ "line": 1, "column": 11, "offset": 10 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "strong", - "children": [ - { - "type": "text", - "value": " bar ", - "position": { - "start": { - "line": 4, - "column": 3, - "offset": 15 - }, - "end": { - "line": 4, - "column": 8, - "offset": 20 - }, - "indent": [] - } - } - ], + "type": "text", + "value": "__ bar __.", "position": { "start": { "line": 4, "column": 1, "offset": 13 }, - "end": { - "line": 4, - "column": 10, - "offset": 22 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ".", - "position": { - "start": { - "line": 4, - "column": 10, - "offset": 22 - }, "end": { "line": 4, "column": 11, "offset": 23 - }, - "indent": [] + } } } ], @@ -137,8 +64,7 @@ "line": 4, "column": 11, "offset": 23 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/strong-initial-white-space.pedantic.json b/test/fixtures/tree/strong-initial-white-space.pedantic.json deleted file mode 100644 index 64ec8a209..000000000 --- a/test/fixtures/tree/strong-initial-white-space.pedantic.json +++ /dev/null @@ -1,87 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "** bar **.", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 11, - "offset": 10 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 11, - "offset": 10 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "__ bar __.", - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 13 - }, - "end": { - "line": 4, - "column": 11, - "offset": 23 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 13 - }, - "end": { - "line": 4, - "column": 11, - "offset": 23 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 4, - "column": 11, - "offset": 23 - } - } -} diff --git a/test/fixtures/tree/table-cell-padding.output.json b/test/fixtures/tree/table-cell-padding.output.json deleted file mode 100644 index 6a932d391..000000000 --- a/test/fixtures/tree/table-cell-padding.output.json +++ /dev/null @@ -1,307 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "table", - "align": [ - null, - "right" - ], - "children": [ - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Header 1", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 11, - "offset": 10 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 11, - "offset": 10 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Header 2", - "position": { - "start": { - "line": 1, - "column": 14, - "offset": 13 - }, - "end": { - "line": 1, - "column": 22, - "offset": 21 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 14, - "offset": 13 - }, - "end": { - "line": 1, - "column": 22, - "offset": 21 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 24, - "offset": 23 - }, - "indent": [] - } - }, - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Cell 1", - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 50 - }, - "end": { - "line": 3, - "column": 9, - "offset": 56 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 50 - }, - "end": { - "line": 3, - "column": 11, - "offset": 58 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Cell 2", - "position": { - "start": { - "line": 3, - "column": 16, - "offset": 63 - }, - "end": { - "line": 3, - "column": 22, - "offset": 69 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 16, - "offset": 63 - }, - "end": { - "line": 3, - "column": 22, - "offset": 69 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 48 - }, - "end": { - "line": 3, - "column": 24, - "offset": 71 - }, - "indent": [] - } - }, - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Cell 3", - "position": { - "start": { - "line": 4, - "column": 3, - "offset": 74 - }, - "end": { - "line": 4, - "column": 9, - "offset": 80 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 3, - "offset": 74 - }, - "end": { - "line": 4, - "column": 11, - "offset": 82 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Cell 4", - "position": { - "start": { - "line": 4, - "column": 16, - "offset": 87 - }, - "end": { - "line": 4, - "column": 22, - "offset": 93 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 16, - "offset": 87 - }, - "end": { - "line": 4, - "column": 22, - "offset": 93 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 72 - }, - "end": { - "line": 4, - "column": 24, - "offset": 95 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 4, - "column": 24, - "offset": 95 - }, - "indent": [ - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 5, - "column": 1, - "offset": 96 - } - } -} diff --git a/test/fixtures/tree/table-cell-padding.output.notable-cell-padding.json b/test/fixtures/tree/table-cell-padding.output.notable-cell-padding.json deleted file mode 100644 index 7447e08ca..000000000 --- a/test/fixtures/tree/table-cell-padding.output.notable-cell-padding.json +++ /dev/null @@ -1,307 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "table", - "align": [ - null, - "right" - ], - "children": [ - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Header 1", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 10, - "offset": 9 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 10, - "offset": 9 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Header 2", - "position": { - "start": { - "line": 1, - "column": 11, - "offset": 10 - }, - "end": { - "line": 1, - "column": 19, - "offset": 18 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 11, - "offset": 10 - }, - "end": { - "line": 1, - "column": 19, - "offset": 18 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 20, - "offset": 19 - }, - "indent": [] - } - }, - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Cell 1", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 41 - }, - "end": { - "line": 3, - "column": 8, - "offset": 47 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 41 - }, - "end": { - "line": 3, - "column": 9, - "offset": 48 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Cell 2", - "position": { - "start": { - "line": 3, - "column": 13, - "offset": 52 - }, - "end": { - "line": 3, - "column": 19, - "offset": 58 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 13, - "offset": 52 - }, - "end": { - "line": 3, - "column": 19, - "offset": 58 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 40 - }, - "end": { - "line": 3, - "column": 20, - "offset": 59 - }, - "indent": [] - } - }, - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Cell 3", - "position": { - "start": { - "line": 4, - "column": 2, - "offset": 61 - }, - "end": { - "line": 4, - "column": 8, - "offset": 67 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 2, - "offset": 61 - }, - "end": { - "line": 4, - "column": 9, - "offset": 68 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Cell 4", - "position": { - "start": { - "line": 4, - "column": 13, - "offset": 72 - }, - "end": { - "line": 4, - "column": 19, - "offset": 78 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 13, - "offset": 72 - }, - "end": { - "line": 4, - "column": 19, - "offset": 78 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 60 - }, - "end": { - "line": 4, - "column": 20, - "offset": 79 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 4, - "column": 20, - "offset": 79 - }, - "indent": [ - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 5, - "column": 1, - "offset": 80 - } - } -} diff --git a/test/fixtures/tree/table-empty-initial-cell.json b/test/fixtures/tree/table-empty-initial-cell.json deleted file mode 100644 index ac70730d8..000000000 --- a/test/fixtures/tree/table-empty-initial-cell.json +++ /dev/null @@ -1,395 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "table", - "align": [ - null, - "center", - "left" - ], - "children": [ - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [], - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 3, - "offset": 2 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "a", - "position": { - "start": { - "line": 1, - "column": 5, - "offset": 4 - }, - "end": { - "line": 1, - "column": 6, - "offset": 5 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 5, - "offset": 4 - }, - "end": { - "line": 1, - "column": 6, - "offset": 5 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "c", - "position": { - "start": { - "line": 1, - "column": 7, - "offset": 6 - }, - "end": { - "line": 1, - "column": 8, - "offset": 7 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 7, - "offset": 6 - }, - "end": { - "line": 1, - "column": 8, - "offset": 7 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 9, - "offset": 8 - }, - "indent": [] - } - }, - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "a", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 27 - }, - "end": { - "line": 3, - "column": 3, - "offset": 28 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 27 - }, - "end": { - "line": 3, - "column": 3, - "offset": 28 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "b", - "position": { - "start": { - "line": 3, - "column": 4, - "offset": 29 - }, - "end": { - "line": 3, - "column": 5, - "offset": 30 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 4, - "offset": 29 - }, - "end": { - "line": 3, - "column": 5, - "offset": 30 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "c", - "position": { - "start": { - "line": 3, - "column": 6, - "offset": 31 - }, - "end": { - "line": 3, - "column": 7, - "offset": 32 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 6, - "offset": 31 - }, - "end": { - "line": 3, - "column": 7, - "offset": 32 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 26 - }, - "end": { - "line": 3, - "column": 8, - "offset": 33 - }, - "indent": [] - } - }, - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "a", - "position": { - "start": { - "line": 4, - "column": 2, - "offset": 35 - }, - "end": { - "line": 4, - "column": 3, - "offset": 36 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 2, - "offset": 35 - }, - "end": { - "line": 4, - "column": 3, - "offset": 36 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "b", - "position": { - "start": { - "line": 4, - "column": 4, - "offset": 37 - }, - "end": { - "line": 4, - "column": 5, - "offset": 38 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 4, - "offset": 37 - }, - "end": { - "line": 4, - "column": 5, - "offset": 38 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "c", - "position": { - "start": { - "line": 4, - "column": 6, - "offset": 39 - }, - "end": { - "line": 4, - "column": 7, - "offset": 40 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 6, - "offset": 39 - }, - "end": { - "line": 4, - "column": 7, - "offset": 40 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 34 - }, - "end": { - "line": 4, - "column": 8, - "offset": 41 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 4, - "column": 8, - "offset": 41 - }, - "indent": [ - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 5, - "column": 1, - "offset": 42 - } - } -} diff --git a/test/fixtures/tree/table-escaped-pipes.nooutput.commonmark.json b/test/fixtures/tree/table-escaped-pipes.nooutput.commonmark.json deleted file mode 100644 index 82d048855..000000000 --- a/test/fixtures/tree/table-escaped-pipes.nooutput.commonmark.json +++ /dev/null @@ -1,831 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "table", - "align": [ - null, - null, - null - ], - "children": [ - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "First", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 8, - "offset": 7 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 8, - "offset": 7 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Second", - "position": { - "start": { - "line": 1, - "column": 11, - "offset": 10 - }, - "end": { - "line": 1, - "column": 17, - "offset": 16 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 11, - "offset": 10 - }, - "end": { - "line": 1, - "column": 17, - "offset": 16 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "third", - "position": { - "start": { - "line": 1, - "column": 20, - "offset": 19 - }, - "end": { - "line": 1, - "column": 25, - "offset": 24 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 20, - "offset": 19 - }, - "end": { - "line": 1, - "column": 25, - "offset": 24 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 27, - "offset": 26 - }, - "indent": [] - } - }, - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "first", - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 56 - }, - "end": { - "line": 3, - "column": 8, - "offset": 61 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 56 - }, - "end": { - "line": 3, - "column": 8, - "offset": 61 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "second", - "position": { - "start": { - "line": 3, - "column": 11, - "offset": 64 - }, - "end": { - "line": 3, - "column": 17, - "offset": 70 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 11, - "offset": 64 - }, - "end": { - "line": 3, - "column": 17, - "offset": 70 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "third", - "position": { - "start": { - "line": 3, - "column": 20, - "offset": 73 - }, - "end": { - "line": 3, - "column": 25, - "offset": 78 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 20, - "offset": 73 - }, - "end": { - "line": 3, - "column": 25, - "offset": 78 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 54 - }, - "end": { - "line": 3, - "column": 27, - "offset": 80 - }, - "indent": [] - } - }, - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "first", - "position": { - "start": { - "line": 4, - "column": 3, - "offset": 83 - }, - "end": { - "line": 4, - "column": 8, - "offset": 88 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 3, - "offset": 83 - }, - "end": { - "line": 4, - "column": 8, - "offset": 88 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "second ", - "position": { - "start": { - "line": 4, - "column": 11, - "offset": 91 - }, - "end": { - "line": 4, - "column": 18, - "offset": 98 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "|", - "position": { - "start": { - "line": 4, - "column": 18, - "offset": 98 - }, - "end": { - "line": 4, - "column": 20, - "offset": 100 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " second", - "position": { - "start": { - "line": 4, - "column": 20, - "offset": 100 - }, - "end": { - "line": 4, - "column": 27, - "offset": 107 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 11, - "offset": 91 - }, - "end": { - "line": 4, - "column": 27, - "offset": 107 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "third ", - "position": { - "start": { - "line": 4, - "column": 30, - "offset": 110 - }, - "end": { - "line": 4, - "column": 36, - "offset": 116 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "|", - "position": { - "start": { - "line": 4, - "column": 36, - "offset": 116 - }, - "end": { - "line": 4, - "column": 38, - "offset": 118 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 30, - "offset": 110 - }, - "end": { - "line": 4, - "column": 38, - "offset": 118 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 81 - }, - "end": { - "line": 4, - "column": 38, - "offset": 118 - }, - "indent": [] - } - }, - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "first", - "position": { - "start": { - "line": 5, - "column": 3, - "offset": 121 - }, - "end": { - "line": 5, - "column": 8, - "offset": 126 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 3, - "offset": 121 - }, - "end": { - "line": 5, - "column": 8, - "offset": 126 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "second ", - "position": { - "start": { - "line": 5, - "column": 11, - "offset": 129 - }, - "end": { - "line": 5, - "column": 18, - "offset": 136 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\\", - "position": { - "start": { - "line": 5, - "column": 18, - "offset": 136 - }, - "end": { - "line": 5, - "column": 20, - "offset": 138 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 11, - "offset": 129 - }, - "end": { - "line": 5, - "column": 20, - "offset": 138 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "third ", - "position": { - "start": { - "line": 5, - "column": 22, - "offset": 140 - }, - "end": { - "line": 5, - "column": 28, - "offset": 146 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\\", - "position": { - "start": { - "line": 5, - "column": 28, - "offset": 146 - }, - "end": { - "line": 5, - "column": 30, - "offset": 148 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 22, - "offset": 140 - }, - "end": { - "line": 5, - "column": 30, - "offset": 148 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 119 - }, - "end": { - "line": 5, - "column": 31, - "offset": 149 - }, - "indent": [] - } - }, - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "first", - "position": { - "start": { - "line": 6, - "column": 3, - "offset": 152 - }, - "end": { - "line": 6, - "column": 8, - "offset": 157 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 3, - "offset": 152 - }, - "end": { - "line": 6, - "column": 8, - "offset": 157 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "second ", - "position": { - "start": { - "line": 6, - "column": 11, - "offset": 160 - }, - "end": { - "line": 6, - "column": 18, - "offset": 167 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\\", - "position": { - "start": { - "line": 6, - "column": 18, - "offset": 167 - }, - "end": { - "line": 6, - "column": 20, - "offset": 169 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "|", - "position": { - "start": { - "line": 6, - "column": 20, - "offset": 169 - }, - "end": { - "line": 6, - "column": 22, - "offset": 171 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " second", - "position": { - "start": { - "line": 6, - "column": 22, - "offset": 171 - }, - "end": { - "line": 6, - "column": 29, - "offset": 178 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 11, - "offset": 160 - }, - "end": { - "line": 6, - "column": 29, - "offset": 178 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "third ", - "position": { - "start": { - "line": 6, - "column": 32, - "offset": 181 - }, - "end": { - "line": 6, - "column": 38, - "offset": 187 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\\", - "position": { - "start": { - "line": 6, - "column": 38, - "offset": 187 - }, - "end": { - "line": 6, - "column": 40, - "offset": 189 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "|", - "position": { - "start": { - "line": 6, - "column": 40, - "offset": 189 - }, - "end": { - "line": 6, - "column": 42, - "offset": 191 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 32, - "offset": 181 - }, - "end": { - "line": 6, - "column": 42, - "offset": 191 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 150 - }, - "end": { - "line": 6, - "column": 42, - "offset": 191 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 6, - "column": 42, - "offset": 191 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 7, - "column": 1, - "offset": 192 - } - } -} diff --git a/test/fixtures/tree/table-escaped-pipes.nooutput.json b/test/fixtures/tree/table-escaped-pipes.nooutput.json deleted file mode 100644 index 82d048855..000000000 --- a/test/fixtures/tree/table-escaped-pipes.nooutput.json +++ /dev/null @@ -1,831 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "table", - "align": [ - null, - null, - null - ], - "children": [ - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "First", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 8, - "offset": 7 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 8, - "offset": 7 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Second", - "position": { - "start": { - "line": 1, - "column": 11, - "offset": 10 - }, - "end": { - "line": 1, - "column": 17, - "offset": 16 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 11, - "offset": 10 - }, - "end": { - "line": 1, - "column": 17, - "offset": 16 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "third", - "position": { - "start": { - "line": 1, - "column": 20, - "offset": 19 - }, - "end": { - "line": 1, - "column": 25, - "offset": 24 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 20, - "offset": 19 - }, - "end": { - "line": 1, - "column": 25, - "offset": 24 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 27, - "offset": 26 - }, - "indent": [] - } - }, - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "first", - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 56 - }, - "end": { - "line": 3, - "column": 8, - "offset": 61 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 56 - }, - "end": { - "line": 3, - "column": 8, - "offset": 61 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "second", - "position": { - "start": { - "line": 3, - "column": 11, - "offset": 64 - }, - "end": { - "line": 3, - "column": 17, - "offset": 70 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 11, - "offset": 64 - }, - "end": { - "line": 3, - "column": 17, - "offset": 70 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "third", - "position": { - "start": { - "line": 3, - "column": 20, - "offset": 73 - }, - "end": { - "line": 3, - "column": 25, - "offset": 78 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 20, - "offset": 73 - }, - "end": { - "line": 3, - "column": 25, - "offset": 78 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 54 - }, - "end": { - "line": 3, - "column": 27, - "offset": 80 - }, - "indent": [] - } - }, - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "first", - "position": { - "start": { - "line": 4, - "column": 3, - "offset": 83 - }, - "end": { - "line": 4, - "column": 8, - "offset": 88 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 3, - "offset": 83 - }, - "end": { - "line": 4, - "column": 8, - "offset": 88 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "second ", - "position": { - "start": { - "line": 4, - "column": 11, - "offset": 91 - }, - "end": { - "line": 4, - "column": 18, - "offset": 98 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "|", - "position": { - "start": { - "line": 4, - "column": 18, - "offset": 98 - }, - "end": { - "line": 4, - "column": 20, - "offset": 100 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " second", - "position": { - "start": { - "line": 4, - "column": 20, - "offset": 100 - }, - "end": { - "line": 4, - "column": 27, - "offset": 107 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 11, - "offset": 91 - }, - "end": { - "line": 4, - "column": 27, - "offset": 107 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "third ", - "position": { - "start": { - "line": 4, - "column": 30, - "offset": 110 - }, - "end": { - "line": 4, - "column": 36, - "offset": 116 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "|", - "position": { - "start": { - "line": 4, - "column": 36, - "offset": 116 - }, - "end": { - "line": 4, - "column": 38, - "offset": 118 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 30, - "offset": 110 - }, - "end": { - "line": 4, - "column": 38, - "offset": 118 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 81 - }, - "end": { - "line": 4, - "column": 38, - "offset": 118 - }, - "indent": [] - } - }, - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "first", - "position": { - "start": { - "line": 5, - "column": 3, - "offset": 121 - }, - "end": { - "line": 5, - "column": 8, - "offset": 126 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 3, - "offset": 121 - }, - "end": { - "line": 5, - "column": 8, - "offset": 126 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "second ", - "position": { - "start": { - "line": 5, - "column": 11, - "offset": 129 - }, - "end": { - "line": 5, - "column": 18, - "offset": 136 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\\", - "position": { - "start": { - "line": 5, - "column": 18, - "offset": 136 - }, - "end": { - "line": 5, - "column": 20, - "offset": 138 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 11, - "offset": 129 - }, - "end": { - "line": 5, - "column": 20, - "offset": 138 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "third ", - "position": { - "start": { - "line": 5, - "column": 22, - "offset": 140 - }, - "end": { - "line": 5, - "column": 28, - "offset": 146 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\\", - "position": { - "start": { - "line": 5, - "column": 28, - "offset": 146 - }, - "end": { - "line": 5, - "column": 30, - "offset": 148 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 22, - "offset": 140 - }, - "end": { - "line": 5, - "column": 30, - "offset": 148 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 119 - }, - "end": { - "line": 5, - "column": 31, - "offset": 149 - }, - "indent": [] - } - }, - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "first", - "position": { - "start": { - "line": 6, - "column": 3, - "offset": 152 - }, - "end": { - "line": 6, - "column": 8, - "offset": 157 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 3, - "offset": 152 - }, - "end": { - "line": 6, - "column": 8, - "offset": 157 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "second ", - "position": { - "start": { - "line": 6, - "column": 11, - "offset": 160 - }, - "end": { - "line": 6, - "column": 18, - "offset": 167 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\\", - "position": { - "start": { - "line": 6, - "column": 18, - "offset": 167 - }, - "end": { - "line": 6, - "column": 20, - "offset": 169 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "|", - "position": { - "start": { - "line": 6, - "column": 20, - "offset": 169 - }, - "end": { - "line": 6, - "column": 22, - "offset": 171 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " second", - "position": { - "start": { - "line": 6, - "column": 22, - "offset": 171 - }, - "end": { - "line": 6, - "column": 29, - "offset": 178 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 11, - "offset": 160 - }, - "end": { - "line": 6, - "column": 29, - "offset": 178 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "third ", - "position": { - "start": { - "line": 6, - "column": 32, - "offset": 181 - }, - "end": { - "line": 6, - "column": 38, - "offset": 187 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\\", - "position": { - "start": { - "line": 6, - "column": 38, - "offset": 187 - }, - "end": { - "line": 6, - "column": 40, - "offset": 189 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "|", - "position": { - "start": { - "line": 6, - "column": 40, - "offset": 189 - }, - "end": { - "line": 6, - "column": 42, - "offset": 191 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 32, - "offset": 181 - }, - "end": { - "line": 6, - "column": 42, - "offset": 191 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 150 - }, - "end": { - "line": 6, - "column": 42, - "offset": 191 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 6, - "column": 42, - "offset": 191 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 7, - "column": 1, - "offset": 192 - } - } -} diff --git a/test/fixtures/tree/table-escaped-pipes.nooutput.nogfm.commonmark.json b/test/fixtures/tree/table-escaped-pipes.nooutput.nogfm.commonmark.json deleted file mode 100644 index 8275a6a15..000000000 --- a/test/fixtures/tree/table-escaped-pipes.nooutput.nogfm.commonmark.json +++ /dev/null @@ -1,287 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "| First | Second | third |\n| ----- | ------ | ----- |\n| first | second | third |\n| first | second ", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 4, - "column": 18, - "offset": 98 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "text", - "value": "|", - "position": { - "start": { - "line": 4, - "column": 18, - "offset": 98 - }, - "end": { - "line": 4, - "column": 20, - "offset": 100 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " second | third ", - "position": { - "start": { - "line": 4, - "column": 20, - "offset": 100 - }, - "end": { - "line": 4, - "column": 36, - "offset": 116 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "|", - "position": { - "start": { - "line": 4, - "column": 36, - "offset": 116 - }, - "end": { - "line": 4, - "column": 38, - "offset": 118 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\n| first | second ", - "position": { - "start": { - "line": 4, - "column": 38, - "offset": 118 - }, - "end": { - "line": 5, - "column": 18, - "offset": 136 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "\\", - "position": { - "start": { - "line": 5, - "column": 18, - "offset": 136 - }, - "end": { - "line": 5, - "column": 20, - "offset": 138 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "| third ", - "position": { - "start": { - "line": 5, - "column": 20, - "offset": 138 - }, - "end": { - "line": 5, - "column": 28, - "offset": 146 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\\", - "position": { - "start": { - "line": 5, - "column": 28, - "offset": 146 - }, - "end": { - "line": 5, - "column": 30, - "offset": 148 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "|\n| first | second ", - "position": { - "start": { - "line": 5, - "column": 30, - "offset": 148 - }, - "end": { - "line": 6, - "column": 18, - "offset": 167 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "\\", - "position": { - "start": { - "line": 6, - "column": 18, - "offset": 167 - }, - "end": { - "line": 6, - "column": 20, - "offset": 169 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "|", - "position": { - "start": { - "line": 6, - "column": 20, - "offset": 169 - }, - "end": { - "line": 6, - "column": 22, - "offset": 171 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " second | third ", - "position": { - "start": { - "line": 6, - "column": 22, - "offset": 171 - }, - "end": { - "line": 6, - "column": 38, - "offset": 187 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\\", - "position": { - "start": { - "line": 6, - "column": 38, - "offset": 187 - }, - "end": { - "line": 6, - "column": 40, - "offset": 189 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "|", - "position": { - "start": { - "line": 6, - "column": 40, - "offset": 189 - }, - "end": { - "line": 6, - "column": 42, - "offset": 191 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 6, - "column": 42, - "offset": 191 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 7, - "column": 1, - "offset": 192 - } - } -} diff --git a/test/fixtures/tree/table-escaped-pipes.nooutput.nogfm.json b/test/fixtures/tree/table-escaped-pipes.nooutput.nogfm.json deleted file mode 100644 index 3b15d6673..000000000 --- a/test/fixtures/tree/table-escaped-pipes.nooutput.nogfm.json +++ /dev/null @@ -1,201 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "| First | Second | third |\n| ----- | ------ | ----- |\n| first | second | third |\n| first | second \\| second | third \\|\n| first | second ", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 5, - "column": 18, - "offset": 136 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "text", - "value": "\\", - "position": { - "start": { - "line": 5, - "column": 18, - "offset": 136 - }, - "end": { - "line": 5, - "column": 20, - "offset": 138 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "| third ", - "position": { - "start": { - "line": 5, - "column": 20, - "offset": 138 - }, - "end": { - "line": 5, - "column": 28, - "offset": 146 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\\", - "position": { - "start": { - "line": 5, - "column": 28, - "offset": 146 - }, - "end": { - "line": 5, - "column": 30, - "offset": 148 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "|\n| first | second ", - "position": { - "start": { - "line": 5, - "column": 30, - "offset": 148 - }, - "end": { - "line": 6, - "column": 18, - "offset": 167 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "\\", - "position": { - "start": { - "line": 6, - "column": 18, - "offset": 167 - }, - "end": { - "line": 6, - "column": 20, - "offset": 169 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\\| second | third ", - "position": { - "start": { - "line": 6, - "column": 20, - "offset": 169 - }, - "end": { - "line": 6, - "column": 38, - "offset": 187 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\\", - "position": { - "start": { - "line": 6, - "column": 38, - "offset": 187 - }, - "end": { - "line": 6, - "column": 40, - "offset": 189 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\\|", - "position": { - "start": { - "line": 6, - "column": 40, - "offset": 189 - }, - "end": { - "line": 6, - "column": 42, - "offset": 191 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 6, - "column": 42, - "offset": 191 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 7, - "column": 1, - "offset": 192 - } - } -} diff --git a/test/fixtures/tree/table-in-list.json b/test/fixtures/tree/table-in-list.json deleted file mode 100644 index 4eafd3c11..000000000 --- a/test/fixtures/tree/table-in-list.json +++ /dev/null @@ -1,572 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "list", - "ordered": false, - "start": null, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Unordered:", - "position": { - "start": { - "line": 1, - "column": 5, - "offset": 4 - }, - "end": { - "line": 1, - "column": 15, - "offset": 14 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 5, - "offset": 4 - }, - "end": { - "line": 1, - "column": 15, - "offset": 14 - }, - "indent": [] - } - }, - { - "type": "table", - "align": [ - null, - null - ], - "children": [ - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "A", - "position": { - "start": { - "line": 3, - "column": 7, - "offset": 22 - }, - "end": { - "line": 3, - "column": 8, - "offset": 23 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 7, - "offset": 22 - }, - "end": { - "line": 3, - "column": 8, - "offset": 23 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "B", - "position": { - "start": { - "line": 3, - "column": 11, - "offset": 26 - }, - "end": { - "line": 3, - "column": 12, - "offset": 27 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 11, - "offset": 26 - }, - "end": { - "line": 3, - "column": 12, - "offset": 27 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 5, - "offset": 20 - }, - "end": { - "line": 3, - "column": 14, - "offset": 29 - }, - "indent": [] - } - }, - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "1", - "position": { - "start": { - "line": 5, - "column": 7, - "offset": 50 - }, - "end": { - "line": 5, - "column": 8, - "offset": 51 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 7, - "offset": 50 - }, - "end": { - "line": 5, - "column": 8, - "offset": 51 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "2", - "position": { - "start": { - "line": 5, - "column": 11, - "offset": 54 - }, - "end": { - "line": 5, - "column": 12, - "offset": 55 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 11, - "offset": 54 - }, - "end": { - "line": 5, - "column": 12, - "offset": 55 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 5, - "offset": 48 - }, - "end": { - "line": 5, - "column": 14, - "offset": 57 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 5, - "offset": 20 - }, - "end": { - "line": 5, - "column": 14, - "offset": 57 - }, - "indent": [ - 5, - 5 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 6, - "column": 1, - "offset": 58 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Ordered:", - "position": { - "start": { - "line": 7, - "column": 5, - "offset": 63 - }, - "end": { - "line": 7, - "column": 13, - "offset": 71 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 5, - "offset": 63 - }, - "end": { - "line": 7, - "column": 13, - "offset": 71 - }, - "indent": [] - } - }, - { - "type": "table", - "align": [ - null, - null - ], - "children": [ - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "A", - "position": { - "start": { - "line": 9, - "column": 7, - "offset": 79 - }, - "end": { - "line": 9, - "column": 8, - "offset": 80 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 7, - "offset": 79 - }, - "end": { - "line": 9, - "column": 8, - "offset": 80 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "B", - "position": { - "start": { - "line": 9, - "column": 11, - "offset": 83 - }, - "end": { - "line": 9, - "column": 12, - "offset": 84 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 11, - "offset": 83 - }, - "end": { - "line": 9, - "column": 12, - "offset": 84 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 5, - "offset": 77 - }, - "end": { - "line": 9, - "column": 14, - "offset": 86 - }, - "indent": [] - } - }, - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "1", - "position": { - "start": { - "line": 11, - "column": 7, - "offset": 107 - }, - "end": { - "line": 11, - "column": 8, - "offset": 108 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 7, - "offset": 107 - }, - "end": { - "line": 11, - "column": 8, - "offset": 108 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "2", - "position": { - "start": { - "line": 11, - "column": 11, - "offset": 111 - }, - "end": { - "line": 11, - "column": 12, - "offset": 112 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 11, - "offset": 111 - }, - "end": { - "line": 11, - "column": 12, - "offset": 112 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 5, - "offset": 105 - }, - "end": { - "line": 11, - "column": 14, - "offset": 114 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 5, - "offset": 77 - }, - "end": { - "line": 11, - "column": 14, - "offset": 114 - }, - "indent": [ - 5, - 5 - ] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 59 - }, - "end": { - "line": 11, - "column": 14, - "offset": 114 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 11, - "column": 14, - "offset": 114 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 12, - "column": 1, - "offset": 115 - } - } -} diff --git a/test/fixtures/tree/table-in-list.nogfm.json b/test/fixtures/tree/table-in-list.nogfm.json deleted file mode 100644 index 7af339f52..000000000 --- a/test/fixtures/tree/table-in-list.nogfm.json +++ /dev/null @@ -1,252 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "list", - "ordered": false, - "start": null, - "spread": true, - "children": [ - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Unordered:", - "position": { - "start": { - "line": 1, - "column": 5, - "offset": 4 - }, - "end": { - "line": 1, - "column": 15, - "offset": 14 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 5, - "offset": 4 - }, - "end": { - "line": 1, - "column": 15, - "offset": 14 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "| A | B |\n| - | - |\n| 1 | 2 |", - "position": { - "start": { - "line": 3, - "column": 5, - "offset": 20 - }, - "end": { - "line": 5, - "column": 14, - "offset": 57 - }, - "indent": [ - 5, - 5 - ] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 5, - "offset": 20 - }, - "end": { - "line": 5, - "column": 14, - "offset": 57 - }, - "indent": [ - 5, - 5 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 6, - "column": 1, - "offset": 58 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "listItem", - "spread": true, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Ordered:", - "position": { - "start": { - "line": 7, - "column": 5, - "offset": 63 - }, - "end": { - "line": 7, - "column": 13, - "offset": 71 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 5, - "offset": 63 - }, - "end": { - "line": 7, - "column": 13, - "offset": 71 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "| A | B |\n| - | - |\n| 1 | 2 |", - "position": { - "start": { - "line": 9, - "column": 5, - "offset": 77 - }, - "end": { - "line": 11, - "column": 14, - "offset": 114 - }, - "indent": [ - 5, - 5 - ] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 5, - "offset": 77 - }, - "end": { - "line": 11, - "column": 14, - "offset": 114 - }, - "indent": [ - 5, - 5 - ] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 59 - }, - "end": { - "line": 11, - "column": 14, - "offset": 114 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 11, - "column": 14, - "offset": 114 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 12, - "column": 1, - "offset": 115 - } - } -} diff --git a/test/fixtures/tree/table-invalid-alignment.json b/test/fixtures/tree/table-invalid-alignment.json deleted file mode 100644 index 9d82c74a3..000000000 --- a/test/fixtures/tree/table-invalid-alignment.json +++ /dev/null @@ -1,226 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Missing alignment characters:", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 30, - "offset": 29 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 30, - "offset": 29 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "| a | b | c |\n| |---|---|\n| d | e | f |", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 31 - }, - "end": { - "line": 5, - "column": 14, - "offset": 72 - }, - "indent": [ - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 31 - }, - "end": { - "line": 5, - "column": 14, - "offset": 72 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 74 - }, - "end": { - "line": 7, - "column": 6, - "offset": 79 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "| a | b | c |\n|---|---| |\n| d | e | f |", - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 81 - }, - "end": { - "line": 11, - "column": 14, - "offset": 122 - }, - "indent": [ - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 81 - }, - "end": { - "line": 11, - "column": 14, - "offset": 122 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Invalid characters:", - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 124 - }, - "end": { - "line": 13, - "column": 20, - "offset": 143 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 124 - }, - "end": { - "line": 13, - "column": 20, - "offset": 143 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "| a | b | c |\n|---|-*-|---|\n| d | e | f |", - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 145 - }, - "end": { - "line": 17, - "column": 14, - "offset": 186 - }, - "indent": [ - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 145 - }, - "end": { - "line": 17, - "column": 14, - "offset": 186 - }, - "indent": [ - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 18, - "column": 1, - "offset": 187 - } - } -} diff --git a/test/fixtures/tree/table-loose.json b/test/fixtures/tree/table-loose.json deleted file mode 100644 index 1e8ec4243..000000000 --- a/test/fixtures/tree/table-loose.json +++ /dev/null @@ -1,307 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "table", - "align": [ - null, - null - ], - "children": [ - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Header 1", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 9, - "offset": 8 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 9, - "offset": 8 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Header 2", - "position": { - "start": { - "line": 1, - "column": 12, - "offset": 11 - }, - "end": { - "line": 1, - "column": 20, - "offset": 19 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 12, - "offset": 11 - }, - "end": { - "line": 1, - "column": 20, - "offset": 19 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 20, - "offset": 19 - }, - "indent": [] - } - }, - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Cell 1", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 40 - }, - "end": { - "line": 3, - "column": 7, - "offset": 46 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 40 - }, - "end": { - "line": 3, - "column": 9, - "offset": 48 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Cell 2", - "position": { - "start": { - "line": 3, - "column": 12, - "offset": 51 - }, - "end": { - "line": 3, - "column": 18, - "offset": 57 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 12, - "offset": 51 - }, - "end": { - "line": 3, - "column": 20, - "offset": 59 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 40 - }, - "end": { - "line": 3, - "column": 20, - "offset": 59 - }, - "indent": [] - } - }, - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Cell 3", - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 60 - }, - "end": { - "line": 4, - "column": 7, - "offset": 66 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 60 - }, - "end": { - "line": 4, - "column": 9, - "offset": 68 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Cell 4", - "position": { - "start": { - "line": 4, - "column": 12, - "offset": 71 - }, - "end": { - "line": 4, - "column": 18, - "offset": 77 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 12, - "offset": 71 - }, - "end": { - "line": 4, - "column": 20, - "offset": 79 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 60 - }, - "end": { - "line": 4, - "column": 20, - "offset": 79 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 4, - "column": 20, - "offset": 79 - }, - "indent": [ - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 5, - "column": 1, - "offset": 80 - } - } -} diff --git a/test/fixtures/tree/table-loose.output.json b/test/fixtures/tree/table-loose.output.json deleted file mode 100644 index 6affe013f..000000000 --- a/test/fixtures/tree/table-loose.output.json +++ /dev/null @@ -1,307 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "table", - "align": [ - null, - null - ], - "children": [ - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Header 1", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 11, - "offset": 10 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 11, - "offset": 10 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Header 2", - "position": { - "start": { - "line": 1, - "column": 14, - "offset": 13 - }, - "end": { - "line": 1, - "column": 22, - "offset": 21 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 14, - "offset": 13 - }, - "end": { - "line": 1, - "column": 22, - "offset": 21 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 24, - "offset": 23 - }, - "indent": [] - } - }, - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Cell 1", - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 50 - }, - "end": { - "line": 3, - "column": 9, - "offset": 56 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 50 - }, - "end": { - "line": 3, - "column": 11, - "offset": 58 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Cell 2", - "position": { - "start": { - "line": 3, - "column": 14, - "offset": 61 - }, - "end": { - "line": 3, - "column": 20, - "offset": 67 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 14, - "offset": 61 - }, - "end": { - "line": 3, - "column": 22, - "offset": 69 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 48 - }, - "end": { - "line": 3, - "column": 24, - "offset": 71 - }, - "indent": [] - } - }, - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Cell 3", - "position": { - "start": { - "line": 4, - "column": 3, - "offset": 74 - }, - "end": { - "line": 4, - "column": 9, - "offset": 80 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 3, - "offset": 74 - }, - "end": { - "line": 4, - "column": 11, - "offset": 82 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Cell 4", - "position": { - "start": { - "line": 4, - "column": 14, - "offset": 85 - }, - "end": { - "line": 4, - "column": 20, - "offset": 91 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 14, - "offset": 85 - }, - "end": { - "line": 4, - "column": 22, - "offset": 93 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 72 - }, - "end": { - "line": 4, - "column": 24, - "offset": 95 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 4, - "column": 24, - "offset": 95 - }, - "indent": [ - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 5, - "column": 1, - "offset": 96 - } - } -} diff --git a/test/fixtures/tree/table-no-body.json b/test/fixtures/tree/table-no-body.json deleted file mode 100644 index b95ed4798..000000000 --- a/test/fixtures/tree/table-no-body.json +++ /dev/null @@ -1,201 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Foo", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 6, - "offset": 5 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 6, - "offset": 5 - }, - "indent": [] - } - }, - { - "type": "table", - "align": [ - null, - null, - null - ], - "children": [ - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Name", - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 9 - }, - "end": { - "line": 3, - "column": 7, - "offset": 13 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 9 - }, - "end": { - "line": 3, - "column": 7, - "offset": 13 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "GitHub", - "position": { - "start": { - "line": 3, - "column": 10, - "offset": 16 - }, - "end": { - "line": 3, - "column": 16, - "offset": 22 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 10, - "offset": 16 - }, - "end": { - "line": 3, - "column": 16, - "offset": 22 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Twitter", - "position": { - "start": { - "line": 3, - "column": 19, - "offset": 25 - }, - "end": { - "line": 3, - "column": 26, - "offset": 32 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 19, - "offset": 25 - }, - "end": { - "line": 3, - "column": 26, - "offset": 32 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 7 - }, - "end": { - "line": 3, - "column": 28, - "offset": 34 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 7 - }, - "end": { - "line": 4, - "column": 28, - "offset": 62 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 5, - "column": 1, - "offset": 63 - } - } -} diff --git a/test/fixtures/tree/table-no-body.nogfm.json b/test/fixtures/tree/table-no-body.nogfm.json deleted file mode 100644 index 6351ead58..000000000 --- a/test/fixtures/tree/table-no-body.nogfm.json +++ /dev/null @@ -1,92 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Foo", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 6, - "offset": 5 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 6, - "offset": 5 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "| Name | GitHub | Twitter |\n| ---- | ------ | ------- |", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 7 - }, - "end": { - "line": 4, - "column": 28, - "offset": 62 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 7 - }, - "end": { - "line": 4, - "column": 28, - "offset": 62 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 5, - "column": 1, - "offset": 63 - } - } -} diff --git a/test/fixtures/tree/table-no-end-of-line.json b/test/fixtures/tree/table-no-end-of-line.json deleted file mode 100644 index 14d52b736..000000000 --- a/test/fixtures/tree/table-no-end-of-line.json +++ /dev/null @@ -1,218 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "table", - "align": [ - null, - null - ], - "children": [ - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "foo", - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 5, - "offset": 4 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 2, - "offset": 1 - }, - "end": { - "line": 1, - "column": 5, - "offset": 4 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "bar", - "position": { - "start": { - "line": 1, - "column": 6, - "offset": 5 - }, - "end": { - "line": 1, - "column": 9, - "offset": 8 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 6, - "offset": 5 - }, - "end": { - "line": 1, - "column": 9, - "offset": 8 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 10, - "offset": 9 - }, - "indent": [] - } - }, - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "1", - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 17 - }, - "end": { - "line": 3, - "column": 3, - "offset": 18 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 2, - "offset": 17 - }, - "end": { - "line": 3, - "column": 3, - "offset": 18 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "2", - "position": { - "start": { - "line": 3, - "column": 4, - "offset": 19 - }, - "end": { - "line": 3, - "column": 5, - "offset": 20 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 4, - "offset": 19 - }, - "end": { - "line": 3, - "column": 5, - "offset": 20 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 16 - }, - "end": { - "line": 3, - "column": 6, - "offset": 21 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 3, - "column": 6, - "offset": 21 - }, - "indent": [ - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 3, - "column": 6, - "offset": 21 - } - } -} diff --git a/test/fixtures/tree/table-one-row.json b/test/fixtures/tree/table-one-row.json deleted file mode 100644 index 15e51e060..000000000 --- a/test/fixtures/tree/table-one-row.json +++ /dev/null @@ -1,200 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "This is a table:", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 17, - "offset": 16 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 17, - "offset": 16 - }, - "indent": [] - } - }, - { - "type": "table", - "align": [ - null, - null, - null - ], - "children": [ - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "a", - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 20 - }, - "end": { - "line": 3, - "column": 4, - "offset": 21 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 20 - }, - "end": { - "line": 3, - "column": 4, - "offset": 21 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "b", - "position": { - "start": { - "line": 3, - "column": 7, - "offset": 24 - }, - "end": { - "line": 3, - "column": 8, - "offset": 25 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 7, - "offset": 24 - }, - "end": { - "line": 3, - "column": 8, - "offset": 25 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "c", - "position": { - "start": { - "line": 3, - "column": 11, - "offset": 28 - }, - "end": { - "line": 3, - "column": 12, - "offset": 29 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 11, - "offset": 28 - }, - "end": { - "line": 3, - "column": 12, - "offset": 29 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 18 - }, - "end": { - "line": 3, - "column": 14, - "offset": 31 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 18 - }, - "end": { - "line": 4, - "column": 14, - "offset": 45 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 5, - "column": 1, - "offset": 46 - } - } -} diff --git a/test/fixtures/tree/table-pipe-align.output.json b/test/fixtures/tree/table-pipe-align.output.json deleted file mode 100644 index 6affe013f..000000000 --- a/test/fixtures/tree/table-pipe-align.output.json +++ /dev/null @@ -1,307 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "table", - "align": [ - null, - null - ], - "children": [ - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Header 1", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 11, - "offset": 10 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 11, - "offset": 10 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Header 2", - "position": { - "start": { - "line": 1, - "column": 14, - "offset": 13 - }, - "end": { - "line": 1, - "column": 22, - "offset": 21 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 14, - "offset": 13 - }, - "end": { - "line": 1, - "column": 22, - "offset": 21 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 24, - "offset": 23 - }, - "indent": [] - } - }, - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Cell 1", - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 50 - }, - "end": { - "line": 3, - "column": 9, - "offset": 56 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 50 - }, - "end": { - "line": 3, - "column": 11, - "offset": 58 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Cell 2", - "position": { - "start": { - "line": 3, - "column": 14, - "offset": 61 - }, - "end": { - "line": 3, - "column": 20, - "offset": 67 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 14, - "offset": 61 - }, - "end": { - "line": 3, - "column": 22, - "offset": 69 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 48 - }, - "end": { - "line": 3, - "column": 24, - "offset": 71 - }, - "indent": [] - } - }, - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Cell 3", - "position": { - "start": { - "line": 4, - "column": 3, - "offset": 74 - }, - "end": { - "line": 4, - "column": 9, - "offset": 80 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 3, - "offset": 74 - }, - "end": { - "line": 4, - "column": 11, - "offset": 82 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Cell 4", - "position": { - "start": { - "line": 4, - "column": 14, - "offset": 85 - }, - "end": { - "line": 4, - "column": 20, - "offset": 91 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 14, - "offset": 85 - }, - "end": { - "line": 4, - "column": 22, - "offset": 93 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 72 - }, - "end": { - "line": 4, - "column": 24, - "offset": 95 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 4, - "column": 24, - "offset": 95 - }, - "indent": [ - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 5, - "column": 1, - "offset": 96 - } - } -} diff --git a/test/fixtures/tree/table-pipe-align.output.notable-pipe-align.json b/test/fixtures/tree/table-pipe-align.output.notable-pipe-align.json deleted file mode 100644 index 7b57e32ff..000000000 --- a/test/fixtures/tree/table-pipe-align.output.notable-pipe-align.json +++ /dev/null @@ -1,307 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "table", - "align": [ - null, - null - ], - "children": [ - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Header 1", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 11, - "offset": 10 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 11, - "offset": 10 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Header 2", - "position": { - "start": { - "line": 1, - "column": 14, - "offset": 13 - }, - "end": { - "line": 1, - "column": 22, - "offset": 21 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 14, - "offset": 13 - }, - "end": { - "line": 1, - "column": 22, - "offset": 21 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 24, - "offset": 23 - }, - "indent": [] - } - }, - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Cell 1", - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 36 - }, - "end": { - "line": 3, - "column": 9, - "offset": 42 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 36 - }, - "end": { - "line": 3, - "column": 9, - "offset": 42 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Cell 2", - "position": { - "start": { - "line": 3, - "column": 12, - "offset": 45 - }, - "end": { - "line": 3, - "column": 18, - "offset": 51 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 12, - "offset": 45 - }, - "end": { - "line": 3, - "column": 18, - "offset": 51 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 34 - }, - "end": { - "line": 3, - "column": 20, - "offset": 53 - }, - "indent": [] - } - }, - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Cell 3", - "position": { - "start": { - "line": 4, - "column": 3, - "offset": 56 - }, - "end": { - "line": 4, - "column": 9, - "offset": 62 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 3, - "offset": 56 - }, - "end": { - "line": 4, - "column": 9, - "offset": 62 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Cell 4", - "position": { - "start": { - "line": 4, - "column": 12, - "offset": 65 - }, - "end": { - "line": 4, - "column": 18, - "offset": 71 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 12, - "offset": 65 - }, - "end": { - "line": 4, - "column": 18, - "offset": 71 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 54 - }, - "end": { - "line": 4, - "column": 20, - "offset": 73 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 4, - "column": 20, - "offset": 73 - }, - "indent": [ - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 5, - "column": 1, - "offset": 74 - } - } -} diff --git a/test/fixtures/tree/table.json b/test/fixtures/tree/table.json deleted file mode 100644 index 7e5482788..000000000 --- a/test/fixtures/tree/table.json +++ /dev/null @@ -1,1673 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "table", - "align": [ - null, - null - ], - "children": [ - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Heading 1", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 12, - "offset": 11 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 12, - "offset": 11 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "H", - "position": { - "start": { - "line": 1, - "column": 17, - "offset": 16 - }, - "end": { - "line": 1, - "column": 18, - "offset": 17 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 15, - "offset": 14 - }, - "end": { - "line": 1, - "column": 20, - "offset": 19 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "eading 2", - "position": { - "start": { - "line": 1, - "column": 20, - "offset": 19 - }, - "end": { - "line": 1, - "column": 28, - "offset": 27 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 15, - "offset": 14 - }, - "end": { - "line": 1, - "column": 28, - "offset": 27 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 28, - "offset": 27 - }, - "indent": [] - } - }, - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Cell 1", - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 54 - }, - "end": { - "line": 3, - "column": 9, - "offset": 60 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 54 - }, - "end": { - "line": 3, - "column": 12, - "offset": 63 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Cell 2", - "position": { - "start": { - "line": 3, - "column": 15, - "offset": 66 - }, - "end": { - "line": 3, - "column": 21, - "offset": 72 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 15, - "offset": 66 - }, - "end": { - "line": 3, - "column": 21, - "offset": 72 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 52 - }, - "end": { - "line": 3, - "column": 21, - "offset": 72 - }, - "indent": [] - } - }, - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Cell 3", - "position": { - "start": { - "line": 4, - "column": 3, - "offset": 75 - }, - "end": { - "line": 4, - "column": 9, - "offset": 81 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 3, - "offset": 75 - }, - "end": { - "line": 4, - "column": 12, - "offset": 84 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Cell 4", - "position": { - "start": { - "line": 4, - "column": 15, - "offset": 87 - }, - "end": { - "line": 4, - "column": 21, - "offset": 93 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 15, - "offset": 87 - }, - "end": { - "line": 4, - "column": 21, - "offset": 93 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 73 - }, - "end": { - "line": 4, - "column": 21, - "offset": 93 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 4, - "column": 21, - "offset": 93 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "table", - "align": [ - "center", - "right", - "left", - null - ], - "children": [ - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Header 1", - "position": { - "start": { - "line": 6, - "column": 3, - "offset": 97 - }, - "end": { - "line": 6, - "column": 11, - "offset": 105 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 3, - "offset": 97 - }, - "end": { - "line": 6, - "column": 11, - "offset": 105 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Header 2", - "position": { - "start": { - "line": 6, - "column": 14, - "offset": 108 - }, - "end": { - "line": 6, - "column": 22, - "offset": 116 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 14, - "offset": 108 - }, - "end": { - "line": 6, - "column": 22, - "offset": 116 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Header 3", - "position": { - "start": { - "line": 6, - "column": 25, - "offset": 119 - }, - "end": { - "line": 6, - "column": 33, - "offset": 127 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 25, - "offset": 119 - }, - "end": { - "line": 6, - "column": 33, - "offset": 127 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Header 4", - "position": { - "start": { - "line": 6, - "column": 36, - "offset": 130 - }, - "end": { - "line": 6, - "column": 44, - "offset": 138 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 36, - "offset": 130 - }, - "end": { - "line": 6, - "column": 44, - "offset": 138 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 95 - }, - "end": { - "line": 6, - "column": 46, - "offset": 140 - }, - "indent": [] - } - }, - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Cell 1", - "position": { - "start": { - "line": 8, - "column": 3, - "offset": 189 - }, - "end": { - "line": 8, - "column": 9, - "offset": 195 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 8, - "column": 3, - "offset": 189 - }, - "end": { - "line": 8, - "column": 11, - "offset": 197 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Cell 2", - "position": { - "start": { - "line": 8, - "column": 14, - "offset": 200 - }, - "end": { - "line": 8, - "column": 20, - "offset": 206 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 8, - "column": 14, - "offset": 200 - }, - "end": { - "line": 8, - "column": 22, - "offset": 208 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Cell 3", - "position": { - "start": { - "line": 8, - "column": 25, - "offset": 211 - }, - "end": { - "line": 8, - "column": 31, - "offset": 217 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 8, - "column": 25, - "offset": 211 - }, - "end": { - "line": 8, - "column": 33, - "offset": 219 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Cell 4", - "position": { - "start": { - "line": 8, - "column": 36, - "offset": 222 - }, - "end": { - "line": 8, - "column": 42, - "offset": 228 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 8, - "column": 36, - "offset": 222 - }, - "end": { - "line": 8, - "column": 44, - "offset": 230 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 8, - "column": 1, - "offset": 187 - }, - "end": { - "line": 8, - "column": 46, - "offset": 232 - }, - "indent": [] - } - }, - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Cell 5", - "position": { - "start": { - "line": 9, - "column": 3, - "offset": 235 - }, - "end": { - "line": 9, - "column": 9, - "offset": 241 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 3, - "offset": 235 - }, - "end": { - "line": 9, - "column": 11, - "offset": 243 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Cell 6", - "position": { - "start": { - "line": 9, - "column": 14, - "offset": 246 - }, - "end": { - "line": 9, - "column": 20, - "offset": 252 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 14, - "offset": 246 - }, - "end": { - "line": 9, - "column": 22, - "offset": 254 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Cell 7", - "position": { - "start": { - "line": 9, - "column": 25, - "offset": 257 - }, - "end": { - "line": 9, - "column": 31, - "offset": 263 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 25, - "offset": 257 - }, - "end": { - "line": 9, - "column": 33, - "offset": 265 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Cell 8", - "position": { - "start": { - "line": 9, - "column": 36, - "offset": 268 - }, - "end": { - "line": 9, - "column": 42, - "offset": 274 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 36, - "offset": 268 - }, - "end": { - "line": 9, - "column": 44, - "offset": 276 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 233 - }, - "end": { - "line": 9, - "column": 46, - "offset": 278 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 95 - }, - "end": { - "line": 9, - "column": 46, - "offset": 278 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "Test code", - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 280 - }, - "end": { - "line": 11, - "column": 14, - "offset": 293 - }, - "indent": [] - } - }, - { - "type": "table", - "align": [ - null, - null - ], - "children": [ - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Header 1", - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 295 - }, - "end": { - "line": 13, - "column": 9, - "offset": 303 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 295 - }, - "end": { - "line": 13, - "column": 9, - "offset": 303 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Header 2", - "position": { - "start": { - "line": 13, - "column": 12, - "offset": 306 - }, - "end": { - "line": 13, - "column": 20, - "offset": 314 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 12, - "offset": 306 - }, - "end": { - "line": 13, - "column": 20, - "offset": 314 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 295 - }, - "end": { - "line": 13, - "column": 20, - "offset": 314 - }, - "indent": [] - } - }, - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Cell 1", - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 335 - }, - "end": { - "line": 15, - "column": 7, - "offset": 341 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 335 - }, - "end": { - "line": 15, - "column": 9, - "offset": 343 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Cell 2", - "position": { - "start": { - "line": 15, - "column": 12, - "offset": 346 - }, - "end": { - "line": 15, - "column": 18, - "offset": 352 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 12, - "offset": 346 - }, - "end": { - "line": 15, - "column": 18, - "offset": 352 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 335 - }, - "end": { - "line": 15, - "column": 18, - "offset": 352 - }, - "indent": [] - } - }, - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Cell 3", - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 353 - }, - "end": { - "line": 16, - "column": 7, - "offset": 359 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 353 - }, - "end": { - "line": 16, - "column": 9, - "offset": 361 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Cell 4", - "position": { - "start": { - "line": 16, - "column": 12, - "offset": 364 - }, - "end": { - "line": 16, - "column": 18, - "offset": 370 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 12, - "offset": 364 - }, - "end": { - "line": 16, - "column": 18, - "offset": 370 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 353 - }, - "end": { - "line": 16, - "column": 18, - "offset": 370 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 295 - }, - "end": { - "line": 16, - "column": 18, - "offset": 370 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "table", - "align": [ - "left", - "center", - "right", - null - ], - "children": [ - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Header 1", - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 372 - }, - "end": { - "line": 18, - "column": 9, - "offset": 380 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 372 - }, - "end": { - "line": 18, - "column": 9, - "offset": 380 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Header 2", - "position": { - "start": { - "line": 18, - "column": 10, - "offset": 381 - }, - "end": { - "line": 18, - "column": 18, - "offset": 389 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 10, - "offset": 381 - }, - "end": { - "line": 18, - "column": 18, - "offset": 389 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Header 3", - "position": { - "start": { - "line": 18, - "column": 19, - "offset": 390 - }, - "end": { - "line": 18, - "column": 27, - "offset": 398 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 19, - "offset": 390 - }, - "end": { - "line": 18, - "column": 27, - "offset": 398 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Header 4", - "position": { - "start": { - "line": 18, - "column": 28, - "offset": 399 - }, - "end": { - "line": 18, - "column": 36, - "offset": 407 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 28, - "offset": 399 - }, - "end": { - "line": 18, - "column": 36, - "offset": 407 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 372 - }, - "end": { - "line": 18, - "column": 36, - "offset": 407 - }, - "indent": [] - } - }, - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Cell 1", - "position": { - "start": { - "line": 20, - "column": 1, - "offset": 444 - }, - "end": { - "line": 20, - "column": 7, - "offset": 450 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 1, - "offset": 444 - }, - "end": { - "line": 20, - "column": 8, - "offset": 451 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Cell 2", - "position": { - "start": { - "line": 20, - "column": 10, - "offset": 453 - }, - "end": { - "line": 20, - "column": 16, - "offset": 459 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 10, - "offset": 453 - }, - "end": { - "line": 20, - "column": 17, - "offset": 460 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Cell 3", - "position": { - "start": { - "line": 20, - "column": 19, - "offset": 462 - }, - "end": { - "line": 20, - "column": 25, - "offset": 468 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 19, - "offset": 462 - }, - "end": { - "line": 20, - "column": 26, - "offset": 469 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Cell 4", - "position": { - "start": { - "line": 20, - "column": 28, - "offset": 471 - }, - "end": { - "line": 20, - "column": 34, - "offset": 477 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 28, - "offset": 471 - }, - "end": { - "line": 20, - "column": 34, - "offset": 477 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 1, - "offset": 444 - }, - "end": { - "line": 20, - "column": 34, - "offset": 477 - }, - "indent": [] - } - }, - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "Cell 5", - "position": { - "start": { - "line": 21, - "column": 2, - "offset": 479 - }, - "end": { - "line": 21, - "column": 8, - "offset": 485 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 1, - "offset": 478 - }, - "end": { - "line": 21, - "column": 9, - "offset": 486 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 1, - "offset": 478 - }, - "end": { - "line": 21, - "column": 9, - "offset": 486 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Cell 6", - "position": { - "start": { - "line": 21, - "column": 10, - "offset": 487 - }, - "end": { - "line": 21, - "column": 16, - "offset": 493 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 10, - "offset": 487 - }, - "end": { - "line": 21, - "column": 17, - "offset": 494 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Cell 7", - "position": { - "start": { - "line": 21, - "column": 19, - "offset": 496 - }, - "end": { - "line": 21, - "column": 25, - "offset": 502 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 19, - "offset": 496 - }, - "end": { - "line": 21, - "column": 26, - "offset": 503 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Cell 8", - "position": { - "start": { - "line": 21, - "column": 28, - "offset": 505 - }, - "end": { - "line": 21, - "column": 34, - "offset": 511 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 28, - "offset": 505 - }, - "end": { - "line": 21, - "column": 34, - "offset": 511 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 1, - "offset": 478 - }, - "end": { - "line": 21, - "column": 34, - "offset": 511 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 372 - }, - "end": { - "line": 21, - "column": 34, - "offset": 511 - }, - "indent": [ - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 22, - "column": 1, - "offset": 512 - } - } -} diff --git a/test/fixtures/tree/table.nogfm.json b/test/fixtures/tree/table.nogfm.json deleted file mode 100644 index 3347b6a6e..000000000 --- a/test/fixtures/tree/table.nogfm.json +++ /dev/null @@ -1,312 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "| Heading 1 | ", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 15, - "offset": 14 - }, - "indent": [] - } - }, - { - "type": "strong", - "children": [ - { - "type": "text", - "value": "H", - "position": { - "start": { - "line": 1, - "column": 17, - "offset": 16 - }, - "end": { - "line": 1, - "column": 18, - "offset": 17 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 15, - "offset": 14 - }, - "end": { - "line": 1, - "column": 20, - "offset": 19 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "eading 2\n| --------- | ---------\n| Cell 1 | Cell 2\n| Cell 3 | Cell 4", - "position": { - "start": { - "line": 1, - "column": 20, - "offset": 19 - }, - "end": { - "line": 4, - "column": 21, - "offset": 93 - }, - "indent": [ - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 4, - "column": 21, - "offset": 93 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "| Header 1 | Header 2 | Header 3 | Header 4 |\n| :------: | -------: | :------- | -------- |\n| Cell 1 | Cell 2 | Cell 3 | Cell 4 |\n| Cell 5 | Cell 6 | Cell 7 | Cell 8 |", - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 95 - }, - "end": { - "line": 9, - "column": 46, - "offset": 278 - }, - "indent": [ - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 95 - }, - "end": { - "line": 9, - "column": 46, - "offset": 278 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "Test code", - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 280 - }, - "end": { - "line": 11, - "column": 14, - "offset": 293 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Header 1 | Header 2\n-------- | --------\nCell 1 | Cell 2\nCell 3 | Cell 4", - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 295 - }, - "end": { - "line": 16, - "column": 18, - "offset": 370 - }, - "indent": [ - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 295 - }, - "end": { - "line": 16, - "column": 18, - "offset": 370 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Header 1|Header 2|Header 3|Header 4\n:-------|:------:|-------:|--------\nCell 1 |Cell 2 |Cell 3 |Cell 4\n", - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 372 - }, - "end": { - "line": 21, - "column": 1, - "offset": 478 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "emphasis", - "children": [ - { - "type": "text", - "value": "Cell 5", - "position": { - "start": { - "line": 21, - "column": 2, - "offset": 479 - }, - "end": { - "line": 21, - "column": 8, - "offset": 485 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 1, - "offset": 478 - }, - "end": { - "line": 21, - "column": 9, - "offset": 486 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "|Cell 6 |Cell 7 |Cell 8", - "position": { - "start": { - "line": 21, - "column": 9, - "offset": 486 - }, - "end": { - "line": 21, - "column": 34, - "offset": 511 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 372 - }, - "end": { - "line": 21, - "column": 34, - "offset": 511 - }, - "indent": [ - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 22, - "column": 1, - "offset": 512 - } - } -} diff --git a/test/fixtures/tree/tables-with-pipes-and-code.json b/test/fixtures/tree/tables-with-pipes-and-code.json deleted file mode 100644 index fc72dd7cc..000000000 --- a/test/fixtures/tree/tables-with-pipes-and-code.json +++ /dev/null @@ -1,1325 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Grave accent in cell:", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 22, - "offset": 21 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 22, - "offset": 21 - }, - "indent": [] - } - }, - { - "type": "table", - "align": [ - null, - null - ], - "children": [ - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "A", - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 25 - }, - "end": { - "line": 3, - "column": 4, - "offset": 26 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 25 - }, - "end": { - "line": 3, - "column": 15, - "offset": 37 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "B", - "position": { - "start": { - "line": 3, - "column": 18, - "offset": 40 - }, - "end": { - "line": 3, - "column": 19, - "offset": 41 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 18, - "offset": 40 - }, - "end": { - "line": 3, - "column": 19, - "offset": 41 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 23 - }, - "end": { - "line": 3, - "column": 21, - "offset": 43 - }, - "indent": [] - } - }, - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 5, - "column": 3, - "offset": 67 - }, - "end": { - "line": 5, - "column": 8, - "offset": 72 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "`", - "position": { - "start": { - "line": 5, - "column": 8, - "offset": 72 - }, - "end": { - "line": 5, - "column": 9, - "offset": 73 - }, - "indent": [] - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 5, - "column": 9, - "offset": 73 - }, - "end": { - "line": 5, - "column": 15, - "offset": 79 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 3, - "offset": 67 - }, - "end": { - "line": 5, - "column": 15, - "offset": 79 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "C", - "position": { - "start": { - "line": 5, - "column": 18, - "offset": 82 - }, - "end": { - "line": 5, - "column": 19, - "offset": 83 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 18, - "offset": 82 - }, - "end": { - "line": 5, - "column": 19, - "offset": 83 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 65 - }, - "end": { - "line": 5, - "column": 21, - "offset": 85 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 23 - }, - "end": { - "line": 5, - "column": 21, - "offset": 85 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Escaped grave accent in inline code in cell (is not an escape):", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 87 - }, - "end": { - "line": 7, - "column": 64, - "offset": 150 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 87 - }, - "end": { - "line": 7, - "column": 64, - "offset": 150 - }, - "indent": [] - } - }, - { - "type": "table", - "align": [ - null - ], - "children": [ - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "A", - "position": { - "start": { - "line": 9, - "column": 3, - "offset": 154 - }, - "end": { - "line": 9, - "column": 4, - "offset": 155 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 3, - "offset": 154 - }, - "end": { - "line": 9, - "column": 6, - "offset": 157 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 152 - }, - "end": { - "line": 9, - "column": 8, - "offset": 159 - }, - "indent": [] - } - }, - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "inlineCode", - "value": "\\", - "position": { - "start": { - "line": 11, - "column": 3, - "offset": 170 - }, - "end": { - "line": 11, - "column": 6, - "offset": 173 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 3, - "offset": 170 - }, - "end": { - "line": 11, - "column": 6, - "offset": 173 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 168 - }, - "end": { - "line": 11, - "column": 8, - "offset": 175 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 152 - }, - "end": { - "line": 11, - "column": 8, - "offset": 175 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "“Empty” inline code:", - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 177 - }, - "end": { - "line": 13, - "column": 21, - "offset": 197 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 177 - }, - "end": { - "line": 13, - "column": 21, - "offset": 197 - }, - "indent": [] - } - }, - { - "type": "table", - "align": [ - null, - null, - null - ], - "children": [ - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "1", - "position": { - "start": { - "line": 15, - "column": 3, - "offset": 201 - }, - "end": { - "line": 15, - "column": 4, - "offset": 202 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 3, - "offset": 201 - }, - "end": { - "line": 15, - "column": 4, - "offset": 202 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "2", - "position": { - "start": { - "line": 15, - "column": 7, - "offset": 205 - }, - "end": { - "line": 15, - "column": 8, - "offset": 206 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 7, - "offset": 205 - }, - "end": { - "line": 15, - "column": 11, - "offset": 209 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "3", - "position": { - "start": { - "line": 15, - "column": 14, - "offset": 212 - }, - "end": { - "line": 15, - "column": 15, - "offset": 213 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 14, - "offset": 212 - }, - "end": { - "line": 15, - "column": 16, - "offset": 214 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 199 - }, - "end": { - "line": 15, - "column": 18, - "offset": 216 - }, - "indent": [] - } - }, - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "a", - "position": { - "start": { - "line": 17, - "column": 3, - "offset": 237 - }, - "end": { - "line": 17, - "column": 4, - "offset": 238 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 17, - "column": 3, - "offset": 237 - }, - "end": { - "line": 17, - "column": 4, - "offset": 238 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "``", - "position": { - "start": { - "line": 17, - "column": 9, - "offset": 243 - }, - "end": { - "line": 17, - "column": 11, - "offset": 245 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 17, - "column": 9, - "offset": 243 - }, - "end": { - "line": 17, - "column": 11, - "offset": 245 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [], - "position": { - "start": { - "line": 17, - "column": 17, - "offset": 251 - }, - "end": { - "line": 17, - "column": 17, - "offset": 251 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 235 - }, - "end": { - "line": 17, - "column": 18, - "offset": 252 - }, - "indent": [] - } - }, - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "b", - "position": { - "start": { - "line": 18, - "column": 3, - "offset": 255 - }, - "end": { - "line": 18, - "column": 4, - "offset": 256 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 3, - "offset": 255 - }, - "end": { - "line": 18, - "column": 4, - "offset": 256 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "``", - "position": { - "start": { - "line": 18, - "column": 9, - "offset": 261 - }, - "end": { - "line": 18, - "column": 11, - "offset": 263 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 9, - "offset": 261 - }, - "end": { - "line": 18, - "column": 11, - "offset": 263 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "``", - "position": { - "start": { - "line": 18, - "column": 14, - "offset": 266 - }, - "end": { - "line": 18, - "column": 16, - "offset": 268 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 14, - "offset": 266 - }, - "end": { - "line": 18, - "column": 16, - "offset": 268 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 18, - "column": 1, - "offset": 253 - }, - "end": { - "line": 18, - "column": 18, - "offset": 270 - }, - "indent": [] - } - }, - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "c", - "position": { - "start": { - "line": 19, - "column": 3, - "offset": 273 - }, - "end": { - "line": 19, - "column": 4, - "offset": 274 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 19, - "column": 3, - "offset": 273 - }, - "end": { - "line": 19, - "column": 4, - "offset": 274 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "`", - "position": { - "start": { - "line": 19, - "column": 10, - "offset": 280 - }, - "end": { - "line": 19, - "column": 11, - "offset": 281 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 19, - "column": 10, - "offset": 280 - }, - "end": { - "line": 19, - "column": 11, - "offset": 281 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "`", - "position": { - "start": { - "line": 19, - "column": 14, - "offset": 284 - }, - "end": { - "line": 19, - "column": 15, - "offset": 285 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 19, - "column": 14, - "offset": 284 - }, - "end": { - "line": 19, - "column": 16, - "offset": 286 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 271 - }, - "end": { - "line": 19, - "column": 18, - "offset": 288 - }, - "indent": [] - } - }, - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "d", - "position": { - "start": { - "line": 20, - "column": 3, - "offset": 291 - }, - "end": { - "line": 20, - "column": 4, - "offset": 292 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 3, - "offset": 291 - }, - "end": { - "line": 20, - "column": 4, - "offset": 292 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "`", - "position": { - "start": { - "line": 20, - "column": 11, - "offset": 299 - }, - "end": { - "line": 20, - "column": 12, - "offset": 300 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 11, - "offset": 299 - }, - "end": { - "line": 20, - "column": 12, - "offset": 300 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "`", - "position": { - "start": { - "line": 20, - "column": 13, - "offset": 301 - }, - "end": { - "line": 20, - "column": 14, - "offset": 302 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 13, - "offset": 301 - }, - "end": { - "line": 20, - "column": 16, - "offset": 304 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 1, - "offset": 289 - }, - "end": { - "line": 20, - "column": 18, - "offset": 306 - }, - "indent": [] - } - }, - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "e", - "position": { - "start": { - "line": 21, - "column": 3, - "offset": 309 - }, - "end": { - "line": 21, - "column": 4, - "offset": 310 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 3, - "offset": 309 - }, - "end": { - "line": 21, - "column": 4, - "offset": 310 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "inlineCode", - "value": "\\|", - "position": { - "start": { - "line": 21, - "column": 7, - "offset": 313 - }, - "end": { - "line": 21, - "column": 11, - "offset": 317 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 7, - "offset": 313 - }, - "end": { - "line": 21, - "column": 11, - "offset": 317 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [], - "position": { - "start": { - "line": 21, - "column": 17, - "offset": 323 - }, - "end": { - "line": 21, - "column": 17, - "offset": 323 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 1, - "offset": 307 - }, - "end": { - "line": 21, - "column": 18, - "offset": 324 - }, - "indent": [] - } - }, - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "f", - "position": { - "start": { - "line": 22, - "column": 3, - "offset": 327 - }, - "end": { - "line": 22, - "column": 4, - "offset": 328 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 22, - "column": 3, - "offset": 327 - }, - "end": { - "line": 22, - "column": 4, - "offset": 328 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "|", - "position": { - "start": { - "line": 22, - "column": 9, - "offset": 333 - }, - "end": { - "line": 22, - "column": 11, - "offset": 335 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 22, - "column": 9, - "offset": 333 - }, - "end": { - "line": 22, - "column": 11, - "offset": 335 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [], - "position": { - "start": { - "line": 22, - "column": 17, - "offset": 341 - }, - "end": { - "line": 22, - "column": 17, - "offset": 341 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 22, - "column": 1, - "offset": 325 - }, - "end": { - "line": 22, - "column": 18, - "offset": 342 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 199 - }, - "end": { - "line": 22, - "column": 18, - "offset": 342 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 23, - "column": 1, - "offset": 343 - } - } -} diff --git a/test/fixtures/tree/tables-with-pipes-and-code.nogfm.json b/test/fixtures/tree/tables-with-pipes-and-code.nogfm.json deleted file mode 100644 index 1fca264a4..000000000 --- a/test/fixtures/tree/tables-with-pipes-and-code.nogfm.json +++ /dev/null @@ -1,498 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Grave accent in cell:", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 22, - "offset": 21 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 22, - "offset": 21 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "| A | B |\n|--------------|---|\n| ", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 23 - }, - "end": { - "line": 5, - "column": 3, - "offset": 67 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 5, - "column": 3, - "offset": 67 - }, - "end": { - "line": 5, - "column": 8, - "offset": 72 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "`", - "position": { - "start": { - "line": 5, - "column": 8, - "offset": 72 - }, - "end": { - "line": 5, - "column": 9, - "offset": 73 - }, - "indent": [] - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 5, - "column": 9, - "offset": 73 - }, - "end": { - "line": 5, - "column": 15, - "offset": 79 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " | C |", - "position": { - "start": { - "line": 5, - "column": 15, - "offset": 79 - }, - "end": { - "line": 5, - "column": 21, - "offset": 85 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 23 - }, - "end": { - "line": 5, - "column": 21, - "offset": 85 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Escaped grave accent in inline code in cell (is not an escape):", - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 87 - }, - "end": { - "line": 7, - "column": 64, - "offset": 150 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 87 - }, - "end": { - "line": 7, - "column": 64, - "offset": 150 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "| A |\n|-----|\n| ", - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 152 - }, - "end": { - "line": 11, - "column": 3, - "offset": 170 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "inlineCode", - "value": "\\", - "position": { - "start": { - "line": 11, - "column": 3, - "offset": 170 - }, - "end": { - "line": 11, - "column": 6, - "offset": 173 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " |", - "position": { - "start": { - "line": 11, - "column": 6, - "offset": 173 - }, - "end": { - "line": 11, - "column": 8, - "offset": 175 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 152 - }, - "end": { - "line": 11, - "column": 8, - "offset": 175 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "“Empty” inline code:", - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 177 - }, - "end": { - "line": 13, - "column": 21, - "offset": 197 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 177 - }, - "end": { - "line": 13, - "column": 21, - "offset": 197 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "| 1 | 2 | 3 |\n|---|------|----|\n| a | ", - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 199 - }, - "end": { - "line": 17, - "column": 9, - "offset": 243 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "inlineCode", - "value": "| |\n| b | ", - "position": { - "start": { - "line": 17, - "column": 9, - "offset": 243 - }, - "end": { - "line": 18, - "column": 11, - "offset": 263 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": " | `", - "position": { - "start": { - "line": 18, - "column": 11, - "offset": 263 - }, - "end": { - "line": 18, - "column": 15, - "offset": 267 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": "|\n| c | ", - "position": { - "start": { - "line": 18, - "column": 15, - "offset": 267 - }, - "end": { - "line": 19, - "column": 11, - "offset": 281 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": " | ", - "position": { - "start": { - "line": 19, - "column": 11, - "offset": 281 - }, - "end": { - "line": 19, - "column": 14, - "offset": 284 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": " |\n| d | ", - "position": { - "start": { - "line": 19, - "column": 14, - "offset": 284 - }, - "end": { - "line": 20, - "column": 12, - "offset": 300 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "|", - "position": { - "start": { - "line": 20, - "column": 12, - "offset": 300 - }, - "end": { - "line": 20, - "column": 13, - "offset": 301 - }, - "indent": [] - } - }, - { - "type": "inlineCode", - "value": " |\n| e |", - "position": { - "start": { - "line": 20, - "column": 13, - "offset": 301 - }, - "end": { - "line": 21, - "column": 8, - "offset": 314 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": "\\|` | |\n| f | \\| | |", - "position": { - "start": { - "line": 21, - "column": 8, - "offset": 314 - }, - "end": { - "line": 22, - "column": 18, - "offset": 342 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 199 - }, - "end": { - "line": 22, - "column": 18, - "offset": 342 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 23, - "column": 1, - "offset": 343 - } - } -} diff --git a/test/fixtures/tree/tabs-and-spaces.json b/test/fixtures/tree/tabs-and-spaces.json index 0421c3651..9a19ec855 100644 --- a/test/fixtures/tree/tabs-and-spaces.json +++ b/test/fixtures/tree/tabs-and-spaces.json @@ -28,10 +28,7 @@ "line": 2, "column": 20, "offset": 41 - }, - "indent": [ - 2 - ] + } } } ], @@ -45,10 +42,7 @@ "line": 2, "column": 20, "offset": 41 - }, - "indent": [ - 2 - ] + } } } ], @@ -59,14 +53,10 @@ "offset": 0 }, "end": { - "line": 3, - "column": 1, - "offset": 42 - }, - "indent": [ - 1, - 1 - ] + "line": 2, + "column": 20, + "offset": 41 + } } }, { @@ -90,10 +80,7 @@ "line": 5, "column": 25, "offset": 91 - }, - "indent": [ - 5 - ] + } } } ], @@ -107,10 +94,7 @@ "line": 5, "column": 25, "offset": 91 - }, - "indent": [ - 5 - ] + } } } ], @@ -124,10 +108,7 @@ "line": 5, "column": 25, "offset": 91 - }, - "indent": [ - 1 - ] + } } } ], @@ -141,13 +122,7 @@ "line": 5, "column": 25, "offset": 91 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] + } } }, { @@ -166,8 +141,7 @@ "line": 7, "column": 6, "offset": 98 - }, - "indent": [] + } } } ], @@ -181,8 +155,7 @@ "line": 7, "column": 6, "offset": 98 - }, - "indent": [] + } } }, { @@ -200,8 +173,7 @@ "line": 9, "column": 40, "offset": 139 - }, - "indent": [] + } } }, { @@ -220,8 +192,7 @@ "line": 11, "column": 5, "offset": 145 - }, - "indent": [] + } } } ], @@ -235,8 +206,7 @@ "line": 11, "column": 5, "offset": 145 - }, - "indent": [] + } } }, { @@ -254,8 +224,7 @@ "line": 13, "column": 42, "offset": 188 - }, - "indent": [] + } } }, { @@ -274,8 +243,7 @@ "line": 15, "column": 5, "offset": 194 - }, - "indent": [] + } } } ], @@ -289,8 +257,7 @@ "line": 15, "column": 5, "offset": 194 - }, - "indent": [] + } } }, { @@ -308,13 +275,7 @@ "line": 21, "column": 26, "offset": 310 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] + } } } ], diff --git a/test/fixtures/tree/tabs.json b/test/fixtures/tree/tabs.json index 0421c3651..9a19ec855 100644 --- a/test/fixtures/tree/tabs.json +++ b/test/fixtures/tree/tabs.json @@ -28,10 +28,7 @@ "line": 2, "column": 20, "offset": 41 - }, - "indent": [ - 2 - ] + } } } ], @@ -45,10 +42,7 @@ "line": 2, "column": 20, "offset": 41 - }, - "indent": [ - 2 - ] + } } } ], @@ -59,14 +53,10 @@ "offset": 0 }, "end": { - "line": 3, - "column": 1, - "offset": 42 - }, - "indent": [ - 1, - 1 - ] + "line": 2, + "column": 20, + "offset": 41 + } } }, { @@ -90,10 +80,7 @@ "line": 5, "column": 25, "offset": 91 - }, - "indent": [ - 5 - ] + } } } ], @@ -107,10 +94,7 @@ "line": 5, "column": 25, "offset": 91 - }, - "indent": [ - 5 - ] + } } } ], @@ -124,10 +108,7 @@ "line": 5, "column": 25, "offset": 91 - }, - "indent": [ - 1 - ] + } } } ], @@ -141,13 +122,7 @@ "line": 5, "column": 25, "offset": 91 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] + } } }, { @@ -166,8 +141,7 @@ "line": 7, "column": 6, "offset": 98 - }, - "indent": [] + } } } ], @@ -181,8 +155,7 @@ "line": 7, "column": 6, "offset": 98 - }, - "indent": [] + } } }, { @@ -200,8 +173,7 @@ "line": 9, "column": 40, "offset": 139 - }, - "indent": [] + } } }, { @@ -220,8 +192,7 @@ "line": 11, "column": 5, "offset": 145 - }, - "indent": [] + } } } ], @@ -235,8 +206,7 @@ "line": 11, "column": 5, "offset": 145 - }, - "indent": [] + } } }, { @@ -254,8 +224,7 @@ "line": 13, "column": 42, "offset": 188 - }, - "indent": [] + } } }, { @@ -274,8 +243,7 @@ "line": 15, "column": 5, "offset": 194 - }, - "indent": [] + } } } ], @@ -289,8 +257,7 @@ "line": 15, "column": 5, "offset": 194 - }, - "indent": [] + } } }, { @@ -308,13 +275,7 @@ "line": 21, "column": 26, "offset": 310 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] + } } } ], diff --git a/test/fixtures/tree/task-list-ordered.json b/test/fixtures/tree/task-list-ordered.json deleted file mode 100644 index 86c859831..000000000 --- a/test/fixtures/tree/task-list-ordered.json +++ /dev/null @@ -1,397 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": false, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Mercury;", - "position": { - "start": { - "line": 1, - "column": 8, - "offset": 7 - }, - "end": { - "line": 1, - "column": 16, - "offset": 15 - }, - "indent": [] - } - } - ], - "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": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[] Venus (this one’s invalid);", - "position": { - "start": { - "line": 2, - "column": 4, - "offset": 19 - }, - "end": { - "line": 2, - "column": 34, - "offset": 49 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 2, - "column": 4, - "offset": 19 - }, - "end": { - "line": 2, - "column": 34, - "offset": 49 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 2, - "column": 1, - "offset": 16 - }, - "end": { - "line": 2, - "column": 34, - "offset": 49 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": true, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Earth:", - "position": { - "start": { - "line": 3, - "column": 8, - "offset": 57 - }, - "end": { - "line": 3, - "column": 14, - "offset": 63 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 8, - "offset": 57 - }, - "end": { - "line": 3, - "column": 14, - "offset": 63 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": true, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Moon.", - "position": { - "start": { - "line": 4, - "column": 12, - "offset": 75 - }, - "end": { - "line": 4, - "column": 17, - "offset": 80 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 12, - "offset": 75 - }, - "end": { - "line": 4, - "column": 17, - "offset": 80 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 5, - "offset": 68 - }, - "end": { - "line": 4, - "column": 17, - "offset": 80 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 5, - "offset": 68 - }, - "end": { - "line": 4, - "column": 17, - "offset": 80 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 50 - }, - "end": { - "line": 4, - "column": 17, - "offset": 80 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": false, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Mars;", - "position": { - "start": { - "line": 5, - "column": 8, - "offset": 88 - }, - "end": { - "line": 5, - "column": 13, - "offset": 93 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 8, - "offset": 88 - }, - "end": { - "line": 5, - "column": 13, - "offset": 93 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 81 - }, - "end": { - "line": 5, - "column": 13, - "offset": 93 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[] Neptune (this one’s also invalid).", - "position": { - "start": { - "line": 6, - "column": 4, - "offset": 97 - }, - "end": { - "line": 6, - "column": 41, - "offset": 134 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 4, - "offset": 97 - }, - "end": { - "line": 6, - "column": 41, - "offset": 134 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 94 - }, - "end": { - "line": 6, - "column": 41, - "offset": 134 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 6, - "column": 41, - "offset": 134 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 7, - "column": 1, - "offset": 135 - } - } -} diff --git a/test/fixtures/tree/task-list-ordered.nogfm.json b/test/fixtures/tree/task-list-ordered.nogfm.json deleted file mode 100644 index 11d300d76..000000000 --- a/test/fixtures/tree/task-list-ordered.nogfm.json +++ /dev/null @@ -1,549 +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": " ", - "label": " ", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 1, - "column": 5, - "offset": 4 - }, - "end": { - "line": 1, - "column": 6, - "offset": 5 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 4, - "offset": 3 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " Mercury;", - "position": { - "start": { - "line": 1, - "column": 7, - "offset": 6 - }, - "end": { - "line": 1, - "column": 16, - "offset": 15 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 4, - "offset": 3 - }, - "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": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[] Venus (this one’s invalid);", - "position": { - "start": { - "line": 2, - "column": 4, - "offset": 19 - }, - "end": { - "line": 2, - "column": 34, - "offset": 49 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 2, - "column": 4, - "offset": 19 - }, - "end": { - "line": 2, - "column": 34, - "offset": 49 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 2, - "column": 1, - "offset": 16 - }, - "end": { - "line": 2, - "column": 34, - "offset": 49 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "x", - "label": "x", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "x", - "position": { - "start": { - "line": 3, - "column": 5, - "offset": 54 - }, - "end": { - "line": 3, - "column": 6, - "offset": 55 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 4, - "offset": 53 - }, - "end": { - "line": 3, - "column": 7, - "offset": 56 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " Earth:", - "position": { - "start": { - "line": 3, - "column": 7, - "offset": 56 - }, - "end": { - "line": 3, - "column": 14, - "offset": 63 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 4, - "offset": 53 - }, - "end": { - "line": 3, - "column": 14, - "offset": 63 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "x", - "label": "x", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "x", - "position": { - "start": { - "line": 4, - "column": 9, - "offset": 72 - }, - "end": { - "line": 4, - "column": 10, - "offset": 73 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 8, - "offset": 71 - }, - "end": { - "line": 4, - "column": 11, - "offset": 74 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " Moon.", - "position": { - "start": { - "line": 4, - "column": 11, - "offset": 74 - }, - "end": { - "line": 4, - "column": 17, - "offset": 80 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 8, - "offset": 71 - }, - "end": { - "line": 4, - "column": 17, - "offset": 80 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 5, - "offset": 68 - }, - "end": { - "line": 4, - "column": 17, - "offset": 80 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 5, - "offset": 68 - }, - "end": { - "line": 4, - "column": 17, - "offset": 80 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 50 - }, - "end": { - "line": 4, - "column": 17, - "offset": 80 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": " ", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 5, - "column": 5, - "offset": 85 - }, - "end": { - "line": 5, - "column": 6, - "offset": 86 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 4, - "offset": 84 - }, - "end": { - "line": 5, - "column": 7, - "offset": 87 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " Mars;", - "position": { - "start": { - "line": 5, - "column": 7, - "offset": 87 - }, - "end": { - "line": 5, - "column": 13, - "offset": 93 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 4, - "offset": 84 - }, - "end": { - "line": 5, - "column": 13, - "offset": 93 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 81 - }, - "end": { - "line": 5, - "column": 13, - "offset": 93 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[] Neptune (this one’s also invalid).", - "position": { - "start": { - "line": 6, - "column": 4, - "offset": 97 - }, - "end": { - "line": 6, - "column": 41, - "offset": 134 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 4, - "offset": 97 - }, - "end": { - "line": 6, - "column": 41, - "offset": 134 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 94 - }, - "end": { - "line": 6, - "column": 41, - "offset": 134 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 6, - "column": 41, - "offset": 134 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 7, - "column": 1, - "offset": 135 - } - } -} diff --git a/test/fixtures/tree/task-list-ordered.nogfm.pedantic.json b/test/fixtures/tree/task-list-ordered.nogfm.pedantic.json deleted file mode 100644 index 11d300d76..000000000 --- a/test/fixtures/tree/task-list-ordered.nogfm.pedantic.json +++ /dev/null @@ -1,549 +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": " ", - "label": " ", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 1, - "column": 5, - "offset": 4 - }, - "end": { - "line": 1, - "column": 6, - "offset": 5 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 4, - "offset": 3 - }, - "end": { - "line": 1, - "column": 7, - "offset": 6 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " Mercury;", - "position": { - "start": { - "line": 1, - "column": 7, - "offset": 6 - }, - "end": { - "line": 1, - "column": 16, - "offset": 15 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 4, - "offset": 3 - }, - "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": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[] Venus (this one’s invalid);", - "position": { - "start": { - "line": 2, - "column": 4, - "offset": 19 - }, - "end": { - "line": 2, - "column": 34, - "offset": 49 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 2, - "column": 4, - "offset": 19 - }, - "end": { - "line": 2, - "column": 34, - "offset": 49 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 2, - "column": 1, - "offset": 16 - }, - "end": { - "line": 2, - "column": 34, - "offset": 49 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "x", - "label": "x", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "x", - "position": { - "start": { - "line": 3, - "column": 5, - "offset": 54 - }, - "end": { - "line": 3, - "column": 6, - "offset": 55 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 4, - "offset": 53 - }, - "end": { - "line": 3, - "column": 7, - "offset": 56 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " Earth:", - "position": { - "start": { - "line": 3, - "column": 7, - "offset": 56 - }, - "end": { - "line": 3, - "column": 14, - "offset": 63 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 4, - "offset": 53 - }, - "end": { - "line": 3, - "column": 14, - "offset": 63 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "x", - "label": "x", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "x", - "position": { - "start": { - "line": 4, - "column": 9, - "offset": 72 - }, - "end": { - "line": 4, - "column": 10, - "offset": 73 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 8, - "offset": 71 - }, - "end": { - "line": 4, - "column": 11, - "offset": 74 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " Moon.", - "position": { - "start": { - "line": 4, - "column": 11, - "offset": 74 - }, - "end": { - "line": 4, - "column": 17, - "offset": 80 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 8, - "offset": 71 - }, - "end": { - "line": 4, - "column": 17, - "offset": 80 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 5, - "offset": 68 - }, - "end": { - "line": 4, - "column": 17, - "offset": 80 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 5, - "offset": 68 - }, - "end": { - "line": 4, - "column": 17, - "offset": 80 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 50 - }, - "end": { - "line": 4, - "column": 17, - "offset": 80 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": " ", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 5, - "column": 5, - "offset": 85 - }, - "end": { - "line": 5, - "column": 6, - "offset": 86 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 4, - "offset": 84 - }, - "end": { - "line": 5, - "column": 7, - "offset": 87 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " Mars;", - "position": { - "start": { - "line": 5, - "column": 7, - "offset": 87 - }, - "end": { - "line": 5, - "column": 13, - "offset": 93 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 4, - "offset": 84 - }, - "end": { - "line": 5, - "column": 13, - "offset": 93 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 81 - }, - "end": { - "line": 5, - "column": 13, - "offset": 93 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[] Neptune (this one’s also invalid).", - "position": { - "start": { - "line": 6, - "column": 4, - "offset": 97 - }, - "end": { - "line": 6, - "column": 41, - "offset": 134 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 4, - "offset": 97 - }, - "end": { - "line": 6, - "column": 41, - "offset": 134 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 94 - }, - "end": { - "line": 6, - "column": 41, - "offset": 134 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 6, - "column": 41, - "offset": 134 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 7, - "column": 1, - "offset": 135 - } - } -} diff --git a/test/fixtures/tree/task-list-ordered.pedantic.json b/test/fixtures/tree/task-list-ordered.pedantic.json deleted file mode 100644 index 86c859831..000000000 --- a/test/fixtures/tree/task-list-ordered.pedantic.json +++ /dev/null @@ -1,397 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": false, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Mercury;", - "position": { - "start": { - "line": 1, - "column": 8, - "offset": 7 - }, - "end": { - "line": 1, - "column": 16, - "offset": 15 - }, - "indent": [] - } - } - ], - "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": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[] Venus (this one’s invalid);", - "position": { - "start": { - "line": 2, - "column": 4, - "offset": 19 - }, - "end": { - "line": 2, - "column": 34, - "offset": 49 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 2, - "column": 4, - "offset": 19 - }, - "end": { - "line": 2, - "column": 34, - "offset": 49 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 2, - "column": 1, - "offset": 16 - }, - "end": { - "line": 2, - "column": 34, - "offset": 49 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": true, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Earth:", - "position": { - "start": { - "line": 3, - "column": 8, - "offset": 57 - }, - "end": { - "line": 3, - "column": 14, - "offset": 63 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 8, - "offset": 57 - }, - "end": { - "line": 3, - "column": 14, - "offset": 63 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": true, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Moon.", - "position": { - "start": { - "line": 4, - "column": 12, - "offset": 75 - }, - "end": { - "line": 4, - "column": 17, - "offset": 80 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 12, - "offset": 75 - }, - "end": { - "line": 4, - "column": 17, - "offset": 80 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 5, - "offset": 68 - }, - "end": { - "line": 4, - "column": 17, - "offset": 80 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 5, - "offset": 68 - }, - "end": { - "line": 4, - "column": 17, - "offset": 80 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 50 - }, - "end": { - "line": 4, - "column": 17, - "offset": 80 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": false, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Mars;", - "position": { - "start": { - "line": 5, - "column": 8, - "offset": 88 - }, - "end": { - "line": 5, - "column": 13, - "offset": 93 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 8, - "offset": 88 - }, - "end": { - "line": 5, - "column": 13, - "offset": 93 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 81 - }, - "end": { - "line": 5, - "column": 13, - "offset": 93 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[] Neptune (this one’s also invalid).", - "position": { - "start": { - "line": 6, - "column": 4, - "offset": 97 - }, - "end": { - "line": 6, - "column": 41, - "offset": 134 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 4, - "offset": 97 - }, - "end": { - "line": 6, - "column": 41, - "offset": 134 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 94 - }, - "end": { - "line": 6, - "column": 41, - "offset": 134 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 6, - "column": 41, - "offset": 134 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 7, - "column": 1, - "offset": 135 - } - } -} diff --git a/test/fixtures/tree/task-list-unordered-asterisk.json b/test/fixtures/tree/task-list-unordered-asterisk.json deleted file mode 100644 index 3a0a27ff8..000000000 --- a/test/fixtures/tree/task-list-unordered-asterisk.json +++ /dev/null @@ -1,397 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": false, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Mercury;", - "position": { - "start": { - "line": 1, - "column": 7, - "offset": 6 - }, - "end": { - "line": 1, - "column": 15, - "offset": 14 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 7, - "offset": 6 - }, - "end": { - "line": 1, - "column": 15, - "offset": 14 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 15, - "offset": 14 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[] Venus (this one’s invalid);", - "position": { - "start": { - "line": 2, - "column": 3, - "offset": 17 - }, - "end": { - "line": 2, - "column": 33, - "offset": 47 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 2, - "column": 3, - "offset": 17 - }, - "end": { - "line": 2, - "column": 33, - "offset": 47 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 2, - "column": 1, - "offset": 15 - }, - "end": { - "line": 2, - "column": 33, - "offset": 47 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": true, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Earth:", - "position": { - "start": { - "line": 3, - "column": 7, - "offset": 54 - }, - "end": { - "line": 3, - "column": 13, - "offset": 60 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 7, - "offset": 54 - }, - "end": { - "line": 3, - "column": 13, - "offset": 60 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": true, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Moon.", - "position": { - "start": { - "line": 4, - "column": 11, - "offset": 71 - }, - "end": { - "line": 4, - "column": 16, - "offset": 76 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 11, - "offset": 71 - }, - "end": { - "line": 4, - "column": 16, - "offset": 76 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 3, - "offset": 63 - }, - "end": { - "line": 4, - "column": 16, - "offset": 76 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 3, - "offset": 63 - }, - "end": { - "line": 4, - "column": 16, - "offset": 76 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 48 - }, - "end": { - "line": 4, - "column": 16, - "offset": 76 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": false, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Mars;", - "position": { - "start": { - "line": 5, - "column": 7, - "offset": 83 - }, - "end": { - "line": 5, - "column": 12, - "offset": 88 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 7, - "offset": 83 - }, - "end": { - "line": 5, - "column": 12, - "offset": 88 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 77 - }, - "end": { - "line": 5, - "column": 12, - "offset": 88 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[] Neptune (this one’s also invalid).", - "position": { - "start": { - "line": 6, - "column": 3, - "offset": 91 - }, - "end": { - "line": 6, - "column": 40, - "offset": 128 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 3, - "offset": 91 - }, - "end": { - "line": 6, - "column": 40, - "offset": 128 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 89 - }, - "end": { - "line": 6, - "column": 40, - "offset": 128 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 6, - "column": 40, - "offset": 128 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 7, - "column": 1, - "offset": 129 - } - } -} diff --git a/test/fixtures/tree/task-list-unordered-asterisk.nogfm.json b/test/fixtures/tree/task-list-unordered-asterisk.nogfm.json deleted file mode 100644 index ab301b9d6..000000000 --- a/test/fixtures/tree/task-list-unordered-asterisk.nogfm.json +++ /dev/null @@ -1,549 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": " ", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 1, - "column": 4, - "offset": 3 - }, - "end": { - "line": 1, - "column": 5, - "offset": 4 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 6, - "offset": 5 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " Mercury;", - "position": { - "start": { - "line": 1, - "column": 6, - "offset": 5 - }, - "end": { - "line": 1, - "column": 15, - "offset": 14 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 15, - "offset": 14 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 15, - "offset": 14 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[] Venus (this one’s invalid);", - "position": { - "start": { - "line": 2, - "column": 3, - "offset": 17 - }, - "end": { - "line": 2, - "column": 33, - "offset": 47 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 2, - "column": 3, - "offset": 17 - }, - "end": { - "line": 2, - "column": 33, - "offset": 47 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 2, - "column": 1, - "offset": 15 - }, - "end": { - "line": 2, - "column": 33, - "offset": 47 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "x", - "label": "x", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "x", - "position": { - "start": { - "line": 3, - "column": 4, - "offset": 51 - }, - "end": { - "line": 3, - "column": 5, - "offset": 52 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 50 - }, - "end": { - "line": 3, - "column": 6, - "offset": 53 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " Earth:", - "position": { - "start": { - "line": 3, - "column": 6, - "offset": 53 - }, - "end": { - "line": 3, - "column": 13, - "offset": 60 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 50 - }, - "end": { - "line": 3, - "column": 13, - "offset": 60 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "x", - "label": "x", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "x", - "position": { - "start": { - "line": 4, - "column": 8, - "offset": 68 - }, - "end": { - "line": 4, - "column": 9, - "offset": 69 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 7, - "offset": 67 - }, - "end": { - "line": 4, - "column": 10, - "offset": 70 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " Moon.", - "position": { - "start": { - "line": 4, - "column": 10, - "offset": 70 - }, - "end": { - "line": 4, - "column": 16, - "offset": 76 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 7, - "offset": 67 - }, - "end": { - "line": 4, - "column": 16, - "offset": 76 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 3, - "offset": 63 - }, - "end": { - "line": 4, - "column": 16, - "offset": 76 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 3, - "offset": 63 - }, - "end": { - "line": 4, - "column": 16, - "offset": 76 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 48 - }, - "end": { - "line": 4, - "column": 16, - "offset": 76 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": " ", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 5, - "column": 4, - "offset": 80 - }, - "end": { - "line": 5, - "column": 5, - "offset": 81 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 3, - "offset": 79 - }, - "end": { - "line": 5, - "column": 6, - "offset": 82 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " Mars;", - "position": { - "start": { - "line": 5, - "column": 6, - "offset": 82 - }, - "end": { - "line": 5, - "column": 12, - "offset": 88 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 3, - "offset": 79 - }, - "end": { - "line": 5, - "column": 12, - "offset": 88 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 77 - }, - "end": { - "line": 5, - "column": 12, - "offset": 88 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[] Neptune (this one’s also invalid).", - "position": { - "start": { - "line": 6, - "column": 3, - "offset": 91 - }, - "end": { - "line": 6, - "column": 40, - "offset": 128 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 3, - "offset": 91 - }, - "end": { - "line": 6, - "column": 40, - "offset": 128 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 89 - }, - "end": { - "line": 6, - "column": 40, - "offset": 128 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 6, - "column": 40, - "offset": 128 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 7, - "column": 1, - "offset": 129 - } - } -} diff --git a/test/fixtures/tree/task-list-unordered-asterisk.nogfm.pedantic.json b/test/fixtures/tree/task-list-unordered-asterisk.nogfm.pedantic.json deleted file mode 100644 index 77b4cd306..000000000 --- a/test/fixtures/tree/task-list-unordered-asterisk.nogfm.pedantic.json +++ /dev/null @@ -1,549 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": " ", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 1, - "column": 4, - "offset": 3 - }, - "end": { - "line": 1, - "column": 5, - "offset": 4 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 6, - "offset": 5 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " Mercury;", - "position": { - "start": { - "line": 1, - "column": 6, - "offset": 5 - }, - "end": { - "line": 1, - "column": 15, - "offset": 14 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 15, - "offset": 14 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 15, - "offset": 14 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[] Venus (this one’s invalid);", - "position": { - "start": { - "line": 2, - "column": 3, - "offset": 17 - }, - "end": { - "line": 2, - "column": 33, - "offset": 47 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 2, - "column": 3, - "offset": 17 - }, - "end": { - "line": 2, - "column": 33, - "offset": 47 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 2, - "column": 1, - "offset": 15 - }, - "end": { - "line": 2, - "column": 33, - "offset": 47 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "x", - "label": "x", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "x", - "position": { - "start": { - "line": 3, - "column": 4, - "offset": 51 - }, - "end": { - "line": 3, - "column": 5, - "offset": 52 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 50 - }, - "end": { - "line": 3, - "column": 6, - "offset": 53 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " Earth:", - "position": { - "start": { - "line": 3, - "column": 6, - "offset": 53 - }, - "end": { - "line": 3, - "column": 13, - "offset": 60 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 50 - }, - "end": { - "line": 3, - "column": 13, - "offset": 60 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "x", - "label": "x", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "x", - "position": { - "start": { - "line": 4, - "column": 8, - "offset": 68 - }, - "end": { - "line": 4, - "column": 9, - "offset": 69 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 7, - "offset": 67 - }, - "end": { - "line": 4, - "column": 10, - "offset": 70 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " Moon.", - "position": { - "start": { - "line": 4, - "column": 10, - "offset": 70 - }, - "end": { - "line": 4, - "column": 16, - "offset": 76 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 7, - "offset": 67 - }, - "end": { - "line": 4, - "column": 16, - "offset": 76 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 5, - "offset": 65 - }, - "end": { - "line": 4, - "column": 16, - "offset": 76 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 5, - "offset": 65 - }, - "end": { - "line": 4, - "column": 16, - "offset": 76 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 48 - }, - "end": { - "line": 4, - "column": 16, - "offset": 76 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": " ", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 5, - "column": 4, - "offset": 80 - }, - "end": { - "line": 5, - "column": 5, - "offset": 81 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 3, - "offset": 79 - }, - "end": { - "line": 5, - "column": 6, - "offset": 82 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " Mars;", - "position": { - "start": { - "line": 5, - "column": 6, - "offset": 82 - }, - "end": { - "line": 5, - "column": 12, - "offset": 88 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 3, - "offset": 79 - }, - "end": { - "line": 5, - "column": 12, - "offset": 88 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 77 - }, - "end": { - "line": 5, - "column": 12, - "offset": 88 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[] Neptune (this one’s also invalid).", - "position": { - "start": { - "line": 6, - "column": 3, - "offset": 91 - }, - "end": { - "line": 6, - "column": 40, - "offset": 128 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 3, - "offset": 91 - }, - "end": { - "line": 6, - "column": 40, - "offset": 128 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 89 - }, - "end": { - "line": 6, - "column": 40, - "offset": 128 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 6, - "column": 40, - "offset": 128 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 7, - "column": 1, - "offset": 129 - } - } -} diff --git a/test/fixtures/tree/task-list-unordered-asterisk.pedantic.json b/test/fixtures/tree/task-list-unordered-asterisk.pedantic.json deleted file mode 100644 index ca3a2372a..000000000 --- a/test/fixtures/tree/task-list-unordered-asterisk.pedantic.json +++ /dev/null @@ -1,397 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": false, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Mercury;", - "position": { - "start": { - "line": 1, - "column": 7, - "offset": 6 - }, - "end": { - "line": 1, - "column": 15, - "offset": 14 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 7, - "offset": 6 - }, - "end": { - "line": 1, - "column": 15, - "offset": 14 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 15, - "offset": 14 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[] Venus (this one’s invalid);", - "position": { - "start": { - "line": 2, - "column": 3, - "offset": 17 - }, - "end": { - "line": 2, - "column": 33, - "offset": 47 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 2, - "column": 3, - "offset": 17 - }, - "end": { - "line": 2, - "column": 33, - "offset": 47 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 2, - "column": 1, - "offset": 15 - }, - "end": { - "line": 2, - "column": 33, - "offset": 47 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": true, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Earth:", - "position": { - "start": { - "line": 3, - "column": 7, - "offset": 54 - }, - "end": { - "line": 3, - "column": 13, - "offset": 60 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 7, - "offset": 54 - }, - "end": { - "line": 3, - "column": 13, - "offset": 60 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": true, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Moon.", - "position": { - "start": { - "line": 4, - "column": 11, - "offset": 71 - }, - "end": { - "line": 4, - "column": 16, - "offset": 76 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 11, - "offset": 71 - }, - "end": { - "line": 4, - "column": 16, - "offset": 76 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 5, - "offset": 65 - }, - "end": { - "line": 4, - "column": 16, - "offset": 76 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 5, - "offset": 65 - }, - "end": { - "line": 4, - "column": 16, - "offset": 76 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 48 - }, - "end": { - "line": 4, - "column": 16, - "offset": 76 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": false, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Mars;", - "position": { - "start": { - "line": 5, - "column": 7, - "offset": 83 - }, - "end": { - "line": 5, - "column": 12, - "offset": 88 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 7, - "offset": 83 - }, - "end": { - "line": 5, - "column": 12, - "offset": 88 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 77 - }, - "end": { - "line": 5, - "column": 12, - "offset": 88 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[] Neptune (this one’s also invalid).", - "position": { - "start": { - "line": 6, - "column": 3, - "offset": 91 - }, - "end": { - "line": 6, - "column": 40, - "offset": 128 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 3, - "offset": 91 - }, - "end": { - "line": 6, - "column": 40, - "offset": 128 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 89 - }, - "end": { - "line": 6, - "column": 40, - "offset": 128 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 6, - "column": 40, - "offset": 128 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 7, - "column": 1, - "offset": 129 - } - } -} diff --git a/test/fixtures/tree/task-list-unordered-dash.json b/test/fixtures/tree/task-list-unordered-dash.json deleted file mode 100644 index 3a0a27ff8..000000000 --- a/test/fixtures/tree/task-list-unordered-dash.json +++ /dev/null @@ -1,397 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": false, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Mercury;", - "position": { - "start": { - "line": 1, - "column": 7, - "offset": 6 - }, - "end": { - "line": 1, - "column": 15, - "offset": 14 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 7, - "offset": 6 - }, - "end": { - "line": 1, - "column": 15, - "offset": 14 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 15, - "offset": 14 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[] Venus (this one’s invalid);", - "position": { - "start": { - "line": 2, - "column": 3, - "offset": 17 - }, - "end": { - "line": 2, - "column": 33, - "offset": 47 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 2, - "column": 3, - "offset": 17 - }, - "end": { - "line": 2, - "column": 33, - "offset": 47 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 2, - "column": 1, - "offset": 15 - }, - "end": { - "line": 2, - "column": 33, - "offset": 47 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": true, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Earth:", - "position": { - "start": { - "line": 3, - "column": 7, - "offset": 54 - }, - "end": { - "line": 3, - "column": 13, - "offset": 60 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 7, - "offset": 54 - }, - "end": { - "line": 3, - "column": 13, - "offset": 60 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": true, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Moon.", - "position": { - "start": { - "line": 4, - "column": 11, - "offset": 71 - }, - "end": { - "line": 4, - "column": 16, - "offset": 76 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 11, - "offset": 71 - }, - "end": { - "line": 4, - "column": 16, - "offset": 76 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 3, - "offset": 63 - }, - "end": { - "line": 4, - "column": 16, - "offset": 76 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 3, - "offset": 63 - }, - "end": { - "line": 4, - "column": 16, - "offset": 76 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 48 - }, - "end": { - "line": 4, - "column": 16, - "offset": 76 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": false, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Mars;", - "position": { - "start": { - "line": 5, - "column": 7, - "offset": 83 - }, - "end": { - "line": 5, - "column": 12, - "offset": 88 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 7, - "offset": 83 - }, - "end": { - "line": 5, - "column": 12, - "offset": 88 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 77 - }, - "end": { - "line": 5, - "column": 12, - "offset": 88 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[] Neptune (this one’s also invalid).", - "position": { - "start": { - "line": 6, - "column": 3, - "offset": 91 - }, - "end": { - "line": 6, - "column": 40, - "offset": 128 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 3, - "offset": 91 - }, - "end": { - "line": 6, - "column": 40, - "offset": 128 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 89 - }, - "end": { - "line": 6, - "column": 40, - "offset": 128 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 6, - "column": 40, - "offset": 128 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 7, - "column": 1, - "offset": 129 - } - } -} diff --git a/test/fixtures/tree/task-list-unordered-dash.nogfm.json b/test/fixtures/tree/task-list-unordered-dash.nogfm.json deleted file mode 100644 index ab301b9d6..000000000 --- a/test/fixtures/tree/task-list-unordered-dash.nogfm.json +++ /dev/null @@ -1,549 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": " ", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 1, - "column": 4, - "offset": 3 - }, - "end": { - "line": 1, - "column": 5, - "offset": 4 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 6, - "offset": 5 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " Mercury;", - "position": { - "start": { - "line": 1, - "column": 6, - "offset": 5 - }, - "end": { - "line": 1, - "column": 15, - "offset": 14 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 15, - "offset": 14 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 15, - "offset": 14 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[] Venus (this one’s invalid);", - "position": { - "start": { - "line": 2, - "column": 3, - "offset": 17 - }, - "end": { - "line": 2, - "column": 33, - "offset": 47 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 2, - "column": 3, - "offset": 17 - }, - "end": { - "line": 2, - "column": 33, - "offset": 47 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 2, - "column": 1, - "offset": 15 - }, - "end": { - "line": 2, - "column": 33, - "offset": 47 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "x", - "label": "x", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "x", - "position": { - "start": { - "line": 3, - "column": 4, - "offset": 51 - }, - "end": { - "line": 3, - "column": 5, - "offset": 52 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 50 - }, - "end": { - "line": 3, - "column": 6, - "offset": 53 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " Earth:", - "position": { - "start": { - "line": 3, - "column": 6, - "offset": 53 - }, - "end": { - "line": 3, - "column": 13, - "offset": 60 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 50 - }, - "end": { - "line": 3, - "column": 13, - "offset": 60 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "x", - "label": "x", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "x", - "position": { - "start": { - "line": 4, - "column": 8, - "offset": 68 - }, - "end": { - "line": 4, - "column": 9, - "offset": 69 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 7, - "offset": 67 - }, - "end": { - "line": 4, - "column": 10, - "offset": 70 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " Moon.", - "position": { - "start": { - "line": 4, - "column": 10, - "offset": 70 - }, - "end": { - "line": 4, - "column": 16, - "offset": 76 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 7, - "offset": 67 - }, - "end": { - "line": 4, - "column": 16, - "offset": 76 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 3, - "offset": 63 - }, - "end": { - "line": 4, - "column": 16, - "offset": 76 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 3, - "offset": 63 - }, - "end": { - "line": 4, - "column": 16, - "offset": 76 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 48 - }, - "end": { - "line": 4, - "column": 16, - "offset": 76 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": " ", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 5, - "column": 4, - "offset": 80 - }, - "end": { - "line": 5, - "column": 5, - "offset": 81 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 3, - "offset": 79 - }, - "end": { - "line": 5, - "column": 6, - "offset": 82 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " Mars;", - "position": { - "start": { - "line": 5, - "column": 6, - "offset": 82 - }, - "end": { - "line": 5, - "column": 12, - "offset": 88 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 3, - "offset": 79 - }, - "end": { - "line": 5, - "column": 12, - "offset": 88 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 77 - }, - "end": { - "line": 5, - "column": 12, - "offset": 88 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[] Neptune (this one’s also invalid).", - "position": { - "start": { - "line": 6, - "column": 3, - "offset": 91 - }, - "end": { - "line": 6, - "column": 40, - "offset": 128 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 3, - "offset": 91 - }, - "end": { - "line": 6, - "column": 40, - "offset": 128 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 89 - }, - "end": { - "line": 6, - "column": 40, - "offset": 128 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 6, - "column": 40, - "offset": 128 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 7, - "column": 1, - "offset": 129 - } - } -} diff --git a/test/fixtures/tree/task-list-unordered-dash.nogfm.pedantic.json b/test/fixtures/tree/task-list-unordered-dash.nogfm.pedantic.json deleted file mode 100644 index 77b4cd306..000000000 --- a/test/fixtures/tree/task-list-unordered-dash.nogfm.pedantic.json +++ /dev/null @@ -1,549 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": " ", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 1, - "column": 4, - "offset": 3 - }, - "end": { - "line": 1, - "column": 5, - "offset": 4 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 6, - "offset": 5 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " Mercury;", - "position": { - "start": { - "line": 1, - "column": 6, - "offset": 5 - }, - "end": { - "line": 1, - "column": 15, - "offset": 14 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 15, - "offset": 14 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 15, - "offset": 14 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[] Venus (this one’s invalid);", - "position": { - "start": { - "line": 2, - "column": 3, - "offset": 17 - }, - "end": { - "line": 2, - "column": 33, - "offset": 47 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 2, - "column": 3, - "offset": 17 - }, - "end": { - "line": 2, - "column": 33, - "offset": 47 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 2, - "column": 1, - "offset": 15 - }, - "end": { - "line": 2, - "column": 33, - "offset": 47 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "x", - "label": "x", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "x", - "position": { - "start": { - "line": 3, - "column": 4, - "offset": 51 - }, - "end": { - "line": 3, - "column": 5, - "offset": 52 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 50 - }, - "end": { - "line": 3, - "column": 6, - "offset": 53 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " Earth:", - "position": { - "start": { - "line": 3, - "column": 6, - "offset": 53 - }, - "end": { - "line": 3, - "column": 13, - "offset": 60 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 50 - }, - "end": { - "line": 3, - "column": 13, - "offset": 60 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "x", - "label": "x", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "x", - "position": { - "start": { - "line": 4, - "column": 8, - "offset": 68 - }, - "end": { - "line": 4, - "column": 9, - "offset": 69 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 7, - "offset": 67 - }, - "end": { - "line": 4, - "column": 10, - "offset": 70 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " Moon.", - "position": { - "start": { - "line": 4, - "column": 10, - "offset": 70 - }, - "end": { - "line": 4, - "column": 16, - "offset": 76 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 7, - "offset": 67 - }, - "end": { - "line": 4, - "column": 16, - "offset": 76 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 5, - "offset": 65 - }, - "end": { - "line": 4, - "column": 16, - "offset": 76 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 5, - "offset": 65 - }, - "end": { - "line": 4, - "column": 16, - "offset": 76 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 48 - }, - "end": { - "line": 4, - "column": 16, - "offset": 76 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": " ", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 5, - "column": 4, - "offset": 80 - }, - "end": { - "line": 5, - "column": 5, - "offset": 81 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 3, - "offset": 79 - }, - "end": { - "line": 5, - "column": 6, - "offset": 82 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " Mars;", - "position": { - "start": { - "line": 5, - "column": 6, - "offset": 82 - }, - "end": { - "line": 5, - "column": 12, - "offset": 88 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 3, - "offset": 79 - }, - "end": { - "line": 5, - "column": 12, - "offset": 88 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 77 - }, - "end": { - "line": 5, - "column": 12, - "offset": 88 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[] Neptune (this one’s also invalid).", - "position": { - "start": { - "line": 6, - "column": 3, - "offset": 91 - }, - "end": { - "line": 6, - "column": 40, - "offset": 128 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 3, - "offset": 91 - }, - "end": { - "line": 6, - "column": 40, - "offset": 128 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 89 - }, - "end": { - "line": 6, - "column": 40, - "offset": 128 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 6, - "column": 40, - "offset": 128 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 7, - "column": 1, - "offset": 129 - } - } -} diff --git a/test/fixtures/tree/task-list-unordered-dash.pedantic.json b/test/fixtures/tree/task-list-unordered-dash.pedantic.json deleted file mode 100644 index ca3a2372a..000000000 --- a/test/fixtures/tree/task-list-unordered-dash.pedantic.json +++ /dev/null @@ -1,397 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": false, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Mercury;", - "position": { - "start": { - "line": 1, - "column": 7, - "offset": 6 - }, - "end": { - "line": 1, - "column": 15, - "offset": 14 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 7, - "offset": 6 - }, - "end": { - "line": 1, - "column": 15, - "offset": 14 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 15, - "offset": 14 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[] Venus (this one’s invalid);", - "position": { - "start": { - "line": 2, - "column": 3, - "offset": 17 - }, - "end": { - "line": 2, - "column": 33, - "offset": 47 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 2, - "column": 3, - "offset": 17 - }, - "end": { - "line": 2, - "column": 33, - "offset": 47 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 2, - "column": 1, - "offset": 15 - }, - "end": { - "line": 2, - "column": 33, - "offset": 47 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": true, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Earth:", - "position": { - "start": { - "line": 3, - "column": 7, - "offset": 54 - }, - "end": { - "line": 3, - "column": 13, - "offset": 60 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 7, - "offset": 54 - }, - "end": { - "line": 3, - "column": 13, - "offset": 60 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": true, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Moon.", - "position": { - "start": { - "line": 4, - "column": 11, - "offset": 71 - }, - "end": { - "line": 4, - "column": 16, - "offset": 76 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 11, - "offset": 71 - }, - "end": { - "line": 4, - "column": 16, - "offset": 76 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 5, - "offset": 65 - }, - "end": { - "line": 4, - "column": 16, - "offset": 76 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 5, - "offset": 65 - }, - "end": { - "line": 4, - "column": 16, - "offset": 76 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 48 - }, - "end": { - "line": 4, - "column": 16, - "offset": 76 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": false, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Mars;", - "position": { - "start": { - "line": 5, - "column": 7, - "offset": 83 - }, - "end": { - "line": 5, - "column": 12, - "offset": 88 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 7, - "offset": 83 - }, - "end": { - "line": 5, - "column": 12, - "offset": 88 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 77 - }, - "end": { - "line": 5, - "column": 12, - "offset": 88 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[] Neptune (this one’s also invalid).", - "position": { - "start": { - "line": 6, - "column": 3, - "offset": 91 - }, - "end": { - "line": 6, - "column": 40, - "offset": 128 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 3, - "offset": 91 - }, - "end": { - "line": 6, - "column": 40, - "offset": 128 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 89 - }, - "end": { - "line": 6, - "column": 40, - "offset": 128 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 6, - "column": 40, - "offset": 128 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 7, - "column": 1, - "offset": 129 - } - } -} diff --git a/test/fixtures/tree/task-list-unordered-plus.json b/test/fixtures/tree/task-list-unordered-plus.json deleted file mode 100644 index 3a0a27ff8..000000000 --- a/test/fixtures/tree/task-list-unordered-plus.json +++ /dev/null @@ -1,397 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": false, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Mercury;", - "position": { - "start": { - "line": 1, - "column": 7, - "offset": 6 - }, - "end": { - "line": 1, - "column": 15, - "offset": 14 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 7, - "offset": 6 - }, - "end": { - "line": 1, - "column": 15, - "offset": 14 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 15, - "offset": 14 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[] Venus (this one’s invalid);", - "position": { - "start": { - "line": 2, - "column": 3, - "offset": 17 - }, - "end": { - "line": 2, - "column": 33, - "offset": 47 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 2, - "column": 3, - "offset": 17 - }, - "end": { - "line": 2, - "column": 33, - "offset": 47 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 2, - "column": 1, - "offset": 15 - }, - "end": { - "line": 2, - "column": 33, - "offset": 47 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": true, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Earth:", - "position": { - "start": { - "line": 3, - "column": 7, - "offset": 54 - }, - "end": { - "line": 3, - "column": 13, - "offset": 60 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 7, - "offset": 54 - }, - "end": { - "line": 3, - "column": 13, - "offset": 60 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": true, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Moon.", - "position": { - "start": { - "line": 4, - "column": 11, - "offset": 71 - }, - "end": { - "line": 4, - "column": 16, - "offset": 76 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 11, - "offset": 71 - }, - "end": { - "line": 4, - "column": 16, - "offset": 76 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 3, - "offset": 63 - }, - "end": { - "line": 4, - "column": 16, - "offset": 76 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 3, - "offset": 63 - }, - "end": { - "line": 4, - "column": 16, - "offset": 76 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 48 - }, - "end": { - "line": 4, - "column": 16, - "offset": 76 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": false, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Mars;", - "position": { - "start": { - "line": 5, - "column": 7, - "offset": 83 - }, - "end": { - "line": 5, - "column": 12, - "offset": 88 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 7, - "offset": 83 - }, - "end": { - "line": 5, - "column": 12, - "offset": 88 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 77 - }, - "end": { - "line": 5, - "column": 12, - "offset": 88 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[] Neptune (this one’s also invalid).", - "position": { - "start": { - "line": 6, - "column": 3, - "offset": 91 - }, - "end": { - "line": 6, - "column": 40, - "offset": 128 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 3, - "offset": 91 - }, - "end": { - "line": 6, - "column": 40, - "offset": 128 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 89 - }, - "end": { - "line": 6, - "column": 40, - "offset": 128 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 6, - "column": 40, - "offset": 128 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 7, - "column": 1, - "offset": 129 - } - } -} diff --git a/test/fixtures/tree/task-list-unordered-plus.nogfm.json b/test/fixtures/tree/task-list-unordered-plus.nogfm.json deleted file mode 100644 index ab301b9d6..000000000 --- a/test/fixtures/tree/task-list-unordered-plus.nogfm.json +++ /dev/null @@ -1,549 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": " ", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 1, - "column": 4, - "offset": 3 - }, - "end": { - "line": 1, - "column": 5, - "offset": 4 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 6, - "offset": 5 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " Mercury;", - "position": { - "start": { - "line": 1, - "column": 6, - "offset": 5 - }, - "end": { - "line": 1, - "column": 15, - "offset": 14 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 15, - "offset": 14 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 15, - "offset": 14 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[] Venus (this one’s invalid);", - "position": { - "start": { - "line": 2, - "column": 3, - "offset": 17 - }, - "end": { - "line": 2, - "column": 33, - "offset": 47 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 2, - "column": 3, - "offset": 17 - }, - "end": { - "line": 2, - "column": 33, - "offset": 47 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 2, - "column": 1, - "offset": 15 - }, - "end": { - "line": 2, - "column": 33, - "offset": 47 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "x", - "label": "x", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "x", - "position": { - "start": { - "line": 3, - "column": 4, - "offset": 51 - }, - "end": { - "line": 3, - "column": 5, - "offset": 52 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 50 - }, - "end": { - "line": 3, - "column": 6, - "offset": 53 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " Earth:", - "position": { - "start": { - "line": 3, - "column": 6, - "offset": 53 - }, - "end": { - "line": 3, - "column": 13, - "offset": 60 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 50 - }, - "end": { - "line": 3, - "column": 13, - "offset": 60 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "x", - "label": "x", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "x", - "position": { - "start": { - "line": 4, - "column": 8, - "offset": 68 - }, - "end": { - "line": 4, - "column": 9, - "offset": 69 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 7, - "offset": 67 - }, - "end": { - "line": 4, - "column": 10, - "offset": 70 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " Moon.", - "position": { - "start": { - "line": 4, - "column": 10, - "offset": 70 - }, - "end": { - "line": 4, - "column": 16, - "offset": 76 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 7, - "offset": 67 - }, - "end": { - "line": 4, - "column": 16, - "offset": 76 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 3, - "offset": 63 - }, - "end": { - "line": 4, - "column": 16, - "offset": 76 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 3, - "offset": 63 - }, - "end": { - "line": 4, - "column": 16, - "offset": 76 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 48 - }, - "end": { - "line": 4, - "column": 16, - "offset": 76 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": " ", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 5, - "column": 4, - "offset": 80 - }, - "end": { - "line": 5, - "column": 5, - "offset": 81 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 3, - "offset": 79 - }, - "end": { - "line": 5, - "column": 6, - "offset": 82 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " Mars;", - "position": { - "start": { - "line": 5, - "column": 6, - "offset": 82 - }, - "end": { - "line": 5, - "column": 12, - "offset": 88 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 3, - "offset": 79 - }, - "end": { - "line": 5, - "column": 12, - "offset": 88 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 77 - }, - "end": { - "line": 5, - "column": 12, - "offset": 88 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[] Neptune (this one’s also invalid).", - "position": { - "start": { - "line": 6, - "column": 3, - "offset": 91 - }, - "end": { - "line": 6, - "column": 40, - "offset": 128 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 3, - "offset": 91 - }, - "end": { - "line": 6, - "column": 40, - "offset": 128 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 89 - }, - "end": { - "line": 6, - "column": 40, - "offset": 128 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 6, - "column": 40, - "offset": 128 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 7, - "column": 1, - "offset": 129 - } - } -} diff --git a/test/fixtures/tree/task-list-unordered-plus.nogfm.pedantic.json b/test/fixtures/tree/task-list-unordered-plus.nogfm.pedantic.json deleted file mode 100644 index 77b4cd306..000000000 --- a/test/fixtures/tree/task-list-unordered-plus.nogfm.pedantic.json +++ /dev/null @@ -1,549 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": " ", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 1, - "column": 4, - "offset": 3 - }, - "end": { - "line": 1, - "column": 5, - "offset": 4 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 6, - "offset": 5 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " Mercury;", - "position": { - "start": { - "line": 1, - "column": 6, - "offset": 5 - }, - "end": { - "line": 1, - "column": 15, - "offset": 14 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 15, - "offset": 14 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 15, - "offset": 14 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[] Venus (this one’s invalid);", - "position": { - "start": { - "line": 2, - "column": 3, - "offset": 17 - }, - "end": { - "line": 2, - "column": 33, - "offset": 47 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 2, - "column": 3, - "offset": 17 - }, - "end": { - "line": 2, - "column": 33, - "offset": 47 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 2, - "column": 1, - "offset": 15 - }, - "end": { - "line": 2, - "column": 33, - "offset": 47 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "x", - "label": "x", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "x", - "position": { - "start": { - "line": 3, - "column": 4, - "offset": 51 - }, - "end": { - "line": 3, - "column": 5, - "offset": 52 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 50 - }, - "end": { - "line": 3, - "column": 6, - "offset": 53 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " Earth:", - "position": { - "start": { - "line": 3, - "column": 6, - "offset": 53 - }, - "end": { - "line": 3, - "column": 13, - "offset": 60 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 50 - }, - "end": { - "line": 3, - "column": 13, - "offset": 60 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "x", - "label": "x", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "x", - "position": { - "start": { - "line": 4, - "column": 8, - "offset": 68 - }, - "end": { - "line": 4, - "column": 9, - "offset": 69 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 7, - "offset": 67 - }, - "end": { - "line": 4, - "column": 10, - "offset": 70 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " Moon.", - "position": { - "start": { - "line": 4, - "column": 10, - "offset": 70 - }, - "end": { - "line": 4, - "column": 16, - "offset": 76 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 7, - "offset": 67 - }, - "end": { - "line": 4, - "column": 16, - "offset": 76 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 5, - "offset": 65 - }, - "end": { - "line": 4, - "column": 16, - "offset": 76 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 5, - "offset": 65 - }, - "end": { - "line": 4, - "column": 16, - "offset": 76 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 48 - }, - "end": { - "line": 4, - "column": 16, - "offset": 76 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": " ", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 5, - "column": 4, - "offset": 80 - }, - "end": { - "line": 5, - "column": 5, - "offset": 81 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 3, - "offset": 79 - }, - "end": { - "line": 5, - "column": 6, - "offset": 82 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " Mars;", - "position": { - "start": { - "line": 5, - "column": 6, - "offset": 82 - }, - "end": { - "line": 5, - "column": 12, - "offset": 88 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 3, - "offset": 79 - }, - "end": { - "line": 5, - "column": 12, - "offset": 88 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 77 - }, - "end": { - "line": 5, - "column": 12, - "offset": 88 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[] Neptune (this one’s also invalid).", - "position": { - "start": { - "line": 6, - "column": 3, - "offset": 91 - }, - "end": { - "line": 6, - "column": 40, - "offset": 128 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 3, - "offset": 91 - }, - "end": { - "line": 6, - "column": 40, - "offset": 128 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 89 - }, - "end": { - "line": 6, - "column": 40, - "offset": 128 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 6, - "column": 40, - "offset": 128 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 7, - "column": 1, - "offset": 129 - } - } -} diff --git a/test/fixtures/tree/task-list-unordered-plus.pedantic.json b/test/fixtures/tree/task-list-unordered-plus.pedantic.json deleted file mode 100644 index ca3a2372a..000000000 --- a/test/fixtures/tree/task-list-unordered-plus.pedantic.json +++ /dev/null @@ -1,397 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": false, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Mercury;", - "position": { - "start": { - "line": 1, - "column": 7, - "offset": 6 - }, - "end": { - "line": 1, - "column": 15, - "offset": 14 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 7, - "offset": 6 - }, - "end": { - "line": 1, - "column": 15, - "offset": 14 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 15, - "offset": 14 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[] Venus (this one’s invalid);", - "position": { - "start": { - "line": 2, - "column": 3, - "offset": 17 - }, - "end": { - "line": 2, - "column": 33, - "offset": 47 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 2, - "column": 3, - "offset": 17 - }, - "end": { - "line": 2, - "column": 33, - "offset": 47 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 2, - "column": 1, - "offset": 15 - }, - "end": { - "line": 2, - "column": 33, - "offset": 47 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": true, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Earth:", - "position": { - "start": { - "line": 3, - "column": 7, - "offset": 54 - }, - "end": { - "line": 3, - "column": 13, - "offset": 60 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 7, - "offset": 54 - }, - "end": { - "line": 3, - "column": 13, - "offset": 60 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": true, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Moon.", - "position": { - "start": { - "line": 4, - "column": 11, - "offset": 71 - }, - "end": { - "line": 4, - "column": 16, - "offset": 76 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 11, - "offset": 71 - }, - "end": { - "line": 4, - "column": 16, - "offset": 76 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 5, - "offset": 65 - }, - "end": { - "line": 4, - "column": 16, - "offset": 76 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 5, - "offset": 65 - }, - "end": { - "line": 4, - "column": 16, - "offset": 76 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 48 - }, - "end": { - "line": 4, - "column": 16, - "offset": 76 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": false, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Mars;", - "position": { - "start": { - "line": 5, - "column": 7, - "offset": 83 - }, - "end": { - "line": 5, - "column": 12, - "offset": 88 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 7, - "offset": 83 - }, - "end": { - "line": 5, - "column": 12, - "offset": 88 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 77 - }, - "end": { - "line": 5, - "column": 12, - "offset": 88 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "[] Neptune (this one’s also invalid).", - "position": { - "start": { - "line": 6, - "column": 3, - "offset": 91 - }, - "end": { - "line": 6, - "column": 40, - "offset": 128 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 3, - "offset": 91 - }, - "end": { - "line": 6, - "column": 40, - "offset": 128 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 89 - }, - "end": { - "line": 6, - "column": 40, - "offset": 128 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 6, - "column": 40, - "offset": 128 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 7, - "column": 1, - "offset": 129 - } - } -} diff --git a/test/fixtures/tree/task-list.commonmark.json b/test/fixtures/tree/task-list.commonmark.json deleted file mode 100644 index 365508182..000000000 --- a/test/fixtures/tree/task-list.commonmark.json +++ /dev/null @@ -1,3402 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Empty items", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 12, - "offset": 11 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 12, - "offset": 23 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": " ", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 4, - "column": 4, - "offset": 28 - }, - "end": { - "line": 4, - "column": 5, - "offset": 29 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 3, - "offset": 27 - }, - "end": { - "line": 4, - "column": 6, - "offset": 30 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 3, - "offset": 27 - }, - "end": { - "line": 4, - "column": 6, - "offset": 30 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 25 - }, - "end": { - "line": 4, - "column": 6, - "offset": 30 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": "\t", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "\t", - "position": { - "start": { - "line": 5, - "column": 4, - "offset": 34 - }, - "end": { - "line": 5, - "column": 5, - "offset": 35 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 3, - "offset": 33 - }, - "end": { - "line": 5, - "column": 6, - "offset": 36 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 3, - "offset": 33 - }, - "end": { - "line": 5, - "column": 6, - "offset": 36 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 31 - }, - "end": { - "line": 5, - "column": 6, - "offset": 36 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 25 - }, - "end": { - "line": 5, - "column": 6, - "offset": 36 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "x", - "label": "x", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "x", - "position": { - "start": { - "line": 7, - "column": 5, - "offset": 42 - }, - "end": { - "line": 7, - "column": 6, - "offset": 43 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 4, - "offset": 41 - }, - "end": { - "line": 7, - "column": 7, - "offset": 44 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 4, - "offset": 41 - }, - "end": { - "line": 7, - "column": 7, - "offset": 44 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 38 - }, - "end": { - "line": 7, - "column": 7, - "offset": 44 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "x", - "label": "X", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "X", - "position": { - "start": { - "line": 8, - "column": 5, - "offset": 49 - }, - "end": { - "line": 8, - "column": 6, - "offset": 50 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 8, - "column": 4, - "offset": 48 - }, - "end": { - "line": 8, - "column": 7, - "offset": 51 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 8, - "column": 4, - "offset": 48 - }, - "end": { - "line": 8, - "column": 7, - "offset": 51 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 8, - "column": 1, - "offset": 45 - }, - "end": { - "line": 8, - "column": 7, - "offset": 51 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 38 - }, - "end": { - "line": 8, - "column": 7, - "offset": 51 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Single space", - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 53 - }, - "end": { - "line": 10, - "column": 13, - "offset": 65 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 53 - }, - "end": { - "line": 11, - "column": 13, - "offset": 78 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": false, - "children": [], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 80 - }, - "end": { - "line": 13, - "column": 7, - "offset": 86 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": false, - "children": [], - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 87 - }, - "end": { - "line": 14, - "column": 7, - "offset": 93 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 80 - }, - "end": { - "line": 14, - "column": 7, - "offset": 93 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": true, - "children": [], - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 95 - }, - "end": { - "line": 16, - "column": 8, - "offset": 102 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": true, - "children": [], - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 103 - }, - "end": { - "line": 17, - "column": 8, - "offset": 110 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 95 - }, - "end": { - "line": 17, - "column": 8, - "offset": 110 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Tab", - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 112 - }, - "end": { - "line": 19, - "column": 4, - "offset": 115 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 112 - }, - "end": { - "line": 20, - "column": 4, - "offset": 119 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": false, - "children": [], - "position": { - "start": { - "line": 22, - "column": 1, - "offset": 121 - }, - "end": { - "line": 22, - "column": 7, - "offset": 127 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": false, - "children": [], - "position": { - "start": { - "line": 23, - "column": 1, - "offset": 128 - }, - "end": { - "line": 23, - "column": 7, - "offset": 134 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 22, - "column": 1, - "offset": 121 - }, - "end": { - "line": 23, - "column": 7, - "offset": 134 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": true, - "children": [], - "position": { - "start": { - "line": 25, - "column": 1, - "offset": 136 - }, - "end": { - "line": 25, - "column": 8, - "offset": 143 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": true, - "children": [], - "position": { - "start": { - "line": 26, - "column": 1, - "offset": 144 - }, - "end": { - "line": 26, - "column": 8, - "offset": 151 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 25, - "column": 1, - "offset": 136 - }, - "end": { - "line": 26, - "column": 8, - "offset": 151 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "No white space with content", - "position": { - "start": { - "line": 28, - "column": 1, - "offset": 153 - }, - "end": { - "line": 28, - "column": 28, - "offset": 180 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 28, - "column": 1, - "offset": 153 - }, - "end": { - "line": 29, - "column": 28, - "offset": 208 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": " ", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 31, - "column": 4, - "offset": 213 - }, - "end": { - "line": 31, - "column": 5, - "offset": 214 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 31, - "column": 3, - "offset": 212 - }, - "end": { - "line": 31, - "column": 6, - "offset": 215 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "Hello;", - "position": { - "start": { - "line": 31, - "column": 6, - "offset": 215 - }, - "end": { - "line": 31, - "column": 12, - "offset": 221 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 31, - "column": 3, - "offset": 212 - }, - "end": { - "line": 31, - "column": 12, - "offset": 221 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 31, - "column": 1, - "offset": 210 - }, - "end": { - "line": 31, - "column": 12, - "offset": 221 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": "\t", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "\t", - "position": { - "start": { - "line": 32, - "column": 4, - "offset": 225 - }, - "end": { - "line": 32, - "column": 5, - "offset": 226 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 32, - "column": 3, - "offset": 224 - }, - "end": { - "line": 32, - "column": 6, - "offset": 227 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "World;", - "position": { - "start": { - "line": 32, - "column": 6, - "offset": 227 - }, - "end": { - "line": 32, - "column": 12, - "offset": 233 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 32, - "column": 3, - "offset": 224 - }, - "end": { - "line": 32, - "column": 12, - "offset": 233 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 32, - "column": 1, - "offset": 222 - }, - "end": { - "line": 32, - "column": 12, - "offset": 233 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 31, - "column": 1, - "offset": 210 - }, - "end": { - "line": 32, - "column": 12, - "offset": 233 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "x", - "label": "x", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "x", - "position": { - "start": { - "line": 34, - "column": 5, - "offset": 239 - }, - "end": { - "line": 34, - "column": 6, - "offset": 240 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 34, - "column": 4, - "offset": 238 - }, - "end": { - "line": 34, - "column": 7, - "offset": 241 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "Foo.", - "position": { - "start": { - "line": 34, - "column": 7, - "offset": 241 - }, - "end": { - "line": 34, - "column": 11, - "offset": 245 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 34, - "column": 4, - "offset": 238 - }, - "end": { - "line": 34, - "column": 11, - "offset": 245 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 34, - "column": 1, - "offset": 235 - }, - "end": { - "line": 34, - "column": 11, - "offset": 245 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "x", - "label": "X", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "X", - "position": { - "start": { - "line": 35, - "column": 5, - "offset": 250 - }, - "end": { - "line": 35, - "column": 6, - "offset": 251 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 35, - "column": 4, - "offset": 249 - }, - "end": { - "line": 35, - "column": 7, - "offset": 252 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "Bar", - "position": { - "start": { - "line": 35, - "column": 7, - "offset": 252 - }, - "end": { - "line": 35, - "column": 10, - "offset": 255 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 35, - "column": 4, - "offset": 249 - }, - "end": { - "line": 35, - "column": 10, - "offset": 255 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 35, - "column": 1, - "offset": 246 - }, - "end": { - "line": 35, - "column": 10, - "offset": 255 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 34, - "column": 1, - "offset": 235 - }, - "end": { - "line": 35, - "column": 10, - "offset": 255 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Single space with content", - "position": { - "start": { - "line": 37, - "column": 1, - "offset": 257 - }, - "end": { - "line": 37, - "column": 26, - "offset": 282 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 37, - "column": 1, - "offset": 257 - }, - "end": { - "line": 38, - "column": 26, - "offset": 308 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": false, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hello;", - "position": { - "start": { - "line": 40, - "column": 7, - "offset": 316 - }, - "end": { - "line": 40, - "column": 13, - "offset": 322 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 40, - "column": 7, - "offset": 316 - }, - "end": { - "line": 40, - "column": 13, - "offset": 322 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 40, - "column": 1, - "offset": 310 - }, - "end": { - "line": 40, - "column": 13, - "offset": 322 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": false, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "World;", - "position": { - "start": { - "line": 41, - "column": 7, - "offset": 329 - }, - "end": { - "line": 41, - "column": 13, - "offset": 335 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 41, - "column": 7, - "offset": 329 - }, - "end": { - "line": 41, - "column": 13, - "offset": 335 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 41, - "column": 1, - "offset": 323 - }, - "end": { - "line": 41, - "column": 13, - "offset": 335 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 40, - "column": 1, - "offset": 310 - }, - "end": { - "line": 41, - "column": 13, - "offset": 335 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": true, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Foo.", - "position": { - "start": { - "line": 43, - "column": 8, - "offset": 344 - }, - "end": { - "line": 43, - "column": 12, - "offset": 348 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 43, - "column": 8, - "offset": 344 - }, - "end": { - "line": 43, - "column": 12, - "offset": 348 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 43, - "column": 1, - "offset": 337 - }, - "end": { - "line": 43, - "column": 12, - "offset": 348 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": true, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "World :D", - "position": { - "start": { - "line": 44, - "column": 8, - "offset": 356 - }, - "end": { - "line": 44, - "column": 16, - "offset": 364 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 44, - "column": 8, - "offset": 356 - }, - "end": { - "line": 44, - "column": 16, - "offset": 364 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 44, - "column": 1, - "offset": 349 - }, - "end": { - "line": 44, - "column": 16, - "offset": 364 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 43, - "column": 1, - "offset": 337 - }, - "end": { - "line": 44, - "column": 16, - "offset": 364 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Single tab with content", - "position": { - "start": { - "line": 46, - "column": 1, - "offset": 366 - }, - "end": { - "line": 46, - "column": 24, - "offset": 389 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 46, - "column": 1, - "offset": 366 - }, - "end": { - "line": 47, - "column": 24, - "offset": 413 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": false, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hello;", - "position": { - "start": { - "line": 49, - "column": 7, - "offset": 421 - }, - "end": { - "line": 49, - "column": 13, - "offset": 427 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 49, - "column": 7, - "offset": 421 - }, - "end": { - "line": 49, - "column": 13, - "offset": 427 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 49, - "column": 1, - "offset": 415 - }, - "end": { - "line": 49, - "column": 13, - "offset": 427 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": false, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "World;", - "position": { - "start": { - "line": 50, - "column": 7, - "offset": 434 - }, - "end": { - "line": 50, - "column": 13, - "offset": 440 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 50, - "column": 7, - "offset": 434 - }, - "end": { - "line": 50, - "column": 13, - "offset": 440 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 50, - "column": 1, - "offset": 428 - }, - "end": { - "line": 50, - "column": 13, - "offset": 440 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 49, - "column": 1, - "offset": 415 - }, - "end": { - "line": 50, - "column": 13, - "offset": 440 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": true, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Foo.", - "position": { - "start": { - "line": 52, - "column": 8, - "offset": 449 - }, - "end": { - "line": 52, - "column": 12, - "offset": 453 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 52, - "column": 8, - "offset": 449 - }, - "end": { - "line": 52, - "column": 12, - "offset": 453 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 52, - "column": 1, - "offset": 442 - }, - "end": { - "line": 52, - "column": 12, - "offset": 453 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": true, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hello.", - "position": { - "start": { - "line": 53, - "column": 8, - "offset": 461 - }, - "end": { - "line": 53, - "column": 14, - "offset": 467 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 53, - "column": 8, - "offset": 461 - }, - "end": { - "line": 53, - "column": 14, - "offset": 467 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 53, - "column": 1, - "offset": 454 - }, - "end": { - "line": 53, - "column": 14, - "offset": 467 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 52, - "column": 1, - "offset": 442 - }, - "end": { - "line": 53, - "column": 14, - "offset": 467 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Multiple spaces with content", - "position": { - "start": { - "line": 55, - "column": 1, - "offset": 469 - }, - "end": { - "line": 55, - "column": 29, - "offset": 497 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 55, - "column": 1, - "offset": 469 - }, - "end": { - "line": 56, - "column": 29, - "offset": 526 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": false, - "children": [ - { - "type": "code", - "lang": null, - "meta": null, - "value": "Hello;", - "position": { - "start": { - "line": 58, - "column": 7, - "offset": 534 - }, - "end": { - "line": 58, - "column": 17, - "offset": 544 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 58, - "column": 1, - "offset": 528 - }, - "end": { - "line": 58, - "column": 17, - "offset": 544 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": false, - "children": [ - { - "type": "code", - "lang": null, - "meta": null, - "value": "World;", - "position": { - "start": { - "line": 59, - "column": 7, - "offset": 551 - }, - "end": { - "line": 59, - "column": 17, - "offset": 561 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 59, - "column": 1, - "offset": 545 - }, - "end": { - "line": 59, - "column": 17, - "offset": 561 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 58, - "column": 1, - "offset": 528 - }, - "end": { - "line": 59, - "column": 17, - "offset": 561 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": true, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": " Foo.", - "position": { - "start": { - "line": 61, - "column": 8, - "offset": 570 - }, - "end": { - "line": 61, - "column": 15, - "offset": 577 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 61, - "column": 8, - "offset": 570 - }, - "end": { - "line": 61, - "column": 15, - "offset": 577 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 61, - "column": 1, - "offset": 563 - }, - "end": { - "line": 61, - "column": 15, - "offset": 577 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": true, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": " Bar.", - "position": { - "start": { - "line": 62, - "column": 8, - "offset": 585 - }, - "end": { - "line": 62, - "column": 15, - "offset": 592 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 62, - "column": 8, - "offset": 585 - }, - "end": { - "line": 62, - "column": 15, - "offset": 592 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 62, - "column": 1, - "offset": 578 - }, - "end": { - "line": 62, - "column": 15, - "offset": 592 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 61, - "column": 1, - "offset": 563 - }, - "end": { - "line": 62, - "column": 15, - "offset": 592 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Multiple tabs with content", - "position": { - "start": { - "line": 64, - "column": 1, - "offset": 594 - }, - "end": { - "line": 64, - "column": 27, - "offset": 620 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 64, - "column": 1, - "offset": 594 - }, - "end": { - "line": 65, - "column": 27, - "offset": 647 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": false, - "children": [ - { - "type": "code", - "lang": null, - "meta": null, - "value": "Hello;", - "position": { - "start": { - "line": 67, - "column": 7, - "offset": 655 - }, - "end": { - "line": 67, - "column": 14, - "offset": 662 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 67, - "column": 1, - "offset": 649 - }, - "end": { - "line": 67, - "column": 14, - "offset": 662 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": false, - "children": [ - { - "type": "code", - "lang": null, - "meta": null, - "value": "World;", - "position": { - "start": { - "line": 68, - "column": 7, - "offset": 669 - }, - "end": { - "line": 68, - "column": 14, - "offset": 676 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 68, - "column": 1, - "offset": 663 - }, - "end": { - "line": 68, - "column": 14, - "offset": 676 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 67, - "column": 1, - "offset": 649 - }, - "end": { - "line": 68, - "column": 14, - "offset": 676 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": true, - "children": [ - { - "type": "code", - "lang": null, - "meta": null, - "value": "Foo.", - "position": { - "start": { - "line": 70, - "column": 8, - "offset": 685 - }, - "end": { - "line": 70, - "column": 13, - "offset": 690 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 70, - "column": 1, - "offset": 678 - }, - "end": { - "line": 70, - "column": 13, - "offset": 690 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": true, - "children": [ - { - "type": "code", - "lang": null, - "meta": null, - "value": "Bar.", - "position": { - "start": { - "line": 71, - "column": 8, - "offset": 698 - }, - "end": { - "line": 71, - "column": 13, - "offset": 703 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 71, - "column": 1, - "offset": 691 - }, - "end": { - "line": 71, - "column": 13, - "offset": 703 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 70, - "column": 1, - "offset": 678 - }, - "end": { - "line": 71, - "column": 13, - "offset": 703 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Mixed tabs and spaces", - "position": { - "start": { - "line": 73, - "column": 1, - "offset": 705 - }, - "end": { - "line": 73, - "column": 22, - "offset": 726 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 73, - "column": 1, - "offset": 705 - }, - "end": { - "line": 74, - "column": 22, - "offset": 748 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": false, - "children": [ - { - "type": "code", - "lang": null, - "meta": null, - "value": " Hello;", - "position": { - "start": { - "line": 76, - "column": 7, - "offset": 756 - }, - "end": { - "line": 76, - "column": 18, - "offset": 767 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 76, - "column": 1, - "offset": 750 - }, - "end": { - "line": 76, - "column": 18, - "offset": 767 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 76, - "column": 1, - "offset": 750 - }, - "end": { - "line": 76, - "column": 18, - "offset": 767 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": true, - "children": [ - { - "type": "code", - "lang": null, - "meta": null, - "value": "World;", - "position": { - "start": { - "line": 78, - "column": 8, - "offset": 776 - }, - "end": { - "line": 78, - "column": 18, - "offset": 786 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 78, - "column": 1, - "offset": 769 - }, - "end": { - "line": 78, - "column": 18, - "offset": 786 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 78, - "column": 1, - "offset": 769 - }, - "end": { - "line": 78, - "column": 18, - "offset": 786 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": false, - "children": [ - { - "type": "code", - "lang": null, - "meta": null, - "value": "\tHello;", - "position": { - "start": { - "line": 80, - "column": 7, - "offset": 794 - }, - "end": { - "line": 80, - "column": 18, - "offset": 805 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 80, - "column": 1, - "offset": 788 - }, - "end": { - "line": 80, - "column": 18, - "offset": 805 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": false, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": " \tWorld.", - "position": { - "start": { - "line": 81, - "column": 7, - "offset": 812 - }, - "end": { - "line": 81, - "column": 17, - "offset": 822 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 81, - "column": 7, - "offset": 812 - }, - "end": { - "line": 81, - "column": 17, - "offset": 822 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 81, - "column": 1, - "offset": 806 - }, - "end": { - "line": 81, - "column": 17, - "offset": 822 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 80, - "column": 1, - "offset": 788 - }, - "end": { - "line": 81, - "column": 17, - "offset": 822 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": true, - "start": 2, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": true, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": " \tBar.", - "position": { - "start": { - "line": 83, - "column": 8, - "offset": 831 - }, - "end": { - "line": 83, - "column": 14, - "offset": 837 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 83, - "column": 8, - "offset": 831 - }, - "end": { - "line": 83, - "column": 14, - "offset": 837 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 83, - "column": 1, - "offset": 824 - }, - "end": { - "line": 83, - "column": 14, - "offset": 837 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 83, - "column": 1, - "offset": 824 - }, - "end": { - "line": 83, - "column": 14, - "offset": 837 - }, - "indent": [] - } - }, - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Line breaks", - "position": { - "start": { - "line": 85, - "column": 1, - "offset": 839 - }, - "end": { - "line": 85, - "column": 12, - "offset": 850 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 85, - "column": 1, - "offset": 839 - }, - "end": { - "line": 86, - "column": 12, - "offset": 862 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": "\n", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "\n", - "position": { - "start": { - "line": 88, - "column": 4, - "offset": 867 - }, - "end": { - "line": 89, - "column": 1, - "offset": 868 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 88, - "column": 3, - "offset": 866 - }, - "end": { - "line": 89, - "column": 2, - "offset": 869 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": " Hello;", - "position": { - "start": { - "line": 89, - "column": 2, - "offset": 869 - }, - "end": { - "line": 89, - "column": 9, - "offset": 876 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 88, - "column": 3, - "offset": 866 - }, - "end": { - "line": 89, - "column": 9, - "offset": 876 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 88, - "column": 1, - "offset": 864 - }, - "end": { - "line": 89, - "column": 9, - "offset": 876 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 88, - "column": 1, - "offset": 864 - }, - "end": { - "line": 89, - "column": 9, - "offset": 876 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": "\n", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "\n", - "position": { - "start": { - "line": 91, - "column": 5, - "offset": 882 - }, - "end": { - "line": 92, - "column": 1, - "offset": 883 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 91, - "column": 4, - "offset": 881 - }, - "end": { - "line": 92, - "column": 2, - "offset": 884 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": " Hello;", - "position": { - "start": { - "line": 92, - "column": 2, - "offset": 884 - }, - "end": { - "line": 92, - "column": 9, - "offset": 891 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 91, - "column": 4, - "offset": 881 - }, - "end": { - "line": 92, - "column": 9, - "offset": 891 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 91, - "column": 1, - "offset": 878 - }, - "end": { - "line": 92, - "column": 9, - "offset": 891 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 91, - "column": 1, - "offset": 878 - }, - "end": { - "line": 92, - "column": 9, - "offset": 891 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Multiple unfinished characters", - "position": { - "start": { - "line": 94, - "column": 1, - "offset": 893 - }, - "end": { - "line": 94, - "column": 31, - "offset": 923 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 94, - "column": 1, - "offset": 893 - }, - "end": { - "line": 95, - "column": 31, - "offset": 954 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": " ", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 97, - "column": 4, - "offset": 959 - }, - "end": { - "line": 97, - "column": 6, - "offset": 961 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 97, - "column": 3, - "offset": 958 - }, - "end": { - "line": 97, - "column": 7, - "offset": 962 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " Hello;", - "position": { - "start": { - "line": 97, - "column": 7, - "offset": 962 - }, - "end": { - "line": 97, - "column": 14, - "offset": 969 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 97, - "column": 3, - "offset": 958 - }, - "end": { - "line": 97, - "column": 14, - "offset": 969 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 97, - "column": 1, - "offset": 956 - }, - "end": { - "line": 97, - "column": 14, - "offset": 969 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 97, - "column": 1, - "offset": 956 - }, - "end": { - "line": 97, - "column": 14, - "offset": 969 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": " \n", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": " \n", - "position": { - "start": { - "line": 99, - "column": 5, - "offset": 975 - }, - "end": { - "line": 100, - "column": 2, - "offset": 978 - }, - "indent": [ - 2 - ] - } - } - ], - "position": { - "start": { - "line": 99, - "column": 4, - "offset": 974 - }, - "end": { - "line": 100, - "column": 3, - "offset": 979 - }, - "indent": [ - 2 - ] - } - }, - { - "type": "text", - "value": " World;", - "position": { - "start": { - "line": 100, - "column": 3, - "offset": 979 - }, - "end": { - "line": 100, - "column": 10, - "offset": 986 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 99, - "column": 4, - "offset": 974 - }, - "end": { - "line": 100, - "column": 10, - "offset": 986 - }, - "indent": [ - 2 - ] - } - } - ], - "position": { - "start": { - "line": 99, - "column": 1, - "offset": 971 - }, - "end": { - "line": 100, - "column": 10, - "offset": 986 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": "\t\t", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "\t\t", - "position": { - "start": { - "line": 101, - "column": 5, - "offset": 991 - }, - "end": { - "line": 101, - "column": 7, - "offset": 993 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 101, - "column": 4, - "offset": 990 - }, - "end": { - "line": 101, - "column": 8, - "offset": 994 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " Hello;", - "position": { - "start": { - "line": 101, - "column": 8, - "offset": 994 - }, - "end": { - "line": 101, - "column": 15, - "offset": 1001 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 101, - "column": 4, - "offset": 990 - }, - "end": { - "line": 101, - "column": 15, - "offset": 1001 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 101, - "column": 1, - "offset": 987 - }, - "end": { - "line": 101, - "column": 15, - "offset": 1001 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": " \t ", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": " \t ", - "position": { - "start": { - "line": 102, - "column": 5, - "offset": 1006 - }, - "end": { - "line": 102, - "column": 8, - "offset": 1009 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 102, - "column": 4, - "offset": 1005 - }, - "end": { - "line": 102, - "column": 9, - "offset": 1010 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " World.", - "position": { - "start": { - "line": 102, - "column": 9, - "offset": 1010 - }, - "end": { - "line": 102, - "column": 16, - "offset": 1017 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 102, - "column": 4, - "offset": 1005 - }, - "end": { - "line": 102, - "column": 16, - "offset": 1017 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 102, - "column": 1, - "offset": 1002 - }, - "end": { - "line": 102, - "column": 16, - "offset": 1017 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 99, - "column": 1, - "offset": 971 - }, - "end": { - "line": 102, - "column": 16, - "offset": 1017 - }, - "indent": [ - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 103, - "column": 1, - "offset": 1018 - } - } -} diff --git a/test/fixtures/tree/task-list.json b/test/fixtures/tree/task-list.json deleted file mode 100644 index 365508182..000000000 --- a/test/fixtures/tree/task-list.json +++ /dev/null @@ -1,3402 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Empty items", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 12, - "offset": 11 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 12, - "offset": 23 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": " ", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 4, - "column": 4, - "offset": 28 - }, - "end": { - "line": 4, - "column": 5, - "offset": 29 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 3, - "offset": 27 - }, - "end": { - "line": 4, - "column": 6, - "offset": 30 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 3, - "offset": 27 - }, - "end": { - "line": 4, - "column": 6, - "offset": 30 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 25 - }, - "end": { - "line": 4, - "column": 6, - "offset": 30 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": "\t", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "\t", - "position": { - "start": { - "line": 5, - "column": 4, - "offset": 34 - }, - "end": { - "line": 5, - "column": 5, - "offset": 35 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 3, - "offset": 33 - }, - "end": { - "line": 5, - "column": 6, - "offset": 36 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 3, - "offset": 33 - }, - "end": { - "line": 5, - "column": 6, - "offset": 36 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 31 - }, - "end": { - "line": 5, - "column": 6, - "offset": 36 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 25 - }, - "end": { - "line": 5, - "column": 6, - "offset": 36 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "x", - "label": "x", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "x", - "position": { - "start": { - "line": 7, - "column": 5, - "offset": 42 - }, - "end": { - "line": 7, - "column": 6, - "offset": 43 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 4, - "offset": 41 - }, - "end": { - "line": 7, - "column": 7, - "offset": 44 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 4, - "offset": 41 - }, - "end": { - "line": 7, - "column": 7, - "offset": 44 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 38 - }, - "end": { - "line": 7, - "column": 7, - "offset": 44 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "x", - "label": "X", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "X", - "position": { - "start": { - "line": 8, - "column": 5, - "offset": 49 - }, - "end": { - "line": 8, - "column": 6, - "offset": 50 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 8, - "column": 4, - "offset": 48 - }, - "end": { - "line": 8, - "column": 7, - "offset": 51 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 8, - "column": 4, - "offset": 48 - }, - "end": { - "line": 8, - "column": 7, - "offset": 51 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 8, - "column": 1, - "offset": 45 - }, - "end": { - "line": 8, - "column": 7, - "offset": 51 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 38 - }, - "end": { - "line": 8, - "column": 7, - "offset": 51 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Single space", - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 53 - }, - "end": { - "line": 10, - "column": 13, - "offset": 65 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 53 - }, - "end": { - "line": 11, - "column": 13, - "offset": 78 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": false, - "children": [], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 80 - }, - "end": { - "line": 13, - "column": 7, - "offset": 86 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": false, - "children": [], - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 87 - }, - "end": { - "line": 14, - "column": 7, - "offset": 93 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 80 - }, - "end": { - "line": 14, - "column": 7, - "offset": 93 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": true, - "children": [], - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 95 - }, - "end": { - "line": 16, - "column": 8, - "offset": 102 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": true, - "children": [], - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 103 - }, - "end": { - "line": 17, - "column": 8, - "offset": 110 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 95 - }, - "end": { - "line": 17, - "column": 8, - "offset": 110 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Tab", - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 112 - }, - "end": { - "line": 19, - "column": 4, - "offset": 115 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 112 - }, - "end": { - "line": 20, - "column": 4, - "offset": 119 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": false, - "children": [], - "position": { - "start": { - "line": 22, - "column": 1, - "offset": 121 - }, - "end": { - "line": 22, - "column": 7, - "offset": 127 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": false, - "children": [], - "position": { - "start": { - "line": 23, - "column": 1, - "offset": 128 - }, - "end": { - "line": 23, - "column": 7, - "offset": 134 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 22, - "column": 1, - "offset": 121 - }, - "end": { - "line": 23, - "column": 7, - "offset": 134 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": true, - "children": [], - "position": { - "start": { - "line": 25, - "column": 1, - "offset": 136 - }, - "end": { - "line": 25, - "column": 8, - "offset": 143 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": true, - "children": [], - "position": { - "start": { - "line": 26, - "column": 1, - "offset": 144 - }, - "end": { - "line": 26, - "column": 8, - "offset": 151 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 25, - "column": 1, - "offset": 136 - }, - "end": { - "line": 26, - "column": 8, - "offset": 151 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "No white space with content", - "position": { - "start": { - "line": 28, - "column": 1, - "offset": 153 - }, - "end": { - "line": 28, - "column": 28, - "offset": 180 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 28, - "column": 1, - "offset": 153 - }, - "end": { - "line": 29, - "column": 28, - "offset": 208 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": " ", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 31, - "column": 4, - "offset": 213 - }, - "end": { - "line": 31, - "column": 5, - "offset": 214 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 31, - "column": 3, - "offset": 212 - }, - "end": { - "line": 31, - "column": 6, - "offset": 215 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "Hello;", - "position": { - "start": { - "line": 31, - "column": 6, - "offset": 215 - }, - "end": { - "line": 31, - "column": 12, - "offset": 221 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 31, - "column": 3, - "offset": 212 - }, - "end": { - "line": 31, - "column": 12, - "offset": 221 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 31, - "column": 1, - "offset": 210 - }, - "end": { - "line": 31, - "column": 12, - "offset": 221 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": "\t", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "\t", - "position": { - "start": { - "line": 32, - "column": 4, - "offset": 225 - }, - "end": { - "line": 32, - "column": 5, - "offset": 226 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 32, - "column": 3, - "offset": 224 - }, - "end": { - "line": 32, - "column": 6, - "offset": 227 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "World;", - "position": { - "start": { - "line": 32, - "column": 6, - "offset": 227 - }, - "end": { - "line": 32, - "column": 12, - "offset": 233 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 32, - "column": 3, - "offset": 224 - }, - "end": { - "line": 32, - "column": 12, - "offset": 233 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 32, - "column": 1, - "offset": 222 - }, - "end": { - "line": 32, - "column": 12, - "offset": 233 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 31, - "column": 1, - "offset": 210 - }, - "end": { - "line": 32, - "column": 12, - "offset": 233 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "x", - "label": "x", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "x", - "position": { - "start": { - "line": 34, - "column": 5, - "offset": 239 - }, - "end": { - "line": 34, - "column": 6, - "offset": 240 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 34, - "column": 4, - "offset": 238 - }, - "end": { - "line": 34, - "column": 7, - "offset": 241 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "Foo.", - "position": { - "start": { - "line": 34, - "column": 7, - "offset": 241 - }, - "end": { - "line": 34, - "column": 11, - "offset": 245 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 34, - "column": 4, - "offset": 238 - }, - "end": { - "line": 34, - "column": 11, - "offset": 245 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 34, - "column": 1, - "offset": 235 - }, - "end": { - "line": 34, - "column": 11, - "offset": 245 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "x", - "label": "X", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "X", - "position": { - "start": { - "line": 35, - "column": 5, - "offset": 250 - }, - "end": { - "line": 35, - "column": 6, - "offset": 251 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 35, - "column": 4, - "offset": 249 - }, - "end": { - "line": 35, - "column": 7, - "offset": 252 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "Bar", - "position": { - "start": { - "line": 35, - "column": 7, - "offset": 252 - }, - "end": { - "line": 35, - "column": 10, - "offset": 255 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 35, - "column": 4, - "offset": 249 - }, - "end": { - "line": 35, - "column": 10, - "offset": 255 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 35, - "column": 1, - "offset": 246 - }, - "end": { - "line": 35, - "column": 10, - "offset": 255 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 34, - "column": 1, - "offset": 235 - }, - "end": { - "line": 35, - "column": 10, - "offset": 255 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Single space with content", - "position": { - "start": { - "line": 37, - "column": 1, - "offset": 257 - }, - "end": { - "line": 37, - "column": 26, - "offset": 282 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 37, - "column": 1, - "offset": 257 - }, - "end": { - "line": 38, - "column": 26, - "offset": 308 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": false, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hello;", - "position": { - "start": { - "line": 40, - "column": 7, - "offset": 316 - }, - "end": { - "line": 40, - "column": 13, - "offset": 322 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 40, - "column": 7, - "offset": 316 - }, - "end": { - "line": 40, - "column": 13, - "offset": 322 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 40, - "column": 1, - "offset": 310 - }, - "end": { - "line": 40, - "column": 13, - "offset": 322 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": false, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "World;", - "position": { - "start": { - "line": 41, - "column": 7, - "offset": 329 - }, - "end": { - "line": 41, - "column": 13, - "offset": 335 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 41, - "column": 7, - "offset": 329 - }, - "end": { - "line": 41, - "column": 13, - "offset": 335 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 41, - "column": 1, - "offset": 323 - }, - "end": { - "line": 41, - "column": 13, - "offset": 335 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 40, - "column": 1, - "offset": 310 - }, - "end": { - "line": 41, - "column": 13, - "offset": 335 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": true, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Foo.", - "position": { - "start": { - "line": 43, - "column": 8, - "offset": 344 - }, - "end": { - "line": 43, - "column": 12, - "offset": 348 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 43, - "column": 8, - "offset": 344 - }, - "end": { - "line": 43, - "column": 12, - "offset": 348 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 43, - "column": 1, - "offset": 337 - }, - "end": { - "line": 43, - "column": 12, - "offset": 348 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": true, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "World :D", - "position": { - "start": { - "line": 44, - "column": 8, - "offset": 356 - }, - "end": { - "line": 44, - "column": 16, - "offset": 364 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 44, - "column": 8, - "offset": 356 - }, - "end": { - "line": 44, - "column": 16, - "offset": 364 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 44, - "column": 1, - "offset": 349 - }, - "end": { - "line": 44, - "column": 16, - "offset": 364 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 43, - "column": 1, - "offset": 337 - }, - "end": { - "line": 44, - "column": 16, - "offset": 364 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Single tab with content", - "position": { - "start": { - "line": 46, - "column": 1, - "offset": 366 - }, - "end": { - "line": 46, - "column": 24, - "offset": 389 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 46, - "column": 1, - "offset": 366 - }, - "end": { - "line": 47, - "column": 24, - "offset": 413 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": false, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hello;", - "position": { - "start": { - "line": 49, - "column": 7, - "offset": 421 - }, - "end": { - "line": 49, - "column": 13, - "offset": 427 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 49, - "column": 7, - "offset": 421 - }, - "end": { - "line": 49, - "column": 13, - "offset": 427 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 49, - "column": 1, - "offset": 415 - }, - "end": { - "line": 49, - "column": 13, - "offset": 427 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": false, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "World;", - "position": { - "start": { - "line": 50, - "column": 7, - "offset": 434 - }, - "end": { - "line": 50, - "column": 13, - "offset": 440 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 50, - "column": 7, - "offset": 434 - }, - "end": { - "line": 50, - "column": 13, - "offset": 440 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 50, - "column": 1, - "offset": 428 - }, - "end": { - "line": 50, - "column": 13, - "offset": 440 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 49, - "column": 1, - "offset": 415 - }, - "end": { - "line": 50, - "column": 13, - "offset": 440 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": true, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Foo.", - "position": { - "start": { - "line": 52, - "column": 8, - "offset": 449 - }, - "end": { - "line": 52, - "column": 12, - "offset": 453 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 52, - "column": 8, - "offset": 449 - }, - "end": { - "line": 52, - "column": 12, - "offset": 453 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 52, - "column": 1, - "offset": 442 - }, - "end": { - "line": 52, - "column": 12, - "offset": 453 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": true, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "Hello.", - "position": { - "start": { - "line": 53, - "column": 8, - "offset": 461 - }, - "end": { - "line": 53, - "column": 14, - "offset": 467 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 53, - "column": 8, - "offset": 461 - }, - "end": { - "line": 53, - "column": 14, - "offset": 467 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 53, - "column": 1, - "offset": 454 - }, - "end": { - "line": 53, - "column": 14, - "offset": 467 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 52, - "column": 1, - "offset": 442 - }, - "end": { - "line": 53, - "column": 14, - "offset": 467 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Multiple spaces with content", - "position": { - "start": { - "line": 55, - "column": 1, - "offset": 469 - }, - "end": { - "line": 55, - "column": 29, - "offset": 497 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 55, - "column": 1, - "offset": 469 - }, - "end": { - "line": 56, - "column": 29, - "offset": 526 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": false, - "children": [ - { - "type": "code", - "lang": null, - "meta": null, - "value": "Hello;", - "position": { - "start": { - "line": 58, - "column": 7, - "offset": 534 - }, - "end": { - "line": 58, - "column": 17, - "offset": 544 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 58, - "column": 1, - "offset": 528 - }, - "end": { - "line": 58, - "column": 17, - "offset": 544 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": false, - "children": [ - { - "type": "code", - "lang": null, - "meta": null, - "value": "World;", - "position": { - "start": { - "line": 59, - "column": 7, - "offset": 551 - }, - "end": { - "line": 59, - "column": 17, - "offset": 561 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 59, - "column": 1, - "offset": 545 - }, - "end": { - "line": 59, - "column": 17, - "offset": 561 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 58, - "column": 1, - "offset": 528 - }, - "end": { - "line": 59, - "column": 17, - "offset": 561 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": true, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": " Foo.", - "position": { - "start": { - "line": 61, - "column": 8, - "offset": 570 - }, - "end": { - "line": 61, - "column": 15, - "offset": 577 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 61, - "column": 8, - "offset": 570 - }, - "end": { - "line": 61, - "column": 15, - "offset": 577 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 61, - "column": 1, - "offset": 563 - }, - "end": { - "line": 61, - "column": 15, - "offset": 577 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": true, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": " Bar.", - "position": { - "start": { - "line": 62, - "column": 8, - "offset": 585 - }, - "end": { - "line": 62, - "column": 15, - "offset": 592 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 62, - "column": 8, - "offset": 585 - }, - "end": { - "line": 62, - "column": 15, - "offset": 592 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 62, - "column": 1, - "offset": 578 - }, - "end": { - "line": 62, - "column": 15, - "offset": 592 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 61, - "column": 1, - "offset": 563 - }, - "end": { - "line": 62, - "column": 15, - "offset": 592 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Multiple tabs with content", - "position": { - "start": { - "line": 64, - "column": 1, - "offset": 594 - }, - "end": { - "line": 64, - "column": 27, - "offset": 620 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 64, - "column": 1, - "offset": 594 - }, - "end": { - "line": 65, - "column": 27, - "offset": 647 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": false, - "children": [ - { - "type": "code", - "lang": null, - "meta": null, - "value": "Hello;", - "position": { - "start": { - "line": 67, - "column": 7, - "offset": 655 - }, - "end": { - "line": 67, - "column": 14, - "offset": 662 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 67, - "column": 1, - "offset": 649 - }, - "end": { - "line": 67, - "column": 14, - "offset": 662 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": false, - "children": [ - { - "type": "code", - "lang": null, - "meta": null, - "value": "World;", - "position": { - "start": { - "line": 68, - "column": 7, - "offset": 669 - }, - "end": { - "line": 68, - "column": 14, - "offset": 676 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 68, - "column": 1, - "offset": 663 - }, - "end": { - "line": 68, - "column": 14, - "offset": 676 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 67, - "column": 1, - "offset": 649 - }, - "end": { - "line": 68, - "column": 14, - "offset": 676 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": true, - "children": [ - { - "type": "code", - "lang": null, - "meta": null, - "value": "Foo.", - "position": { - "start": { - "line": 70, - "column": 8, - "offset": 685 - }, - "end": { - "line": 70, - "column": 13, - "offset": 690 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 70, - "column": 1, - "offset": 678 - }, - "end": { - "line": 70, - "column": 13, - "offset": 690 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": true, - "children": [ - { - "type": "code", - "lang": null, - "meta": null, - "value": "Bar.", - "position": { - "start": { - "line": 71, - "column": 8, - "offset": 698 - }, - "end": { - "line": 71, - "column": 13, - "offset": 703 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 71, - "column": 1, - "offset": 691 - }, - "end": { - "line": 71, - "column": 13, - "offset": 703 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 70, - "column": 1, - "offset": 678 - }, - "end": { - "line": 71, - "column": 13, - "offset": 703 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Mixed tabs and spaces", - "position": { - "start": { - "line": 73, - "column": 1, - "offset": 705 - }, - "end": { - "line": 73, - "column": 22, - "offset": 726 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 73, - "column": 1, - "offset": 705 - }, - "end": { - "line": 74, - "column": 22, - "offset": 748 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": false, - "children": [ - { - "type": "code", - "lang": null, - "meta": null, - "value": " Hello;", - "position": { - "start": { - "line": 76, - "column": 7, - "offset": 756 - }, - "end": { - "line": 76, - "column": 18, - "offset": 767 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 76, - "column": 1, - "offset": 750 - }, - "end": { - "line": 76, - "column": 18, - "offset": 767 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 76, - "column": 1, - "offset": 750 - }, - "end": { - "line": 76, - "column": 18, - "offset": 767 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": true, - "children": [ - { - "type": "code", - "lang": null, - "meta": null, - "value": "World;", - "position": { - "start": { - "line": 78, - "column": 8, - "offset": 776 - }, - "end": { - "line": 78, - "column": 18, - "offset": 786 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 78, - "column": 1, - "offset": 769 - }, - "end": { - "line": 78, - "column": 18, - "offset": 786 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 78, - "column": 1, - "offset": 769 - }, - "end": { - "line": 78, - "column": 18, - "offset": 786 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": false, - "children": [ - { - "type": "code", - "lang": null, - "meta": null, - "value": "\tHello;", - "position": { - "start": { - "line": 80, - "column": 7, - "offset": 794 - }, - "end": { - "line": 80, - "column": 18, - "offset": 805 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 80, - "column": 1, - "offset": 788 - }, - "end": { - "line": 80, - "column": 18, - "offset": 805 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": false, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": " \tWorld.", - "position": { - "start": { - "line": 81, - "column": 7, - "offset": 812 - }, - "end": { - "line": 81, - "column": 17, - "offset": 822 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 81, - "column": 7, - "offset": 812 - }, - "end": { - "line": 81, - "column": 17, - "offset": 822 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 81, - "column": 1, - "offset": 806 - }, - "end": { - "line": 81, - "column": 17, - "offset": 822 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 80, - "column": 1, - "offset": 788 - }, - "end": { - "line": 81, - "column": 17, - "offset": 822 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": true, - "start": 2, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": true, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": " \tBar.", - "position": { - "start": { - "line": 83, - "column": 8, - "offset": 831 - }, - "end": { - "line": 83, - "column": 14, - "offset": 837 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 83, - "column": 8, - "offset": 831 - }, - "end": { - "line": 83, - "column": 14, - "offset": 837 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 83, - "column": 1, - "offset": 824 - }, - "end": { - "line": 83, - "column": 14, - "offset": 837 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 83, - "column": 1, - "offset": 824 - }, - "end": { - "line": 83, - "column": 14, - "offset": 837 - }, - "indent": [] - } - }, - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Line breaks", - "position": { - "start": { - "line": 85, - "column": 1, - "offset": 839 - }, - "end": { - "line": 85, - "column": 12, - "offset": 850 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 85, - "column": 1, - "offset": 839 - }, - "end": { - "line": 86, - "column": 12, - "offset": 862 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": "\n", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "\n", - "position": { - "start": { - "line": 88, - "column": 4, - "offset": 867 - }, - "end": { - "line": 89, - "column": 1, - "offset": 868 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 88, - "column": 3, - "offset": 866 - }, - "end": { - "line": 89, - "column": 2, - "offset": 869 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": " Hello;", - "position": { - "start": { - "line": 89, - "column": 2, - "offset": 869 - }, - "end": { - "line": 89, - "column": 9, - "offset": 876 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 88, - "column": 3, - "offset": 866 - }, - "end": { - "line": 89, - "column": 9, - "offset": 876 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 88, - "column": 1, - "offset": 864 - }, - "end": { - "line": 89, - "column": 9, - "offset": 876 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 88, - "column": 1, - "offset": 864 - }, - "end": { - "line": 89, - "column": 9, - "offset": 876 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": "\n", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "\n", - "position": { - "start": { - "line": 91, - "column": 5, - "offset": 882 - }, - "end": { - "line": 92, - "column": 1, - "offset": 883 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 91, - "column": 4, - "offset": 881 - }, - "end": { - "line": 92, - "column": 2, - "offset": 884 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": " Hello;", - "position": { - "start": { - "line": 92, - "column": 2, - "offset": 884 - }, - "end": { - "line": 92, - "column": 9, - "offset": 891 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 91, - "column": 4, - "offset": 881 - }, - "end": { - "line": 92, - "column": 9, - "offset": 891 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 91, - "column": 1, - "offset": 878 - }, - "end": { - "line": 92, - "column": 9, - "offset": 891 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 91, - "column": 1, - "offset": 878 - }, - "end": { - "line": 92, - "column": 9, - "offset": 891 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Multiple unfinished characters", - "position": { - "start": { - "line": 94, - "column": 1, - "offset": 893 - }, - "end": { - "line": 94, - "column": 31, - "offset": 923 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 94, - "column": 1, - "offset": 893 - }, - "end": { - "line": 95, - "column": 31, - "offset": 954 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": " ", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 97, - "column": 4, - "offset": 959 - }, - "end": { - "line": 97, - "column": 6, - "offset": 961 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 97, - "column": 3, - "offset": 958 - }, - "end": { - "line": 97, - "column": 7, - "offset": 962 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " Hello;", - "position": { - "start": { - "line": 97, - "column": 7, - "offset": 962 - }, - "end": { - "line": 97, - "column": 14, - "offset": 969 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 97, - "column": 3, - "offset": 958 - }, - "end": { - "line": 97, - "column": 14, - "offset": 969 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 97, - "column": 1, - "offset": 956 - }, - "end": { - "line": 97, - "column": 14, - "offset": 969 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 97, - "column": 1, - "offset": 956 - }, - "end": { - "line": 97, - "column": 14, - "offset": 969 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": " \n", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": " \n", - "position": { - "start": { - "line": 99, - "column": 5, - "offset": 975 - }, - "end": { - "line": 100, - "column": 2, - "offset": 978 - }, - "indent": [ - 2 - ] - } - } - ], - "position": { - "start": { - "line": 99, - "column": 4, - "offset": 974 - }, - "end": { - "line": 100, - "column": 3, - "offset": 979 - }, - "indent": [ - 2 - ] - } - }, - { - "type": "text", - "value": " World;", - "position": { - "start": { - "line": 100, - "column": 3, - "offset": 979 - }, - "end": { - "line": 100, - "column": 10, - "offset": 986 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 99, - "column": 4, - "offset": 974 - }, - "end": { - "line": 100, - "column": 10, - "offset": 986 - }, - "indent": [ - 2 - ] - } - } - ], - "position": { - "start": { - "line": 99, - "column": 1, - "offset": 971 - }, - "end": { - "line": 100, - "column": 10, - "offset": 986 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": "\t\t", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "\t\t", - "position": { - "start": { - "line": 101, - "column": 5, - "offset": 991 - }, - "end": { - "line": 101, - "column": 7, - "offset": 993 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 101, - "column": 4, - "offset": 990 - }, - "end": { - "line": 101, - "column": 8, - "offset": 994 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " Hello;", - "position": { - "start": { - "line": 101, - "column": 8, - "offset": 994 - }, - "end": { - "line": 101, - "column": 15, - "offset": 1001 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 101, - "column": 4, - "offset": 990 - }, - "end": { - "line": 101, - "column": 15, - "offset": 1001 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 101, - "column": 1, - "offset": 987 - }, - "end": { - "line": 101, - "column": 15, - "offset": 1001 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": " \t ", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": " \t ", - "position": { - "start": { - "line": 102, - "column": 5, - "offset": 1006 - }, - "end": { - "line": 102, - "column": 8, - "offset": 1009 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 102, - "column": 4, - "offset": 1005 - }, - "end": { - "line": 102, - "column": 9, - "offset": 1010 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " World.", - "position": { - "start": { - "line": 102, - "column": 9, - "offset": 1010 - }, - "end": { - "line": 102, - "column": 16, - "offset": 1017 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 102, - "column": 4, - "offset": 1005 - }, - "end": { - "line": 102, - "column": 16, - "offset": 1017 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 102, - "column": 1, - "offset": 1002 - }, - "end": { - "line": 102, - "column": 16, - "offset": 1017 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 99, - "column": 1, - "offset": 971 - }, - "end": { - "line": 102, - "column": 16, - "offset": 1017 - }, - "indent": [ - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 103, - "column": 1, - "offset": 1018 - } - } -} diff --git a/test/fixtures/tree/task-list.nogfm.commonmark.json b/test/fixtures/tree/task-list.nogfm.commonmark.json deleted file mode 100644 index 0687d6a99..000000000 --- a/test/fixtures/tree/task-list.nogfm.commonmark.json +++ /dev/null @@ -1,4936 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Empty items", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 12, - "offset": 11 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 12, - "offset": 23 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": " ", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 4, - "column": 4, - "offset": 28 - }, - "end": { - "line": 4, - "column": 5, - "offset": 29 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 3, - "offset": 27 - }, - "end": { - "line": 4, - "column": 6, - "offset": 30 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 3, - "offset": 27 - }, - "end": { - "line": 4, - "column": 6, - "offset": 30 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 25 - }, - "end": { - "line": 4, - "column": 6, - "offset": 30 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": "\t", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "\t", - "position": { - "start": { - "line": 5, - "column": 4, - "offset": 34 - }, - "end": { - "line": 5, - "column": 5, - "offset": 35 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 3, - "offset": 33 - }, - "end": { - "line": 5, - "column": 6, - "offset": 36 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 3, - "offset": 33 - }, - "end": { - "line": 5, - "column": 6, - "offset": 36 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 31 - }, - "end": { - "line": 5, - "column": 6, - "offset": 36 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 25 - }, - "end": { - "line": 5, - "column": 6, - "offset": 36 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "x", - "label": "x", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "x", - "position": { - "start": { - "line": 7, - "column": 5, - "offset": 42 - }, - "end": { - "line": 7, - "column": 6, - "offset": 43 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 4, - "offset": 41 - }, - "end": { - "line": 7, - "column": 7, - "offset": 44 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 4, - "offset": 41 - }, - "end": { - "line": 7, - "column": 7, - "offset": 44 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 38 - }, - "end": { - "line": 7, - "column": 7, - "offset": 44 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "x", - "label": "X", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "X", - "position": { - "start": { - "line": 8, - "column": 5, - "offset": 49 - }, - "end": { - "line": 8, - "column": 6, - "offset": 50 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 8, - "column": 4, - "offset": 48 - }, - "end": { - "line": 8, - "column": 7, - "offset": 51 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 8, - "column": 4, - "offset": 48 - }, - "end": { - "line": 8, - "column": 7, - "offset": 51 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 8, - "column": 1, - "offset": 45 - }, - "end": { - "line": 8, - "column": 7, - "offset": 51 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 38 - }, - "end": { - "line": 8, - "column": 7, - "offset": 51 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Single space", - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 53 - }, - "end": { - "line": 10, - "column": 13, - "offset": 65 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 53 - }, - "end": { - "line": 11, - "column": 13, - "offset": 78 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": " ", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 13, - "column": 4, - "offset": 83 - }, - "end": { - "line": 13, - "column": 5, - "offset": 84 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 3, - "offset": 82 - }, - "end": { - "line": 13, - "column": 6, - "offset": 85 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 13, - "column": 6, - "offset": 85 - }, - "end": { - "line": 13, - "column": 7, - "offset": 86 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 3, - "offset": 82 - }, - "end": { - "line": 13, - "column": 7, - "offset": 86 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 80 - }, - "end": { - "line": 13, - "column": 7, - "offset": 86 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": "\t", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "\t", - "position": { - "start": { - "line": 14, - "column": 4, - "offset": 90 - }, - "end": { - "line": 14, - "column": 5, - "offset": 91 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 3, - "offset": 89 - }, - "end": { - "line": 14, - "column": 6, - "offset": 92 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 14, - "column": 6, - "offset": 92 - }, - "end": { - "line": 14, - "column": 7, - "offset": 93 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 3, - "offset": 89 - }, - "end": { - "line": 14, - "column": 7, - "offset": 93 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 87 - }, - "end": { - "line": 14, - "column": 7, - "offset": 93 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 80 - }, - "end": { - "line": 14, - "column": 7, - "offset": 93 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "x", - "label": "x", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "x", - "position": { - "start": { - "line": 16, - "column": 5, - "offset": 99 - }, - "end": { - "line": 16, - "column": 6, - "offset": 100 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 4, - "offset": 98 - }, - "end": { - "line": 16, - "column": 7, - "offset": 101 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 16, - "column": 7, - "offset": 101 - }, - "end": { - "line": 16, - "column": 8, - "offset": 102 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 4, - "offset": 98 - }, - "end": { - "line": 16, - "column": 8, - "offset": 102 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 95 - }, - "end": { - "line": 16, - "column": 8, - "offset": 102 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "x", - "label": "X", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "X", - "position": { - "start": { - "line": 17, - "column": 5, - "offset": 107 - }, - "end": { - "line": 17, - "column": 6, - "offset": 108 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 17, - "column": 4, - "offset": 106 - }, - "end": { - "line": 17, - "column": 7, - "offset": 109 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 17, - "column": 7, - "offset": 109 - }, - "end": { - "line": 17, - "column": 8, - "offset": 110 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 17, - "column": 4, - "offset": 106 - }, - "end": { - "line": 17, - "column": 8, - "offset": 110 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 103 - }, - "end": { - "line": 17, - "column": 8, - "offset": 110 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 95 - }, - "end": { - "line": 17, - "column": 8, - "offset": 110 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Tab", - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 112 - }, - "end": { - "line": 19, - "column": 4, - "offset": 115 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 112 - }, - "end": { - "line": 20, - "column": 4, - "offset": 119 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": " ", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 22, - "column": 4, - "offset": 124 - }, - "end": { - "line": 22, - "column": 5, - "offset": 125 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 22, - "column": 3, - "offset": 123 - }, - "end": { - "line": 22, - "column": 6, - "offset": 126 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\t", - "position": { - "start": { - "line": 22, - "column": 6, - "offset": 126 - }, - "end": { - "line": 22, - "column": 7, - "offset": 127 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 22, - "column": 3, - "offset": 123 - }, - "end": { - "line": 22, - "column": 7, - "offset": 127 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 22, - "column": 1, - "offset": 121 - }, - "end": { - "line": 22, - "column": 7, - "offset": 127 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": "\t", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "\t", - "position": { - "start": { - "line": 23, - "column": 4, - "offset": 131 - }, - "end": { - "line": 23, - "column": 5, - "offset": 132 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 23, - "column": 3, - "offset": 130 - }, - "end": { - "line": 23, - "column": 6, - "offset": 133 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\t", - "position": { - "start": { - "line": 23, - "column": 6, - "offset": 133 - }, - "end": { - "line": 23, - "column": 7, - "offset": 134 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 23, - "column": 3, - "offset": 130 - }, - "end": { - "line": 23, - "column": 7, - "offset": 134 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 23, - "column": 1, - "offset": 128 - }, - "end": { - "line": 23, - "column": 7, - "offset": 134 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 22, - "column": 1, - "offset": 121 - }, - "end": { - "line": 23, - "column": 7, - "offset": 134 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "x", - "label": "x", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "x", - "position": { - "start": { - "line": 25, - "column": 5, - "offset": 140 - }, - "end": { - "line": 25, - "column": 6, - "offset": 141 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 25, - "column": 4, - "offset": 139 - }, - "end": { - "line": 25, - "column": 7, - "offset": 142 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\t", - "position": { - "start": { - "line": 25, - "column": 7, - "offset": 142 - }, - "end": { - "line": 25, - "column": 8, - "offset": 143 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 25, - "column": 4, - "offset": 139 - }, - "end": { - "line": 25, - "column": 8, - "offset": 143 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 25, - "column": 1, - "offset": 136 - }, - "end": { - "line": 25, - "column": 8, - "offset": 143 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "x", - "label": "X", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "X", - "position": { - "start": { - "line": 26, - "column": 5, - "offset": 148 - }, - "end": { - "line": 26, - "column": 6, - "offset": 149 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 26, - "column": 4, - "offset": 147 - }, - "end": { - "line": 26, - "column": 7, - "offset": 150 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\t", - "position": { - "start": { - "line": 26, - "column": 7, - "offset": 150 - }, - "end": { - "line": 26, - "column": 8, - "offset": 151 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 26, - "column": 4, - "offset": 147 - }, - "end": { - "line": 26, - "column": 8, - "offset": 151 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 26, - "column": 1, - "offset": 144 - }, - "end": { - "line": 26, - "column": 8, - "offset": 151 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 25, - "column": 1, - "offset": 136 - }, - "end": { - "line": 26, - "column": 8, - "offset": 151 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "No white space with content", - "position": { - "start": { - "line": 28, - "column": 1, - "offset": 153 - }, - "end": { - "line": 28, - "column": 28, - "offset": 180 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 28, - "column": 1, - "offset": 153 - }, - "end": { - "line": 29, - "column": 28, - "offset": 208 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": " ", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 31, - "column": 4, - "offset": 213 - }, - "end": { - "line": 31, - "column": 5, - "offset": 214 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 31, - "column": 3, - "offset": 212 - }, - "end": { - "line": 31, - "column": 6, - "offset": 215 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "Hello;", - "position": { - "start": { - "line": 31, - "column": 6, - "offset": 215 - }, - "end": { - "line": 31, - "column": 12, - "offset": 221 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 31, - "column": 3, - "offset": 212 - }, - "end": { - "line": 31, - "column": 12, - "offset": 221 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 31, - "column": 1, - "offset": 210 - }, - "end": { - "line": 31, - "column": 12, - "offset": 221 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": "\t", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "\t", - "position": { - "start": { - "line": 32, - "column": 4, - "offset": 225 - }, - "end": { - "line": 32, - "column": 5, - "offset": 226 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 32, - "column": 3, - "offset": 224 - }, - "end": { - "line": 32, - "column": 6, - "offset": 227 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "World;", - "position": { - "start": { - "line": 32, - "column": 6, - "offset": 227 - }, - "end": { - "line": 32, - "column": 12, - "offset": 233 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 32, - "column": 3, - "offset": 224 - }, - "end": { - "line": 32, - "column": 12, - "offset": 233 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 32, - "column": 1, - "offset": 222 - }, - "end": { - "line": 32, - "column": 12, - "offset": 233 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 31, - "column": 1, - "offset": 210 - }, - "end": { - "line": 32, - "column": 12, - "offset": 233 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "x", - "label": "x", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "x", - "position": { - "start": { - "line": 34, - "column": 5, - "offset": 239 - }, - "end": { - "line": 34, - "column": 6, - "offset": 240 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 34, - "column": 4, - "offset": 238 - }, - "end": { - "line": 34, - "column": 7, - "offset": 241 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "Foo.", - "position": { - "start": { - "line": 34, - "column": 7, - "offset": 241 - }, - "end": { - "line": 34, - "column": 11, - "offset": 245 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 34, - "column": 4, - "offset": 238 - }, - "end": { - "line": 34, - "column": 11, - "offset": 245 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 34, - "column": 1, - "offset": 235 - }, - "end": { - "line": 34, - "column": 11, - "offset": 245 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "x", - "label": "X", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "X", - "position": { - "start": { - "line": 35, - "column": 5, - "offset": 250 - }, - "end": { - "line": 35, - "column": 6, - "offset": 251 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 35, - "column": 4, - "offset": 249 - }, - "end": { - "line": 35, - "column": 7, - "offset": 252 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "Bar", - "position": { - "start": { - "line": 35, - "column": 7, - "offset": 252 - }, - "end": { - "line": 35, - "column": 10, - "offset": 255 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 35, - "column": 4, - "offset": 249 - }, - "end": { - "line": 35, - "column": 10, - "offset": 255 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 35, - "column": 1, - "offset": 246 - }, - "end": { - "line": 35, - "column": 10, - "offset": 255 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 34, - "column": 1, - "offset": 235 - }, - "end": { - "line": 35, - "column": 10, - "offset": 255 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Single space with content", - "position": { - "start": { - "line": 37, - "column": 1, - "offset": 257 - }, - "end": { - "line": 37, - "column": 26, - "offset": 282 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 37, - "column": 1, - "offset": 257 - }, - "end": { - "line": 38, - "column": 26, - "offset": 308 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": " ", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 40, - "column": 4, - "offset": 313 - }, - "end": { - "line": 40, - "column": 5, - "offset": 314 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 40, - "column": 3, - "offset": 312 - }, - "end": { - "line": 40, - "column": 6, - "offset": 315 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " Hello;", - "position": { - "start": { - "line": 40, - "column": 6, - "offset": 315 - }, - "end": { - "line": 40, - "column": 13, - "offset": 322 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 40, - "column": 3, - "offset": 312 - }, - "end": { - "line": 40, - "column": 13, - "offset": 322 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 40, - "column": 1, - "offset": 310 - }, - "end": { - "line": 40, - "column": 13, - "offset": 322 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": "\t", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "\t", - "position": { - "start": { - "line": 41, - "column": 4, - "offset": 326 - }, - "end": { - "line": 41, - "column": 5, - "offset": 327 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 41, - "column": 3, - "offset": 325 - }, - "end": { - "line": 41, - "column": 6, - "offset": 328 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " World;", - "position": { - "start": { - "line": 41, - "column": 6, - "offset": 328 - }, - "end": { - "line": 41, - "column": 13, - "offset": 335 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 41, - "column": 3, - "offset": 325 - }, - "end": { - "line": 41, - "column": 13, - "offset": 335 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 41, - "column": 1, - "offset": 323 - }, - "end": { - "line": 41, - "column": 13, - "offset": 335 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 40, - "column": 1, - "offset": 310 - }, - "end": { - "line": 41, - "column": 13, - "offset": 335 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "x", - "label": "x", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "x", - "position": { - "start": { - "line": 43, - "column": 5, - "offset": 341 - }, - "end": { - "line": 43, - "column": 6, - "offset": 342 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 43, - "column": 4, - "offset": 340 - }, - "end": { - "line": 43, - "column": 7, - "offset": 343 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " Foo.", - "position": { - "start": { - "line": 43, - "column": 7, - "offset": 343 - }, - "end": { - "line": 43, - "column": 12, - "offset": 348 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 43, - "column": 4, - "offset": 340 - }, - "end": { - "line": 43, - "column": 12, - "offset": 348 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 43, - "column": 1, - "offset": 337 - }, - "end": { - "line": 43, - "column": 12, - "offset": 348 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "x", - "label": "X", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "X", - "position": { - "start": { - "line": 44, - "column": 5, - "offset": 353 - }, - "end": { - "line": 44, - "column": 6, - "offset": 354 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 44, - "column": 4, - "offset": 352 - }, - "end": { - "line": 44, - "column": 7, - "offset": 355 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " World :D", - "position": { - "start": { - "line": 44, - "column": 7, - "offset": 355 - }, - "end": { - "line": 44, - "column": 16, - "offset": 364 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 44, - "column": 4, - "offset": 352 - }, - "end": { - "line": 44, - "column": 16, - "offset": 364 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 44, - "column": 1, - "offset": 349 - }, - "end": { - "line": 44, - "column": 16, - "offset": 364 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 43, - "column": 1, - "offset": 337 - }, - "end": { - "line": 44, - "column": 16, - "offset": 364 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Single tab with content", - "position": { - "start": { - "line": 46, - "column": 1, - "offset": 366 - }, - "end": { - "line": 46, - "column": 24, - "offset": 389 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 46, - "column": 1, - "offset": 366 - }, - "end": { - "line": 47, - "column": 24, - "offset": 413 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": " ", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 49, - "column": 4, - "offset": 418 - }, - "end": { - "line": 49, - "column": 5, - "offset": 419 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 49, - "column": 3, - "offset": 417 - }, - "end": { - "line": 49, - "column": 6, - "offset": 420 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\tHello;", - "position": { - "start": { - "line": 49, - "column": 6, - "offset": 420 - }, - "end": { - "line": 49, - "column": 13, - "offset": 427 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 49, - "column": 3, - "offset": 417 - }, - "end": { - "line": 49, - "column": 13, - "offset": 427 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 49, - "column": 1, - "offset": 415 - }, - "end": { - "line": 49, - "column": 13, - "offset": 427 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": "\t", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "\t", - "position": { - "start": { - "line": 50, - "column": 4, - "offset": 431 - }, - "end": { - "line": 50, - "column": 5, - "offset": 432 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 50, - "column": 3, - "offset": 430 - }, - "end": { - "line": 50, - "column": 6, - "offset": 433 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\tWorld;", - "position": { - "start": { - "line": 50, - "column": 6, - "offset": 433 - }, - "end": { - "line": 50, - "column": 13, - "offset": 440 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 50, - "column": 3, - "offset": 430 - }, - "end": { - "line": 50, - "column": 13, - "offset": 440 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 50, - "column": 1, - "offset": 428 - }, - "end": { - "line": 50, - "column": 13, - "offset": 440 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 49, - "column": 1, - "offset": 415 - }, - "end": { - "line": 50, - "column": 13, - "offset": 440 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "x", - "label": "x", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "x", - "position": { - "start": { - "line": 52, - "column": 5, - "offset": 446 - }, - "end": { - "line": 52, - "column": 6, - "offset": 447 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 52, - "column": 4, - "offset": 445 - }, - "end": { - "line": 52, - "column": 7, - "offset": 448 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\tFoo.", - "position": { - "start": { - "line": 52, - "column": 7, - "offset": 448 - }, - "end": { - "line": 52, - "column": 12, - "offset": 453 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 52, - "column": 4, - "offset": 445 - }, - "end": { - "line": 52, - "column": 12, - "offset": 453 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 52, - "column": 1, - "offset": 442 - }, - "end": { - "line": 52, - "column": 12, - "offset": 453 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "x", - "label": "X", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "X", - "position": { - "start": { - "line": 53, - "column": 5, - "offset": 458 - }, - "end": { - "line": 53, - "column": 6, - "offset": 459 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 53, - "column": 4, - "offset": 457 - }, - "end": { - "line": 53, - "column": 7, - "offset": 460 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\tHello.", - "position": { - "start": { - "line": 53, - "column": 7, - "offset": 460 - }, - "end": { - "line": 53, - "column": 14, - "offset": 467 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 53, - "column": 4, - "offset": 457 - }, - "end": { - "line": 53, - "column": 14, - "offset": 467 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 53, - "column": 1, - "offset": 454 - }, - "end": { - "line": 53, - "column": 14, - "offset": 467 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 52, - "column": 1, - "offset": 442 - }, - "end": { - "line": 53, - "column": 14, - "offset": 467 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Multiple spaces with content", - "position": { - "start": { - "line": 55, - "column": 1, - "offset": 469 - }, - "end": { - "line": 55, - "column": 29, - "offset": 497 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 55, - "column": 1, - "offset": 469 - }, - "end": { - "line": 56, - "column": 29, - "offset": 526 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": " ", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 58, - "column": 4, - "offset": 531 - }, - "end": { - "line": 58, - "column": 5, - "offset": 532 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 58, - "column": 3, - "offset": 530 - }, - "end": { - "line": 58, - "column": 6, - "offset": 533 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " Hello;", - "position": { - "start": { - "line": 58, - "column": 6, - "offset": 533 - }, - "end": { - "line": 58, - "column": 17, - "offset": 544 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 58, - "column": 3, - "offset": 530 - }, - "end": { - "line": 58, - "column": 17, - "offset": 544 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 58, - "column": 1, - "offset": 528 - }, - "end": { - "line": 58, - "column": 17, - "offset": 544 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": "\t", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "\t", - "position": { - "start": { - "line": 59, - "column": 4, - "offset": 548 - }, - "end": { - "line": 59, - "column": 5, - "offset": 549 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 59, - "column": 3, - "offset": 547 - }, - "end": { - "line": 59, - "column": 6, - "offset": 550 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " World;", - "position": { - "start": { - "line": 59, - "column": 6, - "offset": 550 - }, - "end": { - "line": 59, - "column": 17, - "offset": 561 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 59, - "column": 3, - "offset": 547 - }, - "end": { - "line": 59, - "column": 17, - "offset": 561 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 59, - "column": 1, - "offset": 545 - }, - "end": { - "line": 59, - "column": 17, - "offset": 561 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 58, - "column": 1, - "offset": 528 - }, - "end": { - "line": 59, - "column": 17, - "offset": 561 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "x", - "label": "x", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "x", - "position": { - "start": { - "line": 61, - "column": 5, - "offset": 567 - }, - "end": { - "line": 61, - "column": 6, - "offset": 568 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 61, - "column": 4, - "offset": 566 - }, - "end": { - "line": 61, - "column": 7, - "offset": 569 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " Foo.", - "position": { - "start": { - "line": 61, - "column": 7, - "offset": 569 - }, - "end": { - "line": 61, - "column": 15, - "offset": 577 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 61, - "column": 4, - "offset": 566 - }, - "end": { - "line": 61, - "column": 15, - "offset": 577 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 61, - "column": 1, - "offset": 563 - }, - "end": { - "line": 61, - "column": 15, - "offset": 577 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "x", - "label": "X", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "X", - "position": { - "start": { - "line": 62, - "column": 5, - "offset": 582 - }, - "end": { - "line": 62, - "column": 6, - "offset": 583 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 62, - "column": 4, - "offset": 581 - }, - "end": { - "line": 62, - "column": 7, - "offset": 584 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " Bar.", - "position": { - "start": { - "line": 62, - "column": 7, - "offset": 584 - }, - "end": { - "line": 62, - "column": 15, - "offset": 592 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 62, - "column": 4, - "offset": 581 - }, - "end": { - "line": 62, - "column": 15, - "offset": 592 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 62, - "column": 1, - "offset": 578 - }, - "end": { - "line": 62, - "column": 15, - "offset": 592 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 61, - "column": 1, - "offset": 563 - }, - "end": { - "line": 62, - "column": 15, - "offset": 592 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Multiple tabs with content", - "position": { - "start": { - "line": 64, - "column": 1, - "offset": 594 - }, - "end": { - "line": 64, - "column": 27, - "offset": 620 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 64, - "column": 1, - "offset": 594 - }, - "end": { - "line": 65, - "column": 27, - "offset": 647 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": " ", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 67, - "column": 4, - "offset": 652 - }, - "end": { - "line": 67, - "column": 5, - "offset": 653 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 67, - "column": 3, - "offset": 651 - }, - "end": { - "line": 67, - "column": 6, - "offset": 654 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\t\tHello;", - "position": { - "start": { - "line": 67, - "column": 6, - "offset": 654 - }, - "end": { - "line": 67, - "column": 14, - "offset": 662 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 67, - "column": 3, - "offset": 651 - }, - "end": { - "line": 67, - "column": 14, - "offset": 662 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 67, - "column": 1, - "offset": 649 - }, - "end": { - "line": 67, - "column": 14, - "offset": 662 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": "\t", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "\t", - "position": { - "start": { - "line": 68, - "column": 4, - "offset": 666 - }, - "end": { - "line": 68, - "column": 5, - "offset": 667 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 68, - "column": 3, - "offset": 665 - }, - "end": { - "line": 68, - "column": 6, - "offset": 668 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\t\tWorld;", - "position": { - "start": { - "line": 68, - "column": 6, - "offset": 668 - }, - "end": { - "line": 68, - "column": 14, - "offset": 676 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 68, - "column": 3, - "offset": 665 - }, - "end": { - "line": 68, - "column": 14, - "offset": 676 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 68, - "column": 1, - "offset": 663 - }, - "end": { - "line": 68, - "column": 14, - "offset": 676 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 67, - "column": 1, - "offset": 649 - }, - "end": { - "line": 68, - "column": 14, - "offset": 676 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "x", - "label": "x", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "x", - "position": { - "start": { - "line": 70, - "column": 5, - "offset": 682 - }, - "end": { - "line": 70, - "column": 6, - "offset": 683 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 70, - "column": 4, - "offset": 681 - }, - "end": { - "line": 70, - "column": 7, - "offset": 684 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\t\tFoo.", - "position": { - "start": { - "line": 70, - "column": 7, - "offset": 684 - }, - "end": { - "line": 70, - "column": 13, - "offset": 690 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 70, - "column": 4, - "offset": 681 - }, - "end": { - "line": 70, - "column": 13, - "offset": 690 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 70, - "column": 1, - "offset": 678 - }, - "end": { - "line": 70, - "column": 13, - "offset": 690 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "x", - "label": "X", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "X", - "position": { - "start": { - "line": 71, - "column": 5, - "offset": 695 - }, - "end": { - "line": 71, - "column": 6, - "offset": 696 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 71, - "column": 4, - "offset": 694 - }, - "end": { - "line": 71, - "column": 7, - "offset": 697 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\t\tBar.", - "position": { - "start": { - "line": 71, - "column": 7, - "offset": 697 - }, - "end": { - "line": 71, - "column": 13, - "offset": 703 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 71, - "column": 4, - "offset": 694 - }, - "end": { - "line": 71, - "column": 13, - "offset": 703 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 71, - "column": 1, - "offset": 691 - }, - "end": { - "line": 71, - "column": 13, - "offset": 703 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 70, - "column": 1, - "offset": 678 - }, - "end": { - "line": 71, - "column": 13, - "offset": 703 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Mixed tabs and spaces", - "position": { - "start": { - "line": 73, - "column": 1, - "offset": 705 - }, - "end": { - "line": 73, - "column": 22, - "offset": 726 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 73, - "column": 1, - "offset": 705 - }, - "end": { - "line": 74, - "column": 22, - "offset": 748 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": " ", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 76, - "column": 4, - "offset": 753 - }, - "end": { - "line": 76, - "column": 5, - "offset": 754 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 76, - "column": 3, - "offset": 752 - }, - "end": { - "line": 76, - "column": 6, - "offset": 755 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " \t Hello;", - "position": { - "start": { - "line": 76, - "column": 6, - "offset": 755 - }, - "end": { - "line": 76, - "column": 18, - "offset": 767 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 76, - "column": 3, - "offset": 752 - }, - "end": { - "line": 76, - "column": 18, - "offset": 767 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 76, - "column": 1, - "offset": 750 - }, - "end": { - "line": 76, - "column": 18, - "offset": 767 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 76, - "column": 1, - "offset": 750 - }, - "end": { - "line": 76, - "column": 18, - "offset": 767 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "x", - "label": "x", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "x", - "position": { - "start": { - "line": 78, - "column": 5, - "offset": 773 - }, - "end": { - "line": 78, - "column": 6, - "offset": 774 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 78, - "column": 4, - "offset": 772 - }, - "end": { - "line": 78, - "column": 7, - "offset": 775 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\t World;", - "position": { - "start": { - "line": 78, - "column": 7, - "offset": 775 - }, - "end": { - "line": 78, - "column": 18, - "offset": 786 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 78, - "column": 4, - "offset": 772 - }, - "end": { - "line": 78, - "column": 18, - "offset": 786 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 78, - "column": 1, - "offset": 769 - }, - "end": { - "line": 78, - "column": 18, - "offset": 786 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 78, - "column": 1, - "offset": 769 - }, - "end": { - "line": 78, - "column": 18, - "offset": 786 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": "\t", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "\t", - "position": { - "start": { - "line": 80, - "column": 4, - "offset": 791 - }, - "end": { - "line": 80, - "column": 5, - "offset": 792 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 80, - "column": 3, - "offset": 790 - }, - "end": { - "line": 80, - "column": 6, - "offset": 793 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " \tHello;", - "position": { - "start": { - "line": 80, - "column": 6, - "offset": 793 - }, - "end": { - "line": 80, - "column": 18, - "offset": 805 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 80, - "column": 3, - "offset": 790 - }, - "end": { - "line": 80, - "column": 18, - "offset": 805 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 80, - "column": 1, - "offset": 788 - }, - "end": { - "line": 80, - "column": 18, - "offset": 805 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": " ", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 81, - "column": 4, - "offset": 809 - }, - "end": { - "line": 81, - "column": 5, - "offset": 810 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 81, - "column": 3, - "offset": 808 - }, - "end": { - "line": 81, - "column": 6, - "offset": 811 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\t \tWorld.", - "position": { - "start": { - "line": 81, - "column": 6, - "offset": 811 - }, - "end": { - "line": 81, - "column": 17, - "offset": 822 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 81, - "column": 3, - "offset": 808 - }, - "end": { - "line": 81, - "column": 17, - "offset": 822 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 81, - "column": 1, - "offset": 806 - }, - "end": { - "line": 81, - "column": 17, - "offset": 822 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 80, - "column": 1, - "offset": 788 - }, - "end": { - "line": 81, - "column": 17, - "offset": 822 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": true, - "start": 2, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "x", - "label": "X", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "X", - "position": { - "start": { - "line": 83, - "column": 5, - "offset": 828 - }, - "end": { - "line": 83, - "column": 6, - "offset": 829 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 83, - "column": 4, - "offset": 827 - }, - "end": { - "line": 83, - "column": 7, - "offset": 830 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\t \tBar.", - "position": { - "start": { - "line": 83, - "column": 7, - "offset": 830 - }, - "end": { - "line": 83, - "column": 14, - "offset": 837 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 83, - "column": 4, - "offset": 827 - }, - "end": { - "line": 83, - "column": 14, - "offset": 837 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 83, - "column": 1, - "offset": 824 - }, - "end": { - "line": 83, - "column": 14, - "offset": 837 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 83, - "column": 1, - "offset": 824 - }, - "end": { - "line": 83, - "column": 14, - "offset": 837 - }, - "indent": [] - } - }, - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Line breaks", - "position": { - "start": { - "line": 85, - "column": 1, - "offset": 839 - }, - "end": { - "line": 85, - "column": 12, - "offset": 850 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 85, - "column": 1, - "offset": 839 - }, - "end": { - "line": 86, - "column": 12, - "offset": 862 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": "\n", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "\n", - "position": { - "start": { - "line": 88, - "column": 4, - "offset": 867 - }, - "end": { - "line": 89, - "column": 1, - "offset": 868 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 88, - "column": 3, - "offset": 866 - }, - "end": { - "line": 89, - "column": 2, - "offset": 869 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": " Hello;", - "position": { - "start": { - "line": 89, - "column": 2, - "offset": 869 - }, - "end": { - "line": 89, - "column": 9, - "offset": 876 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 88, - "column": 3, - "offset": 866 - }, - "end": { - "line": 89, - "column": 9, - "offset": 876 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 88, - "column": 1, - "offset": 864 - }, - "end": { - "line": 89, - "column": 9, - "offset": 876 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 88, - "column": 1, - "offset": 864 - }, - "end": { - "line": 89, - "column": 9, - "offset": 876 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": "\n", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "\n", - "position": { - "start": { - "line": 91, - "column": 5, - "offset": 882 - }, - "end": { - "line": 92, - "column": 1, - "offset": 883 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 91, - "column": 4, - "offset": 881 - }, - "end": { - "line": 92, - "column": 2, - "offset": 884 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": " Hello;", - "position": { - "start": { - "line": 92, - "column": 2, - "offset": 884 - }, - "end": { - "line": 92, - "column": 9, - "offset": 891 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 91, - "column": 4, - "offset": 881 - }, - "end": { - "line": 92, - "column": 9, - "offset": 891 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 91, - "column": 1, - "offset": 878 - }, - "end": { - "line": 92, - "column": 9, - "offset": 891 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 91, - "column": 1, - "offset": 878 - }, - "end": { - "line": 92, - "column": 9, - "offset": 891 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Multiple unfinished characters", - "position": { - "start": { - "line": 94, - "column": 1, - "offset": 893 - }, - "end": { - "line": 94, - "column": 31, - "offset": 923 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 94, - "column": 1, - "offset": 893 - }, - "end": { - "line": 95, - "column": 31, - "offset": 954 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": " ", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 97, - "column": 4, - "offset": 959 - }, - "end": { - "line": 97, - "column": 6, - "offset": 961 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 97, - "column": 3, - "offset": 958 - }, - "end": { - "line": 97, - "column": 7, - "offset": 962 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " Hello;", - "position": { - "start": { - "line": 97, - "column": 7, - "offset": 962 - }, - "end": { - "line": 97, - "column": 14, - "offset": 969 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 97, - "column": 3, - "offset": 958 - }, - "end": { - "line": 97, - "column": 14, - "offset": 969 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 97, - "column": 1, - "offset": 956 - }, - "end": { - "line": 97, - "column": 14, - "offset": 969 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 97, - "column": 1, - "offset": 956 - }, - "end": { - "line": 97, - "column": 14, - "offset": 969 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": " \n", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": " \n", - "position": { - "start": { - "line": 99, - "column": 5, - "offset": 975 - }, - "end": { - "line": 100, - "column": 2, - "offset": 978 - }, - "indent": [ - 2 - ] - } - } - ], - "position": { - "start": { - "line": 99, - "column": 4, - "offset": 974 - }, - "end": { - "line": 100, - "column": 3, - "offset": 979 - }, - "indent": [ - 2 - ] - } - }, - { - "type": "text", - "value": " World;", - "position": { - "start": { - "line": 100, - "column": 3, - "offset": 979 - }, - "end": { - "line": 100, - "column": 10, - "offset": 986 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 99, - "column": 4, - "offset": 974 - }, - "end": { - "line": 100, - "column": 10, - "offset": 986 - }, - "indent": [ - 2 - ] - } - } - ], - "position": { - "start": { - "line": 99, - "column": 1, - "offset": 971 - }, - "end": { - "line": 100, - "column": 10, - "offset": 986 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": "\t\t", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "\t\t", - "position": { - "start": { - "line": 101, - "column": 5, - "offset": 991 - }, - "end": { - "line": 101, - "column": 7, - "offset": 993 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 101, - "column": 4, - "offset": 990 - }, - "end": { - "line": 101, - "column": 8, - "offset": 994 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " Hello;", - "position": { - "start": { - "line": 101, - "column": 8, - "offset": 994 - }, - "end": { - "line": 101, - "column": 15, - "offset": 1001 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 101, - "column": 4, - "offset": 990 - }, - "end": { - "line": 101, - "column": 15, - "offset": 1001 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 101, - "column": 1, - "offset": 987 - }, - "end": { - "line": 101, - "column": 15, - "offset": 1001 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": " \t ", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": " \t ", - "position": { - "start": { - "line": 102, - "column": 5, - "offset": 1006 - }, - "end": { - "line": 102, - "column": 8, - "offset": 1009 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 102, - "column": 4, - "offset": 1005 - }, - "end": { - "line": 102, - "column": 9, - "offset": 1010 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " World.", - "position": { - "start": { - "line": 102, - "column": 9, - "offset": 1010 - }, - "end": { - "line": 102, - "column": 16, - "offset": 1017 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 102, - "column": 4, - "offset": 1005 - }, - "end": { - "line": 102, - "column": 16, - "offset": 1017 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 102, - "column": 1, - "offset": 1002 - }, - "end": { - "line": 102, - "column": 16, - "offset": 1017 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 99, - "column": 1, - "offset": 971 - }, - "end": { - "line": 102, - "column": 16, - "offset": 1017 - }, - "indent": [ - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 103, - "column": 1, - "offset": 1018 - } - } -} diff --git a/test/fixtures/tree/task-list.nogfm.json b/test/fixtures/tree/task-list.nogfm.json deleted file mode 100644 index 0687d6a99..000000000 --- a/test/fixtures/tree/task-list.nogfm.json +++ /dev/null @@ -1,4936 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Empty items", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 12, - "offset": 11 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 2, - "column": 12, - "offset": 23 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": " ", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 4, - "column": 4, - "offset": 28 - }, - "end": { - "line": 4, - "column": 5, - "offset": 29 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 3, - "offset": 27 - }, - "end": { - "line": 4, - "column": 6, - "offset": 30 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 3, - "offset": 27 - }, - "end": { - "line": 4, - "column": 6, - "offset": 30 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 25 - }, - "end": { - "line": 4, - "column": 6, - "offset": 30 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": "\t", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "\t", - "position": { - "start": { - "line": 5, - "column": 4, - "offset": 34 - }, - "end": { - "line": 5, - "column": 5, - "offset": 35 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 3, - "offset": 33 - }, - "end": { - "line": 5, - "column": 6, - "offset": 36 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 3, - "offset": 33 - }, - "end": { - "line": 5, - "column": 6, - "offset": 36 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 31 - }, - "end": { - "line": 5, - "column": 6, - "offset": 36 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 4, - "column": 1, - "offset": 25 - }, - "end": { - "line": 5, - "column": 6, - "offset": 36 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "x", - "label": "x", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "x", - "position": { - "start": { - "line": 7, - "column": 5, - "offset": 42 - }, - "end": { - "line": 7, - "column": 6, - "offset": 43 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 4, - "offset": 41 - }, - "end": { - "line": 7, - "column": 7, - "offset": 44 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 4, - "offset": 41 - }, - "end": { - "line": 7, - "column": 7, - "offset": 44 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 38 - }, - "end": { - "line": 7, - "column": 7, - "offset": 44 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "x", - "label": "X", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "X", - "position": { - "start": { - "line": 8, - "column": 5, - "offset": 49 - }, - "end": { - "line": 8, - "column": 6, - "offset": 50 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 8, - "column": 4, - "offset": 48 - }, - "end": { - "line": 8, - "column": 7, - "offset": 51 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 8, - "column": 4, - "offset": 48 - }, - "end": { - "line": 8, - "column": 7, - "offset": 51 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 8, - "column": 1, - "offset": 45 - }, - "end": { - "line": 8, - "column": 7, - "offset": 51 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 38 - }, - "end": { - "line": 8, - "column": 7, - "offset": 51 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Single space", - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 53 - }, - "end": { - "line": 10, - "column": 13, - "offset": 65 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 53 - }, - "end": { - "line": 11, - "column": 13, - "offset": 78 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": " ", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 13, - "column": 4, - "offset": 83 - }, - "end": { - "line": 13, - "column": 5, - "offset": 84 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 3, - "offset": 82 - }, - "end": { - "line": 13, - "column": 6, - "offset": 85 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 13, - "column": 6, - "offset": 85 - }, - "end": { - "line": 13, - "column": 7, - "offset": 86 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 3, - "offset": 82 - }, - "end": { - "line": 13, - "column": 7, - "offset": 86 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 80 - }, - "end": { - "line": 13, - "column": 7, - "offset": 86 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": "\t", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "\t", - "position": { - "start": { - "line": 14, - "column": 4, - "offset": 90 - }, - "end": { - "line": 14, - "column": 5, - "offset": 91 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 3, - "offset": 89 - }, - "end": { - "line": 14, - "column": 6, - "offset": 92 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 14, - "column": 6, - "offset": 92 - }, - "end": { - "line": 14, - "column": 7, - "offset": 93 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 3, - "offset": 89 - }, - "end": { - "line": 14, - "column": 7, - "offset": 93 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 87 - }, - "end": { - "line": 14, - "column": 7, - "offset": 93 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 80 - }, - "end": { - "line": 14, - "column": 7, - "offset": 93 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "x", - "label": "x", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "x", - "position": { - "start": { - "line": 16, - "column": 5, - "offset": 99 - }, - "end": { - "line": 16, - "column": 6, - "offset": 100 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 4, - "offset": 98 - }, - "end": { - "line": 16, - "column": 7, - "offset": 101 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 16, - "column": 7, - "offset": 101 - }, - "end": { - "line": 16, - "column": 8, - "offset": 102 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 4, - "offset": 98 - }, - "end": { - "line": 16, - "column": 8, - "offset": 102 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 95 - }, - "end": { - "line": 16, - "column": 8, - "offset": 102 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "x", - "label": "X", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "X", - "position": { - "start": { - "line": 17, - "column": 5, - "offset": 107 - }, - "end": { - "line": 17, - "column": 6, - "offset": 108 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 17, - "column": 4, - "offset": 106 - }, - "end": { - "line": 17, - "column": 7, - "offset": 109 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 17, - "column": 7, - "offset": 109 - }, - "end": { - "line": 17, - "column": 8, - "offset": 110 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 17, - "column": 4, - "offset": 106 - }, - "end": { - "line": 17, - "column": 8, - "offset": 110 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 103 - }, - "end": { - "line": 17, - "column": 8, - "offset": 110 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 95 - }, - "end": { - "line": 17, - "column": 8, - "offset": 110 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Tab", - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 112 - }, - "end": { - "line": 19, - "column": 4, - "offset": 115 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 112 - }, - "end": { - "line": 20, - "column": 4, - "offset": 119 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": " ", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 22, - "column": 4, - "offset": 124 - }, - "end": { - "line": 22, - "column": 5, - "offset": 125 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 22, - "column": 3, - "offset": 123 - }, - "end": { - "line": 22, - "column": 6, - "offset": 126 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\t", - "position": { - "start": { - "line": 22, - "column": 6, - "offset": 126 - }, - "end": { - "line": 22, - "column": 7, - "offset": 127 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 22, - "column": 3, - "offset": 123 - }, - "end": { - "line": 22, - "column": 7, - "offset": 127 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 22, - "column": 1, - "offset": 121 - }, - "end": { - "line": 22, - "column": 7, - "offset": 127 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": "\t", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "\t", - "position": { - "start": { - "line": 23, - "column": 4, - "offset": 131 - }, - "end": { - "line": 23, - "column": 5, - "offset": 132 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 23, - "column": 3, - "offset": 130 - }, - "end": { - "line": 23, - "column": 6, - "offset": 133 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\t", - "position": { - "start": { - "line": 23, - "column": 6, - "offset": 133 - }, - "end": { - "line": 23, - "column": 7, - "offset": 134 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 23, - "column": 3, - "offset": 130 - }, - "end": { - "line": 23, - "column": 7, - "offset": 134 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 23, - "column": 1, - "offset": 128 - }, - "end": { - "line": 23, - "column": 7, - "offset": 134 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 22, - "column": 1, - "offset": 121 - }, - "end": { - "line": 23, - "column": 7, - "offset": 134 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "x", - "label": "x", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "x", - "position": { - "start": { - "line": 25, - "column": 5, - "offset": 140 - }, - "end": { - "line": 25, - "column": 6, - "offset": 141 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 25, - "column": 4, - "offset": 139 - }, - "end": { - "line": 25, - "column": 7, - "offset": 142 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\t", - "position": { - "start": { - "line": 25, - "column": 7, - "offset": 142 - }, - "end": { - "line": 25, - "column": 8, - "offset": 143 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 25, - "column": 4, - "offset": 139 - }, - "end": { - "line": 25, - "column": 8, - "offset": 143 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 25, - "column": 1, - "offset": 136 - }, - "end": { - "line": 25, - "column": 8, - "offset": 143 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "x", - "label": "X", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "X", - "position": { - "start": { - "line": 26, - "column": 5, - "offset": 148 - }, - "end": { - "line": 26, - "column": 6, - "offset": 149 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 26, - "column": 4, - "offset": 147 - }, - "end": { - "line": 26, - "column": 7, - "offset": 150 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\t", - "position": { - "start": { - "line": 26, - "column": 7, - "offset": 150 - }, - "end": { - "line": 26, - "column": 8, - "offset": 151 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 26, - "column": 4, - "offset": 147 - }, - "end": { - "line": 26, - "column": 8, - "offset": 151 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 26, - "column": 1, - "offset": 144 - }, - "end": { - "line": 26, - "column": 8, - "offset": 151 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 25, - "column": 1, - "offset": 136 - }, - "end": { - "line": 26, - "column": 8, - "offset": 151 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "No white space with content", - "position": { - "start": { - "line": 28, - "column": 1, - "offset": 153 - }, - "end": { - "line": 28, - "column": 28, - "offset": 180 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 28, - "column": 1, - "offset": 153 - }, - "end": { - "line": 29, - "column": 28, - "offset": 208 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": " ", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 31, - "column": 4, - "offset": 213 - }, - "end": { - "line": 31, - "column": 5, - "offset": 214 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 31, - "column": 3, - "offset": 212 - }, - "end": { - "line": 31, - "column": 6, - "offset": 215 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "Hello;", - "position": { - "start": { - "line": 31, - "column": 6, - "offset": 215 - }, - "end": { - "line": 31, - "column": 12, - "offset": 221 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 31, - "column": 3, - "offset": 212 - }, - "end": { - "line": 31, - "column": 12, - "offset": 221 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 31, - "column": 1, - "offset": 210 - }, - "end": { - "line": 31, - "column": 12, - "offset": 221 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": "\t", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "\t", - "position": { - "start": { - "line": 32, - "column": 4, - "offset": 225 - }, - "end": { - "line": 32, - "column": 5, - "offset": 226 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 32, - "column": 3, - "offset": 224 - }, - "end": { - "line": 32, - "column": 6, - "offset": 227 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "World;", - "position": { - "start": { - "line": 32, - "column": 6, - "offset": 227 - }, - "end": { - "line": 32, - "column": 12, - "offset": 233 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 32, - "column": 3, - "offset": 224 - }, - "end": { - "line": 32, - "column": 12, - "offset": 233 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 32, - "column": 1, - "offset": 222 - }, - "end": { - "line": 32, - "column": 12, - "offset": 233 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 31, - "column": 1, - "offset": 210 - }, - "end": { - "line": 32, - "column": 12, - "offset": 233 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "x", - "label": "x", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "x", - "position": { - "start": { - "line": 34, - "column": 5, - "offset": 239 - }, - "end": { - "line": 34, - "column": 6, - "offset": 240 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 34, - "column": 4, - "offset": 238 - }, - "end": { - "line": 34, - "column": 7, - "offset": 241 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "Foo.", - "position": { - "start": { - "line": 34, - "column": 7, - "offset": 241 - }, - "end": { - "line": 34, - "column": 11, - "offset": 245 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 34, - "column": 4, - "offset": 238 - }, - "end": { - "line": 34, - "column": 11, - "offset": 245 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 34, - "column": 1, - "offset": 235 - }, - "end": { - "line": 34, - "column": 11, - "offset": 245 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "x", - "label": "X", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "X", - "position": { - "start": { - "line": 35, - "column": 5, - "offset": 250 - }, - "end": { - "line": 35, - "column": 6, - "offset": 251 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 35, - "column": 4, - "offset": 249 - }, - "end": { - "line": 35, - "column": 7, - "offset": 252 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "Bar", - "position": { - "start": { - "line": 35, - "column": 7, - "offset": 252 - }, - "end": { - "line": 35, - "column": 10, - "offset": 255 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 35, - "column": 4, - "offset": 249 - }, - "end": { - "line": 35, - "column": 10, - "offset": 255 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 35, - "column": 1, - "offset": 246 - }, - "end": { - "line": 35, - "column": 10, - "offset": 255 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 34, - "column": 1, - "offset": 235 - }, - "end": { - "line": 35, - "column": 10, - "offset": 255 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Single space with content", - "position": { - "start": { - "line": 37, - "column": 1, - "offset": 257 - }, - "end": { - "line": 37, - "column": 26, - "offset": 282 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 37, - "column": 1, - "offset": 257 - }, - "end": { - "line": 38, - "column": 26, - "offset": 308 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": " ", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 40, - "column": 4, - "offset": 313 - }, - "end": { - "line": 40, - "column": 5, - "offset": 314 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 40, - "column": 3, - "offset": 312 - }, - "end": { - "line": 40, - "column": 6, - "offset": 315 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " Hello;", - "position": { - "start": { - "line": 40, - "column": 6, - "offset": 315 - }, - "end": { - "line": 40, - "column": 13, - "offset": 322 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 40, - "column": 3, - "offset": 312 - }, - "end": { - "line": 40, - "column": 13, - "offset": 322 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 40, - "column": 1, - "offset": 310 - }, - "end": { - "line": 40, - "column": 13, - "offset": 322 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": "\t", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "\t", - "position": { - "start": { - "line": 41, - "column": 4, - "offset": 326 - }, - "end": { - "line": 41, - "column": 5, - "offset": 327 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 41, - "column": 3, - "offset": 325 - }, - "end": { - "line": 41, - "column": 6, - "offset": 328 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " World;", - "position": { - "start": { - "line": 41, - "column": 6, - "offset": 328 - }, - "end": { - "line": 41, - "column": 13, - "offset": 335 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 41, - "column": 3, - "offset": 325 - }, - "end": { - "line": 41, - "column": 13, - "offset": 335 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 41, - "column": 1, - "offset": 323 - }, - "end": { - "line": 41, - "column": 13, - "offset": 335 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 40, - "column": 1, - "offset": 310 - }, - "end": { - "line": 41, - "column": 13, - "offset": 335 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "x", - "label": "x", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "x", - "position": { - "start": { - "line": 43, - "column": 5, - "offset": 341 - }, - "end": { - "line": 43, - "column": 6, - "offset": 342 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 43, - "column": 4, - "offset": 340 - }, - "end": { - "line": 43, - "column": 7, - "offset": 343 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " Foo.", - "position": { - "start": { - "line": 43, - "column": 7, - "offset": 343 - }, - "end": { - "line": 43, - "column": 12, - "offset": 348 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 43, - "column": 4, - "offset": 340 - }, - "end": { - "line": 43, - "column": 12, - "offset": 348 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 43, - "column": 1, - "offset": 337 - }, - "end": { - "line": 43, - "column": 12, - "offset": 348 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "x", - "label": "X", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "X", - "position": { - "start": { - "line": 44, - "column": 5, - "offset": 353 - }, - "end": { - "line": 44, - "column": 6, - "offset": 354 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 44, - "column": 4, - "offset": 352 - }, - "end": { - "line": 44, - "column": 7, - "offset": 355 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " World :D", - "position": { - "start": { - "line": 44, - "column": 7, - "offset": 355 - }, - "end": { - "line": 44, - "column": 16, - "offset": 364 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 44, - "column": 4, - "offset": 352 - }, - "end": { - "line": 44, - "column": 16, - "offset": 364 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 44, - "column": 1, - "offset": 349 - }, - "end": { - "line": 44, - "column": 16, - "offset": 364 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 43, - "column": 1, - "offset": 337 - }, - "end": { - "line": 44, - "column": 16, - "offset": 364 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Single tab with content", - "position": { - "start": { - "line": 46, - "column": 1, - "offset": 366 - }, - "end": { - "line": 46, - "column": 24, - "offset": 389 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 46, - "column": 1, - "offset": 366 - }, - "end": { - "line": 47, - "column": 24, - "offset": 413 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": " ", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 49, - "column": 4, - "offset": 418 - }, - "end": { - "line": 49, - "column": 5, - "offset": 419 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 49, - "column": 3, - "offset": 417 - }, - "end": { - "line": 49, - "column": 6, - "offset": 420 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\tHello;", - "position": { - "start": { - "line": 49, - "column": 6, - "offset": 420 - }, - "end": { - "line": 49, - "column": 13, - "offset": 427 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 49, - "column": 3, - "offset": 417 - }, - "end": { - "line": 49, - "column": 13, - "offset": 427 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 49, - "column": 1, - "offset": 415 - }, - "end": { - "line": 49, - "column": 13, - "offset": 427 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": "\t", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "\t", - "position": { - "start": { - "line": 50, - "column": 4, - "offset": 431 - }, - "end": { - "line": 50, - "column": 5, - "offset": 432 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 50, - "column": 3, - "offset": 430 - }, - "end": { - "line": 50, - "column": 6, - "offset": 433 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\tWorld;", - "position": { - "start": { - "line": 50, - "column": 6, - "offset": 433 - }, - "end": { - "line": 50, - "column": 13, - "offset": 440 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 50, - "column": 3, - "offset": 430 - }, - "end": { - "line": 50, - "column": 13, - "offset": 440 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 50, - "column": 1, - "offset": 428 - }, - "end": { - "line": 50, - "column": 13, - "offset": 440 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 49, - "column": 1, - "offset": 415 - }, - "end": { - "line": 50, - "column": 13, - "offset": 440 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "x", - "label": "x", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "x", - "position": { - "start": { - "line": 52, - "column": 5, - "offset": 446 - }, - "end": { - "line": 52, - "column": 6, - "offset": 447 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 52, - "column": 4, - "offset": 445 - }, - "end": { - "line": 52, - "column": 7, - "offset": 448 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\tFoo.", - "position": { - "start": { - "line": 52, - "column": 7, - "offset": 448 - }, - "end": { - "line": 52, - "column": 12, - "offset": 453 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 52, - "column": 4, - "offset": 445 - }, - "end": { - "line": 52, - "column": 12, - "offset": 453 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 52, - "column": 1, - "offset": 442 - }, - "end": { - "line": 52, - "column": 12, - "offset": 453 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "x", - "label": "X", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "X", - "position": { - "start": { - "line": 53, - "column": 5, - "offset": 458 - }, - "end": { - "line": 53, - "column": 6, - "offset": 459 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 53, - "column": 4, - "offset": 457 - }, - "end": { - "line": 53, - "column": 7, - "offset": 460 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\tHello.", - "position": { - "start": { - "line": 53, - "column": 7, - "offset": 460 - }, - "end": { - "line": 53, - "column": 14, - "offset": 467 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 53, - "column": 4, - "offset": 457 - }, - "end": { - "line": 53, - "column": 14, - "offset": 467 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 53, - "column": 1, - "offset": 454 - }, - "end": { - "line": 53, - "column": 14, - "offset": 467 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 52, - "column": 1, - "offset": 442 - }, - "end": { - "line": 53, - "column": 14, - "offset": 467 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Multiple spaces with content", - "position": { - "start": { - "line": 55, - "column": 1, - "offset": 469 - }, - "end": { - "line": 55, - "column": 29, - "offset": 497 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 55, - "column": 1, - "offset": 469 - }, - "end": { - "line": 56, - "column": 29, - "offset": 526 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": " ", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 58, - "column": 4, - "offset": 531 - }, - "end": { - "line": 58, - "column": 5, - "offset": 532 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 58, - "column": 3, - "offset": 530 - }, - "end": { - "line": 58, - "column": 6, - "offset": 533 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " Hello;", - "position": { - "start": { - "line": 58, - "column": 6, - "offset": 533 - }, - "end": { - "line": 58, - "column": 17, - "offset": 544 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 58, - "column": 3, - "offset": 530 - }, - "end": { - "line": 58, - "column": 17, - "offset": 544 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 58, - "column": 1, - "offset": 528 - }, - "end": { - "line": 58, - "column": 17, - "offset": 544 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": "\t", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "\t", - "position": { - "start": { - "line": 59, - "column": 4, - "offset": 548 - }, - "end": { - "line": 59, - "column": 5, - "offset": 549 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 59, - "column": 3, - "offset": 547 - }, - "end": { - "line": 59, - "column": 6, - "offset": 550 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " World;", - "position": { - "start": { - "line": 59, - "column": 6, - "offset": 550 - }, - "end": { - "line": 59, - "column": 17, - "offset": 561 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 59, - "column": 3, - "offset": 547 - }, - "end": { - "line": 59, - "column": 17, - "offset": 561 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 59, - "column": 1, - "offset": 545 - }, - "end": { - "line": 59, - "column": 17, - "offset": 561 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 58, - "column": 1, - "offset": 528 - }, - "end": { - "line": 59, - "column": 17, - "offset": 561 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "x", - "label": "x", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "x", - "position": { - "start": { - "line": 61, - "column": 5, - "offset": 567 - }, - "end": { - "line": 61, - "column": 6, - "offset": 568 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 61, - "column": 4, - "offset": 566 - }, - "end": { - "line": 61, - "column": 7, - "offset": 569 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " Foo.", - "position": { - "start": { - "line": 61, - "column": 7, - "offset": 569 - }, - "end": { - "line": 61, - "column": 15, - "offset": 577 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 61, - "column": 4, - "offset": 566 - }, - "end": { - "line": 61, - "column": 15, - "offset": 577 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 61, - "column": 1, - "offset": 563 - }, - "end": { - "line": 61, - "column": 15, - "offset": 577 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "x", - "label": "X", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "X", - "position": { - "start": { - "line": 62, - "column": 5, - "offset": 582 - }, - "end": { - "line": 62, - "column": 6, - "offset": 583 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 62, - "column": 4, - "offset": 581 - }, - "end": { - "line": 62, - "column": 7, - "offset": 584 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " Bar.", - "position": { - "start": { - "line": 62, - "column": 7, - "offset": 584 - }, - "end": { - "line": 62, - "column": 15, - "offset": 592 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 62, - "column": 4, - "offset": 581 - }, - "end": { - "line": 62, - "column": 15, - "offset": 592 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 62, - "column": 1, - "offset": 578 - }, - "end": { - "line": 62, - "column": 15, - "offset": 592 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 61, - "column": 1, - "offset": 563 - }, - "end": { - "line": 62, - "column": 15, - "offset": 592 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Multiple tabs with content", - "position": { - "start": { - "line": 64, - "column": 1, - "offset": 594 - }, - "end": { - "line": 64, - "column": 27, - "offset": 620 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 64, - "column": 1, - "offset": 594 - }, - "end": { - "line": 65, - "column": 27, - "offset": 647 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": " ", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 67, - "column": 4, - "offset": 652 - }, - "end": { - "line": 67, - "column": 5, - "offset": 653 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 67, - "column": 3, - "offset": 651 - }, - "end": { - "line": 67, - "column": 6, - "offset": 654 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\t\tHello;", - "position": { - "start": { - "line": 67, - "column": 6, - "offset": 654 - }, - "end": { - "line": 67, - "column": 14, - "offset": 662 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 67, - "column": 3, - "offset": 651 - }, - "end": { - "line": 67, - "column": 14, - "offset": 662 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 67, - "column": 1, - "offset": 649 - }, - "end": { - "line": 67, - "column": 14, - "offset": 662 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": "\t", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "\t", - "position": { - "start": { - "line": 68, - "column": 4, - "offset": 666 - }, - "end": { - "line": 68, - "column": 5, - "offset": 667 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 68, - "column": 3, - "offset": 665 - }, - "end": { - "line": 68, - "column": 6, - "offset": 668 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\t\tWorld;", - "position": { - "start": { - "line": 68, - "column": 6, - "offset": 668 - }, - "end": { - "line": 68, - "column": 14, - "offset": 676 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 68, - "column": 3, - "offset": 665 - }, - "end": { - "line": 68, - "column": 14, - "offset": 676 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 68, - "column": 1, - "offset": 663 - }, - "end": { - "line": 68, - "column": 14, - "offset": 676 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 67, - "column": 1, - "offset": 649 - }, - "end": { - "line": 68, - "column": 14, - "offset": 676 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "x", - "label": "x", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "x", - "position": { - "start": { - "line": 70, - "column": 5, - "offset": 682 - }, - "end": { - "line": 70, - "column": 6, - "offset": 683 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 70, - "column": 4, - "offset": 681 - }, - "end": { - "line": 70, - "column": 7, - "offset": 684 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\t\tFoo.", - "position": { - "start": { - "line": 70, - "column": 7, - "offset": 684 - }, - "end": { - "line": 70, - "column": 13, - "offset": 690 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 70, - "column": 4, - "offset": 681 - }, - "end": { - "line": 70, - "column": 13, - "offset": 690 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 70, - "column": 1, - "offset": 678 - }, - "end": { - "line": 70, - "column": 13, - "offset": 690 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "x", - "label": "X", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "X", - "position": { - "start": { - "line": 71, - "column": 5, - "offset": 695 - }, - "end": { - "line": 71, - "column": 6, - "offset": 696 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 71, - "column": 4, - "offset": 694 - }, - "end": { - "line": 71, - "column": 7, - "offset": 697 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\t\tBar.", - "position": { - "start": { - "line": 71, - "column": 7, - "offset": 697 - }, - "end": { - "line": 71, - "column": 13, - "offset": 703 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 71, - "column": 4, - "offset": 694 - }, - "end": { - "line": 71, - "column": 13, - "offset": 703 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 71, - "column": 1, - "offset": 691 - }, - "end": { - "line": 71, - "column": 13, - "offset": 703 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 70, - "column": 1, - "offset": 678 - }, - "end": { - "line": 71, - "column": 13, - "offset": 703 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Mixed tabs and spaces", - "position": { - "start": { - "line": 73, - "column": 1, - "offset": 705 - }, - "end": { - "line": 73, - "column": 22, - "offset": 726 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 73, - "column": 1, - "offset": 705 - }, - "end": { - "line": 74, - "column": 22, - "offset": 748 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": " ", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 76, - "column": 4, - "offset": 753 - }, - "end": { - "line": 76, - "column": 5, - "offset": 754 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 76, - "column": 3, - "offset": 752 - }, - "end": { - "line": 76, - "column": 6, - "offset": 755 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " \t Hello;", - "position": { - "start": { - "line": 76, - "column": 6, - "offset": 755 - }, - "end": { - "line": 76, - "column": 18, - "offset": 767 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 76, - "column": 3, - "offset": 752 - }, - "end": { - "line": 76, - "column": 18, - "offset": 767 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 76, - "column": 1, - "offset": 750 - }, - "end": { - "line": 76, - "column": 18, - "offset": 767 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 76, - "column": 1, - "offset": 750 - }, - "end": { - "line": 76, - "column": 18, - "offset": 767 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "x", - "label": "x", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "x", - "position": { - "start": { - "line": 78, - "column": 5, - "offset": 773 - }, - "end": { - "line": 78, - "column": 6, - "offset": 774 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 78, - "column": 4, - "offset": 772 - }, - "end": { - "line": 78, - "column": 7, - "offset": 775 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\t World;", - "position": { - "start": { - "line": 78, - "column": 7, - "offset": 775 - }, - "end": { - "line": 78, - "column": 18, - "offset": 786 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 78, - "column": 4, - "offset": 772 - }, - "end": { - "line": 78, - "column": 18, - "offset": 786 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 78, - "column": 1, - "offset": 769 - }, - "end": { - "line": 78, - "column": 18, - "offset": 786 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 78, - "column": 1, - "offset": 769 - }, - "end": { - "line": 78, - "column": 18, - "offset": 786 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": "\t", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "\t", - "position": { - "start": { - "line": 80, - "column": 4, - "offset": 791 - }, - "end": { - "line": 80, - "column": 5, - "offset": 792 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 80, - "column": 3, - "offset": 790 - }, - "end": { - "line": 80, - "column": 6, - "offset": 793 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " \tHello;", - "position": { - "start": { - "line": 80, - "column": 6, - "offset": 793 - }, - "end": { - "line": 80, - "column": 18, - "offset": 805 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 80, - "column": 3, - "offset": 790 - }, - "end": { - "line": 80, - "column": 18, - "offset": 805 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 80, - "column": 1, - "offset": 788 - }, - "end": { - "line": 80, - "column": 18, - "offset": 805 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": " ", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 81, - "column": 4, - "offset": 809 - }, - "end": { - "line": 81, - "column": 5, - "offset": 810 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 81, - "column": 3, - "offset": 808 - }, - "end": { - "line": 81, - "column": 6, - "offset": 811 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\t \tWorld.", - "position": { - "start": { - "line": 81, - "column": 6, - "offset": 811 - }, - "end": { - "line": 81, - "column": 17, - "offset": 822 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 81, - "column": 3, - "offset": 808 - }, - "end": { - "line": 81, - "column": 17, - "offset": 822 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 81, - "column": 1, - "offset": 806 - }, - "end": { - "line": 81, - "column": 17, - "offset": 822 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 80, - "column": 1, - "offset": 788 - }, - "end": { - "line": 81, - "column": 17, - "offset": 822 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": true, - "start": 2, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "x", - "label": "X", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "X", - "position": { - "start": { - "line": 83, - "column": 5, - "offset": 828 - }, - "end": { - "line": 83, - "column": 6, - "offset": 829 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 83, - "column": 4, - "offset": 827 - }, - "end": { - "line": 83, - "column": 7, - "offset": 830 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\t \tBar.", - "position": { - "start": { - "line": 83, - "column": 7, - "offset": 830 - }, - "end": { - "line": 83, - "column": 14, - "offset": 837 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 83, - "column": 4, - "offset": 827 - }, - "end": { - "line": 83, - "column": 14, - "offset": 837 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 83, - "column": 1, - "offset": 824 - }, - "end": { - "line": 83, - "column": 14, - "offset": 837 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 83, - "column": 1, - "offset": 824 - }, - "end": { - "line": 83, - "column": 14, - "offset": 837 - }, - "indent": [] - } - }, - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Line breaks", - "position": { - "start": { - "line": 85, - "column": 1, - "offset": 839 - }, - "end": { - "line": 85, - "column": 12, - "offset": 850 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 85, - "column": 1, - "offset": 839 - }, - "end": { - "line": 86, - "column": 12, - "offset": 862 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": "\n", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "\n", - "position": { - "start": { - "line": 88, - "column": 4, - "offset": 867 - }, - "end": { - "line": 89, - "column": 1, - "offset": 868 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 88, - "column": 3, - "offset": 866 - }, - "end": { - "line": 89, - "column": 2, - "offset": 869 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": " Hello;", - "position": { - "start": { - "line": 89, - "column": 2, - "offset": 869 - }, - "end": { - "line": 89, - "column": 9, - "offset": 876 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 88, - "column": 3, - "offset": 866 - }, - "end": { - "line": 89, - "column": 9, - "offset": 876 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 88, - "column": 1, - "offset": 864 - }, - "end": { - "line": 89, - "column": 9, - "offset": 876 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 88, - "column": 1, - "offset": 864 - }, - "end": { - "line": 89, - "column": 9, - "offset": 876 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": "\n", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "\n", - "position": { - "start": { - "line": 91, - "column": 5, - "offset": 882 - }, - "end": { - "line": 92, - "column": 1, - "offset": 883 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 91, - "column": 4, - "offset": 881 - }, - "end": { - "line": 92, - "column": 2, - "offset": 884 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "text", - "value": " Hello;", - "position": { - "start": { - "line": 92, - "column": 2, - "offset": 884 - }, - "end": { - "line": 92, - "column": 9, - "offset": 891 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 91, - "column": 4, - "offset": 881 - }, - "end": { - "line": 92, - "column": 9, - "offset": 891 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 91, - "column": 1, - "offset": 878 - }, - "end": { - "line": 92, - "column": 9, - "offset": 891 - }, - "indent": [ - 1 - ] - } - } - ], - "position": { - "start": { - "line": 91, - "column": 1, - "offset": 878 - }, - "end": { - "line": 92, - "column": 9, - "offset": 891 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Multiple unfinished characters", - "position": { - "start": { - "line": 94, - "column": 1, - "offset": 893 - }, - "end": { - "line": 94, - "column": 31, - "offset": 923 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 94, - "column": 1, - "offset": 893 - }, - "end": { - "line": 95, - "column": 31, - "offset": 954 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": " ", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": " ", - "position": { - "start": { - "line": 97, - "column": 4, - "offset": 959 - }, - "end": { - "line": 97, - "column": 6, - "offset": 961 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 97, - "column": 3, - "offset": 958 - }, - "end": { - "line": 97, - "column": 7, - "offset": 962 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " Hello;", - "position": { - "start": { - "line": 97, - "column": 7, - "offset": 962 - }, - "end": { - "line": 97, - "column": 14, - "offset": 969 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 97, - "column": 3, - "offset": 958 - }, - "end": { - "line": 97, - "column": 14, - "offset": 969 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 97, - "column": 1, - "offset": 956 - }, - "end": { - "line": 97, - "column": 14, - "offset": 969 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 97, - "column": 1, - "offset": 956 - }, - "end": { - "line": 97, - "column": 14, - "offset": 969 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": true, - "start": 1, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": " \n", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": " \n", - "position": { - "start": { - "line": 99, - "column": 5, - "offset": 975 - }, - "end": { - "line": 100, - "column": 2, - "offset": 978 - }, - "indent": [ - 2 - ] - } - } - ], - "position": { - "start": { - "line": 99, - "column": 4, - "offset": 974 - }, - "end": { - "line": 100, - "column": 3, - "offset": 979 - }, - "indent": [ - 2 - ] - } - }, - { - "type": "text", - "value": " World;", - "position": { - "start": { - "line": 100, - "column": 3, - "offset": 979 - }, - "end": { - "line": 100, - "column": 10, - "offset": 986 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 99, - "column": 4, - "offset": 974 - }, - "end": { - "line": 100, - "column": 10, - "offset": 986 - }, - "indent": [ - 2 - ] - } - } - ], - "position": { - "start": { - "line": 99, - "column": 1, - "offset": 971 - }, - "end": { - "line": 100, - "column": 10, - "offset": 986 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": "\t\t", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "\t\t", - "position": { - "start": { - "line": 101, - "column": 5, - "offset": 991 - }, - "end": { - "line": 101, - "column": 7, - "offset": 993 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 101, - "column": 4, - "offset": 990 - }, - "end": { - "line": 101, - "column": 8, - "offset": 994 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " Hello;", - "position": { - "start": { - "line": 101, - "column": 8, - "offset": 994 - }, - "end": { - "line": 101, - "column": 15, - "offset": 1001 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 101, - "column": 4, - "offset": 990 - }, - "end": { - "line": 101, - "column": 15, - "offset": 1001 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 101, - "column": 1, - "offset": 987 - }, - "end": { - "line": 101, - "column": 15, - "offset": 1001 - }, - "indent": [] - } - }, - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": " ", - "label": " \t ", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": " \t ", - "position": { - "start": { - "line": 102, - "column": 5, - "offset": 1006 - }, - "end": { - "line": 102, - "column": 8, - "offset": 1009 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 102, - "column": 4, - "offset": 1005 - }, - "end": { - "line": 102, - "column": 9, - "offset": 1010 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " World.", - "position": { - "start": { - "line": 102, - "column": 9, - "offset": 1010 - }, - "end": { - "line": 102, - "column": 16, - "offset": 1017 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 102, - "column": 4, - "offset": 1005 - }, - "end": { - "line": 102, - "column": 16, - "offset": 1017 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 102, - "column": 1, - "offset": 1002 - }, - "end": { - "line": 102, - "column": 16, - "offset": 1017 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 99, - "column": 1, - "offset": 971 - }, - "end": { - "line": 102, - "column": 16, - "offset": 1017 - }, - "indent": [ - 1, - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 103, - "column": 1, - "offset": 1018 - } - } -} diff --git a/test/fixtures/tree/tidyness.json b/test/fixtures/tree/tidyness.json index 2ac0b4e06..8772675c7 100644 --- a/test/fixtures/tree/tidyness.json +++ b/test/fixtures/tree/tidyness.json @@ -20,8 +20,7 @@ "line": 1, "column": 30, "offset": 29 - }, - "indent": [] + } } } ], @@ -35,8 +34,7 @@ "line": 1, "column": 30, "offset": 29 - }, - "indent": [] + } } }, { @@ -66,8 +64,7 @@ "line": 3, "column": 15, "offset": 47 - }, - "indent": [] + } } } ], @@ -81,8 +78,7 @@ "line": 3, "column": 15, "offset": 47 - }, - "indent": [] + } } } ], @@ -96,8 +92,7 @@ "line": 3, "column": 15, "offset": 47 - }, - "indent": [] + } } }, { @@ -121,8 +116,7 @@ "line": 4, "column": 15, "offset": 62 - }, - "indent": [] + } } } ], @@ -136,8 +130,7 @@ "line": 4, "column": 15, "offset": 62 - }, - "indent": [] + } } } ], @@ -151,8 +144,7 @@ "line": 4, "column": 15, "offset": 62 - }, - "indent": [] + } } }, { @@ -176,8 +168,7 @@ "line": 5, "column": 15, "offset": 77 - }, - "indent": [] + } } } ], @@ -191,8 +182,7 @@ "line": 5, "column": 15, "offset": 77 - }, - "indent": [] + } } } ], @@ -206,8 +196,7 @@ "line": 5, "column": 15, "offset": 77 - }, - "indent": [] + } } } ], @@ -221,11 +210,7 @@ "line": 5, "column": 15, "offset": 77 - }, - "indent": [ - 3, - 3 - ] + } } } ], @@ -239,13 +224,7 @@ "line": 5, "column": 15, "offset": 77 - }, - "indent": [ - 1, - 1, - 1, - 1 - ] + } } } ], diff --git a/test/fixtures/tree/title-attributes.commonmark.json b/test/fixtures/tree/title-attributes.commonmark.json deleted file mode 100644 index c386b38bd..000000000 --- a/test/fixtures/tree/title-attributes.commonmark.json +++ /dev/null @@ -1,4807 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Links", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 8, - "offset": 7 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 8, - "offset": 7 - }, - "indent": [] - } - }, - { - "type": "table", - "align": [ - null, - null, - null, - null, - null, - null, - null - ], - "children": [ - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Implementation", - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 11 - }, - "end": { - "line": 3, - "column": 17, - "offset": 25 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 11 - }, - "end": { - "line": 3, - "column": 17, - "offset": 25 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Characters", - "position": { - "start": { - "line": 3, - "column": 20, - "offset": 28 - }, - "end": { - "line": 3, - "column": 30, - "offset": 38 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 20, - "offset": 28 - }, - "end": { - "line": 3, - "column": 30, - "offset": 38 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Nested", - "position": { - "start": { - "line": 3, - "column": 33, - "offset": 41 - }, - "end": { - "line": 3, - "column": 39, - "offset": 47 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 33, - "offset": 41 - }, - "end": { - "line": 3, - "column": 39, - "offset": 47 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Mismatched", - "position": { - "start": { - "line": 3, - "column": 42, - "offset": 50 - }, - "end": { - "line": 3, - "column": 52, - "offset": 60 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 42, - "offset": 50 - }, - "end": { - "line": 3, - "column": 52, - "offset": 60 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Escaped", - "position": { - "start": { - "line": 3, - "column": 55, - "offset": 63 - }, - "end": { - "line": 3, - "column": 62, - "offset": 70 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 55, - "offset": 63 - }, - "end": { - "line": 3, - "column": 62, - "offset": 70 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Named Entities", - "position": { - "start": { - "line": 3, - "column": 65, - "offset": 73 - }, - "end": { - "line": 3, - "column": 79, - "offset": 87 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 65, - "offset": 73 - }, - "end": { - "line": 3, - "column": 79, - "offset": 87 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Numbered Entities", - "position": { - "start": { - "line": 3, - "column": 82, - "offset": 90 - }, - "end": { - "line": 3, - "column": 99, - "offset": 107 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 82, - "offset": 90 - }, - "end": { - "line": 3, - "column": 99, - "offset": 107 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 9 - }, - "end": { - "line": 3, - "column": 101, - "offset": 109 - }, - "indent": [] - } - }, - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Markdown.pl", - "position": { - "start": { - "line": 5, - "column": 3, - "offset": 213 - }, - "end": { - "line": 5, - "column": 14, - "offset": 224 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 3, - "offset": 213 - }, - "end": { - "line": 5, - "column": 17, - "offset": 227 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "inlineCode", - "value": "\"", - "position": { - "start": { - "line": 5, - "column": 20, - "offset": 230 - }, - "end": { - "line": 5, - "column": 23, - "offset": 233 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 20, - "offset": 230 - }, - "end": { - "line": 5, - "column": 30, - "offset": 240 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Yes", - "position": { - "start": { - "line": 5, - "column": 33, - "offset": 243 - }, - "end": { - "line": 5, - "column": 36, - "offset": 246 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 33, - "offset": 243 - }, - "end": { - "line": 5, - "column": 39, - "offset": 249 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Yes", - "position": { - "start": { - "line": 5, - "column": 42, - "offset": 252 - }, - "end": { - "line": 5, - "column": 45, - "offset": 255 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 42, - "offset": 252 - }, - "end": { - "line": 5, - "column": 52, - "offset": 262 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "No", - "position": { - "start": { - "line": 5, - "column": 55, - "offset": 265 - }, - "end": { - "line": 5, - "column": 57, - "offset": 267 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 55, - "offset": 265 - }, - "end": { - "line": 5, - "column": 62, - "offset": 272 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Yes", - "position": { - "start": { - "line": 5, - "column": 65, - "offset": 275 - }, - "end": { - "line": 5, - "column": 68, - "offset": 278 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 65, - "offset": 275 - }, - "end": { - "line": 5, - "column": 79, - "offset": 289 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Yes", - "position": { - "start": { - "line": 5, - "column": 82, - "offset": 292 - }, - "end": { - "line": 5, - "column": 85, - "offset": 295 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 82, - "offset": 292 - }, - "end": { - "line": 5, - "column": 99, - "offset": 309 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 211 - }, - "end": { - "line": 5, - "column": 101, - "offset": 311 - }, - "indent": [] - } - }, - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "GitHub", - "position": { - "start": { - "line": 6, - "column": 3, - "offset": 314 - }, - "end": { - "line": 6, - "column": 9, - "offset": 320 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 3, - "offset": 314 - }, - "end": { - "line": 6, - "column": 17, - "offset": 328 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "inlineCode", - "value": "\"", - "position": { - "start": { - "line": 6, - "column": 20, - "offset": 331 - }, - "end": { - "line": 6, - "column": 23, - "offset": 334 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 20, - "offset": 331 - }, - "end": { - "line": 6, - "column": 30, - "offset": 341 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Yes", - "position": { - "start": { - "line": 6, - "column": 33, - "offset": 344 - }, - "end": { - "line": 6, - "column": 36, - "offset": 347 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 33, - "offset": 344 - }, - "end": { - "line": 6, - "column": 39, - "offset": 350 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Yes", - "position": { - "start": { - "line": 6, - "column": 42, - "offset": 353 - }, - "end": { - "line": 6, - "column": 45, - "offset": 356 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 42, - "offset": 353 - }, - "end": { - "line": 6, - "column": 52, - "offset": 363 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "No", - "position": { - "start": { - "line": 6, - "column": 55, - "offset": 366 - }, - "end": { - "line": 6, - "column": 57, - "offset": 368 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 55, - "offset": 366 - }, - "end": { - "line": 6, - "column": 62, - "offset": 373 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "No", - "position": { - "start": { - "line": 6, - "column": 65, - "offset": 376 - }, - "end": { - "line": 6, - "column": 67, - "offset": 378 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 65, - "offset": 376 - }, - "end": { - "line": 6, - "column": 79, - "offset": 390 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "No", - "position": { - "start": { - "line": 6, - "column": 82, - "offset": 393 - }, - "end": { - "line": 6, - "column": 84, - "offset": 395 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 82, - "offset": 393 - }, - "end": { - "line": 6, - "column": 99, - "offset": 410 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 312 - }, - "end": { - "line": 6, - "column": 101, - "offset": 412 - }, - "indent": [] - } - }, - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "CommonMark", - "position": { - "start": { - "line": 7, - "column": 3, - "offset": 415 - }, - "end": { - "line": 7, - "column": 13, - "offset": 425 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 3, - "offset": 415 - }, - "end": { - "line": 7, - "column": 17, - "offset": 429 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "inlineCode", - "value": "\"", - "position": { - "start": { - "line": 7, - "column": 20, - "offset": 432 - }, - "end": { - "line": 7, - "column": 23, - "offset": 435 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 20, - "offset": 432 - }, - "end": { - "line": 7, - "column": 30, - "offset": 442 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "No", - "position": { - "start": { - "line": 7, - "column": 33, - "offset": 445 - }, - "end": { - "line": 7, - "column": 35, - "offset": 447 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 33, - "offset": 445 - }, - "end": { - "line": 7, - "column": 39, - "offset": 451 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "No", - "position": { - "start": { - "line": 7, - "column": 42, - "offset": 454 - }, - "end": { - "line": 7, - "column": 44, - "offset": 456 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 42, - "offset": 454 - }, - "end": { - "line": 7, - "column": 52, - "offset": 464 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Yes", - "position": { - "start": { - "line": 7, - "column": 55, - "offset": 467 - }, - "end": { - "line": 7, - "column": 58, - "offset": 470 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 55, - "offset": 467 - }, - "end": { - "line": 7, - "column": 62, - "offset": 474 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Yes", - "position": { - "start": { - "line": 7, - "column": 65, - "offset": 477 - }, - "end": { - "line": 7, - "column": 68, - "offset": 480 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 65, - "offset": 477 - }, - "end": { - "line": 7, - "column": 79, - "offset": 491 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Yes", - "position": { - "start": { - "line": 7, - "column": 82, - "offset": 494 - }, - "end": { - "line": 7, - "column": 85, - "offset": 497 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 82, - "offset": 494 - }, - "end": { - "line": 7, - "column": 99, - "offset": 511 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 1, - "offset": 413 - }, - "end": { - "line": 7, - "column": 101, - "offset": 513 - }, - "indent": [] - } - }, - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Markdown.pl", - "position": { - "start": { - "line": 8, - "column": 3, - "offset": 516 - }, - "end": { - "line": 8, - "column": 14, - "offset": 527 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 8, - "column": 3, - "offset": 516 - }, - "end": { - "line": 8, - "column": 17, - "offset": 530 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "inlineCode", - "value": "'", - "position": { - "start": { - "line": 8, - "column": 20, - "offset": 533 - }, - "end": { - "line": 8, - "column": 23, - "offset": 536 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 8, - "column": 20, - "offset": 533 - }, - "end": { - "line": 8, - "column": 30, - "offset": 543 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Yes", - "position": { - "start": { - "line": 8, - "column": 33, - "offset": 546 - }, - "end": { - "line": 8, - "column": 36, - "offset": 549 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 8, - "column": 33, - "offset": 546 - }, - "end": { - "line": 8, - "column": 39, - "offset": 552 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Yes", - "position": { - "start": { - "line": 8, - "column": 42, - "offset": 555 - }, - "end": { - "line": 8, - "column": 45, - "offset": 558 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 8, - "column": 42, - "offset": 555 - }, - "end": { - "line": 8, - "column": 52, - "offset": 565 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "No", - "position": { - "start": { - "line": 8, - "column": 55, - "offset": 568 - }, - "end": { - "line": 8, - "column": 57, - "offset": 570 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 8, - "column": 55, - "offset": 568 - }, - "end": { - "line": 8, - "column": 62, - "offset": 575 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Yes", - "position": { - "start": { - "line": 8, - "column": 65, - "offset": 578 - }, - "end": { - "line": 8, - "column": 68, - "offset": 581 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 8, - "column": 65, - "offset": 578 - }, - "end": { - "line": 8, - "column": 79, - "offset": 592 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Yes", - "position": { - "start": { - "line": 8, - "column": 82, - "offset": 595 - }, - "end": { - "line": 8, - "column": 85, - "offset": 598 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 8, - "column": 82, - "offset": 595 - }, - "end": { - "line": 8, - "column": 99, - "offset": 612 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 8, - "column": 1, - "offset": 514 - }, - "end": { - "line": 8, - "column": 101, - "offset": 614 - }, - "indent": [] - } - }, - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "GitHub", - "position": { - "start": { - "line": 9, - "column": 3, - "offset": 617 - }, - "end": { - "line": 9, - "column": 9, - "offset": 623 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 3, - "offset": 617 - }, - "end": { - "line": 9, - "column": 17, - "offset": 631 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "inlineCode", - "value": "'", - "position": { - "start": { - "line": 9, - "column": 20, - "offset": 634 - }, - "end": { - "line": 9, - "column": 23, - "offset": 637 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 20, - "offset": 634 - }, - "end": { - "line": 9, - "column": 30, - "offset": 644 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Yes", - "position": { - "start": { - "line": 9, - "column": 33, - "offset": 647 - }, - "end": { - "line": 9, - "column": 36, - "offset": 650 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 33, - "offset": 647 - }, - "end": { - "line": 9, - "column": 39, - "offset": 653 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Yes", - "position": { - "start": { - "line": 9, - "column": 42, - "offset": 656 - }, - "end": { - "line": 9, - "column": 45, - "offset": 659 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 42, - "offset": 656 - }, - "end": { - "line": 9, - "column": 52, - "offset": 666 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "No", - "position": { - "start": { - "line": 9, - "column": 55, - "offset": 669 - }, - "end": { - "line": 9, - "column": 57, - "offset": 671 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 55, - "offset": 669 - }, - "end": { - "line": 9, - "column": 62, - "offset": 676 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "No", - "position": { - "start": { - "line": 9, - "column": 65, - "offset": 679 - }, - "end": { - "line": 9, - "column": 67, - "offset": 681 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 65, - "offset": 679 - }, - "end": { - "line": 9, - "column": 79, - "offset": 693 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "No", - "position": { - "start": { - "line": 9, - "column": 82, - "offset": 696 - }, - "end": { - "line": 9, - "column": 84, - "offset": 698 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 82, - "offset": 696 - }, - "end": { - "line": 9, - "column": 99, - "offset": 713 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 1, - "offset": 615 - }, - "end": { - "line": 9, - "column": 101, - "offset": 715 - }, - "indent": [] - } - }, - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "CommonMark", - "position": { - "start": { - "line": 10, - "column": 3, - "offset": 718 - }, - "end": { - "line": 10, - "column": 13, - "offset": 728 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 10, - "column": 3, - "offset": 718 - }, - "end": { - "line": 10, - "column": 17, - "offset": 732 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "inlineCode", - "value": "'", - "position": { - "start": { - "line": 10, - "column": 20, - "offset": 735 - }, - "end": { - "line": 10, - "column": 23, - "offset": 738 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 10, - "column": 20, - "offset": 735 - }, - "end": { - "line": 10, - "column": 30, - "offset": 745 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "No", - "position": { - "start": { - "line": 10, - "column": 33, - "offset": 748 - }, - "end": { - "line": 10, - "column": 35, - "offset": 750 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 10, - "column": 33, - "offset": 748 - }, - "end": { - "line": 10, - "column": 39, - "offset": 754 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "No", - "position": { - "start": { - "line": 10, - "column": 42, - "offset": 757 - }, - "end": { - "line": 10, - "column": 44, - "offset": 759 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 10, - "column": 42, - "offset": 757 - }, - "end": { - "line": 10, - "column": 52, - "offset": 767 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Yes", - "position": { - "start": { - "line": 10, - "column": 55, - "offset": 770 - }, - "end": { - "line": 10, - "column": 58, - "offset": 773 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 10, - "column": 55, - "offset": 770 - }, - "end": { - "line": 10, - "column": 62, - "offset": 777 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Yes", - "position": { - "start": { - "line": 10, - "column": 65, - "offset": 780 - }, - "end": { - "line": 10, - "column": 68, - "offset": 783 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 10, - "column": 65, - "offset": 780 - }, - "end": { - "line": 10, - "column": 79, - "offset": 794 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Yes", - "position": { - "start": { - "line": 10, - "column": 82, - "offset": 797 - }, - "end": { - "line": 10, - "column": 85, - "offset": 800 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 10, - "column": 82, - "offset": 797 - }, - "end": { - "line": 10, - "column": 99, - "offset": 814 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 716 - }, - "end": { - "line": 10, - "column": 101, - "offset": 816 - }, - "indent": [] - } - }, - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Markdown.pl", - "position": { - "start": { - "line": 11, - "column": 3, - "offset": 819 - }, - "end": { - "line": 11, - "column": 14, - "offset": 830 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 3, - "offset": 819 - }, - "end": { - "line": 11, - "column": 17, - "offset": 833 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "inlineCode", - "value": "()", - "position": { - "start": { - "line": 11, - "column": 20, - "offset": 836 - }, - "end": { - "line": 11, - "column": 24, - "offset": 840 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 20, - "offset": 836 - }, - "end": { - "line": 11, - "column": 30, - "offset": 846 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "-", - "position": { - "start": { - "line": 11, - "column": 33, - "offset": 849 - }, - "end": { - "line": 11, - "column": 34, - "offset": 850 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 33, - "offset": 849 - }, - "end": { - "line": 11, - "column": 39, - "offset": 855 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "-", - "position": { - "start": { - "line": 11, - "column": 42, - "offset": 858 - }, - "end": { - "line": 11, - "column": 43, - "offset": 859 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 42, - "offset": 858 - }, - "end": { - "line": 11, - "column": 52, - "offset": 868 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "-", - "position": { - "start": { - "line": 11, - "column": 55, - "offset": 871 - }, - "end": { - "line": 11, - "column": 56, - "offset": 872 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 55, - "offset": 871 - }, - "end": { - "line": 11, - "column": 62, - "offset": 878 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "-", - "position": { - "start": { - "line": 11, - "column": 65, - "offset": 881 - }, - "end": { - "line": 11, - "column": 66, - "offset": 882 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 65, - "offset": 881 - }, - "end": { - "line": 11, - "column": 79, - "offset": 895 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "-", - "position": { - "start": { - "line": 11, - "column": 82, - "offset": 898 - }, - "end": { - "line": 11, - "column": 83, - "offset": 899 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 82, - "offset": 898 - }, - "end": { - "line": 11, - "column": 99, - "offset": 915 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 817 - }, - "end": { - "line": 11, - "column": 101, - "offset": 917 - }, - "indent": [] - } - }, - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "GitHub", - "position": { - "start": { - "line": 12, - "column": 3, - "offset": 920 - }, - "end": { - "line": 12, - "column": 9, - "offset": 926 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 3, - "offset": 920 - }, - "end": { - "line": 12, - "column": 17, - "offset": 934 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "inlineCode", - "value": "()", - "position": { - "start": { - "line": 12, - "column": 20, - "offset": 937 - }, - "end": { - "line": 12, - "column": 24, - "offset": 941 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 20, - "offset": 937 - }, - "end": { - "line": 12, - "column": 30, - "offset": 947 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "-", - "position": { - "start": { - "line": 12, - "column": 33, - "offset": 950 - }, - "end": { - "line": 12, - "column": 34, - "offset": 951 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 33, - "offset": 950 - }, - "end": { - "line": 12, - "column": 39, - "offset": 956 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "-", - "position": { - "start": { - "line": 12, - "column": 42, - "offset": 959 - }, - "end": { - "line": 12, - "column": 43, - "offset": 960 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 42, - "offset": 959 - }, - "end": { - "line": 12, - "column": 52, - "offset": 969 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "-", - "position": { - "start": { - "line": 12, - "column": 55, - "offset": 972 - }, - "end": { - "line": 12, - "column": 56, - "offset": 973 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 55, - "offset": 972 - }, - "end": { - "line": 12, - "column": 62, - "offset": 979 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "-", - "position": { - "start": { - "line": 12, - "column": 65, - "offset": 982 - }, - "end": { - "line": 12, - "column": 66, - "offset": 983 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 65, - "offset": 982 - }, - "end": { - "line": 12, - "column": 79, - "offset": 996 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "-", - "position": { - "start": { - "line": 12, - "column": 82, - "offset": 999 - }, - "end": { - "line": 12, - "column": 83, - "offset": 1000 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 82, - "offset": 999 - }, - "end": { - "line": 12, - "column": 99, - "offset": 1016 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 1, - "offset": 918 - }, - "end": { - "line": 12, - "column": 101, - "offset": 1018 - }, - "indent": [] - } - }, - { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "CommonMark", - "position": { - "start": { - "line": 13, - "column": 3, - "offset": 1021 - }, - "end": { - "line": 13, - "column": 13, - "offset": 1031 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 3, - "offset": 1021 - }, - "end": { - "line": 13, - "column": 17, - "offset": 1035 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "inlineCode", - "value": "()", - "position": { - "start": { - "line": 13, - "column": 20, - "offset": 1038 - }, - "end": { - "line": 13, - "column": 24, - "offset": 1042 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 20, - "offset": 1038 - }, - "end": { - "line": 13, - "column": 30, - "offset": 1048 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "No", - "position": { - "start": { - "line": 13, - "column": 33, - "offset": 1051 - }, - "end": { - "line": 13, - "column": 35, - "offset": 1053 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 33, - "offset": 1051 - }, - "end": { - "line": 13, - "column": 39, - "offset": 1057 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Yes", - "position": { - "start": { - "line": 13, - "column": 42, - "offset": 1060 - }, - "end": { - "line": 13, - "column": 45, - "offset": 1063 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 42, - "offset": 1060 - }, - "end": { - "line": 13, - "column": 52, - "offset": 1070 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Yes", - "position": { - "start": { - "line": 13, - "column": 55, - "offset": 1073 - }, - "end": { - "line": 13, - "column": 58, - "offset": 1076 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 55, - "offset": 1073 - }, - "end": { - "line": 13, - "column": 62, - "offset": 1080 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Yes", - "position": { - "start": { - "line": 13, - "column": 65, - "offset": 1083 - }, - "end": { - "line": 13, - "column": 68, - "offset": 1086 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 65, - "offset": 1083 - }, - "end": { - "line": 13, - "column": 79, - "offset": 1097 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Yes", - "position": { - "start": { - "line": 13, - "column": 82, - "offset": 1100 - }, - "end": { - "line": 13, - "column": 85, - "offset": 1103 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 82, - "offset": 1100 - }, - "end": { - "line": 13, - "column": 99, - "offset": 1117 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 1019 - }, - "end": { - "line": 13, - "column": 101, - "offset": 1119 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 9 - }, - "end": { - "line": 13, - "column": 101, - "offset": 1119 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "heading", - "depth": 2, - "children": [ - { - "type": "text", - "value": "Double quotes", - "position": { - "start": { - "line": 15, - "column": 4, - "offset": 1124 - }, - "end": { - "line": 15, - "column": 17, - "offset": 1137 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 1121 - }, - "end": { - "line": 15, - "column": 17, - "offset": 1137 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "and text", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 17, - "column": 2, - "offset": 1140 - }, - "end": { - "line": 17, - "column": 7, - "offset": 1145 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 1139 - }, - "end": { - "line": 17, - "column": 33, - "offset": 1171 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 1139 - }, - "end": { - "line": 17, - "column": 33, - "offset": 1171 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 19, - "column": 2, - "offset": 1174 - }, - "end": { - "line": 19, - "column": 7, - "offset": 1179 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 1173 - }, - "end": { - "line": 19, - "column": 8, - "offset": 1180 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(./world.html \"and \"matching delimiters\"\")", - "position": { - "start": { - "line": 19, - "column": 8, - "offset": 1180 - }, - "end": { - "line": 19, - "column": 50, - "offset": 1222 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 1173 - }, - "end": { - "line": 19, - "column": 50, - "offset": 1222 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 21, - "column": 2, - "offset": 1225 - }, - "end": { - "line": 21, - "column": 7, - "offset": 1230 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 1, - "offset": 1224 - }, - "end": { - "line": 21, - "column": 8, - "offset": 1231 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(./world.html \"and \"mismatched delimiters\")", - "position": { - "start": { - "line": 21, - "column": 8, - "offset": 1231 - }, - "end": { - "line": 21, - "column": 51, - "offset": 1274 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 1, - "offset": 1224 - }, - "end": { - "line": 21, - "column": 51, - "offset": 1274 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "and \"escapes\"", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 23, - "column": 2, - "offset": 1277 - }, - "end": { - "line": 23, - "column": 7, - "offset": 1282 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 23, - "column": 1, - "offset": 1276 - }, - "end": { - "line": 23, - "column": 40, - "offset": 1315 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 23, - "column": 1, - "offset": 1276 - }, - "end": { - "line": 23, - "column": 40, - "offset": 1315 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "and \"named entities\"", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 25, - "column": 2, - "offset": 1318 - }, - "end": { - "line": 25, - "column": 7, - "offset": 1323 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 25, - "column": 1, - "offset": 1317 - }, - "end": { - "line": 25, - "column": 55, - "offset": 1371 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 25, - "column": 1, - "offset": 1317 - }, - "end": { - "line": 25, - "column": 55, - "offset": 1371 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "and \"numbered entities\"", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 27, - "column": 2, - "offset": 1374 - }, - "end": { - "line": 27, - "column": 7, - "offset": 1379 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 27, - "column": 1, - "offset": 1373 - }, - "end": { - "line": 27, - "column": 58, - "offset": 1430 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 27, - "column": 1, - "offset": 1373 - }, - "end": { - "line": 27, - "column": 58, - "offset": 1430 - }, - "indent": [] - } - }, - { - "type": "heading", - "depth": 2, - "children": [ - { - "type": "text", - "value": "Single quotes", - "position": { - "start": { - "line": 29, - "column": 4, - "offset": 1435 - }, - "end": { - "line": 29, - "column": 17, - "offset": 1448 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 1432 - }, - "end": { - "line": 29, - "column": 17, - "offset": 1448 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "and text", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 31, - "column": 2, - "offset": 1451 - }, - "end": { - "line": 31, - "column": 7, - "offset": 1456 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 31, - "column": 1, - "offset": 1450 - }, - "end": { - "line": 31, - "column": 33, - "offset": 1482 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 31, - "column": 1, - "offset": 1450 - }, - "end": { - "line": 31, - "column": 33, - "offset": 1482 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 33, - "column": 2, - "offset": 1485 - }, - "end": { - "line": 33, - "column": 7, - "offset": 1490 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 33, - "column": 1, - "offset": 1484 - }, - "end": { - "line": 33, - "column": 8, - "offset": 1491 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(./world.html 'and 'matching delimiters'')", - "position": { - "start": { - "line": 33, - "column": 8, - "offset": 1491 - }, - "end": { - "line": 33, - "column": 50, - "offset": 1533 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 33, - "column": 1, - "offset": 1484 - }, - "end": { - "line": 33, - "column": 50, - "offset": 1533 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 35, - "column": 2, - "offset": 1536 - }, - "end": { - "line": 35, - "column": 7, - "offset": 1541 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 35, - "column": 1, - "offset": 1535 - }, - "end": { - "line": 35, - "column": 8, - "offset": 1542 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(./world.html 'and 'mismatched delimiters')", - "position": { - "start": { - "line": 35, - "column": 8, - "offset": 1542 - }, - "end": { - "line": 35, - "column": 51, - "offset": 1585 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 35, - "column": 1, - "offset": 1535 - }, - "end": { - "line": 35, - "column": 51, - "offset": 1585 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "and 'escapes'", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 37, - "column": 2, - "offset": 1588 - }, - "end": { - "line": 37, - "column": 7, - "offset": 1593 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 37, - "column": 1, - "offset": 1587 - }, - "end": { - "line": 37, - "column": 40, - "offset": 1626 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 37, - "column": 1, - "offset": 1587 - }, - "end": { - "line": 37, - "column": 40, - "offset": 1626 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "and 'named entities'", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 39, - "column": 2, - "offset": 1629 - }, - "end": { - "line": 39, - "column": 7, - "offset": 1634 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 39, - "column": 1, - "offset": 1628 - }, - "end": { - "line": 39, - "column": 55, - "offset": 1682 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 39, - "column": 1, - "offset": 1628 - }, - "end": { - "line": 39, - "column": 55, - "offset": 1682 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "and 'numbered entities'", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 41, - "column": 2, - "offset": 1685 - }, - "end": { - "line": 41, - "column": 7, - "offset": 1690 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 41, - "column": 1, - "offset": 1684 - }, - "end": { - "line": 41, - "column": 58, - "offset": 1741 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 41, - "column": 1, - "offset": 1684 - }, - "end": { - "line": 41, - "column": 58, - "offset": 1741 - }, - "indent": [] - } - }, - { - "type": "heading", - "depth": 2, - "children": [ - { - "type": "text", - "value": "Parentheses", - "position": { - "start": { - "line": 43, - "column": 4, - "offset": 1746 - }, - "end": { - "line": 43, - "column": 15, - "offset": 1757 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 43, - "column": 1, - "offset": 1743 - }, - "end": { - "line": 43, - "column": 15, - "offset": 1757 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "and text", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 45, - "column": 2, - "offset": 1760 - }, - "end": { - "line": 45, - "column": 7, - "offset": 1765 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 45, - "column": 1, - "offset": 1759 - }, - "end": { - "line": 45, - "column": 33, - "offset": 1791 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 45, - "column": 1, - "offset": 1759 - }, - "end": { - "line": 45, - "column": 33, - "offset": 1791 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "and (matching delimiters", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 47, - "column": 2, - "offset": 1794 - }, - "end": { - "line": 47, - "column": 7, - "offset": 1799 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 47, - "column": 1, - "offset": 1793 - }, - "end": { - "line": 47, - "column": 49, - "offset": 1841 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ")", - "position": { - "start": { - "line": 47, - "column": 49, - "offset": 1841 - }, - "end": { - "line": 47, - "column": 50, - "offset": 1842 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 47, - "column": 1, - "offset": 1793 - }, - "end": { - "line": 47, - "column": 50, - "offset": 1842 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "and (mismatched delimiters", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 49, - "column": 2, - "offset": 1845 - }, - "end": { - "line": 49, - "column": 7, - "offset": 1850 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 49, - "column": 1, - "offset": 1844 - }, - "end": { - "line": 49, - "column": 51, - "offset": 1894 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 49, - "column": 1, - "offset": 1844 - }, - "end": { - "line": 49, - "column": 51, - "offset": 1894 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "and (escapes)", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 51, - "column": 2, - "offset": 1897 - }, - "end": { - "line": 51, - "column": 7, - "offset": 1902 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 51, - "column": 1, - "offset": 1896 - }, - "end": { - "line": 51, - "column": 40, - "offset": 1935 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 51, - "column": 1, - "offset": 1896 - }, - "end": { - "line": 51, - "column": 40, - "offset": 1935 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "and (named entities)", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 53, - "column": 2, - "offset": 1938 - }, - "end": { - "line": 53, - "column": 7, - "offset": 1943 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 53, - "column": 1, - "offset": 1937 - }, - "end": { - "line": 53, - "column": 55, - "offset": 1991 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 53, - "column": 1, - "offset": 1937 - }, - "end": { - "line": 53, - "column": 55, - "offset": 1991 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "and (numbered entities)", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 55, - "column": 2, - "offset": 1994 - }, - "end": { - "line": 55, - "column": 7, - "offset": 1999 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 55, - "column": 1, - "offset": 1993 - }, - "end": { - "line": 55, - "column": 58, - "offset": 2050 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 55, - "column": 1, - "offset": 1993 - }, - "end": { - "line": 55, - "column": 58, - "offset": 2050 - }, - "indent": [] - } - }, - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Images", - "position": { - "start": { - "line": 57, - "column": 3, - "offset": 2054 - }, - "end": { - "line": 57, - "column": 9, - "offset": 2060 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 57, - "column": 1, - "offset": 2052 - }, - "end": { - "line": 57, - "column": 9, - "offset": 2060 - }, - "indent": [] - } - }, - { - "type": "heading", - "depth": 2, - "children": [ - { - "type": "text", - "value": "Double quotes", - "position": { - "start": { - "line": 59, - "column": 4, - "offset": 2065 - }, - "end": { - "line": 59, - "column": 17, - "offset": 2078 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 59, - "column": 1, - "offset": 2062 - }, - "end": { - "line": 59, - "column": 17, - "offset": 2078 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "and text", - "url": "./world.png", - "alt": "Hello", - "position": { - "start": { - "line": 61, - "column": 1, - "offset": 2080 - }, - "end": { - "line": 61, - "column": 33, - "offset": 2112 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 61, - "column": 1, - "offset": 2080 - }, - "end": { - "line": 61, - "column": 33, - "offset": 2112 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "imageReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "alt": "Hello", - "position": { - "start": { - "line": 63, - "column": 1, - "offset": 2114 - }, - "end": { - "line": 63, - "column": 9, - "offset": 2122 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(./world.png \"and \"matching delimiters\"\")", - "position": { - "start": { - "line": 63, - "column": 9, - "offset": 2122 - }, - "end": { - "line": 63, - "column": 50, - "offset": 2163 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 63, - "column": 1, - "offset": 2114 - }, - "end": { - "line": 63, - "column": 50, - "offset": 2163 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "imageReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "alt": "Hello", - "position": { - "start": { - "line": 65, - "column": 1, - "offset": 2165 - }, - "end": { - "line": 65, - "column": 9, - "offset": 2173 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(./world.png \"and \"mismatched delimiters\")", - "position": { - "start": { - "line": 65, - "column": 9, - "offset": 2173 - }, - "end": { - "line": 65, - "column": 51, - "offset": 2215 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 65, - "column": 1, - "offset": 2165 - }, - "end": { - "line": 65, - "column": 51, - "offset": 2215 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "and \"escapes\"", - "url": "./world.png", - "alt": "Hello", - "position": { - "start": { - "line": 67, - "column": 1, - "offset": 2217 - }, - "end": { - "line": 67, - "column": 40, - "offset": 2256 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 67, - "column": 1, - "offset": 2217 - }, - "end": { - "line": 67, - "column": 40, - "offset": 2256 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "and \"named entities\"", - "url": "./world.png", - "alt": "Hello", - "position": { - "start": { - "line": 69, - "column": 1, - "offset": 2258 - }, - "end": { - "line": 69, - "column": 55, - "offset": 2312 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 69, - "column": 1, - "offset": 2258 - }, - "end": { - "line": 69, - "column": 55, - "offset": 2312 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "and \"numbered entities\"", - "url": "./world.png", - "alt": "Hello", - "position": { - "start": { - "line": 71, - "column": 1, - "offset": 2314 - }, - "end": { - "line": 71, - "column": 58, - "offset": 2371 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 71, - "column": 1, - "offset": 2314 - }, - "end": { - "line": 71, - "column": 58, - "offset": 2371 - }, - "indent": [] - } - }, - { - "type": "heading", - "depth": 2, - "children": [ - { - "type": "text", - "value": "Single quotes", - "position": { - "start": { - "line": 73, - "column": 4, - "offset": 2376 - }, - "end": { - "line": 73, - "column": 17, - "offset": 2389 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 73, - "column": 1, - "offset": 2373 - }, - "end": { - "line": 73, - "column": 17, - "offset": 2389 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "and text", - "url": "./world.png", - "alt": "Hello", - "position": { - "start": { - "line": 75, - "column": 1, - "offset": 2391 - }, - "end": { - "line": 75, - "column": 33, - "offset": 2423 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 75, - "column": 1, - "offset": 2391 - }, - "end": { - "line": 75, - "column": 33, - "offset": 2423 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "imageReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "alt": "Hello", - "position": { - "start": { - "line": 77, - "column": 1, - "offset": 2425 - }, - "end": { - "line": 77, - "column": 9, - "offset": 2433 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(./world.png 'and 'matching delimiters'')", - "position": { - "start": { - "line": 77, - "column": 9, - "offset": 2433 - }, - "end": { - "line": 77, - "column": 50, - "offset": 2474 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 77, - "column": 1, - "offset": 2425 - }, - "end": { - "line": 77, - "column": 50, - "offset": 2474 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "imageReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "alt": "Hello", - "position": { - "start": { - "line": 79, - "column": 1, - "offset": 2476 - }, - "end": { - "line": 79, - "column": 9, - "offset": 2484 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(./world.png 'and 'mismatched delimiters')", - "position": { - "start": { - "line": 79, - "column": 9, - "offset": 2484 - }, - "end": { - "line": 79, - "column": 51, - "offset": 2526 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 79, - "column": 1, - "offset": 2476 - }, - "end": { - "line": 79, - "column": 51, - "offset": 2526 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "and 'escapes'", - "url": "./world.png", - "alt": "Hello", - "position": { - "start": { - "line": 81, - "column": 1, - "offset": 2528 - }, - "end": { - "line": 81, - "column": 40, - "offset": 2567 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 81, - "column": 1, - "offset": 2528 - }, - "end": { - "line": 81, - "column": 40, - "offset": 2567 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "and 'named entities'", - "url": "./world.png", - "alt": "Hello", - "position": { - "start": { - "line": 83, - "column": 1, - "offset": 2569 - }, - "end": { - "line": 83, - "column": 55, - "offset": 2623 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 83, - "column": 1, - "offset": 2569 - }, - "end": { - "line": 83, - "column": 55, - "offset": 2623 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "and 'numbered entities'", - "url": "./world.png", - "alt": "Hello", - "position": { - "start": { - "line": 85, - "column": 1, - "offset": 2625 - }, - "end": { - "line": 85, - "column": 58, - "offset": 2682 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 85, - "column": 1, - "offset": 2625 - }, - "end": { - "line": 85, - "column": 58, - "offset": 2682 - }, - "indent": [] - } - }, - { - "type": "heading", - "depth": 2, - "children": [ - { - "type": "text", - "value": "Parentheses", - "position": { - "start": { - "line": 87, - "column": 4, - "offset": 2687 - }, - "end": { - "line": 87, - "column": 15, - "offset": 2698 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 87, - "column": 1, - "offset": 2684 - }, - "end": { - "line": 87, - "column": 15, - "offset": 2698 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "and text", - "url": "./world.png", - "alt": "Hello", - "position": { - "start": { - "line": 89, - "column": 1, - "offset": 2700 - }, - "end": { - "line": 89, - "column": 33, - "offset": 2732 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 89, - "column": 1, - "offset": 2700 - }, - "end": { - "line": 89, - "column": 33, - "offset": 2732 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "and (matching delimiters", - "url": "./world.png", - "alt": "Hello", - "position": { - "start": { - "line": 91, - "column": 1, - "offset": 2734 - }, - "end": { - "line": 91, - "column": 49, - "offset": 2782 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ")", - "position": { - "start": { - "line": 91, - "column": 49, - "offset": 2782 - }, - "end": { - "line": 91, - "column": 50, - "offset": 2783 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 91, - "column": 1, - "offset": 2734 - }, - "end": { - "line": 91, - "column": 50, - "offset": 2783 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "and (mismatched delimiters", - "url": "./world.png", - "alt": "Hello", - "position": { - "start": { - "line": 93, - "column": 1, - "offset": 2785 - }, - "end": { - "line": 93, - "column": 51, - "offset": 2835 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 93, - "column": 1, - "offset": 2785 - }, - "end": { - "line": 93, - "column": 51, - "offset": 2835 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "and (escapes)", - "url": "./world.png", - "alt": "Hello", - "position": { - "start": { - "line": 95, - "column": 1, - "offset": 2837 - }, - "end": { - "line": 95, - "column": 40, - "offset": 2876 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 95, - "column": 1, - "offset": 2837 - }, - "end": { - "line": 95, - "column": 40, - "offset": 2876 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "and (named entities)", - "url": "./world.png", - "alt": "Hello", - "position": { - "start": { - "line": 97, - "column": 1, - "offset": 2878 - }, - "end": { - "line": 97, - "column": 55, - "offset": 2932 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 97, - "column": 1, - "offset": 2878 - }, - "end": { - "line": 97, - "column": 55, - "offset": 2932 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "and (numbered entities)", - "url": "./world.png", - "alt": "Hello", - "position": { - "start": { - "line": 99, - "column": 1, - "offset": 2934 - }, - "end": { - "line": 99, - "column": 58, - "offset": 2991 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 99, - "column": 1, - "offset": 2934 - }, - "end": { - "line": 99, - "column": 58, - "offset": 2991 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 100, - "column": 1, - "offset": 2992 - } - } -} diff --git a/test/fixtures/tree/title-attributes.json b/test/fixtures/tree/title-attributes.json index 5ee5a655f..294acdbf7 100644 --- a/test/fixtures/tree/title-attributes.json +++ b/test/fixtures/tree/title-attributes.json @@ -18,8 +18,7 @@ "line": 1, "column": 8, "offset": 7 - }, - "indent": [] + } } } ], @@ -33,271 +32,15 @@ "line": 1, "column": 8, "offset": 7 - }, - "indent": [] + } } }, { - "type": "table", - "align": [ - null, - null, - null, - null, - null, - null, - null - ], + "type": "paragraph", "children": [ { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Implementation", - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 11 - }, - "end": { - "line": 3, - "column": 17, - "offset": 25 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 3, - "offset": 11 - }, - "end": { - "line": 3, - "column": 17, - "offset": 25 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Characters", - "position": { - "start": { - "line": 3, - "column": 20, - "offset": 28 - }, - "end": { - "line": 3, - "column": 30, - "offset": 38 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 20, - "offset": 28 - }, - "end": { - "line": 3, - "column": 30, - "offset": 38 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Nested", - "position": { - "start": { - "line": 3, - "column": 33, - "offset": 41 - }, - "end": { - "line": 3, - "column": 39, - "offset": 47 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 33, - "offset": 41 - }, - "end": { - "line": 3, - "column": 39, - "offset": 47 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Mismatched", - "position": { - "start": { - "line": 3, - "column": 42, - "offset": 50 - }, - "end": { - "line": 3, - "column": 52, - "offset": 60 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 42, - "offset": 50 - }, - "end": { - "line": 3, - "column": 52, - "offset": 60 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Escaped", - "position": { - "start": { - "line": 3, - "column": 55, - "offset": 63 - }, - "end": { - "line": 3, - "column": 62, - "offset": 70 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 55, - "offset": 63 - }, - "end": { - "line": 3, - "column": 62, - "offset": 70 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Named Entities", - "position": { - "start": { - "line": 3, - "column": 65, - "offset": 73 - }, - "end": { - "line": 3, - "column": 79, - "offset": 87 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 65, - "offset": 73 - }, - "end": { - "line": 3, - "column": 79, - "offset": 87 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Numbered Entities", - "position": { - "start": { - "line": 3, - "column": 82, - "offset": 90 - }, - "end": { - "line": 3, - "column": 99, - "offset": 107 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 82, - "offset": 90 - }, - "end": { - "line": 3, - "column": 99, - "offset": 107 - }, - "indent": [] - } - } - ], + "type": "text", + "value": "| Implementation | Characters | Nested | Mismatched | Escaped | Named Entities | Numbered Entities |\n| -------------- | ---------- |------- | ---------- | ------- | -------------- | ----------------- |\n| Markdown.pl | ", "position": { "start": { "line": 3, @@ -305,2378 +48,298 @@ "offset": 9 }, "end": { - "line": 3, - "column": 101, - "offset": 109 - }, - "indent": [] + "line": 5, + "column": 20, + "offset": 230 + } } }, { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Markdown.pl", - "position": { - "start": { - "line": 5, - "column": 3, - "offset": 213 - }, - "end": { - "line": 5, - "column": 14, - "offset": 224 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 3, - "offset": 213 - }, - "end": { - "line": 5, - "column": 17, - "offset": 227 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "inlineCode", - "value": "\"", - "position": { - "start": { - "line": 5, - "column": 20, - "offset": 230 - }, - "end": { - "line": 5, - "column": 23, - "offset": 233 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 20, - "offset": 230 - }, - "end": { - "line": 5, - "column": 30, - "offset": 240 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Yes", - "position": { - "start": { - "line": 5, - "column": 33, - "offset": 243 - }, - "end": { - "line": 5, - "column": 36, - "offset": 246 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 33, - "offset": 243 - }, - "end": { - "line": 5, - "column": 39, - "offset": 249 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Yes", - "position": { - "start": { - "line": 5, - "column": 42, - "offset": 252 - }, - "end": { - "line": 5, - "column": 45, - "offset": 255 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 42, - "offset": 252 - }, - "end": { - "line": 5, - "column": 52, - "offset": 262 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "No", - "position": { - "start": { - "line": 5, - "column": 55, - "offset": 265 - }, - "end": { - "line": 5, - "column": 57, - "offset": 267 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 55, - "offset": 265 - }, - "end": { - "line": 5, - "column": 62, - "offset": 272 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Yes", - "position": { - "start": { - "line": 5, - "column": 65, - "offset": 275 - }, - "end": { - "line": 5, - "column": 68, - "offset": 278 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 65, - "offset": 275 - }, - "end": { - "line": 5, - "column": 79, - "offset": 289 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Yes", - "position": { - "start": { - "line": 5, - "column": 82, - "offset": 292 - }, - "end": { - "line": 5, - "column": 85, - "offset": 295 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 82, - "offset": 292 - }, - "end": { - "line": 5, - "column": 99, - "offset": 309 - }, - "indent": [] - } - } - ], + "type": "inlineCode", + "value": "\"", "position": { "start": { "line": 5, - "column": 1, - "offset": 211 + "column": 20, + "offset": 230 }, "end": { "line": 5, - "column": 101, - "offset": 311 - }, - "indent": [] + "column": 23, + "offset": 233 + } } }, { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "GitHub", - "position": { - "start": { - "line": 6, - "column": 3, - "offset": 314 - }, - "end": { - "line": 6, - "column": 9, - "offset": 320 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 3, - "offset": 314 - }, - "end": { - "line": 6, - "column": 17, - "offset": 328 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "inlineCode", - "value": "\"", - "position": { - "start": { - "line": 6, - "column": 20, - "offset": 331 - }, - "end": { - "line": 6, - "column": 23, - "offset": 334 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 20, - "offset": 331 - }, - "end": { - "line": 6, - "column": 30, - "offset": 341 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Yes", - "position": { - "start": { - "line": 6, - "column": 33, - "offset": 344 - }, - "end": { - "line": 6, - "column": 36, - "offset": 347 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 33, - "offset": 344 - }, - "end": { - "line": 6, - "column": 39, - "offset": 350 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Yes", - "position": { - "start": { - "line": 6, - "column": 42, - "offset": 353 - }, - "end": { - "line": 6, - "column": 45, - "offset": 356 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 42, - "offset": 353 - }, - "end": { - "line": 6, - "column": 52, - "offset": 363 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "No", - "position": { - "start": { - "line": 6, - "column": 55, - "offset": 366 - }, - "end": { - "line": 6, - "column": 57, - "offset": 368 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 55, - "offset": 366 - }, - "end": { - "line": 6, - "column": 62, - "offset": 373 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "No", - "position": { - "start": { - "line": 6, - "column": 65, - "offset": 376 - }, - "end": { - "line": 6, - "column": 67, - "offset": 378 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 65, - "offset": 376 - }, - "end": { - "line": 6, - "column": 79, - "offset": 390 - }, - "indent": [] - } + "type": "text", + "value": " | Yes | Yes | No | Yes | Yes |\n| GitHub | ", + "position": { + "start": { + "line": 5, + "column": 23, + "offset": 233 }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "No", - "position": { - "start": { - "line": 6, - "column": 82, - "offset": 393 - }, - "end": { - "line": 6, - "column": 84, - "offset": 395 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 6, - "column": 82, - "offset": 393 - }, - "end": { - "line": 6, - "column": 99, - "offset": 410 - }, - "indent": [] - } + "end": { + "line": 6, + "column": 20, + "offset": 331 } - ], + } + }, + { + "type": "inlineCode", + "value": "\"", "position": { "start": { "line": 6, - "column": 1, - "offset": 312 + "column": 20, + "offset": 331 }, "end": { "line": 6, - "column": 101, - "offset": 412 - }, - "indent": [] + "column": 23, + "offset": 334 + } } }, { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "CommonMark", - "position": { - "start": { - "line": 7, - "column": 3, - "offset": 415 - }, - "end": { - "line": 7, - "column": 13, - "offset": 425 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 3, - "offset": 415 - }, - "end": { - "line": 7, - "column": 17, - "offset": 429 - }, - "indent": [] - } + "type": "text", + "value": " | Yes | Yes | No | No | No |\n| CommonMark | ", + "position": { + "start": { + "line": 6, + "column": 23, + "offset": 334 }, - { - "type": "tableCell", - "children": [ - { - "type": "inlineCode", - "value": "\"", - "position": { - "start": { - "line": 7, - "column": 20, - "offset": 432 - }, - "end": { - "line": 7, - "column": 23, - "offset": 435 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 20, - "offset": 432 - }, - "end": { - "line": 7, - "column": 30, - "offset": 442 - }, - "indent": [] - } + "end": { + "line": 7, + "column": 20, + "offset": 432 + } + } + }, + { + "type": "inlineCode", + "value": "\"", + "position": { + "start": { + "line": 7, + "column": 20, + "offset": 432 }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "No", - "position": { - "start": { - "line": 7, - "column": 33, - "offset": 445 - }, - "end": { - "line": 7, - "column": 35, - "offset": 447 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 33, - "offset": 445 - }, - "end": { - "line": 7, - "column": 39, - "offset": 451 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "No", - "position": { - "start": { - "line": 7, - "column": 42, - "offset": 454 - }, - "end": { - "line": 7, - "column": 44, - "offset": 456 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 42, - "offset": 454 - }, - "end": { - "line": 7, - "column": 52, - "offset": 464 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Yes", - "position": { - "start": { - "line": 7, - "column": 55, - "offset": 467 - }, - "end": { - "line": 7, - "column": 58, - "offset": 470 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 55, - "offset": 467 - }, - "end": { - "line": 7, - "column": 62, - "offset": 474 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Yes", - "position": { - "start": { - "line": 7, - "column": 65, - "offset": 477 - }, - "end": { - "line": 7, - "column": 68, - "offset": 480 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 65, - "offset": 477 - }, - "end": { - "line": 7, - "column": 79, - "offset": 491 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Yes", - "position": { - "start": { - "line": 7, - "column": 82, - "offset": 494 - }, - "end": { - "line": 7, - "column": 85, - "offset": 497 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 7, - "column": 82, - "offset": 494 - }, - "end": { - "line": 7, - "column": 99, - "offset": 511 - }, - "indent": [] - } + "end": { + "line": 7, + "column": 23, + "offset": 435 } - ], + } + }, + { + "type": "text", + "value": " | No | No | Yes | Yes | Yes |\n| Markdown.pl | ", "position": { "start": { "line": 7, - "column": 1, - "offset": 413 + "column": 23, + "offset": 435 }, "end": { - "line": 7, - "column": 101, - "offset": 513 - }, - "indent": [] + "line": 8, + "column": 20, + "offset": 533 + } } }, { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Markdown.pl", - "position": { - "start": { - "line": 8, - "column": 3, - "offset": 516 - }, - "end": { - "line": 8, - "column": 14, - "offset": 527 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 8, - "column": 3, - "offset": 516 - }, - "end": { - "line": 8, - "column": 17, - "offset": 530 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "inlineCode", - "value": "'", - "position": { - "start": { - "line": 8, - "column": 20, - "offset": 533 - }, - "end": { - "line": 8, - "column": 23, - "offset": 536 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 8, - "column": 20, - "offset": 533 - }, - "end": { - "line": 8, - "column": 30, - "offset": 543 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Yes", - "position": { - "start": { - "line": 8, - "column": 33, - "offset": 546 - }, - "end": { - "line": 8, - "column": 36, - "offset": 549 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 8, - "column": 33, - "offset": 546 - }, - "end": { - "line": 8, - "column": 39, - "offset": 552 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Yes", - "position": { - "start": { - "line": 8, - "column": 42, - "offset": 555 - }, - "end": { - "line": 8, - "column": 45, - "offset": 558 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 8, - "column": 42, - "offset": 555 - }, - "end": { - "line": 8, - "column": 52, - "offset": 565 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "No", - "position": { - "start": { - "line": 8, - "column": 55, - "offset": 568 - }, - "end": { - "line": 8, - "column": 57, - "offset": 570 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 8, - "column": 55, - "offset": 568 - }, - "end": { - "line": 8, - "column": 62, - "offset": 575 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Yes", - "position": { - "start": { - "line": 8, - "column": 65, - "offset": 578 - }, - "end": { - "line": 8, - "column": 68, - "offset": 581 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 8, - "column": 65, - "offset": 578 - }, - "end": { - "line": 8, - "column": 79, - "offset": 592 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Yes", - "position": { - "start": { - "line": 8, - "column": 82, - "offset": 595 - }, - "end": { - "line": 8, - "column": 85, - "offset": 598 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 8, - "column": 82, - "offset": 595 - }, - "end": { - "line": 8, - "column": 99, - "offset": 612 - }, - "indent": [] - } - } - ], + "type": "inlineCode", + "value": "'", "position": { "start": { "line": 8, - "column": 1, - "offset": 514 + "column": 20, + "offset": 533 }, "end": { "line": 8, - "column": 101, - "offset": 614 - }, - "indent": [] + "column": 23, + "offset": 536 + } } }, { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "GitHub", - "position": { - "start": { - "line": 9, - "column": 3, - "offset": 617 - }, - "end": { - "line": 9, - "column": 9, - "offset": 623 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 3, - "offset": 617 - }, - "end": { - "line": 9, - "column": 17, - "offset": 631 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "inlineCode", - "value": "'", - "position": { - "start": { - "line": 9, - "column": 20, - "offset": 634 - }, - "end": { - "line": 9, - "column": 23, - "offset": 637 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 20, - "offset": 634 - }, - "end": { - "line": 9, - "column": 30, - "offset": 644 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Yes", - "position": { - "start": { - "line": 9, - "column": 33, - "offset": 647 - }, - "end": { - "line": 9, - "column": 36, - "offset": 650 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 33, - "offset": 647 - }, - "end": { - "line": 9, - "column": 39, - "offset": 653 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Yes", - "position": { - "start": { - "line": 9, - "column": 42, - "offset": 656 - }, - "end": { - "line": 9, - "column": 45, - "offset": 659 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 42, - "offset": 656 - }, - "end": { - "line": 9, - "column": 52, - "offset": 666 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "No", - "position": { - "start": { - "line": 9, - "column": 55, - "offset": 669 - }, - "end": { - "line": 9, - "column": 57, - "offset": 671 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 55, - "offset": 669 - }, - "end": { - "line": 9, - "column": 62, - "offset": 676 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "No", - "position": { - "start": { - "line": 9, - "column": 65, - "offset": 679 - }, - "end": { - "line": 9, - "column": 67, - "offset": 681 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 65, - "offset": 679 - }, - "end": { - "line": 9, - "column": 79, - "offset": 693 - }, - "indent": [] - } + "type": "text", + "value": " | Yes | Yes | No | Yes | Yes |\n| GitHub | ", + "position": { + "start": { + "line": 8, + "column": 23, + "offset": 536 }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "No", - "position": { - "start": { - "line": 9, - "column": 82, - "offset": 696 - }, - "end": { - "line": 9, - "column": 84, - "offset": 698 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 9, - "column": 82, - "offset": 696 - }, - "end": { - "line": 9, - "column": 99, - "offset": 713 - }, - "indent": [] - } + "end": { + "line": 9, + "column": 20, + "offset": 634 } - ], + } + }, + { + "type": "inlineCode", + "value": "'", "position": { "start": { "line": 9, - "column": 1, - "offset": 615 + "column": 20, + "offset": 634 }, "end": { "line": 9, - "column": 101, - "offset": 715 - }, - "indent": [] + "column": 23, + "offset": 637 + } } }, { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "CommonMark", - "position": { - "start": { - "line": 10, - "column": 3, - "offset": 718 - }, - "end": { - "line": 10, - "column": 13, - "offset": 728 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 10, - "column": 3, - "offset": 718 - }, - "end": { - "line": 10, - "column": 17, - "offset": 732 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "inlineCode", - "value": "'", - "position": { - "start": { - "line": 10, - "column": 20, - "offset": 735 - }, - "end": { - "line": 10, - "column": 23, - "offset": 738 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 10, - "column": 20, - "offset": 735 - }, - "end": { - "line": 10, - "column": 30, - "offset": 745 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "No", - "position": { - "start": { - "line": 10, - "column": 33, - "offset": 748 - }, - "end": { - "line": 10, - "column": 35, - "offset": 750 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 10, - "column": 33, - "offset": 748 - }, - "end": { - "line": 10, - "column": 39, - "offset": 754 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "No", - "position": { - "start": { - "line": 10, - "column": 42, - "offset": 757 - }, - "end": { - "line": 10, - "column": 44, - "offset": 759 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 10, - "column": 42, - "offset": 757 - }, - "end": { - "line": 10, - "column": 52, - "offset": 767 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Yes", - "position": { - "start": { - "line": 10, - "column": 55, - "offset": 770 - }, - "end": { - "line": 10, - "column": 58, - "offset": 773 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 10, - "column": 55, - "offset": 770 - }, - "end": { - "line": 10, - "column": 62, - "offset": 777 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Yes", - "position": { - "start": { - "line": 10, - "column": 65, - "offset": 780 - }, - "end": { - "line": 10, - "column": 68, - "offset": 783 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 10, - "column": 65, - "offset": 780 - }, - "end": { - "line": 10, - "column": 79, - "offset": 794 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Yes", - "position": { - "start": { - "line": 10, - "column": 82, - "offset": 797 - }, - "end": { - "line": 10, - "column": 85, - "offset": 800 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 10, - "column": 82, - "offset": 797 - }, - "end": { - "line": 10, - "column": 99, - "offset": 814 - }, - "indent": [] - } - } - ], + "type": "text", + "value": " | Yes | Yes | No | No | No |\n| CommonMark | ", "position": { "start": { - "line": 10, - "column": 1, - "offset": 716 + "line": 9, + "column": 23, + "offset": 637 }, "end": { "line": 10, - "column": 101, - "offset": 816 - }, - "indent": [] + "column": 20, + "offset": 735 + } } }, { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Markdown.pl", - "position": { - "start": { - "line": 11, - "column": 3, - "offset": 819 - }, - "end": { - "line": 11, - "column": 14, - "offset": 830 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 3, - "offset": 819 - }, - "end": { - "line": 11, - "column": 17, - "offset": 833 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "inlineCode", - "value": "()", - "position": { - "start": { - "line": 11, - "column": 20, - "offset": 836 - }, - "end": { - "line": 11, - "column": 24, - "offset": 840 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 20, - "offset": 836 - }, - "end": { - "line": 11, - "column": 30, - "offset": 846 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "-", - "position": { - "start": { - "line": 11, - "column": 33, - "offset": 849 - }, - "end": { - "line": 11, - "column": 34, - "offset": 850 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 33, - "offset": 849 - }, - "end": { - "line": 11, - "column": 39, - "offset": 855 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "-", - "position": { - "start": { - "line": 11, - "column": 42, - "offset": 858 - }, - "end": { - "line": 11, - "column": 43, - "offset": 859 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 42, - "offset": 858 - }, - "end": { - "line": 11, - "column": 52, - "offset": 868 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "-", - "position": { - "start": { - "line": 11, - "column": 55, - "offset": 871 - }, - "end": { - "line": 11, - "column": 56, - "offset": 872 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 55, - "offset": 871 - }, - "end": { - "line": 11, - "column": 62, - "offset": 878 - }, - "indent": [] - } + "type": "inlineCode", + "value": "'", + "position": { + "start": { + "line": 10, + "column": 20, + "offset": 735 }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "-", - "position": { - "start": { - "line": 11, - "column": 65, - "offset": 881 - }, - "end": { - "line": 11, - "column": 66, - "offset": 882 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 65, - "offset": 881 - }, - "end": { - "line": 11, - "column": 79, - "offset": 895 - }, - "indent": [] - } + "end": { + "line": 10, + "column": 23, + "offset": 738 + } + } + }, + { + "type": "text", + "value": " | No | No | Yes | Yes | Yes |\n| Markdown.pl | ", + "position": { + "start": { + "line": 10, + "column": 23, + "offset": 738 }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "-", - "position": { - "start": { - "line": 11, - "column": 82, - "offset": 898 - }, - "end": { - "line": 11, - "column": 83, - "offset": 899 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 11, - "column": 82, - "offset": 898 - }, - "end": { - "line": 11, - "column": 99, - "offset": 915 - }, - "indent": [] - } + "end": { + "line": 11, + "column": 20, + "offset": 836 } - ], + } + }, + { + "type": "inlineCode", + "value": "()", "position": { "start": { "line": 11, - "column": 1, - "offset": 817 + "column": 20, + "offset": 836 }, "end": { "line": 11, - "column": 101, - "offset": 917 - }, - "indent": [] + "column": 24, + "offset": 840 + } } }, { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "GitHub", - "position": { - "start": { - "line": 12, - "column": 3, - "offset": 920 - }, - "end": { - "line": 12, - "column": 9, - "offset": 926 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 3, - "offset": 920 - }, - "end": { - "line": 12, - "column": 17, - "offset": 934 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "inlineCode", - "value": "()", - "position": { - "start": { - "line": 12, - "column": 20, - "offset": 937 - }, - "end": { - "line": 12, - "column": 24, - "offset": 941 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 20, - "offset": 937 - }, - "end": { - "line": 12, - "column": 30, - "offset": 947 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "-", - "position": { - "start": { - "line": 12, - "column": 33, - "offset": 950 - }, - "end": { - "line": 12, - "column": 34, - "offset": 951 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 33, - "offset": 950 - }, - "end": { - "line": 12, - "column": 39, - "offset": 956 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "-", - "position": { - "start": { - "line": 12, - "column": 42, - "offset": 959 - }, - "end": { - "line": 12, - "column": 43, - "offset": 960 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 42, - "offset": 959 - }, - "end": { - "line": 12, - "column": 52, - "offset": 969 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "-", - "position": { - "start": { - "line": 12, - "column": 55, - "offset": 972 - }, - "end": { - "line": 12, - "column": 56, - "offset": 973 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 55, - "offset": 972 - }, - "end": { - "line": 12, - "column": 62, - "offset": 979 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "-", - "position": { - "start": { - "line": 12, - "column": 65, - "offset": 982 - }, - "end": { - "line": 12, - "column": 66, - "offset": 983 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 65, - "offset": 982 - }, - "end": { - "line": 12, - "column": 79, - "offset": 996 - }, - "indent": [] - } + "type": "text", + "value": " | - | - | - | - | - |\n| GitHub | ", + "position": { + "start": { + "line": 11, + "column": 24, + "offset": 840 }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "-", - "position": { - "start": { - "line": 12, - "column": 82, - "offset": 999 - }, - "end": { - "line": 12, - "column": 83, - "offset": 1000 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 12, - "column": 82, - "offset": 999 - }, - "end": { - "line": 12, - "column": 99, - "offset": 1016 - }, - "indent": [] - } + "end": { + "line": 12, + "column": 20, + "offset": 937 } - ], + } + }, + { + "type": "inlineCode", + "value": "()", "position": { "start": { "line": 12, - "column": 1, - "offset": 918 + "column": 20, + "offset": 937 }, "end": { "line": 12, - "column": 101, - "offset": 1018 - }, - "indent": [] + "column": 24, + "offset": 941 + } } }, { - "type": "tableRow", - "children": [ - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "CommonMark", - "position": { - "start": { - "line": 13, - "column": 3, - "offset": 1021 - }, - "end": { - "line": 13, - "column": 13, - "offset": 1031 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 3, - "offset": 1021 - }, - "end": { - "line": 13, - "column": 17, - "offset": 1035 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "inlineCode", - "value": "()", - "position": { - "start": { - "line": 13, - "column": 20, - "offset": 1038 - }, - "end": { - "line": 13, - "column": 24, - "offset": 1042 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 20, - "offset": 1038 - }, - "end": { - "line": 13, - "column": 30, - "offset": 1048 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "No", - "position": { - "start": { - "line": 13, - "column": 33, - "offset": 1051 - }, - "end": { - "line": 13, - "column": 35, - "offset": 1053 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 33, - "offset": 1051 - }, - "end": { - "line": 13, - "column": 39, - "offset": 1057 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Yes", - "position": { - "start": { - "line": 13, - "column": 42, - "offset": 1060 - }, - "end": { - "line": 13, - "column": 45, - "offset": 1063 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 42, - "offset": 1060 - }, - "end": { - "line": 13, - "column": 52, - "offset": 1070 - }, - "indent": [] - } - }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Yes", - "position": { - "start": { - "line": 13, - "column": 55, - "offset": 1073 - }, - "end": { - "line": 13, - "column": 58, - "offset": 1076 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 55, - "offset": 1073 - }, - "end": { - "line": 13, - "column": 62, - "offset": 1080 - }, - "indent": [] - } + "type": "text", + "value": " | - | - | - | - | - |\n| CommonMark | ", + "position": { + "start": { + "line": 12, + "column": 24, + "offset": 941 }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Yes", - "position": { - "start": { - "line": 13, - "column": 65, - "offset": 1083 - }, - "end": { - "line": 13, - "column": 68, - "offset": 1086 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 65, - "offset": 1083 - }, - "end": { - "line": 13, - "column": 79, - "offset": 1097 - }, - "indent": [] - } + "end": { + "line": 13, + "column": 20, + "offset": 1038 + } + } + }, + { + "type": "inlineCode", + "value": "()", + "position": { + "start": { + "line": 13, + "column": 20, + "offset": 1038 }, - { - "type": "tableCell", - "children": [ - { - "type": "text", - "value": "Yes", - "position": { - "start": { - "line": 13, - "column": 82, - "offset": 1100 - }, - "end": { - "line": 13, - "column": 85, - "offset": 1103 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 82, - "offset": 1100 - }, - "end": { - "line": 13, - "column": 99, - "offset": 1117 - }, - "indent": [] - } + "end": { + "line": 13, + "column": 24, + "offset": 1042 } - ], + } + }, + { + "type": "text", + "value": " | No | Yes | Yes | Yes | Yes |", "position": { "start": { "line": 13, - "column": 1, - "offset": 1019 + "column": 24, + "offset": 1042 }, "end": { "line": 13, "column": 101, "offset": 1119 - }, - "indent": [] + } } } ], @@ -2690,19 +353,7 @@ "line": 13, "column": 101, "offset": 1119 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] + } } }, { @@ -2722,8 +373,7 @@ "line": 15, "column": 17, "offset": 1137 - }, - "indent": [] + } } } ], @@ -2737,8 +387,7 @@ "line": 15, "column": 17, "offset": 1137 - }, - "indent": [] + } } }, { @@ -2762,8 +411,7 @@ "line": 17, "column": 7, "offset": 1145 - }, - "indent": [] + } } } ], @@ -2777,8 +425,7 @@ "line": 17, "column": 33, "offset": 1171 - }, - "indent": [] + } } } ], @@ -2792,36 +439,15 @@ "line": 17, "column": 33, "offset": 1171 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "link", - "title": "and \"matching delimiters\"", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 19, - "column": 2, - "offset": 1174 - }, - "end": { - "line": 19, - "column": 7, - "offset": 1179 - }, - "indent": [] - } - } - ], + "type": "text", + "value": "[Hello](./world.html \"and \"matching delimiters\"\")", "position": { "start": { "line": 19, @@ -2832,8 +458,7 @@ "line": 19, "column": 50, "offset": 1222 - }, - "indent": [] + } } } ], @@ -2843,40 +468,19 @@ "column": 1, "offset": 1173 }, - "end": { - "line": 19, - "column": 50, - "offset": 1222 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "and \"mismatched delimiters", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 21, - "column": 2, - "offset": 1225 - }, - "end": { - "line": 21, - "column": 7, - "offset": 1230 - }, - "indent": [] - } - } - ], + "end": { + "line": 19, + "column": 50, + "offset": 1222 + } + } + }, + { + "type": "paragraph", + "children": [ + { + "type": "text", + "value": "[Hello](./world.html \"and \"mismatched delimiters\")", "position": { "start": { "line": 21, @@ -2887,8 +491,7 @@ "line": 21, "column": 51, "offset": 1274 - }, - "indent": [] + } } } ], @@ -2902,8 +505,7 @@ "line": 21, "column": 51, "offset": 1274 - }, - "indent": [] + } } }, { @@ -2911,7 +513,7 @@ "children": [ { "type": "link", - "title": "and \\\"escapes\\\"", + "title": "and \"escapes\"", "url": "./world.html", "children": [ { @@ -2927,8 +529,7 @@ "line": 23, "column": 7, "offset": 1282 - }, - "indent": [] + } } } ], @@ -2942,8 +543,7 @@ "line": 23, "column": 40, "offset": 1315 - }, - "indent": [] + } } } ], @@ -2957,8 +557,7 @@ "line": 23, "column": 40, "offset": 1315 - }, - "indent": [] + } } }, { @@ -2982,8 +581,7 @@ "line": 25, "column": 7, "offset": 1323 - }, - "indent": [] + } } } ], @@ -2997,8 +595,7 @@ "line": 25, "column": 55, "offset": 1371 - }, - "indent": [] + } } } ], @@ -3012,8 +609,7 @@ "line": 25, "column": 55, "offset": 1371 - }, - "indent": [] + } } }, { @@ -3037,8 +633,7 @@ "line": 27, "column": 7, "offset": 1379 - }, - "indent": [] + } } } ], @@ -3052,8 +647,7 @@ "line": 27, "column": 58, "offset": 1430 - }, - "indent": [] + } } } ], @@ -3067,8 +661,7 @@ "line": 27, "column": 58, "offset": 1430 - }, - "indent": [] + } } }, { @@ -3088,8 +681,7 @@ "line": 29, "column": 17, "offset": 1448 - }, - "indent": [] + } } } ], @@ -3103,8 +695,7 @@ "line": 29, "column": 17, "offset": 1448 - }, - "indent": [] + } } }, { @@ -3128,8 +719,7 @@ "line": 31, "column": 7, "offset": 1456 - }, - "indent": [] + } } } ], @@ -3143,8 +733,7 @@ "line": 31, "column": 33, "offset": 1482 - }, - "indent": [] + } } } ], @@ -3158,36 +747,15 @@ "line": 31, "column": 33, "offset": 1482 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "link", - "title": "and 'matching delimiters'", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 33, - "column": 2, - "offset": 1485 - }, - "end": { - "line": 33, - "column": 7, - "offset": 1490 - }, - "indent": [] - } - } - ], + "type": "text", + "value": "[Hello](./world.html 'and 'matching delimiters'')", "position": { "start": { "line": 33, @@ -3198,8 +766,7 @@ "line": 33, "column": 50, "offset": 1533 - }, - "indent": [] + } } } ], @@ -3213,36 +780,15 @@ "line": 33, "column": 50, "offset": 1533 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "link", - "title": "and 'mismatched delimiters", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 35, - "column": 2, - "offset": 1536 - }, - "end": { - "line": 35, - "column": 7, - "offset": 1541 - }, - "indent": [] - } - } - ], + "type": "text", + "value": "[Hello](./world.html 'and 'mismatched delimiters')", "position": { "start": { "line": 35, @@ -3253,8 +799,7 @@ "line": 35, "column": 51, "offset": 1585 - }, - "indent": [] + } } } ], @@ -3268,8 +813,7 @@ "line": 35, "column": 51, "offset": 1585 - }, - "indent": [] + } } }, { @@ -3277,7 +821,7 @@ "children": [ { "type": "link", - "title": "and \\'escapes\\'", + "title": "and 'escapes'", "url": "./world.html", "children": [ { @@ -3293,8 +837,7 @@ "line": 37, "column": 7, "offset": 1593 - }, - "indent": [] + } } } ], @@ -3308,8 +851,7 @@ "line": 37, "column": 40, "offset": 1626 - }, - "indent": [] + } } } ], @@ -3323,8 +865,7 @@ "line": 37, "column": 40, "offset": 1626 - }, - "indent": [] + } } }, { @@ -3348,8 +889,7 @@ "line": 39, "column": 7, "offset": 1634 - }, - "indent": [] + } } } ], @@ -3363,8 +903,7 @@ "line": 39, "column": 55, "offset": 1682 - }, - "indent": [] + } } } ], @@ -3378,8 +917,7 @@ "line": 39, "column": 55, "offset": 1682 - }, - "indent": [] + } } }, { @@ -3403,8 +941,7 @@ "line": 41, "column": 7, "offset": 1690 - }, - "indent": [] + } } } ], @@ -3418,8 +955,7 @@ "line": 41, "column": 58, "offset": 1741 - }, - "indent": [] + } } } ], @@ -3433,8 +969,7 @@ "line": 41, "column": 58, "offset": 1741 - }, - "indent": [] + } } }, { @@ -3454,8 +989,7 @@ "line": 43, "column": 15, "offset": 1757 - }, - "indent": [] + } } } ], @@ -3469,18 +1003,16 @@ "line": 43, "column": 15, "offset": 1757 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "linkReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", + "type": "link", + "title": "and text", + "url": "./world.html", "children": [ { "type": "text", @@ -3495,8 +1027,7 @@ "line": 45, "column": 7, "offset": 1765 - }, - "indent": [] + } } } ], @@ -3506,29 +1037,11 @@ "column": 1, "offset": 1759 }, - "end": { - "line": 45, - "column": 8, - "offset": 1766 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(./world.html (and text))", - "position": { - "start": { - "line": 45, - "column": 8, - "offset": 1766 - }, "end": { "line": 45, "column": 33, "offset": 1791 - }, - "indent": [] + } } } ], @@ -3542,18 +1055,16 @@ "line": 45, "column": 33, "offset": 1791 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "linkReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", + "type": "link", + "title": "and (matching delimiters", + "url": "./world.html", "children": [ { "type": "text", @@ -3568,8 +1079,7 @@ "line": 47, "column": 7, "offset": 1799 - }, - "indent": [] + } } } ], @@ -3581,27 +1091,25 @@ }, "end": { "line": 47, - "column": 8, - "offset": 1800 - }, - "indent": [] + "column": 49, + "offset": 1841 + } } }, { "type": "text", - "value": "(./world.html (and (matching delimiters)))", + "value": ")", "position": { "start": { "line": 47, - "column": 8, - "offset": 1800 + "column": 49, + "offset": 1841 }, "end": { "line": 47, "column": 50, "offset": 1842 - }, - "indent": [] + } } } ], @@ -3615,18 +1123,16 @@ "line": 47, "column": 50, "offset": 1842 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "linkReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", + "type": "link", + "title": "and (mismatched delimiters", + "url": "./world.html", "children": [ { "type": "text", @@ -3641,8 +1147,7 @@ "line": 49, "column": 7, "offset": 1850 - }, - "indent": [] + } } } ], @@ -3652,170 +1157,63 @@ "column": 1, "offset": 1844 }, - "end": { - "line": 49, - "column": 8, - "offset": 1851 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(./world.html (and (mismatched delimiters))", - "position": { - "start": { - "line": 49, - "column": 8, - "offset": 1851 - }, "end": { "line": 49, "column": 51, - "offset": 1894 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 49, - "column": 1, - "offset": 1844 - }, - "end": { - "line": 49, - "column": 51, - "offset": 1894 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 51, - "column": 2, - "offset": 1897 - }, - "end": { - "line": 51, - "column": 7, - "offset": 1902 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 51, - "column": 1, - "offset": 1896 - }, - "end": { - "line": 51, - "column": 8, - "offset": 1903 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(./world.html (and ", - "position": { - "start": { - "line": 51, - "column": 8, - "offset": 1903 - }, - "end": { - "line": 51, - "column": 27, - "offset": 1922 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(", - "position": { - "start": { - "line": 51, - "column": 27, - "offset": 1922 - }, - "end": { - "line": 51, - "column": 29, - "offset": 1924 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "escapes", - "position": { - "start": { - "line": 51, - "column": 29, - "offset": 1924 - }, - "end": { - "line": 51, - "column": 36, - "offset": 1931 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ")", - "position": { - "start": { - "line": 51, - "column": 36, - "offset": 1931 - }, - "end": { - "line": 51, - "column": 38, - "offset": 1933 - }, - "indent": [] + "offset": 1894 + } } + } + ], + "position": { + "start": { + "line": 49, + "column": 1, + "offset": 1844 }, + "end": { + "line": 49, + "column": 51, + "offset": 1894 + } + } + }, + { + "type": "paragraph", + "children": [ { - "type": "text", - "value": "))", + "type": "link", + "title": "and (escapes)", + "url": "./world.html", + "children": [ + { + "type": "text", + "value": "Hello", + "position": { + "start": { + "line": 51, + "column": 2, + "offset": 1897 + }, + "end": { + "line": 51, + "column": 7, + "offset": 1902 + } + } + } + ], "position": { "start": { "line": 51, - "column": 38, - "offset": 1933 + "column": 1, + "offset": 1896 }, "end": { "line": 51, "column": 40, "offset": 1935 - }, - "indent": [] + } } } ], @@ -3829,18 +1227,16 @@ "line": 51, "column": 40, "offset": 1935 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "linkReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", + "type": "link", + "title": "and (named entities)", + "url": "./world.html", "children": [ { "type": "text", @@ -3855,8 +1251,7 @@ "line": 53, "column": 7, "offset": 1943 - }, - "indent": [] + } } } ], @@ -3866,97 +1261,11 @@ "column": 1, "offset": 1937 }, - "end": { - "line": 53, - "column": 8, - "offset": 1944 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(./world.html (and ", - "position": { - "start": { - "line": 53, - "column": 8, - "offset": 1944 - }, - "end": { - "line": 53, - "column": 27, - "offset": 1963 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(", - "position": { - "start": { - "line": 53, - "column": 27, - "offset": 1963 - }, - "end": { - "line": 53, - "column": 33, - "offset": 1969 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "named entities", - "position": { - "start": { - "line": 53, - "column": 33, - "offset": 1969 - }, - "end": { - "line": 53, - "column": 47, - "offset": 1983 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ")", - "position": { - "start": { - "line": 53, - "column": 47, - "offset": 1983 - }, - "end": { - "line": 53, - "column": 53, - "offset": 1989 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "))", - "position": { - "start": { - "line": 53, - "column": 53, - "offset": 1989 - }, "end": { "line": 53, "column": 55, "offset": 1991 - }, - "indent": [] + } } } ], @@ -3970,18 +1279,16 @@ "line": 53, "column": 55, "offset": 1991 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "linkReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", + "type": "link", + "title": "and (numbered entities)", + "url": "./world.html", "children": [ { "type": "text", @@ -3996,8 +1303,7 @@ "line": 55, "column": 7, "offset": 1999 - }, - "indent": [] + } } } ], @@ -4007,97 +1313,11 @@ "column": 1, "offset": 1993 }, - "end": { - "line": 55, - "column": 8, - "offset": 2000 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(./world.html (and ", - "position": { - "start": { - "line": 55, - "column": 8, - "offset": 2000 - }, - "end": { - "line": 55, - "column": 27, - "offset": 2019 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(", - "position": { - "start": { - "line": 55, - "column": 27, - "offset": 2019 - }, - "end": { - "line": 55, - "column": 33, - "offset": 2025 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "numbered entities", - "position": { - "start": { - "line": 55, - "column": 33, - "offset": 2025 - }, - "end": { - "line": 55, - "column": 50, - "offset": 2042 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ")", - "position": { - "start": { - "line": 55, - "column": 50, - "offset": 2042 - }, - "end": { - "line": 55, - "column": 56, - "offset": 2048 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "))", - "position": { - "start": { - "line": 55, - "column": 56, - "offset": 2048 - }, "end": { "line": 55, "column": 58, "offset": 2050 - }, - "indent": [] + } } } ], @@ -4111,8 +1331,7 @@ "line": 55, "column": 58, "offset": 2050 - }, - "indent": [] + } } }, { @@ -4132,8 +1351,7 @@ "line": 57, "column": 9, "offset": 2060 - }, - "indent": [] + } } } ], @@ -4147,8 +1365,7 @@ "line": 57, "column": 9, "offset": 2060 - }, - "indent": [] + } } }, { @@ -4168,8 +1385,7 @@ "line": 59, "column": 17, "offset": 2078 - }, - "indent": [] + } } } ], @@ -4183,8 +1399,7 @@ "line": 59, "column": 17, "offset": 2078 - }, - "indent": [] + } } }, { @@ -4205,8 +1420,7 @@ "line": 61, "column": 33, "offset": 2112 - }, - "indent": [] + } } } ], @@ -4220,18 +1434,15 @@ "line": 61, "column": 33, "offset": 2112 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "image", - "title": "and \"matching delimiters\"", - "url": "./world.png", - "alt": "Hello", + "type": "text", + "value": "![Hello](./world.png \"and \"matching delimiters\"\")", "position": { "start": { "line": 63, @@ -4242,8 +1453,7 @@ "line": 63, "column": 50, "offset": 2163 - }, - "indent": [] + } } } ], @@ -4257,18 +1467,15 @@ "line": 63, "column": 50, "offset": 2163 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "image", - "title": "and \"mismatched delimiters", - "url": "./world.png", - "alt": "Hello", + "type": "text", + "value": "![Hello](./world.png \"and \"mismatched delimiters\")", "position": { "start": { "line": 65, @@ -4279,8 +1486,7 @@ "line": 65, "column": 51, "offset": 2215 - }, - "indent": [] + } } } ], @@ -4294,8 +1500,7 @@ "line": 65, "column": 51, "offset": 2215 - }, - "indent": [] + } } }, { @@ -4303,7 +1508,7 @@ "children": [ { "type": "image", - "title": "and \\\"escapes\\\"", + "title": "and \"escapes\"", "url": "./world.png", "alt": "Hello", "position": { @@ -4316,8 +1521,7 @@ "line": 67, "column": 40, "offset": 2256 - }, - "indent": [] + } } } ], @@ -4331,8 +1535,7 @@ "line": 67, "column": 40, "offset": 2256 - }, - "indent": [] + } } }, { @@ -4353,8 +1556,7 @@ "line": 69, "column": 55, "offset": 2312 - }, - "indent": [] + } } } ], @@ -4368,8 +1570,7 @@ "line": 69, "column": 55, "offset": 2312 - }, - "indent": [] + } } }, { @@ -4390,8 +1591,7 @@ "line": 71, "column": 58, "offset": 2371 - }, - "indent": [] + } } } ], @@ -4405,8 +1605,7 @@ "line": 71, "column": 58, "offset": 2371 - }, - "indent": [] + } } }, { @@ -4426,8 +1625,7 @@ "line": 73, "column": 17, "offset": 2389 - }, - "indent": [] + } } } ], @@ -4441,8 +1639,7 @@ "line": 73, "column": 17, "offset": 2389 - }, - "indent": [] + } } }, { @@ -4463,8 +1660,7 @@ "line": 75, "column": 33, "offset": 2423 - }, - "indent": [] + } } } ], @@ -4478,18 +1674,15 @@ "line": 75, "column": 33, "offset": 2423 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "image", - "title": "and 'matching delimiters'", - "url": "./world.png", - "alt": "Hello", + "type": "text", + "value": "![Hello](./world.png 'and 'matching delimiters'')", "position": { "start": { "line": 77, @@ -4500,8 +1693,7 @@ "line": 77, "column": 50, "offset": 2474 - }, - "indent": [] + } } } ], @@ -4515,18 +1707,15 @@ "line": 77, "column": 50, "offset": 2474 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "image", - "title": "and 'mismatched delimiters", - "url": "./world.png", - "alt": "Hello", + "type": "text", + "value": "![Hello](./world.png 'and 'mismatched delimiters')", "position": { "start": { "line": 79, @@ -4537,8 +1726,7 @@ "line": 79, "column": 51, "offset": 2526 - }, - "indent": [] + } } } ], @@ -4552,8 +1740,7 @@ "line": 79, "column": 51, "offset": 2526 - }, - "indent": [] + } } }, { @@ -4561,7 +1748,7 @@ "children": [ { "type": "image", - "title": "and \\'escapes\\'", + "title": "and 'escapes'", "url": "./world.png", "alt": "Hello", "position": { @@ -4574,8 +1761,7 @@ "line": 81, "column": 40, "offset": 2567 - }, - "indent": [] + } } } ], @@ -4589,8 +1775,7 @@ "line": 81, "column": 40, "offset": 2567 - }, - "indent": [] + } } }, { @@ -4611,8 +1796,7 @@ "line": 83, "column": 55, "offset": 2623 - }, - "indent": [] + } } } ], @@ -4626,8 +1810,7 @@ "line": 83, "column": 55, "offset": 2623 - }, - "indent": [] + } } }, { @@ -4648,8 +1831,7 @@ "line": 85, "column": 58, "offset": 2682 - }, - "indent": [] + } } } ], @@ -4663,8 +1845,7 @@ "line": 85, "column": 58, "offset": 2682 - }, - "indent": [] + } } }, { @@ -4684,8 +1865,7 @@ "line": 87, "column": 15, "offset": 2698 - }, - "indent": [] + } } } ], @@ -4699,18 +1879,16 @@ "line": 87, "column": 15, "offset": 2698 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "imageReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", + "type": "image", + "title": "and text", + "url": "./world.png", "alt": "Hello", "position": { "start": { @@ -4718,29 +1896,11 @@ "column": 1, "offset": 2700 }, - "end": { - "line": 89, - "column": 9, - "offset": 2708 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(./world.png (and text))", - "position": { - "start": { - "line": 89, - "column": 9, - "offset": 2708 - }, "end": { "line": 89, "column": 33, "offset": 2732 - }, - "indent": [] + } } } ], @@ -4754,18 +1914,16 @@ "line": 89, "column": 33, "offset": 2732 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "imageReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", + "type": "image", + "title": "and (matching delimiters", + "url": "./world.png", "alt": "Hello", "position": { "start": { @@ -4775,27 +1933,25 @@ }, "end": { "line": 91, - "column": 9, - "offset": 2742 - }, - "indent": [] + "column": 49, + "offset": 2782 + } } }, { "type": "text", - "value": "(./world.png (and (matching delimiters)))", + "value": ")", "position": { "start": { "line": 91, - "column": 9, - "offset": 2742 + "column": 49, + "offset": 2782 }, "end": { "line": 91, "column": 50, "offset": 2783 - }, - "indent": [] + } } } ], @@ -4809,18 +1965,16 @@ "line": 91, "column": 50, "offset": 2783 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "imageReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", + "type": "image", + "title": "and (mismatched delimiters", + "url": "./world.png", "alt": "Hello", "position": { "start": { @@ -4828,29 +1982,11 @@ "column": 1, "offset": 2785 }, - "end": { - "line": 93, - "column": 9, - "offset": 2793 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(./world.png (and (mismatched delimiters))", - "position": { - "start": { - "line": 93, - "column": 9, - "offset": 2793 - }, "end": { "line": 93, "column": 51, "offset": 2835 - }, - "indent": [] + } } } ], @@ -4864,18 +2000,16 @@ "line": 93, "column": 51, "offset": 2835 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "imageReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", + "type": "image", + "title": "and (escapes)", + "url": "./world.png", "alt": "Hello", "position": { "start": { @@ -4883,97 +2017,11 @@ "column": 1, "offset": 2837 }, - "end": { - "line": 95, - "column": 9, - "offset": 2845 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(./world.png (and ", - "position": { - "start": { - "line": 95, - "column": 9, - "offset": 2845 - }, - "end": { - "line": 95, - "column": 27, - "offset": 2863 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(", - "position": { - "start": { - "line": 95, - "column": 27, - "offset": 2863 - }, - "end": { - "line": 95, - "column": 29, - "offset": 2865 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "escapes", - "position": { - "start": { - "line": 95, - "column": 29, - "offset": 2865 - }, - "end": { - "line": 95, - "column": 36, - "offset": 2872 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ")", - "position": { - "start": { - "line": 95, - "column": 36, - "offset": 2872 - }, - "end": { - "line": 95, - "column": 38, - "offset": 2874 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "))", - "position": { - "start": { - "line": 95, - "column": 38, - "offset": 2874 - }, "end": { "line": 95, "column": 40, "offset": 2876 - }, - "indent": [] + } } } ], @@ -4987,18 +2035,16 @@ "line": 95, "column": 40, "offset": 2876 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "imageReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", + "type": "image", + "title": "and (named entities)", + "url": "./world.png", "alt": "Hello", "position": { "start": { @@ -5006,97 +2052,11 @@ "column": 1, "offset": 2878 }, - "end": { - "line": 97, - "column": 9, - "offset": 2886 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(./world.png (and ", - "position": { - "start": { - "line": 97, - "column": 9, - "offset": 2886 - }, - "end": { - "line": 97, - "column": 27, - "offset": 2904 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(", - "position": { - "start": { - "line": 97, - "column": 27, - "offset": 2904 - }, - "end": { - "line": 97, - "column": 33, - "offset": 2910 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "named entities", - "position": { - "start": { - "line": 97, - "column": 33, - "offset": 2910 - }, - "end": { - "line": 97, - "column": 47, - "offset": 2924 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ")", - "position": { - "start": { - "line": 97, - "column": 47, - "offset": 2924 - }, - "end": { - "line": 97, - "column": 53, - "offset": 2930 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "))", - "position": { - "start": { - "line": 97, - "column": 53, - "offset": 2930 - }, "end": { "line": 97, "column": 55, "offset": 2932 - }, - "indent": [] + } } } ], @@ -5110,18 +2070,16 @@ "line": 97, "column": 55, "offset": 2932 - }, - "indent": [] + } } }, { "type": "paragraph", "children": [ { - "type": "imageReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", + "type": "image", + "title": "and (numbered entities)", + "url": "./world.png", "alt": "Hello", "position": { "start": { @@ -5129,97 +2087,11 @@ "column": 1, "offset": 2934 }, - "end": { - "line": 99, - "column": 9, - "offset": 2942 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(./world.png (and ", - "position": { - "start": { - "line": 99, - "column": 9, - "offset": 2942 - }, - "end": { - "line": 99, - "column": 27, - "offset": 2960 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(", - "position": { - "start": { - "line": 99, - "column": 27, - "offset": 2960 - }, - "end": { - "line": 99, - "column": 33, - "offset": 2966 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "numbered entities", - "position": { - "start": { - "line": 99, - "column": 33, - "offset": 2966 - }, - "end": { - "line": 99, - "column": 50, - "offset": 2983 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ")", - "position": { - "start": { - "line": 99, - "column": 50, - "offset": 2983 - }, - "end": { - "line": 99, - "column": 56, - "offset": 2989 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "))", - "position": { - "start": { - "line": 99, - "column": 56, - "offset": 2989 - }, "end": { "line": 99, "column": 58, "offset": 2991 - }, - "indent": [] + } } } ], @@ -5233,8 +2105,7 @@ "line": 99, "column": 58, "offset": 2991 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/title-attributes.nogfm.commonmark.json b/test/fixtures/tree/title-attributes.nogfm.commonmark.json deleted file mode 100644 index c5583a0aa..000000000 --- a/test/fixtures/tree/title-attributes.nogfm.commonmark.json +++ /dev/null @@ -1,2510 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Links", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 8, - "offset": 7 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 8, - "offset": 7 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "| Implementation | Characters | Nested | Mismatched | Escaped | Named Entities | Numbered Entities |\n| -------------- | ---------- |------- | ---------- | ------- | -------------- | ----------------- |\n| Markdown.pl | ", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 9 - }, - "end": { - "line": 5, - "column": 20, - "offset": 230 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "inlineCode", - "value": "\"", - "position": { - "start": { - "line": 5, - "column": 20, - "offset": 230 - }, - "end": { - "line": 5, - "column": 23, - "offset": 233 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " | Yes | Yes | No | Yes | Yes |\n| GitHub | ", - "position": { - "start": { - "line": 5, - "column": 23, - "offset": 233 - }, - "end": { - "line": 6, - "column": 20, - "offset": 331 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "inlineCode", - "value": "\"", - "position": { - "start": { - "line": 6, - "column": 20, - "offset": 331 - }, - "end": { - "line": 6, - "column": 23, - "offset": 334 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " | Yes | Yes | No | No | No |\n| CommonMark | ", - "position": { - "start": { - "line": 6, - "column": 23, - "offset": 334 - }, - "end": { - "line": 7, - "column": 20, - "offset": 432 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "inlineCode", - "value": "\"", - "position": { - "start": { - "line": 7, - "column": 20, - "offset": 432 - }, - "end": { - "line": 7, - "column": 23, - "offset": 435 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " | No | No | Yes | Yes | Yes |\n| Markdown.pl | ", - "position": { - "start": { - "line": 7, - "column": 23, - "offset": 435 - }, - "end": { - "line": 8, - "column": 20, - "offset": 533 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "inlineCode", - "value": "'", - "position": { - "start": { - "line": 8, - "column": 20, - "offset": 533 - }, - "end": { - "line": 8, - "column": 23, - "offset": 536 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " | Yes | Yes | No | Yes | Yes |\n| GitHub | ", - "position": { - "start": { - "line": 8, - "column": 23, - "offset": 536 - }, - "end": { - "line": 9, - "column": 20, - "offset": 634 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "inlineCode", - "value": "'", - "position": { - "start": { - "line": 9, - "column": 20, - "offset": 634 - }, - "end": { - "line": 9, - "column": 23, - "offset": 637 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " | Yes | Yes | No | No | No |\n| CommonMark | ", - "position": { - "start": { - "line": 9, - "column": 23, - "offset": 637 - }, - "end": { - "line": 10, - "column": 20, - "offset": 735 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "inlineCode", - "value": "'", - "position": { - "start": { - "line": 10, - "column": 20, - "offset": 735 - }, - "end": { - "line": 10, - "column": 23, - "offset": 738 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " | No | No | Yes | Yes | Yes |\n| Markdown.pl | ", - "position": { - "start": { - "line": 10, - "column": 23, - "offset": 738 - }, - "end": { - "line": 11, - "column": 20, - "offset": 836 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "inlineCode", - "value": "()", - "position": { - "start": { - "line": 11, - "column": 20, - "offset": 836 - }, - "end": { - "line": 11, - "column": 24, - "offset": 840 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " | - | - | - | - | - |\n| GitHub | ", - "position": { - "start": { - "line": 11, - "column": 24, - "offset": 840 - }, - "end": { - "line": 12, - "column": 20, - "offset": 937 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "inlineCode", - "value": "()", - "position": { - "start": { - "line": 12, - "column": 20, - "offset": 937 - }, - "end": { - "line": 12, - "column": 24, - "offset": 941 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " | - | - | - | - | - |\n| CommonMark | ", - "position": { - "start": { - "line": 12, - "column": 24, - "offset": 941 - }, - "end": { - "line": 13, - "column": 20, - "offset": 1038 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "inlineCode", - "value": "()", - "position": { - "start": { - "line": 13, - "column": 20, - "offset": 1038 - }, - "end": { - "line": 13, - "column": 24, - "offset": 1042 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " | No | Yes | Yes | Yes | Yes |", - "position": { - "start": { - "line": 13, - "column": 24, - "offset": 1042 - }, - "end": { - "line": 13, - "column": 101, - "offset": 1119 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 9 - }, - "end": { - "line": 13, - "column": 101, - "offset": 1119 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "heading", - "depth": 2, - "children": [ - { - "type": "text", - "value": "Double quotes", - "position": { - "start": { - "line": 15, - "column": 4, - "offset": 1124 - }, - "end": { - "line": 15, - "column": 17, - "offset": 1137 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 1121 - }, - "end": { - "line": 15, - "column": 17, - "offset": 1137 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "and text", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 17, - "column": 2, - "offset": 1140 - }, - "end": { - "line": 17, - "column": 7, - "offset": 1145 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 1139 - }, - "end": { - "line": 17, - "column": 33, - "offset": 1171 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 1139 - }, - "end": { - "line": 17, - "column": 33, - "offset": 1171 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 19, - "column": 2, - "offset": 1174 - }, - "end": { - "line": 19, - "column": 7, - "offset": 1179 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 1173 - }, - "end": { - "line": 19, - "column": 8, - "offset": 1180 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(./world.html \"and \"matching delimiters\"\")", - "position": { - "start": { - "line": 19, - "column": 8, - "offset": 1180 - }, - "end": { - "line": 19, - "column": 50, - "offset": 1222 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 1173 - }, - "end": { - "line": 19, - "column": 50, - "offset": 1222 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 21, - "column": 2, - "offset": 1225 - }, - "end": { - "line": 21, - "column": 7, - "offset": 1230 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 1, - "offset": 1224 - }, - "end": { - "line": 21, - "column": 8, - "offset": 1231 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(./world.html \"and \"mismatched delimiters\")", - "position": { - "start": { - "line": 21, - "column": 8, - "offset": 1231 - }, - "end": { - "line": 21, - "column": 51, - "offset": 1274 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 1, - "offset": 1224 - }, - "end": { - "line": 21, - "column": 51, - "offset": 1274 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "and \"escapes\"", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 23, - "column": 2, - "offset": 1277 - }, - "end": { - "line": 23, - "column": 7, - "offset": 1282 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 23, - "column": 1, - "offset": 1276 - }, - "end": { - "line": 23, - "column": 40, - "offset": 1315 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 23, - "column": 1, - "offset": 1276 - }, - "end": { - "line": 23, - "column": 40, - "offset": 1315 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "and \"named entities\"", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 25, - "column": 2, - "offset": 1318 - }, - "end": { - "line": 25, - "column": 7, - "offset": 1323 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 25, - "column": 1, - "offset": 1317 - }, - "end": { - "line": 25, - "column": 55, - "offset": 1371 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 25, - "column": 1, - "offset": 1317 - }, - "end": { - "line": 25, - "column": 55, - "offset": 1371 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "and \"numbered entities\"", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 27, - "column": 2, - "offset": 1374 - }, - "end": { - "line": 27, - "column": 7, - "offset": 1379 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 27, - "column": 1, - "offset": 1373 - }, - "end": { - "line": 27, - "column": 58, - "offset": 1430 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 27, - "column": 1, - "offset": 1373 - }, - "end": { - "line": 27, - "column": 58, - "offset": 1430 - }, - "indent": [] - } - }, - { - "type": "heading", - "depth": 2, - "children": [ - { - "type": "text", - "value": "Single quotes", - "position": { - "start": { - "line": 29, - "column": 4, - "offset": 1435 - }, - "end": { - "line": 29, - "column": 17, - "offset": 1448 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 1432 - }, - "end": { - "line": 29, - "column": 17, - "offset": 1448 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "and text", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 31, - "column": 2, - "offset": 1451 - }, - "end": { - "line": 31, - "column": 7, - "offset": 1456 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 31, - "column": 1, - "offset": 1450 - }, - "end": { - "line": 31, - "column": 33, - "offset": 1482 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 31, - "column": 1, - "offset": 1450 - }, - "end": { - "line": 31, - "column": 33, - "offset": 1482 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 33, - "column": 2, - "offset": 1485 - }, - "end": { - "line": 33, - "column": 7, - "offset": 1490 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 33, - "column": 1, - "offset": 1484 - }, - "end": { - "line": 33, - "column": 8, - "offset": 1491 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(./world.html 'and 'matching delimiters'')", - "position": { - "start": { - "line": 33, - "column": 8, - "offset": 1491 - }, - "end": { - "line": 33, - "column": 50, - "offset": 1533 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 33, - "column": 1, - "offset": 1484 - }, - "end": { - "line": 33, - "column": 50, - "offset": 1533 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 35, - "column": 2, - "offset": 1536 - }, - "end": { - "line": 35, - "column": 7, - "offset": 1541 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 35, - "column": 1, - "offset": 1535 - }, - "end": { - "line": 35, - "column": 8, - "offset": 1542 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(./world.html 'and 'mismatched delimiters')", - "position": { - "start": { - "line": 35, - "column": 8, - "offset": 1542 - }, - "end": { - "line": 35, - "column": 51, - "offset": 1585 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 35, - "column": 1, - "offset": 1535 - }, - "end": { - "line": 35, - "column": 51, - "offset": 1585 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "and 'escapes'", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 37, - "column": 2, - "offset": 1588 - }, - "end": { - "line": 37, - "column": 7, - "offset": 1593 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 37, - "column": 1, - "offset": 1587 - }, - "end": { - "line": 37, - "column": 40, - "offset": 1626 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 37, - "column": 1, - "offset": 1587 - }, - "end": { - "line": 37, - "column": 40, - "offset": 1626 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "and 'named entities'", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 39, - "column": 2, - "offset": 1629 - }, - "end": { - "line": 39, - "column": 7, - "offset": 1634 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 39, - "column": 1, - "offset": 1628 - }, - "end": { - "line": 39, - "column": 55, - "offset": 1682 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 39, - "column": 1, - "offset": 1628 - }, - "end": { - "line": 39, - "column": 55, - "offset": 1682 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "and 'numbered entities'", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 41, - "column": 2, - "offset": 1685 - }, - "end": { - "line": 41, - "column": 7, - "offset": 1690 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 41, - "column": 1, - "offset": 1684 - }, - "end": { - "line": 41, - "column": 58, - "offset": 1741 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 41, - "column": 1, - "offset": 1684 - }, - "end": { - "line": 41, - "column": 58, - "offset": 1741 - }, - "indent": [] - } - }, - { - "type": "heading", - "depth": 2, - "children": [ - { - "type": "text", - "value": "Parentheses", - "position": { - "start": { - "line": 43, - "column": 4, - "offset": 1746 - }, - "end": { - "line": 43, - "column": 15, - "offset": 1757 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 43, - "column": 1, - "offset": 1743 - }, - "end": { - "line": 43, - "column": 15, - "offset": 1757 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "and text", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 45, - "column": 2, - "offset": 1760 - }, - "end": { - "line": 45, - "column": 7, - "offset": 1765 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 45, - "column": 1, - "offset": 1759 - }, - "end": { - "line": 45, - "column": 33, - "offset": 1791 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 45, - "column": 1, - "offset": 1759 - }, - "end": { - "line": 45, - "column": 33, - "offset": 1791 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "and (matching delimiters", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 47, - "column": 2, - "offset": 1794 - }, - "end": { - "line": 47, - "column": 7, - "offset": 1799 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 47, - "column": 1, - "offset": 1793 - }, - "end": { - "line": 47, - "column": 49, - "offset": 1841 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ")", - "position": { - "start": { - "line": 47, - "column": 49, - "offset": 1841 - }, - "end": { - "line": 47, - "column": 50, - "offset": 1842 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 47, - "column": 1, - "offset": 1793 - }, - "end": { - "line": 47, - "column": 50, - "offset": 1842 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "and (mismatched delimiters", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 49, - "column": 2, - "offset": 1845 - }, - "end": { - "line": 49, - "column": 7, - "offset": 1850 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 49, - "column": 1, - "offset": 1844 - }, - "end": { - "line": 49, - "column": 51, - "offset": 1894 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 49, - "column": 1, - "offset": 1844 - }, - "end": { - "line": 49, - "column": 51, - "offset": 1894 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "and (escapes)", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 51, - "column": 2, - "offset": 1897 - }, - "end": { - "line": 51, - "column": 7, - "offset": 1902 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 51, - "column": 1, - "offset": 1896 - }, - "end": { - "line": 51, - "column": 40, - "offset": 1935 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 51, - "column": 1, - "offset": 1896 - }, - "end": { - "line": 51, - "column": 40, - "offset": 1935 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "and (named entities)", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 53, - "column": 2, - "offset": 1938 - }, - "end": { - "line": 53, - "column": 7, - "offset": 1943 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 53, - "column": 1, - "offset": 1937 - }, - "end": { - "line": 53, - "column": 55, - "offset": 1991 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 53, - "column": 1, - "offset": 1937 - }, - "end": { - "line": 53, - "column": 55, - "offset": 1991 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "and (numbered entities)", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 55, - "column": 2, - "offset": 1994 - }, - "end": { - "line": 55, - "column": 7, - "offset": 1999 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 55, - "column": 1, - "offset": 1993 - }, - "end": { - "line": 55, - "column": 58, - "offset": 2050 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 55, - "column": 1, - "offset": 1993 - }, - "end": { - "line": 55, - "column": 58, - "offset": 2050 - }, - "indent": [] - } - }, - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Images", - "position": { - "start": { - "line": 57, - "column": 3, - "offset": 2054 - }, - "end": { - "line": 57, - "column": 9, - "offset": 2060 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 57, - "column": 1, - "offset": 2052 - }, - "end": { - "line": 57, - "column": 9, - "offset": 2060 - }, - "indent": [] - } - }, - { - "type": "heading", - "depth": 2, - "children": [ - { - "type": "text", - "value": "Double quotes", - "position": { - "start": { - "line": 59, - "column": 4, - "offset": 2065 - }, - "end": { - "line": 59, - "column": 17, - "offset": 2078 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 59, - "column": 1, - "offset": 2062 - }, - "end": { - "line": 59, - "column": 17, - "offset": 2078 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "and text", - "url": "./world.png", - "alt": "Hello", - "position": { - "start": { - "line": 61, - "column": 1, - "offset": 2080 - }, - "end": { - "line": 61, - "column": 33, - "offset": 2112 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 61, - "column": 1, - "offset": 2080 - }, - "end": { - "line": 61, - "column": 33, - "offset": 2112 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "imageReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "alt": "Hello", - "position": { - "start": { - "line": 63, - "column": 1, - "offset": 2114 - }, - "end": { - "line": 63, - "column": 9, - "offset": 2122 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(./world.png \"and \"matching delimiters\"\")", - "position": { - "start": { - "line": 63, - "column": 9, - "offset": 2122 - }, - "end": { - "line": 63, - "column": 50, - "offset": 2163 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 63, - "column": 1, - "offset": 2114 - }, - "end": { - "line": 63, - "column": 50, - "offset": 2163 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "imageReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "alt": "Hello", - "position": { - "start": { - "line": 65, - "column": 1, - "offset": 2165 - }, - "end": { - "line": 65, - "column": 9, - "offset": 2173 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(./world.png \"and \"mismatched delimiters\")", - "position": { - "start": { - "line": 65, - "column": 9, - "offset": 2173 - }, - "end": { - "line": 65, - "column": 51, - "offset": 2215 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 65, - "column": 1, - "offset": 2165 - }, - "end": { - "line": 65, - "column": 51, - "offset": 2215 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "and \"escapes\"", - "url": "./world.png", - "alt": "Hello", - "position": { - "start": { - "line": 67, - "column": 1, - "offset": 2217 - }, - "end": { - "line": 67, - "column": 40, - "offset": 2256 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 67, - "column": 1, - "offset": 2217 - }, - "end": { - "line": 67, - "column": 40, - "offset": 2256 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "and \"named entities\"", - "url": "./world.png", - "alt": "Hello", - "position": { - "start": { - "line": 69, - "column": 1, - "offset": 2258 - }, - "end": { - "line": 69, - "column": 55, - "offset": 2312 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 69, - "column": 1, - "offset": 2258 - }, - "end": { - "line": 69, - "column": 55, - "offset": 2312 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "and \"numbered entities\"", - "url": "./world.png", - "alt": "Hello", - "position": { - "start": { - "line": 71, - "column": 1, - "offset": 2314 - }, - "end": { - "line": 71, - "column": 58, - "offset": 2371 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 71, - "column": 1, - "offset": 2314 - }, - "end": { - "line": 71, - "column": 58, - "offset": 2371 - }, - "indent": [] - } - }, - { - "type": "heading", - "depth": 2, - "children": [ - { - "type": "text", - "value": "Single quotes", - "position": { - "start": { - "line": 73, - "column": 4, - "offset": 2376 - }, - "end": { - "line": 73, - "column": 17, - "offset": 2389 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 73, - "column": 1, - "offset": 2373 - }, - "end": { - "line": 73, - "column": 17, - "offset": 2389 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "and text", - "url": "./world.png", - "alt": "Hello", - "position": { - "start": { - "line": 75, - "column": 1, - "offset": 2391 - }, - "end": { - "line": 75, - "column": 33, - "offset": 2423 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 75, - "column": 1, - "offset": 2391 - }, - "end": { - "line": 75, - "column": 33, - "offset": 2423 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "imageReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "alt": "Hello", - "position": { - "start": { - "line": 77, - "column": 1, - "offset": 2425 - }, - "end": { - "line": 77, - "column": 9, - "offset": 2433 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(./world.png 'and 'matching delimiters'')", - "position": { - "start": { - "line": 77, - "column": 9, - "offset": 2433 - }, - "end": { - "line": 77, - "column": 50, - "offset": 2474 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 77, - "column": 1, - "offset": 2425 - }, - "end": { - "line": 77, - "column": 50, - "offset": 2474 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "imageReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "alt": "Hello", - "position": { - "start": { - "line": 79, - "column": 1, - "offset": 2476 - }, - "end": { - "line": 79, - "column": 9, - "offset": 2484 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(./world.png 'and 'mismatched delimiters')", - "position": { - "start": { - "line": 79, - "column": 9, - "offset": 2484 - }, - "end": { - "line": 79, - "column": 51, - "offset": 2526 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 79, - "column": 1, - "offset": 2476 - }, - "end": { - "line": 79, - "column": 51, - "offset": 2526 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "and 'escapes'", - "url": "./world.png", - "alt": "Hello", - "position": { - "start": { - "line": 81, - "column": 1, - "offset": 2528 - }, - "end": { - "line": 81, - "column": 40, - "offset": 2567 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 81, - "column": 1, - "offset": 2528 - }, - "end": { - "line": 81, - "column": 40, - "offset": 2567 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "and 'named entities'", - "url": "./world.png", - "alt": "Hello", - "position": { - "start": { - "line": 83, - "column": 1, - "offset": 2569 - }, - "end": { - "line": 83, - "column": 55, - "offset": 2623 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 83, - "column": 1, - "offset": 2569 - }, - "end": { - "line": 83, - "column": 55, - "offset": 2623 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "and 'numbered entities'", - "url": "./world.png", - "alt": "Hello", - "position": { - "start": { - "line": 85, - "column": 1, - "offset": 2625 - }, - "end": { - "line": 85, - "column": 58, - "offset": 2682 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 85, - "column": 1, - "offset": 2625 - }, - "end": { - "line": 85, - "column": 58, - "offset": 2682 - }, - "indent": [] - } - }, - { - "type": "heading", - "depth": 2, - "children": [ - { - "type": "text", - "value": "Parentheses", - "position": { - "start": { - "line": 87, - "column": 4, - "offset": 2687 - }, - "end": { - "line": 87, - "column": 15, - "offset": 2698 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 87, - "column": 1, - "offset": 2684 - }, - "end": { - "line": 87, - "column": 15, - "offset": 2698 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "and text", - "url": "./world.png", - "alt": "Hello", - "position": { - "start": { - "line": 89, - "column": 1, - "offset": 2700 - }, - "end": { - "line": 89, - "column": 33, - "offset": 2732 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 89, - "column": 1, - "offset": 2700 - }, - "end": { - "line": 89, - "column": 33, - "offset": 2732 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "and (matching delimiters", - "url": "./world.png", - "alt": "Hello", - "position": { - "start": { - "line": 91, - "column": 1, - "offset": 2734 - }, - "end": { - "line": 91, - "column": 49, - "offset": 2782 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ")", - "position": { - "start": { - "line": 91, - "column": 49, - "offset": 2782 - }, - "end": { - "line": 91, - "column": 50, - "offset": 2783 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 91, - "column": 1, - "offset": 2734 - }, - "end": { - "line": 91, - "column": 50, - "offset": 2783 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "and (mismatched delimiters", - "url": "./world.png", - "alt": "Hello", - "position": { - "start": { - "line": 93, - "column": 1, - "offset": 2785 - }, - "end": { - "line": 93, - "column": 51, - "offset": 2835 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 93, - "column": 1, - "offset": 2785 - }, - "end": { - "line": 93, - "column": 51, - "offset": 2835 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "and (escapes)", - "url": "./world.png", - "alt": "Hello", - "position": { - "start": { - "line": 95, - "column": 1, - "offset": 2837 - }, - "end": { - "line": 95, - "column": 40, - "offset": 2876 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 95, - "column": 1, - "offset": 2837 - }, - "end": { - "line": 95, - "column": 40, - "offset": 2876 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "and (named entities)", - "url": "./world.png", - "alt": "Hello", - "position": { - "start": { - "line": 97, - "column": 1, - "offset": 2878 - }, - "end": { - "line": 97, - "column": 55, - "offset": 2932 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 97, - "column": 1, - "offset": 2878 - }, - "end": { - "line": 97, - "column": 55, - "offset": 2932 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "and (numbered entities)", - "url": "./world.png", - "alt": "Hello", - "position": { - "start": { - "line": 99, - "column": 1, - "offset": 2934 - }, - "end": { - "line": 99, - "column": 58, - "offset": 2991 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 99, - "column": 1, - "offset": 2934 - }, - "end": { - "line": 99, - "column": 58, - "offset": 2991 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 100, - "column": 1, - "offset": 2992 - } - } -} diff --git a/test/fixtures/tree/title-attributes.nogfm.json b/test/fixtures/tree/title-attributes.nogfm.json deleted file mode 100644 index 824167ca0..000000000 --- a/test/fixtures/tree/title-attributes.nogfm.json +++ /dev/null @@ -1,2956 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Links", - "position": { - "start": { - "line": 1, - "column": 3, - "offset": 2 - }, - "end": { - "line": 1, - "column": 8, - "offset": 7 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 1, - "column": 8, - "offset": 7 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "| Implementation | Characters | Nested | Mismatched | Escaped | Named Entities | Numbered Entities |\n| -------------- | ---------- |------- | ---------- | ------- | -------------- | ----------------- |\n| Markdown.pl | ", - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 9 - }, - "end": { - "line": 5, - "column": 20, - "offset": 230 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "inlineCode", - "value": "\"", - "position": { - "start": { - "line": 5, - "column": 20, - "offset": 230 - }, - "end": { - "line": 5, - "column": 23, - "offset": 233 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " | Yes | Yes | No | Yes | Yes |\n| GitHub | ", - "position": { - "start": { - "line": 5, - "column": 23, - "offset": 233 - }, - "end": { - "line": 6, - "column": 20, - "offset": 331 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "inlineCode", - "value": "\"", - "position": { - "start": { - "line": 6, - "column": 20, - "offset": 331 - }, - "end": { - "line": 6, - "column": 23, - "offset": 334 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " | Yes | Yes | No | No | No |\n| CommonMark | ", - "position": { - "start": { - "line": 6, - "column": 23, - "offset": 334 - }, - "end": { - "line": 7, - "column": 20, - "offset": 432 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "inlineCode", - "value": "\"", - "position": { - "start": { - "line": 7, - "column": 20, - "offset": 432 - }, - "end": { - "line": 7, - "column": 23, - "offset": 435 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " | No | No | Yes | Yes | Yes |\n| Markdown.pl | ", - "position": { - "start": { - "line": 7, - "column": 23, - "offset": 435 - }, - "end": { - "line": 8, - "column": 20, - "offset": 533 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "inlineCode", - "value": "'", - "position": { - "start": { - "line": 8, - "column": 20, - "offset": 533 - }, - "end": { - "line": 8, - "column": 23, - "offset": 536 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " | Yes | Yes | No | Yes | Yes |\n| GitHub | ", - "position": { - "start": { - "line": 8, - "column": 23, - "offset": 536 - }, - "end": { - "line": 9, - "column": 20, - "offset": 634 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "inlineCode", - "value": "'", - "position": { - "start": { - "line": 9, - "column": 20, - "offset": 634 - }, - "end": { - "line": 9, - "column": 23, - "offset": 637 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " | Yes | Yes | No | No | No |\n| CommonMark | ", - "position": { - "start": { - "line": 9, - "column": 23, - "offset": 637 - }, - "end": { - "line": 10, - "column": 20, - "offset": 735 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "inlineCode", - "value": "'", - "position": { - "start": { - "line": 10, - "column": 20, - "offset": 735 - }, - "end": { - "line": 10, - "column": 23, - "offset": 738 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " | No | No | Yes | Yes | Yes |\n| Markdown.pl | ", - "position": { - "start": { - "line": 10, - "column": 23, - "offset": 738 - }, - "end": { - "line": 11, - "column": 20, - "offset": 836 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "inlineCode", - "value": "()", - "position": { - "start": { - "line": 11, - "column": 20, - "offset": 836 - }, - "end": { - "line": 11, - "column": 24, - "offset": 840 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " | - | - | - | - | - |\n| GitHub | ", - "position": { - "start": { - "line": 11, - "column": 24, - "offset": 840 - }, - "end": { - "line": 12, - "column": 20, - "offset": 937 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "inlineCode", - "value": "()", - "position": { - "start": { - "line": 12, - "column": 20, - "offset": 937 - }, - "end": { - "line": 12, - "column": 24, - "offset": 941 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " | - | - | - | - | - |\n| CommonMark | ", - "position": { - "start": { - "line": 12, - "column": 24, - "offset": 941 - }, - "end": { - "line": 13, - "column": 20, - "offset": 1038 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "inlineCode", - "value": "()", - "position": { - "start": { - "line": 13, - "column": 20, - "offset": 1038 - }, - "end": { - "line": 13, - "column": 24, - "offset": 1042 - }, - "indent": [] - } - }, - { - "type": "text", - "value": " | No | Yes | Yes | Yes | Yes |", - "position": { - "start": { - "line": 13, - "column": 24, - "offset": 1042 - }, - "end": { - "line": 13, - "column": 101, - "offset": 1119 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 3, - "column": 1, - "offset": 9 - }, - "end": { - "line": 13, - "column": 101, - "offset": 1119 - }, - "indent": [ - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1, - 1 - ] - } - }, - { - "type": "heading", - "depth": 2, - "children": [ - { - "type": "text", - "value": "Double quotes", - "position": { - "start": { - "line": 15, - "column": 4, - "offset": 1124 - }, - "end": { - "line": 15, - "column": 17, - "offset": 1137 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 15, - "column": 1, - "offset": 1121 - }, - "end": { - "line": 15, - "column": 17, - "offset": 1137 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "and text", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 17, - "column": 2, - "offset": 1140 - }, - "end": { - "line": 17, - "column": 7, - "offset": 1145 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 1139 - }, - "end": { - "line": 17, - "column": 33, - "offset": 1171 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 1139 - }, - "end": { - "line": 17, - "column": 33, - "offset": 1171 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "and \"matching delimiters\"", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 19, - "column": 2, - "offset": 1174 - }, - "end": { - "line": 19, - "column": 7, - "offset": 1179 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 1173 - }, - "end": { - "line": 19, - "column": 50, - "offset": 1222 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 19, - "column": 1, - "offset": 1173 - }, - "end": { - "line": 19, - "column": 50, - "offset": 1222 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "and \"mismatched delimiters", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 21, - "column": 2, - "offset": 1225 - }, - "end": { - "line": 21, - "column": 7, - "offset": 1230 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 1, - "offset": 1224 - }, - "end": { - "line": 21, - "column": 51, - "offset": 1274 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 1, - "offset": 1224 - }, - "end": { - "line": 21, - "column": 51, - "offset": 1274 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "and \\\"escapes\\\"", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 23, - "column": 2, - "offset": 1277 - }, - "end": { - "line": 23, - "column": 7, - "offset": 1282 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 23, - "column": 1, - "offset": 1276 - }, - "end": { - "line": 23, - "column": 40, - "offset": 1315 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 23, - "column": 1, - "offset": 1276 - }, - "end": { - "line": 23, - "column": 40, - "offset": 1315 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "and \"named entities\"", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 25, - "column": 2, - "offset": 1318 - }, - "end": { - "line": 25, - "column": 7, - "offset": 1323 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 25, - "column": 1, - "offset": 1317 - }, - "end": { - "line": 25, - "column": 55, - "offset": 1371 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 25, - "column": 1, - "offset": 1317 - }, - "end": { - "line": 25, - "column": 55, - "offset": 1371 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "and \"numbered entities\"", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 27, - "column": 2, - "offset": 1374 - }, - "end": { - "line": 27, - "column": 7, - "offset": 1379 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 27, - "column": 1, - "offset": 1373 - }, - "end": { - "line": 27, - "column": 58, - "offset": 1430 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 27, - "column": 1, - "offset": 1373 - }, - "end": { - "line": 27, - "column": 58, - "offset": 1430 - }, - "indent": [] - } - }, - { - "type": "heading", - "depth": 2, - "children": [ - { - "type": "text", - "value": "Single quotes", - "position": { - "start": { - "line": 29, - "column": 4, - "offset": 1435 - }, - "end": { - "line": 29, - "column": 17, - "offset": 1448 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 1432 - }, - "end": { - "line": 29, - "column": 17, - "offset": 1448 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "and text", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 31, - "column": 2, - "offset": 1451 - }, - "end": { - "line": 31, - "column": 7, - "offset": 1456 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 31, - "column": 1, - "offset": 1450 - }, - "end": { - "line": 31, - "column": 33, - "offset": 1482 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 31, - "column": 1, - "offset": 1450 - }, - "end": { - "line": 31, - "column": 33, - "offset": 1482 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "and 'matching delimiters'", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 33, - "column": 2, - "offset": 1485 - }, - "end": { - "line": 33, - "column": 7, - "offset": 1490 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 33, - "column": 1, - "offset": 1484 - }, - "end": { - "line": 33, - "column": 50, - "offset": 1533 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 33, - "column": 1, - "offset": 1484 - }, - "end": { - "line": 33, - "column": 50, - "offset": 1533 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "and 'mismatched delimiters", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 35, - "column": 2, - "offset": 1536 - }, - "end": { - "line": 35, - "column": 7, - "offset": 1541 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 35, - "column": 1, - "offset": 1535 - }, - "end": { - "line": 35, - "column": 51, - "offset": 1585 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 35, - "column": 1, - "offset": 1535 - }, - "end": { - "line": 35, - "column": 51, - "offset": 1585 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "and \\'escapes\\'", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 37, - "column": 2, - "offset": 1588 - }, - "end": { - "line": 37, - "column": 7, - "offset": 1593 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 37, - "column": 1, - "offset": 1587 - }, - "end": { - "line": 37, - "column": 40, - "offset": 1626 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 37, - "column": 1, - "offset": 1587 - }, - "end": { - "line": 37, - "column": 40, - "offset": 1626 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "and 'named entities'", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 39, - "column": 2, - "offset": 1629 - }, - "end": { - "line": 39, - "column": 7, - "offset": 1634 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 39, - "column": 1, - "offset": 1628 - }, - "end": { - "line": 39, - "column": 55, - "offset": 1682 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 39, - "column": 1, - "offset": 1628 - }, - "end": { - "line": 39, - "column": 55, - "offset": 1682 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "link", - "title": "and 'numbered entities'", - "url": "./world.html", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 41, - "column": 2, - "offset": 1685 - }, - "end": { - "line": 41, - "column": 7, - "offset": 1690 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 41, - "column": 1, - "offset": 1684 - }, - "end": { - "line": 41, - "column": 58, - "offset": 1741 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 41, - "column": 1, - "offset": 1684 - }, - "end": { - "line": 41, - "column": 58, - "offset": 1741 - }, - "indent": [] - } - }, - { - "type": "heading", - "depth": 2, - "children": [ - { - "type": "text", - "value": "Parentheses", - "position": { - "start": { - "line": 43, - "column": 4, - "offset": 1746 - }, - "end": { - "line": 43, - "column": 15, - "offset": 1757 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 43, - "column": 1, - "offset": 1743 - }, - "end": { - "line": 43, - "column": 15, - "offset": 1757 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 45, - "column": 2, - "offset": 1760 - }, - "end": { - "line": 45, - "column": 7, - "offset": 1765 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 45, - "column": 1, - "offset": 1759 - }, - "end": { - "line": 45, - "column": 8, - "offset": 1766 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(./world.html (and text))", - "position": { - "start": { - "line": 45, - "column": 8, - "offset": 1766 - }, - "end": { - "line": 45, - "column": 33, - "offset": 1791 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 45, - "column": 1, - "offset": 1759 - }, - "end": { - "line": 45, - "column": 33, - "offset": 1791 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 47, - "column": 2, - "offset": 1794 - }, - "end": { - "line": 47, - "column": 7, - "offset": 1799 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 47, - "column": 1, - "offset": 1793 - }, - "end": { - "line": 47, - "column": 8, - "offset": 1800 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(./world.html (and (matching delimiters)))", - "position": { - "start": { - "line": 47, - "column": 8, - "offset": 1800 - }, - "end": { - "line": 47, - "column": 50, - "offset": 1842 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 47, - "column": 1, - "offset": 1793 - }, - "end": { - "line": 47, - "column": 50, - "offset": 1842 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 49, - "column": 2, - "offset": 1845 - }, - "end": { - "line": 49, - "column": 7, - "offset": 1850 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 49, - "column": 1, - "offset": 1844 - }, - "end": { - "line": 49, - "column": 8, - "offset": 1851 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(./world.html (and (mismatched delimiters))", - "position": { - "start": { - "line": 49, - "column": 8, - "offset": 1851 - }, - "end": { - "line": 49, - "column": 51, - "offset": 1894 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 49, - "column": 1, - "offset": 1844 - }, - "end": { - "line": 49, - "column": 51, - "offset": 1894 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 51, - "column": 2, - "offset": 1897 - }, - "end": { - "line": 51, - "column": 7, - "offset": 1902 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 51, - "column": 1, - "offset": 1896 - }, - "end": { - "line": 51, - "column": 8, - "offset": 1903 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(./world.html (and ", - "position": { - "start": { - "line": 51, - "column": 8, - "offset": 1903 - }, - "end": { - "line": 51, - "column": 27, - "offset": 1922 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(", - "position": { - "start": { - "line": 51, - "column": 27, - "offset": 1922 - }, - "end": { - "line": 51, - "column": 29, - "offset": 1924 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "escapes", - "position": { - "start": { - "line": 51, - "column": 29, - "offset": 1924 - }, - "end": { - "line": 51, - "column": 36, - "offset": 1931 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ")", - "position": { - "start": { - "line": 51, - "column": 36, - "offset": 1931 - }, - "end": { - "line": 51, - "column": 38, - "offset": 1933 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "))", - "position": { - "start": { - "line": 51, - "column": 38, - "offset": 1933 - }, - "end": { - "line": 51, - "column": 40, - "offset": 1935 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 51, - "column": 1, - "offset": 1896 - }, - "end": { - "line": 51, - "column": 40, - "offset": 1935 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 53, - "column": 2, - "offset": 1938 - }, - "end": { - "line": 53, - "column": 7, - "offset": 1943 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 53, - "column": 1, - "offset": 1937 - }, - "end": { - "line": 53, - "column": 8, - "offset": 1944 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(./world.html (and ", - "position": { - "start": { - "line": 53, - "column": 8, - "offset": 1944 - }, - "end": { - "line": 53, - "column": 27, - "offset": 1963 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(", - "position": { - "start": { - "line": 53, - "column": 27, - "offset": 1963 - }, - "end": { - "line": 53, - "column": 33, - "offset": 1969 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "named entities", - "position": { - "start": { - "line": 53, - "column": 33, - "offset": 1969 - }, - "end": { - "line": 53, - "column": 47, - "offset": 1983 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ")", - "position": { - "start": { - "line": 53, - "column": 47, - "offset": 1983 - }, - "end": { - "line": 53, - "column": 53, - "offset": 1989 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "))", - "position": { - "start": { - "line": 53, - "column": 53, - "offset": 1989 - }, - "end": { - "line": 53, - "column": 55, - "offset": 1991 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 53, - "column": 1, - "offset": 1937 - }, - "end": { - "line": 53, - "column": 55, - "offset": 1991 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "linkReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "Hello", - "position": { - "start": { - "line": 55, - "column": 2, - "offset": 1994 - }, - "end": { - "line": 55, - "column": 7, - "offset": 1999 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 55, - "column": 1, - "offset": 1993 - }, - "end": { - "line": 55, - "column": 8, - "offset": 2000 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(./world.html (and ", - "position": { - "start": { - "line": 55, - "column": 8, - "offset": 2000 - }, - "end": { - "line": 55, - "column": 27, - "offset": 2019 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(", - "position": { - "start": { - "line": 55, - "column": 27, - "offset": 2019 - }, - "end": { - "line": 55, - "column": 33, - "offset": 2025 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "numbered entities", - "position": { - "start": { - "line": 55, - "column": 33, - "offset": 2025 - }, - "end": { - "line": 55, - "column": 50, - "offset": 2042 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ")", - "position": { - "start": { - "line": 55, - "column": 50, - "offset": 2042 - }, - "end": { - "line": 55, - "column": 56, - "offset": 2048 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "))", - "position": { - "start": { - "line": 55, - "column": 56, - "offset": 2048 - }, - "end": { - "line": 55, - "column": 58, - "offset": 2050 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 55, - "column": 1, - "offset": 1993 - }, - "end": { - "line": 55, - "column": 58, - "offset": 2050 - }, - "indent": [] - } - }, - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "Images", - "position": { - "start": { - "line": 57, - "column": 3, - "offset": 2054 - }, - "end": { - "line": 57, - "column": 9, - "offset": 2060 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 57, - "column": 1, - "offset": 2052 - }, - "end": { - "line": 57, - "column": 9, - "offset": 2060 - }, - "indent": [] - } - }, - { - "type": "heading", - "depth": 2, - "children": [ - { - "type": "text", - "value": "Double quotes", - "position": { - "start": { - "line": 59, - "column": 4, - "offset": 2065 - }, - "end": { - "line": 59, - "column": 17, - "offset": 2078 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 59, - "column": 1, - "offset": 2062 - }, - "end": { - "line": 59, - "column": 17, - "offset": 2078 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "and text", - "url": "./world.png", - "alt": "Hello", - "position": { - "start": { - "line": 61, - "column": 1, - "offset": 2080 - }, - "end": { - "line": 61, - "column": 33, - "offset": 2112 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 61, - "column": 1, - "offset": 2080 - }, - "end": { - "line": 61, - "column": 33, - "offset": 2112 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "and \"matching delimiters\"", - "url": "./world.png", - "alt": "Hello", - "position": { - "start": { - "line": 63, - "column": 1, - "offset": 2114 - }, - "end": { - "line": 63, - "column": 50, - "offset": 2163 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 63, - "column": 1, - "offset": 2114 - }, - "end": { - "line": 63, - "column": 50, - "offset": 2163 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "and \"mismatched delimiters", - "url": "./world.png", - "alt": "Hello", - "position": { - "start": { - "line": 65, - "column": 1, - "offset": 2165 - }, - "end": { - "line": 65, - "column": 51, - "offset": 2215 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 65, - "column": 1, - "offset": 2165 - }, - "end": { - "line": 65, - "column": 51, - "offset": 2215 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "and \\\"escapes\\\"", - "url": "./world.png", - "alt": "Hello", - "position": { - "start": { - "line": 67, - "column": 1, - "offset": 2217 - }, - "end": { - "line": 67, - "column": 40, - "offset": 2256 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 67, - "column": 1, - "offset": 2217 - }, - "end": { - "line": 67, - "column": 40, - "offset": 2256 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "and \"named entities\"", - "url": "./world.png", - "alt": "Hello", - "position": { - "start": { - "line": 69, - "column": 1, - "offset": 2258 - }, - "end": { - "line": 69, - "column": 55, - "offset": 2312 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 69, - "column": 1, - "offset": 2258 - }, - "end": { - "line": 69, - "column": 55, - "offset": 2312 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "and \"numbered entities\"", - "url": "./world.png", - "alt": "Hello", - "position": { - "start": { - "line": 71, - "column": 1, - "offset": 2314 - }, - "end": { - "line": 71, - "column": 58, - "offset": 2371 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 71, - "column": 1, - "offset": 2314 - }, - "end": { - "line": 71, - "column": 58, - "offset": 2371 - }, - "indent": [] - } - }, - { - "type": "heading", - "depth": 2, - "children": [ - { - "type": "text", - "value": "Single quotes", - "position": { - "start": { - "line": 73, - "column": 4, - "offset": 2376 - }, - "end": { - "line": 73, - "column": 17, - "offset": 2389 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 73, - "column": 1, - "offset": 2373 - }, - "end": { - "line": 73, - "column": 17, - "offset": 2389 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "and text", - "url": "./world.png", - "alt": "Hello", - "position": { - "start": { - "line": 75, - "column": 1, - "offset": 2391 - }, - "end": { - "line": 75, - "column": 33, - "offset": 2423 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 75, - "column": 1, - "offset": 2391 - }, - "end": { - "line": 75, - "column": 33, - "offset": 2423 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "and 'matching delimiters'", - "url": "./world.png", - "alt": "Hello", - "position": { - "start": { - "line": 77, - "column": 1, - "offset": 2425 - }, - "end": { - "line": 77, - "column": 50, - "offset": 2474 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 77, - "column": 1, - "offset": 2425 - }, - "end": { - "line": 77, - "column": 50, - "offset": 2474 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "and 'mismatched delimiters", - "url": "./world.png", - "alt": "Hello", - "position": { - "start": { - "line": 79, - "column": 1, - "offset": 2476 - }, - "end": { - "line": 79, - "column": 51, - "offset": 2526 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 79, - "column": 1, - "offset": 2476 - }, - "end": { - "line": 79, - "column": 51, - "offset": 2526 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "and \\'escapes\\'", - "url": "./world.png", - "alt": "Hello", - "position": { - "start": { - "line": 81, - "column": 1, - "offset": 2528 - }, - "end": { - "line": 81, - "column": 40, - "offset": 2567 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 81, - "column": 1, - "offset": 2528 - }, - "end": { - "line": 81, - "column": 40, - "offset": 2567 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "and 'named entities'", - "url": "./world.png", - "alt": "Hello", - "position": { - "start": { - "line": 83, - "column": 1, - "offset": 2569 - }, - "end": { - "line": 83, - "column": 55, - "offset": 2623 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 83, - "column": 1, - "offset": 2569 - }, - "end": { - "line": 83, - "column": 55, - "offset": 2623 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "image", - "title": "and 'numbered entities'", - "url": "./world.png", - "alt": "Hello", - "position": { - "start": { - "line": 85, - "column": 1, - "offset": 2625 - }, - "end": { - "line": 85, - "column": 58, - "offset": 2682 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 85, - "column": 1, - "offset": 2625 - }, - "end": { - "line": 85, - "column": 58, - "offset": 2682 - }, - "indent": [] - } - }, - { - "type": "heading", - "depth": 2, - "children": [ - { - "type": "text", - "value": "Parentheses", - "position": { - "start": { - "line": 87, - "column": 4, - "offset": 2687 - }, - "end": { - "line": 87, - "column": 15, - "offset": 2698 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 87, - "column": 1, - "offset": 2684 - }, - "end": { - "line": 87, - "column": 15, - "offset": 2698 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "imageReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "alt": "Hello", - "position": { - "start": { - "line": 89, - "column": 1, - "offset": 2700 - }, - "end": { - "line": 89, - "column": 9, - "offset": 2708 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(./world.png (and text))", - "position": { - "start": { - "line": 89, - "column": 9, - "offset": 2708 - }, - "end": { - "line": 89, - "column": 33, - "offset": 2732 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 89, - "column": 1, - "offset": 2700 - }, - "end": { - "line": 89, - "column": 33, - "offset": 2732 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "imageReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "alt": "Hello", - "position": { - "start": { - "line": 91, - "column": 1, - "offset": 2734 - }, - "end": { - "line": 91, - "column": 9, - "offset": 2742 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(./world.png (and (matching delimiters)))", - "position": { - "start": { - "line": 91, - "column": 9, - "offset": 2742 - }, - "end": { - "line": 91, - "column": 50, - "offset": 2783 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 91, - "column": 1, - "offset": 2734 - }, - "end": { - "line": 91, - "column": 50, - "offset": 2783 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "imageReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "alt": "Hello", - "position": { - "start": { - "line": 93, - "column": 1, - "offset": 2785 - }, - "end": { - "line": 93, - "column": 9, - "offset": 2793 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(./world.png (and (mismatched delimiters))", - "position": { - "start": { - "line": 93, - "column": 9, - "offset": 2793 - }, - "end": { - "line": 93, - "column": 51, - "offset": 2835 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 93, - "column": 1, - "offset": 2785 - }, - "end": { - "line": 93, - "column": 51, - "offset": 2835 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "imageReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "alt": "Hello", - "position": { - "start": { - "line": 95, - "column": 1, - "offset": 2837 - }, - "end": { - "line": 95, - "column": 9, - "offset": 2845 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(./world.png (and ", - "position": { - "start": { - "line": 95, - "column": 9, - "offset": 2845 - }, - "end": { - "line": 95, - "column": 27, - "offset": 2863 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(", - "position": { - "start": { - "line": 95, - "column": 27, - "offset": 2863 - }, - "end": { - "line": 95, - "column": 29, - "offset": 2865 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "escapes", - "position": { - "start": { - "line": 95, - "column": 29, - "offset": 2865 - }, - "end": { - "line": 95, - "column": 36, - "offset": 2872 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ")", - "position": { - "start": { - "line": 95, - "column": 36, - "offset": 2872 - }, - "end": { - "line": 95, - "column": 38, - "offset": 2874 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "))", - "position": { - "start": { - "line": 95, - "column": 38, - "offset": 2874 - }, - "end": { - "line": 95, - "column": 40, - "offset": 2876 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 95, - "column": 1, - "offset": 2837 - }, - "end": { - "line": 95, - "column": 40, - "offset": 2876 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "imageReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "alt": "Hello", - "position": { - "start": { - "line": 97, - "column": 1, - "offset": 2878 - }, - "end": { - "line": 97, - "column": 9, - "offset": 2886 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(./world.png (and ", - "position": { - "start": { - "line": 97, - "column": 9, - "offset": 2886 - }, - "end": { - "line": 97, - "column": 27, - "offset": 2904 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(", - "position": { - "start": { - "line": 97, - "column": 27, - "offset": 2904 - }, - "end": { - "line": 97, - "column": 33, - "offset": 2910 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "named entities", - "position": { - "start": { - "line": 97, - "column": 33, - "offset": 2910 - }, - "end": { - "line": 97, - "column": 47, - "offset": 2924 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ")", - "position": { - "start": { - "line": 97, - "column": 47, - "offset": 2924 - }, - "end": { - "line": 97, - "column": 53, - "offset": 2930 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "))", - "position": { - "start": { - "line": 97, - "column": 53, - "offset": 2930 - }, - "end": { - "line": 97, - "column": 55, - "offset": 2932 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 97, - "column": 1, - "offset": 2878 - }, - "end": { - "line": 97, - "column": 55, - "offset": 2932 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "imageReference", - "identifier": "hello", - "label": "Hello", - "referenceType": "shortcut", - "alt": "Hello", - "position": { - "start": { - "line": 99, - "column": 1, - "offset": 2934 - }, - "end": { - "line": 99, - "column": 9, - "offset": 2942 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(./world.png (and ", - "position": { - "start": { - "line": 99, - "column": 9, - "offset": 2942 - }, - "end": { - "line": 99, - "column": 27, - "offset": 2960 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "(", - "position": { - "start": { - "line": 99, - "column": 27, - "offset": 2960 - }, - "end": { - "line": 99, - "column": 33, - "offset": 2966 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "numbered entities", - "position": { - "start": { - "line": 99, - "column": 33, - "offset": 2966 - }, - "end": { - "line": 99, - "column": 50, - "offset": 2983 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ")", - "position": { - "start": { - "line": 99, - "column": 50, - "offset": 2983 - }, - "end": { - "line": 99, - "column": 56, - "offset": 2989 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "))", - "position": { - "start": { - "line": 99, - "column": 56, - "offset": 2989 - }, - "end": { - "line": 99, - "column": 58, - "offset": 2991 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 99, - "column": 1, - "offset": 2934 - }, - "end": { - "line": 99, - "column": 58, - "offset": 2991 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 100, - "column": 1, - "offset": 2992 - } - } -} diff --git a/test/fixtures/tree/toplevel-paragraphs.commonmark.json b/test/fixtures/tree/toplevel-paragraphs.commonmark.json deleted file mode 100644 index 14761deb3..000000000 --- a/test/fixtures/tree/toplevel-paragraphs.commonmark.json +++ /dev/null @@ -1,854 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "hello world\n how are you\n how are you", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 3, - "column": 16, - "offset": 43 - }, - "indent": [ - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 3, - "column": 16, - "offset": 43 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "hello world", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 45 - }, - "end": { - "line": 5, - "column": 12, - "offset": 56 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 45 - }, - "end": { - "line": 5, - "column": 12, - "offset": 56 - }, - "indent": [] - } - }, - { - "type": "code", - "lang": null, - "meta": null, - "value": "how are you", - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 57 - }, - "end": { - "line": 8, - "column": 4, - "offset": 76 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "hello world", - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 78 - }, - "end": { - "line": 10, - "column": 12, - "offset": 89 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 78 - }, - "end": { - "line": 10, - "column": 12, - "offset": 89 - }, - "indent": [] - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 90 - }, - "end": { - "line": 11, - "column": 6, - "offset": 95 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "hello world", - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 97 - }, - "end": { - "line": 13, - "column": 12, - "offset": 108 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 97 - }, - "end": { - "line": 13, - "column": 12, - "offset": 108 - }, - "indent": [] - } - }, - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "how are you", - "position": { - "start": { - "line": 14, - "column": 3, - "offset": 111 - }, - "end": { - "line": 14, - "column": 14, - "offset": 122 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 109 - }, - "end": { - "line": 14, - "column": 14, - "offset": 122 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "hello world\nhow are you\n===========", - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 124 - }, - "end": { - "line": 18, - "column": 12, - "offset": 159 - }, - "indent": [ - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 124 - }, - "end": { - "line": 18, - "column": 12, - "offset": 159 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "hello world", - "position": { - "start": { - "line": 20, - "column": 1, - "offset": 161 - }, - "end": { - "line": 20, - "column": 12, - "offset": 172 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 1, - "offset": 161 - }, - "end": { - "line": 20, - "column": 12, - "offset": 172 - }, - "indent": [] - } - }, - { - "type": "blockquote", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "how are you", - "position": { - "start": { - "line": 21, - "column": 3, - "offset": 175 - }, - "end": { - "line": 21, - "column": 14, - "offset": 186 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 3, - "offset": 175 - }, - "end": { - "line": 21, - "column": 14, - "offset": 186 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 1, - "offset": 173 - }, - "end": { - "line": 21, - "column": 14, - "offset": 186 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "hello world", - "position": { - "start": { - "line": 23, - "column": 1, - "offset": 188 - }, - "end": { - "line": 23, - "column": 12, - "offset": 199 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 23, - "column": 1, - "offset": 188 - }, - "end": { - "line": 23, - "column": 12, - "offset": 199 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "how are you", - "position": { - "start": { - "line": 24, - "column": 3, - "offset": 202 - }, - "end": { - "line": 24, - "column": 14, - "offset": 213 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 24, - "column": 3, - "offset": 202 - }, - "end": { - "line": 24, - "column": 14, - "offset": 213 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 24, - "column": 1, - "offset": 200 - }, - "end": { - "line": 24, - "column": 14, - "offset": 213 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 24, - "column": 1, - "offset": 200 - }, - "end": { - "line": 24, - "column": 14, - "offset": 213 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "hello world", - "position": { - "start": { - "line": 26, - "column": 1, - "offset": 215 - }, - "end": { - "line": 26, - "column": 12, - "offset": 226 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 26, - "column": 1, - "offset": 215 - }, - "end": { - "line": 26, - "column": 12, - "offset": 226 - }, - "indent": [] - } - }, - { - "type": "html", - "value": "
how are you
", - "position": { - "start": { - "line": 27, - "column": 1, - "offset": 227 - }, - "end": { - "line": 27, - "column": 23, - "offset": 249 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "hello world\n", - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 251 - }, - "end": { - "line": 30, - "column": 1, - "offset": 263 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 30, - "column": 1, - "offset": 263 - }, - "end": { - "line": 30, - "column": 7, - "offset": 269 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "how are you", - "position": { - "start": { - "line": 30, - "column": 7, - "offset": 269 - }, - "end": { - "line": 30, - "column": 18, - "offset": 280 - }, - "indent": [] - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 30, - "column": 18, - "offset": 280 - }, - "end": { - "line": 30, - "column": 25, - "offset": 287 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 251 - }, - "end": { - "line": 30, - "column": 25, - "offset": 287 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "hello ", - "position": { - "start": { - "line": 32, - "column": 1, - "offset": 289 - }, - "end": { - "line": 32, - "column": 7, - "offset": 295 - }, - "indent": [] - } - }, - { - "type": "linkReference", - "identifier": "how", - "label": "how", - "referenceType": "full", - "children": [ - { - "type": "text", - "value": "world", - "position": { - "start": { - "line": 32, - "column": 8, - "offset": 296 - }, - "end": { - "line": 32, - "column": 13, - "offset": 301 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 32, - "column": 7, - "offset": 295 - }, - "end": { - "line": 32, - "column": 19, - "offset": 307 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\n", - "position": { - "start": { - "line": 32, - "column": 19, - "offset": 307 - }, - "end": { - "line": 33, - "column": 1, - "offset": 308 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "linkReference", - "identifier": "how", - "label": "how", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "how", - "position": { - "start": { - "line": 33, - "column": 2, - "offset": 309 - }, - "end": { - "line": 33, - "column": 5, - "offset": 312 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 33, - "column": 1, - "offset": 308 - }, - "end": { - "line": 33, - "column": 6, - "offset": 313 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ": /are/you", - "position": { - "start": { - "line": 33, - "column": 6, - "offset": 313 - }, - "end": { - "line": 33, - "column": 16, - "offset": 323 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 32, - "column": 1, - "offset": 289 - }, - "end": { - "line": 33, - "column": 16, - "offset": 323 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "html", - "value": "
hello
", - "position": { - "start": { - "line": 35, - "column": 1, - "offset": 325 - }, - "end": { - "line": 35, - "column": 17, - "offset": 341 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 37, - "column": 1, - "offset": 343 - }, - "end": { - "line": 37, - "column": 7, - "offset": 349 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "hello", - "position": { - "start": { - "line": 37, - "column": 7, - "offset": 349 - }, - "end": { - "line": 37, - "column": 12, - "offset": 354 - }, - "indent": [] - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 37, - "column": 12, - "offset": 354 - }, - "end": { - "line": 37, - "column": 19, - "offset": 361 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 37, - "column": 1, - "offset": 343 - }, - "end": { - "line": 37, - "column": 19, - "offset": 361 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 38, - "column": 1, - "offset": 362 - } - } -} diff --git a/test/fixtures/tree/toplevel-paragraphs.json b/test/fixtures/tree/toplevel-paragraphs.json index 92e917b87..e9d70ba81 100644 --- a/test/fixtures/tree/toplevel-paragraphs.json +++ b/test/fixtures/tree/toplevel-paragraphs.json @@ -6,7 +6,7 @@ "children": [ { "type": "text", - "value": "hello world\n how are you\n how are you", + "value": "hello world\nhow are you\nhow are you", "position": { "start": { "line": 1, @@ -17,11 +17,7 @@ "line": 3, "column": 16, "offset": 43 - }, - "indent": [ - 1, - 1 - ] + } } } ], @@ -35,11 +31,7 @@ "line": 3, "column": 16, "offset": 43 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -58,8 +50,7 @@ "line": 5, "column": 12, "offset": 56 - }, - "indent": [] + } } } ], @@ -73,8 +64,7 @@ "line": 5, "column": 12, "offset": 56 - }, - "indent": [] + } } }, { @@ -92,11 +82,7 @@ "line": 8, "column": 4, "offset": 76 - }, - "indent": [ - 1, - 1 - ] + } } }, { @@ -115,8 +101,7 @@ "line": 10, "column": 12, "offset": 89 - }, - "indent": [] + } } } ], @@ -130,8 +115,7 @@ "line": 10, "column": 12, "offset": 89 - }, - "indent": [] + } } }, { @@ -146,8 +130,7 @@ "line": 11, "column": 6, "offset": 95 - }, - "indent": [] + } } }, { @@ -166,8 +149,7 @@ "line": 13, "column": 12, "offset": 108 - }, - "indent": [] + } } } ], @@ -181,8 +163,7 @@ "line": 13, "column": 12, "offset": 108 - }, - "indent": [] + } } }, { @@ -202,8 +183,7 @@ "line": 14, "column": 14, "offset": 122 - }, - "indent": [] + } } } ], @@ -217,43 +197,7 @@ "line": 14, "column": 14, "offset": 122 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "hello world", - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 124 - }, - "end": { - "line": 16, - "column": 12, - "offset": 135 - }, - "indent": [] - } } - ], - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 124 - }, - "end": { - "line": 16, - "column": 12, - "offset": 135 - }, - "indent": [] } }, { @@ -262,36 +206,32 @@ "children": [ { "type": "text", - "value": "how are you", + "value": "hello world\nhow are you", "position": { "start": { - "line": 17, + "line": 16, "column": 1, - "offset": 136 + "offset": 124 }, "end": { "line": 17, "column": 12, "offset": 147 - }, - "indent": [] + } } } ], "position": { "start": { - "line": 17, + "line": 16, "column": 1, - "offset": 136 + "offset": 124 }, "end": { "line": 18, "column": 12, "offset": 159 - }, - "indent": [ - 1 - ] + } } }, { @@ -310,8 +250,7 @@ "line": 20, "column": 12, "offset": 172 - }, - "indent": [] + } } } ], @@ -325,8 +264,7 @@ "line": 20, "column": 12, "offset": 172 - }, - "indent": [] + } } }, { @@ -348,8 +286,7 @@ "line": 21, "column": 14, "offset": 186 - }, - "indent": [] + } } } ], @@ -363,8 +300,7 @@ "line": 21, "column": 14, "offset": 186 - }, - "indent": [] + } } } ], @@ -378,8 +314,7 @@ "line": 21, "column": 14, "offset": 186 - }, - "indent": [] + } } }, { @@ -398,8 +333,7 @@ "line": 23, "column": 12, "offset": 199 - }, - "indent": [] + } } } ], @@ -413,8 +347,7 @@ "line": 23, "column": 12, "offset": 199 - }, - "indent": [] + } } }, { @@ -444,8 +377,7 @@ "line": 24, "column": 14, "offset": 213 - }, - "indent": [] + } } } ], @@ -459,8 +391,7 @@ "line": 24, "column": 14, "offset": 213 - }, - "indent": [] + } } } ], @@ -474,8 +405,7 @@ "line": 24, "column": 14, "offset": 213 - }, - "indent": [] + } } } ], @@ -489,8 +419,7 @@ "line": 24, "column": 14, "offset": 213 - }, - "indent": [] + } } }, { @@ -509,8 +438,7 @@ "line": 26, "column": 12, "offset": 226 - }, - "indent": [] + } } } ], @@ -524,8 +452,7 @@ "line": 26, "column": 12, "offset": 226 - }, - "indent": [] + } } }, { @@ -541,8 +468,7 @@ "line": 27, "column": 23, "offset": 249 - }, - "indent": [] + } } }, { @@ -561,10 +487,7 @@ "line": 30, "column": 1, "offset": 263 - }, - "indent": [ - 1 - ] + } } }, { @@ -580,8 +503,7 @@ "line": 30, "column": 7, "offset": 269 - }, - "indent": [] + } } }, { @@ -597,8 +519,7 @@ "line": 30, "column": 18, "offset": 280 - }, - "indent": [] + } } }, { @@ -614,8 +535,7 @@ "line": 30, "column": 25, "offset": 287 - }, - "indent": [] + } } } ], @@ -629,10 +549,7 @@ "line": 30, "column": 25, "offset": 287 - }, - "indent": [ - 1 - ] + } } }, { @@ -640,7 +557,7 @@ "children": [ { "type": "text", - "value": "hello ", + "value": "hello [world][how]\n[how]: /are/you", "position": { "start": { "line": 32, @@ -648,49 +565,10 @@ "offset": 289 }, "end": { - "line": 32, - "column": 7, - "offset": 295 - }, - "indent": [] - } - }, - { - "type": "linkReference", - "identifier": "how", - "label": "how", - "referenceType": "full", - "children": [ - { - "type": "text", - "value": "world", - "position": { - "start": { - "line": 32, - "column": 8, - "offset": 296 - }, - "end": { - "line": 32, - "column": 13, - "offset": 301 - }, - "indent": [] - } + "line": 33, + "column": 16, + "offset": 323 } - ], - "position": { - "start": { - "line": 32, - "column": 7, - "offset": 295 - }, - "end": { - "line": 32, - "column": 19, - "offset": 307 - }, - "indent": [] } } ], @@ -700,32 +578,11 @@ "column": 1, "offset": 289 }, - "end": { - "line": 32, - "column": 19, - "offset": 307 - }, - "indent": [] - } - }, - { - "type": "definition", - "identifier": "how", - "label": "how", - "title": null, - "url": "/are/you", - "position": { - "start": { - "line": 33, - "column": 1, - "offset": 308 - }, "end": { "line": 33, "column": 16, "offset": 323 - }, - "indent": [] + } } }, { @@ -741,8 +598,7 @@ "line": 35, "column": 17, "offset": 341 - }, - "indent": [] + } } }, { @@ -761,8 +617,7 @@ "line": 37, "column": 7, "offset": 349 - }, - "indent": [] + } } }, { @@ -778,8 +633,7 @@ "line": 37, "column": 12, "offset": 354 - }, - "indent": [] + } } }, { @@ -795,8 +649,7 @@ "line": 37, "column": 19, "offset": 361 - }, - "indent": [] + } } } ], @@ -810,8 +663,7 @@ "line": 37, "column": 19, "offset": 361 - }, - "indent": [] + } } } ], diff --git a/test/fixtures/tree/toplevel-paragraphs.nogfm.commonmark.json b/test/fixtures/tree/toplevel-paragraphs.nogfm.commonmark.json deleted file mode 100644 index 621ae1728..000000000 --- a/test/fixtures/tree/toplevel-paragraphs.nogfm.commonmark.json +++ /dev/null @@ -1,858 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "hello world\n how are you\n how are you", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 3, - "column": 16, - "offset": 43 - }, - "indent": [ - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 3, - "column": 16, - "offset": 43 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "hello world\n", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 45 - }, - "end": { - "line": 6, - "column": 1, - "offset": 57 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "inlineCode", - "value": "how are you", - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 57 - }, - "end": { - "line": 8, - "column": 4, - "offset": 76 - }, - "indent": [ - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 45 - }, - "end": { - "line": 8, - "column": 4, - "offset": 76 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "hello world", - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 78 - }, - "end": { - "line": 10, - "column": 12, - "offset": 89 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 78 - }, - "end": { - "line": 10, - "column": 12, - "offset": 89 - }, - "indent": [] - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 90 - }, - "end": { - "line": 11, - "column": 6, - "offset": 95 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "hello world", - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 97 - }, - "end": { - "line": 13, - "column": 12, - "offset": 108 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 97 - }, - "end": { - "line": 13, - "column": 12, - "offset": 108 - }, - "indent": [] - } - }, - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "how are you", - "position": { - "start": { - "line": 14, - "column": 3, - "offset": 111 - }, - "end": { - "line": 14, - "column": 14, - "offset": 122 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 109 - }, - "end": { - "line": 14, - "column": 14, - "offset": 122 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "hello world\nhow are you\n===========", - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 124 - }, - "end": { - "line": 18, - "column": 12, - "offset": 159 - }, - "indent": [ - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 124 - }, - "end": { - "line": 18, - "column": 12, - "offset": 159 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "hello world", - "position": { - "start": { - "line": 20, - "column": 1, - "offset": 161 - }, - "end": { - "line": 20, - "column": 12, - "offset": 172 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 1, - "offset": 161 - }, - "end": { - "line": 20, - "column": 12, - "offset": 172 - }, - "indent": [] - } - }, - { - "type": "blockquote", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "how are you", - "position": { - "start": { - "line": 21, - "column": 3, - "offset": 175 - }, - "end": { - "line": 21, - "column": 14, - "offset": 186 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 3, - "offset": 175 - }, - "end": { - "line": 21, - "column": 14, - "offset": 186 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 1, - "offset": 173 - }, - "end": { - "line": 21, - "column": 14, - "offset": 186 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "hello world", - "position": { - "start": { - "line": 23, - "column": 1, - "offset": 188 - }, - "end": { - "line": 23, - "column": 12, - "offset": 199 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 23, - "column": 1, - "offset": 188 - }, - "end": { - "line": 23, - "column": 12, - "offset": 199 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "how are you", - "position": { - "start": { - "line": 24, - "column": 3, - "offset": 202 - }, - "end": { - "line": 24, - "column": 14, - "offset": 213 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 24, - "column": 3, - "offset": 202 - }, - "end": { - "line": 24, - "column": 14, - "offset": 213 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 24, - "column": 1, - "offset": 200 - }, - "end": { - "line": 24, - "column": 14, - "offset": 213 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 24, - "column": 1, - "offset": 200 - }, - "end": { - "line": 24, - "column": 14, - "offset": 213 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "hello world", - "position": { - "start": { - "line": 26, - "column": 1, - "offset": 215 - }, - "end": { - "line": 26, - "column": 12, - "offset": 226 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 26, - "column": 1, - "offset": 215 - }, - "end": { - "line": 26, - "column": 12, - "offset": 226 - }, - "indent": [] - } - }, - { - "type": "html", - "value": "
how are you
", - "position": { - "start": { - "line": 27, - "column": 1, - "offset": 227 - }, - "end": { - "line": 27, - "column": 23, - "offset": 249 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "hello world\n", - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 251 - }, - "end": { - "line": 30, - "column": 1, - "offset": 263 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 30, - "column": 1, - "offset": 263 - }, - "end": { - "line": 30, - "column": 7, - "offset": 269 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "how are you", - "position": { - "start": { - "line": 30, - "column": 7, - "offset": 269 - }, - "end": { - "line": 30, - "column": 18, - "offset": 280 - }, - "indent": [] - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 30, - "column": 18, - "offset": 280 - }, - "end": { - "line": 30, - "column": 25, - "offset": 287 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 251 - }, - "end": { - "line": 30, - "column": 25, - "offset": 287 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "hello ", - "position": { - "start": { - "line": 32, - "column": 1, - "offset": 289 - }, - "end": { - "line": 32, - "column": 7, - "offset": 295 - }, - "indent": [] - } - }, - { - "type": "linkReference", - "identifier": "how", - "label": "how", - "referenceType": "full", - "children": [ - { - "type": "text", - "value": "world", - "position": { - "start": { - "line": 32, - "column": 8, - "offset": 296 - }, - "end": { - "line": 32, - "column": 13, - "offset": 301 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 32, - "column": 7, - "offset": 295 - }, - "end": { - "line": 32, - "column": 19, - "offset": 307 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "\n", - "position": { - "start": { - "line": 32, - "column": 19, - "offset": 307 - }, - "end": { - "line": 33, - "column": 1, - "offset": 308 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "linkReference", - "identifier": "how", - "label": "how", - "referenceType": "shortcut", - "children": [ - { - "type": "text", - "value": "how", - "position": { - "start": { - "line": 33, - "column": 2, - "offset": 309 - }, - "end": { - "line": 33, - "column": 5, - "offset": 312 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 33, - "column": 1, - "offset": 308 - }, - "end": { - "line": 33, - "column": 6, - "offset": 313 - }, - "indent": [] - } - }, - { - "type": "text", - "value": ": /are/you", - "position": { - "start": { - "line": 33, - "column": 6, - "offset": 313 - }, - "end": { - "line": 33, - "column": 16, - "offset": 323 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 32, - "column": 1, - "offset": 289 - }, - "end": { - "line": 33, - "column": 16, - "offset": 323 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "html", - "value": "
hello
", - "position": { - "start": { - "line": 35, - "column": 1, - "offset": 325 - }, - "end": { - "line": 35, - "column": 17, - "offset": 341 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 37, - "column": 1, - "offset": 343 - }, - "end": { - "line": 37, - "column": 7, - "offset": 349 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "hello", - "position": { - "start": { - "line": 37, - "column": 7, - "offset": 349 - }, - "end": { - "line": 37, - "column": 12, - "offset": 354 - }, - "indent": [] - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 37, - "column": 12, - "offset": 354 - }, - "end": { - "line": 37, - "column": 19, - "offset": 361 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 37, - "column": 1, - "offset": 343 - }, - "end": { - "line": 37, - "column": 19, - "offset": 361 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 38, - "column": 1, - "offset": 362 - } - } -} diff --git a/test/fixtures/tree/toplevel-paragraphs.nogfm.json b/test/fixtures/tree/toplevel-paragraphs.nogfm.json deleted file mode 100644 index 6ee6baedf..000000000 --- a/test/fixtures/tree/toplevel-paragraphs.nogfm.json +++ /dev/null @@ -1,834 +0,0 @@ -{ - "type": "root", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "hello world\n how are you\n how are you", - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 3, - "column": 16, - "offset": 43 - }, - "indent": [ - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 3, - "column": 16, - "offset": 43 - }, - "indent": [ - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "hello world\n", - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 45 - }, - "end": { - "line": 6, - "column": 1, - "offset": 57 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "inlineCode", - "value": "how are you", - "position": { - "start": { - "line": 6, - "column": 1, - "offset": 57 - }, - "end": { - "line": 8, - "column": 4, - "offset": 76 - }, - "indent": [ - 1, - 1 - ] - } - } - ], - "position": { - "start": { - "line": 5, - "column": 1, - "offset": 45 - }, - "end": { - "line": 8, - "column": 4, - "offset": 76 - }, - "indent": [ - 1, - 1, - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "hello world", - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 78 - }, - "end": { - "line": 10, - "column": 12, - "offset": 89 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 10, - "column": 1, - "offset": 78 - }, - "end": { - "line": 10, - "column": 12, - "offset": 89 - }, - "indent": [] - } - }, - { - "type": "thematicBreak", - "position": { - "start": { - "line": 11, - "column": 1, - "offset": 90 - }, - "end": { - "line": 11, - "column": 6, - "offset": 95 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "hello world", - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 97 - }, - "end": { - "line": 13, - "column": 12, - "offset": 108 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 13, - "column": 1, - "offset": 97 - }, - "end": { - "line": 13, - "column": 12, - "offset": 108 - }, - "indent": [] - } - }, - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "how are you", - "position": { - "start": { - "line": 14, - "column": 3, - "offset": 111 - }, - "end": { - "line": 14, - "column": 14, - "offset": 122 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 14, - "column": 1, - "offset": 109 - }, - "end": { - "line": 14, - "column": 14, - "offset": 122 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "hello world", - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 124 - }, - "end": { - "line": 16, - "column": 12, - "offset": 135 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 16, - "column": 1, - "offset": 124 - }, - "end": { - "line": 16, - "column": 12, - "offset": 135 - }, - "indent": [] - } - }, - { - "type": "heading", - "depth": 1, - "children": [ - { - "type": "text", - "value": "how are you", - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 136 - }, - "end": { - "line": 17, - "column": 12, - "offset": 147 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 17, - "column": 1, - "offset": 136 - }, - "end": { - "line": 18, - "column": 12, - "offset": 159 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "hello world", - "position": { - "start": { - "line": 20, - "column": 1, - "offset": 161 - }, - "end": { - "line": 20, - "column": 12, - "offset": 172 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 20, - "column": 1, - "offset": 161 - }, - "end": { - "line": 20, - "column": 12, - "offset": 172 - }, - "indent": [] - } - }, - { - "type": "blockquote", - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "how are you", - "position": { - "start": { - "line": 21, - "column": 3, - "offset": 175 - }, - "end": { - "line": 21, - "column": 14, - "offset": 186 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 3, - "offset": 175 - }, - "end": { - "line": 21, - "column": 14, - "offset": 186 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 21, - "column": 1, - "offset": 173 - }, - "end": { - "line": 21, - "column": 14, - "offset": 186 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "hello world", - "position": { - "start": { - "line": 23, - "column": 1, - "offset": 188 - }, - "end": { - "line": 23, - "column": 12, - "offset": 199 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 23, - "column": 1, - "offset": 188 - }, - "end": { - "line": 23, - "column": 12, - "offset": 199 - }, - "indent": [] - } - }, - { - "type": "list", - "ordered": false, - "start": null, - "spread": false, - "children": [ - { - "type": "listItem", - "spread": false, - "checked": null, - "children": [ - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "how are you", - "position": { - "start": { - "line": 24, - "column": 3, - "offset": 202 - }, - "end": { - "line": 24, - "column": 14, - "offset": 213 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 24, - "column": 3, - "offset": 202 - }, - "end": { - "line": 24, - "column": 14, - "offset": 213 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 24, - "column": 1, - "offset": 200 - }, - "end": { - "line": 24, - "column": 14, - "offset": 213 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 24, - "column": 1, - "offset": 200 - }, - "end": { - "line": 24, - "column": 14, - "offset": 213 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "hello world", - "position": { - "start": { - "line": 26, - "column": 1, - "offset": 215 - }, - "end": { - "line": 26, - "column": 12, - "offset": 226 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 26, - "column": 1, - "offset": 215 - }, - "end": { - "line": 26, - "column": 12, - "offset": 226 - }, - "indent": [] - } - }, - { - "type": "html", - "value": "
how are you
", - "position": { - "start": { - "line": 27, - "column": 1, - "offset": 227 - }, - "end": { - "line": 27, - "column": 23, - "offset": 249 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "hello world\n", - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 251 - }, - "end": { - "line": 30, - "column": 1, - "offset": 263 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 30, - "column": 1, - "offset": 263 - }, - "end": { - "line": 30, - "column": 7, - "offset": 269 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "how are you", - "position": { - "start": { - "line": 30, - "column": 7, - "offset": 269 - }, - "end": { - "line": 30, - "column": 18, - "offset": 280 - }, - "indent": [] - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 30, - "column": 18, - "offset": 280 - }, - "end": { - "line": 30, - "column": 25, - "offset": 287 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 29, - "column": 1, - "offset": 251 - }, - "end": { - "line": 30, - "column": 25, - "offset": 287 - }, - "indent": [ - 1 - ] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "text", - "value": "hello ", - "position": { - "start": { - "line": 32, - "column": 1, - "offset": 289 - }, - "end": { - "line": 32, - "column": 7, - "offset": 295 - }, - "indent": [] - } - }, - { - "type": "linkReference", - "identifier": "how", - "label": "how", - "referenceType": "full", - "children": [ - { - "type": "text", - "value": "world", - "position": { - "start": { - "line": 32, - "column": 8, - "offset": 296 - }, - "end": { - "line": 32, - "column": 13, - "offset": 301 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 32, - "column": 7, - "offset": 295 - }, - "end": { - "line": 32, - "column": 19, - "offset": 307 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 32, - "column": 1, - "offset": 289 - }, - "end": { - "line": 32, - "column": 19, - "offset": 307 - }, - "indent": [] - } - }, - { - "type": "definition", - "identifier": "how", - "label": "how", - "title": null, - "url": "/are/you", - "position": { - "start": { - "line": 33, - "column": 1, - "offset": 308 - }, - "end": { - "line": 33, - "column": 16, - "offset": 323 - }, - "indent": [] - } - }, - { - "type": "html", - "value": "
hello
", - "position": { - "start": { - "line": 35, - "column": 1, - "offset": 325 - }, - "end": { - "line": 35, - "column": 17, - "offset": 341 - }, - "indent": [] - } - }, - { - "type": "paragraph", - "children": [ - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 37, - "column": 1, - "offset": 343 - }, - "end": { - "line": 37, - "column": 7, - "offset": 349 - }, - "indent": [] - } - }, - { - "type": "text", - "value": "hello", - "position": { - "start": { - "line": 37, - "column": 7, - "offset": 349 - }, - "end": { - "line": 37, - "column": 12, - "offset": 354 - }, - "indent": [] - } - }, - { - "type": "html", - "value": "", - "position": { - "start": { - "line": 37, - "column": 12, - "offset": 354 - }, - "end": { - "line": 37, - "column": 19, - "offset": 361 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 37, - "column": 1, - "offset": 343 - }, - "end": { - "line": 37, - "column": 19, - "offset": 361 - }, - "indent": [] - } - } - ], - "position": { - "start": { - "line": 1, - "column": 1, - "offset": 0 - }, - "end": { - "line": 38, - "column": 1, - "offset": 362 - } - } -} diff --git a/test/fixtures/tree/tricky-list.json b/test/fixtures/tree/tricky-list.json index 97a3c45cc..03b954669 100644 --- a/test/fixtures/tree/tricky-list.json +++ b/test/fixtures/tree/tricky-list.json @@ -20,8 +20,7 @@ "line": 1, "column": 8, "offset": 7 - }, - "indent": [] + } } } ], @@ -35,8 +34,7 @@ "line": 1, "column": 10, "offset": 9 - }, - "indent": [] + } } }, { @@ -52,8 +50,7 @@ "line": 1, "column": 11, "offset": 10 - }, - "indent": [] + } } }, { @@ -72,8 +69,7 @@ "line": 1, "column": 17, "offset": 16 - }, - "indent": [] + } } } ], @@ -87,8 +83,7 @@ "line": 1, "column": 18, "offset": 17 - }, - "indent": [] + } } } ], @@ -102,8 +97,7 @@ "line": 1, "column": 18, "offset": 17 - }, - "indent": [] + } } }, { @@ -133,8 +127,7 @@ "line": 3, "column": 14, "offset": 32 - }, - "indent": [] + } } } ], @@ -148,8 +141,7 @@ "line": 3, "column": 14, "offset": 32 - }, - "indent": [] + } } } ], @@ -163,8 +155,7 @@ "line": 3, "column": 14, "offset": 32 - }, - "indent": [] + } } } ], @@ -178,8 +169,7 @@ "line": 3, "column": 14, "offset": 32 - }, - "indent": [] + } } }, { @@ -201,8 +191,7 @@ "line": 5, "column": 8, "offset": 41 - }, - "indent": [] + } } } ], @@ -216,8 +205,7 @@ "line": 5, "column": 10, "offset": 43 - }, - "indent": [] + } } }, { @@ -233,8 +221,7 @@ "line": 5, "column": 11, "offset": 44 - }, - "indent": [] + } } }, { @@ -253,8 +240,7 @@ "line": 5, "column": 17, "offset": 50 - }, - "indent": [] + } } } ], @@ -268,8 +254,7 @@ "line": 5, "column": 18, "offset": 51 - }, - "indent": [] + } } } ], @@ -283,8 +268,7 @@ "line": 5, "column": 18, "offset": 51 - }, - "indent": [] + } } }, { @@ -314,8 +298,7 @@ "line": 7, "column": 14, "offset": 66 - }, - "indent": [] + } } } ], @@ -329,8 +312,7 @@ "line": 7, "column": 14, "offset": 66 - }, - "indent": [] + } } } ], @@ -344,8 +326,7 @@ "line": 7, "column": 14, "offset": 66 - }, - "indent": [] + } } } ], @@ -359,8 +340,7 @@ "line": 7, "column": 14, "offset": 66 - }, - "indent": [] + } } }, { @@ -382,8 +362,7 @@ "line": 9, "column": 8, "offset": 75 - }, - "indent": [] + } } } ], @@ -397,8 +376,7 @@ "line": 9, "column": 10, "offset": 77 - }, - "indent": [] + } } }, { @@ -414,8 +392,7 @@ "line": 9, "column": 11, "offset": 78 - }, - "indent": [] + } } }, { @@ -434,8 +411,7 @@ "line": 9, "column": 17, "offset": 84 - }, - "indent": [] + } } } ], @@ -449,8 +425,7 @@ "line": 9, "column": 18, "offset": 85 - }, - "indent": [] + } } } ], @@ -464,8 +439,7 @@ "line": 9, "column": 18, "offset": 85 - }, - "indent": [] + } } }, { @@ -495,8 +469,7 @@ "line": 11, "column": 14, "offset": 100 - }, - "indent": [] + } } } ], @@ -510,8 +483,7 @@ "line": 11, "column": 14, "offset": 100 - }, - "indent": [] + } } } ], @@ -525,8 +497,7 @@ "line": 11, "column": 14, "offset": 100 - }, - "indent": [] + } } } ], @@ -540,8 +511,7 @@ "line": 11, "column": 14, "offset": 100 - }, - "indent": [] + } } }, { @@ -563,8 +533,7 @@ "line": 13, "column": 8, "offset": 109 - }, - "indent": [] + } } } ], @@ -578,8 +547,7 @@ "line": 13, "column": 10, "offset": 111 - }, - "indent": [] + } } }, { @@ -595,8 +563,7 @@ "line": 13, "column": 11, "offset": 112 - }, - "indent": [] + } } }, { @@ -615,8 +582,7 @@ "line": 13, "column": 17, "offset": 118 - }, - "indent": [] + } } } ], @@ -630,8 +596,7 @@ "line": 13, "column": 18, "offset": 119 - }, - "indent": [] + } } } ], @@ -645,8 +610,7 @@ "line": 13, "column": 18, "offset": 119 - }, - "indent": [] + } } }, { @@ -676,8 +640,7 @@ "line": 15, "column": 14, "offset": 134 - }, - "indent": [] + } } } ], @@ -691,8 +654,7 @@ "line": 15, "column": 14, "offset": 134 - }, - "indent": [] + } } } ], @@ -706,8 +668,7 @@ "line": 15, "column": 14, "offset": 134 - }, - "indent": [] + } } } ], @@ -721,8 +682,7 @@ "line": 15, "column": 14, "offset": 134 - }, - "indent": [] + } } } ], diff --git a/test/index.js b/test/index.js index e2d7e5487..408e1fa42 100644 --- a/test/index.js +++ b/test/index.js @@ -2,7 +2,6 @@ var test = require('tape') var remove = require('unist-util-remove-position') -var compact = require('mdast-util-compact') var mdast = require('mdast-util-assert') var remark = require('../packages/remark') var fixtures = require('./fixtures') @@ -10,6 +9,8 @@ var fixtures = require('./fixtures') test('fixtures', function (t) { var index = -1 + next() + // Check the next fixture. function next() { var fixture = fixtures[++index] @@ -22,57 +23,47 @@ test('fixtures', function (t) { setImmediate(next) // Queue next. t.test(fixture.name, function (st) { - var input = fixture.input - var possibilities = fixture.possibilities - var mapping = fixture.mapping - var trees = fixture.trees - var output = fixture.output - - Object.keys(possibilities).forEach(function (key) { - var name = key || 'default' - var parse = possibilities[key] - var node - var markdown - var recompiled - - node = remark().data('settings', parse).parse(input) - - mdast(node) - - st.deepLooseEqual( - compact(node), - compact(trees[mapping[key]]), - 'should parse `' + name + '` correctly' - ) + var actualTree + var actualOutput + var reparsedTree + + actualTree = remark().parse(fixture.input) + + mdast(actualTree) - markdown = remark() - .data('settings', Object.assign({}, fixture.stringify, parse)) - .stringify(node) + st.deepLooseEqual( + actualTree, + fixture.tree, + 'should parse `' + fixture.name + '` correctly' + ) - if (output !== false) { - recompiled = remark().data('settings', parse).parse(markdown) + actualOutput = remark() + .data('settings', fixture.stringify) + .stringify(actualTree) - mdast(recompiled) + if (fixture.output !== false) { + reparsedTree = remark().parse(actualOutput) - st.deepEqual( - compact(remove(node, true)), - compact(remove(recompiled, true)), - 'should stringify `' + name + '`' - ) - } + mdast(reparsedTree) + remove(actualTree, true) + remove(reparsedTree, true) - if (output === true) { - st.equal( - fixture.input, - markdown, - 'should stringify `' + name + '` exact' - ) - } - }) + st.deepEqual( + actualTree, + reparsedTree, + 'should stringify `' + fixture.name + '`' + ) + } + + if (fixture.output === true) { + st.equal( + fixture.input, + actualOutput, + 'should stringify `' + fixture.name + '` exact' + ) + } st.end() }) } - - next() })