Full Code of zestedesavoir/zmarkdown for AI

master adf87936e8ec cached
694 files
1.9 MB
587.1k tokens
385 symbols
1 requests
Download .txt
Showing preview only (2,102K chars total). Download the full file or copy to clipboard to get everything.
Repository: zestedesavoir/zmarkdown
Branch: master
Commit: adf87936e8ec
Files: 694
Total size: 1.9 MB

Directory structure:
gitextract_4t6_2vzi/

├── .editorconfig
├── .github/
│   └── workflows/
│       ├── ci.yml
│       └── prepublish.yml
├── .gitignore
├── CODE_OF_CONDUCT.md
├── LICENSE-MIT
├── README.md
├── babel.config.js
├── eslint.config.mjs
├── lerna.json
├── package.json
└── packages/
    ├── mdast-util-split-by-heading/
    │   ├── LICENSE-MIT
    │   ├── README.md
    │   ├── __tests__/
    │   │   └── index.js
    │   ├── dist/
    │   │   └── index.js
    │   ├── package.json
    │   └── src/
    │       └── index.js
    ├── rebber/
    │   ├── LICENSE-MIT
    │   ├── README.md
    │   ├── __tests__/
    │   │   ├── __snapshots__/
    │   │   │   └── mdast.tests.js.snap
    │   │   ├── fixtures/
    │   │   │   ├── amps-and-angles-encoding.text
    │   │   │   ├── auto-link-invalid.text
    │   │   │   ├── auto-link-lines.text
    │   │   │   ├── auto-link-output.output.text
    │   │   │   ├── auto-link-url-invalid.text
    │   │   │   ├── auto-link-url.text
    │   │   │   ├── auto-link.text
    │   │   │   ├── backslash-escapes.text
    │   │   │   ├── block-elements.text
    │   │   │   ├── blockquote-indented.text
    │   │   │   ├── blockquote-lazy-code.text
    │   │   │   ├── blockquote-lazy-fence.text
    │   │   │   ├── blockquote-lazy-list.text
    │   │   │   ├── blockquote-lazy-rule.text
    │   │   │   ├── blockquote-list-item.text
    │   │   │   ├── blockquotes-empty-lines.output.text
    │   │   │   ├── blockquotes-with-code-blocks.text
    │   │   │   ├── blockquotes.text
    │   │   │   ├── bom.text
    │   │   │   ├── breaks-hard.text
    │   │   │   ├── case-insensitive-refs.text
    │   │   │   ├── code-block-escape.text
    │   │   │   ├── code-block-indentation.nooutput.text
    │   │   │   ├── code-block-nesting-bug.nooutput.text
    │   │   │   ├── code-block.output.fence=`.text
    │   │   │   ├── code-block.output.fence=~.text
    │   │   │   ├── code-blocks.output.fences.text
    │   │   │   ├── code-blocks.output.text
    │   │   │   ├── code-blocks.text
    │   │   │   ├── code-spans.text
    │   │   │   ├── def-blocks.text
    │   │   │   ├── definition-newline.text
    │   │   │   ├── definition-unclosed-attribute.text
    │   │   │   ├── definition-unclosed.text
    │   │   │   ├── deletion.text
    │   │   │   ├── double-link.text
    │   │   │   ├── emphasis-empty.text
    │   │   │   ├── emphasis-escaped-final-marker.text
    │   │   │   ├── emphasis-internal.text
    │   │   │   ├── emphasis.output.emphasis=-asterisk-.strong=_.text
    │   │   │   ├── emphasis.output.emphasis=_.strong=-asterisk-.text
    │   │   │   ├── empty.text
    │   │   │   ├── entities-advanced.text
    │   │   │   ├── entities.output.entities.text
    │   │   │   ├── entities.output.entities=escape.text
    │   │   │   ├── entities.output.entities=numbers.text
    │   │   │   ├── entities.output.noentities.text
    │   │   │   ├── entities.text
    │   │   │   ├── escaped-angles.text
    │   │   │   ├── fenced-code-empty.text
    │   │   │   ├── fenced-code-trailing-characters-2.nooutput.text
    │   │   │   ├── fenced-code-trailing-characters.nooutput.text
    │   │   │   ├── fenced-code-white-space-after-flag.text
    │   │   │   ├── fenced-code.text
    │   │   │   ├── hard-wrapped-paragraphs-with-list-like-lines.text
    │   │   │   ├── heading-atx-closed-trailing-white-space.text
    │   │   │   ├── heading-atx-empty.text
    │   │   │   ├── heading-in-blockquote.text
    │   │   │   ├── heading-in-paragraph.text
    │   │   │   ├── heading-not-atx.text
    │   │   │   ├── heading-setext-with-initial-spacing.text
    │   │   │   ├── heading.output.close-atx.text
    │   │   │   ├── heading.output.setext.text
    │   │   │   ├── horizontal-rules-adjacent.text
    │   │   │   ├── horizontal-rules.text
    │   │   │   ├── hr-list-break.text
    │   │   │   ├── hr.output.norule-spaces.text
    │   │   │   ├── hr.output.rule-repetition=5.text
    │   │   │   ├── hr.output.rule=-.text
    │   │   │   ├── hr.output.rule=-asterisk-.text
    │   │   │   ├── hr.output.rule=_.text
    │   │   │   ├── html-advanced.text
    │   │   │   ├── html-attributes.text
    │   │   │   ├── html-cdata.text
    │   │   │   ├── html-comments.text
    │   │   │   ├── html-declaration.text
    │   │   │   ├── html-indented.text
    │   │   │   ├── html-processing-instruction.text
    │   │   │   ├── html-simple.text
    │   │   │   ├── html-tags.text
    │   │   │   ├── image-basename-dots.text
    │   │   │   ├── image-empty-alt.text
    │   │   │   ├── image-in-link.text
    │   │   │   ├── image-path-escape.text
    │   │   │   ├── image-with-pipe.text
    │   │   │   ├── images.output.noreference-images.text
    │   │   │   ├── invalid-link-definition.text
    │   │   │   ├── lazy-blockquotes.text
    │   │   │   ├── link-in-link.text
    │   │   │   ├── link-spaces.text
    │   │   │   ├── link-whitespace.text
    │   │   │   ├── link-with-spaces.text
    │   │   │   ├── links-inline-style.text
    │   │   │   ├── links-reference-proto.text
    │   │   │   ├── links-reference-style.text
    │   │   │   ├── links-shortcut-references.text
    │   │   │   ├── links-text-delimiters.text
    │   │   │   ├── links-text-empty.text
    │   │   │   ├── links-text-entity-delimiters.text
    │   │   │   ├── links-text-escaped-delimiters.text
    │   │   │   ├── links-text-mismatched-delimiters.text
    │   │   │   ├── links-title-double-quotes-delimiters.text
    │   │   │   ├── links-title-double-quotes-entity-delimiters.text
    │   │   │   ├── links-title-double-quotes-escaped-delimiters.text
    │   │   │   ├── links-title-double-quotes-mismatched-delimiters.text
    │   │   │   ├── links-title-double-quotes.text
    │   │   │   ├── links-title-empty-double-quotes.text
    │   │   │   ├── links-title-empty-parentheses.text
    │   │   │   ├── links-title-empty-single-quotes.text
    │   │   │   ├── links-title-parentheses.text
    │   │   │   ├── links-title-single-quotes-delimiters.text
    │   │   │   ├── links-title-single-quotes-entity-delimiters.text
    │   │   │   ├── links-title-single-quotes-escaped-delimiters.text
    │   │   │   ├── links-title-single-quotes-mismatched-delimiters.text
    │   │   │   ├── links-title-single-quotes.text
    │   │   │   ├── links-title-unclosed.text
    │   │   │   ├── links-url-empty-title-double-quotes.text
    │   │   │   ├── links-url-empty-title-parentheses.text
    │   │   │   ├── links-url-empty-title-single-quotes.text
    │   │   │   ├── links-url-empty.text
    │   │   │   ├── links-url-entity-parentheses.text
    │   │   │   ├── links-url-escaped-parentheses.text
    │   │   │   ├── links-url-mismatched-parentheses.text
    │   │   │   ├── links-url-nested-parentheses.text
    │   │   │   ├── links-url-new-line.text
    │   │   │   ├── links-url-unclosed.text
    │   │   │   ├── links-url-white-space.text
    │   │   │   ├── links.output.noreference-links.text
    │   │   │   ├── list-after-list.text
    │   │   │   ├── list-and-code.text
    │   │   │   ├── list-continuation.text
    │   │   │   ├── list-indentation.nooutput.text
    │   │   │   ├── list-item-empty-with-white-space.text
    │   │   │   ├── list-item-empty.text
    │   │   │   ├── list-item-indent.list-item-indent=1.output.text
    │   │   │   ├── list-item-indent.list-item-indent=mixed.output.text
    │   │   │   ├── list-item-indent.list-item-indent=tab.output.text
    │   │   │   ├── list-item-newline.nooutput.text
    │   │   │   ├── list-item-text.text
    │   │   │   ├── list-ordered.increment-list-marker.output.text
    │   │   │   ├── list-ordered.noincrement-list-marker.output.text
    │   │   │   ├── list.output.bullet=+.text
    │   │   │   ├── list.output.bullet=-.text
    │   │   │   ├── list.output.bullet=-asterisk-.text
    │   │   │   ├── lists-with-code-and-rules.text
    │   │   │   ├── loose-lists.text
    │   │   │   ├── main.text
    │   │   │   ├── markdown-documentation-basics.text
    │   │   │   ├── markdown-documentation-syntax.text
    │   │   │   ├── mixed-indentation.text
    │   │   │   ├── nested-blockquotes.text
    │   │   │   ├── nested-code.text
    │   │   │   ├── nested-em.nooutput.text
    │   │   │   ├── nested-references.text
    │   │   │   ├── nested-square-link.text
    │   │   │   ├── no-positionals.nooutput.text
    │   │   │   ├── not-a-link.text
    │   │   │   ├── ordered-and-unordered-lists.text
    │   │   │   ├── ordered-different-types.text
    │   │   │   ├── ordered-with-parentheses.text
    │   │   │   ├── paragraphs-and-indentation.text
    │   │   │   ├── paragraphs-empty.text
    │   │   │   ├── ref-paren.text
    │   │   │   ├── reference-image-empty-alt.text
    │   │   │   ├── reference-link-escape.nooutput.text
    │   │   │   ├── reference-link-not-closed.text
    │   │   │   ├── reference-link-with-angle-brackets.text
    │   │   │   ├── reference-link-with-multiple-definitions.text
    │   │   │   ├── same-bullet.text
    │   │   │   ├── stringify-escape.output.commonmark.text
    │   │   │   ├── stringify-escape.output.nogfm.commonmark.text
    │   │   │   ├── stringify-escape.output.nogfm.text
    │   │   │   ├── stringify-escape.output.noposition.pedantic.text
    │   │   │   ├── stringify-escape.output.pedantic.text
    │   │   │   ├── stringify-escape.output.text
    │   │   │   ├── stringify-escape.text
    │   │   │   ├── strong-and-em-together-one.text
    │   │   │   ├── strong-and-em-together-two.nooutput.text
    │   │   │   ├── strong-emphasis.text
    │   │   │   ├── strong-initial-white-space.text
    │   │   │   ├── table-empty-initial-cell.text
    │   │   │   ├── table-escaped-pipes.nooutput.text
    │   │   │   ├── table-in-list.text
    │   │   │   ├── table-invalid-alignment.text
    │   │   │   ├── table-loose.output.loose-table.text
    │   │   │   ├── table-loose.output.text
    │   │   │   ├── table-no-body.text
    │   │   │   ├── table-no-end-of-line.text
    │   │   │   ├── table-one-column.text
    │   │   │   ├── table-one-row.text
    │   │   │   ├── table-padded.output.nopadded-table.text
    │   │   │   ├── table-padded.output.text
    │   │   │   ├── table-pipes-in-code.text
    │   │   │   ├── table-spaced.output.nospaced-table.text
    │   │   │   ├── table-spaced.output.text
    │   │   │   ├── table-with-image.text
    │   │   │   ├── table.text
    │   │   │   ├── tabs-and-spaces.text
    │   │   │   ├── tabs.text
    │   │   │   ├── task-list-ordered.text
    │   │   │   ├── task-list-unordered-asterisk.text
    │   │   │   ├── task-list-unordered-dash.text
    │   │   │   ├── task-list-unordered-plus.text
    │   │   │   ├── task-list.text
    │   │   │   ├── tidyness.text
    │   │   │   ├── title-attributes.text
    │   │   │   ├── toplevel-paragraphs.text
    │   │   │   └── tricky-list.text
    │   │   └── mdast.tests.js
    │   ├── dist/
    │   │   ├── all.js
    │   │   ├── escaper.js
    │   │   ├── index.js
    │   │   ├── one.js
    │   │   ├── preprocessors/
    │   │   │   ├── index.js
    │   │   │   └── referenceVisitors.js
    │   │   └── types/
    │   │       ├── blockquote.js
    │   │       ├── break.js
    │   │       ├── code.js
    │   │       ├── definition.js
    │   │       ├── delete.js
    │   │       ├── emphasis.js
    │   │       ├── heading.js
    │   │       ├── html.js
    │   │       ├── image.js
    │   │       ├── inlinecode.js
    │   │       ├── link.js
    │   │       ├── linkReference.js
    │   │       ├── list.js
    │   │       ├── listItem.js
    │   │       ├── paragraph.js
    │   │       ├── raw.js
    │   │       ├── root.js
    │   │       ├── strong.js
    │   │       ├── table.js
    │   │       ├── tableCell.js
    │   │       ├── tableRow.js
    │   │       ├── text.js
    │   │       └── thematic-break.js
    │   ├── package.json
    │   └── src/
    │       ├── all.js
    │       ├── escaper.js
    │       ├── index.js
    │       ├── one.js
    │       ├── preprocessors/
    │       │   ├── index.js
    │       │   └── referenceVisitors.js
    │       └── types/
    │           ├── blockquote.js
    │           ├── break.js
    │           ├── code.js
    │           ├── definition.js
    │           ├── delete.js
    │           ├── emphasis.js
    │           ├── heading.js
    │           ├── html.js
    │           ├── image.js
    │           ├── inlinecode.js
    │           ├── link.js
    │           ├── linkReference.js
    │           ├── list.js
    │           ├── listItem.js
    │           ├── paragraph.js
    │           ├── raw.js
    │           ├── root.js
    │           ├── strong.js
    │           ├── table.js
    │           ├── tableCell.js
    │           ├── tableRow.js
    │           ├── text.js
    │           └── thematic-break.js
    ├── rebber-plugins/
    │   ├── LICENSE-MIT
    │   ├── README.md
    │   ├── __tests__/
    │   │   ├── __snapshots__/
    │   │   │   └── rebber.test.js.snap
    │   │   ├── fixtures/
    │   │   │   ├── abbr.fixture.md
    │   │   │   ├── blockquote.fixture.md
    │   │   │   ├── blocks.fixture.md
    │   │   │   ├── code.fixture.md
    │   │   │   ├── emoticon.fixture.md
    │   │   │   ├── figure-code.fixture.md
    │   │   │   ├── figure.fixture.md
    │   │   │   ├── footnote.fixture.md
    │   │   │   ├── gridTable.fixture.md
    │   │   │   ├── heading.fixture.md
    │   │   │   ├── inline-code.fixture.md
    │   │   │   ├── link-prepend.fixture.md
    │   │   │   ├── link.fixture.md
    │   │   │   ├── list.fixture.md
    │   │   │   ├── mix-1.fixture.md
    │   │   │   ├── mix-2.fixture.md
    │   │   │   ├── mix-3.fixture.md
    │   │   │   ├── mix-4.fixture.md
    │   │   │   ├── mix-5.fixture.md
    │   │   │   ├── mix-6.fixture.md
    │   │   │   ├── mix-7.fixture.md
    │   │   │   ├── mix-math-escape.fixture.md
    │   │   │   ├── paragraph.fixture.md
    │   │   │   └── table.fixture.md
    │   │   └── rebber.test.js
    │   ├── dist/
    │   │   ├── preprocessors/
    │   │   │   ├── codeVisitor.js
    │   │   │   ├── footnoteProtect.js
    │   │   │   ├── iframe.js
    │   │   │   ├── mathEscape.js
    │   │   │   ├── prepareQuizz.js
    │   │   │   └── spoilerFlatten.js
    │   │   └── type/
    │   │       ├── abbr.js
    │   │       ├── align.js
    │   │       ├── appendix.js
    │   │       ├── comments.js
    │   │       ├── conclusion.js
    │   │       ├── customBlocks.js
    │   │       ├── emoticon.js
    │   │       ├── figure.js
    │   │       ├── footnote.js
    │   │       ├── footnoteDefinition.js
    │   │       ├── footnoteReference.js
    │   │       ├── gridTable.js
    │   │       ├── introduction.js
    │   │       ├── kbd.js
    │   │       ├── math.js
    │   │       ├── ping.js
    │   │       ├── sub.js
    │   │       ├── sup.js
    │   │       └── tableHeader.js
    │   ├── package.json
    │   └── src/
    │       ├── preprocessors/
    │       │   ├── codeVisitor.js
    │       │   ├── footnoteProtect.js
    │       │   ├── iframe.js
    │       │   ├── katexConstants.json
    │       │   ├── mathEscape.js
    │       │   ├── prepareQuizz.js
    │       │   └── spoilerFlatten.js
    │       └── type/
    │           ├── abbr.js
    │           ├── align.js
    │           ├── appendix.js
    │           ├── comments.js
    │           ├── conclusion.js
    │           ├── customBlocks.js
    │           ├── emoticon.js
    │           ├── figure.js
    │           ├── footnote.js
    │           ├── footnoteDefinition.js
    │           ├── footnoteReference.js
    │           ├── gridTable.js
    │           ├── introduction.js
    │           ├── kbd.js
    │           ├── math.js
    │           ├── ping.js
    │           ├── sub.js
    │           ├── sup.js
    │           └── tableHeader.js
    ├── rehype-footnotes-title/
    │   ├── .npmignore
    │   ├── LICENSE-MIT
    │   ├── README.md
    │   ├── __tests__/
    │   │   ├── __snapshots__/
    │   │   │   └── index.js.snap
    │   │   └── index.js
    │   ├── dist/
    │   │   └── index.js
    │   ├── package.json
    │   └── src/
    │       └── index.js
    ├── rehype-html-blocks/
    │   ├── .npmignore
    │   ├── LICENSE-MIT
    │   ├── README.md
    │   ├── __tests__/
    │   │   ├── __snapshots__/
    │   │   │   └── index.js.snap
    │   │   └── index.js
    │   ├── dist/
    │   │   └── index.js
    │   ├── package.json
    │   └── src/
    │       └── index.js
    ├── rehype-postfix-footnote-anchors/
    │   ├── .npmignore
    │   ├── LICENSE-MIT
    │   ├── README.md
    │   ├── __tests__/
    │   │   ├── __snapshots__/
    │   │   │   └── index.js.snap
    │   │   ├── fixtures/
    │   │   │   ├── footnote-split.fixture.md
    │   │   │   ├── footnotes.fixture.md
    │   │   │   ├── regression-1.fixture.md
    │   │   │   └── regression-2.fixture.md
    │   │   └── index.js
    │   ├── dist/
    │   │   └── index.js
    │   ├── package.json
    │   └── src/
    │       └── index.js
    ├── remark-abbr/
    │   ├── .npmignore
    │   ├── LICENSE-MIT
    │   ├── README.md
    │   ├── __tests__/
    │   │   ├── __snapshots__/
    │   │   │   └── index.js.snap
    │   │   └── index.js
    │   ├── dist/
    │   │   └── index.js
    │   ├── package.json
    │   └── src/
    │       └── index.js
    ├── remark-align/
    │   ├── .npmignore
    │   ├── LICENSE-MIT
    │   ├── README.md
    │   ├── __tests__/
    │   │   ├── __snapshots__/
    │   │   │   └── index.js.snap
    │   │   └── index.js
    │   ├── dist/
    │   │   └── index.js
    │   ├── package.json
    │   └── src/
    │       └── index.js
    ├── remark-captions/
    │   ├── .npmignore
    │   ├── LICENSE-MIT
    │   ├── README.md
    │   ├── __tests__/
    │   │   ├── __snapshots__/
    │   │   │   └── index.js.snap
    │   │   └── index.js
    │   ├── dist/
    │   │   └── index.js
    │   ├── package.json
    │   └── src/
    │       └── index.js
    ├── remark-comments/
    │   ├── .npmignore
    │   ├── LICENSE-MIT
    │   ├── README.md
    │   ├── __tests__/
    │   │   ├── __snapshots__/
    │   │   │   └── index.js.snap
    │   │   └── index.js
    │   ├── dist/
    │   │   └── index.js
    │   ├── package.json
    │   └── src/
    │       └── index.js
    ├── remark-custom-blocks/
    │   ├── .npmignore
    │   ├── LICENSE-MIT
    │   ├── README.md
    │   ├── __tests__/
    │   │   ├── __snapshots__/
    │   │   │   └── index.js.snap
    │   │   └── index.js
    │   ├── dist/
    │   │   └── index.js
    │   ├── package.json
    │   └── src/
    │       └── index.js
    ├── remark-disable-tokenizers/
    │   ├── .npmignore
    │   ├── LICENSE-MIT
    │   ├── README.md
    │   ├── __tests__/
    │   │   ├── __snapshots__/
    │   │   │   └── index.js.snap
    │   │   └── index.js
    │   ├── dist/
    │   │   └── index.js
    │   ├── package.json
    │   └── src/
    │       └── index.js
    ├── remark-emoticons/
    │   ├── .npmignore
    │   ├── LICENSE-MIT
    │   ├── README.md
    │   ├── __tests__/
    │   │   ├── __snapshots__/
    │   │   │   └── index.js.snap
    │   │   └── index.js
    │   ├── dist/
    │   │   └── index.js
    │   ├── package.json
    │   └── src/
    │       └── index.js
    ├── remark-escape-escaped/
    │   ├── .npmignore
    │   ├── LICENSE-MIT
    │   ├── README.md
    │   ├── __tests__/
    │   │   ├── __snapshots__/
    │   │   │   └── index.js.snap
    │   │   └── index.js
    │   ├── dist/
    │   │   └── index.js
    │   ├── package.json
    │   └── src/
    │       └── index.js
    ├── remark-fix-guillemets/
    │   ├── .npmignore
    │   ├── LICENSE-MIT
    │   ├── README.md
    │   ├── __tests__/
    │   │   ├── __snapshots__/
    │   │   │   └── index.js.snap
    │   │   └── index.js
    │   ├── dist/
    │   │   └── index.js
    │   ├── package.json
    │   └── src/
    │       └── index.js
    ├── remark-grid-tables/
    │   ├── .npmignore
    │   ├── LICENSE-MIT
    │   ├── README.md
    │   ├── __tests__/
    │   │   ├── __snapshots__/
    │   │   │   └── index.js.snap
    │   │   ├── grid-tables.double.md
    │   │   ├── grid-tables.md
    │   │   └── index.js
    │   ├── dist/
    │   │   └── index.js
    │   ├── package.json
    │   └── src/
    │       └── index.js
    ├── remark-heading-shift/
    │   ├── .npmignore
    │   ├── LICENSE-MIT
    │   ├── README.md
    │   ├── __tests__/
    │   │   ├── __snapshots__/
    │   │   │   └── index.js.snap
    │   │   └── index.js
    │   ├── dist/
    │   │   └── index.js
    │   ├── package.json
    │   └── src/
    │       └── index.js
    ├── remark-heading-trailing-spaces/
    │   ├── .npmignore
    │   ├── LICENSE-MIT
    │   ├── README.md
    │   ├── __tests__/
    │   │   ├── __snapshots__/
    │   │   │   └── index.js.snap
    │   │   └── index.js
    │   ├── dist/
    │   │   └── index.js
    │   ├── package.json
    │   └── src/
    │       └── index.js
    ├── remark-iframes/
    │   ├── .npmignore
    │   ├── LICENSE-MIT
    │   ├── README.md
    │   ├── __tests__/
    │   │   ├── __snapshots__/
    │   │   │   └── index.js.snap
    │   │   └── index.js
    │   ├── dist/
    │   │   └── index.js
    │   ├── package.json
    │   └── src/
    │       └── index.js
    ├── remark-images-download/
    │   ├── .npmignore
    │   ├── LICENSE-MIT
    │   ├── README.md
    │   ├── __mock__/
    │   │   ├── files/
    │   │   │   ├── empty
    │   │   │   ├── world
    │   │   │   └── wrong-mime.txt
    │   │   └── server.js
    │   ├── __tests__/
    │   │   └── index.js
    │   ├── dist/
    │   │   └── index.js
    │   ├── package.json
    │   └── src/
    │       └── index.js
    ├── remark-kbd/
    │   ├── .npmignore
    │   ├── LICENSE-MIT
    │   ├── README.md
    │   ├── __tests__/
    │   │   ├── __snapshots__/
    │   │   │   └── index.js.snap
    │   │   └── index.js
    │   ├── dist/
    │   │   └── index.js
    │   ├── package.json
    │   └── src/
    │       └── index.js
    ├── remark-numbered-footnotes/
    │   ├── .npmignore
    │   ├── LICENSE-MIT
    │   ├── README.md
    │   ├── __tests__/
    │   │   ├── __snapshots__/
    │   │   │   └── index.js.snap
    │   │   ├── fixtures/
    │   │   │   ├── footnote-split.fixture.md
    │   │   │   ├── footnotes.fixture.md
    │   │   │   ├── regression-1.fixture.md
    │   │   │   └── regression-2.fixture.md
    │   │   └── index.js
    │   ├── dist/
    │   │   └── index.js
    │   ├── package.json
    │   └── src/
    │       └── index.js
    ├── remark-ping/
    │   ├── .npmignore
    │   ├── LICENSE-MIT
    │   ├── README.md
    │   ├── __tests__/
    │   │   ├── __snapshots__/
    │   │   │   └── index.js.snap
    │   │   └── index.js
    │   ├── dist/
    │   │   └── index.js
    │   ├── package.json
    │   └── src/
    │       └── index.js
    ├── remark-sub-super/
    │   ├── .npmignore
    │   ├── LICENSE-MIT
    │   ├── README.md
    │   ├── __tests__/
    │   │   ├── __snapshots__/
    │   │   │   └── index.js.snap
    │   │   └── index.js
    │   ├── dist/
    │   │   └── index.js
    │   ├── package.json
    │   └── src/
    │       └── index.js
    ├── typographic-colon/
    │   ├── .npmignore
    │   ├── LICENSE-MIT
    │   ├── README.md
    │   ├── __tests__/
    │   │   └── index.js
    │   ├── dist/
    │   │   ├── db.js
    │   │   └── index.js
    │   ├── package.json
    │   └── src/
    │       ├── db.js
    │       └── index.js
    ├── typographic-em-dash/
    │   ├── .npmignore
    │   ├── LICENSE-MIT
    │   ├── README.md
    │   ├── __tests__/
    │   │   └── index.js
    │   ├── dist/
    │   │   ├── db.js
    │   │   └── index.js
    │   ├── package.json
    │   └── src/
    │       ├── db.js
    │       └── index.js
    ├── typographic-exclamation-mark/
    │   ├── .npmignore
    │   ├── LICENSE-MIT
    │   ├── README.md
    │   ├── __tests__/
    │   │   └── index.js
    │   ├── dist/
    │   │   ├── db.js
    │   │   └── index.js
    │   ├── package.json
    │   └── src/
    │       ├── db.js
    │       └── index.js
    ├── typographic-guillemets/
    │   ├── .npmignore
    │   ├── LICENSE-MIT
    │   ├── README.md
    │   ├── __tests__/
    │   │   └── index.js
    │   ├── dist/
    │   │   ├── db.js
    │   │   └── index.js
    │   ├── package.json
    │   └── src/
    │       ├── db.js
    │       └── index.js
    ├── typographic-percent/
    │   ├── .npmignore
    │   ├── LICENSE-MIT
    │   ├── README.md
    │   ├── __tests__/
    │   │   └── index.js
    │   ├── dist/
    │   │   ├── db.js
    │   │   └── index.js
    │   ├── package.json
    │   └── src/
    │       ├── db.js
    │       └── index.js
    ├── typographic-permille/
    │   ├── .npmignore
    │   ├── LICENSE-MIT
    │   ├── README.md
    │   ├── __tests__/
    │   │   └── index.js
    │   ├── dist/
    │   │   ├── db.js
    │   │   └── index.js
    │   ├── package.json
    │   └── src/
    │       ├── db.js
    │       └── index.js
    ├── typographic-question-mark/
    │   ├── .npmignore
    │   ├── LICENSE-MIT
    │   ├── README.md
    │   ├── __tests__/
    │   │   └── index.js
    │   ├── dist/
    │   │   ├── db.js
    │   │   └── index.js
    │   ├── package.json
    │   └── src/
    │       ├── db.js
    │       └── index.js
    ├── typographic-semicolon/
    │   ├── .npmignore
    │   ├── LICENSE-MIT
    │   ├── README.md
    │   ├── __tests__/
    │   │   └── index.js
    │   ├── dist/
    │   │   ├── db.js
    │   │   └── index.js
    │   ├── package.json
    │   └── src/
    │       ├── db.js
    │       └── index.js
    └── zmarkdown/
        ├── .gitignore
        ├── README.md
        ├── __tests__/
        │   ├── __snapshots__/
        │   │   ├── api.test.js.snap
        │   │   ├── html-suite.test.js.snap
        │   │   ├── latex-suite.test.js.snap
        │   │   ├── legacy-suite.test.js.snap
        │   │   ├── mdast-suite.test.js.snap
        │   │   ├── misc.test.js.snap
        │   │   ├── regressions.test.js.snap
        │   │   └── server.test.js.snap
        │   ├── api.test.js
        │   ├── html-suite.test.js
        │   ├── latex-suite.test.js
        │   ├── legacy-suite.test.js
        │   ├── mdast-suite.test.js
        │   ├── misc.test.js
        │   ├── regressions.test.js
        │   └── server.test.js
        ├── client/
        │   ├── zhlite.js
        │   ├── zhtml.js
        │   ├── zlatex.js
        │   └── zmdast.js
        ├── common.js
        ├── config/
        │   ├── html/
        │   │   ├── iframe-wrappers.js
        │   │   └── index.js
        │   ├── latex/
        │   │   └── index.js
        │   ├── mdast/
        │   │   ├── custom-blocks.js
        │   │   ├── emoticons.js
        │   │   ├── iframes.js
        │   │   ├── images-download.js
        │   │   ├── index.js
        │   │   └── textr.js
        │   └── sanitize/
        │       ├── index.js
        │       └── katex.json
        ├── munin/
        │   └── zmd.sh
        ├── package.json
        ├── plugins/
        │   ├── remark-code-meta.js
        │   ├── remark-image-to-figure.js
        │   └── remark-textr.js
        ├── postprocessors/
        │   ├── html-footnotes-reorder.js
        │   ├── html-iframe-wrappers.js
        │   ├── html-lazy-load-images.js
        │   ├── html-wrap-code.js
        │   ├── md-detect-quizzes.js
        │   ├── md-get-stats.js
        │   ├── md-limit-depth.js
        │   ├── md-list-languages.js
        │   └── md-wrap-intro-ccl.js
        ├── public/
        │   ├── README.md
        │   ├── css/
        │   │   ├── main.css
        │   │   └── zmd.css
        │   ├── index.html
        │   ├── main.css
        │   └── script.js
        ├── renderers/
        │   ├── html.js
        │   ├── latex.js
        │   ├── mdast.js
        │   └── renderer-forge.js
        ├── server/
        │   ├── controllers/
        │   │   └── munin.js
        │   ├── factories/
        │   │   ├── config-factory.js
        │   │   ├── controller-factory.js
        │   │   ├── io-factory.js
        │   │   └── processor-factory.js
        │   ├── index.js
        │   ├── routes/
        │   │   ├── endpoints.js
        │   │   └── munin.js
        │   ├── templates/
        │   │   └── latex-document.js
        │   └── utils/
        │       └── manifest.js
        ├── utils/
        │   ├── code-handler.js
        │   ├── create-wrappers.js
        │   ├── latex-code.js
        │   └── renderer-tests.js
        └── webpack.config.js

================================================
FILE CONTENTS
================================================

================================================
FILE: .editorconfig
================================================
root = true

[*.{js,json}]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true



================================================
FILE: .github/workflows/ci.yml
================================================
name: CI

on:
  push:
    branches: [master, next]
  pull_request:
    branches: [master, next]

env:
  NODE_VERSION: "22"

jobs:
  lint:
    name: Check linting problems
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v4

      - name: Use Node.js ${{ env.NODE_VERSION }}
        uses: actions/setup-node@v4
        with:
          node-version: ${{ env.NODE_VERSION }}

      - name: Install local dependencies
        run: npm ci

      - name: Run linter
        run: npm run lint

  unit-testing:
    name: Run unit testing
    runs-on: ubuntu-latest

    strategy:
      matrix:
        node-version: [20.x, 22.x, 24.x]

    steps:
      - uses: actions/checkout@v4

      - name: Use Node.js ${{ matrix.node-version }}
        uses: actions/setup-node@v4
        with:
          node-version: ${{ matrix.node-version }}

      - name: Install global dependencies
        run: npm install -g pm2

      - name: Install local dependencies
        run: npm ci

      - name: Run tests
        run: npm test

      - name: Update coverage report
        uses: coverallsapp/github-action@master
        if: matrix.node-version == env.NODE_VERSION
        with:
          github-token: ${{ secrets.GITHUB_TOKEN }}


================================================
FILE: .github/workflows/prepublish.yml
================================================
name: Prepare publication

on:
  push:
    branches: [master]

env:
  NODE_VERSION: "22"

jobs:
  deploy-demo:
    if: github.repository_owner == 'zestedesavoir'
    name: Deploy the live demo
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v4

      - name: Use Node.js ${{ env.NODE_VERSION }}
        uses: actions/setup-node@v4
        with:
          node-version: ${{ env.NODE_VERSION }}

      - name: Install local dependencies
        run: npm ci

      - name: Build the demo
        run: npm run build-demo

      - name: GitHub Push
        uses: JamesIves/github-pages-deploy-action@v4
        with:
          branch: gh-pages
          folder: ./packages/zmarkdown/public
          github_token: ${{ secrets.GITHUB_TOKEN }}
          single-commit: true


================================================
FILE: .gitignore
================================================
.DS_Store
/node_modules
/packages/*/node_modules
/packages/*/coverage
/packages/*/.nyc_output
/.nyc_output/*
/coverage/*
npm-debug.log
lerna-debug.log
.idea
.tern-port
.vscode
.nx


================================================
FILE: CODE_OF_CONDUCT.md
================================================
# Contributor Covenant Code of Conduct

## Our Pledge

We as members, contributors, and leaders pledge to make participation in our
community a harassment-free experience for everyone, regardless of age, body
size, visible or invisible disability, ethnicity, sex characteristics, gender
identity and expression, level of experience, education, socio-economic status,
nationality, personal appearance, race, caste, color, religion, or sexual
identity and orientation.

We pledge to act and interact in ways that contribute to an open, welcoming,
diverse, inclusive, and healthy community.

## Our Standards

Examples of behavior that contributes to a positive environment for our
community include:

* Demonstrating empathy and kindness toward other people
* Being respectful of differing opinions, viewpoints, and experiences
* Giving and gracefully accepting constructive feedback
* Accepting responsibility and apologizing to those affected by our mistakes,
  and learning from the experience
* Focusing on what is best not just for us as individuals, but for the overall
  community

Examples of unacceptable behavior include:

* The use of sexualized language or imagery, and sexual attention or advances of
  any kind
* Trolling, insulting or derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or email address,
  without their explicit permission
* Other conduct which could reasonably be considered inappropriate in a
  professional setting

## Enforcement Responsibilities

Community leaders are responsible for clarifying and enforcing our standards of
acceptable behavior and will take appropriate and fair corrective action in
response to any behavior that they deem inappropriate, threatening, offensive,
or harmful.

Community leaders have the right and responsibility to remove, edit, or reject
comments, commits, code, wiki edits, issues, and other contributions that are
not aligned to this Code of Conduct, and will communicate reasons for moderation
decisions when appropriate.

## Scope

This Code of Conduct applies within all community spaces, and also applies when
an individual is officially representing the community in public spaces.
Examples of representing our community include using an official email address,
posting via an official social media account, or acting as an appointed
representative at an online or offline event.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported to the community leaders responsible for enforcement at
[INSERT CONTACT METHOD].
All complaints will be reviewed and investigated promptly and fairly.

All community leaders are obligated to respect the privacy and security of the
reporter of any incident.

## Enforcement Guidelines

Community leaders will follow these Community Impact Guidelines in determining
the consequences for any action they deem in violation of this Code of Conduct:

### 1. Correction

**Community Impact**: Use of inappropriate language or other behavior deemed
unprofessional or unwelcome in the community.

**Consequence**: A private, written warning from community leaders, providing
clarity around the nature of the violation and an explanation of why the
behavior was inappropriate. A public apology may be requested.

### 2. Warning

**Community Impact**: A violation through a single incident or series of
actions.

**Consequence**: A warning with consequences for continued behavior. No
interaction with the people involved, including unsolicited interaction with
those enforcing the Code of Conduct, for a specified period of time. This
includes avoiding interactions in community spaces as well as external channels
like social media. Violating these terms may lead to a temporary or permanent
ban.

### 3. Temporary Ban

**Community Impact**: A serious violation of community standards, including
sustained inappropriate behavior.

**Consequence**: A temporary ban from any sort of interaction or public
communication with the community for a specified period of time. No public or
private interaction with the people involved, including unsolicited interaction
with those enforcing the Code of Conduct, is allowed during this period.
Violating these terms may lead to a permanent ban.

### 4. Permanent Ban

**Community Impact**: Demonstrating a pattern of violation of community
standards, including sustained inappropriate behavior, harassment of an
individual, or aggression toward or disparagement of classes of individuals.

**Consequence**: A permanent ban from any sort of public interaction within the
community.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage],
version 2.1, available at
[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].

Community Impact Guidelines were inspired by
[Mozilla's code of conduct enforcement ladder][Mozilla CoC].

For answers to common questions about this code of conduct, see the FAQ at
[https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
[https://www.contributor-covenant.org/translations][translations].

[homepage]: https://www.contributor-covenant.org
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
[Mozilla CoC]: https://github.com/mozilla/diversity
[FAQ]: https://www.contributor-covenant.org/faq
[translations]: https://www.contributor-covenant.org/translations



================================================
FILE: LICENSE-MIT
================================================
Copyright (c) Zeste de Savoir (https://zestedesavoir.com)

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.


================================================
FILE: README.md
================================================
# ZMarkdown

  [![Build Status][build-badge]][build-status]
  [![Coverage Status][coverage-badge]][coverage-status]

This repository contains all the plugins for ZMarkdown, the Markdown engine powering [Zeste de Savoir][zds].

It is a collection of packages extending the [**remark** processor][processor] and its [**MDAST**][mdast] syntax tree, [**rehype**][rehype] (for HTML processing) and [**textr**][textr] (text transformation framework).
It also provides [**MDAST**][mdast] to LaTeX compilation via [**rebber**][rebber] (and its [plugins][rebber-plugins]).

Currently, all the plugins provided only work for remark versions **lesser than** 13.0.0 (i.e. previous to [**micromark**][micromark]). While we intend to switch to the new system, no due date has been planned, and it requires a significant amount of work, so please be patient, or, even better, help us making the switch!

## Install

### Prerequisites

* node >= 18
* npm >= 9

### Installation

1. `git clone git@github.com:zestedesavoir/zmarkdown.git`
1. `npm install`

This project uses [Jest][jest] for testing. It is recommended to use the locally installed version using `npx`, and run Jest in watch mode when developing `npx jest --watch --notify` (`--notify` sends desktop notifications when tests run).

### Useful commands

* `npm run test` : tests all packages.
* `npm run clean` : clears local dependencies, reinstalls the project and runs all tests.
* `npm run lint` : runs [eslint][eslint] to check the syntax of the full codebase.
* `npm run build` : builds packages using [babel][babel].
* `npm run build -- --scope=<package>` : same as above, but builds only `<package>`.

## Packages

* [**mdast-util-split-by-heading**][mdast-util-split-by-heading]

  A MDAST tool to split a markdown tree into list of subtrees representing the chapters. It relies on heading depth.

* [**rebber**][rebber]

  transformation of MDAST into `latex` code. This code must be included inside a custom latex to be compiled.
  Have a look at `https://github.com/zestedesavoir/latex-template/blob/master/zmdocument.cls` to get a working example.

* [**remark-abbr**][remark-abbr]

  This plugin parses `*[ABBR]: abbr definition` and then replace all ABBR instance in text with a new MDAST node so that `rehype` can parse it into `abbr` html tag.

* [**rehype-footnotes-title**][rehype-footnotes-title]

  This plugin adds a `title` attribute to the footnote links, mainly for accessibility purpose.

* [**rehype-html-blocks**][rehype-html-blocks]

  This plugin wraps (multi-line) raw HTML in `p`.

* [**remark-align**][remark-align]

  This plugin parses custom Markdown syntax to center- or right-align elements.

* [**remark-captions**][remark-captions]

  Allow to add caption to such element as image, table or blockquote.

* [**remark-comments**][remark-comments]

  This plugin parses custom Markdown syntax for Markdown source comments.

* [**remark-custom-blocks**][remark-custom-blocks]

  This plugin parses custom Markdown syntax to create new custom blocks.

* [**remark-emoticons**][remark-emoticons]

  This plugins replaces ASCII emoticons with associated image. Compatible with [rehype][rehype]

* [**remark-escape-escaped**][remark-escape-escaped]

  This plugin escapes HTML entities from Markdown input.

* [**remark-grid-tables**][remark-grid-tables]

  This plugin parses custom Markdown syntax to describe tables.

* [**remark-heading-shift**][remark-heading-shift]

  Allows to shift heading to custimize the way you will integrate the generated tree inside your application.

* [**remark-heading-trailing-spaces**][remark-heading-trailing-spaces]

  This plugin removes trailing spaces from Markdown headers.

* [**remark-iframes**][remark-iframes]

  Allows to add `iframe` inclusion through `!(url)` code.

* [**remark-kbd**][remark-kbd]

  This plugin parses custom Markdown syntax to handle keyboard keys.

* [**remark-numbered-footnotes**][remark-numbered-footnotes]

  This plugin changes how [mdast][mdast] footnotes are displayed by using sequential numbers as footnote references instead of user-specified strings.

* [**remark-sub-super**][remark-sub-super]

  This plugin parses custom Markdown syntax to handle subscript and superscript.

* [**typographic-colon**][typographic-colon]

  Micro module to fix a common typographic issue that is hard to fix with most keyboard layouts.

* [**typographic-permille**][typographic-permille]

  Micro module to replace `%o` with `‰` and optionally replace the preceding space.

* [**zmarkdown**][zmarkdown]

  Fully integrated package to be used in [zeste de savoir website](https://zestedesavoir.com)

## License

[MIT][license] © [Zeste de Savoir][zds]

<!-- Definitions -->

[build-badge]: https://travis-ci.com/zestedesavoir/zmarkdown.svg?branch=master
[build-status]: https://travis-ci.com/zestedesavoir/zmarkdown
[coverage-badge]: https://coveralls.io/repos/github/zestedesavoir/zmarkdown/badge.svg?branch=master

[coverage-status]: https://coveralls.io/github/zestedesavoir/zmarkdown?branch=master
[license]: https://github.com/zestedesavoir/zmarkdown/blob/master/LICENSE-MIT

[processor]: https://github.com/remarkjs/remark/blob/master/packages/remark
[mdast]: https://github.com/wooorm/mdast
[micromark]: https://github.com/micromark/micromark
[pyzmd]: https://github.com/zestedesavoir/Python-ZMarkdown
[zds]: https://zestedesavoir.com
[rehype]: https://github.com/rehypejs/rehype
[textr]: https://github.com/A/textr
[jest]: https://facebook.github.io/jest/
[eslint]: https://github.com/eslint/eslint
[babel]: https://github.com/babel/babel

[mdast-util-split-by-heading]: https://github.com/zestedesavoir/zmarkdown/tree/master/packages/mdast-util-split-by-heading#mdast-util-split-by-heading--
[rebber]: https://github.com/zestedesavoir/zmarkdown/tree/master/packages/rebber#rebber--
[rebber-plugins]: https://github.com/zestedesavoir/zmarkdown/tree/master/packages/rebber-plugins#rebber-plugins--
[remark-abbr]: https://github.com/zestedesavoir/zmarkdown/tree/master/packages/remark-abbr#remark-abbr--
[rehype-footnotes-title]: https://github.com/zestedesavoir/zmarkdown/tree/master/packages/rehype-footnotes-title#rehype-footnotes-title--
[rehype-html-blocks]: https://github.com/zestedesavoir/zmarkdown/tree/master/packages/rehype-html-blocks#rehype-html-blocks--
[remark-align]: https://github.com/zestedesavoir/zmarkdown/tree/master/packages/remark-align#remark-align--
[remark-captions]: https://github.com/zestedesavoir/zmarkdown/tree/master/packages/remark-captions#remark-captions--
[remark-comments]: https://github.com/zestedesavoir/zmarkdown/tree/master/packages/remark-comments#remark-comments--
[remark-custom-blocks]: https://github.com/zestedesavoir/zmarkdown/tree/master/packages/remark-custom-blocks#remark-custom-blocks--
[remark-emoticons]: https://github.com/zestedesavoir/zmarkdown/tree/master/packages/remark-emoticons#remark-emoticons--
[remark-escape-escaped]: https://github.com/zestedesavoir/zmarkdown/tree/master/packages/remark-escape-escaped#remark-escape-escaped--
[remark-grid-tables]: https://github.com/zestedesavoir/zmarkdown/tree/master/packages/remark-grid-tables#remark-grid-tables--
[remark-heading-shift]: https://github.com/zestedesavoir/zmarkdown/tree/master/packages/remark-heading-shift#remark-heading-shift--
[remark-heading-trailing-spaces]: https://github.com/zestedesavoir/zmarkdown/tree/master/packages/remark-heading-trailing-spaces#remark-heading-trailing-spaces--
[remark-iframes]: https://github.com/zestedesavoir/zmarkdown/tree/master/packages/remark-iframes#remark-iframes--
[remark-kbd]: https://github.com/zestedesavoir/zmarkdown/tree/master/packages/remark-kbd#remark-kbd--
[remark-numbered-footnotes]: https://github.com/zestedesavoir/zmarkdown/tree/master/packages/remark-numbered-footnotes#remark-numbered-footnotes--
[remark-sub-super]: https://github.com/zestedesavoir/zmarkdown/tree/master/packages/remark-sub-super#remark-sub-super--
[typographic-colon]: https://github.com/zestedesavoir/zmarkdown/tree/master/packages/typographic-colon#typographic-colon--
[typographic-permille]: https://github.com/zestedesavoir/zmarkdown/tree/master/packages/typographic-permille#typographic-permille--
[zmarkdown]: https://github.com/zestedesavoir/zmarkdown/tree/master/packages/zmarkdown#zmarkdown--


================================================
FILE: babel.config.js
================================================
module.exports = {
  presets: [
    [
      '@babel/preset-env',
      {
        targets: {
          browsers: '> 1%, not dead',
          node: '16.0'
        }
      }
    ]
  ],
  ignore: ['node_modules']
}


================================================
FILE: eslint.config.mjs
================================================
import globals from 'globals'

import path from 'path'
import { fileURLToPath } from 'url'
import { FlatCompat } from '@eslint/eslintrc'
import pluginJs from '@eslint/js'

// mimic CommonJS variables -- not needed if using CommonJS
const __filename = fileURLToPath(import.meta.url)
const __dirname = path.dirname(__filename)
const compat = new FlatCompat({ baseDirectory: __dirname, recommendedConfig: pluginJs.configs.recommended })

export default [
  Object.assign({}, ...compat.extends('standard'), {
    files: ['packages/**/*.js'],
    ignores: [
      'packages/**/__tests__/*.js',
      'packages/**/dist/**/*.js',
      'packages/zmarkdown/webpack.config.js',
      // Should not be ignored, but requires ESM
      'packages/zmarkdown/client/*.js',
      'packages/zmarkdown/public/*.js'
    ],
    languageOptions: {
      sourceType: 'commonjs',
      globals: {
        ...globals.browser,
        ...globals.node
      }
    }
  })
]


================================================
FILE: lerna.json
================================================
{
  "$schema": "node_modules/lerna/schemas/lerna-schema.json",
  "version": "independent"
}


================================================
FILE: package.json
================================================
{
  "jest": {
    "testPathIgnorePatterns": [
      "/node_modules/"
    ],
    "collectCoverage": true,
    "collectCoverageFrom": [
      "packages/**/src/*.js",
      "packages/zmarkdown/plugins/*.js",
      "packages/zmarkdown/postprocessors/*.js",
      "packages/zmarkdown/renderers/*.js",
      "packages/zmarkdown/server/utils/*.js",
      "packages/zmarkdown/utils/*.js",
      "packages/zmarkdown/*.js",
      "!**/*.config.js"
    ]
  },
  "devDependencies": {
    "@babel/cli": "^7.24.1",
    "@babel/core": "^7.24.4",
    "@babel/preset-env": "^7.24.4",
    "@eslint/eslintrc": "^3.0.2",
    "@eslint/js": "^9.0.0",
    "axios": "^0.21.1",
    "babel-loader": "^9.1.3",
    "clone": "^2.1.2",
    "core-js": "^3.6.5",
    "coveralls": "^3.1.0",
    "cross-env": "^7.0.2",
    "dedent": "^0.7.0",
    "del-cli": "^3.0.1",
    "eslint": "^8.57.0",
    "eslint-config-standard": "^17.1.0",
    "eslint-plugin-import": "^2.29.1",
    "eslint-plugin-n": "^16.6.2",
    "eslint-plugin-promise": "^6.1.1",
    "express": "^4.17.1",
    "globals": "^15.0.0",
    "html-differ": "^1.4.0",
    "jest": "^26.4.2",
    "jest-environment-node-debug": "^2.0.0",
    "lerna": "^8.1.2",
    "mdast-util-to-hast": "^9.1.2",
    "rehype-stringify": "^8.0.0",
    "remark": "^12.0.1",
    "remark-footnotes": "^2.0.0",
    "remark-math": "^3.0.1",
    "remark-parse": "^8.0.3",
    "remark-rehype": "^7.0.0",
    "remark-stringify": "^8.1.1",
    "sync-request": "^6.1.0",
    "textr": "^0.3.0",
    "unified": "^9.2.0",
    "unist-util-visit": "^2.0.3",
    "webpack": "^5.88.2",
    "webpack-cli": "^5.1.4"
  },
  "scripts": {
    "pretest": "lerna run pretest --scope zmarkdown",
    "test": "cross-env DEST=/tmp jest",
    "lint": "eslint .",
    "posttest": "lerna run posttest --scope zmarkdown",
    "build": "lerna run build",
    "d": "node --inspect --debug-brk ./node_modules/.bin/jest --runInBand -i",
    "clean": "lerna clean --yes && del-cli node_modules && npm install && lerna run prepare && npm run test",
    "build-demo": "lerna run release --scope zmarkdown && del-cli ./packages/zmarkdown/public/js && cp -r ./packages/zmarkdown/client/dist ./packages/zmarkdown/public/js"
  },
  "engines": {
    "node": ">=18",
    "npm": ">=9"
  },
  "private": true,
  "name": "zmarkdown-meta",
  "dependencies": {
    "deepmerge": "^4.2.2",
    "hast-util-sanitize": "^3.0.0",
    "mdast-util-split-by-heading": "file:packages/mdast-util-split-by-heading",
    "rebber": "file:packages/rebber",
    "rebber-plugins": "file:packages/rebber-plugins",
    "rehype-footnotes-title": "file:packages/rehype-footnotes-title",
    "rehype-html-blocks": "file:packages/rehype-html-blocks",
    "rehype-postfix-footnote-anchors": "file:packages/rehype-postfix-footnote-anchors",
    "rehype-sanitize": "^4.0.0",
    "remark-abbr": "file:packages/remark-abbr",
    "remark-align": "file:packages/remark-align",
    "remark-captions": "file:packages/remark-captions",
    "remark-comments": "file:packages/remark-comments",
    "remark-custom-blocks": "file:packages/remark-custom-blocks",
    "remark-disable-tokenizers": "file:packages/remark-disable-tokenizers",
    "remark-emoticons": "file:packages/remark-emoticons",
    "remark-escape-escaped": "file:packages/remark-escape-escaped",
    "remark-fix-guillemets": "file:packages/remark-fix-guillemets",
    "remark-grid-tables": "file:packages/remark-grid-tables",
    "remark-heading-shift": "file:packages/remark-heading-shift",
    "remark-heading-trailing-spaces": "file:packages/remark-heading-trailing-spaces",
    "remark-iframes": "file:packages/remark-iframes",
    "remark-images-download": "file:packages/remark-images-download",
    "remark-kbd": "file:packages/remark-kbd",
    "remark-numbered-footnotes": "file:packages/remark-numbered-footnotes",
    "remark-ping": "file:packages/remark-ping",
    "remark-sub-super": "file:packages/remark-sub-super",
    "typographic-colon": "file:packages/typographic-colon",
    "typographic-em-dash": "file:packages/typographic-em-dash",
    "typographic-exclamation-mark": "file:packages/typographic-exclamation-mark",
    "typographic-guillemets": "file:packages/typographic-guillemets",
    "typographic-percent": "file:packages/typographic-percent",
    "typographic-permille": "file:packages/typographic-permille",
    "typographic-question-mark": "file:packages/typographic-question-mark",
    "typographic-semicolon": "file:packages/typographic-semicolon",
    "zmarkdown": "file:packages/zmarkdown"
  },
  "workspaces": [
    "packages/*"
  ]
}


================================================
FILE: packages/mdast-util-split-by-heading/LICENSE-MIT
================================================
Copyright (c) Zeste de Savoir (https://zestedesavoir.com)

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.


================================================
FILE: packages/mdast-util-split-by-heading/README.md
================================================
# mdast-util-split-by-heading [![Build Status][build-badge]][build-status] [![Coverage Status][coverage-badge]][coverage-status]


**mdast-util-split-by-heading** splits a markdown AST into several markdown ASTs based on their headings.

It is useful when you want to split a document with many headings into several documents, for instance one by chapter.

## Installation

[npm][]:

```bash
npm install mdast-util-split-by-heading
```

## Usage

```javascript
const unified = require('unified')
const parse = require('remark-parse')
const split = require('mdast-util-split-by-heading')

var tree = unified()
  .use(parse)
  .parse('# part\n\n## chapter \n\n Hello world \n\n # part *2*')

console.log(split(tree))
```

## API

### `split(node, options = { splitDepth: 1 })`

Splits a MDAST tree into separate trees by [heading depth](https://github.com/syntax-tree/mdast#heading).

#### `options.splitDepth = 1`

An integer greater or equal to 1 determining the heading depth you want to match when splitting.

## Examples:

```js
import dedent from 'dedent'
import unified from 'unified'
import reParse from 'remark-parse'
import split from 'mdast-util-split-by-heading'

const doSplit = (text, options) => {
  const { splitDepth = 1 } = options
  return split(
    unified().use(reParse).parse(text),
    { splitDepth: splitDepth }
  )
}

const text = dedent `
  a global introduction

  # hello

  a paragraph

  > a quote to *ensure this is parsed*

  ## a sub title

  other paragraph

  # conclusion title

  paragraph
  `

doSplit(text)
/*
{
  "introduction": {
    "type": "root",
    "children": [
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "a global introduction",
            "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": []
        }
      }
    ]
  },
  "trees": [
    {
      "title": {
        "type": "root",
        "children": {
          "type": "heading",
          "depth": 1,
          "children": [
            {
              "type": "text",
              "value": "hello",
              "position": {
                "start": {
                  "line": 3,
                  "column": 3,
                  "offset": 25
                },
                "end": {
                  "line": 3,
                  "column": 8,
                  "offset": 30
                },
                "indent": []
              }
            }
          ],
          "position": {
            "start": {
              "line": 3,
              "column": 1,
              "offset": 23
            },
            "end": {
              "line": 3,
              "column": 8,
              "offset": 30
            },
            "indent": []
          }
        }
      },
      "children": {
        "type": "root",
        "children": [
          {
            "type": "paragraph",
            "children": [
              {
                "type": "text",
                "value": "a paragraph",
                "position": {
                  "start": {
                    "line": 5,
                    "column": 1,
                    "offset": 32
                  },
                  "end": {
                    "line": 5,
                    "column": 12,
                    "offset": 43
                  },
                  "indent": []
                }
              }
            ],
            "position": {
              "start": {
                "line": 5,
                "column": 1,
                "offset": 32
              },
              "end": {
                "line": 5,
                "column": 12,
                "offset": 43
              },
              "indent": []
            }
          },
          {
            "type": "blockquote",
            "children": [
              {
                "type": "paragraph",
                "children": [
                  {
                    "type": "text",
                    "value": "a quote to ",
                    "position": {
                      "start": {
                        "line": 7,
                        "column": 3,
                        "offset": 47
                      },
                      "end": {
                        "line": 7,
                        "column": 14,
                        "offset": 58
                      },
                      "indent": []
                    }
                  },
                  {
                    "type": "emphasis",
                    "children": [
                      {
                        "type": "text",
                        "value": "ensure this is parsed",
                        "position": {
                          "start": {
                            "line": 7,
                            "column": 15,
                            "offset": 59
                          },
                          "end": {
                            "line": 7,
                            "column": 36,
                            "offset": 80
                          },
                          "indent": []
                        }
                      }
                    ],
                    "position": {
                      "start": {
                        "line": 7,
                        "column": 14,
                        "offset": 58
                      },
                      "end": {
                        "line": 7,
                        "column": 37,
                        "offset": 81
                      },
                      "indent": []
                    }
                  }
                ],
                "position": {
                  "start": {
                    "line": 7,
                    "column": 3,
                    "offset": 47
                  },
                  "end": {
                    "line": 7,
                    "column": 37,
                    "offset": 81
                  },
                  "indent": []
                }
              }
            ],
            "position": {
              "start": {
                "line": 7,
                "column": 1,
                "offset": 45
              },
              "end": {
                "line": 7,
                "column": 37,
                "offset": 81
              },
              "indent": []
            }
          },
          {
            "type": "heading",
            "depth": 2,
            "children": [
              {
                "type": "text",
                "value": "a sub title",
                "position": {
                  "start": {
                    "line": 9,
                    "column": 4,
                    "offset": 86
                  },
                  "end": {
                    "line": 9,
                    "column": 15,
                    "offset": 97
                  },
                  "indent": []
                }
              }
            ],
            "position": {
              "start": {
                "line": 9,
                "column": 1,
                "offset": 83
              },
              "end": {
                "line": 9,
                "column": 15,
                "offset": 97
              },
              "indent": []
            }
          },
          {
            "type": "paragraph",
            "children": [
              {
                "type": "text",
                "value": "other paragraph",
                "position": {
                  "start": {
                    "line": 11,
                    "column": 1,
                    "offset": 99
                  },
                  "end": {
                    "line": 11,
                    "column": 16,
                    "offset": 114
                  },
                  "indent": []
                }
              }
            ],
            "position": {
              "start": {
                "line": 11,
                "column": 1,
                "offset": 99
              },
              "end": {
                "line": 11,
                "column": 16,
                "offset": 114
              },
              "indent": []
            }
          }
        ]
      }
    },
    {
      "title": {
        "type": "root",
        "children": {
          "type": "heading",
          "depth": 1,
          "children": [
            {
              "type": "text",
              "value": "conclusion title",
              "position": {
                "start": {
                  "line": 13,
                  "column": 3,
                  "offset": 118
                },
                "end": {
                  "line": 13,
                  "column": 19,
                  "offset": 134
                },
                "indent": []
              }
            }
          ],
          "position": {
            "start": {
              "line": 13,
              "column": 1,
              "offset": 116
            },
            "end": {
              "line": 13,
              "column": 19,
              "offset": 134
            },
            "indent": []
          }
        }
      },
      "children": {
        "type": "root",
        "children": [
          {
            "type": "paragraph",
            "children": [
              {
                "type": "text",
                "value": "paragraph",
                "position": {
                  "start": {
                    "line": 15,
                    "column": 1,
                    "offset": 136
                  },
                  "end": {
                    "line": 15,
                    "column": 10,
                    "offset": 145
                  },
                  "indent": []
                }
              }
            ],
            "position": {
              "start": {
                "line": 15,
                "column": 1,
                "offset": 136
              },
              "end": {
                "line": 15,
                "column": 10,
                "offset": 145
              },
              "indent": []
            }
          }
        ]
      }
    }
  ]
}
*/
```

## License

[MIT][license] © [Zeste de Savoir][zds]

<!-- Definitions -->

[build-badge]: https://img.shields.io/travis/zestedesavoir/zmarkdown.svg

[build-status]: https://travis-ci.org/zestedesavoir/zmarkdown

[coverage-badge]: https://img.shields.io/coveralls/zestedesavoir/zmarkdown.svg

[coverage-status]: https://coveralls.io/github/zestedesavoir/zmarkdown

[license]: https://github.com/zestedesavoir/zmarkdown/blob/master/packages/rebber/LICENSE-MIT

[rebber-plugins]: https://github.com/zestedesavoir/zmarkdown/blob/master/packages/rebber-plugins

[zds]: https://zestedesavoir.com

[npm]: https://www.npmjs.com/package/rebber

[mdast]: https://github.com/syntax-tree/mdast/blob/master/readme.md

[remark]: https://github.com/remarkjs/remark


================================================
FILE: packages/mdast-util-split-by-heading/__tests__/index.js
================================================
import dedent from 'dedent'
import unified from 'unified'
import reParse from 'remark-parse'
import split from '../src'

const doSplit = (text, {splitDepth = 1,
  introductionAsProperty = true, conclusionAsProperty = false}) => {
  return split(unified().use(reParse).parse(text), {
    splitDepth: splitDepth,
    conclusionAsProperty: conclusionAsProperty})
}

const text = dedent `
  a global introduction

  # hello

  a paragraph

  > a quote to *ensure this is parsed*

  ## a sub title

  other paragraph

  # conclusion title

  paragraph
  `

test('default parameter with canonical text', () => {
  const result = doSplit(text, {})
  expect(result.introduction).toMatchObject({
    type: 'root',
    children: [
      {
        type: 'paragraph',
        children: [
          {
            type: 'text',
            value: 'a global introduction',
          },
        ],
      },
    ],
  })
  expect(result.trees.length).toBe(2)
  expect(result.conclusion).toBeFalsy()
  expect(result.trees[0].children).toMatchObject({
    type: 'root',
    children: [
      {
        type: 'paragraph',
        children: [
          {
            type: 'text',
            value: 'a paragraph',
          },
        ],
      },
      {
        type: 'blockquote',
        children: [
          {
            type: 'paragraph',
            children: [
              {
                type: 'text',
                value: 'a quote to ',
              },
              {
                type: 'emphasis',
                children: [
                  {
                    type: 'text',
                    value: 'ensure this is parsed',
                  },
                ],
              },
            ],
          },
        ],
      },
      {
        type: 'heading',
        depth: 2,
        children: [
          {
            type: 'text',
            value: 'a sub title',
          },
        ],
      },
      {
        type: 'paragraph',
        children: [
          {
            type: 'text',
            value: 'other paragraph',
          },
        ],
      },
    ],
  })
  expect(result.trees[1].children).toMatchObject({
    type: 'root',
    children: [
      {
        type: 'paragraph',
        children: [
          {
            type: 'text',
            value: 'paragraph',
          },
        ],
      },
    ],
  })
})

test('no heading', () => {
  const headingStripped = text.replace(/#/g, '')
  const result = doSplit(headingStripped, {})
  expect(result.trees).toHaveLength(0)
  expect(result.introduction.type).toBe('root')
})

test('split level 2 titles', () => {
  const result = doSplit(text, {splitDepth: 2})
  expect(result.trees.length).toBe(1)
  expect(result.trees[0].children).toMatchObject({
    type: 'root',
    children: [
      {
        type: 'paragraph',
        children: [
          {
            type: 'text',
            value: 'other paragraph',
          },
        ],
      },
      {
        type: 'heading',
        depth: 1,
        children: [
          {
            type: 'text',
            value: 'conclusion title',
          },
        ],
      },
      {
        type: 'paragraph',
        children: [
          {
            type: 'text',
            value: 'paragraph',
          },
        ],
      },
    ],
  })
})


================================================
FILE: packages/mdast-util-split-by-heading/dist/index.js
================================================
"use strict";

const visit = require('unist-util-visit');
module.exports = splitAtDepth;
function splitAtDepth(tree, {
  splitDepth = 1
}) {
  const splitter = new Splitter(splitDepth);
  visit(tree, null, (node, index, parent) => splitter.visit(node, index, parent));
  return {
    introduction: splitter.introduction,
    trees: splitter.subTrees
  };
}
function newRootTree(children = []) {
  return {
    type: 'root',
    children
  };
}
class Splitter {
  constructor(depth = 1) {
    this.lastIndex = -1;
    this.subTrees = [];
    this.depth = depth;
    this.introduction = newRootTree();
  }
  visit(node, index, parent) {
    if (!parent) {
      // we are at the root
      return;
    }
    if (node.type === 'heading' && node.depth === this.depth) {
      this.lastIndex = index;
      const subtree = {
        title: newRootTree(node),
        children: newRootTree()
      };
      this.subTrees.push(subtree);
    } else if (parent.type === 'root' && this.lastIndex === -1) {
      this.introduction.children.push(node);
    } else if (parent.type === 'root') {
      this.subTrees[this.subTrees.length - 1].children.children.push(node);
    }
  }
}

================================================
FILE: packages/mdast-util-split-by-heading/package.json
================================================
{
  "name": "mdast-util-split-by-heading",
  "version": "1.1.2",
  "description": "Split MDAST into subtrees relying on the header hierarchy.",
  "repository": "https://github.com/zestedesavoir/zmarkdown/tree/master/packages/mdast-util-split-by-heading",
  "author": "François (artragis) Dambrine  <perso@francoisdambrine.me>",
  "contributors": [],
  "scripts": {
    "pretest": "eslint .",
    "build": "babel --root-mode upward --delete-dir-on-start --env-name production --out-dir dist src",
    "test": "jest",
    "coverage": "jest --coverage"
  },
  "main": "dist/index.js",
  "files": [
    "LICENSE-MIT",
    "dist",
    "src",
    "README.md"
  ],
  "keywords": [
    "mdast"
  ],
  "license": "MIT",
  "dependencies": {
    "unist-util-visit": "^2.0.3"
  }
}


================================================
FILE: packages/mdast-util-split-by-heading/src/index.js
================================================
const visit = require('unist-util-visit')

module.exports = splitAtDepth

function splitAtDepth (tree, { splitDepth = 1 }) {
  const splitter = new Splitter(splitDepth)

  visit(tree, null, (node, index, parent) => splitter.visit(node, index, parent))

  return {
    introduction: splitter.introduction,
    trees: splitter.subTrees
  }
}

function newRootTree (children = []) {
  return {
    type: 'root',
    children
  }
}

class Splitter {
  constructor (depth = 1) {
    this.lastIndex = -1
    this.subTrees = []
    this.depth = depth
    this.introduction = newRootTree()
  }

  visit (node, index, parent) {
    if (!parent) {
      // we are at the root
      return
    }

    if (node.type === 'heading' && node.depth === this.depth) {
      this.lastIndex = index
      const subtree = {
        title: newRootTree(node),
        children: newRootTree()
      }
      this.subTrees.push(subtree)
    } else if (parent.type === 'root' && this.lastIndex === -1) {
      this.introduction.children.push(node)
    } else if (parent.type === 'root') {
      this.subTrees[this.subTrees.length - 1].children.children.push(node)
    }
  }
}


================================================
FILE: packages/rebber/LICENSE-MIT
================================================
Copyright (c) Zeste de Savoir (https://zestedesavoir.com)

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.


================================================
FILE: packages/rebber/README.md
================================================
# rebber [![Build Status][build-badge]][build-status] [![Coverage Status][coverage-badge]][coverage-status]


**rebber** is a LaTeX stringifier for [remark][]

## remark-rebber version compatibility

Starting from version 8.0.0, `remark` dropped support for footnotes; hence, `rebber` also dropped it's support starting from version 6.0.0.

Therefore, we have the following compatibility table for remark-rebber versions:

| remark  | rebber  |
| ------- | ------- |
| < 8.0.0 | < 6.0.0 |
| > 8.0.0 |   any   |

## Installation

[npm][]:

```bash
npm install rebber
```

## Usage

```javascript
const unified = require('unified')
const remarkParser = require('remark-parse')
const rebber = require('rebber')

const {contents} = unified()
  .use(remarkParser)
  .use(rebber)
  .processSync('### foo')

console.log(contents);
```

Yields:

```latex
\section{foo}
```

## API

### `toLaTeX(node[, options])`

Stringify the given [MDAST node][mdast].


#### `options.overrides`

Overrides are named that way because they can override any MDAST node type to latex stringifier. Their other use is to use custom latex stringifier for custom MDAST node type.

Examples:

```js
const {contents} = unified()
  .use(remarkParser)
  .use(remarkFoobarElementsParser) // creates MDAST nodes of type 'foobar'
  .use(rebber, {
    overrides: {
      // override rebber's method to turn MDAST link nodes into latex
      link: require('./your-own-link-latexifier')
      // tell rebber what to use to turn MDAST foobar nodes into latex
      foobar: require('./your-foobar-latexifier')
    }
  })

```

#### `options.<mdastNodeType>`

[MDAST nodes][mdast] are stringified to LaTeX using sensible default LaTeX commands. However, you can customize most of the LaTeX command corresponding to MDAST nodes. Here are documented the function signatures of these customizable commands. Note that the keys of the `options` object are named after the corresponding MDAST node type.

For example, by default, `![](/foo.png)` will get compiled to `\includegraphics{/foo.png}`.

Setting
```js
options.image = (node) => `[inserted image located at "${node.url}"]`
```

will stringify our example Markdown to `[inserted image located at "/foo.png"]` instead of `\includegraphics{/foo.png}`.

###### `options.blockquote`

    (text) => ``,

###### `options.break`

    () => ``,

###### `options.code`

    (textCode, lang) => ``,

###### `options.definition`

    (options, identifier, url, title) => ``,

###### `options.footnote`

    (identifier, text, protect) => ``,

###### `options.footnoteDefinition`

    (identifier, text) => ``,

###### `options.footnoteReference`

    (identifier) => ``,

###### `options.headings`

    [
      (text) => ``, // level 1 heading
      (text) => ``, // level 2 heading
      (text) => ``, // level 3 heading
      (text) => ``, // level 4 heading
      (text) => ``, // level 5 heading
      (text) => ``, // level 6 heading
      (text) => ``, // level 7 heading
    ],

###### `options.image`

    (node) => ``,

###### `options.link`

    (displayText, url, title) => ``,

###### `options.linkReference`

    (reference, content) => ``,

###### `options.list`

    (content, isOrdered) => ``,

###### `options.listItem`

    (content) => ``,

###### `options.text`

    (text) => ``,

###### `options.thematicBreak`

    () => ``,

###### `options.table`

    (ctx, node) => ``,

Table stringification can be configured with some advanced options:

###### `options.tableEnvName`

    `longtblr`

Name of the environment to be used for tables.
Allows defining custom environments in LaTeX with `\NewTblrEnviron`.
To ensure a flexible rendering, the `longtblr` environment is used by default.

###### `options.headerCounter: (node) => 1`

    (tableRows) => 1

Function that counts the number of header rows (rows that should be emphasized).

###### `options.headerProperties`

    `font=\bfseries`

LaTeX properties added to header rows, follows the syntax of the underlying LaTeX package.

###### `options.headerParse`

    (tableRows) => ``

Function that computes the "latex header" part of the table environment, this generates strings such as `|c|c|r|`.
It gets an array of all the `tableRow` [mdast] nodes for the table as argument.
Default function extracts the number of columns for each row and uses the `X[-1]` handler ("find the best available width").
The result for a 3 column-table is `|X[-1]|X[-1]|X[-1]|`.


## Related

*   [`rebber-plugins`][rebber-plugins]
    - A collection of rebber plugins able to stringify custom Remark node types.

## License

[MIT][license] © [Zeste de Savoir][zds]

<!-- Definitions -->

[build-badge]: https://img.shields.io/travis/zestedesavoir/zmarkdown.svg

[build-status]: https://travis-ci.org/zestedesavoir/zmarkdown

[coverage-badge]: https://img.shields.io/coveralls/zestedesavoir/zmarkdown.svg

[coverage-status]: https://coveralls.io/github/zestedesavoir/zmarkdown

[license]: https://github.com/zestedesavoir/zmarkdown/blob/master/packages/rebber/LICENSE-MIT

[rebber-plugins]: https://github.com/zestedesavoir/zmarkdown/blob/master/packages/rebber-plugins

[zds]: https://zestedesavoir.com

[npm]: https://www.npmjs.com/package/rebber

[mdast]: https://github.com/syntax-tree/mdast/blob/master/readme.md

[remark]: https://github.com/remarkjs/remark


================================================
FILE: packages/rebber/__tests__/__snapshots__/mdast.tests.js.snap
================================================
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`rebber: remark specs amps-and-angles-encoding: amps-and-angles-encoding 1`] = `
"AT\\\\&T has an ampersand in their name.



AT\\\\&T is another way to write it.



This \\\\& that.



4 < 5.



6 > 5.



Here's a \\\\hyperref[1]{link} with an ampersand in the URL.



Here's a link with an amersand in the link text: \\\\hyperref[2]{AT\\\\&T}.



Here's an inline \\\\externalLink{link}{/script?foo=1\\\\&bar=2}.



Here's an inline \\\\externalLink{link}{/script?foo=1\\\\&bar=2}.



\\\\footnote{\\\\label{1}\\\\externalLink{http://example.com/?foo=1\\\\&bar=2}{http://example.com/?foo=1\\\\&bar=2}}

\\\\footnote{\\\\label{2}\\\\externalLink{http://att.com/}{http://att.com/}}"
`;

exports[`rebber: remark specs auto-link: auto-link 1`] = `
"Link: \\\\externalLink{http://example.com/}{http://example.com/}.



Link to an email: \\\\externalLink{somename@example.com}{mailto:somename@example.com}.



Link to an email: \\\\externalLink{somename@example.com}{mailto:somename@example.com}.



With an ampersand: \\\\externalLink{http://example.com/?foo=1\\\\&bar=2}{http://example.com/?foo=1\\\\&bar=2}



\\\\begin{itemize}
\\\\item\\\\relax In a list?
\\\\item\\\\relax \\\\externalLink{http://example.com/}{http://example.com/}
\\\\item\\\\relax It should.
\\\\end{itemize}


\\\\begin{Quotation}
Blockquoted: \\\\externalLink{http://example.com/}{http://example.com/}
\\\\end{Quotation}



Auto-links should not occur here: \\\\texttt{<http://example.com/>}



\\\\begin{CodeBlock}{text}
or here: <http://example.com/>
\\\\end{CodeBlock}"
`;

exports[`rebber: remark specs auto-link-invalid: auto-link-invalid 1`] = `
"<http:/



<https:/



<mailto:foobarbaz>



<http:/google



<foo@"
`;

exports[`rebber: remark specs auto-link-lines: auto-link-lines 1`] = `
"hello world
\\\\externalLink{http://example.com}{http://example.com}



hello world
\\\\externalLink{somename@example.com}{mailto:somename@example.com}"
`;

exports[`rebber: remark specs auto-link-output: auto-link-output 1`] = `
"Link: \\\\externalLink{http://example.com/}{http://example.com/}.



Link to an email: \\\\externalLink{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: \\\\externalLink{google.com}{google.com}."
`;

exports[`rebber: remark specs auto-link-url: auto-link-url 1`] = `
"This should be a link: \\\\externalLink{http://example.com/hello-world}{http://example.com/hello-world}.



Also, subdomain should be a part of the link (\\\\externalLink{http://foo.example.com/(hello[world])}{http://foo.example.com/(hello[world])}).



So should this: \\\\externalLink{foo@bar.com}{mailto:foo@bar.com}."
`;

exports[`rebber: remark specs auto-link-url-invalid: auto-link-url-invalid 1`] = `
"http://<example



https:// foo bar baz.



mailto:.



http://,



https://:



mailto:;



http://\\"



https://'



mailto:)



http://]"
`;

exports[`rebber: remark specs backslash-escapes: backslash-escapes 1`] = `
"These should all get escaped:



Backslash: \\\\textbackslash{}



Backtick: \`



Asterisk: *



Underscore: \\\\_



Left brace: \\\\{



Right brace: \\\\}



Left bracket: [



Right bracket: ]



Left paren: (



Right paren: )



Greater-than: >



Hash: \\\\#



Period: .



Bang: !



Plus: +



Minus: -



\\\\textbf{GFM:}



Pipe: |



Tilde: \\\\textasciitilde{}



\\\\textbf{Commonmark:}



Quote: \\\\textbackslash{}\\"



Dollar: \\\\textbackslash{}\\\\$



Percentage: \\\\textbackslash{}\\\\%



Ampersand: \\\\textbackslash{}\\\\&



Single quote: \\\\textbackslash{}'



Comma: \\\\textbackslash{},



Forward slash: \\\\textbackslash{}/



Colon: \\\\textbackslash{}:



Semicolon: \\\\textbackslash{};



Less-than: \\\\textbackslash{}<



Equals: \\\\textbackslash{}=



Question mark: \\\\textbackslash{}?



At-sign: \\\\textbackslash{}@



Caret: \\\\textbackslash{}\\\\textasciicircum{}



New line: \\\\textbackslash{}
only works in paragraphs.



These should not, because they occur within a code block:



\\\\begin{CodeBlock}{text}
Backslash: \\\\\\\\

Backtick: \\\\\`

Asterisk: \\\\*

Underscore: \\\\_

Left brace: \\\\{

Right brace: \\\\}

Left bracket: \\\\[

Right bracket: \\\\]

Left paren: \\\\(

Right paren: \\\\)

Greater-than: \\\\>

Hash: \\\\#

Period: \\\\.

Bang: \\\\!

Plus: \\\\+

Minus: \\\\-
\\\\end{CodeBlock}



\\\\textbf{GFM:}



\\\\begin{CodeBlock}{text}
Pipe: \\\\|

Tilde: \\\\~
\\\\end{CodeBlock}



\\\\textbf{Commonmark:}



\\\\begin{CodeBlock}{text}
Quote: \\\\\\"

Dollar: \\\\$

Percentage: \\\\%

Ampersand: \\\\&

Single quote: \\\\'

Comma: \\\\,

Forward slash: \\\\/

Colon: \\\\:

Semicolon: \\\\;

Less-than: \\\\<

Equals: \\\\=

Question mark: \\\\?

At-sign: \\\\@

Caret: \\\\^

New line: \\\\
only works in paragraphs.
\\\\end{CodeBlock}



Nor should these, which occur in code spans:



Backslash: \\\\texttt{\\\\textbackslash{}\\\\textbackslash{}}



Backtick: \\\\texttt{\\\\textbackslash{}\`}



Asterisk: \\\\texttt{\\\\textbackslash{}*}



Underscore: \\\\texttt{\\\\textbackslash{}\\\\_}



Left brace: \\\\texttt{\\\\textbackslash{}\\\\{}



Right brace: \\\\texttt{\\\\textbackslash{}\\\\}}



Left bracket: \\\\texttt{\\\\textbackslash{}[}



Right bracket: \\\\texttt{\\\\textbackslash{}]}



Left paren: \\\\texttt{\\\\textbackslash{}(}



Right paren: \\\\texttt{\\\\textbackslash{})}



Greater-than: \\\\texttt{\\\\textbackslash{}>}



Hash: \\\\texttt{\\\\textbackslash{}\\\\#}



Period: \\\\texttt{\\\\textbackslash{}.}



Bang: \\\\texttt{\\\\textbackslash{}!}



Plus: \\\\texttt{\\\\textbackslash{}+}



Minus: \\\\texttt{\\\\textbackslash{}-}



\\\\textbf{GFM:}



Pipe: \\\\texttt{\\\\textbackslash{}|}



Tilde: \\\\texttt{\\\\textbackslash{}\\\\textasciitilde{}}



\\\\textbf{Commonmark:}



Quote: \\\\texttt{\\\\textbackslash{}\\"}



Dollar: \\\\texttt{\\\\textbackslash{}\\\\$}



Percentage: \\\\texttt{\\\\textbackslash{}\\\\%}



Ampersand: \\\\texttt{\\\\textbackslash{}\\\\&}



Single quote: \\\\texttt{\\\\textbackslash{}'}



Comma: \\\\texttt{\\\\textbackslash{},}



Forward slash: \\\\texttt{\\\\textbackslash{}/}



Colon: \\\\texttt{\\\\textbackslash{}:}



Semicolon: \\\\texttt{\\\\textbackslash{};}



Less-than: \\\\texttt{\\\\textbackslash{}<}



Equals: \\\\texttt{\\\\textbackslash{}=}



Question mark: \\\\texttt{\\\\textbackslash{}?}



At-sign: \\\\texttt{\\\\textbackslash{}@}



Caret: \\\\texttt{\\\\textbackslash{}\\\\textasciicircum{}}



New line: \\\\texttt{\\\\textbackslash{} } only works in paragraphs.



These should get escaped, even though they're matching pairs for
other Markdown constructs:



*asterisks*



\\\\_underscores\\\\_



\`backticks\`



This is a code span with a literal backslash-backtick sequence: \\\\texttt{\\\\textbackslash{}\`}



This is a tag with unescaped backticks <span attr='\`ticks\`'>bar</span>.



This is a tag with backslashes <span attr='\\\\\\\\backslashes\\\\\\\\'>bar</span>."
`;

exports[`rebber: remark specs block-elements: block-elements 1`] = `
"\\\\begin{itemize}
\\\\item\\\\relax Different lists should receive two newline characters
between them.
\\\\end{itemize}



\\\\begin{itemize}
\\\\item\\\\relax This is another list.
\\\\end{itemize}


\\\\begin{Quotation}
\\\\begin{itemize}
\\\\item\\\\relax The same goes for lists in block quotes.
\\\\end{itemize}
\\\\begin{itemize}
\\\\item\\\\relax This is another list.
\\\\end{itemize}
\\\\end{Quotation}



\\\\begin{itemize}
\\\\item\\\\relax And for lists in lists:

\\\\begin{enumerate}
\\\\item\\\\relax First sublist.
\\\\end{enumerate}
\\\\end{itemize}



\\\\begin{CodeBlock}{text}
1.   Second sublist.
\\\\end{CodeBlock}



And for lists followed by indented code blocks:



\\\\begin{itemize}
\\\\item\\\\relax This is a paragraph in a list
\\\\end{itemize}



\\\\begin{CodeBlock}{text}
And this is code();
\\\\end{CodeBlock}"
`;

exports[`rebber: remark specs blockquote-indented: blockquote-indented 1`] = `
"\\\\begin{Quotation}
bar
baz
\\\\end{Quotation}"
`;

exports[`rebber: remark specs blockquote-lazy-code: blockquote-lazy-code 1`] = `
"\\\\begin{Quotation}
\\\\begin{CodeBlock}{text}
foo
bar
\\\\end{CodeBlock}
\\\\end{Quotation}"
`;

exports[`rebber: remark specs blockquote-lazy-fence: blockquote-lazy-fence 1`] = `
"\\\\begin{Quotation}
\\\\begin{CodeBlock}{text}
aNormalCodeBlockInABlockqoute();
\\\\end{CodeBlock}
\\\\end{Quotation}



A paragraph.



\\\\begin{Quotation}
\\\\begin{CodeBlock}{text}
thisIsAlsoSomeCodeInABlockquote();
\\\\end{CodeBlock}
\\\\end{Quotation}



A paragraph.



\\\\begin{Quotation}
\\\\begin{CodeBlock}{text}
aNonTerminatedCodeBlockInABlockquote();
\\\\end{CodeBlock}

aNewCodeBlockFollowingTheBlockQuote();

\\\\begin{CodeBlock}{text}

\\\\end{CodeBlock}
\\\\end{Quotation}



A paragraph.



\\\\begin{Quotation}
Something in a blockquote.

\\\\begin{CodeBlock}{text}
aNewCodeBlock();
\\\\end{CodeBlock}
\\\\end{Quotation}"
`;

exports[`rebber: remark specs blockquote-lazy-list: blockquote-lazy-list 1`] = `
"\\\\begin{Quotation}
This is a blockquote.

\\\\begin{itemize}
\\\\item\\\\relax And in normal mode this is an internal list, but in commonmark this is a top level list.
\\\\end{itemize}
\\\\end{Quotation}"
`;

exports[`rebber: remark specs blockquote-lazy-rule: blockquote-lazy-rule 1`] = `
"\\\\begin{Quotation}
This is a blockquote. Followed by a rule.

\\\\horizontalLine
\\\\end{Quotation}"
`;

exports[`rebber: remark specs blockquote-list-item: blockquote-list-item 1`] = `
"This fails in markdown.pl and upskirt:



\\\\begin{itemize}
\\\\item\\\\relax hello

\\\\begin{Quotation}
world
\\\\end{Quotation}
\\\\end{itemize}"
`;

exports[`rebber: remark specs blockquotes: blockquotes 1`] = `
"\\\\begin{Quotation}
This is a blockquote.
\\\\end{Quotation}



\\\\begin{Quotation}
This is, in commonmark mode, another blockquote.
\\\\end{Quotation}"
`;

exports[`rebber: remark specs blockquotes-empty-lines: blockquotes-empty-lines 1`] = `
"\\\\begin{Quotation}
Note there is no space on the following line.

Note there is no space on the preceding line.
\\\\end{Quotation}"
`;

exports[`rebber: remark specs blockquotes-with-code-blocks: blockquotes-with-code-blocks 1`] = `
"\\\\begin{Quotation}
Example:

\\\\begin{CodeBlock}{text}
sub status {
    print \\"working\\";
}
\\\\end{CodeBlock}

Or:

\\\\begin{CodeBlock}{text}
sub status {
    return \\"working\\";
}
\\\\end{CodeBlock}
\\\\end{Quotation}"
`;

exports[`rebber: remark specs bom: bom 1`] = `
"\\\\part{Hello from a BOM}


Be careful when editing this file!"
`;

exports[`rebber: remark specs breaks-hard: breaks-hard 1`] = `
"These are not breaks:



Look at the
pretty line
breaks.



These are breaks:



Look at the \\\\\\\\
pretty line \\\\\\\\
breaks.



In \\\\texttt{commonmark: true} mode, an escaped newline character is exposed as a \\\\texttt{break} node:



Look at the\\\\textbackslash{}
pretty line\\\\textbackslash{}
breaks."
`;

exports[`rebber: remark specs case-insensitive-refs: case-insensitive-refs 1`] = `
"\\\\hyperref[hi]{hi}



\\\\footnote{\\\\label{hi}\\\\externalLink{/url}{/url}}"
`;

exports[`rebber: remark specs code-block: code-block 1`] = `
"Tildes:



\\\\begin{CodeBlock}{javascript}
alert('Hello World!');
\\\\end{CodeBlock}"
`;

exports[`rebber: remark specs code-block-escape: code-block-escape 1`] = `
"A little flaw:



\\\\begin{CodeBlock}{python}


\\\\end{CodeBlock}



An ingenuous flaw:



\\\\begin{CodeBlock}{text}

\\\\input{/etc/passwd}
\\\\begin{CodeBlock}{text}
\\\\end{CodeBlock}"
`;

exports[`rebber: remark specs code-block-indentation: code-block-indentation 1`] = `
"Fenced code blocks are normally not exdented, however,
when the initial fence is indented by spaces, the value of
the code is exdented by up to that amount of spaces.



\\\\begin{CodeBlock}{text}
    This is a code block...
        
    ...which is not exdented.
\\\\end{CodeBlock}



But...



\\\\begin{CodeBlock}{text}
  This one...
      
  ...is.
\\\\end{CodeBlock}



And...



\\\\begin{CodeBlock}{text}
So is this...
      
  ...one.
\\\\end{CodeBlock}"
`;

exports[`rebber: remark specs code-block-nesting-bug: code-block-nesting-bug 1`] = `
"GitHub, thus RedCarpet, has a bug where “nested” fenced code blocks,
even with shorter fences, can exit their actual “parent” block.



Note that this bug does not occur on indented code-blocks.



\\\\begin{CodeBlock}{foo}
\`\`\`bar
baz
\`\`\`
\\\\end{CodeBlock}



Even with a different fence marker:



\\\\begin{CodeBlock}{foo}
~~~bar
baz
~~~
\\\\end{CodeBlock}



And reversed:



\\\\begin{CodeBlock}{foo}
~~~bar
baz
~~~
\\\\end{CodeBlock}



\\\\begin{CodeBlock}{foo}
\`\`\`bar
baz
\`\`\`
\\\\end{CodeBlock}"
`;

exports[`rebber: remark specs code-blocks: code-blocks 1`] = `
"code block on the first line



Regular text.



\\\\begin{CodeBlock}{text}
code block indented by spaces
\\\\end{CodeBlock}



Regular text.



\\\\begin{CodeBlock}{text}
the lines in this block  
all contain trailing spaces  
\\\\end{CodeBlock}



Regular Text.



\\\\begin{CodeBlock}{text}
code block on the last line
\\\\end{CodeBlock}"
`;

exports[`rebber: remark specs code-spans: code-spans 1`] = `
"\\\\texttt{<test a=\\"} content of attribute \\\\texttt{\\">}



Fix for backticks within HTML tag: <span attr='\`ticks\`'>like this</span>



Here's how you put \\\\texttt{\`backticks\`} in a code span.



Additionally, empty code spans are NOT supported: \`\`.



Here’s an example, \\\\texttt{foo \` bar }.



And here, \\\\texttt{\`\`}.



\\\\texttt{// this is also inline code}



So is this \\\\texttt{foo bar baz}.



And this \\\\texttt{foo \`\` bar}



And \\\\texttt{this\\\\textbackslash{}}but this is text\`."
`;

exports[`rebber: remark specs def-blocks: def-blocks 1`] = `
"\\\\begin{Quotation}
hello

\\\\footnote{\\\\label{1}\\\\externalLink{hello}{hello}}
\\\\end{Quotation}



\\\\horizontalLine



\\\\begin{Quotation}
hello
\\\\end{Quotation}



\\\\footnote{\\\\label{2}\\\\externalLink{hello}{hello}}

\\\\begin{itemize}
\\\\item\\\\relax hello
\\\\item\\\\relax \\\\footnote{\\\\label{3}\\\\externalLink{hello}{hello}}
\\\\end{itemize}



\\\\begin{itemize}
\\\\item\\\\relax hello
\\\\end{itemize}


\\\\footnote{\\\\label{4}\\\\externalLink{hello}{hello}}

\\\\begin{Quotation}
foo
bar
\\\\end{Quotation}



\\\\footnote{\\\\label{1-1}\\\\externalLink{foo}{foo}}

\\\\begin{Quotation}
bar
\\\\end{Quotation}"
`;

exports[`rebber: remark specs definition-newline: definition-newline 1`] = `
"\\\\hyperref[baz]{baz}: /url (
)



[foo]: /url \\"
\\"



[bar]: /url '
'



\\\\footnote{\\\\label{baz}\\\\externalLink{/url}{/url}}

\\\\footnote{\\\\label{baz-1}\\\\externalLink{/url}{/url}}

\\\\footnote{\\\\label{baz-1-1}\\\\externalLink{/url}{/url}}

\\\\hyperref[baz]{baz}: /url 'foo"
`;

exports[`rebber: remark specs definition-unclosed: definition-unclosed 1`] = `
"[foo]:



\\\\footnote{\\\\label{bar}\\\\externalLink{</url}{</url}}

[foo]:"
`;

exports[`rebber: remark specs definition-unclosed-attribute: definition-unclosed-attribute 1`] = `
"[baz]: /url (there



[foo]: /url \\"there



[bar]: /url 'there



[baz]: url (



[foo]: url \\"



[bar]: /url '



[baz]: <url>(



[foo]: <url>\\"



[bar]: <url>'"
`;

exports[`rebber: remark specs deletion: deletion 1`] = `"hello \\\\sout{hi} world"`;

exports[`rebber: remark specs double-link: double-link 1`] = `
"<p>Already linked: <a href=\\"http://example.com/\\">http://example.com/</a>.</p>

Already linked: \\\\externalLink{http://example.com/}{http://example.com/}.



Already linked: <a href=\\"http://example.com/\\">\\\\textbf{http://example.com/}</a>."
`;

exports[`rebber: remark specs emphasis: emphasis 1`] = `
"\\\\textit{emphasis}.



\\\\textbf{strong}."
`;

exports[`rebber: remark specs emphasis-empty: emphasis-empty 1`] = `
"Hello ** ** world.



Hello \\\\_\\\\_	\\\\_\\\\_ world.



Hello *	* world.



Hello \\\\_	\\\\_ world."
`;

exports[`rebber: remark specs emphasis-escaped-final-marker: emphasis-escaped-final-marker 1`] = `
"*bar*



**bar**



\\\\_bar\\\\_



\\\\_\\\\_bar\\\\_\\\\_"
`;

exports[`rebber: remark specs emphasis-internal: emphasis-internal 1`] = `"These words should\\\\_not\\\\_be\\\\_emphasized."`;

exports[`rebber: remark specs empty: empty 1`] = `""`;

exports[`rebber: remark specs entities: entities 1`] = `
"Lots of entities are supported in mdast:  , \\\\&, ©, Æ,
Ď, ¾, ℋ, ⅆ,
∲, \\\\&c.  Even some entities with a missing
terminal semicolon are parsed correctly (as per the HTML5 spec):
ÿ, á, ©, and \\\\&.



However, \\\\&MadeUpEntities; are kept in the document.



Entities even work in the language flag of fenced code blocks:



\\\\begin{CodeBlock}{some—language}
alert('Hello');
\\\\end{CodeBlock}



Or in \\\\externalLink{línks}{\\\\textasciitilde{}/some—file}



Or in \\\\includegraphics{~/an–image.png}



But, entities are not interpreted in \\\\texttt{inline c\\\\&ouml;de}, or in
code blocks:



\\\\begin{CodeBlock}{text}
C&Ouml;DE block.
\\\\end{CodeBlock}"
`;

exports[`rebber: remark specs entities-advanced: entities-advanced 1`] = `
"\\\\begin{Quotation}
However, \\\\&MadeUpEntities; are kept in the document.
\\\\end{Quotation}



\\\\begin{Quotation}
Entities even work in the language flag of fenced code blocks:
\\\\end{Quotation}



\\\\begin{Quotation}
\\\\begin{CodeBlock}{some©language}
alert('Hello');
\\\\end{CodeBlock}
\\\\end{Quotation}



\\\\begin{Quotation}
And in an auto-link: \\\\externalLink{http://example©xample.com}{http://example\\\\&copyxample.com}
\\\\end{Quotation}



\\\\begin{Quotation}
Foo and bar and http://example©xample.com and baz.
\\\\end{Quotation}



\\\\begin{Quotation}
Or in \\\\externalLink{l©nks}{\\\\textasciitilde{}/some\\\\&copyfile}
\\\\end{Quotation}



\\\\begin{Quotation}
Or in \\\\externalLink{l©lnks}{\\\\textasciitilde{}/some\\\\&copyfile}
\\\\end{Quotation}



\\\\begin{Quotation}
Or in \\\\includegraphics{~/some&copyfile}
\\\\end{Quotation}



\\\\horizontalLine



\\\\begin{Quotation}
Or in \\\\includegraphics{~/some&copyfile}
\\\\end{Quotation}



\\\\begin{Quotation}
Or in \\\\includegraphics{undefined}
\\\\end{Quotation}



\\\\begin{Quotation}
\\\\footnote{\\\\label{1}\\\\externalLink{http://example\\\\&copyxample.com}{http://example\\\\&copyxample.com}}
\\\\end{Quotation}



\\\\begin{Quotation}
\\\\footnote{\\\\label{ 1 }\\\\externalLink{http://example\\\\&copyxample.com}{http://example\\\\&copyxample.com}}
\\\\end{Quotation}



\\\\horizontalLine



\\\\begin{Quotation}
But, entities are not interpreted in \\\\texttt{inline c\\\\&oumlde}, or in
code blocks:
\\\\end{Quotation}



\\\\begin{Quotation}
\\\\begin{CodeBlock}{text}
C&OumlDE block.
\\\\end{CodeBlock}
\\\\end{Quotation}"
`;

exports[`rebber: remark specs escaped-angles: escaped-angles 1`] = `">"`;

exports[`rebber: remark specs fenced-code: fenced-code 1`] = `
"\\\\begin{CodeBlock}{js}
var a = 'hello';
console.log(a + ' world');
\\\\end{CodeBlock}



\\\\begin{CodeBlock}{bash}
echo \\"hello, \${WORLD}\\"
\\\\end{CodeBlock}



\\\\begin{CodeBlock}{longfence}
Q: What do you call a tall person who sells stolen goods?
\\\\end{CodeBlock}



\\\\begin{CodeBlock}{ManyTildes}
A longfence!
\\\\end{CodeBlock}"
`;

exports[`rebber: remark specs fenced-code-empty: fenced-code-empty 1`] = `
"Normal with language tag:



\\\\begin{CodeBlock}{js}

\\\\end{CodeBlock}



With white space:



\\\\begin{CodeBlock}{bash}

\\\\end{CodeBlock}



With very long fences:



\\\\begin{CodeBlock}{text}

\\\\end{CodeBlock}



With nothing:



\\\\begin{CodeBlock}{text}

\\\\end{CodeBlock}"
`;

exports[`rebber: remark specs fenced-code-trailing-characters: fenced-code-trailing-characters 1`] = `
"\\\\begin{CodeBlock}{js}
foo();
\`\`\`bash
\\\\end{CodeBlock}"
`;

exports[`rebber: remark specs fenced-code-trailing-characters-2: fenced-code-trailing-characters-2 1`] = `
"\\\\begin{CodeBlock}{text}
\`\`\` aaa
\\\\end{CodeBlock}"
`;

exports[`rebber: remark specs fenced-code-white-space-after-flag: fenced-code-white-space-after-flag 1`] = `
"\\\\begin{CodeBlock}{js}
foo();
\\\\end{CodeBlock}



\\\\begin{CodeBlock}{bash}
echo \\"hello, \${WORLD}\\"
\\\\end{CodeBlock}"
`;

exports[`rebber: remark specs hard-wrapped-paragraphs-with-list-like-lines: hard-wrapped-paragraphs-with-list-like-lines 1`] = `
"In Markdown 1.0.0 and earlier. Version
8. This line turns into a list item.
Because a hard-wrapped line in the
123. middle of a paragraph looked like a
list item.



Here's one with a bullet.



\\\\begin{itemize}
\\\\item\\\\relax criminey.
\\\\end{itemize}


Non-GFM does not create a list for either.
GFM does not create a list for \\\\texttt{8.}, but does for \\\\texttt{*}.
CommonMark creates a list for both.
All versions create lists for the following.



\\\\begin{itemize}
\\\\item\\\\relax Here's one with a bullet.

\\\\begin{itemize}
\\\\item\\\\relax criminey.
\\\\end{itemize}
\\\\end{itemize}


...and the following:



\\\\begin{enumerate}
\\\\item\\\\relax In Markdown 1.0.0 and earlier. Version
8. This line turns into a list item.
\\\\end{enumerate}"
`;

exports[`rebber: remark specs heading: heading 1`] = `
"\\\\part{Heading 1}


\\\\chapter{Heading 2}


\\\\section{Heading 4}


\\\\subsection{Heading 4}


\\\\subsubsection{Heading 5}


\\\\paragraph{Heading 6}"
`;

exports[`rebber: remark specs heading-atx-closed-trailing-white-space: heading-atx-closed-trailing-white-space 1`] = `
"\\\\part{Foo}


\\\\chapter{Bar}"
`;

exports[`rebber: remark specs heading-atx-empty: heading-atx-empty 1`] = `
"\\\\part{}


\\\\chapter{}


\\\\section{}


\\\\subsection{}


\\\\subsubsection{}


\\\\paragraph{}"
`;

exports[`rebber: remark specs heading-in-blockquote: heading-in-blockquote 1`] = `
"\\\\begin{Quotation}
A blockquote
with some more text.
\\\\end{Quotation}



A normal paragraph.



\\\\begin{Quotation}
\\\\chapter{A blockquote followed by a horizontal rule (in CommonMark).}
\\\\end{Quotation}



\\\\begin{Quotation}
\\\\chapter{A heading in a blockquote}
\\\\end{Quotation}"
`;

exports[`rebber: remark specs heading-in-paragraph: heading-in-paragraph 1`] = `
"Hello



\\\\part{World}"
`;

exports[`rebber: remark specs heading-not-atx: heading-not-atx 1`] = `
"\\\\#This is not a heading, per CommonMark: \\\\externalLink{http://spec.commonmark.org/0.17/\\\\#example-25}{http://spec.commonmark.org/0.17/\\\\#example-25}



Kramdown (GitHub) neither supports unspaced ATX-headings.



\\\\#\\\\#\\\\#\\\\#\\\\#\\\\#\\\\#\\\\# h7?



\\\\#\\\\#\\\\#\\\\#\\\\#\\\\#\\\\#\\\\#\\\\# h8?



\\\\#\\\\#\\\\#\\\\#\\\\#\\\\#\\\\#\\\\#\\\\#\\\\# h9?



More than six \\\\# characters is not a heading: \\\\externalLink{http://spec.commonmark.org/0.26/\\\\#example-33}{http://spec.commonmark.org/0.26/\\\\#example-33}"
`;

exports[`rebber: remark specs heading-setext-with-initial-spacing: heading-setext-with-initial-spacing 1`] = `
"\\\\part{Heading 1}


\\\\chapter{Heading 2}


Both these headings caused positional problems in on commit daa344c and before."
`;

exports[`rebber: remark specs horizontal-rules: horizontal-rules 1`] = `
"Dashes:



\\\\horizontalLine



\\\\horizontalLine



\\\\horizontalLine



\\\\horizontalLine



\\\\begin{CodeBlock}{text}
---
\\\\end{CodeBlock}



\\\\horizontalLine



\\\\horizontalLine



\\\\horizontalLine



\\\\horizontalLine



\\\\begin{CodeBlock}{text}
- - -
\\\\end{CodeBlock}



Asterisks:



\\\\horizontalLine



\\\\horizontalLine



\\\\horizontalLine



\\\\horizontalLine



\\\\begin{CodeBlock}{text}
***
\\\\end{CodeBlock}



\\\\horizontalLine



\\\\horizontalLine



\\\\horizontalLine



\\\\horizontalLine



\\\\begin{CodeBlock}{text}
* * *
\\\\end{CodeBlock}



Underscores:



\\\\horizontalLine



\\\\horizontalLine



\\\\horizontalLine



\\\\horizontalLine



\\\\begin{CodeBlock}{text}
___
\\\\end{CodeBlock}



\\\\horizontalLine



\\\\horizontalLine



\\\\horizontalLine



\\\\horizontalLine



\\\\begin{CodeBlock}{text}
_ _ _
\\\\end{CodeBlock}"
`;

exports[`rebber: remark specs horizontal-rules-adjacent: horizontal-rules-adjacent 1`] = `
"\\\\horizontalLine



\\\\horizontalLine



\\\\horizontalLine



The three asterisks are not a Setext header.



This is a paragraph.



\\\\horizontalLine



This is another paragraph.



\\\\horizontalLine



\\\\chapter{But this is a secondary heading.}


\\\\horizontalLine"
`;

exports[`rebber: remark specs hr: hr 1`] = `"\\\\horizontalLine"`;

exports[`rebber: remark specs hr-list-break: hr-list-break 1`] = `
"\\\\begin{itemize}
\\\\item\\\\relax hello world
\\\\item\\\\relax how are
\\\\end{itemize}


\\\\horizontalLine



you today?



The above asterisks do split the list, but the below ones do not.



\\\\begin{itemize}
\\\\item\\\\relax hello world
\\\\item\\\\relax how are
\\\\item\\\\relax \\\\horizontalLine

you today?
\\\\end{itemize}



\\\\begin{itemize}
\\\\item\\\\relax Neither do these
\\\\item\\\\relax how are
\\\\item\\\\relax \\\\begin{itemize}
\\\\item\\\\relax \\\\begin{itemize}
\\\\item\\\\relax you today?
\\\\end{itemize}
\\\\end{itemize}
\\\\end{itemize}



\\\\begin{itemize}
\\\\item\\\\relax But these do
\\\\item\\\\relax how are
\\\\end{itemize}


\\\\horizontalLine



you today?"
`;

exports[`rebber: remark specs html-advanced: html-advanced 1`] = `
"Simple block on one line:



<div>foo</div>

And nested without indentation:



<div>
<div>
<div>
foo
</div>
<div style=\\">\\"/>
</div>
<div>bar</div>
</div>"
`;

exports[`rebber: remark specs html-attributes: html-attributes 1`] = `
"\\\\part{Block-level}


<article foo=\\"bar 'baz' qux\\" foo='bar \\"baz\\" qux' foo=baz>

<article foo>

<article>

<article :foo:bar:09:=\\"baz\\">

<article foo.bar_09->

<article foo.bar_09-   >

<article foo.bar_09-   />

<div baz
qux

\\\\part{Inline}


<span foo=\\"bar 'baz' qux\\" foo='bar \\"baz\\" qux' foo=baz>

<span foo>

<span>

<span :foo:bar:09:=\\"baz\\">

<span foo.bar_09->

<span foo.bar_09-   >

<span foo.bar_09-   />

<span this is
invalid"
`;

exports[`rebber: remark specs html-cdata: html-cdata 1`] = `
"<![CDATA[
fooBarBaz()
]]>

foo <![CDATA[bar]]>"
`;

exports[`rebber: remark specs html-comments: html-comments 1`] = `
"Paragraph one.



<!-- This is a simple comment -->

<!--
	This is another comment.
-->

What follows is not an HTML comment because it contains
two consecutive dashes:
\\\\externalLink{https://html.spec.whatwg.org/multipage/syntax.html\\\\#comments}{https://html.spec.whatwg.org/multipage/syntax.html\\\\#comments}.



<!-- one comment block -- -- with two comments -->

But this is fine (in commonmark):



<!-- one comment block - with a dash -->

And, this is wrong (in commonmark):



<!-->-->

The end."
`;

exports[`rebber: remark specs html-declaration: html-declaration 1`] = `
"<!DOCTYPE html>

foo <!BAR br BAZ>



<!doctype html>

<!valid >

<!invalid>"
`;

exports[`rebber: remark specs html-indented: html-indented 1`] = `
"<div>
  *hello*
   <div>

 <span>
  *hello*
   <span>

  <!doctype html>

   <!-- baz -->

alpha <!-- baz -->"
`;

exports[`rebber: remark specs html-processing-instruction: html-processing-instruction 1`] = `
"<?php
  echo '>';
?>"
`;

exports[`rebber: remark specs html-simple: html-simple 1`] = `
"Here's a simple block:



<div>
	foo
</div>

This should be a code block, though:



\\\\begin{CodeBlock}{text}
<div>
	foo
</div>
\\\\end{CodeBlock}



As should this:



\\\\begin{CodeBlock}{text}
<div>foo</div>
\\\\end{CodeBlock}



Now, nested:



<div>
	<div>
		<div>
			foo
		</div>
	</div>
</div>

This should just be an HTML comment:



<!-- Comment -->

Multiline:



<!--
Blah
Blah
-->

Code block:



\\\\begin{CodeBlock}{text}
<!-- Comment -->
\\\\end{CodeBlock}



Just plain comment, with trailing spaces on the line:



<!-- foo -->   

Code:



\\\\begin{CodeBlock}{text}
<hr>
\\\\end{CodeBlock}



Hr's:



<hr>

<hr>

<hr>

<hr>   

<hr>  

<hr> 

<hr class=\\"foo\\" id=\\"bar\\" />

<hr class=\\"foo\\" id=\\"bar\\"/>

<hr class=\\"foo\\" id=\\"bar\\" >"
`;

exports[`rebber: remark specs html-tags: html-tags 1`] = `
"\\\\part{Block}


<article>

<ARTICLE>

<ArTiClE>

<-article>



<article foo=

<article foo=\\"bar

<article foo='bar

<article foo=bar 

<article foo=bar >

<article/>

<-article/>



</article>

</ARTICLE>

</aRtIcLe>

</article  >

</-article  >



</article

</article  

\\\\part{Inline}


<span>

<SPAN>

<SpAn>

<-span>



<span/>

<-span/>



</span>

</SPAN>

</SpAn>

</span  >

</-span>



</span



</span



<span foo=



<span foo=\\"bar



<span foo='bar



<span foo=bar



<span foo=bar >"
`;

exports[`rebber: remark specs image-basename-dots: image-basename-dots 1`] = `
"\\\\includegraphics{{x.yz}.png}



\\\\includegraphics{/a/{w.x.y.z}.png}



\\\\includegraphics{/{w.x.y.z}.png}



\\\\includegraphics{/foo.bar/{x.yz}.png}"
`;

exports[`rebber: remark specs image-empty-alt: image-empty-alt 1`] = `"\\\\includegraphics{/xyz.png}"`;

exports[`rebber: remark specs image-in-link: image-in-link 1`] = `
"\\\\part{\\\\externalLink{\\\\includegraphics{https://img.shields.io/badge/unicorn-approved-ff69b4.svg}}{http://shields.io}}


\\\\externalLink{\\\\includegraphics{https://img.shields.io/travis/wooorm/mdast.svg?style=flat}}{https://travis-ci.org/wooorm/mdast}



\\\\externalLink{\\\\includegraphics{https://img.shields.io/badge/style-flat--squared-green.svg?style=flat-square}}{http://example.com}"
`;

exports[`rebber: remark specs image-path-escape: image-path-escape 1`] = `"\\\\includegraphics{a[b]\\\\ \\\\input{/etc/passwd\\\\image{[a](b)}"`;

exports[`rebber: remark specs image-with-pipe: image-with-pipe 1`] = `"f|"`;

exports[`rebber: remark specs images: images 1`] = `
"Lorem ipsum dolor sit \\\\includegraphics{http://amet.com/amet.jpeg}, consectetur adipiscing elit. Praesent dictum purus ullamcorper ligula semper pellentesque.



Nulla \\\\includegraphics{http://finibus.com/finibus.png} neque et diam rhoncus convallis. Nam dictum sapien nec sem ultrices fermentum. Nulla \\\\includegraphics{http://facilisi.com/facilisi.gif}. In et feugiat massa.



Donec sed sodales metus, ut aliquet quam. Suspendisse nec ipsum risus. Interdum et malesuada fames ac ante ipsum primis in \\\\includegraphics{http://faucibus.com/faucibus.tiff}."
`;

exports[`rebber: remark specs invalid-link-definition: invalid-link-definition 1`] = `"Something[2-3]"`;

exports[`rebber: remark specs lazy-blockquotes: lazy-blockquotes 1`] = `
"\\\\begin{Quotation}
hi there
bud
\\\\end{Quotation}"
`;

exports[`rebber: remark specs link-in-link: link-in-link 1`] = `
"\\\\part{\\\\externalLink{mailto:test@example.com}{http://shields.io}}


\\\\externalLink{https://travis-ci.org/wooorm/mdast}{https://travis-ci.org/wooorm/mdast}



\\\\externalLink{[](http://example.com \\"An example\\")}{http://example.com}"
`;

exports[`rebber: remark specs link-spaces: link-spaces 1`] = `
"[alpha] (bravo



\\\\includegraphics{undefined} (delta
.com)



[echo]	(\\\\externalLink{http://foxtrot.golf}{http://foxtrot.golf})



\\\\includegraphics{undefined}   (india.com/juliett)"
`;

exports[`rebber: remark specs link-whitespace: link-whitespace 1`] = `
"[alpha](\\\\externalLink{https://example.com?bravo}{https://example.com?bravo} charlie).



[alpha](\\\\externalLink{https://example.com?bravo}{https://example.com?bravo}	charlie).



[alpha](\\\\externalLink{https://example.com?bravo}{https://example.com?bravo}
charlie).



\\\\includegraphics{undefined}(\\\\externalLink{https://example.com?bravo}{https://example.com?bravo} charlie).



\\\\includegraphics{undefined}(\\\\externalLink{https://example.com?bravo}{https://example.com?bravo}	charlie).



\\\\includegraphics{undefined}(\\\\externalLink{https://example.com?bravo}{https://example.com?bravo}
charlie).



<\\\\externalLink{https://example.com?bravo}{https://example.com?bravo} charlie>.



<\\\\externalLink{https://example.com?bravo}{https://example.com?bravo}	charlie>.



<\\\\externalLink{https://example.com?bravo}{https://example.com?bravo}
charlie>.



\\\\externalLink{https://example.com?bravo}{https://example.com?bravo} charlie.



\\\\externalLink{https://example.com?bravo}{https://example.com?bravo}	charlie.



\\\\externalLink{https://example.com?bravo}{https://example.com?bravo}
charlie."
`;

exports[`rebber: remark specs link-with-spaces: link-with-spaces 1`] = `
"\\\\externalLink{Hello}{./world and some spaces.html}



\\\\externalLink{Hello}{./world and some spaces.html}"
`;

exports[`rebber: remark specs links: links 1`] = `
"Lorem ipsum dolor sit \\\\externalLink{amet}{http://amet.com}, consectetur adipiscing elit. Praesent dictum purus ullamcorper ligula semper pellentesque.



Nulla \\\\externalLink{finibus}{http://finibus.com} neque et diam rhoncus convallis. Nam dictum sapien nec sem ultrices fermentum. Nulla \\\\externalLink{facilisi}{http://facilisi.com}. In et feugiat massa.



Donec sed sodales metus, ut aliquet quam. Suspendisse nec ipsum risus. Interdum et malesuada fames ac ante ipsum primis in \\\\externalLink{faucibus}{http://faucibus.com}."
`;

exports[`rebber: remark specs links-inline-style: links-inline-style 1`] = `
"Just a \\\\externalLink{URL}{/url/}.



\\\\externalLink{URL and title}{/url/}.



\\\\externalLink{URL and title}{/url/}.



\\\\externalLink{URL and title}{/url/}.



\\\\externalLink{URL and title}{/url/}.



[URL and title]( /url/has space ).



[URL and title]( /url/has space/ \\"url has space and title\\").



."
`;

exports[`rebber: remark specs links-reference-proto: links-reference-proto 1`] = `
"A \\\\hyperref[tostring]{primary}, \\\\hyperref[constructor]{secondary}, and \\\\hyperref[__proto__]{tertiary} link.



\\\\footnote{\\\\label{tostring}\\\\externalLink{http://primary.com}{http://primary.com}}

\\\\footnote{\\\\label{__proto__}\\\\externalLink{http://tertiary.com}{http://tertiary.com}}

\\\\footnote{\\\\label{constructor}\\\\externalLink{http://secondary.com}{http://secondary.com}}"
`;

exports[`rebber: remark specs links-reference-style: links-reference-style 1`] = `
"Foo \\\\hyperref[1]{bar}.



Foo \\\\hyperref[1]{bar}.



Foo \\\\hyperref[1]{bar}.



\\\\footnote{\\\\label{1}\\\\externalLink{/url/}{/url/}}

With \\\\hyperref[b]{embedded [brackets]}.



Indented \\\\hyperref[once]{once}.



Indented \\\\hyperref[twice]{twice}.



Indented \\\\hyperref[thrice]{thrice}.



Indented [four] times.



\\\\footnote{\\\\label{once}\\\\externalLink{/url}{/url}}

\\\\footnote{\\\\label{twice}\\\\externalLink{/url}{/url}}

\\\\footnote{\\\\label{thrice}\\\\externalLink{/url}{/url}}

\\\\begin{CodeBlock}{text}
[four]: /url
\\\\end{CodeBlock}



\\\\footnote{\\\\label{b}\\\\externalLink{/url/}{/url/}}

\\\\horizontalLine



\\\\hyperref[this]{this} should work



So should \\\\hyperref[this]{this}.



And \\\\hyperref[this]{this}.



And \\\\hyperref[this]{this}.



And \\\\hyperref[this]{this}.



But not [that].



Nor [that].



Nor [that].



[Something in brackets like \\\\hyperref[this]{this} should work]



[Same with \\\\hyperref[this]{this}.]



In this case, \\\\externalLink{this}{/somethingelse/} points to something else.



Backslashing should suppress [this] and [this].



\\\\footnote{\\\\label{this}\\\\externalLink{foo}{foo}}

\\\\horizontalLine



Here's one where the \\\\hyperref[link breaks]{link
breaks} across lines.



Here's another where the \\\\hyperref[link breaks]{link
breaks} across lines, but with a line-ending space.



\\\\footnote{\\\\label{link breaks}\\\\externalLink{/url/}{/url/}}"
`;

exports[`rebber: remark specs links-shortcut-references: links-shortcut-references 1`] = `
"This is the \\\\hyperref[simple case]{simple case}.



\\\\footnote{\\\\label{simple case}\\\\externalLink{/simple}{/simple}}

This one has a \\\\hyperref[line break]{line
break}.



This one has a \\\\hyperref[line break]{line
break} with a line-ending space.



\\\\footnote{\\\\label{line break}\\\\externalLink{/foo}{/foo}}

\\\\hyperref[that]{this} and the \\\\hyperref[other]{other}



\\\\footnote{\\\\label{this}\\\\externalLink{/this}{/this}}

\\\\footnote{\\\\label{that}\\\\externalLink{/that}{/that}}

\\\\footnote{\\\\label{other}\\\\externalLink{/other}{/other}}"
`;

exports[`rebber: remark specs links-text-delimiters: links-text-delimiters 1`] = `
"\\\\externalLink{Hello [world]!}{./hello-world.html}.



\\\\externalLink{Hello [world]!}{./hello-world.html}.



\\\\includegraphics{./hello-world.html}.



\\\\includegraphics{./hello-world.html}."
`;

exports[`rebber: remark specs links-text-empty: links-text-empty 1`] = `
"\\\\externalLink{}{./hello-world.html}.



\\\\externalLink{}{./hello-world.html}.



\\\\includegraphics{./hello-world.html}.



\\\\includegraphics{./hello-world.html}."
`;

exports[`rebber: remark specs links-text-entity-delimiters: links-text-entity-delimiters 1`] = `
"\\\\externalLink{Hello [world]!}{./hello-world.html}.



\\\\externalLink{Hello [world]!}{./hello-world.html}.



\\\\includegraphics{./hello-world.html}.



\\\\includegraphics{./hello-world.html}.



\\\\externalLink{Hello [world]!}{./hello-world.html}.



\\\\externalLink{Hello [world]!}{./hello-world.html}.



\\\\includegraphics{./hello-world.html}.



\\\\includegraphics{./hello-world.html}."
`;

exports[`rebber: remark specs links-text-escaped-delimiters: links-text-escaped-delimiters 1`] = `
"\\\\externalLink{Hello [world]!}{./hello-world.html}.



\\\\externalLink{Hello [world]!}{./hello-world.html}.



\\\\includegraphics{./hello-world.html}.



\\\\includegraphics{./hello-world.html}."
`;

exports[`rebber: remark specs links-text-mismatched-delimiters: links-text-mismatched-delimiters 1`] = `
"[Hello \\\\externalLink{world!}{./hello-world.html}.



[Hello \\\\externalLink{world!}{./hello-world.html}.



![Hello \\\\externalLink{world!}{./hello-world.html}.



![Hello \\\\externalLink{world!}{./hello-world.html}."
`;

exports[`rebber: remark specs links-title-double-quotes: links-title-double-quotes 1`] = `
"\\\\externalLink{Hello}{./world.html}.



\\\\externalLink{Hello}{./world.html}.



\\\\includegraphics{./world.html}.



\\\\includegraphics{./world.html}."
`;

exports[`rebber: remark specs links-title-double-quotes-delimiters: links-title-double-quotes-delimiters 1`] = `
"\\\\externalLink{Hello}{./world.html}.



\\\\externalLink{Hello}{./world.html}.



\\\\includegraphics{./world.html}.



\\\\includegraphics{./world.html}."
`;

exports[`rebber: remark specs links-title-double-quotes-entity-delimiters: links-title-double-quotes-entity-delimiters 1`] = `
"\\\\externalLink{Hello}{./world.html}.



\\\\externalLink{Hello}{./world.html}.



\\\\includegraphics{./world.html}.



\\\\includegraphics{./world.html}."
`;

exports[`rebber: remark specs links-title-double-quotes-escaped-delimiters: links-title-double-quotes-escaped-delimiters 1`] = `
"\\\\externalLink{Hello}{./world.html}.



\\\\externalLink{Hello}{./world.html}.



\\\\includegraphics{./world.html}.



\\\\includegraphics{./world.html}."
`;

exports[`rebber: remark specs links-title-double-quotes-mismatched-delimiters: links-title-double-quotes-mismatched-delimiters 1`] = `
"\\\\externalLink{Hello}{./world.html}.



\\\\externalLink{Hello}{./world.html}.



\\\\includegraphics{./world.html}.



\\\\includegraphics{./world.html}."
`;

exports[`rebber: remark specs links-title-empty-double-quotes: links-title-empty-double-quotes 1`] = `
"\\\\externalLink{Hello}{./world.html}.



\\\\externalLink{Hello}{./world.html}.



\\\\includegraphics{./world.html}.



\\\\includegraphics{./world.html}."
`;

exports[`rebber: remark specs links-title-empty-parentheses: links-title-empty-parentheses 1`] = `
"[Hello](./world.html ()).



[Hello](<./world.html> ()).



\\\\includegraphics{undefined}(./world.html ()).



\\\\includegraphics{undefined}(<./world.html> ())."
`;

exports[`rebber: remark specs links-title-empty-single-quotes: links-title-empty-single-quotes 1`] = `
"\\\\externalLink{Hello}{./world.html}.



\\\\externalLink{Hello}{./world.html}.



\\\\includegraphics{./world.html}.



\\\\includegraphics{./world.html}."
`;

exports[`rebber: remark specs links-title-parentheses: links-title-parentheses 1`] = `
"[Hello](./world.html (Hello World!)).



[Hello](<./world.html> (Hello World!)).



\\\\includegraphics{undefined}(./world.html (Hello World!)).



\\\\includegraphics{undefined}(<./world.html> (Hello World!))."
`;

exports[`rebber: remark specs links-title-single-quotes: links-title-single-quotes 1`] = `
"\\\\externalLink{Hello}{./world.html}.



\\\\externalLink{Hello}{./world.html}.



\\\\includegraphics{./world.html}.



\\\\includegraphics{./world.html}."
`;

exports[`rebber: remark specs links-title-single-quotes-delimiters: links-title-single-quotes-delimiters 1`] = `
"\\\\externalLink{Hello}{./world.html}.



\\\\externalLink{Hello}{./world.html}.



\\\\includegraphics{./world.html}.



\\\\includegraphics{./world.html}."
`;

exports[`rebber: remark specs links-title-single-quotes-entity-delimiters: links-title-single-quotes-entity-delimiters 1`] = `
"\\\\externalLink{Hello}{./world.html}.



\\\\externalLink{Hello}{./world.html}.



\\\\includegraphics{./world.html}.



\\\\includegraphics{./world.html}."
`;

exports[`rebber: remark specs links-title-single-quotes-escaped-delimiters: links-title-single-quotes-escaped-delimiters 1`] = `
"\\\\externalLink{Hello}{./world.html}.



\\\\externalLink{Hello}{./world.html}.



\\\\includegraphics{./world.html}.



\\\\includegraphics{./world.html}."
`;

exports[`rebber: remark specs links-title-single-quotes-mismatched-delimiters: links-title-single-quotes-mismatched-delimiters 1`] = `
"\\\\externalLink{Hello}{./world.html}.



\\\\externalLink{Hello}{./world.html}.



\\\\includegraphics{./world.html}.



\\\\includegraphics{./world.html}."
`;

exports[`rebber: remark specs links-title-unclosed: links-title-unclosed 1`] = `
"[Hello](./world.html 'Hello



[Hello](<./world.html> 'Hello



\\\\includegraphics{undefined}(./world.html 'Hello



\\\\includegraphics{undefined}(<./world.html> 'Hello



[Hello](./world.html \\"Hello



[Hello](<./world.html> \\"Hello



\\\\includegraphics{undefined}(./world.html \\"Hello



\\\\includegraphics{undefined}(<./world.html> \\"Hello



[Hello](./world.html (Hello



[Hello](<./world.html> (Hello



\\\\includegraphics{undefined}(./world.html (Hello



\\\\includegraphics{undefined}(<./world.html> (Hello"
`;

exports[`rebber: remark specs links-url-empty: links-url-empty 1`] = `
".



.



\\\\includegraphics{}.



\\\\includegraphics{}."
`;

exports[`rebber: remark specs links-url-empty-title-double-quotes: links-url-empty-title-double-quotes 1`] = `
"\\\\externalLink{Hello}{\\"World!\\"}.



\\\\externalLink{Hello}{\\"World!\\"}.



.



\\\\includegraphics{\\"World!\\"}.



\\\\includegraphics{\\"World!\\"}.



\\\\includegraphics{}."
`;

exports[`rebber: remark specs links-url-empty-title-parentheses: links-url-empty-title-parentheses 1`] = `
"\\\\externalLink{Hello}{(World!)}.



\\\\externalLink{Hello}{(World!)}.



[World](<> (World!)).



\\\\includegraphics{(World!)}.



\\\\includegraphics{(World!)}.



\\\\includegraphics{undefined}(<> (World!))."
`;

exports[`rebber: remark specs links-url-empty-title-single-quotes: links-url-empty-title-single-quotes 1`] = `
"\\\\externalLink{Hello}{'World!'}.



\\\\externalLink{Hello}{'World!'}.



.



\\\\includegraphics{'World!'}.



\\\\includegraphics{'World!'}.



\\\\includegraphics{}."
`;

exports[`rebber: remark specs links-url-entity-parentheses: links-url-entity-parentheses 1`] = `
"\\\\externalLink{Hello}{./world(and-hello(world)}.



\\\\externalLink{Hello}{./world(and-hello(world)}.



\\\\externalLink{Hello}{./world(and)helloworld)}.



\\\\externalLink{Hello}{./world(and)helloworld)}.



\\\\externalLink{Hello}{./world(and-hello(world)}.



\\\\externalLink{Hello}{./world(and-hello(world)}.



\\\\externalLink{Hello}{./world(and)helloworld)}.



\\\\externalLink{Hello}{./world(and)helloworld)}.



\\\\includegraphics{./world(and-hello(world)}.



\\\\includegraphics{./world(and-hello(world)}.



\\\\includegraphics{./world(and)helloworld)}.



\\\\includegraphics{./world(and)helloworld)}.



\\\\includegraphics{./world(and-hello(world)}.



\\\\includegraphics{./world(and-hello(world)}.



\\\\includegraphics{./world(and)helloworld)}.



\\\\includegraphics{./world(and)helloworld)}."
`;

exports[`rebber: remark specs links-url-escaped-parentheses: links-url-escaped-parentheses 1`] = `
"\\\\externalLink{Hello}{./world(and-hello(world)}.



\\\\externalLink{Hello}{./world(and-hello(world)}.



\\\\externalLink{Hello}{./world(and)helloworld)}.



\\\\externalLink{Hello}{./world(and)helloworld)}.



\\\\includegraphics{./world(and-hello(world)}.



\\\\includegraphics{./world(and-hello(world)}.



\\\\includegraphics{./world(and)helloworld)}.



\\\\includegraphics{./world(and)helloworld)}."
`;

exports[`rebber: remark specs links-url-mismatched-parentheses: links-url-mismatched-parentheses 1`] = `
"[Hello](./world(and-hello(world)).



\\\\externalLink{Hello}{./world(and-hello(world)}.



\\\\externalLink{Hello}{./world(and)helloworld}).



\\\\externalLink{Hello}{./world(and)helloworld)}.



\\\\includegraphics{undefined}(./world(and-hello(world)).



\\\\includegraphics{./world(and-hello(world)}.



\\\\includegraphics{./world(and)helloworld}).



\\\\includegraphics{./world(and)helloworld)}."
`;

exports[`rebber: remark specs links-url-nested-parentheses: links-url-nested-parentheses 1`] = `
"\\\\externalLink{Hello}{./world(and)hello(world)}.



\\\\externalLink{Hello}{./world(and)hello(world)}.



\\\\includegraphics{./world(and)hello(world)}.



\\\\includegraphics{./world(and)hello(world)}."
`;

exports[`rebber: remark specs links-url-new-line: links-url-new-line 1`] = `
"[Hello](./wo
rld.html).



\\\\externalLink{Hello}{./wo
rld.html}.



\\\\includegraphics{undefined}(./wo
rld.png).



\\\\includegraphics{./wo
rld.png}."
`;

exports[`rebber: remark specs links-url-unclosed: links-url-unclosed 1`] = `
"[Hello](



[World](<



\\\\includegraphics{undefined}(



\\\\includegraphics{undefined}(<"
`;

exports[`rebber: remark specs links-url-white-space: links-url-white-space 1`] = `
"[Hello](./wo rld.html).



\\\\externalLink{Hello}{./wo rld.html}.



\\\\includegraphics{undefined}(./wo rld.png).



\\\\includegraphics{./wo rld.png}."
`;

exports[`rebber: remark specs list: list 1`] = `
"\\\\part{List bullets}


\\\\begin{itemize}
\\\\item\\\\relax One:

\\\\begin{itemize}
\\\\item\\\\relax Nested one;
\\\\item\\\\relax Nested two:

\\\\begin{itemize}
\\\\item\\\\relax Nested three.
\\\\end{itemize}
\\\\end{itemize}
\\\\item\\\\relax Two;
\\\\item\\\\relax Three.
\\\\end{itemize}"
`;

exports[`rebber: remark specs list-after-list: list-after-list 1`] = `
"\\\\begin{itemize}
\\\\item\\\\relax item
\\\\item\\\\relax item
\\\\item\\\\relax item
\\\\end{itemize}


\\\\begin{enumerate}
\\\\item\\\\relax item
\\\\item\\\\relax item
\\\\item\\\\relax item
\\\\end{enumerate}


\\\\horizontalLine



\\\\begin{itemize}
\\\\item\\\\relax item
\\\\item\\\\relax item
\\\\item\\\\relax item
\\\\end{itemize}


\\\\begin{enumerate}
\\\\item\\\\relax item
\\\\item\\\\relax item
\\\\item\\\\relax item
\\\\end{enumerate}"
`;

exports[`rebber: remark specs list-and-code: list-and-code 1`] = `
"\\\\begin{itemize}
\\\\item\\\\relax This is a list item
\\\\end{itemize}



\\\\begin{CodeBlock}{text}
This is code
\\\\end{CodeBlock}"
`;

exports[`rebber: remark specs list-continuation: list-continuation 1`] = `
"\\\\begin{enumerate}
\\\\item\\\\relax foo
\\\\end{enumerate}


\\\\horizontalLine



\\\\begin{enumerate}
\\\\item\\\\relax foo
\\\\end{enumerate}


\\\\begin{CodeBlock}{js}
code();
\\\\end{CodeBlock}



\\\\begin{enumerate}
\\\\item\\\\relax \\\\hyperref[foo]{foo}
\\\\end{enumerate}


\\\\footnote{\\\\label{foo}\\\\externalLink{http://google.com}{http://google.com}}"
`;

exports[`rebber: remark specs list-indentation: list-indentation 1`] = `
"\\\\begin{itemize}
\\\\item\\\\relax Hello 1a

World 1a.
\\\\item\\\\relax Hello 1b

World 1b.
\\\\item\\\\relax Hello 2a

World 2a.
\\\\item\\\\relax Hello 2b

World 2b.
\\\\item\\\\relax Hello 3a

World 3a.
\\\\item\\\\relax Hello 3b

World 3b.
\\\\item\\\\relax Hello 4a

World 4a.
\\\\item\\\\relax Hello 4b

World 4b.
\\\\item\\\\relax \\\\begin{CodeBlock}{text}
Hello 5a
\\\\end{CodeBlock}

World 5a.
\\\\item\\\\relax \\\\begin{CodeBlock}{text}
Hello 5b

World 5b.
\\\\end{CodeBlock}
\\\\end{itemize}"
`;

exports[`rebber: remark specs list-item-empty: list-item-empty 1`] = `
"\\\\begin{itemize}
\\\\item\\\\relax foo
\\\\item\\\\relax 
\\\\item\\\\relax bar
\\\\item\\\\relax foo
\\\\item\\\\relax 
\\\\item\\\\relax bar
\\\\end{itemize}"
`;

exports[`rebber: remark specs list-item-empty-with-white-space: list-item-empty-with-white-space 1`] = `
"\\\\begin{itemize}
\\\\item\\\\relax 
\\\\end{itemize}"
`;

exports[`rebber: remark specs list-item-indent: list-item-indent 1`] = `
"\\\\begin{enumerate}
\\\\item\\\\relax foo bar baz.
\\\\end{enumerate}


<!--  -->

\\\\begin{enumerate}
\\\\item\\\\relax foo bar baz.
\\\\end{enumerate}


<!--  -->

\\\\begin{enumerate}
\\\\item\\\\relax foo bar baz.
\\\\end{enumerate}


<!--  -->

\\\\begin{enumerate}
\\\\item\\\\relax foo bar baz.
foo bar baz.
\\\\end{enumerate}


<!--  -->

\\\\begin{enumerate}
\\\\item\\\\relax foo bar baz.
foo bar baz.
\\\\end{enumerate}


<!--  -->

\\\\begin{enumerate}
\\\\item\\\\relax foo bar baz.
foo bar baz.
\\\\end{enumerate}


<!--  -->

\\\\begin{itemize}
\\\\item\\\\relax foo bar baz.
\\\\end{itemize}


<!--  -->

\\\\begin{itemize}
\\\\item\\\\relax foo bar baz.
foo bar baz.
\\\\end{itemize}"
`;

exports[`rebber: remark specs list-item-newline: list-item-newline 1`] = `
"\\\\begin{itemize}
\\\\item\\\\relax Foo
\\\\item\\\\relax Bar
\\\\end{itemize}"
`;

exports[`rebber: remark specs list-item-text: list-item-text 1`] = `
"\\\\begin{itemize}
\\\\item\\\\relax item1

\\\\begin{itemize}
\\\\item\\\\relax item2
\\\\end{itemize}
text
\\\\end{itemize}"
`;

exports[`rebber: remark specs list-ordered: list-ordered 1`] = `
"\\\\begin{enumerate}
\\\\item\\\\relax foo;
\\\\item\\\\relax bar;
\\\\item\\\\relax baz.
\\\\end{enumerate}"
`;

exports[`rebber: remark specs lists-with-code-and-rules: lists-with-code-and-rules 1`] = `
"\\\\chapter{foo}


\\\\begin{enumerate}
\\\\item\\\\relax bar:

\\\\begin{Quotation}
\\\\begin{itemize}
\\\\item\\\\relax one

\\\\begin{itemize}
\\\\item\\\\relax two

\\\\begin{itemize}
\\\\item\\\\relax three
\\\\item\\\\relax four
\\\\item\\\\relax five
\\\\end{itemize}
\\\\end{itemize}
\\\\end{itemize}
\\\\end{Quotation}
\\\\item\\\\relax foo:

\\\\begin{CodeBlock}{text}
line 1
line 2
\\\\end{CodeBlock}
\\\\item\\\\relax foo:

\\\\begin{enumerate}
\\\\item\\\\relax foo \\\\texttt{bar} bar:

\\\\begin{CodeBlock}{erb}
some code here
\\\\end{CodeBlock}
\\\\item\\\\relax foo \\\\texttt{bar} bar:

\\\\begin{CodeBlock}{erb}
foo
---
bar
---
foo
bar
\\\\end{CodeBlock}
\\\\item\\\\relax foo \\\\texttt{bar} bar:

\\\\begin{CodeBlock}{html}
---
foo
foo
---
bar
\\\\end{CodeBlock}
\\\\item\\\\relax foo \\\\texttt{bar} bar:

\\\\begin{CodeBlock}{text}
foo
---
bar
\\\\end{CodeBlock}
\\\\item\\\\relax foo
\\\\end{enumerate}
\\\\end{enumerate}"
`;

exports[`rebber: remark specs loose-lists: loose-lists 1`] = `
"\\\\begin{itemize}
\\\\item\\\\relax hello
world

how
are
\\\\item\\\\relax you
\\\\end{itemize}


better behavior:



\\\\begin{itemize}
\\\\item\\\\relax hello

\\\\begin{itemize}
\\\\item\\\\relax world
how

are
you
\\\\item\\\\relax today
\\\\end{itemize}
\\\\item\\\\relax hi
\\\\end{itemize}



\\\\begin{itemize}
\\\\item\\\\relax hello
\\\\item\\\\relax world
\\\\item\\\\relax hi
\\\\end{itemize}



\\\\begin{itemize}
\\\\item\\\\relax hello
\\\\item\\\\relax world
\\\\item\\\\relax hi
\\\\end{itemize}



\\\\begin{itemize}
\\\\item\\\\relax hello
\\\\item\\\\relax world

how
\\\\item\\\\relax hi
\\\\end{itemize}



\\\\begin{itemize}
\\\\item\\\\relax hello
\\\\item\\\\relax world
\\\\item\\\\relax how
are
\\\\end{itemize}



\\\\begin{itemize}
\\\\item\\\\relax hello
\\\\item\\\\relax world
\\\\item\\\\relax how
are
\\\\end{itemize}"
`;

exports[`rebber: remark specs main: main 1`] = `
"\\\\footnote{\\\\label{test}\\\\externalLink{http://google.com/}{http://google.com/}}

\\\\part{A heading}


Just a note, I've found that I can't test my markdown parser vs others.
For example, both markdown.js and showdown code blocks in lists wrong. They're
also completely \\\\hyperref[test]{inconsistent} with regards to paragraphs in list items.



A link. Not anymore.



<aside>This will make me fail the test because
markdown.js doesnt acknowledge arbitrary html blocks =/</aside>

\\\\begin{itemize}
\\\\item\\\\relax List Item 1
\\\\item\\\\relax List Item 2

\\\\begin{itemize}
\\\\item\\\\relax New List Item 1
Hi, this is a list item.
\\\\item\\\\relax New List Item 2
Another item
Code goes here.
Lots of it...
\\\\item\\\\relax New List Item 3
The last item
\\\\end{itemize}
\\\\item\\\\relax List Item 3
The final item.
\\\\item\\\\relax List Item 4
The real final item.
\\\\end{itemize}


Paragraph.



\\\\begin{Quotation}
\\\\begin{itemize}
\\\\item\\\\relax bq Item 1
\\\\item\\\\relax bq Item 2

\\\\begin{itemize}
\\\\item\\\\relax New bq Item 1
\\\\item\\\\relax New bq Item 2
Text here
\\\\end{itemize}
\\\\end{itemize}
\\\\end{Quotation}



\\\\horizontalLine



\\\\begin{Quotation}
Another blockquote!
I really need to get
more creative with
mockup text..
markdown.js breaks here again
\\\\end{Quotation}



\\\\chapter{Another Heading}


Hello \\\\textit{world}. Here is a \\\\externalLink{link}{//hello}.
And an image \\\\includegraphics{src}.
And an image with an empty alt attribute \\\\includegraphics{src}.



\\\\begin{CodeBlock}{text}
Code goes here.
Lots of it...
\\\\end{CodeBlock}"
`;

exports[`rebber: remark specs markdown-documentation-basics: markdown-documentation-basics 1`] = `
"\\\\part{Markdown: Basics}


<ul id=\\"ProjectSubmenu\\">
    <li><a href=\\"/projects/markdown/\\" title=\\"Markdown Project Page\\">Main</a></li>
    <li><a class=\\"selected\\" title=\\"Markdown Basics\\">Basics</a></li>
    <li><a href=\\"/projects/markdown/syntax\\" title=\\"Markdown Syntax Documentation\\">Syntax</a></li>
    <li><a href=\\"/projects/markdown/license\\" title=\\"Pricing and License Information\\">License</a></li>
    <li><a href=\\"/projects/markdown/dingus\\" title=\\"Online Markdown Web Form\\">Dingus</a></li>
</ul>

\\\\chapter{Getting the Gist of Markdown's Formatting Syntax}


This page offers a brief overview of what it's like to use Markdown.
The \\\\hyperref[s]{syntax page} provides complete, detailed documentation for
every feature, but Markdown should be very easy to pick up simply by
looking at a few examples of it in action. The examples on this page
are written in a before/after style, showing example syntax and the
HTML output produced by Markdown.



It's also helpful to simply try Markdown out; the \\\\hyperref[d]{Dingus} is a
web application that allows you type your own Markdown-formatted text
and translate it to XHTML.



\\\\textbf{Note:} This document is itself written using Markdown; you
can \\\\hyperref[src]{see the source for it by adding '.text' to the URL}.



\\\\footnote{\\\\label{s}\\\\externalLink{/projects/markdown/syntax}{/projects/markdown/syntax}}

\\\\footnote{\\\\label{d}\\\\externalLink{/projects/markdown/dingus}{/projects/markdown/dingus}}

\\\\footnote{\\\\label{src}\\\\externalLink{/projects/markdown/basics.text}{/projects/markdown/basics.text}}

\\\\chapter{Paragraphs, Headers, Blockquotes}


A paragraph is simply one or more consecutive lines of text, separated
by one or more blank lines. (A blank line is any line that looks like a
blank line -- a line containing nothing spaces or tabs is considered
blank.) Normal paragraphs should not be intended with spaces or tabs.



Markdown offers two styles of headers: \\\\textit{Setext} and \\\\textit{atx}.
Setext-style headers for \\\\texttt{<h1>} and \\\\texttt{<h2>} are created by
\\"underlining\\" with equal signs (\\\\texttt{=}) and hyphens (\\\\texttt{-}), respectively.
To create an atx-style header, you put 1-6 hash marks (\\\\texttt{\\\\#}) at the
beginning of the line -- the number of hashes equals the resulting
HTML header level.



Blockquotes are indicated using email-style '\\\\texttt{>}' angle brackets.



Markdown:



\\\\begin{CodeBlock}{text}
A First Level Header
====================

A Second Level Header
---------------------

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

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

### Header 3

> This is a blockquote.
> 
> This is the second paragraph in the blockquote.
>
> ## This is an H2 in a blockquote
\\\\end{CodeBlock}



Output:



\\\\begin{CodeBlock}{text}
<h1>A First Level Header</h1>

<h2>A Second Level Header</h2>

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

<p>The quick brown fox jumped over the lazy
dog's back.</p>

<h3>Header 3</h3>

<blockquote>
    <p>This is a blockquote.</p>
    
    <p>This is the second paragraph in the blockquote.</p>
    
    <h2>This is an H2 in a blockquote</h2>
</blockquote>
\\\\end{CodeBlock}



\\\\section{Phrase Emphasis}


Markdown uses asterisks and underscores to indicate spans of emphasis.



Markdown:



\\\\begin{CodeBlock}{text}
Some of these words *are emphasized*.
Some of these words _are emphasized also_.

Use two asterisks for **strong emphasis**.
Or, if you prefer, __use two underscores instead__.
\\\\end{CodeBlock}



Output:



\\\\begin{CodeBlock}{text}
<p>Some of these words <em>are emphasized</em>.
Some of these words <em>are emphasized also</em>.</p>

<p>Use two asterisks for <strong>strong emphasis</strong>.
Or, if you prefer, <strong>use two underscores instead</strong>.</p>
\\\\end{CodeBlock}



\\\\chapter{Lists}


Unordered (bulleted) lists use asterisks, pluses, and hyphens (\\\\texttt{*},
\\\\texttt{+}, and \\\\texttt{-}) as list markers. These three markers are
interchangable; this:



\\\\begin{CodeBlock}{text}
*   Candy.
*   Gum.
*   Booze.
\\\\end{CodeBlock}



this:



\\\\begin{CodeBlock}{text}
+   Candy.
+   Gum.
+   Booze.
\\\\end{CodeBlock}



and this:



\\\\begin{CodeBlock}{text}
-   Candy.
-   Gum.
-   Booze.
\\\\end{CodeBlock}



all produce the same output:



\\\\begin{CodeBlock}{text}
<ul>
<li>Candy.</li>
<li>Gum.</li>
<li>Booze.</li>
</ul>
\\\\end{CodeBlock}



Ordered (numbered) lists use regular numbers, followed by periods, as
list markers:



\\\\begin{CodeBlock}{text}
1.  Red
2.  Green
3.  Blue
\\\\end{CodeBlock}



Output:



\\\\begin{CodeBlock}{text}
<ol>
<li>Red</li>
<li>Green</li>
<li>Blue</li>
</ol>
\\\\end{CodeBlock}



If you put blank lines between items, you'll get \\\\texttt{<p>} tags for the
list item text. You can create multi-paragraph list items by indenting
the paragraphs by 4 spaces or 1 tab:



\\\\begin{CodeBlock}{text}
*   A list item.

    With multiple paragraphs.

*   Another item in the list.
\\\\end{CodeBlock}



Output:



\\\\begin{CodeBlock}{text}
<ul>
<li><p>A list item.</p>
<p>With multiple paragraphs.</p></li>
<li><p>Another item in the list.</p></li>
</ul>
\\\\end{CodeBlock}



\\\\section{Links}


Markdown supports two styles for creating links: \\\\textit{inline} and
\\\\textit{reference}. With both styles, you use square brackets to delimit the
text you want to turn into a link.



Inline-style links use parentheses immediately after the link text.
For example:



\\\\begin{CodeBlock}{text}
This is an [example link](http://example.com/).
\\\\end{CodeBlock}



Output:



\\\\begin{CodeBlock}{text}
<p>This is an <a href=\\"http://example.com/\\">
example link</a>.</p>
\\\\end{CodeBlock}



Optionally, you may include a title attribute in the parentheses:



\\\\begin{CodeBlock}{text}
This is an [example link](http://example.com/ \\"With a Title\\").
\\\\end{CodeBlock}



Output:



\\\\begin{CodeBlock}{text}
<p>This is an <a href=\\"http://example.com/\\" title=\\"With a Title\\">
example link</a>.</p>
\\\\end{CodeBlock}



Reference-style links allow you to refer to your links by names, which
you define elsewhere in your document:



\\\\begin{CodeBlock}{text}
I get 10 times more traffic from [Google][1] than from
[Yahoo][2] or [MSN][3].

[1]: http://google.com/        \\"Google\\"
[2]: http://search.yahoo.com/  \\"Yahoo Search\\"
[3]: http://search.msn.com/    \\"MSN Search\\"
\\\\end{CodeBlock}



Output:



\\\\begin{CodeBlock}{text}
<p>I get 10 times more traffic from <a href=\\"http://google.com/\\"
title=\\"Google\\">Google</a> than from <a href=\\"http://search.yahoo.com/\\"
title=\\"Yahoo Search\\">Yahoo</a> or <a href=\\"http://search.msn.com/\\"
title=\\"MSN Search\\">MSN</a>.</p>
\\\\end{CodeBlock}



The title attribute is optional. Link names may contain letters,
numbers and spaces, but are \\\\textit{not} case sensitive:



\\\\begin{CodeBlock}{text}
I start my morning with a cup of coffee and
[The New York Times][NY Times].

[ny times]: http://www.nytimes.com/
\\\\end{CodeBlock}



Output:



\\\\begin{CodeBlock}{text}
<p>I start my morning with a cup of coffee and
<a href=\\"http://www.nytimes.com/\\">The New York Times</a>.</p>
\\\\end{CodeBlock}



\\\\section{Images}


Image syntax is very much like link syntax.



Inline (titles are optional):



\\\\begin{CodeBlock}{text}
![alt text](/path/to/img.jpg \\"Title\\")
\\\\end{CodeBlock}



Reference-style:



\\\\begin{CodeBlock}{text}
![alt text][id]

[id]: /path/to/img.jpg \\"Title\\"
\\\\end{CodeBlock}



Both of the above examples produce the same output:



\\\\begin{CodeBlock}{text}
<img src=\\"/path/to/img.jpg\\" alt=\\"alt text\\" title=\\"Title\\" />
\\\\end{CodeBlock}



\\\\section{Code}


In a regular paragraph, you can create code span by wrapping text in
backtick quotes. Any ampersands (\\\\texttt{\\\\&}) and angle brackets (\\\\texttt{<} or
\\\\texttt{>}) will automatically be translated into HTML entities. This makes
it easy to use Markdown to write about HTML example code:



\\\\begin{CodeBlock}{text}
I strongly recommend against using any \`<blink>\` tags.

I wish SmartyPants used named entities like \`&mdash;\`
instead of decimal-encoded entites like \`&#8212;\`.
\\\\end{CodeBlock}



Output:



\\\\begin{CodeBlock}{text}
<p>I strongly recommend against using any
<code>&lt;blink&gt;</code> tags.</p>

<p>I wish SmartyPants used named entities like
<code>&amp;mdash;</code> instead of decimal-encoded
entites like <code>&amp;#8212;</code>.</p>
\\\\end{CodeBlock}



To specify an entire block of pre-formatted code, indent every line of
the block by 4 spaces or 1 tab. Just like with code spans, \\\\texttt{\\\\&}, \\\\texttt{<},
and \\\\texttt{>} characters will be escaped automatically.



Markdown:



\\\\begin{CodeBlock}{text}
If you want your page to validate under XHTML 1.0 Strict,
you've got to put paragraph tags in your blockquotes:

    <blockquote>
        <p>For example.</p>
    </blockquote>
\\\\end{CodeBlock}



Output:



\\\\begin{CodeBlock}{text}
<p>If you want your page to validate under XHTML 1.0 Strict,
you've got to put paragraph tags in your blockquotes:</p>

<pre><code>&lt;blockquote&gt;
    &lt;p&gt;For example.&lt;/p&gt;
&lt;/blockquote&gt;
</code></pre>
\\\\end{CodeBlock}"
`;

exports[`rebber: remark specs markdown-documentation-syntax: markdown-documentation-syntax 1`] = `
"\\\\part{Markdown: Syntax}


<ul id=\\"ProjectSubmenu\\">
    <li><a href=\\"/projects/markdown/\\" title=\\"Markdown Project Page\\">Main</a></li>
    <li><a href=\\"/projects/markdown/basics\\" title=\\"Markdown Basics\\">Basics</a></li>
    <li><a class=\\"selected\\" title=\\"Markdown Syntax Documentation\\">Syntax</a></li>
    <li><a href=\\"/projects/markdown/license\\" title=\\"Pricing and License Information\\">License</a></li>
    <li><a href=\\"/projects/markdown/dingus\\" title=\\"Online Markdown Web Form\\">Dingus</a></li>
</ul>

\\\\begin{itemize}
\\\\item\\\\relax \\\\externalLink{Overview}{\\\\#overview}

\\\\begin{itemize}
\\\\item\\\\relax \\\\externalLink{Philosophy}{\\\\#philosophy}
\\\\item\\\\relax \\\\externalLink{Inline HTML}{\\\\#html}
\\\\item\\\\relax \\\\externalLink{Automatic Escaping for Special Characters}{\\\\#autoescape}
\\\\end{itemize}
\\\\item\\\\relax \\\\externalLink{Block Elements}{\\\\#block}

\\\\begin{itemize}
\\\\item\\\\relax \\\\externalLink{Paragraphs and Line Breaks}{\\\\#p}
\\\\item\\\\relax \\\\externalLink{Headers}{\\\\#header}
\\\\item\\\\relax \\\\externalLink{Blockquotes}{\\\\#blockquote}
\\\\item\\\\relax \\\\externalLink{Lists}{\\\\#list}
\\\\item\\\\relax \\\\externalLink{Code Blocks}{\\\\#precode}
\\\\item\\\\relax \\\\externalLink{Horizontal Rules}{\\\\#hr}
\\\\end{itemize}
\\\\item\\\\relax \\\\externalLink{Span Elements}{\\\\#span}

\\\\begin{itemize}
\\\\item\\\\relax \\\\externalLink{Links}{\\\\#link}
\\\\item\\\\relax \\\\externalLink{Emphasis}{\\\\#em}
\\\\item\\\\relax \\\\externalLink{Code}{\\\\#code}
\\\\item\\\\relax \\\\externalLink{Images}{\\\\#img}
\\\\end{itemize}
\\\\item\\\\relax \\\\externalLink{Miscellaneous}{\\\\#misc}

\\\\begin{itemize}
\\\\item\\\\relax \\\\externalLink{Backslash Escapes}{\\\\#backslash}
\\\\item\\\\relax \\\\externalLink{Automatic Links}{\\\\#autolink}
\\\\end{itemize}
\\\\end{itemize}


\\\\textbf{Note:} This document is itself written using Markdown; you
can \\\\hyperref[src]{see the source for it by adding '.text' to the URL}.



\\\\footnote{\\\\label{src}\\\\externalLink{/projects/markdown/syntax.text}{/projects/markdown/syntax.text}}

\\\\horizontalLine



<h2 id=\\"overview\\">Overview</h2>

<h3 id=\\"philosophy\\">Philosophy</h3>

Markdown is intended to be as easy-to-read and easy-to-write as is feasible.



Readability, however, is emphasized above all else. A Markdown-formatted
document should be publishable as-is, as plain text, without looking
like it's been marked up with tags or formatting instructions. While
Markdown's syntax has been influenced by several existing text-to-HTML
filters -- including \\\\hyperref[1]{Setext}, \\\\hyperref[2]{atx}, \\\\hyperref[3]{Textile}, \\\\hyperref[4]{reStructuredText},
\\\\hyperref[5]{Grutatext}, and \\\\hyperref[6]{EtText} -- the single biggest source of
inspiration for Markdown's syntax is the format of plain text email.



\\\\footnote{\\\\label{1}\\\\externalLink{http://docutils.sourceforge.net/mirror/setext.html}{http://docutils.sourceforge.net/mirror/setext.html}}

\\\\footnote{\\\\label{2}\\\\externalLink{http://www.aaronsw.com/2002/atx/}{http://www.aaronsw.com/2002/atx/}}

\\\\footnote{\\\\label{3}\\\\externalLink{http://textism.com/tools/textile/}{http://textism.com/tools/textile/}}

\\\\footnote{\\\\label{4}\\\\externalLink{http://docutils.sourceforge.net/rst.html}{http://docutils.sourceforge.net/rst.html}}

\\\\footnote{\\\\label{5}\\\\externalLink{http://www.triptico.com/software/grutatxt.html}{http://www.triptico.com/software/grutatxt.html}}

\\\\footnote{\\\\label{6}\\\\externalLink{http://ettext.taint.org/doc/}{http://ettext.taint.org/doc/}}

To this end, Markdown's syntax is comprised entirely of punctuation
characters, which punctuation characters have been carefully chosen so
as to look like what they mean. E.g., asterisks around a word actually
look like *emphasis*. Markdown lists look like, well, lists. Even
blockquotes look like quoted passages of text, assuming you've ever
used email.



<h3 id=\\"html\\">Inline HTML</h3>

Markdown's syntax is intended for one purpose: to be used as a
format for \\\\textit{writing} for the web.



Markdown is not a replacement for HTML, or even close to it. Its
syntax is very small, corresponding only to a very small subset of
HTML tags. The idea is \\\\textit{not} to create a syntax that makes it easier
to insert HTML tags. In my opinion, HTML tags are already easy to
insert. The idea for Markdown is to make it easy to read, write, and
edit prose. HTML is a \\\\textit{publishing} format; Markdown is a \\\\textit{writing}
format. Thus, Markdown's formatting syntax only addresses issues that
can be conveyed in plain text.



For any markup that is not covered by Markdown's syntax, you simply
use HTML itself. There's no need to preface it or delimit it to
indicate that you're switching from Markdown to HTML; you just use
the tags.



The only restrictions are that block-level HTML elements -- e.g. \\\\texttt{<div>},
\\\\texttt{<table>}, \\\\texttt{<pre>}, \\\\texttt{<p>}, etc. -- must be separated from surrounding
content by blank lines, and the start and end tags of the block should
not be indented with tabs or spaces. Markdown is smart enough not
to add extra (unwanted) \\\\texttt{<p>} tags around HTML block-level tags.



For example, to add an HTML table to a Markdown article:



\\\\begin{CodeBlock}{text}
This is a regular paragraph.

<table>
    <tr>
        <td>Foo</td>
    </tr>
</table>

This is another regular paragraph.
\\\\end{CodeBlock}



Note that Markdown formatting syntax is not processed within block-level
HTML tags. E.g., you can't use Markdown-style \\\\texttt{*emphasis*} inside an
HTML block.



Span-level HTML tags -- e.g. \\\\texttt{<span>}, \\\\texttt{<cite>}, or \\\\texttt{<del>} -- can be
used anywhere in a Markdown paragraph, list item, or header. If you
want, you can even use HTML tags instead of Markdown formatting; e.g. if
you'd prefer to use HTML \\\\texttt{<a>} or \\\\texttt{<img>} tags instead of Markdown's
link or image syntax, go right ahead.



Unlike block-level HTML tags, Markdown syntax \\\\textit{is} processed within
span-level tags.



<h3 id=\\"autoescape\\">Automatic Escaping for Special Characters</h3>

In HTML, there are two characters that demand special treatment: \\\\texttt{<}
and \\\\texttt{\\\\&}. Left angle brackets are used to start tags; ampersands are
used to denote HTML entities. If you want to use them as literal
characters, you must escape them as entities, e.g. \\\\texttt{\\\\&lt;}, and
\\\\texttt{\\\\&amp;}.



Ampersands in particular are bedeviling for web writers. If you want to
write about 'AT\\\\&T', you need to write '\\\\texttt{AT\\\\&amp;T}'. You even need to
escape ampersands within URLs. Thus, if you want to link to:



\\\\begin{CodeBlock}{text}
http://images.google.com/images?num=30&q=larry+bird
\\\\end{CodeBlock}



you need to encode the URL as:



\\\\begin{CodeBlock}{text}
http://images.google.com/images?num=30&amp;q=larry+bird
\\\\end{CodeBlock}



in your anchor tag \\\\texttt{href} attribute. Needless to say, this is easy to
forget, and is probably the single most common source of HTML validation
errors in otherwise well-marked-up web sites.



Markdown allows you to use these characters naturally, taking care of
all the necessary escaping for you. If you use an ampersand as part of
an HTML entity, it remains unchanged; otherwise it will be translated
into \\\\texttt{\\\\&amp;}.



So, if you want to include a copyright symbol in your article, you can write:



\\\\begin{CodeBlock}{text}
&copy;
\\\\end{CodeBlock}



and Markdown will leave it alone. But if you write:



\\\\begin{CodeBlock}{text}
AT&T
\\\\end{CodeBlock}



Markdown will translate it to:



\\\\begin{CodeBlock}{text}
AT&amp;T
\\\\end{CodeBlock}



Similarly, because Markdown supports \\\\externalLink{inline HTML}{\\\\#html}, if you use
angle brackets as delimiters for HTML tags, Markdown will treat them as
such. But if you write:



\\\\begin{CodeBlock}{text}
4 < 5
\\\\end{CodeBlock}



Markdown will translate it to:



\\\\begin{CodeBlock}{text}
4 &lt; 5
\\\\end{CodeBlock}



However, inside Markdown code spans and blocks, angle brackets and
ampersands are \\\\textit{always} encoded automatically. This makes it easy to use
Markdown to write about HTML code. (As opposed to raw HTML, which is a
terrible format for writing about HTML syntax, because every single \\\\texttt{<}
and \\\\texttt{\\\\&} in your example code needs to be escaped.)



\\\\horizontalLine



<h2 id=\\"block\\">Block Elements</h2>

<h3 id=\\"p\\">Paragraphs and Line Breaks</h3>

A paragraph is simply one or more consecutive lines of text, separated
by one or more blank lines. (A blank line is any line that looks like a
blank line -- a line containing nothing but spaces or tabs is considered
blank.) Normal paragraphs should not be intended with spaces or tabs.



The implication of the \\"one or more consecutive lines of text\\" rule is
that Markdown supports \\"hard-wrapped\\" text paragraphs. This differs
significantly from most other text-to-HTML formatters (including Movable
Type's \\"Convert Line Breaks\\" option) which translate every line break
character in a paragraph into a \\\\texttt{<br />} tag.



When you \\\\textit{do} want to insert a \\\\texttt{<br />} break tag using Markdown, you
end a line with two or more spaces, then type return.



Yes, this takes a tad more effort to create a \\\\texttt{<br />}, but a simplistic
\\"every line break is a \\\\texttt{<br />}\\" rule wouldn't work for Markdown.
Markdown's email-style \\\\hyperref[bq]{blockquoting} and multi-paragraph \\\\hyperref[l]{list items}
work best -- and look better -- when you format them with hard breaks.



\\\\footnote{\\\\label{bq}\\\\externalLink{\\\\#blockquote}{\\\\#blockquote}}

\\\\footnote{\\\\label{l}\\\\externalLink{\\\\#list}{\\\\#list}}

<h3 id=\\"header\\">Headers</h3>

Markdown supports two styles of headers, \\\\hyperref[1]{Setext} and \\\\hyperref[2]{atx}.



Setext-style headers are \\"underlined\\" using equal signs (for first-level
headers) and dashes (for second-level headers). For example:



\\\\begin{CodeBlock}{text}
This is an H1
=============

This is an H2
-------------
\\\\end{CodeBlock}



Any number of underlining \\\\texttt{=}'s or \\\\texttt{-}'s will work.



Atx-style headers use 1-6 hash characters at the start of the line,
corresponding to header levels 1-6. For example:



\\\\begin{CodeBlock}{text}
# This is an H1

## This is an H2

###### This is an H6
\\\\end{CodeBlock}



Optionally, you may \\"close\\" atx-style headers. This is purely
cosmetic -- you can use this if you think it looks better. The
closing hashes don't even need to match the number of hashes
used to open the header. (The number of opening hashes
determines the header level.) :



\\\\begin{CodeBlock}{text}
# This is an H1 #

## This is an H2 ##

### This is an H3 ######
\\\\end{CodeBlock}



<h3 id=\\"blockquote\\">Blockquotes</h3>

Markdown uses email-style \\\\texttt{>} characters for blockquoting. If you're
familiar with quoting passages of text in an email message, then you
know how to create a blockquote in Markdown. It looks best if you hard
wrap the text and put a \\\\texttt{>} before every line:



\\\\begin{CodeBlock}{text}
> This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet,
> consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
> Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.
> 
> Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse
> id sem consectetuer libero luctus adipiscing.
\\\\end{CodeBlock}



Markdown allows you to be lazy and only put the \\\\texttt{>} before the first
line of a hard-wrapped paragraph:



\\\\begin{CodeBlock}{text}
> This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet,
consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.

> Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse
id sem consectetuer libero luctus adipiscing.
\\\\end{CodeBlock}



Blockquotes can be nested (i.e. a blockquote-in-a-blockquote) by
adding additional levels of \\\\texttt{>}:



\\\\begin{CodeBlock}{text}
> This is the first level of quoting.
>
> > This is nested blockquote.
>
> Back to the first level.
\\\\end{CodeBlock}



Blockquotes can contain other Markdown elements, including headers, lists,
and code blocks:



\\\\begin{CodeBlock}{text}
> ## This is a header.
> 
> 1.   This is the first list item.
> 2.   This is the second list item.
> 
> Here's some example code:
> 
>     return shell_exec(\\"echo $input | $markdown_script\\");
\\\\end{CodeBlock}



Any decent text editor should make email-style quoting easy. For
example, with BBEdit, you can make a selection and choose Increase
Quote Level from the Text menu.



<h3 id=\\"list\\">Lists</h3>

Markdown supports ordered (numbered) and unordered (bulleted) lists.



Unordered lists use asterisks, pluses, and hyphens -- interchangably
-- as list markers:



\\\\begin{CodeBlock}{text}
*   Red
*   Green
*   Blue
\\\\end{CodeBlock}



is equivalent to:



\\\\begin{CodeBlock}{text}
+   Red
+   Green
+   Blue
\\\\end{CodeBlock}



and:



\\\\begin{CodeBlock}{text}
-   Red
-   Green
-   Blue
\\\\end{CodeBlock}



Ordered lists use numbers followed by periods:



\\\\begin{CodeBlock}{text}
1.  Bird
2.  McHale
3.  Parish
\\\\end{CodeBlock}



It's important to note that the actual numbers you use to mark the
list have no effect on the HTML output Markdown produces. The HTML
Markdown produces from the above list is:



\\\\begin{CodeBlock}{text}
<ol>
<li>Bird</li>
<li>McHale</li>
<li>Parish</li>
</ol>
\\\\end{CodeBlock}



If you instead wrote the list in Markdown like this:



\\\\begin{CodeBlock}{text}
1.  Bird
1.  McHale
1.  Parish
\\\\end{CodeBlock}



or even:



\\\\begin{CodeBlock}{text}
3. Bird
1. McHale
8. Parish
\\\\end{CodeBlock}



you'd get the exact same HTML output. The point is, if you want to,
you can use ordinal numbers in your ordered Markdown lists, so that
the numbers in your source match the numbers in your published HTML.
But if you want to be lazy, you don't have to.



If you do use lazy list numbering, however, you should still start the
list with the number 1. At some point in the future, Markdown may support
starting ordered lists at an arbitrary number.



List markers typically start at the left margin, but may be indented by
up to three spaces. List markers must be followed by one or more spaces
or a tab.



To make lists look nice, you can wrap items with hanging indents:



\\\\begin{CodeBlock}{text}
*   Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
    Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi,
    viverra nec, fringilla in, laoreet vitae, risus.
*   Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
    Suspendisse id sem consectetuer libero luctus adipiscing.
\\\\end{CodeBlock}



But if you want to be lazy, you don't have to:



\\\\begin{CodeBlock}{text}
*   Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi,
viverra nec, fringilla in, laoreet vitae, risus.
*   Donec sit amet nisl. Aliquam semper ipsum sit amet velit.
Suspendisse id sem consectetuer libero luctus adipiscing.
\\\\end{CodeBlock}



If list items are separated by blank lines, Markdown will wrap the
items in \\\\texttt{<p>} tags in the HTML output. For example, this input:



\\\\begin{CodeBlock}{text}
*   Bird
*   Magic
\\\\end{CodeBlock}



will turn into:



\\\\begin{CodeBlock}{text}
<ul>
<li>Bird</li>
<li>Magic</li>
</ul>
\\\\end{CodeBlock}



But this:



\\\\begin{CodeBlock}{text}
*   Bird

*   Magic
\\\\end{CodeBlock}



will turn into:



\\\\begin{CodeBlock}{text}
<ul>
<li><p>Bird</p></li>
<li><p>Magic</p></li>
</ul>
\\\\end{CodeBlock}



List items may consist of multiple paragraphs. Each subsequent
paragraph in a list item must be intended by either 4 spaces
or one tab:



\\\\begin{CodeBlock}{text}
1.  This is a list item with two paragraphs. Lorem ipsum dolor
    sit amet, consectetuer adipiscing elit. Aliquam hendrerit
    mi posuere lectus.

    Vestibulum enim wisi, viverra nec, fringilla in, laoreet
    vitae, risus. Donec sit amet nisl. Aliquam semper ipsum
    sit amet velit.

2.  Suspendisse id sem consectetuer libero luctus adipiscing.
\\\\end{CodeBlock}



It looks nice if you indent every line of the subsequent
paragraphs, but here again, Markdown will allow you to be
lazy:



\\\\begin{CodeBlock}{text}
*   This is a list item with two paragraphs.

    This is the second paragraph in the list item. You're
only required to indent the first line. Lorem ipsum dolor
sit amet, consectetuer adipiscing elit.

*   Another item in the same list.
\\\\end{CodeBlock}



To put a blockquote within a list item, the blockquote's \\\\texttt{>}
delimiters need to be indented:



\\\\begin{CodeBlock}{text}
*   A list item with a blockquote:

    > This is a blockquote
    > inside a list item.
\\\\end{CodeBlock}



To put a code block within a list item, the code block needs
to be indented \\\\textit{twice} -- 8 spaces or two tabs:



\\\\begin{CodeBlock}{text}
*   A list item with a code block:

        <code goes here>
\\\\end{CodeBlock}



It's worth noting that it's possible to trigger an ordered list by
accident, by writing something like this:



\\\\begin{CodeBlock}{text}
1986. What a great season.
\\\\end{CodeBlock}



In other words, a \\\\textit{number-period-space} sequence at the beginning of a
line. To avoid this, you can backslash-escape the period:



\\\\begin{CodeBlock}{text}
1986\\\\. What a great season.
\\\\end{CodeBlock}



<h3 id=\\"precode\\">Code Blocks</h3>

Pre-formatted code blocks are used for writing about programming or
markup source code. Rather than forming normal paragraphs, the lines
of a code block are interpreted literally. Markdown wraps a code block
in both \\\\texttt{<pre>} and \\\\texttt{<code>} tags.



To produce a code block in Markdown, simply indent every line of the
block by at least 4 spaces or 1 tab. For example, given this input:



\\\\begin{CodeBlock}{text}
This is a normal paragraph:

    This is a code block.
\\\\end{CodeBlock}



Markdown will generate:



\\\\begin{CodeBlock}{text}
<p>This is a normal paragraph:</p>

<pre><code>This is a code block.
</code></pre>
\\\\end{CodeBlock}



One level of indentation -- 4 spaces or 1 tab -- is removed from each
line of the code block. For example, this:



\\\\begin{CodeBlock}{text}
Here is an example of AppleScript:

    tell application \\"Foo\\"
        beep
    end tell
\\\\end{CodeBlock}



will turn into:



\\\\begin{CodeBlock}{text}
<p>Here is an example of AppleScript:</p>

<pre><code>tell application \\"Foo\\"
    beep
end tell
</code></pre>
\\\\end{CodeBlock}



A code block continues until it reaches a line that is not indented
(or the end of the article).



Within a code block, ampersands (\\\\texttt{\\\\&}) and angle brackets (\\\\texttt{<} and \\\\texttt{>})
are automatically converted into HTML entities. This makes it very
easy to include example HTML source code using Markdown -- just paste
it and indent it, and Markdown will handle the hassle of encoding the
ampersands and angle brackets. For example, this:



\\\\begin{CodeBlock}{text}
    <div class=\\"footer\\">
        &copy; 2004 Foo Corporation
    </div>
\\\\end{CodeBlock}



will turn into:



\\\\begin{CodeBlock}{text}
<pre><code>&lt;div class=\\"footer\\"&gt;
    &amp;copy; 2004 Foo Corporation
&lt;/div&gt;
</code></pre>
\\\\end{CodeBlock}



Regular Markdown syntax is not processed within code blocks. E.g.,
asterisks are just literal asterisks within a code block. This means
it's also easy to use Markdown to write about Markdown's own syntax.



<h3 id=\\"hr\\">Horizontal Rules</h3>

You can produce a horizontal rule tag (\\\\texttt{<hr>}) by placing three or
more hyphens, asterisks, or underscores on a line by themselves. If you
wish, you may use spaces between the hyphens or asterisks. Each of the
following lines will produce a horizontal rule:



\\\\begin{CodeBlock}{text}
* * *

***

*****

- - -

---------------------------------------

_ _ _
\\\\end{CodeBlock}



\\\\horizontalLine



<h2 id=\\"span\\">Span Elements</h2>

<h3 id=\\"link\\">Links</h3>

Markdown supports two style of links: \\\\textit{inline} and \\\\textit{reference}.



In both styles, the link text is delimited by [square brackets].



To create an inline link, use a set of regular parentheses immediately
after the link text's closing square bracket. Inside the parentheses,
put the URL where you want the link to point, along with an \\\\textit{optional}
title for the link, surrounded in quotes. For example:



\\\\begin{CodeBlock}{text}
This is [an example](http://example.com/ \\"Title\\") inline link.

[This link](http://example.net/) has no title attribute.
\\\\end{CodeBlock}



Will produce:



\\\\begin{CodeBlock}{text}
<p>This is <a href=\\"http://example.com/\\" title=\\"Title\\">
an example</a> inline link.</p>

<p><a href=\\"http://example.net/\\">This link</a> has no
title attribute.</p>
\\\\end{CodeBlock}



If you're referring to a local resource on the same server, you can
use relative paths:



\\\\begin{CodeBlock}{text}
See my [About](/about/) page for details.
\\\\end{CodeBlock}



Reference-style links use a second set of square brackets, inside
which you place a label of your choosing to identify the link:



\\\\begin{CodeBlock}{text}
This is [an example][id] reference-style link.
\\\\end{CodeBlock}



You can optionally use a space to separate the sets of brackets:



\\\\begin{CodeBlock}{text}
This is [an example] [id] reference-style link.
\\\\end{CodeBlock}



Then, anywhere in the document, you define your link label like this,
on a line by itself:



\\\\begin{CodeBlock}{text}
[id]: http://example.com/  \\"Optional Title Here\\"
\\\\end{CodeBlock}



That is:



\\\\begin{itemize}
\\\\item\\\\relax Square brackets containing the link identifier (optionally
indented from the left margin using up to three spaces);
\\\\item\\\\relax followed by a colon;
\\\\item\\\\relax followed by one or more spaces (or tabs);
\\\\item\\\\relax followed by the URL for the link;
\\\\item\\\\relax optionally followed by a title attribute for the link, enclosed
in double or single quotes.
\\\\end{itemize}


The link URL may, optionally, be surrounded by angle brackets:



\\\\begin{CodeBlock}{text}
[id]: <http://example.com/>  \\"Optional Title Here\\"
\\\\end{CodeBlock}



You can put the title attribute on the next line and use extra spaces
or tabs for padding, which tends to look better with longer URLs:



\\\\begin{CodeBlock}{text}
[id]: http://example.com/longish/path/to/resource/here
    \\"Optional Title Here\\"
\\\\end{CodeBlock}



Link definitions are only used for creating links during Markdown
processing, and are stripped from your document in the HTML output.



Link definition names may constist of letters, numbers, spaces, and punctuation -- but they are \\\\textit{not} case sensitive. E.g. these two links:



\\\\begin{CodeBlock}{text}
[link text][a]
[link text][A]
\\\\end{CodeBlock}



are equivalent.



The \\\\textit{implicit link name} shortcut allows you to omit the name of the
link, in which case the link text itself is used as the name.
Just use an empty set of square brackets -- e.g., to link the word
\\"Google\\" to the google.com web site, you could simply write:



\\\\begin{CodeBlock}{text}
[Google][]
\\\\end{CodeBlock}



And then define the link:



\\\\begin{CodeBlock}{text}
[Google]: http://google.com/
\\\\end{CodeBlock}



Because link names may contain spaces, this shortcut even works for
multiple words in the link text:



\\\\begin{CodeBlock}{text}
Visit [Daring Fireball][] for more information.
\\\\end{CodeBlock}



And then define the link:



\\\\begin{CodeBlock}{text}
[Daring Fireball]: http://daringfireball.net/
\\\\end{CodeBlock}



Link definitions can be placed anywhere in your Markdown document. I
tend to put them immediately after each paragraph in which they're
used, but if you want, you can put them all at the end of your
document, sort of like footnotes.



Here's an example of reference links in action:



\\\\begin{CodeBlock}{text}
I get 10 times more traffic from [Google] [1] than from
[Yahoo] [2] or [MSN] [3].

  [1]: http://google.com/        \\"Google\\"
  [2]: http://search.yahoo.com/  \\"Yahoo Search\\"
  [3]: http://search.msn.com/    \\"MSN Search\\"
\\\\end{CodeBlock}



Using the implicit link name shortcut, you could instead write:



\\\\begin{CodeBlock}{text}
I get 10 times more traffic from [Google][] than from
[Yahoo][] or [MSN][].

  [google]: http://google.com/        \\"Google\\"
  [yahoo]:  http://search.yahoo.com/  \\"Yahoo Search\\"
  [msn]:    http://search.msn.com/    \\"MSN Search\\"
\\\\end{CodeBlock}



Both of the above examples will produce the following HTML output:



\\\\begin{CodeBlock}{text}
<p>I get 10 times more traffic from <a href=\\"http://google.com/\\"
title=\\"Google\\">Google</a> than from
<a href=\\"http://search.yahoo.com/\\" title=\\"Yahoo Search\\">Yahoo</a>
or <a href=\\"http://search.msn.com/\\" title=\\"MSN Search\\">MSN</a>.</p>
\\\\end{CodeBlock}



For comparison, here is the same paragraph written using
Markdown's inline link style:



\\\\begin{CodeBlock}{text}
I get 10 times more traffic from [Google](http://google.com/ \\"Google\\")
than from [Yahoo](http://search.yahoo.com/ \\"Yahoo Search\\") or
[MSN](http://search.msn.com/ \\"MSN Search\\").
\\\\end{CodeBlock}



The point of reference-style links is not that they're easier to
write. The point is that with reference-style links, your document
source is vastly more readable. Compare the above examples: using
reference-style links, the paragraph itself is only 81 characters
long; with inline-style links, it's 176 characters; and as raw HTML,
it's 234 characters. In the raw HTML, there's more markup than there
is text.



With Markdown's reference-style links, a source document much more
closely resembles the final output, as rendered in a browser. By
allowing you to move the markup-related metadata out of the paragraph,
you can add links without interrupting the narrative flow of your
prose.



<h3 id=\\"em\\">Emphasis</h3>

Markdown treats asterisks (\\\\texttt{*}) and underscores (\\\\texttt{\\\\_}) as indicators of
emphasis. Text wrapped with one \\\\texttt{*} or \\\\texttt{\\\\_} will be wrapped with an
HTML \\\\texttt{<em>} tag; double \\\\texttt{*}'s or \\\\texttt{\\\\_}'s will be wrapped with an HTML
\\\\texttt{<strong>} tag. E.g., this input:



\\\\begin{CodeBlock}{text}
*single asterisks*

_single underscores_

**double asterisks**

__double underscores__
\\\\end{CodeBlock}



will produce:



\\\\begin{CodeBlock}{text}
<em>single asterisks</em>

<em>single underscores</em>

<strong>double asterisks</strong>

<strong>double underscores</strong>
\\\\end{CodeBlock}



You can use whichever style you prefer; the lone restriction is that
the same character must be used to open and close an emphasis span.



Emphasis can be used in the middle of a word:



\\\\begin{CodeBlock}{text}
un*fucking*believable
\\\\end{CodeBlock}



But if you surround an \\\\texttt{*} or \\\\texttt{\\\\_} with spaces, it'll be treated as a
literal asterisk or underscore.



To produce a literal asterisk or underscore at a position where it
would otherwise be used as an emphasis delimiter, you can backslash
escape it:



\\\\begin{CodeBlock}{text}
\\\\*this text is surrounded by literal asterisks\\\\*
\\\\end{CodeBlock}



<h3 id=\\"code\\">Code</h3>

To indicate a span of code, wrap it with backtick quotes (\\\\texttt{\`}).
Unlike a pre-formatted code block, a code span indicates code within a
normal paragraph. For example:



\\\\begin{CodeBlock}{text}
Use the \`printf()\` function.
\\\\end{CodeBlock}



will produce:



\\\\begin{CodeBlock}{text}
<p>Use the <code>printf()</code> function.</p>
\\\\end{CodeBlock}



To include a literal backtick character within a code span, you can use
multiple backticks as the opening and closing delimiters:



\\\\begin{CodeBlock}{text}
\`\`There is a literal backtick (\`) here.\`\`
\\\\end{CodeBlock}



which will produce this:



\\\\begin{CodeBlock}{text}
<p><code>There is a literal backtick (\`) here.</code></p>
\\\\end{CodeBlock}



The backtick delimiters surrounding a code span may include spaces --
one after the opening, one before the closing. This allows you to place
literal backtick characters at the beginning or end of a code span:



\\\\begin{CodeBlock}{text}
A single backtick in a code span: \`\` \` \`\`

A backtick-delimited string in a code span: \`\` \`foo\` \`\`
\\\\end{CodeBlock}



will produce:



\\\\begin{CodeBlock}{text}
<p>A single backtick in a code span: <code>\`</code></p>

<p>A backtick-delimited string in a code span: <code>\`foo\`</code></p>
\\\\end{CodeBlock}



With a code span, ampersands and angle brackets are encoded as HTML
entities automatically, which makes it easy to include example HTML
tags. Markdown will turn this:



\\\\begin{CodeBlock}{text}
Please don't use any \`<blink>\` tags.
\\\\end{CodeBlock}



into:



\\\\begin{CodeBlock}{text}
<p>Please don't use any <code>&lt;blink&gt;</code> tags.</p>
\\\\end{CodeBlock}



You can write this:



\\\\begin{CodeBlock}{text}
\`&#8212;\` is the decimal-encoded equivalent of \`&mdash;\`.
\\\\end{CodeBlock}



to produce:



\\\\begin{CodeBlock}{text}
<p><code>&amp;#8212;</code> is the decimal-encoded
equivalent of <code>&amp;mdash;</code>.</p>
\\\\end{CodeBlock}



<h3 id=\\"img\\">Images</h3>

Admittedly, it's fairly difficult to devise a \\"natural\\" syntax for
placing images into a plain text document format.



Markdown uses an image syntax that is intended to resemble the syntax
for links, allowing for two styles: \\\\textit{inline} and \\\\textit{reference}.



Inline image syntax looks like this:



\\\\begin{CodeBlock}{text}
![Alt text](/path/to/img.jpg)

![Alt text](/path/to/img.jpg \\"Optional title\\")
\\\\end{CodeBlock}



That is:



\\\\begin{itemize}
\\\\item\\\\relax An exclamation mark: \\\\texttt{!};
\\\\item\\\\relax followed by a set of square brackets, containing the \\\\texttt{alt}
attribute text for the image;
\\\\item\\\\relax followed by a set of parentheses, containing the URL or path to
the image, and an optional \\\\texttt{title} attribute enclosed in double
or single quotes.
\\\\end{itemize}


Reference-style image syntax looks like this:



\\\\begin{CodeBlock}{text}
![Alt text][id]
\\\\end{CodeBlock}



Where \\"id\\" is the name of a defined image reference. Image references
are defined using syntax identical to link references:



\\\\begin{CodeBlock}{text}
[id]: url/to/image  \\"Optional title attribute\\"
\\\\end{CodeBlock}



As of this writing, Markdown has no syntax for specifying the
dimensions of an image; if this is important to you, you can simply
use regular HTML \\\\texttt{<img>} tags.



\\\\horizontalLine



<h2 id=\\"misc\\">Miscellaneous</h2>

<h3 id=\\"autolink\\">Automatic Links</h3>

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:



\\\\begin{CodeBlock}{text}
<http://example.com/>
\\\\end{CodeBlock}



Markdown will turn this into:



\\\\begin{CodeBlock}{text}
<a href=\\"http://example.com/\\">http://example.com/</a>
\\\\end{CodeBlock}



Automatic links for email addresses work similarly, except that
Markdown will also perform a bit of randomized decimal and hex
entity-encoding to help obscure your address from address-harvesting
spambots. For example, Markdown will turn this:



\\\\begin{CodeBlock}{text}
<address@example.com>
\\\\end{CodeBlock}



into something like this:



\\\\begin{CodeBlock}{text}
<a href=\\"&#x6D;&#x61;i&#x6C;&#x74;&#x6F;:&#x61;&#x64;&#x64;&#x72;&#x65;
&#115;&#115;&#64;&#101;&#120;&#x61;&#109;&#x70;&#x6C;e&#x2E;&#99;&#111;
&#109;\\">&#x61;&#x64;&#x64;&#x72;&#x65;&#115;&#115;&#64;&#101;&#120;&#x61;
&#109;&#x70;&#x6C;e&#x2E;&#99;&#111;&#109;</a>
\\\\end{CodeBlock}



which will render in a browser as a clickable link to \\"\\\\externalLink{address@example.com}{mailto:address@example.com}\\".



(This sort of entity-encoding trick will indeed fool many, if not
most, address-harvesting bots, but it definitely won't fool all of
them. It's better than nothing, but an address published in this way
will probably eventually start receiving spam.)



<h3 id=\\"backslash\\">Backslash Escapes</h3>

Markdown allows you to use backslash escapes to generate literal
characters which would otherwise have special meaning in Markdown's
formatting syntax. For example, if you wanted to surround a word with
literal asterisks (instead of an HTML \\\\texttt{<em>} tag), you can backslashes
before the asterisks, like this:



\\\\begin{CodeBlock}{text}
\\\\*literal asterisks\\\\*
\\\\end{CodeBlock}



Markdown provides backslash escapes for the following characters:



\\\\begin{CodeBlock}{text}
\\\\   backslash
\`   backtick
*   asterisk
_   underscore
{}  curly braces
[]  square brackets
()  parentheses
#   hash mark
+	plus sign
-	minus sign (hyphen)
.   dot
!   exclamation mark
\\\\end{CodeBlock}"
`;

exports[`rebber: remark specs mixed-indentation: mixed-indentation 1`] = `
"\\\\part{Mixed spaces and tabs}


\\\\begin{itemize}
\\\\item\\\\relax Very long
paragraph
\\\\end{itemize}


\\\\begin{enumerate}
\\\\item\\\\relax Very long
paragraph
\\\\end{enumerate}


\\\\begin{itemize}
\\\\item\\\\relax Very long
paragraph
\\\\end{itemize}


\\\\begin{enumerate}
\\\\item\\\\relax Very long
paragraph
\\\\end{enumerate}"
`;

exports[`rebber: remark specs nested-blockquotes: nested-blockquotes 1`] = `
"\\\\begin{Quotation}
foo

\\\\begin{Quotation}
bar
\\\\end{Quotation}

foo
\\\\end{Quotation}"
`;

exports[`rebber: remark specs nested-code: nested-code 1`] = `
"\\\\texttt{hi ther \`\` ok \`\`\`}



\\\\texttt{\`hi ther\`}"
`;

exports[`rebber: remark specs nested-em: nested-em 1`] = `
"\\\\textit{test \\\\textbf{test} test}



\\\\textit{test \\\\textbf{test} test}"
`;

exports[`rebber: remark specs nested-references: nested-references 1`] = `
"This nested image should work:



[\\\\includegraphics{undefined}]



This nested link should not work:



[[Foo][bar]]"
`;

exports[`rebber: remark specs nested-square-link: nested-square-link 1`] = `
"[the \`]\` character](/url)



[the \\\\texttt{[} character](/url)



[the \`\` \\\\externalLink{ \`\`\` character}{/url}



\\\\externalLink{the \\\\texttt{\`} character}{/url}"
`;

exports[`rebber: remark specs no-positionals: no-positionals 1`] = `
"This document tests for the working of \\\\texttt{position: false} as a parse
option.



\\\\begin{Quotation}
Block-quotes

\\\\begin{itemize}
\\\\item\\\\relax With list items.
\\\\end{itemize}
\\\\end{Quotation}



Another block-quote:



\\\\begin{Quotation}
\\\\begin{enumerate}
\\\\item\\\\relax And another list.
\\\\end{enumerate}
\\\\end{Quotation}



Some \\\\externalLink{deeply \\\\textbf{nested \\\\textit{elements}}}{http://example.com}



An entity: ©, and an warning entity: ©."
`;

exports[`rebber: remark specs not-a-link: not-a-link 1`] = `"[test](not a link)"`;

exports[`rebber: remark specs ordered-and-unordered-lists: ordered-and-unordered-lists 1`] = `
"\\\\chapter{Unordered}


Asterisks tight:



\\\\begin{itemize}
\\\\item\\\\relax asterisk 1
\\\\item\\\\relax asterisk 2
\\\\item\\\\relax asterisk 3
\\\\end{itemize}


Asterisks loose:



\\\\begin{itemize}
\\\\item\\\\relax asterisk 1
\\\\item\\\\relax asterisk 2
\\\\item\\\\relax asterisk 3
\\\\end{itemize}


\\\\horizontalLine



Pluses tight:



\\\\begin{itemize}
\\\\item\\\\relax Plus 1
\\\\item\\\\relax Plus 2
\\\\item\\\\relax Plus 3
\\\\end{itemize}


Pluses loose:



\\\\begin{itemize}
\\\\item\\\\relax Plus 1
\\\\item\\\\relax Plus 2
\\\\item\\\\relax Plus 3
\\\\end{itemize}


\\\\horizontalLine



Minuses tight:



\\\\begin{itemize}
\\\\item\\\\relax Minus 1
\\\\item\\\\relax Minus 2
\\\\item\\\\relax Minus 3
\\\\end{itemize}


Minuses loose:



\\\\begin{itemize}
\\\\item\\\\relax Minus 1
\\\\item\\\\relax Minus 2
\\\\item\\\\relax Minus 3
\\\\end{itemize}


\\\\chapter{Ordered}


Tight:



\\\\begin{enumerate}
\\\\item\\\\relax First
\\\\item\\\\relax Second
\\\\item\\\\relax Third
\\\\end{enumerate}


and:



\\\\begin{enumerate}
\\\\item\\\\relax One
\\\\item\\\\relax Two
\\\\item\\\\relax Three
\\\\end{enumerate}


Loose using tabs:



\\\\begin{enumerate}
\\\\item\\\\relax First
\\\\item\\\\relax Second
\\\\item\\\\relax Third
\\\\end{enumerate}


and using spaces:



\\\\begin{enumerate}
\\\\item\\\\relax One
\\\\item\\\\relax Two
\\\\item\\\\relax Three
\\\\end{enumerate}


Multiple paragraphs:



\\\\begin{enumerate}
\\\\item\\\\relax Item 1, graf one.

Item 2. graf two. The quick brown fox jumped over the lazy dog's
back.
\\\\item\\\\relax Item 2.
\\\\item\\\\relax Item 3.
\\\\end{enumerate}


\\\\chapter{Nested}


\\\\begin{itemize}
\\\\item\\\\relax Tab

\\\\begin{itemize}
\\\\item\\\\relax Tab

\\\\begin{itemize}
\\\\item\\\\relax Tab
\\\\end{itemize}
\\\\end{itemize}
\\\\end{itemize}


Here's another:



\\\\begin{enumerate}
\\\\item\\\\relax First
\\\\item\\\\relax Second:

\\\\begin{itemize}
\\\\item\\\\relax Fee
\\\\item\\\\relax Fie
\\\\item\\\\relax Foe
\\\\end{itemize}
\\\\item\\\\relax Third
\\\\end{enumerate}


Same thing but with paragraphs:



\\\\begin{enumerate}
\\\\item\\\\relax First
\\\\item\\\\relax Second:

\\\\begin{itemize}
\\\\item\\\\relax Fee
\\\\item\\\\relax Fie
\\\\item\\\\relax Foe
\\\\end{itemize}
\\\\item\\\\relax Third
\\\\end{enumerate}


This was an error in Markdown 1.0.1:



\\\\begin{itemize}
\\\\item\\\\relax this

\\\\begin{itemize}
\\\\item\\\\relax sub
\\\\end{itemize}
that
\\\\end{itemize}"
`;

exports[`rebber: remark specs ordered-different-types: ordered-different-types 1`] = `
"\\\\begin{enumerate}
\\\\item\\\\relax foo
\\\\item\\\\relax bar
3) baz
\\\\end{enumerate}"
`;

exports[`rebber: remark specs ordered-with-parentheses: ordered-with-parentheses 1`] = `
"\\\\chapter{Ordered}


Tight:



1)	First
2)	Second
3)	Third



and:



1) One
2) Two
3) Three



Loose using tabs:



1)	First



2)	Second



3)	Third



and using spaces:



1) One



2) Two



3) Three



Multiple paragraphs:



1)	Item 1, graf one.



\\\\begin{CodeBlock}{text}
Item 2. graf two. The quick brown fox jumped over the lazy dog's
back.
\\\\end{CodeBlock}



2)	Item 2.



3)	Item 3."
`;

exports[`rebber: remark specs paragraphs-and-indentation: paragraphs-and-indentation 1`] = `
"\\\\part{Without lines.}


This is a paragraph
and this is further text



This is a paragraph
and this is further text



This is a paragraph with some asterisks



\\\\begin{CodeBlock}{text}
***
\\\\end{CodeBlock}



This is a paragraph followed by a horizontal rule



\\\\horizontalLine



\\\\part{With lines.}


This is a paragraph



\\\\begin{CodeBlock}{text}
and this is code
\\\\end{CodeBlock}



This is a paragraph



and this is a new paragraph



This is a paragraph with some asterisks in a code block



\\\\begin{CodeBlock}{text}
***
\\\\end{CodeBlock}



This is a paragraph followed by a horizontal rule



\\\\horizontalLine"
`;

exports[`rebber: remark specs paragraphs-empty: paragraphs-empty 1`] = `
"aaa



\\\\part{aaa}


bbb



ccc"
`;

exports[`rebber: remark specs ref-paren: ref-paren 1`] = `
"\\\\hyperref[hi]{hi}



\\\\footnote{\\\\label{hi}\\\\externalLink{/url}{/url}}"
`;

exports[`rebber: remark specs reference-image-empty-alt: reference-image-empty-alt 1`] = `
"\\\\includegraphics{/xyz.png}



\\\\footnote{\\\\label{1}\\\\externalLink{/xyz.png}{/xyz.png}}"
`;

exports[`rebber: remark specs reference-link-escape: reference-link-escape 1`] = `
"[b*r*], \\\\hyperref[b\\\\*r*]{b*r*}, \\\\hyperref[b\\\\*r*]{b*r*}.



\\\\includegraphics{http://google.com}, \\\\includegraphics{http://google.com}, \\\\includegraphics{http://google.com}.



\\\\footnote{\\\\label{b\\\\*r*}\\\\externalLink{http://google.com}{http://google.com}}"
`;

exports[`rebber: remark specs reference-link-not-closed: reference-link-not-closed 1`] = `
"[bar]bar



[bar]



[bar]"
`;

exports[`rebber: remark specs reference-link-with-angle-brackets: reference-link-with-angle-brackets 1`] = `
"\\\\hyperref[foo]{foo}



\\\\footnote{\\\\label{foo}\\\\externalLink{./url with spaces}{./url with spaces}}"
`;

exports[`rebber: remark specs reference-link-with-multiple-definitions: reference-link-with-multiple-definitions 1`] = `
"\\\\hyperref[foo]{foo}



\\\\footnote{\\\\label{foo}\\\\externalLink{first}{first}}

\\\\footnote{\\\\label{foo-1}\\\\externalLink{second}{second}}"
`;

exports[`rebber: remark specs same-bullet: same-bullet 1`] = `
"\\\\begin{itemize}
\\\\item\\\\relax test
\\\\end{itemize}



\\\\begin{itemize}
\\\\item\\\\relax test
\\\\end{itemize}



\\\\begin{itemize}
\\\\item\\\\relax test
\\\\end{itemize}"
`;

exports[`rebber: remark specs stringify-escape: stringify-escape 1`] = `
"Characters that should be escaped in general:



\\\\textbackslash{} \` * [



Characters that shouldn't:



\\\\{\\\\}]()\\\\#+-.!>\\"\\\\$\\\\%',/:;=?@\\\\textasciicircum{}\\\\textasciitilde{}



Underscores are \\\\_escaped\\\\_ unless they appear in\\\\_the\\\\_middle\\\\_of\\\\_a\\\\_word.
or \\\\textbf{\\\\_here}, or here\\\\_\\\\_



Ampersands are escaped only when they would otherwise start an entity:



\\\\begin{itemize}
\\\\item\\\\relax \\\\textbackslash{}©cat \\\\textbackslash{}\\\\& \\\\textbackslash{}\\\\&
\\\\item\\\\relax \\\\&copycat \\\\&amp; \\\\&\\\\#x26
\\\\item\\\\relax But: ©cat; \\\\texttt{\\\\&between;} \\\\&foo; \\\\& AT\\\\&T \\\\&c
\\\\end{itemize}


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:



\\\\begin{itemize}
\\\\item\\\\relax [two*three]
\\\\item\\\\relax [two*three]
\\\\item\\\\relax [a\\\\textbackslash{}a]
\\\\item\\\\relax [a\\\\textbackslash{}a]
\\\\item\\\\relax [a\\\\textbackslash{}\\\\textbackslash{}a]
\\\\item\\\\relax [a\\\\_a\\\\_a]
\\\\end{itemize}


\\\\textbf{GFM:}



Colon should be escaped in URLs:



\\\\begin{itemize}
\\\\item\\\\relax http\\\\textbackslash{}://user:password@host:port/path?key=value\\\\#fragment
\\\\item\\\\relax https\\\\textbackslash{}://user:password@host:port/path?key=value\\\\#fragment
\\\\item\\\\relax http://user:password@host:port/path?key=value\\\\#fragment
\\\\item\\\\relax https://user:password@host:port/path?key=value\\\\#fragment
\\\\end{itemize}


Double tildes should be \\\\textasciitilde{}\\\\textasciitilde{}escaped\\\\textasciitilde{}\\\\textasciitilde{}.
And here: foo\\\\textasciitilde{}\\\\textasciitilde{}.



Pipes should not be escaped here: |



\\\\begin{longtblr}{colspec={X[-1] X[-1]},rowhead=1,row{1}={font=\\\\bfseries}}
here & they \\\\\\\\
should & tho|ugh \\\\\\\\
\\\\end{longtblr}


And here:



| here   | they   |
| ---- | ----- |
| should | though |



And here:



here   | they
---- | ------
should | though



\\\\textbf{Commonmark:}



Open angle bracket should be escaped:



\\\\begin{itemize}
\\\\item\\\\relax \\\\textbackslash{}<div>\\\\textbackslash{}</div>
\\\\item\\\\relax \\\\textbackslash{}<http\\\\textbackslash{}:google.com>
\\\\item\\\\relax <div></div>
\\\\item\\\\relax <http:google.com>
\\\\end{itemize}"
`;

exports[`rebber: remark specs strong-and-em-together-one: strong-and-em-together-one 1`] = `
"\\\\textbf{\\\\textit{This is strong and em.}}



So is \\\\textbf{\\\\textit{this}} word.



\\\\textbf{\\\\textit{This is strong and em.}}



So is \\\\textbf{\\\\textit{this}} word."
`;

exports[`rebber: remark specs strong-and-em-together-two: strong-and-em-together-two 1`] = `
"perform\\\\_complicated\\\\_task



do\\\\_this\\\\_and\\\\_do\\\\_that\\\\_and\\\\_another\\\\_thing



perform\\\\textit{complicated}task



do\\\\textit{this}and\\\\textit{do}that\\\\textit{and}another*thing"
`;

exports[`rebber: remark specs strong-emphasis: strong-emphasis 1`] = `
"Foo \\\\textbf{bar} \\\\textbf{baz}.



Foo \\\\textbf{bar} \\\\textbf{baz}."
`;

exports[`rebber: remark specs strong-initial-white-space: strong-initial-white-space 1`] = `
"\\\\textbf{ bar }.



\\\\textbf{ bar }."
`;

exports[`rebber: remark specs table: table 1`] = `
"\\\\begin{longtblr}{colspec={X[-1] X[-1]},rowhead=1,row{1}={font=\\\\bfseries}}
Heading 1 & \\\\textbf{H}eading 2 \\\\\\\\
Cell 1 & Cell 2 \\\\\\\\
Cell 3 & Cell 4 \\\\\\\\
\\\\end{longtblr}


\\\\begin{longtblr}{colspec={X[-1] X[-1] X[-1] X[-1]},rowhead=1,row{1}={font=\\\\bfseries}}
Header 1 & Header 2 & Header 3 & Header 4 \\\\\\\\
Cell 1 & Cell 2 & Cell 3 & Cell 4 \\\\\\\\
Cell 5 & Cell 6 & Cell 7 & Cell 8 \\\\\\\\
\\\\end{longtblr}


\\\\begin{CodeBlock}{text}
Test code
\\\\end{CodeBlock}



\\\\begin{longtblr}{colspec={X[-1] X[-1]},rowhead=1,row{1}={font=\\\\bfseries}}
Header 1 & Header 2 \\\\\\\\
Cell 1 & Cell 2 \\\\\\\\
Cell 3 & Cell 4 \\\\\\\\
\\\\end{longtblr}


\\\\begin{longtblr}{colspec={X[-1] X[-1] X[-1] X[-1]},rowhead=1,row{1}={font=\\\\bfseries}}
Header 1 & Header 2 & Header 3 & Header 4 \\\\\\\\
Cell 1 & Cell 2 & Cell 3 & Cell 4 \\\\\\\\
\\\\textit{Cell 5} & Cell 6 & Cell 7 & Cell 8 \\\\\\\\
\\\\end{longtblr}"
`;

exports[`rebber: remark specs table-empty-initial-cell: table-empty-initial-cell 1`] = `
"\\\\begin{longtblr}{colspec={X[-1] X[-1] X[-1]},rowhead=1,row{1}={font=\\\\bfseries}}
 & a & c \\\\\\\\
a & b & c \\\\\\\\
a & b & c \\\\\\\\
\\\\end{longtblr}"
`;

exports[`rebber: remark specs table-escaped-pipes: table-escaped-pipes 1`] = `
"\\\\begin{longtblr}{colspec={X[-1] X[-1] X[-1]},rowhead=1,row{1}={font=\\\\bfseries}}
First & Second & third \\\\\\\\
first & second & third \\\\\\\\
first & second | second & third | \\\\\\\\
first & second \\\\textbackslash{} & third \\\\textbackslash{} \\\\\\\\
first & second \\\\textbackslash{}| second & third \\\\textbackslash{}| \\\\\\\\
\\\\end{longtblr}"
`;

exports[`rebber: remark specs table-in-list: table-in-list 1`] = `
"\\\\begin{itemize}
\\\\item\\\\relax Unordered:

\\\\begin{longtblr}{colspec={X[-1] X[-1]},rowhead=1,row{1}={font=\\\\bfseries}}
A & B \\\\\\\\
1 & 2 \\\\\\\\
\\\\end{longtblr}
\\\\item\\\\relax Ordered:

\\\\begin{longtblr}{colspec={X[-1] X[-1]},rowhead=1,row{1}={font=\\\\bfseries}}
A & B \\\\\\\\
1 & 2 \\\\\\\\
\\\\end{longtblr}
\\\\end{itemize}"
`;

exports[`rebber: remark specs table-invalid-alignment: table-invalid-alignment 1`] = `
"Missing alignment characters:



| a | b | c |
|   |---|---|
| d | e | f |



\\\\horizontalLine



| a | b | c |
|---|---|   |
| d | e | f |



Invalid characters:



| a | b | c |
|---|-*-|---|
| d | e | f |"
`;

exports[`rebber: remark specs table-loose: table-loose 1`] = `
"\\\\begin{longtblr}{colspec={X[-1] X[-1]},rowhead=1,row{1}={font=\\\\bfseries}}
Header 1 & Header 2 \\\\\\\\
Cell 1 & Cell 2 \\\\\\\\
Cell 3 & Cell 4 \\\\\\\\
\\\\end{longtblr}"
`;

exports[`rebber: remark specs table-no-body: table-no-body 1`] = `
"\\\\part{Foo}


\\\\begin{longtblr}{colspec={X[-1] X[-1] X[-1]},rowhead=1,row{1}={font=\\\\bfseries}}
Name & GitHub & Twitter \\\\\\\\
\\\\end{longtblr}"
`;

exports[`rebber: remark specs table-no-end-of-line: table-no-end-of-line 1`] = `
"\\\\begin{longtblr}{colspec={X[-1] X[-1]},rowhead=1,row{1}={font=\\\\bfseries}}
foo & bar \\\\\\\\
1 & 2 \\\\\\\\
\\\\end{longtblr}"
`;

exports[`rebber: remark specs table-one-column: table-one-column 1`] = `
"This is a table:



\\\\begin{longtblr}{colspec={X[-1]},rowhead=1,row{1}={font=\\\\bfseries}}
a \\\\\\\\
b \\\\\\\\
\\\\end{longtblr}"
`;

exports[`rebber: remark specs table-one-row: table-one-row 1`] = `
"This is a table:



\\\\begin{longtblr}{colspec={X[-1] X[-1] X[-1]},rowhead=1,row{1}={font=\\\\bfseries}}
a & b & c \\\\\\\\
\\\\end{longtblr}"
`;

exports[`rebber: remark specs table-padded: table-padded 1`] = `
"\\\\begin{longtblr}{colspec={X[-1] X[-1]},rowhead=1,row{1}={font=\\\\bfseries}}
Header 1 & Header 2 \\\\\\\\
Cell 1 & Cell 2 \\\\\\\\
Cell 3 & Cell 4 \\\\\\\\
\\\\end{longtblr}"
`;

exports[`rebber: remark specs table-pipes-in-code: table-pipes-in-code 1`] = `
"\\\\begin{longtblr}{colspec={X[-1] X[-1] X[-1] X[-1] X[-1]},rowhead=1,row{1}={font=\\\\bfseries}}
abc & head2 \\\\\\\\
x & \` &  &  & \` \\\\\\\\
x & \` \\\\\\\\
x & \` & \` \\\\\\\\
x & \\\\texttt{f} \\\\\\\\
x & \`\`\`\` \\\\\\\\
x & \`\\\\texttt{f} \\\\\\\\
\\\\end{longtblr}


\\\\begin{longtblr}{colspec={X[-1] X[-1] X[-1]},rowhead=1,row{1}={font=\\\\bfseries}}
abc & head2 \\\\\\\\
x & \` \\\\\\\\
x & \` & \` \\\\\\\\
x & \\\\texttt{f} \\\\\\\\
x & \`\`\`\` \\\\\\\\
x & \`\\\\texttt{f} \\\\\\\\
\\\\end{longtblr}"
`;

exports[`rebber: remark specs table-spaced: table-spaced 1`] = `
"\\\\begin{longtblr}{colspec={X[-1] X[-1]},rowhead=1,row{1}={font=\\\\bfseries}}
Header 1 & Header 2 \\\\\\\\
Cell 1 & Cell 2 \\\\\\\\
Cell 3 & Cell 4 \\\\\\\\
\\\\end{longtblr}"
`;

exports[`rebber: remark specs table-with-image: table-with-image 1`] = `
"Someone wanted to do this, let's implement it!



\\\\begin{longtblr}{colspec={X[-1] X[-1]},rowhead=1,row{1}={font=\\\\bfseries}}
c1 & c2 \\\\\\\\
c3 & \\\\includegraphics{https://zestedesavoir.com/media/galleries/426/56dc4a1e-416b-4a9d-830d-95b45d58a17a.png} \\\\\\\\
\\\\end{longtblr}"
`;

exports[`rebber: remark specs tabs: tabs 1`] = `
"\\\\begin{itemize}
\\\\item\\\\relax this is a list item
indented with tabs
\\\\item\\\\relax this is a list item
indented with spaces
\\\\end{itemize}


Code:



\\\\begin{CodeBlock}{text}
this code block is indented by one tab
\\\\end{CodeBlock}



And:



\\\\begin{CodeBlock}{text}
	this code block is indented by two tabs
\\\\end{CodeBlock}



And:



\\\\begin{CodeBlock}{text}
+	this is an example list item
	indented with tabs

+   this is an example list item
    indented with spaces
\\\\end{CodeBlock}"
`;

exports[`rebber: remark specs tabs-and-spaces: tabs-and-spaces 1`] = `
"\\\\begin{itemize}
\\\\item\\\\relax this is a list item
indented with tabs
\\\\item\\\\relax this is a list item
indented with spaces
\\\\end{itemize}


Code:



\\\\begin{CodeBlock}{text}
this code block is indented by one tab
\\\\end{CodeBlock}



And:



\\\\begin{CodeBlock}{text}
	this code block is indented by two tabs
\\\\end{CodeBlock}



And:



\\\\begin{CodeBlock}{text}
+	this is an example list item
	indented with tabs

+   this is an example list item
    indented with spaces
\\\\end{CodeBlock}"
`;

exports[`rebber: remark specs task-list: task-list 1`] = `
"\\\\part{Empty items}


\\\\begin{itemize}
\\\\item\\\\relax [ ]
\\\\item\\\\relax [	]
\\\\end{itemize}


\\\\begin{enumerate}
\\\\item\\\\relax [x]
\\\\item\\\\relax [X]
\\\\end{enumerate}


\\\\part{Single space}


\\\\begin{itemize}
\\\\item[$\\\\square$]\\\\relax 
\\\\item[$\\\\square$]\\\\relax 
\\\\end{itemize}


\\\\begin{enumerate}
\\\\item[$\\\\boxtimes$]\\\\relax 
\\\\item[$\\\\boxtimes$]\\\\relax 
\\\\end{enumerate}


\\\\part{Tab}


\\\\begin{itemize}
\\\\item[$\\\\square$]\\\\relax 
\\\\item[$\\\\square$]\\\\relax 
\\\\end{itemize}


\\\\begin{enumerate}
\\\\item[$\\\\boxtimes$]\\\\relax 
\\\\item[$\\\\boxtimes$]\\\\relax 
\\\\end{enumerate}


\\\\part{No white space with content}


\\\\begin{itemize}
\\\\item\\\\relax [ ]Hello;
\\\\item\\\\relax [	]World;
\\\\end{itemize}


\\\\begin{enumerate}
\\\\item\\\\relax [x]Foo.
\\\\item\\\\relax [X]Bar
\\\\end{enumerate}


\\\\part{Single space with content}


\\\\begin{itemize}
\\\\item[$\\\\square$]\\\\relax Hello;
\\\\item[$\\\\square$]\\\\relax World;
\\\\end{itemize}


\\\\begin{enumerate}
\\\\item[$\\\\boxtimes$]\\\\relax Foo.
\\\\item[$\\\\boxtimes$]\\\\relax World :D
\\\\end{enumerate}


\\\\part{Single tab with content}


\\\\begin{itemize}
\\\\item[$\\\\square$]\\\\relax Hello;
\\\\item[$\\\\square$]\\\\relax World;
\\\\end{itemize}


\\\\begin{enumerate}
\\\\item[$\\\\boxtimes$]\\\\relax Foo.
\\\\item[$\\\\boxtimes$]\\\\relax Hello.
\\\\end{enumerate}


\\\\part{Multiple spaces with content}


\\\\begin{itemize}
\\\\item[$\\\\square$]\\\\relax \\\\begin{CodeBlock}{text}
Hello;
\\\\end{CodeBlock}
\\\\item[$\\\\square$]\\\\relax \\\\begin{CodeBlock}{text}
World;
\\\\end{CodeBlock}
\\\\end{itemize}


\\\\begin{enumerate}
\\\\item[$\\\\boxtimes$]\\\\relax Foo.
\\\\item[$\\\\boxtimes$]\\\\relax Bar.
\\\\end{enumerate}


\\\\part{Multiple tabs with content}


\\\\begin{itemize}
\\\\item[$\\\\square$]\\\\relax \\\\begin{CodeBlock}{text}
Hello;
\\\\end{CodeBlock}
\\\\item[$\\\\square$]\\\\relax \\\\begin{CodeBlock}{text}
World;
\\\\end{CodeBlock}
\\\\end{itemize}


\\\\begin{enumerate}
\\\\item[$\\\\boxtimes$]\\\\relax \\\\begin{CodeBlock}{text}
Foo.
\\\\end{CodeBlock}
\\\\item[$\\\\boxtimes$]\\\\relax \\\\begin{CodeBlock}{text}
Bar.
\\\\end{CodeBlock}
\\\\end{enumerate}


\\\\part{Mixed tabs and spaces}


\\\\begin{itemize}
\\\\item[$\\\\square$]\\\\relax \\\\begin{CodeBlock}{text}
    Hello;
\\\\end{CodeBlock}
\\\\end{itemize}


\\\\begin{enumerate}
\\\\item[$\\\\boxtimes$]\\\\relax \\\\begin{CodeBlock}{text}
World;
\\\\end{CodeBlock}
\\\\end{enumerate}


\\\\begin{itemize}
\\\\item[$\\\\square$]\\\\relax \\\\begin{CodeBlock}{text}
	Hello;
\\\\end{CodeBlock}
\\\\item[$\\\\square$]\\\\relax World.
\\\\end{itemize}


\\\\begin{enumerate}
\\\\item[$\\\\boxtimes$]\\\\relax Bar.
\\\\end{enumerate}


\\\\part{Line breaks}


\\\\begin{itemize}
\\\\item\\\\relax [
] Hello;
\\\\end{itemize}


\\\\begin{enumerate}
\\\\item\\\\relax [
] Hello;
\\\\end{enumerate}


\\\\part{Multiple unfinished characters}


\\\\begin{itemize}
\\\\item\\\\relax [  ] Hello;
\\\\end{itemize}


\\\\begin{enumerate}
\\\\item\\\\relax [
] World;
\\\\item\\\\relax [		] Hello;
\\\\item\\\\relax [ 	 ] World.
\\\\end{enumerate}"
`;

exports[`rebber: remark specs task-list-ordered: task-list-ordered 1`] = `
"\\\\begin{enumerate}
\\\\item[$\\\\square$]\\\\relax Mercury;
\\\\item\\\\relax [] Venus (this one’s invalid);
\\\\item[$\\\\boxtimes$]\\\\relax Earth:

\\\\begin{enumerate}
\\\\item[$\\\\boxtimes$]\\\\relax Moon.
\\\\end{enumerate}
\\\\item[$\\\\square$]\\\\relax Mars;
\\\\item\\\\relax [] Neptune (this one’s also invalid).
\\\\end{enumerate}"
`;

exports[`rebber: remark specs task-list-unordered-asterisk: task-list-unordered-asterisk 1`] = `
"\\\\begin{itemize}
\\\\item[$\\\\square$]\\\\relax Mercury;
\\\\item\\\\relax [] Venus (this one’s invalid);
\\\\item[$\\\\boxtimes$]\\\\relax Earth:

\\\\begin{itemize}
\\\\item[$\\\\boxtimes$]\\\\relax Moon.
\\\\end{itemize}
\\\\item[$\\\\square$]\\\\relax Mars;
\\\\item\\\\relax [] Neptune (this one’s also invalid).
\\\\end{itemize}"
`;

exports[`rebber: remark specs task-list-unordered-dash: task-list-unordered-dash 1`] = `
"\\\\begin{itemize}
\\\\item[$\\\\square$]\\\\relax Mercury;
\\\\item\\\\relax [] Venus (this one’s invalid);
\\\\item[$\\\\boxtimes$]\\\\relax Earth:

\\\\begin{itemize}
\\\\item[$\\\\boxtimes$]\\\\relax Moon.
\\\\end{itemize}
\\\\item[$\\\\square$]\\\\relax Mars;
\\\\item\\\\relax [] Neptune (this one’s also invalid).
\\\\end{itemize}"
`;

exports[`rebber: remark specs task-list-unordered-plus: task-list-unordered-plus 1`] = `
"\\\\begin{itemize}
\\\\item[$\\\\square$]\\\\relax Mercury;
\\\\item\\\\relax [] Venus (this one’s invalid);
\\\\item[$\\\\boxtimes$]\\\\relax Earth:

\\\\begin{itemize}
\\\\item[$\\\\boxtimes$]\\\\relax Moon.
\\\\end{itemize}
\\\\item[$\\\\square$]\\\\relax Mars;
\\\\item\\\\relax [] Neptune (this one’s also invalid).
\\\\end{itemize}"
`;

exports[`rebber: remark specs tidyness: tidyness 1`] = `
"\\\\begin{Quotation}
A list within a blockquote:

\\\\begin{itemize}
\\\\item\\\\relax asterisk 1
\\\\item\\\\relax asterisk 2
\\\\item\\\\relax asterisk 3
\\\\end{itemize}
\\\\end{Quotation}"
`;

exports[`rebber: remark specs title-attributes: title-attributes 1`] = `
"\\\\part{Links}


\\\\begin{longtblr}{colspec={X[-1] X[-1] X[-1] X[-1] X[-1] X[-1] X[-1]},rowhead=1,row{1}={font=\\\\bfseries}}
Implementation & Characters & Nested & Mismatched & Escaped & Named Entities & Numbered Entities \\\\\\\\
Markdown.pl & \\\\texttt{\\"} & Yes & Yes & No & Yes & Yes \\\\\\\\
GitHub & \\\\texttt{\\"} & Yes & Yes & No & No & No \\\\\\\\
CommonMark & \\\\texttt{\\"} & No & No & Yes & Yes & Yes \\\\\\\\
Markdown.pl & \\\\texttt{'} & Yes & Yes & No & Yes & Yes \\\\\\\\
GitHub & \\\\texttt{'} & Yes & Yes & No & No & No \\\\\\\\
CommonMark & \\\\texttt{'} & No & No & Yes & Yes & Yes \\\\\\\\
Markdown.pl & \\\\texttt{()} & - & - & - & - & - \\\\\\\\
GitHub & \\\\texttt{()} & - & - & - & - & - \\\\\\\\
CommonMark & \\\\texttt{()} & No & Yes & Yes & Yes & Yes \\\\\\\\
\\\\end{longtblr}


\\\\chapter{Double quotes}


\\\\externalLink{Hello}{./world.html}



\\\\externalLink{Hello}{./world.html}



\\\\externalLink{Hello}{./world.html}



\\\\externalLink{Hello}{./world.html}



\\\\externalLink{Hello}{./world.html}



\\\\externalLink{Hello}{./world.html}



\\\\chapter{Single quotes}


\\\\externalLink{Hello}{./world.html}



\\\\externalLink{Hello}{./world.html}



\\\\externalLink{Hello}{./world.html}



\\\\externalLink{Hello}{./world.html}



\\\\externalLink{Hello}{./world.html}



\\\\externalLink{Hello}{./world.html}



\\\\part{Images}


\\\\chapter{Double quotes}


\\\\includegraphics{./world.png}



\\\\includegraphics{./world.png}



\\\\includegraphics{./world.png}



\\\\includegraphics{./world.png}



\\\\includegraphics{./world.png}



\\\\includegraphics{./world.png}



\\\\chapter{Single quotes}


\\\\includegraphics{./world.png}



\\\\includegraphics{./world.png}



\\\\includegraphics{./world.png}



\\\\includegraphics{./world.png}



\\\\includegraphics{./world.png}



\\\\includegraphics{./world.png}"
`;

exports[`rebber: remark specs toplevel-paragraphs: toplevel-paragraphs 1`] = `
"hello world
how are you
how are you



hello world



\\\\begin{CodeBlock}{text}
how are you
\\\\end{CodeBlock}



hello world



\\\\horizontalLine



hello world



\\\\part{how are you}


hello world



\\\\part{how are you}


hello world



\\\\begin{Quotation}
how are you
\\\\end{Quotation}



hello world



\\\\begin{itemize}
\\\\item\\\\relax how are you
\\\\end{itemize}


hello world



<div>how are you</div>

hello world
<span>how are you</span>



hello \\\\hyperref[how]{world}



\\\\footnote{\\\\label{how}\\\\externalLink{/are/you}{/are/you}}

<div>hello</div>

<span>hello</span>"
`;

exports[`rebber: remark specs tricky-list: tricky-list 1`] = `
"\\\\textbf{hello} \\\\textit{world}



\\\\begin{itemize}
\\\\item\\\\relax hello world
\\\\end{itemize}


\\\\textbf{hello} \\\\textit{world}



\\\\begin{itemize}
\\\\item\\\\relax hello world
\\\\end{itemize}


\\\\textbf{hello} \\\\textit{world}



\\\\begin{itemize}
\\\\item\\\\relax Hello world
\\\\end{itemize}


\\\\textbf{hello} \\\\textit{world}



\\\\begin{itemize}
\\\\item\\\\relax hello world
\\\\end{itemize}"
`;

exports[`rebber: remark specs with config: custom macros amps-and-angles-encoding 1`] = `
"AT\\\\&T has an ampersand in their name.



AT\\\\&T is another way to write it.



This \\\\& that.



4 < 5.



6 > 5.



Here's a [linkReference(reference=1, content=link)] with an ampersand in the URL.



Here's a link with an amersand in the link text: [linkReference(reference=2, content=AT\\\\&T)].



Here's an inline \\\\externalLink{link}{/script?foo=1\\\\&bar=2}.



Here's an inline \\\\externalLink{link}{/script?foo=1\\\\&bar=2}.



[definition(identifier=1, url=http://example.com/?foo=1&bar=2, title=null)]

[definition(identifier=2, url=http://att.com/, title=AT&T)]"
`;

exports[`rebber: remark specs with config: custom macros auto-link 1`] = `
"Link: \\\\externalLink{http://example.com/}{http://example.com/}.



Link to an email: \\\\externalLink{somename@example.com}{mailto:somename@example.com}.



Link to an email: \\\\externalLink{somename@example.com}{mailto:somename@example.com}.



With an ampersand: \\\\externalLink{http://example.com/?foo=1\\\\&bar=2}{http://example.com/?foo=1\\\\&bar=2}



[unorderedList([listItem(In a list?)][listItem(\\\\externalLink{http://example.com/}{http://example.com/})][listItem(It should.)])]

[blockquote(Blockquoted: \\\\externalLink{http://example.com/}{http://example.com/})]

Auto-links should not occur here: \\\\texttt{<http://example.com/>}



[code(or here: <http://example.com/>)]"
`;

exports[`rebber: remark specs with config: custom macros auto-link-invalid 1`] = `
"<http:/



<https:/



<mailto:foobarbaz>



<http:/google



<foo@"
`;

exports[`rebber: remark specs with config: custom macros auto-link-lines 1`] = `
"hello world
\\\\externalLink{http://example.com}{http://example.com}



hello world
\\\\externalLink{somename@example.com}{mailto:somename@example.com}"
`;

exports[`rebber: remark specs with config: custom macros auto-link-output 1`] = `
"Link: \\\\externalLink{http://example.com/}{http://example.com/}.



Link to an email: \\\\externalLink{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: \\\\externalLink{google.com}{google.com}."
`;

exports[`rebber: remark specs with config: custom macros auto-link-url 1`] = `
"This should be a link: \\\\externalLink{http://example.com/hello-world}{http://example.com/hello-world}.



Also, subdomain should be a part of the link (\\\\externalLink{http://foo.example.com/(hello[world])}{http://foo.example.com/(hello[world])}).



So should this: \\\\externalLink{foo@bar.com}{mailto:foo@bar.com}."
`;

exports[`rebber: remark specs with config: custom macros auto-link-url-invalid 1`] = `
"http://<example



https:// foo bar baz.



mailto:.



http://,



https://:



mailto:;



http://\\"



https://'



mailto:)



http://]"
`;

exports[`rebber: remark specs with config: custom macros backslash-escapes 1`] = `
"These should all get escaped:



Backslash: \\\\textbackslash{}



Backtick: \`



Asterisk: *



Underscore: \\\\_



Left brace: \\\\{



Right brace: \\\\}



Left bracket: [



Right bracket: ]



Left paren: (



Right paren: )



Greater-than: >



Hash: \\\\#



Period: .



Bang: !



Plus: +



Minus: -



\\\\textbf{GFM:}



Pipe: |



Tilde: \\\\textasciitilde{}



\\\\textbf{Commonmark:}



Quote: \\\\textbackslash{}\\"



Dollar: \\\\textbackslash{}\\\\$



Percentage: \\\\textbackslash{}\\\\%



Ampersand: \\\\textbackslash{}\\\\&



Single quote: \\\\textbackslash{}'



Comma: \\\\textbackslash{},



Forward slash: \\\\textbackslash{}/



Colon: \\\\textbackslash{}:



Semicolon: \\\\textbackslash{};



Less-than: \\\\textbackslash{}<



Equals: \\\\textbackslash{}=



Question mark: \\\\textbackslash{}?



At-sign: \\\\textbackslash{}@



Caret: \\\\textbackslash{}\\\\textasciicircum{}



New line: \\\\textbackslash{}
only works in paragraphs.



These should not, because they occur within a code block:



[code(Backslash: \\\\\\\\

Backtick: \\\\\`

Asterisk: \\\\*

Underscore: \\\\_

Left brace: \\\\{

Right brace: \\\\}

Left bracket: \\\\[

Right bracket: \\\\]

Left paren: \\\\(

Right paren: \\\\)

Greater-than: \\\\>

Hash: \\\\#

Period: \\\\.

Bang: \\\\!

Plus: \\\\+

Minus: \\\\-)]

\\\\textbf{GFM:}



[code(Pipe: \\\\|

Tilde: \\\\~)]

\\\\textbf{Commonmark:}



[code(Quote: \\\\\\"

Dollar: \\\\$

Percentage: \\\\%

Ampersand: \\\\&

Single quote: \\\\'

Comma: \\\\,

Forward slash: \\\\/

Colon: \\\\:

Semicolon: \\\\;

Less-than: \\\\<

Equals: \\\\=

Question mark: \\\\?

At-sign: \\\\@

Caret: \\\\^

New line: \\\\
only works in paragraphs.)]

Nor should these, which occur in code spans:



Backslash: \\\\texttt{\\\\textbackslash{}\\\\textbackslash{}}



Backtick: \\\\texttt{\\\\textbackslash{}\`}



Asterisk: \\\\texttt{\\\\textbackslash{}*}



Underscore: \\\\texttt{\\\\textbackslash{}\\\\_}



Left brace: \\\\texttt{\\\\textbackslash{}\\\\{}



Right brace: \\\\texttt{\\\\textbackslash{}\\\\}}



Left bracket: \\\\texttt{\\\\textbackslash{}[}



Right bracket: \\\\texttt{\\\\textbackslash{}]}



Left paren: \\\\texttt{\\\\textbackslash{}(}



Right paren: \\\\texttt{\\\\textbackslash{})}



Greater-than: \\\\texttt{\\\\textbackslash{}>}



Hash: \\\\texttt{\\\\textbackslash{}\\\\#}



Period: \\\\texttt{\\\\textbackslash{}.}



Bang: \\\\texttt{\\\\textbackslash{}!}



Plus: \\\\texttt{\\\\textbackslash{}+}



Minus: \\\\texttt{\\\\textbackslash{}-}



\\\\textbf{GFM:}



Pipe: \\\\texttt{\\\\textbackslash{}|}



Tilde: \\\\texttt{\\\\textbackslash{}\\\\textasciitilde{}}



\\\\textbf{Commonmark:}



Quote: \\\\texttt{\\\\textbackslash{}\\"}



Dollar: \\\\texttt{\\\\textbackslash{}\\\\$}



Percentage: \\\\texttt{\\\\textbackslash{}\\\\%}



Ampersand: \\\\texttt{\\\\textbackslash{}\\\\&}



Single quote: \\\\texttt{\\\\textbackslash{}'}



Comma: \\\\texttt{\\\\textbackslash{},}



Forward slash: \\\\texttt{\\\\textbackslash{}/}



Colon: \\\\texttt{\\\\textbackslash{}:}



Semicolon: \\\\texttt{\\\\textbackslash{};}



Less-than: \\\\texttt{\\\\textbackslash{}<}



Equals: \\\\texttt{\\\\textbackslash{}=}



Question mark: \\\\texttt{\\\\textbackslash{}?}



At-sign: \\\\texttt{\\\\textbackslash{}@}



Caret: \\\\texttt{\\\\textbackslash{}\\\\textasciicircum{}}



New line: \\\\texttt{\\\\textbackslash{} } only works in paragraphs.



These should get escaped, even though they're matching pairs for
other Markdown constructs:



*asterisks*



\\\\_underscores\\\\_



\`backticks\`



This is a code span with a literal backslash-backtick sequence: \\\\texttt{\\\\textbackslash{}\`}



This is a tag with unescaped backticks <span attr='\`ticks\`'>bar</span>.



This is a tag with backslashes <span attr='\\\\\\\\backslashes\\\\\\\\'>bar</span>."
`;

exports[`rebber: remark specs with config: custom macros block-elements 1`] = `
"[unorderedList([listItem(Different lists should receive two newline characters
between them.)])]


[unorderedList([listItem(This is another list.)])]

[blockquote([unorderedList([listItem(The same goes for lists in block quotes.)])][unorderedList([listItem(This is another list.)])])]

[unorderedList([listItem(And for lists in lists:

[orderedList([listItem(First sublist.)])])])]


[code(1.   Second sublist.)]

And for lists followed by indented code blocks:



[unorderedList([listItem(This is a paragraph in a list)])]


[code(And this is code();)]"
`;

exports[`rebber: remark specs with config: custom macros blockquote-indented 1`] = `
"[blockquote(bar
baz)]"
`;

exports[`rebber: remark specs with config: custom macros blockquote-lazy-code 1`] = `
"[blockquote([code(foo
bar)])]"
`;

exports[`rebber: remark specs with config: custom macros blockquote-lazy-fence 1`] = `
"[blockquote([code(aNormalCodeBlockInABlockqoute();)])]

A paragraph.



[blockquote([code(thisIsAlsoSomeCodeInABlockquote();)])]

A paragraph.



[blockquote([code(aNonTerminatedCodeBlockInABlockquote();)]aNewCodeBlockFollowingTheBlockQuote();

[code()])]

A paragraph.



[blockquote(Something in a blockquote.

[code(aNewCodeBlock();)])]"
`;

exports[`rebber: remark specs with config: custom macros blockquote-lazy-list 1`] = `
"[blockquote(This is a blockquote.

[unorderedList([listItem(And in normal mode this is an internal list, but in commonmark this is a top level list.)])])]"
`;

exports[`rebber: remark specs with config: custom macros blockquote-lazy-rule 1`] = `
"[blockquote(This is a blockquote. Followed by a rule.

[thematicBreak(---)])]"
`;

exports[`rebber: remark specs with config: custom macros blockquote-list-item 1`] = `
"This fails in markdown.pl and upskirt:



[unorderedList([listItem(hello

[blockquote(world)])])]"
`;

exports[`rebber: remark specs with config: custom macros blockquotes 1`] = `
"[blockquote(This is a blockquote.)]

[blockquote(This is, in commonmark mode, another blockquote.)]"
`;

exports[`rebber: remark specs with config: custom macros blockquotes-empty-lines 1`] = `
"[blockquote(Note there is no space on the following line.

Note there is no space on the preceding line.)]"
`;

exports[`rebber: remark specs with config: custom macros blockquotes-with-code-blocks 1`] = `
"[blockquote(Example:

[code(sub status {
    print \\"working\\";
})]Or:

[code(sub status {
    return \\"working\\";
})])]"
`;

exports[`rebber: remark specs with config: custom macros bom 1`] = `
"heading1(Hello from a BOM)

Be careful when editing this file!"
`;

exports[`rebber: remark specs with config: custom macros breaks-hard 1`] = `
"These are not breaks:



Look at the
pretty line
breaks.



These are breaks:



Look at the[break(---)]pretty line[break(---)]breaks.



In \\\\texttt{commonmark: true} mode, an escaped newline character is exposed as a \\\\texttt{break} node:



Look at the\\\\textbackslash{}
pretty line\\\\textbackslash{}
breaks."
`;

exports[`rebber: remark specs with config: custom macros case-insensitive-refs 1`] = `
"[linkReference(reference=hi, content=hi)]



[definition(identifier=hi, url=/url, title=null)]"
`;

exports[`rebber: remark specs with config: custom macros code-block 1`] = `
"Tildes:



[codeJavascript(alert('Hello World!');)]"
`;

exports[`rebber: remark specs with config: custom macros code-block-escape 1`] = `
"A little flaw:



[codePython(\\\\end{CodeBlock}
\\\\end   {CodeBlock})]

An ingenuous flaw:



[code(\\\\end\\\\end{CodeBlock}{CodeBlock}
\\\\input{/etc/passwd}
\\\\begin{CodeBlock}{text})]"
`;

exports[`rebber: remark specs with config: custom macros code-block-indentation 1`] = `
"Fenced code blocks are normally not exdented, however,
when the initial fence is indented by spaces, the value of
the code is exdented by up to that amount of spaces.



[code(    This is a code block...
        
    ...which is not exdented.)]

But...



[code(  This one...
      
  ...is.)]

And...



[code(So is this...
      
  ...one.)]"
`;

exports[`rebber: remark specs with config: custom macros code-block-nesting-bug 1`] = `
"GitHub, thus RedCarpet, has a bug where “nested” fenced code blocks,
even with shorter fences, can exit their actual “parent” block.



Note that this bug does not occur on indented code-blocks.



[codeFoo(\`\`\`bar
baz
\`\`\`)]

Even with a different fence marker:



[codeFoo(~~~bar
baz
~~~)]

And reversed:



[codeFoo(~~~bar
baz
~~~)]

[codeFoo(\`\`\`bar
baz
\`\`\`)]"
`;

exports[`rebber: remark specs with config: custom macros code-blocks 1`] = `
"code block on the first line



Regular text.



[code(code block indented by spaces)]

Regular text.



[code(the lines in this block  
all contain trailing spaces  )]

Regular Text.



[code(code block on the last line)]"
`;

exports[`rebber: remark specs with config: custom macros code-spans 1`] = `
"\\\\texttt{<test a=\\"} content of attribute \\\\texttt{\\">}



Fix for backticks within HTML tag: <span attr='\`ticks\`'>like this</span>



Here's how you put \\\\texttt{\`backticks\`} in a code span.



Additionally, empty code spans are NOT supported: \`\`.



Here’s an example, \\\\texttt{foo \` bar }.



And here, \\\\texttt{\`\`}.



\\\\texttt{// this is also inline code}



So is this \\\\texttt{foo bar baz}.



And this \\\\texttt{foo \`\` bar}



And \\\\texttt{this\\\\textbackslash{}}but this is text\`."
`;

exports[`rebber: remark specs with config: custom macros def-blocks 1`] = `
"[blockquote(hello

[definition(identifier=1, url=hello, title=null)])]

[thematicBreak(---)]

[blockquote(hello)]

[definition(identifier=2, url=hello, title=null)]

[unorderedList([listItem(hello)][listItem([definition(identifier=3, url=hello, title=null)])])]


[unorderedList([listItem(hello)])]

[definition(identifier=4, url=hello, title=null)]

[blockquote(foo
bar)]

[definition(identifier=1-1, url=foo, title=null)]

[blockquote(bar)]"
`;

exports[`rebber: remark specs with config: custom macros definition-newline 1`] = `
"[linkReference(reference=baz, content=baz)]: /url (
)



[foo]: /url \\"
\\"



[bar]: /url '
'



[definition(identifier=baz, url=/url, title=foo
bar)]

[definition(identifier=baz-1, url=/url, title=foo
bar)]

[definition(identifier=baz-1-1, url=/url, title=foo
bar)]

[linkReference(reference=baz, content=baz)]: /url 'foo"
`;

exports[`rebber: remark specs with config: custom macros definition-unclosed 1`] = `
"[foo]:



[definition(identifier=bar, url=</url, title=null)]

[foo]:"
`;

exports[`rebber: remark specs with config: custom macros definition-unclosed-attribute 1`] = `
"[baz]: /url (there



[foo]: /url \\"there



[bar]: /url 'there



[baz]: url (



[foo]: url \\"



[bar]: /url '



[baz]: <url>(



[foo]: <url>\\"



[bar]: <url>'"
`;

exports[`rebber: remark specs with config: custom macros deletion 1`] = `"hello \\\\sout{hi} world"`;

exports[`rebber: remark specs with config: custom macros double-link 1`] = `
"<p>Already linked: <a href=\\"http://example.com/\\">http://example.com/</a>.</p>

Already linked: \\\\externalLink{http://example.com/}{http://example.com/}.



Already linked: <a href=\\"http://example.com/\\">\\\\textbf{http://example.com/}</a>."
`;

exports[`rebber: remark specs with config: custom macros emphasis 1`] = `
"\\\\textit{emphasis}.



\\\\textbf{strong}."
`;

exports[`rebber: remark specs with config: custom macros emphasis-empty 1`] = `
"Hello ** ** world.



Hello \\\\_\\\\_	\\\\_\\\\_ world.



Hello *	* world.



Hello \\\\_	\\\\_ world."
`;

exports[`rebber: remark specs with config: custom macros emphasis-escaped-final-marker 1`] = `
"*bar*



**bar**



\\\\_bar\\\\_



\\\\_\\\\_bar\\\\_\\\\_"
`;

exports[`rebber: remark specs with config: custom macros emphasis-internal 1`] = `"These words should\\\\_not\\\\_be\\\\_emphasized."`;

exports[`rebber: remark specs with config: custom macros empty 1`] = `""`;

exports[`rebber: remark specs with config: custom macros entities 1`] = `
"Lots of entities are supported in mdast:  , \\\\&, ©, Æ,
Ď, ¾, ℋ, ⅆ,
∲, \\\\&c.  Even some entities with a missing
terminal semicolon are parsed correctly (as per the HTML5 spec):
ÿ, á, ©, and \\\\&.



However, \\\\&MadeUpEntities; are kept in the document.



Entities even work in the language flag of fenced code blocks:



[codeSome—language(alert('Hello');)]

Or in \\\\externalLink{línks}{\\\\textasciitilde{}/some—file}



Or in \\\\includegraphics{~/an–image.png}



But, entities are not interpreted in \\\\texttt{inline c\\\\&ouml;de}, or in
code blocks:



[code(C&Ouml;DE block.)]"
`;

exports[`rebber: remark specs with config: custom macros entities-advanced 1`] = `
"[blockquote(However, \\\\&MadeUpEntities; are kept in the document.)]

[blockquote(Entities even work in the language flag of fenced code blocks:)]

[blockquote([codeSome©language(alert('Hello');)])]

[blockquote(And in an auto-link: \\\\externalLink{http://example©xample.com}{http://example\\\\&copyxample.com})]

[blockquote(Foo and bar and http://example©xample.com and baz.)]

[blockquote(Or in \\\\externalLink{l©nks}{\\\\textasciitilde{}/some\\\\&copyfile})]

[blockquote(Or in \\\\externalLink{l©lnks}{\\\\textasciitilde{}/some\\\\&copyfile})]

[blockquote(Or in \\\\includegraphics{~/some&copyfile})]

[thematicBreak(---)]

[blockquote(Or in \\\\includegraphics{~/some&copyfile})]

[blockquote(Or in \\\\includegraphics{undefined})]

[blockquote([definition(identifier=1, url=http://example&copyxample.com, title=in some
pl©ce)])]

[blockquote([definition(identifier= 1 , url=http://example&copyxample.com, title=in some
pl©ce)])]

[thematicBreak(---)]

[blockquote(But, entities are not interpreted in \\\\texttt{inline c\\\\&oumlde}, or in
code blocks:)]

[blockquote([code(C&OumlDE block.)])]"
`;

exports[`rebber: remark specs with config: custom macros escaped-angles 1`] = `">"`;

exports[`rebber: remark specs with config: custom macros fenced-code 1`] = `
"[codeJs(var a = 'hello';
console.log(a + ' world');)]

[codeBash(echo \\"hello, \${WORLD}\\")]

[codeLongfence(Q: What do you call a tall person who sells stolen goods?)]

[codeManyTildes(A longfence!)]"
`;

exports[`rebber: remark specs with config: custom macros fenced-code-empty 1`] = `
"Normal with language tag:



[codeJs()]

With white space:



[codeBash()]

With very long fences:



[code()]

With nothing:



[code()]"
`;

exports[`rebber: remark specs with config: custom macros fenced-code-trailing-characters 1`] = `
"[codeJs(foo();
\`\`\`bash)]"
`;

exports[`rebber: remark specs with config: custom macros fenced-code-trailing-characters-2 1`] = `"[code(\`\`\` aaa)]"`;

exports[`rebber: remark specs with config: custom macros fenced-code-white-space-after-flag 1`] = `
"[codeJs(foo();)]

[codeBash(echo \\"hello, \${WORLD}\\")]"
`;

exports[`rebber: remark specs with config: custom macros hard-wrapped-paragraphs-with-list-like-lines 1`] = `
"In Markdown 1.0.0 and earlier. Version
8. This line turns into a list item.
Because a hard-wrapped line in the
123. middle of a paragraph looked like a
list item.



Here's one with a bullet.



[unorderedList([listItem(criminey.)])]

Non-GFM does not create a list for either.
GFM does not create a list for \\\\texttt{8.}, but does for \\\\texttt{*}.
CommonMark creates a list for both.
All versions create lists for the following.



[unorderedList([listItem(Here's one with a bullet.

[unorderedList([listItem(criminey.)])])])]

...and the following:



[orderedList([listItem(In Markdown 1.0.0 and earlier. Version
8. This line turns into a list item.)])]"
`;

exports[`rebber: remark specs with config: custom macros heading 1`] = `
"heading1(Heading 1)

heading2(Heading 2)

heading3(Heading 4)

heading4(Heading 4)

heading5(Heading 5)

heading6(Heading 6)"
`;

exports[`rebber: remark specs with config: custom macros heading-atx-closed-trailing-white-space 1`] = `
"heading1(Foo)

heading2(Bar)"
`;

exports[`rebber: remark specs with config: custom macros heading-atx-empty 1`] = `
"heading1()

heading2()

heading3()

heading4()

heading5()

heading6()"
`;

exports[`rebber: remark specs with config: custom macros heading-in-blockquote 1`] = `
"[blockquote(A blockquote
with some more text.)]

A normal paragraph.



[blockquote(heading2(A blockquote followed by a horizontal rule (in CommonMark).))]

[blockquote(heading2(A heading in a blockquote))]"
`;

exports[`rebber: remark specs with config: custom macros heading-in-paragraph 1`] = `
"Hello



heading1(World)"
`;

exports[`rebber: remark specs with config: custom macros heading-not-atx 1`] = `
"\\\\#This is not a heading, per CommonMark: \\\\externalLink{http://spec.commonmark.org/0.17/\\\\#example-25}{http://spec.commonmark.org/0.17/\\\\#example-25}



Kramdown (GitHub) neither supports unspaced ATX-headings.



\\\\#\\\\#\\\\#\\\\#\\\\#\\\\#\\\\#\\\\# h7?



\\\\#\\\\#\\\\#\\\\#\\\\#\\\\#\\\\#\\\\#\\\\# h8?



\\\\#\\\\#\\\\#\\\\#\\\\#\\\\#\\\\#\\\\#\\\\#\\\\# h9?



More than six \\\\# characters is not a heading: \\\\externalLink{http://spec.commonmark.org/0.26/\\\\#example-33}{http://spec.commonmark.org/0.26/\\\\#example-33}"
`;

exports[`rebber: remark specs with config: custom macros heading-setext-with-initial-spacing 1`] = `
"heading1(Heading 1)

heading2(Heading 2)

Both these headings caused positional problems in on commit daa344c and before."
`;

exports[`rebber: remark specs with config: custom macros horizontal-rules 1`] = `
"Dashes:



[thematicBreak(---)]

[thematicBreak(---)]

[thematicBreak(---)]

[thematicBreak(---)]

[code(---)]

[thematicBreak(---)]

[thematicBreak(---)]

[thematicBreak(---)]

[thematicBreak(---)]

[code(- - -)]

Asterisks:



[thematicBreak(---)]

[thematicBreak(---)]

[thematicBreak(---)]

[thematicBreak(---)]

[code(***)]

[thematicBreak(---)]

[thematicBreak(---)]

[thematicBreak(---)]

[thematicBreak(---)]

[code(* * *)]

Underscores:



[thematicBreak(---)]

[thematicBreak(---)]

[thematicBreak(---)]

[thematicBreak(---)]

[code(___)]

[thematicBreak(---)]

[thematicBreak(---)]

[thematicBreak(---)]

[thematicBreak(---)]

[code(_ _ _)]"
`;

exports[`rebber: remark specs with config: custom macros horizontal-rules-adjacent 1`] = `
"[thematicBreak(---)]

[thematicBreak(---)]

[thematicBreak(---)]

The three asterisks are not a Setext header.



This is a paragraph.



[thematicBreak(---)]

This is another paragraph.



[thematicBreak(---)]

heading2(But this is a secondary heading.)

[thematicBreak(---)]"
`;

exports[`rebber: remark specs with config: custom macros hr 1`] = `"[thematicBreak(---)]"`;

exports[`rebber: remark specs with config: custom macros hr-list-break 1`] = `
"[unorderedList([listItem(hello world)][listItem(how are)])]

[thematicBreak(---)]

you today?



The above asterisks do split the list, but the below ones do not.



[unorderedList([listItem(hello world)][listItem(how are)][listItem([thematicBreak(---)]you today?)])]


[unorderedList([listItem(Neither do these)][listItem(how are)][listItem([unorderedList([listItem([unorderedList([listItem(you today?)])])])])])]


[unorderedList([listItem(But these do)][listItem(how are)])]

[thematicBreak(---)]

you today?"
`;

exports[`rebber: remark specs with config: custom macros html-advanced 1`] = `
"Simple block on one line:



<div>foo</div>

And nested without indentation:



<div>
<div>
<div>
foo
</div>
<div style=\\">\\"/>
</div>
<div>bar</div>
</div>"
`;

exports[`rebber: remark specs with config: custom macros html-attributes 1`] = `
"heading1(Block-level)

<article foo=\\"bar 'baz' qux\\" foo='bar \\"baz\\" qux' foo=baz>

<article foo>

<article>

<article :foo:bar:09:=\\"baz\\">

<article foo.bar_09->

<article foo.bar_09-   >

<article foo.bar_09-   />

<div baz
qux

heading1(Inline)

<span foo=\\"bar 'baz' qux\\" foo='bar \\"baz\\" qux' foo=baz>

<span foo>

<span>

<span :foo:bar:09:=\\"baz\\">

<span foo.bar_09->

<span foo.bar_09-   >

<span foo.bar_09-   />

<span this is
invalid"
`;

exports[`rebber: remark specs with config: custom macros html-cdata 1`] = `
"<![CDATA[
fooBarBaz()
]]>

foo <![CDATA[bar]]>"
`;

exports[`rebber: remark specs with config: custom macros html-comments 1`] = `
"Paragraph one.



<!-- This is a simple comment -->

<!--
	This is another comment.
-->

What follows is not an HTML comment because it contains
two consecutive dashes:
\\\\externalLink{https://html.spec.whatwg.org/multipage/syntax.html\\\\#comments}{https://html.spec.whatwg.org/multipage/syntax.html\\\\#comments}.



<!-- one comment block -- -- with two comments -->

But this is fine (in commonmark):



<!-- one comment block - with a dash -->

And, this is wrong (in commonmark):



<!-->-->

The end."
`;

exports[`rebber: remark specs with config: custom macros html-declaration 1`] = `
"<!DOCTYPE html>

foo <!BAR br BAZ>



<!doctype html>

<!valid >

<!invalid>"
`;

exports[`rebber: remark specs with config: custom macros html-indented 1`] = `
"<div>
  *hello*
   <div>

 <span>
  *hello*
   <span>

  <!doctype html>

   <!-- baz -->

alpha <!-- baz -->"
`;

exports[`rebber: remark specs with config: custom macros html-processing-instruction 1`] = `
"<?php
  echo '>';
?>"
`;

exports[`rebber: remark specs with config: custom macros html-simple 1`] = `
"Here's a simple block:



<div>
	foo
</div>

This should be a code block, though:



[code(<div>
	foo
</div>)]

As should this:



[code(<div>foo</div>)]

Now, nested:



<div>
	<div>
		<div>
			foo
		</div>
	</div>
</div>

This should just be an HTML comment:



<!-- Comment -->

Multiline:



<!--
Blah
Blah
-->

Code block:



[code(<!-- Comment -->)]

Just plain comment, with trailing spaces on the line:



<!-- foo -->   

Code:



[code(<hr>)]

Hr's:



<hr>

<hr>

<hr>

<hr>   

<hr>  

<hr> 

<hr class=\\"foo\\" id=\\"bar\\" />

<hr class=\\"foo\\" id=\\"bar\\"/>

<hr class=\\"foo\\" id=\\"bar\\" >"
`;

exports[`rebber: remark specs with config: custom macros html-tags 1`] = `
"heading1(Block)

<article>

<ARTICLE>

<ArTiClE>

<-article>



<article foo=

<article foo=\\"bar

<article foo='bar

<article foo=bar 

<article foo=bar >

<article/>

<-article/>



</article>

</ARTICLE>

</aRtIcLe>

</article  >

</-article  >



</article

</article  

heading1(Inline)

<span>

<SPAN>

<SpAn>

<-span>



<span/>

<-span/>



</span>

</SPAN>

</SpAn>

</span  >

</-span>



</span



</span



<span foo=



<span foo=\\"bar



<span foo='bar



<span foo=bar



<span foo=bar >"
`;

exports[`rebber: remark specs with config: custom macros image-basename-dots 1`] = `
"\\\\includegraphics{{x.yz}.png}



\\\\includegraphics{/a/{w.x.y.z}.png}



\\\\includegraphics{/{w.x.y.z}.png}



\\\\includegraphics{/foo.bar/{x.yz}.png}"
`;

exports[`rebber: remark specs with config: custom macros image-empty-alt 1`] = `"\\\\includegraphics{/xyz.png}"`;

exports[`rebber: remark specs with config: custom macros image-in-link 1`] = `
"heading1(\\\\externalLink{\\\\includegraphics{https://img.shields.io/badge/unicorn-approved-ff69b4.svg}}{http://shields.io})

\\\\externalLink{\\\\include
Download .txt
gitextract_4t6_2vzi/

├── .editorconfig
├── .github/
│   └── workflows/
│       ├── ci.yml
│       └── prepublish.yml
├── .gitignore
├── CODE_OF_CONDUCT.md
├── LICENSE-MIT
├── README.md
├── babel.config.js
├── eslint.config.mjs
├── lerna.json
├── package.json
└── packages/
    ├── mdast-util-split-by-heading/
    │   ├── LICENSE-MIT
    │   ├── README.md
    │   ├── __tests__/
    │   │   └── index.js
    │   ├── dist/
    │   │   └── index.js
    │   ├── package.json
    │   └── src/
    │       └── index.js
    ├── rebber/
    │   ├── LICENSE-MIT
    │   ├── README.md
    │   ├── __tests__/
    │   │   ├── __snapshots__/
    │   │   │   └── mdast.tests.js.snap
    │   │   ├── fixtures/
    │   │   │   ├── amps-and-angles-encoding.text
    │   │   │   ├── auto-link-invalid.text
    │   │   │   ├── auto-link-lines.text
    │   │   │   ├── auto-link-output.output.text
    │   │   │   ├── auto-link-url-invalid.text
    │   │   │   ├── auto-link-url.text
    │   │   │   ├── auto-link.text
    │   │   │   ├── backslash-escapes.text
    │   │   │   ├── block-elements.text
    │   │   │   ├── blockquote-indented.text
    │   │   │   ├── blockquote-lazy-code.text
    │   │   │   ├── blockquote-lazy-fence.text
    │   │   │   ├── blockquote-lazy-list.text
    │   │   │   ├── blockquote-lazy-rule.text
    │   │   │   ├── blockquote-list-item.text
    │   │   │   ├── blockquotes-empty-lines.output.text
    │   │   │   ├── blockquotes-with-code-blocks.text
    │   │   │   ├── blockquotes.text
    │   │   │   ├── bom.text
    │   │   │   ├── breaks-hard.text
    │   │   │   ├── case-insensitive-refs.text
    │   │   │   ├── code-block-escape.text
    │   │   │   ├── code-block-indentation.nooutput.text
    │   │   │   ├── code-block-nesting-bug.nooutput.text
    │   │   │   ├── code-block.output.fence=`.text
    │   │   │   ├── code-block.output.fence=~.text
    │   │   │   ├── code-blocks.output.fences.text
    │   │   │   ├── code-blocks.output.text
    │   │   │   ├── code-blocks.text
    │   │   │   ├── code-spans.text
    │   │   │   ├── def-blocks.text
    │   │   │   ├── definition-newline.text
    │   │   │   ├── definition-unclosed-attribute.text
    │   │   │   ├── definition-unclosed.text
    │   │   │   ├── deletion.text
    │   │   │   ├── double-link.text
    │   │   │   ├── emphasis-empty.text
    │   │   │   ├── emphasis-escaped-final-marker.text
    │   │   │   ├── emphasis-internal.text
    │   │   │   ├── emphasis.output.emphasis=-asterisk-.strong=_.text
    │   │   │   ├── emphasis.output.emphasis=_.strong=-asterisk-.text
    │   │   │   ├── empty.text
    │   │   │   ├── entities-advanced.text
    │   │   │   ├── entities.output.entities.text
    │   │   │   ├── entities.output.entities=escape.text
    │   │   │   ├── entities.output.entities=numbers.text
    │   │   │   ├── entities.output.noentities.text
    │   │   │   ├── entities.text
    │   │   │   ├── escaped-angles.text
    │   │   │   ├── fenced-code-empty.text
    │   │   │   ├── fenced-code-trailing-characters-2.nooutput.text
    │   │   │   ├── fenced-code-trailing-characters.nooutput.text
    │   │   │   ├── fenced-code-white-space-after-flag.text
    │   │   │   ├── fenced-code.text
    │   │   │   ├── hard-wrapped-paragraphs-with-list-like-lines.text
    │   │   │   ├── heading-atx-closed-trailing-white-space.text
    │   │   │   ├── heading-atx-empty.text
    │   │   │   ├── heading-in-blockquote.text
    │   │   │   ├── heading-in-paragraph.text
    │   │   │   ├── heading-not-atx.text
    │   │   │   ├── heading-setext-with-initial-spacing.text
    │   │   │   ├── heading.output.close-atx.text
    │   │   │   ├── heading.output.setext.text
    │   │   │   ├── horizontal-rules-adjacent.text
    │   │   │   ├── horizontal-rules.text
    │   │   │   ├── hr-list-break.text
    │   │   │   ├── hr.output.norule-spaces.text
    │   │   │   ├── hr.output.rule-repetition=5.text
    │   │   │   ├── hr.output.rule=-.text
    │   │   │   ├── hr.output.rule=-asterisk-.text
    │   │   │   ├── hr.output.rule=_.text
    │   │   │   ├── html-advanced.text
    │   │   │   ├── html-attributes.text
    │   │   │   ├── html-cdata.text
    │   │   │   ├── html-comments.text
    │   │   │   ├── html-declaration.text
    │   │   │   ├── html-indented.text
    │   │   │   ├── html-processing-instruction.text
    │   │   │   ├── html-simple.text
    │   │   │   ├── html-tags.text
    │   │   │   ├── image-basename-dots.text
    │   │   │   ├── image-empty-alt.text
    │   │   │   ├── image-in-link.text
    │   │   │   ├── image-path-escape.text
    │   │   │   ├── image-with-pipe.text
    │   │   │   ├── images.output.noreference-images.text
    │   │   │   ├── invalid-link-definition.text
    │   │   │   ├── lazy-blockquotes.text
    │   │   │   ├── link-in-link.text
    │   │   │   ├── link-spaces.text
    │   │   │   ├── link-whitespace.text
    │   │   │   ├── link-with-spaces.text
    │   │   │   ├── links-inline-style.text
    │   │   │   ├── links-reference-proto.text
    │   │   │   ├── links-reference-style.text
    │   │   │   ├── links-shortcut-references.text
    │   │   │   ├── links-text-delimiters.text
    │   │   │   ├── links-text-empty.text
    │   │   │   ├── links-text-entity-delimiters.text
    │   │   │   ├── links-text-escaped-delimiters.text
    │   │   │   ├── links-text-mismatched-delimiters.text
    │   │   │   ├── links-title-double-quotes-delimiters.text
    │   │   │   ├── links-title-double-quotes-entity-delimiters.text
    │   │   │   ├── links-title-double-quotes-escaped-delimiters.text
    │   │   │   ├── links-title-double-quotes-mismatched-delimiters.text
    │   │   │   ├── links-title-double-quotes.text
    │   │   │   ├── links-title-empty-double-quotes.text
    │   │   │   ├── links-title-empty-parentheses.text
    │   │   │   ├── links-title-empty-single-quotes.text
    │   │   │   ├── links-title-parentheses.text
    │   │   │   ├── links-title-single-quotes-delimiters.text
    │   │   │   ├── links-title-single-quotes-entity-delimiters.text
    │   │   │   ├── links-title-single-quotes-escaped-delimiters.text
    │   │   │   ├── links-title-single-quotes-mismatched-delimiters.text
    │   │   │   ├── links-title-single-quotes.text
    │   │   │   ├── links-title-unclosed.text
    │   │   │   ├── links-url-empty-title-double-quotes.text
    │   │   │   ├── links-url-empty-title-parentheses.text
    │   │   │   ├── links-url-empty-title-single-quotes.text
    │   │   │   ├── links-url-empty.text
    │   │   │   ├── links-url-entity-parentheses.text
    │   │   │   ├── links-url-escaped-parentheses.text
    │   │   │   ├── links-url-mismatched-parentheses.text
    │   │   │   ├── links-url-nested-parentheses.text
    │   │   │   ├── links-url-new-line.text
    │   │   │   ├── links-url-unclosed.text
    │   │   │   ├── links-url-white-space.text
    │   │   │   ├── links.output.noreference-links.text
    │   │   │   ├── list-after-list.text
    │   │   │   ├── list-and-code.text
    │   │   │   ├── list-continuation.text
    │   │   │   ├── list-indentation.nooutput.text
    │   │   │   ├── list-item-empty-with-white-space.text
    │   │   │   ├── list-item-empty.text
    │   │   │   ├── list-item-indent.list-item-indent=1.output.text
    │   │   │   ├── list-item-indent.list-item-indent=mixed.output.text
    │   │   │   ├── list-item-indent.list-item-indent=tab.output.text
    │   │   │   ├── list-item-newline.nooutput.text
    │   │   │   ├── list-item-text.text
    │   │   │   ├── list-ordered.increment-list-marker.output.text
    │   │   │   ├── list-ordered.noincrement-list-marker.output.text
    │   │   │   ├── list.output.bullet=+.text
    │   │   │   ├── list.output.bullet=-.text
    │   │   │   ├── list.output.bullet=-asterisk-.text
    │   │   │   ├── lists-with-code-and-rules.text
    │   │   │   ├── loose-lists.text
    │   │   │   ├── main.text
    │   │   │   ├── markdown-documentation-basics.text
    │   │   │   ├── markdown-documentation-syntax.text
    │   │   │   ├── mixed-indentation.text
    │   │   │   ├── nested-blockquotes.text
    │   │   │   ├── nested-code.text
    │   │   │   ├── nested-em.nooutput.text
    │   │   │   ├── nested-references.text
    │   │   │   ├── nested-square-link.text
    │   │   │   ├── no-positionals.nooutput.text
    │   │   │   ├── not-a-link.text
    │   │   │   ├── ordered-and-unordered-lists.text
    │   │   │   ├── ordered-different-types.text
    │   │   │   ├── ordered-with-parentheses.text
    │   │   │   ├── paragraphs-and-indentation.text
    │   │   │   ├── paragraphs-empty.text
    │   │   │   ├── ref-paren.text
    │   │   │   ├── reference-image-empty-alt.text
    │   │   │   ├── reference-link-escape.nooutput.text
    │   │   │   ├── reference-link-not-closed.text
    │   │   │   ├── reference-link-with-angle-brackets.text
    │   │   │   ├── reference-link-with-multiple-definitions.text
    │   │   │   ├── same-bullet.text
    │   │   │   ├── stringify-escape.output.commonmark.text
    │   │   │   ├── stringify-escape.output.nogfm.commonmark.text
    │   │   │   ├── stringify-escape.output.nogfm.text
    │   │   │   ├── stringify-escape.output.noposition.pedantic.text
    │   │   │   ├── stringify-escape.output.pedantic.text
    │   │   │   ├── stringify-escape.output.text
    │   │   │   ├── stringify-escape.text
    │   │   │   ├── strong-and-em-together-one.text
    │   │   │   ├── strong-and-em-together-two.nooutput.text
    │   │   │   ├── strong-emphasis.text
    │   │   │   ├── strong-initial-white-space.text
    │   │   │   ├── table-empty-initial-cell.text
    │   │   │   ├── table-escaped-pipes.nooutput.text
    │   │   │   ├── table-in-list.text
    │   │   │   ├── table-invalid-alignment.text
    │   │   │   ├── table-loose.output.loose-table.text
    │   │   │   ├── table-loose.output.text
    │   │   │   ├── table-no-body.text
    │   │   │   ├── table-no-end-of-line.text
    │   │   │   ├── table-one-column.text
    │   │   │   ├── table-one-row.text
    │   │   │   ├── table-padded.output.nopadded-table.text
    │   │   │   ├── table-padded.output.text
    │   │   │   ├── table-pipes-in-code.text
    │   │   │   ├── table-spaced.output.nospaced-table.text
    │   │   │   ├── table-spaced.output.text
    │   │   │   ├── table-with-image.text
    │   │   │   ├── table.text
    │   │   │   ├── tabs-and-spaces.text
    │   │   │   ├── tabs.text
    │   │   │   ├── task-list-ordered.text
    │   │   │   ├── task-list-unordered-asterisk.text
    │   │   │   ├── task-list-unordered-dash.text
    │   │   │   ├── task-list-unordered-plus.text
    │   │   │   ├── task-list.text
    │   │   │   ├── tidyness.text
    │   │   │   ├── title-attributes.text
    │   │   │   ├── toplevel-paragraphs.text
    │   │   │   └── tricky-list.text
    │   │   └── mdast.tests.js
    │   ├── dist/
    │   │   ├── all.js
    │   │   ├── escaper.js
    │   │   ├── index.js
    │   │   ├── one.js
    │   │   ├── preprocessors/
    │   │   │   ├── index.js
    │   │   │   └── referenceVisitors.js
    │   │   └── types/
    │   │       ├── blockquote.js
    │   │       ├── break.js
    │   │       ├── code.js
    │   │       ├── definition.js
    │   │       ├── delete.js
    │   │       ├── emphasis.js
    │   │       ├── heading.js
    │   │       ├── html.js
    │   │       ├── image.js
    │   │       ├── inlinecode.js
    │   │       ├── link.js
    │   │       ├── linkReference.js
    │   │       ├── list.js
    │   │       ├── listItem.js
    │   │       ├── paragraph.js
    │   │       ├── raw.js
    │   │       ├── root.js
    │   │       ├── strong.js
    │   │       ├── table.js
    │   │       ├── tableCell.js
    │   │       ├── tableRow.js
    │   │       ├── text.js
    │   │       └── thematic-break.js
    │   ├── package.json
    │   └── src/
    │       ├── all.js
    │       ├── escaper.js
    │       ├── index.js
    │       ├── one.js
    │       ├── preprocessors/
    │       │   ├── index.js
    │       │   └── referenceVisitors.js
    │       └── types/
    │           ├── blockquote.js
    │           ├── break.js
    │           ├── code.js
    │           ├── definition.js
    │           ├── delete.js
    │           ├── emphasis.js
    │           ├── heading.js
    │           ├── html.js
    │           ├── image.js
    │           ├── inlinecode.js
    │           ├── link.js
    │           ├── linkReference.js
    │           ├── list.js
    │           ├── listItem.js
    │           ├── paragraph.js
    │           ├── raw.js
    │           ├── root.js
    │           ├── strong.js
    │           ├── table.js
    │           ├── tableCell.js
    │           ├── tableRow.js
    │           ├── text.js
    │           └── thematic-break.js
    ├── rebber-plugins/
    │   ├── LICENSE-MIT
    │   ├── README.md
    │   ├── __tests__/
    │   │   ├── __snapshots__/
    │   │   │   └── rebber.test.js.snap
    │   │   ├── fixtures/
    │   │   │   ├── abbr.fixture.md
    │   │   │   ├── blockquote.fixture.md
    │   │   │   ├── blocks.fixture.md
    │   │   │   ├── code.fixture.md
    │   │   │   ├── emoticon.fixture.md
    │   │   │   ├── figure-code.fixture.md
    │   │   │   ├── figure.fixture.md
    │   │   │   ├── footnote.fixture.md
    │   │   │   ├── gridTable.fixture.md
    │   │   │   ├── heading.fixture.md
    │   │   │   ├── inline-code.fixture.md
    │   │   │   ├── link-prepend.fixture.md
    │   │   │   ├── link.fixture.md
    │   │   │   ├── list.fixture.md
    │   │   │   ├── mix-1.fixture.md
    │   │   │   ├── mix-2.fixture.md
    │   │   │   ├── mix-3.fixture.md
    │   │   │   ├── mix-4.fixture.md
    │   │   │   ├── mix-5.fixture.md
    │   │   │   ├── mix-6.fixture.md
    │   │   │   ├── mix-7.fixture.md
    │   │   │   ├── mix-math-escape.fixture.md
    │   │   │   ├── paragraph.fixture.md
    │   │   │   └── table.fixture.md
    │   │   └── rebber.test.js
    │   ├── dist/
    │   │   ├── preprocessors/
    │   │   │   ├── codeVisitor.js
    │   │   │   ├── footnoteProtect.js
    │   │   │   ├── iframe.js
    │   │   │   ├── mathEscape.js
    │   │   │   ├── prepareQuizz.js
    │   │   │   └── spoilerFlatten.js
    │   │   └── type/
    │   │       ├── abbr.js
    │   │       ├── align.js
    │   │       ├── appendix.js
    │   │       ├── comments.js
    │   │       ├── conclusion.js
    │   │       ├── customBlocks.js
    │   │       ├── emoticon.js
    │   │       ├── figure.js
    │   │       ├── footnote.js
    │   │       ├── footnoteDefinition.js
    │   │       ├── footnoteReference.js
    │   │       ├── gridTable.js
    │   │       ├── introduction.js
    │   │       ├── kbd.js
    │   │       ├── math.js
    │   │       ├── ping.js
    │   │       ├── sub.js
    │   │       ├── sup.js
    │   │       └── tableHeader.js
    │   ├── package.json
    │   └── src/
    │       ├── preprocessors/
    │       │   ├── codeVisitor.js
    │       │   ├── footnoteProtect.js
    │       │   ├── iframe.js
    │       │   ├── katexConstants.json
    │       │   ├── mathEscape.js
    │       │   ├── prepareQuizz.js
    │       │   └── spoilerFlatten.js
    │       └── type/
    │           ├── abbr.js
    │           ├── align.js
    │           ├── appendix.js
    │           ├── comments.js
    │           ├── conclusion.js
    │           ├── customBlocks.js
    │           ├── emoticon.js
    │           ├── figure.js
    │           ├── footnote.js
    │           ├── footnoteDefinition.js
    │           ├── footnoteReference.js
    │           ├── gridTable.js
    │           ├── introduction.js
    │           ├── kbd.js
    │           ├── math.js
    │           ├── ping.js
    │           ├── sub.js
    │           ├── sup.js
    │           └── tableHeader.js
    ├── rehype-footnotes-title/
    │   ├── .npmignore
    │   ├── LICENSE-MIT
    │   ├── README.md
    │   ├── __tests__/
    │   │   ├── __snapshots__/
    │   │   │   └── index.js.snap
    │   │   └── index.js
    │   ├── dist/
    │   │   └── index.js
    │   ├── package.json
    │   └── src/
    │       └── index.js
    ├── rehype-html-blocks/
    │   ├── .npmignore
    │   ├── LICENSE-MIT
    │   ├── README.md
    │   ├── __tests__/
    │   │   ├── __snapshots__/
    │   │   │   └── index.js.snap
    │   │   └── index.js
    │   ├── dist/
    │   │   └── index.js
    │   ├── package.json
    │   └── src/
    │       └── index.js
    ├── rehype-postfix-footnote-anchors/
    │   ├── .npmignore
    │   ├── LICENSE-MIT
    │   ├── README.md
    │   ├── __tests__/
    │   │   ├── __snapshots__/
    │   │   │   └── index.js.snap
    │   │   ├── fixtures/
    │   │   │   ├── footnote-split.fixture.md
    │   │   │   ├── footnotes.fixture.md
    │   │   │   ├── regression-1.fixture.md
    │   │   │   └── regression-2.fixture.md
    │   │   └── index.js
    │   ├── dist/
    │   │   └── index.js
    │   ├── package.json
    │   └── src/
    │       └── index.js
    ├── remark-abbr/
    │   ├── .npmignore
    │   ├── LICENSE-MIT
    │   ├── README.md
    │   ├── __tests__/
    │   │   ├── __snapshots__/
    │   │   │   └── index.js.snap
    │   │   └── index.js
    │   ├── dist/
    │   │   └── index.js
    │   ├── package.json
    │   └── src/
    │       └── index.js
    ├── remark-align/
    │   ├── .npmignore
    │   ├── LICENSE-MIT
    │   ├── README.md
    │   ├── __tests__/
    │   │   ├── __snapshots__/
    │   │   │   └── index.js.snap
    │   │   └── index.js
    │   ├── dist/
    │   │   └── index.js
    │   ├── package.json
    │   └── src/
    │       └── index.js
    ├── remark-captions/
    │   ├── .npmignore
    │   ├── LICENSE-MIT
    │   ├── README.md
    │   ├── __tests__/
    │   │   ├── __snapshots__/
    │   │   │   └── index.js.snap
    │   │   └── index.js
    │   ├── dist/
    │   │   └── index.js
    │   ├── package.json
    │   └── src/
    │       └── index.js
    ├── remark-comments/
    │   ├── .npmignore
    │   ├── LICENSE-MIT
    │   ├── README.md
    │   ├── __tests__/
    │   │   ├── __snapshots__/
    │   │   │   └── index.js.snap
    │   │   └── index.js
    │   ├── dist/
    │   │   └── index.js
    │   ├── package.json
    │   └── src/
    │       └── index.js
    ├── remark-custom-blocks/
    │   ├── .npmignore
    │   ├── LICENSE-MIT
    │   ├── README.md
    │   ├── __tests__/
    │   │   ├── __snapshots__/
    │   │   │   └── index.js.snap
    │   │   └── index.js
    │   ├── dist/
    │   │   └── index.js
    │   ├── package.json
    │   └── src/
    │       └── index.js
    ├── remark-disable-tokenizers/
    │   ├── .npmignore
    │   ├── LICENSE-MIT
    │   ├── README.md
    │   ├── __tests__/
    │   │   ├── __snapshots__/
    │   │   │   └── index.js.snap
    │   │   └── index.js
    │   ├── dist/
    │   │   └── index.js
    │   ├── package.json
    │   └── src/
    │       └── index.js
    ├── remark-emoticons/
    │   ├── .npmignore
    │   ├── LICENSE-MIT
    │   ├── README.md
    │   ├── __tests__/
    │   │   ├── __snapshots__/
    │   │   │   └── index.js.snap
    │   │   └── index.js
    │   ├── dist/
    │   │   └── index.js
    │   ├── package.json
    │   └── src/
    │       └── index.js
    ├── remark-escape-escaped/
    │   ├── .npmignore
    │   ├── LICENSE-MIT
    │   ├── README.md
    │   ├── __tests__/
    │   │   ├── __snapshots__/
    │   │   │   └── index.js.snap
    │   │   └── index.js
    │   ├── dist/
    │   │   └── index.js
    │   ├── package.json
    │   └── src/
    │       └── index.js
    ├── remark-fix-guillemets/
    │   ├── .npmignore
    │   ├── LICENSE-MIT
    │   ├── README.md
    │   ├── __tests__/
    │   │   ├── __snapshots__/
    │   │   │   └── index.js.snap
    │   │   └── index.js
    │   ├── dist/
    │   │   └── index.js
    │   ├── package.json
    │   └── src/
    │       └── index.js
    ├── remark-grid-tables/
    │   ├── .npmignore
    │   ├── LICENSE-MIT
    │   ├── README.md
    │   ├── __tests__/
    │   │   ├── __snapshots__/
    │   │   │   └── index.js.snap
    │   │   ├── grid-tables.double.md
    │   │   ├── grid-tables.md
    │   │   └── index.js
    │   ├── dist/
    │   │   └── index.js
    │   ├── package.json
    │   └── src/
    │       └── index.js
    ├── remark-heading-shift/
    │   ├── .npmignore
    │   ├── LICENSE-MIT
    │   ├── README.md
    │   ├── __tests__/
    │   │   ├── __snapshots__/
    │   │   │   └── index.js.snap
    │   │   └── index.js
    │   ├── dist/
    │   │   └── index.js
    │   ├── package.json
    │   └── src/
    │       └── index.js
    ├── remark-heading-trailing-spaces/
    │   ├── .npmignore
    │   ├── LICENSE-MIT
    │   ├── README.md
    │   ├── __tests__/
    │   │   ├── __snapshots__/
    │   │   │   └── index.js.snap
    │   │   └── index.js
    │   ├── dist/
    │   │   └── index.js
    │   ├── package.json
    │   └── src/
    │       └── index.js
    ├── remark-iframes/
    │   ├── .npmignore
    │   ├── LICENSE-MIT
    │   ├── README.md
    │   ├── __tests__/
    │   │   ├── __snapshots__/
    │   │   │   └── index.js.snap
    │   │   └── index.js
    │   ├── dist/
    │   │   └── index.js
    │   ├── package.json
    │   └── src/
    │       └── index.js
    ├── remark-images-download/
    │   ├── .npmignore
    │   ├── LICENSE-MIT
    │   ├── README.md
    │   ├── __mock__/
    │   │   ├── files/
    │   │   │   ├── empty
    │   │   │   ├── world
    │   │   │   └── wrong-mime.txt
    │   │   └── server.js
    │   ├── __tests__/
    │   │   └── index.js
    │   ├── dist/
    │   │   └── index.js
    │   ├── package.json
    │   └── src/
    │       └── index.js
    ├── remark-kbd/
    │   ├── .npmignore
    │   ├── LICENSE-MIT
    │   ├── README.md
    │   ├── __tests__/
    │   │   ├── __snapshots__/
    │   │   │   └── index.js.snap
    │   │   └── index.js
    │   ├── dist/
    │   │   └── index.js
    │   ├── package.json
    │   └── src/
    │       └── index.js
    ├── remark-numbered-footnotes/
    │   ├── .npmignore
    │   ├── LICENSE-MIT
    │   ├── README.md
    │   ├── __tests__/
    │   │   ├── __snapshots__/
    │   │   │   └── index.js.snap
    │   │   ├── fixtures/
    │   │   │   ├── footnote-split.fixture.md
    │   │   │   ├── footnotes.fixture.md
    │   │   │   ├── regression-1.fixture.md
    │   │   │   └── regression-2.fixture.md
    │   │   └── index.js
    │   ├── dist/
    │   │   └── index.js
    │   ├── package.json
    │   └── src/
    │       └── index.js
    ├── remark-ping/
    │   ├── .npmignore
    │   ├── LICENSE-MIT
    │   ├── README.md
    │   ├── __tests__/
    │   │   ├── __snapshots__/
    │   │   │   └── index.js.snap
    │   │   └── index.js
    │   ├── dist/
    │   │   └── index.js
    │   ├── package.json
    │   └── src/
    │       └── index.js
    ├── remark-sub-super/
    │   ├── .npmignore
    │   ├── LICENSE-MIT
    │   ├── README.md
    │   ├── __tests__/
    │   │   ├── __snapshots__/
    │   │   │   └── index.js.snap
    │   │   └── index.js
    │   ├── dist/
    │   │   └── index.js
    │   ├── package.json
    │   └── src/
    │       └── index.js
    ├── typographic-colon/
    │   ├── .npmignore
    │   ├── LICENSE-MIT
    │   ├── README.md
    │   ├── __tests__/
    │   │   └── index.js
    │   ├── dist/
    │   │   ├── db.js
    │   │   └── index.js
    │   ├── package.json
    │   └── src/
    │       ├── db.js
    │       └── index.js
    ├── typographic-em-dash/
    │   ├── .npmignore
    │   ├── LICENSE-MIT
    │   ├── README.md
    │   ├── __tests__/
    │   │   └── index.js
    │   ├── dist/
    │   │   ├── db.js
    │   │   └── index.js
    │   ├── package.json
    │   └── src/
    │       ├── db.js
    │       └── index.js
    ├── typographic-exclamation-mark/
    │   ├── .npmignore
    │   ├── LICENSE-MIT
    │   ├── README.md
    │   ├── __tests__/
    │   │   └── index.js
    │   ├── dist/
    │   │   ├── db.js
    │   │   └── index.js
    │   ├── package.json
    │   └── src/
    │       ├── db.js
    │       └── index.js
    ├── typographic-guillemets/
    │   ├── .npmignore
    │   ├── LICENSE-MIT
    │   ├── README.md
    │   ├── __tests__/
    │   │   └── index.js
    │   ├── dist/
    │   │   ├── db.js
    │   │   └── index.js
    │   ├── package.json
    │   └── src/
    │       ├── db.js
    │       └── index.js
    ├── typographic-percent/
    │   ├── .npmignore
    │   ├── LICENSE-MIT
    │   ├── README.md
    │   ├── __tests__/
    │   │   └── index.js
    │   ├── dist/
    │   │   ├── db.js
    │   │   └── index.js
    │   ├── package.json
    │   └── src/
    │       ├── db.js
    │       └── index.js
    ├── typographic-permille/
    │   ├── .npmignore
    │   ├── LICENSE-MIT
    │   ├── README.md
    │   ├── __tests__/
    │   │   └── index.js
    │   ├── dist/
    │   │   ├── db.js
    │   │   └── index.js
    │   ├── package.json
    │   └── src/
    │       ├── db.js
    │       └── index.js
    ├── typographic-question-mark/
    │   ├── .npmignore
    │   ├── LICENSE-MIT
    │   ├── README.md
    │   ├── __tests__/
    │   │   └── index.js
    │   ├── dist/
    │   │   ├── db.js
    │   │   └── index.js
    │   ├── package.json
    │   └── src/
    │       ├── db.js
    │       └── index.js
    ├── typographic-semicolon/
    │   ├── .npmignore
    │   ├── LICENSE-MIT
    │   ├── README.md
    │   ├── __tests__/
    │   │   └── index.js
    │   ├── dist/
    │   │   ├── db.js
    │   │   └── index.js
    │   ├── package.json
    │   └── src/
    │       ├── db.js
    │       └── index.js
    └── zmarkdown/
        ├── .gitignore
        ├── README.md
        ├── __tests__/
        │   ├── __snapshots__/
        │   │   ├── api.test.js.snap
        │   │   ├── html-suite.test.js.snap
        │   │   ├── latex-suite.test.js.snap
        │   │   ├── legacy-suite.test.js.snap
        │   │   ├── mdast-suite.test.js.snap
        │   │   ├── misc.test.js.snap
        │   │   ├── regressions.test.js.snap
        │   │   └── server.test.js.snap
        │   ├── api.test.js
        │   ├── html-suite.test.js
        │   ├── latex-suite.test.js
        │   ├── legacy-suite.test.js
        │   ├── mdast-suite.test.js
        │   ├── misc.test.js
        │   ├── regressions.test.js
        │   └── server.test.js
        ├── client/
        │   ├── zhlite.js
        │   ├── zhtml.js
        │   ├── zlatex.js
        │   └── zmdast.js
        ├── common.js
        ├── config/
        │   ├── html/
        │   │   ├── iframe-wrappers.js
        │   │   └── index.js
        │   ├── latex/
        │   │   └── index.js
        │   ├── mdast/
        │   │   ├── custom-blocks.js
        │   │   ├── emoticons.js
        │   │   ├── iframes.js
        │   │   ├── images-download.js
        │   │   ├── index.js
        │   │   └── textr.js
        │   └── sanitize/
        │       ├── index.js
        │       └── katex.json
        ├── munin/
        │   └── zmd.sh
        ├── package.json
        ├── plugins/
        │   ├── remark-code-meta.js
        │   ├── remark-image-to-figure.js
        │   └── remark-textr.js
        ├── postprocessors/
        │   ├── html-footnotes-reorder.js
        │   ├── html-iframe-wrappers.js
        │   ├── html-lazy-load-images.js
        │   ├── html-wrap-code.js
        │   ├── md-detect-quizzes.js
        │   ├── md-get-stats.js
        │   ├── md-limit-depth.js
        │   ├── md-list-languages.js
        │   └── md-wrap-intro-ccl.js
        ├── public/
        │   ├── README.md
        │   ├── css/
        │   │   ├── main.css
        │   │   └── zmd.css
        │   ├── index.html
        │   ├── main.css
        │   └── script.js
        ├── renderers/
        │   ├── html.js
        │   ├── latex.js
        │   ├── mdast.js
        │   └── renderer-forge.js
        ├── server/
        │   ├── controllers/
        │   │   └── munin.js
        │   ├── factories/
        │   │   ├── config-factory.js
        │   │   ├── controller-factory.js
        │   │   ├── io-factory.js
        │   │   └── processor-factory.js
        │   ├── index.js
        │   ├── routes/
        │   │   ├── endpoints.js
        │   │   └── munin.js
        │   ├── templates/
        │   │   └── latex-document.js
        │   └── utils/
        │       └── manifest.js
        ├── utils/
        │   ├── code-handler.js
        │   ├── create-wrappers.js
        │   ├── latex-code.js
        │   └── renderer-tests.js
        └── webpack.config.js
Download .txt
SYMBOL INDEX (385 symbols across 162 files)

FILE: packages/mdast-util-split-by-heading/dist/index.js
  function splitAtDepth (line 5) | function splitAtDepth(tree, {
  function newRootTree (line 15) | function newRootTree(children = []) {
  class Splitter (line 21) | class Splitter {
    method constructor (line 22) | constructor(depth = 1) {
    method visit (line 28) | visit(node, index, parent) {

FILE: packages/mdast-util-split-by-heading/src/index.js
  function splitAtDepth (line 5) | function splitAtDepth (tree, { splitDepth = 1 }) {
  function newRootTree (line 16) | function newRootTree (children = []) {
  class Splitter (line 23) | class Splitter {
    method constructor (line 24) | constructor (depth = 1) {
    method visit (line 31) | visit (node, index, parent) {

FILE: packages/rebber-plugins/dist/preprocessors/footnoteProtect.js
  function plugin (line 11) | function plugin() {

FILE: packages/rebber-plugins/dist/preprocessors/mathEscape.js
  function isEndOfCommand (line 5) | function isEndOfCommand(nodeLine, index) {

FILE: packages/rebber-plugins/dist/preprocessors/prepareQuizz.js
  function processQuizzFactory (line 6) | function processQuizzFactory(ctx) {

FILE: packages/rebber-plugins/dist/preprocessors/spoilerFlatten.js
  function flattenTree (line 12) | function flattenTree(blockTree) {

FILE: packages/rebber-plugins/dist/type/abbr.js
  function abbrPlugin (line 9) | function abbrPlugin(ctx, node) {

FILE: packages/rebber-plugins/dist/type/align.js
  function align (line 14) | function align(ctx, node) {

FILE: packages/rebber-plugins/dist/type/appendix.js
  function definitionMacro (line 9) | function definitionMacro(ctx, identifier, url) {
  function appendixPlugin (line 12) | function appendixPlugin(ctx, node) {

FILE: packages/rebber-plugins/dist/type/comments.js
  function comments (line 7) | function comments(ctx, node) {

FILE: packages/rebber-plugins/dist/type/conclusion.js
  function conclusion (line 11) | function conclusion(ctx, node) {

FILE: packages/rebber-plugins/dist/type/customBlocks.js
  function customBlock (line 13) | function customBlock(ctx, node) {

FILE: packages/rebber-plugins/dist/type/emoticon.js
  function emoticon (line 10) | function emoticon(ctx, node) {

FILE: packages/rebber-plugins/dist/type/figure.js
  function figure (line 37) | function figure(ctx, node, index, parent) {

FILE: packages/rebber-plugins/dist/type/footnote.js
  function autoId (line 12) | function autoId(node) {
  function notes (line 22) | function notes(ctx, node) {

FILE: packages/rebber-plugins/dist/type/footnoteDefinition.js
  function notes (line 9) | function notes(ctx, node) {

FILE: packages/rebber-plugins/dist/type/footnoteReference.js
  function notes (line 6) | function notes(ctx, node) {

FILE: packages/rebber-plugins/dist/type/gridTable.js
  class MultiRowLine (line 13) | class MultiRowLine {
    method constructor (line 14) | constructor(startRow, endRow, startCell, endCell, colSpan, endOfLine) {
    method getCLine (line 21) | getCLine() {
  class GridTableStringifier (line 37) | class GridTableStringifier {
    method constructor (line 38) | constructor() {
    method gridTableCell (line 47) | gridTableCell(ctx, node) {
    method gridTableRow (line 74) | gridTableRow(ctx, node, index) {
    method flushMultiRowLineIfNeeded (line 123) | flushMultiRowLineIfNeeded() {
    method gridTableheaderCounter (line 136) | gridTableheaderCounter(node) {
    method gridTableHeaderParse (line 140) | gridTableHeaderParse() {
    method previousRowWasMulti (line 143) | previousRowWasMulti() {
  function gridTable (line 147) | function gridTable(ctx, node) {

FILE: packages/rebber-plugins/dist/type/introduction.js
  function introduction (line 11) | function introduction(ctx, node) {

FILE: packages/rebber-plugins/dist/type/kbd.js
  function kbd (line 10) | function kbd(ctx, node) {

FILE: packages/rebber-plugins/dist/type/math.js
  function math (line 16) | function math(ctx, node, index, parent) {

FILE: packages/rebber-plugins/dist/type/ping.js
  function ping (line 7) | function ping(_, node) {

FILE: packages/rebber-plugins/dist/type/sub.js
  function sub (line 10) | function sub(ctx, node, index, parent) {

FILE: packages/rebber-plugins/dist/type/sup.js
  function sup (line 10) | function sup(ctx, node, index, parent) {

FILE: packages/rebber-plugins/src/preprocessors/footnoteProtect.js
  function plugin (line 10) | function plugin () {

FILE: packages/rebber-plugins/src/preprocessors/mathEscape.js
  function isEndOfCommand (line 5) | function isEndOfCommand (nodeLine, index) {

FILE: packages/rebber-plugins/src/preprocessors/prepareQuizz.js
  function processQuizzFactory (line 6) | function processQuizzFactory (ctx) {

FILE: packages/rebber-plugins/src/preprocessors/spoilerFlatten.js
  function flattenTree (line 12) | function flattenTree (blockTree) {

FILE: packages/rebber-plugins/src/type/abbr.js
  function abbrPlugin (line 8) | function abbrPlugin (ctx, node) {

FILE: packages/rebber-plugins/src/type/align.js
  function align (line 14) | function align (ctx, node) {

FILE: packages/rebber-plugins/src/type/appendix.js
  function definitionMacro (line 8) | function definitionMacro (ctx, identifier, url) {
  function appendixPlugin (line 12) | function appendixPlugin (ctx, node) {

FILE: packages/rebber-plugins/src/type/comments.js
  function comments (line 5) | function comments (ctx, node) {

FILE: packages/rebber-plugins/src/type/conclusion.js
  function conclusion (line 14) | function conclusion (ctx, node) {

FILE: packages/rebber-plugins/src/type/customBlocks.js
  function customBlock (line 15) | function customBlock (ctx, node) {

FILE: packages/rebber-plugins/src/type/emoticon.js
  function emoticon (line 8) | function emoticon (ctx, node) {

FILE: packages/rebber-plugins/src/type/figure.js
  function figure (line 39) | function figure (ctx, node, index, parent) {

FILE: packages/rebber-plugins/src/type/footnote.js
  function autoId (line 13) | function autoId (node) {
  function notes (line 19) | function notes (ctx, node) {

FILE: packages/rebber-plugins/src/type/footnoteDefinition.js
  function notes (line 10) | function notes (ctx, node) {

FILE: packages/rebber-plugins/src/type/footnoteReference.js
  function notes (line 7) | function notes (ctx, node) {

FILE: packages/rebber-plugins/src/type/gridTable.js
  class MultiRowLine (line 13) | class MultiRowLine {
    method constructor (line 14) | constructor (startRow, endRow, startCell, endCell, colSpan, endOfLine) {
    method getCLine (line 22) | getCLine () {
  class GridTableStringifier (line 39) | class GridTableStringifier {
    method constructor (line 40) | constructor () {
    method gridTableCell (line 50) | gridTableCell (ctx, node) {
    method gridTableRow (line 81) | gridTableRow (ctx, node, index) {
    method flushMultiRowLineIfNeeded (line 146) | flushMultiRowLineIfNeeded () {
    method gridTableheaderCounter (line 160) | gridTableheaderCounter (node) {
    method gridTableHeaderParse (line 167) | gridTableHeaderParse () {
    method previousRowWasMulti (line 171) | previousRowWasMulti () {
  function gridTable (line 176) | function gridTable (ctx, node) {

FILE: packages/rebber-plugins/src/type/introduction.js
  function introduction (line 14) | function introduction (ctx, node) {

FILE: packages/rebber-plugins/src/type/kbd.js
  function kbd (line 8) | function kbd (ctx, node) {

FILE: packages/rebber-plugins/src/type/math.js
  function math (line 15) | function math (ctx, node, index, parent) {

FILE: packages/rebber-plugins/src/type/ping.js
  function ping (line 5) | function ping (_, node) {

FILE: packages/rebber-plugins/src/type/sub.js
  function sub (line 8) | function sub (ctx, node, index, parent) {

FILE: packages/rebber-plugins/src/type/sup.js
  function sup (line 8) | function sup (ctx, node, index, parent) {

FILE: packages/rebber/__tests__/mdast.tests.js
  function hydrateFixtures (line 117) | function hydrateFixtures () {

FILE: packages/rebber/dist/all.js
  function all (line 10) | function all(ctx, parent) {

FILE: packages/rebber/dist/escaper.js
  function encode (line 26) | function encode(value, opts = {}) {
  function one (line 36) | function one(char, next, escapes) {
  function toExpression (line 44) | function toExpression(characters) {
  function escapeRegExp (line 48) | function escapeRegExp(str) {

FILE: packages/rebber/dist/index.js
  function toLaTeX (line 12) | function toLaTeX(tree, options = {}) {
  function stringify (line 21) | function stringify(config) {

FILE: packages/rebber/dist/one.js
  function one (line 36) | function one(ctx, node, index, parent) {

FILE: packages/rebber/dist/preprocessors/index.js
  function preprocess (line 7) | function preprocess(ctx, tree) {

FILE: packages/rebber/dist/preprocessors/referenceVisitors.js
  method definitionVisitor (line 6) | definitionVisitor() {
  method imageReferenceVisitor (line 21) | imageReferenceVisitor() {
  method addIdentifier (line 28) | addIdentifier(identifier, content) {

FILE: packages/rebber/dist/types/blockquote.js
  function blockquote (line 8) | function blockquote(ctx, node) {

FILE: packages/rebber/dist/types/break.js
  function br (line 8) | function br(ctx, node) {

FILE: packages/rebber/dist/types/code.js
  function code (line 19) | function code(ctx, node) {

FILE: packages/rebber/dist/types/definition.js
  function definition (line 19) | function definition(ctx, node) {

FILE: packages/rebber/dist/types/delete.js
  function deleteNode (line 8) | function deleteNode(ctx, node, index, parent) {

FILE: packages/rebber/dist/types/emphasis.js
  function emphasis (line 8) | function emphasis(ctx, node, index, parent) {

FILE: packages/rebber/dist/types/heading.js
  function heading (line 9) | function heading(ctx, node) {

FILE: packages/rebber/dist/types/html.js
  function html (line 8) | function html(ctx, node, index, parent) {

FILE: packages/rebber/dist/types/image.js
  function image (line 20) | function image(ctx, node, _, parent) {

FILE: packages/rebber/dist/types/link.js
  function link (line 13) | function link(ctx, node) {

FILE: packages/rebber/dist/types/linkReference.js
  function linkReference (line 5) | function linkReference(ctx, node) {

FILE: packages/rebber/dist/types/list.js
  function list (line 12) | function list(ctx, node) {

FILE: packages/rebber/dist/types/listItem.js
  function listItem (line 8) | function listItem(ctx, node) {

FILE: packages/rebber/dist/types/paragraph.js
  function paragraph (line 8) | function paragraph(ctx, node) {

FILE: packages/rebber/dist/types/raw.js
  function raw (line 11) | function raw(ctx, node) {

FILE: packages/rebber/dist/types/root.js
  function root (line 10) | function root(ctx, node, _, parent) {

FILE: packages/rebber/dist/types/strong.js
  function strong (line 8) | function strong(ctx, node, index, parent) {

FILE: packages/rebber/dist/types/table.js
  function table (line 38) | function table(ctx, node) {

FILE: packages/rebber/dist/types/tableCell.js
  function tableCell (line 10) | function tableCell(ctx, node) {

FILE: packages/rebber/dist/types/tableRow.js
  function tableRow (line 14) | function tableRow(ctx, node, index) {

FILE: packages/rebber/dist/types/text.js
  function isLiteral (line 15) | function isLiteral(node) {

FILE: packages/rebber/dist/types/thematic-break.js
  function thematicBreak (line 8) | function thematicBreak(ctx, node, index, parent) {

FILE: packages/rebber/src/all.js
  function all (line 8) | function all (ctx, parent) {

FILE: packages/rebber/src/escaper.js
  function encode (line 25) | function encode (value, opts = {}) {
  function one (line 37) | function one (char, next, escapes) {
  function toExpression (line 46) | function toExpression (characters) {
  function escapeRegExp (line 52) | function escapeRegExp (str) {

FILE: packages/rebber/src/index.js
  function toLaTeX (line 11) | function toLaTeX (tree, options = {}) {
  function stringify (line 20) | function stringify (config) {

FILE: packages/rebber/src/one.js
  function one (line 35) | function one (ctx, node, index, parent) {

FILE: packages/rebber/src/preprocessors/index.js
  function preprocess (line 8) | function preprocess (ctx, tree) {

FILE: packages/rebber/src/preprocessors/referenceVisitors.js
  method definitionVisitor (line 5) | definitionVisitor () {
  method imageReferenceVisitor (line 21) | imageReferenceVisitor () {
  method addIdentifier (line 28) | addIdentifier (identifier, content) {

FILE: packages/rebber/src/types/blockquote.js
  function blockquote (line 8) | function blockquote (ctx, node) {

FILE: packages/rebber/src/types/break.js
  function br (line 7) | function br (ctx, node) {

FILE: packages/rebber/src/types/code.js
  function code (line 21) | function code (ctx, node) {

FILE: packages/rebber/src/types/definition.js
  function definition (line 21) | function definition (ctx, node) {

FILE: packages/rebber/src/types/delete.js
  function deleteNode (line 6) | function deleteNode (ctx, node, index, parent) {

FILE: packages/rebber/src/types/emphasis.js
  function emphasis (line 6) | function emphasis (ctx, node, index, parent) {

FILE: packages/rebber/src/types/heading.js
  function heading (line 16) | function heading (ctx, node) {

FILE: packages/rebber/src/types/html.js
  function html (line 6) | function html (ctx, node, index, parent) {

FILE: packages/rebber/src/types/image.js
  function image (line 23) | function image (ctx, node, _, parent) {

FILE: packages/rebber/src/types/link.js
  function link (line 12) | function link (ctx, node) {

FILE: packages/rebber/src/types/linkReference.js
  function linkReference (line 5) | function linkReference (ctx, node) {

FILE: packages/rebber/src/types/list.js
  function list (line 13) | function list (ctx, node) {

FILE: packages/rebber/src/types/listItem.js
  function listItem (line 9) | function listItem (ctx, node) {

FILE: packages/rebber/src/types/paragraph.js
  function paragraph (line 6) | function paragraph (ctx, node) {

FILE: packages/rebber/src/types/raw.js
  function raw (line 9) | function raw (ctx, node) {

FILE: packages/rebber/src/types/root.js
  function root (line 8) | function root (ctx, node, _, parent) {

FILE: packages/rebber/src/types/strong.js
  function strong (line 6) | function strong (ctx, node, index, parent) {

FILE: packages/rebber/src/types/table.js
  function table (line 47) | function table (ctx, node) {

FILE: packages/rebber/src/types/tableCell.js
  function tableCell (line 9) | function tableCell (ctx, node) {

FILE: packages/rebber/src/types/tableRow.js
  function tableRow (line 13) | function tableRow (ctx, node, index) {

FILE: packages/rebber/src/types/text.js
  function isLiteral (line 14) | function isLiteral (node) {

FILE: packages/rebber/src/types/thematic-break.js
  function thematicBreak (line 7) | function thematicBreak (ctx, node, index, parent) {

FILE: packages/rehype-footnotes-title/dist/index.js
  function findLastTag (line 4) | function findLastTag(node, tag = 'p') {
  function findLastLink (line 10) | function findLastLink(node, className) {
  function plugin (line 18) | function plugin(title = '') {

FILE: packages/rehype-footnotes-title/src/index.js
  function findLastTag (line 3) | function findLastTag (node, tag = 'p') {
  function findLastLink (line 9) | function findLastLink (node, className) {
  function plugin (line 19) | function plugin (title = '') {

FILE: packages/rehype-html-blocks/dist/index.js
  function plugin (line 5) | function plugin() {
  function transformer (line 8) | function transformer(tree) {
  function visitor (line 11) | function visitor(node, index, parent) {

FILE: packages/rehype-html-blocks/src/index.js
  function plugin (line 39) | function plugin () {
  function transformer (line 43) | function transformer (tree) {
  function visitor (line 47) | function visitor (node, index, parent) {

FILE: packages/rehype-postfix-footnote-anchors/dist/index.js
  function findLastTag (line 4) | function findLastTag(node, tag = 'p') {
  function findLastLink (line 10) | function findLastLink(node, className) {
  function setPostfix (line 18) | function setPostfix(node, aTag, postfix) {
  function plugin (line 29) | function plugin(postfix = '-postfix') {

FILE: packages/rehype-postfix-footnote-anchors/src/index.js
  function findLastTag (line 3) | function findLastTag (node, tag = 'p') {
  function findLastLink (line 9) | function findLastLink (node, className) {
  function setPostfix (line 18) | function setPostfix (node, aTag, postfix) {
  function plugin (line 30) | function plugin (postfix = '-postfix') {

FILE: packages/remark-abbr/dist/index.js
  function plugin (line 4) | function plugin(options) {

FILE: packages/remark-abbr/src/index.js
  function plugin (line 3) | function plugin (options) {

FILE: packages/remark-align/dist/index.js
  constant C_NEWLINE (line 4) | const C_NEWLINE = '\n';
  constant C_NEWPARAGRAPH (line 5) | const C_NEWPARAGRAPH = '\n\n';
  function alignTokenizer (line 9) | function alignTokenizer(eat, value, silent) {

FILE: packages/remark-align/src/index.js
  constant C_NEWLINE (line 3) | const C_NEWLINE = '\n'
  constant C_NEWPARAGRAPH (line 4) | const C_NEWPARAGRAPH = '\n\n'
  function alignTokenizer (line 10) | function alignTokenizer (eat, value, silent) {

FILE: packages/remark-captions/dist/index.js
  function plugin (line 14) | function plugin(opts) {
  function internLegendVisitor (line 75) | function internLegendVisitor(internalBlocks) {
  function externLegendVisitorCreator (line 144) | function externLegendVisitorCreator(blocks) {
  function getLastParagraph (line 207) | function getLastParagraph(xs, lastParagraph) {

FILE: packages/remark-captions/src/index.js
  function plugin (line 15) | function plugin (opts) {
  function internLegendVisitor (line 85) | function internLegendVisitor (internalBlocks) {
  function externLegendVisitorCreator (line 173) | function externLegendVisitorCreator (blocks) {
  function getLastParagraph (line 242) | function getLastParagraph (xs, lastParagraph) {

FILE: packages/remark-comments/dist/index.js
  function plugin (line 5) | function plugin({

FILE: packages/remark-comments/src/index.js
  function plugin (line 4) | function plugin ({ beginMarker = 'COMMENTS', endMarker = 'COMMENTS' } = ...

FILE: packages/remark-custom-blocks/dist/index.js
  function escapeRegExp (line 4) | function escapeRegExp(str) {
  constant C_NEWLINE (line 7) | const C_NEWLINE = '\n';
  constant C_FENCE (line 8) | const C_FENCE = '|';
  function compilerFactory (line 9) | function compilerFactory(nodeType) {
  function blockTokenizer (line 39) | function blockTokenizer(eat, value, silent) {

FILE: packages/remark-custom-blocks/src/index.js
  function escapeRegExp (line 3) | function escapeRegExp (str) {
  constant C_NEWLINE (line 7) | const C_NEWLINE = '\n'
  constant C_FENCE (line 8) | const C_FENCE = '|'
  function compilerFactory (line 10) | function compilerFactory (nodeType) {
  function blockTokenizer (line 48) | function blockTokenizer (eat, value, silent) {

FILE: packages/remark-disable-tokenizers/__tests__/index.js
  function t (line 10) | function t () {
  function t (line 102) | function t () {
  function t (line 125) | function t () {
  function t (line 148) | function t () {

FILE: packages/remark-disable-tokenizers/dist/index.js
  function plugin (line 9) | function plugin({

FILE: packages/remark-disable-tokenizers/src/index.js
  function plugin (line 11) | function plugin ({ block = [], inline = [] } = {}) {

FILE: packages/remark-emoticons/dist/index.js
  function escapeRegExp (line 4) | function escapeRegExp(str) {
  function locator (line 28) | function locator(value, fromIndex) {
  function inlineTokenizer (line 59) | function inlineTokenizer(eat, value, silent) {

FILE: packages/remark-emoticons/src/index.js
  function escapeRegExp (line 3) | function escapeRegExp (str) {
  function locator (line 31) | function locator (value, fromIndex) {
  function inlineTokenizer (line 66) | function inlineTokenizer (eat, value, silent) {

FILE: packages/remark-escape-escaped/dist/index.js
  function escapeRegExp (line 3) | function escapeRegExp(str) {
  function locator (line 12) | function locator(value, fromIndex) {
  function inlineTokenizer (line 16) | function inlineTokenizer(eat, value, silent) {

FILE: packages/remark-escape-escaped/src/index.js
  function escapeRegExp (line 1) | function escapeRegExp (str) {
  function locator (line 12) | function locator (value, fromIndex) {
  function inlineTokenizer (line 17) | function inlineTokenizer (eat, value, silent) {

FILE: packages/remark-fix-guillemets/__tests__/index.js
  function remarkTextr (line 12) | function remarkTextr ({plugins = [], options = {}} = {}) {

FILE: packages/remark-fix-guillemets/dist/index.js
  function plugin (line 4) | function plugin() {
  function transformer (line 7) | function transformer(tree) {
  function visitor (line 10) | function visitor(node, index, parent) {

FILE: packages/remark-fix-guillemets/src/index.js
  function plugin (line 3) | function plugin () {
  function transformer (line 7) | function transformer (tree) {
  function visitor (line 11) | function visitor (node, index, parent) {

FILE: packages/remark-grid-tables/dist/index.js
  class Table (line 15) | class Table {
    method constructor (line 16) | constructor(linesInfos) {
    method lastPart (line 21) | lastPart() {
    method addPart (line 24) | addPart() {
  class TablePart (line 28) | class TablePart {
    method constructor (line 29) | constructor(linesInfos) {
    method addRow (line 34) | addRow() {
    method removeLastRow (line 37) | removeLastRow() {
    method lastRow (line 40) | lastRow() {
    method updateWithMainLine (line 43) | updateWithMainLine(line, isEndLine) {
    method updateWithPartLine (line 61) | updateWithPartLine(line) {
  class TableRow (line 115) | class TableRow {
    method constructor (line 116) | constructor(linesInfos) {
    method updateContent (line 123) | updateContent(line) {
  class TableCell (line 130) | class TableCell {
    method constructor (line 131) | constructor(startPosition, endPosition) {
    method mergeWith (line 138) | mergeWith(other) {
  function merge (line 148) | function merge(beforeTable, gridTable, afterTable) {
  function isSeparationLine (line 161) | function isSeparationLine(line) {
  function isHeaderLine (line 164) | function isHeaderLine(line) {
  function isPartLine (line 167) | function isPartLine(line) {
  function findAll (line 170) | function findAll(str, characters) {
  function computePlainLineColumnsStartingPositions (line 183) | function computePlainLineColumnsStartingPositions(line) {
  function mergeColumnsStartingPositions (line 186) | function mergeColumnsStartingPositions(allPos) {
  function computeColumnStartingPositions (line 196) | function computeColumnStartingPositions(lines) {
  function isCodePointPosition (line 205) | function isCodePointPosition(line, pos) {
  function substringLine (line 223) | function substringLine(line, start, end) {
  function extractTable (line 239) | function extractTable(value, eat, tokenizer) {
  function extractTableContent (line 296) | function extractTableContent(lines, linesInfos, hasHeader) {
  function processCellLines (line 331) | function processCellLines(lines) {
  function generateTable (line 371) | function generateTable(tableContent, now, tokenizer) {
  function gridTableTokenizer (line 433) | function gridTableTokenizer(eat, value, silent) {
  function deleteWrapperBlock (line 479) | function deleteWrapperBlock() {
  function transformer (line 501) | function transformer(tree) {
  function createGrid (line 505) | function createGrid(nbRows, nbCols) {
  function setWidth (line 520) | function setWidth(grid, i, j, cols) {
  function setHeight (line 533) | function setHeight(grid, i, j, values) {
  function extractAST (line 542) | function extractAST(gridNode, grid) {
  function setSize (line 585) | function setSize(grid) {
  function generateBorders (line 610) | function generateBorders(grid, nbRows, nbCols, gridString) {
  function writeText (line 675) | function writeText(grid, gridString) {
  function stringifyGridTables (line 691) | function stringifyGridTables(gridNode) {
  function plugin (line 709) | function plugin() {

FILE: packages/remark-grid-tables/src/index.js
  class Table (line 15) | class Table {
    method constructor (line 16) | constructor (linesInfos) {
    method lastPart (line 22) | lastPart () {
    method addPart (line 26) | addPart () {
  class TablePart (line 31) | class TablePart {
    method constructor (line 32) | constructor (linesInfos) {
    method addRow (line 38) | addRow () {
    method removeLastRow (line 42) | removeLastRow () {
    method lastRow (line 46) | lastRow () {
    method updateWithMainLine (line 50) | updateWithMainLine (line, isEndLine) {
    method updateWithPartLine (line 72) | updateWithPartLine (line) {
  class TableRow (line 128) | class TableRow {
    method constructor (line 129) | constructor (linesInfos) {
    method updateContent (line 137) | updateContent (line) {
  class TableCell (line 145) | class TableCell {
    method constructor (line 146) | constructor (startPosition, endPosition) {
    method mergeWith (line 154) | mergeWith (other) {
  function merge (line 165) | function merge (beforeTable, gridTable, afterTable) {
  function isSeparationLine (line 179) | function isSeparationLine (line) {
  function isHeaderLine (line 183) | function isHeaderLine (line) {
  function isPartLine (line 187) | function isPartLine (line) {
  function findAll (line 191) | function findAll (str, characters) {
  function computePlainLineColumnsStartingPositions (line 205) | function computePlainLineColumnsStartingPositions (line) {
  function mergeColumnsStartingPositions (line 209) | function mergeColumnsStartingPositions (allPos) {
  function computeColumnStartingPositions (line 222) | function computeColumnStartingPositions (lines) {
  function isCodePointPosition (line 234) | function isCodePointPosition (line, pos) {
  function substringLine (line 254) | function substringLine (line, start, end) {
  function extractTable (line 276) | function extractTable (value, eat, tokenizer) {
  function extractTableContent (line 340) | function extractTableContent (lines, linesInfos, hasHeader) {
  function processCellLines (line 378) | function processCellLines (lines) {
  function generateTable (line 421) | function generateTable (tableContent, now, tokenizer) {
  function gridTableTokenizer (line 497) | function gridTableTokenizer (eat, value, silent) {
  function deleteWrapperBlock (line 554) | function deleteWrapperBlock () {
  function transformer (line 578) | function transformer (tree) {
  function createGrid (line 583) | function createGrid (nbRows, nbCols) {
  function setWidth (line 596) | function setWidth (grid, i, j, cols) {
  function setHeight (line 610) | function setHeight (grid, i, j, values) {
  function extractAST (line 620) | function extractAST (gridNode, grid) {
  function setSize (line 665) | function setSize (grid) {
  function generateBorders (line 686) | function generateBorders (grid, nbRows, nbCols, gridString) {
  function writeText (line 759) | function writeText (grid, gridString) {
  function stringifyGridTables (line 777) | function stringifyGridTables (gridNode) {
  function plugin (line 805) | function plugin () {

FILE: packages/remark-heading-shift/dist/index.js
  function shifter (line 4) | function shifter(shift = 1) {

FILE: packages/remark-heading-shift/src/index.js
  function shifter (line 3) | function shifter (shift = 1) {

FILE: packages/remark-heading-trailing-spaces/dist/index.js
  function headingTokenizer (line 4) | function headingTokenizer(eat, value, silent) {

FILE: packages/remark-heading-trailing-spaces/src/index.js
  function headingTokenizer (line 2) | function headingTokenizer (eat, value, silent) {

FILE: packages/remark-iframes/dist/index.js
  function detectProvider (line 9) | function detectProvider(url) {
  function blockTokenizer (line 13) | function blockTokenizer(eat, value, silent) {
  function nextVisitOrBail (line 102) | function nextVisitOrBail() {
  function computeFinalUrl (line 146) | function computeFinalUrl(provider, url) {
  function computeThumbnail (line 175) | function computeThumbnail(provider, url) {
  function fetchEmbed (line 188) | async function fetchEmbed(url) {

FILE: packages/remark-iframes/src/index.js
  function detectProvider (line 9) | function detectProvider (url) {
  function blockTokenizer (line 14) | function blockTokenizer (eat, value, silent) {
  function nextVisitOrBail (line 114) | function nextVisitOrBail () {
  function computeFinalUrl (line 167) | function computeFinalUrl (provider, url) {
  function computeThumbnail (line 203) | function computeThumbnail (provider, url) {
  function fetchEmbed (line 220) | async function fetchEmbed (url) {

FILE: packages/remark-images-download/__tests__/index.js
  constant DOWNLOAD_DESTINATION (line 16) | const DOWNLOAD_DESTINATION = '/tmp'

FILE: packages/remark-images-download/dist/index.js
  method flush (line 66) | flush(cb) {
  method transform (line 73) | transform(chunk, encoding, cb) {
  constant FORBIDDEN_IPV4 (line 92) | const FORBIDDEN_IPV4 = ['10.0.0.0/8', '172.16.0.0/12', '192.168.0.0/16',...
  constant FORBIDDEN_IPV6 (line 93) | const FORBIDDEN_IPV6 = ['fc0::/7', 'fe80::/10'].map(a => new Address6(a));
  function plugin (line 138) | function plugin({

FILE: packages/remark-images-download/src/index.js
  method flush (line 63) | flush (cb) {
  method transform (line 71) | transform (chunk, encoding, cb) {
  constant FORBIDDEN_IPV4 (line 95) | const FORBIDDEN_IPV4 = [
  constant FORBIDDEN_IPV6 (line 102) | const FORBIDDEN_IPV6 = [
  function plugin (line 154) | function plugin ({

FILE: packages/remark-kbd/dist/index.js
  constant DEFAULT_LEFT (line 4) | const DEFAULT_LEFT = '|';
  constant DEFAULT_RIGHT (line 5) | const DEFAULT_RIGHT = '|';
  function plugin (line 6) | function plugin(config) {

FILE: packages/remark-kbd/src/index.js
  constant DEFAULT_LEFT (line 3) | const DEFAULT_LEFT = '|'
  constant DEFAULT_RIGHT (line 4) | const DEFAULT_RIGHT = '|'
  function plugin (line 6) | function plugin (config) {

FILE: packages/remark-numbered-footnotes/dist/index.js
  function plugin (line 4) | function plugin({
  function convert (line 36) | function convert(node, index, parent) {
  function autoId (line 52) | function autoId(node) {

FILE: packages/remark-numbered-footnotes/src/index.js
  function plugin (line 3) | function plugin ({ labelPrefix = '', labelSuffix = '' } = {}) {
  function convert (line 40) | function convert (node, index, parent) {
  function autoId (line 57) | function autoId (node) {

FILE: packages/remark-ping/__tests__/index.js
  function pingUsername (line 22) | function pingUsername (username) {
  function userURL (line 25) | function userURL (username) {

FILE: packages/remark-ping/dist/index.js
  function inlineTokenizer (line 25) | function inlineTokenizer(eat, value, silent) {
  function locator (line 96) | function locator(value, fromIndex) {
  function markInBlockquotes (line 143) | function markInBlockquotes(node) {
  function mark (line 149) | function mark(node) {

FILE: packages/remark-ping/src/index.js
  function inlineTokenizer (line 36) | function inlineTokenizer (eat, value, silent) {
  function locator (line 115) | function locator (value, fromIndex) {
  function markInBlockquotes (line 167) | function markInBlockquotes (node) {
  function mark (line 175) | function mark (node) {

FILE: packages/remark-sub-super/dist/index.js
  constant SPACE (line 3) | const SPACE = ' ';
  function locator (line 8) | function locator(value, fromIndex) {
  function inlinePlugin (line 24) | function inlinePlugin() {

FILE: packages/remark-sub-super/src/index.js
  constant SPACE (line 1) | const SPACE = ' '
  function locator (line 7) | function locator (value, fromIndex) {
  function inlinePlugin (line 26) | function inlinePlugin () {

FILE: packages/zmarkdown/client/zhlite.js
  function parser (line 29) | function parser (tokenizer, config) {
  function render (line 43) | function render (

FILE: packages/zmarkdown/client/zhtml.js
  function render (line 8) | function render (

FILE: packages/zmarkdown/client/zlatex.js
  function render (line 8) | function render (

FILE: packages/zmarkdown/client/zmdast.js
  function parser (line 45) | function parser (config) {
  function render (line 59) | function render (markdown, cb, config = defaultMdastConfig) {

FILE: packages/zmarkdown/plugins/remark-code-meta.js
  function parseCodeMeta (line 14) | function parseCodeMeta () {

FILE: packages/zmarkdown/plugins/remark-image-to-figure.js
  function plugin (line 6) | function plugin () {
  function imageToFigure (line 14) | function imageToFigure (img, index, parent) {

FILE: packages/zmarkdown/plugins/remark-textr.js
  function plugin (line 6) | function plugin ({ plugins = [], options = {} } = {}) {

FILE: packages/zmarkdown/postprocessors/md-limit-depth.js
  function getDepth (line 4) | function getDepth (node) {

FILE: packages/zmarkdown/public/script.js
  function buildSpoilers (line 25) | function buildSpoilers (elems) {
  function update (line 44) | function update () {

FILE: packages/zmarkdown/server/controllers/munin.js
  function gatherData (line 93) | function gatherData (procList) {
  function printConfig (line 144) | function printConfig (stats) {
  function printStats (line 176) | function printStats (stats) {
  function run (line 194) | function run (callback) {
  function l (line 212) | function l (string) {

FILE: packages/zmarkdown/server/utils/manifest.js
  function changeIfReturn (line 16) | function changeIfReturn (obj, extractType, d) {

FILE: packages/zmarkdown/utils/code-handler.js
  function code (line 78) | function code (_, node) {

FILE: packages/zmarkdown/utils/create-wrappers.js
  function createWrapper (line 7) | function createWrapper (tagToWrap, wrapInTags, classes, filter = allowAl...
  function wrap (line 26) | function wrap ({ wrapInTags, classes }, { node, index, parent }) {
Condensed preview — 694 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (2,182K chars).
[
  {
    "path": ".editorconfig",
    "chars": 126,
    "preview": "root = true\n\n[*.{js,json}]\ncharset = utf-8\nindent_style = space\nindent_size = 2\nend_of_line = lf\ninsert_final_newline = "
  },
  {
    "path": ".github/workflows/ci.yml",
    "chars": 1237,
    "preview": "name: CI\n\non:\n  push:\n    branches: [master, next]\n  pull_request:\n    branches: [master, next]\n\nenv:\n  NODE_VERSION: \"2"
  },
  {
    "path": ".github/workflows/prepublish.yml",
    "chars": 789,
    "preview": "name: Prepare publication\n\non:\n  push:\n    branches: [master]\n\nenv:\n  NODE_VERSION: \"22\"\n\njobs:\n  deploy-demo:\n    if: g"
  },
  {
    "path": ".gitignore",
    "chars": 180,
    "preview": ".DS_Store\n/node_modules\n/packages/*/node_modules\n/packages/*/coverage\n/packages/*/.nyc_output\n/.nyc_output/*\n/coverage/*"
  },
  {
    "path": "CODE_OF_CONDUCT.md",
    "chars": 5488,
    "preview": "# Contributor Covenant Code of Conduct\n\n## Our Pledge\n\nWe as members, contributors, and leaders pledge to make participa"
  },
  {
    "path": "LICENSE-MIT",
    "chars": 1082,
    "preview": "Copyright (c) Zeste de Savoir (https://zestedesavoir.com)\n\nPermission is hereby granted, free of charge, to any person\no"
  },
  {
    "path": "README.md",
    "chars": 8304,
    "preview": "# ZMarkdown\n\n  [![Build Status][build-badge]][build-status]\n  [![Coverage Status][coverage-badge]][coverage-status]\n\nThi"
  },
  {
    "path": "babel.config.js",
    "chars": 211,
    "preview": "module.exports = {\n  presets: [\n    [\n      '@babel/preset-env',\n      {\n        targets: {\n          browsers: '> 1%, n"
  },
  {
    "path": "eslint.config.mjs",
    "chars": 947,
    "preview": "import globals from 'globals'\n\nimport path from 'path'\nimport { fileURLToPath } from 'url'\nimport { FlatCompat } from '@"
  },
  {
    "path": "lerna.json",
    "chars": 92,
    "preview": "{\n  \"$schema\": \"node_modules/lerna/schemas/lerna-schema.json\",\n  \"version\": \"independent\"\n}\n"
  },
  {
    "path": "package.json",
    "chars": 4557,
    "preview": "{\n  \"jest\": {\n    \"testPathIgnorePatterns\": [\n      \"/node_modules/\"\n    ],\n    \"collectCoverage\": true,\n    \"collectCov"
  },
  {
    "path": "packages/mdast-util-split-by-heading/LICENSE-MIT",
    "chars": 1082,
    "preview": "Copyright (c) Zeste de Savoir (https://zestedesavoir.com)\n\nPermission is hereby granted, free of charge, to any person\no"
  },
  {
    "path": "packages/mdast-util-split-by-heading/README.md",
    "chars": 11425,
    "preview": "# mdast-util-split-by-heading [![Build Status][build-badge]][build-status] [![Coverage Status][coverage-badge]][coverage"
  },
  {
    "path": "packages/mdast-util-split-by-heading/__tests__/index.js",
    "chars": 3289,
    "preview": "import dedent from 'dedent'\nimport unified from 'unified'\nimport reParse from 'remark-parse'\nimport split from '../src'\n"
  },
  {
    "path": "packages/mdast-util-split-by-heading/dist/index.js",
    "chars": 1169,
    "preview": "\"use strict\";\n\nconst visit = require('unist-util-visit');\nmodule.exports = splitAtDepth;\nfunction splitAtDepth(tree, {\n "
  },
  {
    "path": "packages/mdast-util-split-by-heading/package.json",
    "chars": 770,
    "preview": "{\n  \"name\": \"mdast-util-split-by-heading\",\n  \"version\": \"1.1.2\",\n  \"description\": \"Split MDAST into subtrees relying on "
  },
  {
    "path": "packages/mdast-util-split-by-heading/src/index.js",
    "chars": 1149,
    "preview": "const visit = require('unist-util-visit')\n\nmodule.exports = splitAtDepth\n\nfunction splitAtDepth (tree, { splitDepth = 1 "
  },
  {
    "path": "packages/rebber/LICENSE-MIT",
    "chars": 1082,
    "preview": "Copyright (c) Zeste de Savoir (https://zestedesavoir.com)\n\nPermission is hereby granted, free of charge, to any person\no"
  },
  {
    "path": "packages/rebber/README.md",
    "chars": 5322,
    "preview": "# rebber [![Build Status][build-badge]][build-status] [![Coverage Status][coverage-badge]][coverage-status]\n\n\n**rebber**"
  },
  {
    "path": "packages/rebber/__tests__/__snapshots__/mdast.tests.js.snap",
    "chars": 357034,
    "preview": "// Jest Snapshot v1, https://goo.gl/fbAQLP\n\nexports[`rebber: remark specs amps-and-angles-encoding: amps-and-angles-enco"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/amps-and-angles-encoding.text",
    "chars": 382,
    "preview": "AT&T has an ampersand in their name.\n\nAT&amp;T is another way to write it.\n\nThis & that.\n\n4 < 5.\n\n6 > 5.\n\nHere's a [link"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/auto-link-invalid.text",
    "chars": 61,
    "preview": "<http:/\n\n<https:/ \n\n<mailto:foobarbaz>\n\n<http:/google\n\n<foo@\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/auto-link-lines.text",
    "chars": 76,
    "preview": "hello world\n<http://example.com>\n\nhello world\n<mailto:somename@example.com>\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/auto-link-output.output.text",
    "chars": 212,
    "preview": "Link: <http://example.com/>.\n\nLink to an email: <mailto:somename@example.com>.\n\nLink without protocol, which should not "
  },
  {
    "path": "packages/rebber/__tests__/fixtures/auto-link-url-invalid.text",
    "chars": 121,
    "preview": "http://<example\n\nhttps:// foo bar baz.\n\nmailto:.\n\nhttp://,\n\nhttps://:\n\nmailto:;\n\nhttp://\"\n\nhttps://'\n\nmailto:)\n\nhttp://]"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/auto-link-url.text",
    "chars": 172,
    "preview": "This should be a link: http://example.com/hello-world.\n\nAlso, subdomain should be a part of the link (http://foo.example"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/auto-link.text",
    "chars": 357,
    "preview": "Link: <http://example.com/>.\n\nLink to an email: <somename@example.com>.\n\nLink to an email: <mailto:somename@example.com>"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/backslash-escapes.text",
    "chars": 2155,
    "preview": "These should all get escaped:\n\nBackslash: \\\\\n\nBacktick: \\`\n\nAsterisk: \\*\n\nUnderscore: \\_\n\nLeft brace: \\{\n\nRight brace: \\"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/block-elements.text",
    "chars": 377,
    "preview": "*   Different lists should receive two newline characters\n    between them.\n\n\n*   This is another list.\n\n>  *   The same"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/blockquote-indented.text",
    "chars": 16,
    "preview": "   > bar\n > baz\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/blockquote-lazy-code.text",
    "chars": 18,
    "preview": ">     foo\n    bar\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/blockquote-lazy-fence.text",
    "chars": 286,
    "preview": "> ```\n> aNormalCodeBlockInABlockqoute();\n> ```\n\nA paragraph.\n\n> ```\nthisIsAlsoSomeCodeInABlockquote();\n> ```\n\nA paragrap"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/blockquote-lazy-list.text",
    "chars": 115,
    "preview": "> This is a blockquote.\n- And in normal mode this is an internal list, but in commonmark this is a top level list.\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/blockquote-lazy-rule.text",
    "chars": 50,
    "preview": "> This is a blockquote. Followed by a rule.\n* * *\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/blockquote-list-item.text",
    "chars": 58,
    "preview": "This fails in markdown.pl and upskirt:\n\n* hello\n  > world\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/blockquotes-empty-lines.output.text",
    "chars": 98,
    "preview": "> Note there is no space on the following line.\n>\n> Note there is no space on the preceding line.\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/blockquotes-with-code-blocks.text",
    "chars": 135,
    "preview": "> Example:\n> \n>     sub status {\n>         print \"working\";\n>     }\n> \n> Or:\n> \n>     sub status {\n>         return \"wor"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/blockquotes.text",
    "chars": 76,
    "preview": "> This is a blockquote.\n\n> This is, in commonmark mode, another blockquote.\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/bom.text",
    "chars": 56,
    "preview": "# Hello from a BOM\n\nBe careful when editing this file!\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/breaks-hard.text",
    "chars": 234,
    "preview": "These are not breaks:\n\nLook at the\npretty line\nbreaks.\n\nThese are breaks:\n\nLook at the  \npretty line  \nbreaks.\n\nIn `comm"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/case-insensitive-refs.text",
    "chars": 17,
    "preview": "[hi]\n\n[HI]: /url\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/code-block-escape.text",
    "chars": 169,
    "preview": "A little flaw:\n\n```python\n\\end{CodeBlock}\n\\end   {CodeBlock}\n```\n\nAn ingenuous flaw:\n\n```\n\\end\\end{CodeBlock}{CodeBlock}"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/code-block-indentation.nooutput.text",
    "chars": 352,
    "preview": "Fenced code blocks are normally not exdented, however,\nwhen the initial fence is indented by spaces, the value of\nthe co"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/code-block-nesting-bug.nooutput.text",
    "chars": 361,
    "preview": "GitHub, thus RedCarpet, has a bug where “nested” fenced code blocks,\neven with shorter fences, can exit their actual “pa"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/code-block.output.fence=`.text",
    "chars": 49,
    "preview": "Ticks:\n\n```javascript\nalert('Hello World!');\n```\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/code-block.output.fence=~.text",
    "chars": 50,
    "preview": "Tildes:\n\n~~~javascript\nalert('Hello World!');\n~~~\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/code-blocks.output.fences.text",
    "chars": 59,
    "preview": "A code block using fences:\n\n```\nalert('Hello World!');\n```\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/code-blocks.output.text",
    "chars": 59,
    "preview": "A code block NOT using fences:\n\n    alert('Hello World!');\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/code-blocks.text",
    "chars": 200,
    "preview": "\tcode block on the first line\n\t\nRegular text.\n\n    code block indented by spaces\n\nRegular text.\n\n\tthe lines in this bloc"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/code-spans.text",
    "chars": 398,
    "preview": "`<test a=\"` content of attribute `\">`\n\nFix for backticks within HTML tag: <span attr='`ticks`'>like this</span>\n\nHere's "
  },
  {
    "path": "packages/rebber/__tests__/fixtures/def-blocks.text",
    "chars": 121,
    "preview": "> hello\n> [1]: hello\n\n* * *\n\n> hello\n[2]: hello\n\n\n* hello\n* [3]: hello\n\n\n* hello\n[4]: hello\n\n\n> foo\n> bar\n[1]: foo\n> bar"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/definition-newline.text",
    "chars": 135,
    "preview": "[baz]: /url (\n)\n\n[foo]: /url \"\n\"\n\n[bar]: /url '\n'\n[baz]: /url (foo\nbar)\n\n[baz]: /url \"foo\nbar\"\n\n[baz]: /url 'foo\nbar'\n\n["
  },
  {
    "path": "packages/rebber/__tests__/fixtures/definition-unclosed-attribute.text",
    "chars": 147,
    "preview": "\n[baz]: /url (there\n\n[foo]: /url \"there\n\n[bar]: /url 'there\n\n[baz]: url (\n\n[foo]: url \"\n\n[bar]: /url '\n\n[baz]: <url>(\n\n["
  },
  {
    "path": "packages/rebber/__tests__/fixtures/definition-unclosed.text",
    "chars": 28,
    "preview": "[foo]:\n\n[bar]: </url\n\n[foo]:"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/deletion.text",
    "chars": 19,
    "preview": "hello ~~hi~~ world\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/double-link.text",
    "chars": 215,
    "preview": "<p>Already linked: <a href=\"http://example.com/\">http://example.com/</a>.</p>\n\nAlready linked: [http://example.com/](htt"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/emphasis-empty.text",
    "chars": 75,
    "preview": "Hello ** ** world.\n\nHello __\t__ world.\n\nHello *\t* world.\n\nHello _\t_ world.\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/emphasis-escaped-final-marker.text",
    "chars": 35,
    "preview": "*bar\\*\n\n**bar\\**\n\n_bar\\_\n\n__bar\\__\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/emphasis-internal.text",
    "chars": 38,
    "preview": "These words should_not_be_emphasized.\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/emphasis.output.emphasis=-asterisk-.strong=_.text",
    "chars": 25,
    "preview": "*emphasis*.\n\n__strong__.\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/emphasis.output.emphasis=_.strong=-asterisk-.text",
    "chars": 25,
    "preview": "_emphasis_.\n\n**strong**.\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/empty.text",
    "chars": 0,
    "preview": ""
  },
  {
    "path": "packages/rebber/__tests__/fixtures/entities-advanced.text",
    "chars": 833,
    "preview": "> However, &MadeUpEntities; are kept in the document.\n\n> Entities even work in the language flag of fenced code blocks:\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/entities.output.entities.text",
    "chars": 1465,
    "preview": "# Entities\n\nPlain&nbsp;text:\n\nAT&amp;T with entity, AT&amp;T with numeric entity, AT&amp;T without entity.\n\nFenced code "
  },
  {
    "path": "packages/rebber/__tests__/fixtures/entities.output.entities=escape.text",
    "chars": 1460,
    "preview": "# Entities\n\nPlain text:\n\nAT&amp;T with entity, AT&amp;T with numeric entity, AT&amp;T without entity.\n\nFenced code langu"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/entities.output.entities=numbers.text",
    "chars": 1491,
    "preview": "# Entities\n\nPlain&#xA0;text:\n\nAT&#x26;T with entity, AT&#x26;T with numeric entity, AT&#x26;T without entity.\n\nFenced co"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/entities.output.noentities.text",
    "chars": 1356,
    "preview": "# Entities\n\nPlain text:\n\nAT&T with entity, AT&T with numeric entity, AT&T without entity.\n\nFenced code language flags:\n\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/entities.text",
    "chars": 673,
    "preview": "Lots of entities are supported in mdast: &nbsp;, &amp;, &copy;, &AElig;,\n&Dcaron;, &frac34;, &HilbertSpace;, &Differenti"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/escaped-angles.text",
    "chars": 3,
    "preview": "\\>\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/fenced-code-empty.text",
    "chars": 133,
    "preview": "Normal with language tag:\n\n```js\n```\n\nWith white space:\n\n``` bash\n```\n\nWith very long fences:\n\n``````\n``````\n\nWith nothi"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/fenced-code-trailing-characters-2.nooutput.text",
    "chars": 16,
    "preview": "```\n``` aaa\n```\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/fenced-code-trailing-characters.nooutput.text",
    "chars": 25,
    "preview": "```js\nfoo();\n```bash\n```\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/fenced-code-white-space-after-flag.text",
    "chars": 61,
    "preview": "``` js \nfoo();\n```\n\n~~~~~ bash\t\necho \"hello, ${WORLD}\"\n~~~~~\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/fenced-code.text",
    "chars": 223,
    "preview": "``` js\nvar a = 'hello';\nconsole.log(a + ' world');\n```\n\n~~~bash\necho \"hello, ${WORLD}\"\n~~~\n\n```````longfence\nQ: What do "
  },
  {
    "path": "packages/rebber/__tests__/fixtures/hard-wrapped-paragraphs-with-list-like-lines.text",
    "chars": 531,
    "preview": "In Markdown 1.0.0 and earlier. Version\n8. This line turns into a list item.\nBecause a hard-wrapped line in the\n123. midd"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/heading-atx-closed-trailing-white-space.text",
    "chars": 21,
    "preview": "# Foo # \n\n## Bar ##\t\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/heading-atx-empty.text",
    "chars": 44,
    "preview": "# #\n\n##\n\n### ###\n\n####\n\n##### #####\n\n######\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/heading-in-blockquote.text",
    "chars": 159,
    "preview": "> A blockquote\nwith some more text.\n\nA normal paragraph.\n\n> A blockquote followed by a horizontal rule (in CommonMark).\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/heading-in-paragraph.text",
    "chars": 16,
    "preview": "Hello\nWorld\n===\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/heading-not-atx.text",
    "chars": 282,
    "preview": "#This is not a heading, per CommonMark: <http://spec.commonmark.org/0.17/#example-25>\n\nKramdown (GitHub) neither support"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/heading-setext-with-initial-spacing.text",
    "chars": 127,
    "preview": "  Heading 1\n=========\n\n   Heading 2\n---------\n\nBoth these headings caused positional problems in on commit daa344c and b"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/heading.output.close-atx.text",
    "chars": 119,
    "preview": "# Heading 1 #\n\n## Heading 2 ##\n\n### Heading 4 ###\n\n#### Heading 4 ####\n\n##### Heading 5 #####\n\n###### Heading 6 ######\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/heading.output.setext.text",
    "chars": 107,
    "preview": "Heading 1\n=========\n\nHeading 2\n---------\n\n### Heading 4\n\n#### Heading 4\n\n##### Heading 5\n\n###### Heading 6\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/horizontal-rules-adjacent.text",
    "chars": 159,
    "preview": "***\n---\n___\n\nThe three asterisks are not a Setext header.\n\nThis is a paragraph.\n***\n\nThis is another paragraph.\n___\n\nBut"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/horizontal-rules.text",
    "chars": 270,
    "preview": "Dashes:\n\n---\n\n ---\n \n  ---\n\n   ---\n\n\t---\n\n- - -\n\n - - -\n \n  - - -\n\n   - - -\n\n\t- - -\n\n\nAsterisks:\n\n***\n\n ***\n \n  ***\n\n   "
  },
  {
    "path": "packages/rebber/__tests__/fixtures/hr-list-break.text",
    "chars": 248,
    "preview": "* hello world\n* how are\n* * *\nyou today?\n\n\nThe above asterisks do split the list, but the below ones do not.\n\n\n- hello w"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/hr.output.norule-spaces.text",
    "chars": 4,
    "preview": "***\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/hr.output.rule-repetition=5.text",
    "chars": 10,
    "preview": "* * * * *\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/hr.output.rule=-.text",
    "chars": 6,
    "preview": "- - -\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/hr.output.rule=-asterisk-.text",
    "chars": 6,
    "preview": "* * *\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/hr.output.rule=_.text",
    "chars": 6,
    "preview": "_ _ _\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/html-advanced.text",
    "chars": 151,
    "preview": "Simple block on one line:\n\n<div>foo</div>\n\nAnd nested without indentation:\n\n<div>\n<div>\n<div>\nfoo\n</div>\n<div style=\">\"/"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/html-attributes.text",
    "chars": 436,
    "preview": "# Block-level\n\n<article foo=\"bar 'baz' qux\" foo='bar \"baz\" qux' foo=baz>\n\n\n<article foo>\n\n\n<article>\n\n\n<article :foo:bar"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/html-cdata.text",
    "chars": 47,
    "preview": "<![CDATA[\nfooBarBaz()\n]]>\n\nfoo <![CDATA[bar]]>\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/html-comments.text",
    "chars": 416,
    "preview": "Paragraph one.\n\n<!-- This is a simple comment -->\n\n<!--\n\tThis is another comment.\n-->\n\nWhat follows is not an HTML comme"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/html-declaration.text",
    "chars": 75,
    "preview": "<!DOCTYPE html>\n\nfoo <!BAR br BAZ>\n\n<!doctype html>\n\n<!valid >\n\n<!invalid>\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/html-indented.text",
    "chars": 115,
    "preview": " <div>\n  *hello*\n   <div>\n\n\n <span>\n  *hello*\n   <span>\n\n\n  <!doctype html>\n\n\n   <!-- baz -->\n\n\nalpha <!-- baz -->\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/html-processing-instruction.text",
    "chars": 21,
    "preview": "<?php\n  echo '>';\n?>\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/html-simple.text",
    "chars": 544,
    "preview": "Here's a simple block:\n\n<div>\n\tfoo\n</div>\n\nThis should be a code block, though:\n\n\t<div>\n\t\tfoo\n\t</div>\n\nAs should this:\n\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/html-tags.text",
    "chars": 499,
    "preview": "# Block\n\n<article>\n\n\n<ARTICLE>\n\n\n<ArTiClE>\n\n\n<-article>\n\n\n<article foo=\n\n\n<article foo=\"bar\n\n\n<article foo='bar\n\n\n<artic"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/image-basename-dots.text",
    "chars": 78,
    "preview": "![](x.yz.png)\n\n![](/a/w.x.y.z.png)\n\n![](/w.x.y.z.png)\n\n![](/foo.bar/x.yz.png)\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/image-empty-alt.text",
    "chars": 14,
    "preview": "![](/xyz.png)\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/image-in-link.text",
    "chars": 342,
    "preview": "# [![Unicorn approved](https://img.shields.io/badge/unicorn-approved-ff69b4.svg)](http://shields.io)\n\n[![Build Status](h"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/image-path-escape.text",
    "chars": 45,
    "preview": "![](a}[b]\\ \\input{/etc/passwd}\\image{[a](b))\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/image-with-pipe.text",
    "chars": 2,
    "preview": "f|"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/images.output.noreference-images.text",
    "chars": 563,
    "preview": "Lorem ipsum dolor sit ![amet](http://amet.com/amet.jpeg \"Amet\"), consectetur adipiscing elit. Praesent dictum purus ulla"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/invalid-link-definition.text",
    "chars": 15,
    "preview": "Something[2-3]\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/lazy-blockquotes.text",
    "chars": 15,
    "preview": "> hi there\nbud\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/link-in-link.text",
    "chars": 201,
    "preview": "# [mailto:test@example.com](http://shields.io)\n\n[https://travis-ci.org/wooorm/mdast](https://travis-ci.org/wooorm/mdast "
  },
  {
    "path": "packages/rebber/__tests__/fixtures/link-spaces.text",
    "chars": 102,
    "preview": "[alpha] (bravo\n\n![charlie] (delta\n.com)\n\n[echo]\t(http://foxtrot.golf)\n\n![hotel]   (india.com/juliett)\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/link-whitespace.text",
    "chars": 494,
    "preview": "[alpha](https://example.com?bravo charlie).\n\n[alpha](https://example.com?bravo\tcharlie).\n\n[alpha](https://example.com?br"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/link-with-spaces.text",
    "chars": 94,
    "preview": "[Hello](<./world and some spaces.html>)\n\n[Hello](<./world and some spaces.html> \"and a title\")"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/links-inline-style.text",
    "chars": 328,
    "preview": "Just a [URL](/url/).\n\n[URL and title](/url/ \"title\").\n\n[URL and title](/url/  \"title preceded by two spaces\").\n\n[URL and"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/links-reference-proto.text",
    "chars": 182,
    "preview": "A [primary][toString], [secondary][constructor], and [tertiary][__proto__] link.\n\n[toString]: http://primary.com\n[__prot"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/links-reference-style.text",
    "chars": 793,
    "preview": "Foo [bar] [1].\n\nFoo [bar][1].\n\nFoo [bar]\n[1].\n\n[1]: /url/  \"Title\"\n\n\nWith [embedded \\[brackets\\]] [b].\n\n\nIndented [once]"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/links-shortcut-references.text",
    "chars": 236,
    "preview": "This is the [simple case].\n\n[simple case]: /simple\n\n\n\nThis one has a [line\nbreak].\n\nThis one has a [line \nbreak] with a "
  },
  {
    "path": "packages/rebber/__tests__/fixtures/links-text-delimiters.text",
    "chars": 161,
    "preview": "[Hello [world]!](./hello-world.html).\n\n[Hello [world]!](<./hello-world.html>).\n\n![Hello [world]!](./hello-world.html).\n\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/links-text-empty.text",
    "chars": 105,
    "preview": "[](./hello-world.html).\n\n[](<./hello-world.html>).\n\n![](./hello-world.html).\n\n![](<./hello-world.html>).\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/links-text-entity-delimiters.text",
    "chars": 403,
    "preview": "[Hello &lsqb;world&rsqb;!](./hello-world.html).\n\n[Hello &lsqb;world&rsqb;!](<./hello-world.html>).\n\n![Hello &lsqb;world&"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/links-text-escaped-delimiters.text",
    "chars": 169,
    "preview": "[Hello \\[world\\]!](./hello-world.html).\n\n[Hello \\[world\\]!](<./hello-world.html>).\n\n![Hello \\[world\\]!](./hello-world.ht"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/links-text-mismatched-delimiters.text",
    "chars": 157,
    "preview": "[Hello [world!](./hello-world.html).\n\n[Hello [world!](<./hello-world.html>).\n\n![Hello [world!](./hello-world.html).\n\n![H"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/links-title-double-quotes-delimiters.text",
    "chars": 193,
    "preview": "[Hello](./world.html \"Hello \"World\" Hello!\").\n\n[Hello](<./world.html> \"Hello \"World\" Hello!\").\n\n![Hello](./world.html \"H"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/links-title-double-quotes-entity-delimiters.text",
    "chars": 233,
    "preview": "[Hello](./world.html \"Hello &quot;World&quot; Hello!\").\n\n[Hello](<./world.html> \"Hello &quot;World&quot; Hello!\").\n\n![He"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/links-title-double-quotes-escaped-delimiters.text",
    "chars": 201,
    "preview": "[Hello](./world.html \"Hello \\\"World\\\" Hello!\").\n\n[Hello](<./world.html> \"Hello \\\"World\\\" Hello!\").\n\n![Hello](./world.htm"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/links-title-double-quotes-mismatched-delimiters.text",
    "chars": 189,
    "preview": "[Hello](./world.html \"Hello \"World Hello!\").\n\n[Hello](<./world.html> \"Hello \"World Hello!\").\n\n![Hello](./world.html \"Hel"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/links-title-double-quotes.text",
    "chars": 161,
    "preview": "[Hello](./world.html \"Hello World!\").\n\n[Hello](<./world.html> \"Hello World!\").\n\n![Hello](./world.html \"Hello World!\").\n\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/links-title-empty-double-quotes.text",
    "chars": 113,
    "preview": "[Hello](./world.html \"\").\n\n[Hello](<./world.html> \"\").\n\n![Hello](./world.html \"\").\n\n![Hello](<./world.html> \"\").\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/links-title-empty-parentheses.text",
    "chars": 113,
    "preview": "[Hello](./world.html ()).\n\n[Hello](<./world.html> ()).\n\n![Hello](./world.html ()).\n\n![Hello](<./world.html> ()).\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/links-title-empty-single-quotes.text",
    "chars": 113,
    "preview": "[Hello](./world.html '').\n\n[Hello](<./world.html> '').\n\n![Hello](./world.html '').\n\n![Hello](<./world.html> '').\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/links-title-parentheses.text",
    "chars": 161,
    "preview": "[Hello](./world.html (Hello World!)).\n\n[Hello](<./world.html> (Hello World!)).\n\n![Hello](./world.html (Hello World!)).\n\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/links-title-single-quotes-delimiters.text",
    "chars": 193,
    "preview": "[Hello](./world.html 'Hello 'World' Hello!').\n\n[Hello](<./world.html> 'Hello 'World' Hello!').\n\n![Hello](./world.html 'H"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/links-title-single-quotes-entity-delimiters.text",
    "chars": 233,
    "preview": "[Hello](./world.html \"Hello &apos;World&apos; Hello!\").\n\n[Hello](<./world.html> \"Hello &apos;World&apos; Hello!\").\n\n![He"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/links-title-single-quotes-escaped-delimiters.text",
    "chars": 201,
    "preview": "[Hello](./world.html 'Hello \\'World\\' Hello!').\n\n[Hello](<./world.html> 'Hello \\'World\\' Hello!').\n\n![Hello](./world.htm"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/links-title-single-quotes-mismatched-delimiters.text",
    "chars": 189,
    "preview": "[Hello](./world.html 'Hello 'World Hello!').\n\n[Hello](<./world.html> 'Hello 'World Hello!').\n\n![Hello](./world.html 'Hel"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/links-title-single-quotes.text",
    "chars": 161,
    "preview": "[Hello](./world.html 'Hello World!').\n\n[Hello](<./world.html> 'Hello World!').\n\n![Hello](./world.html 'Hello World!').\n\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/links-title-unclosed.text",
    "chars": 365,
    "preview": "[Hello](./world.html 'Hello\n\n[Hello](<./world.html> 'Hello\n\n![Hello](./world.html 'Hello\n\n![Hello](<./world.html> 'Hello"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/links-url-empty-title-double-quotes.text",
    "chars": 130,
    "preview": "[Hello](\"World!\").\n\n[Hello]( \"World!\").\n\n[World](<> \"World!\").\n\n![Hello](\"World!\").\n\n![Hello]( \"World!\").\n\n![World](<> \""
  },
  {
    "path": "packages/rebber/__tests__/fixtures/links-url-empty-title-parentheses.text",
    "chars": 130,
    "preview": "[Hello]((World!)).\n\n[Hello]( (World!)).\n\n[World](<> (World!)).\n\n![Hello]((World!)).\n\n![Hello]( (World!)).\n\n![World](<> ("
  },
  {
    "path": "packages/rebber/__tests__/fixtures/links-url-empty-title-single-quotes.text",
    "chars": 130,
    "preview": "[Hello]('World!').\n\n[Hello]( 'World!').\n\n[World](<> 'World!').\n\n![Hello]('World!').\n\n![Hello]( 'World!').\n\n![World](<> '"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/links-url-empty.text",
    "chars": 53,
    "preview": "[Hello]().\n\n[World](<>).\n\n![Hello]().\n\n![World](<>).\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/links-url-entity-parentheses.text",
    "chars": 831,
    "preview": "[Hello](./world&lpar;and-hello&lpar;world&rpar;).\n\n[Hello](<./world&lpar;and-hello&lpar;world&rpar;>).\n\n[Hello](./world&"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/links-url-escaped-parentheses.text",
    "chars": 319,
    "preview": "[Hello](./world\\(and-hello\\(world\\)).\n\n[Hello](<./world\\(and-hello\\(world\\)>).\n\n[Hello](./world\\(and\\)helloworld\\)).\n\n[H"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/links-url-mismatched-parentheses.text",
    "chars": 295,
    "preview": "[Hello](./world(and-hello(world)).\n\n[Hello](<./world(and-hello(world)>).\n\n[Hello](./world(and)helloworld)).\n\n[Hello](<./"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/links-url-nested-parentheses.text",
    "chars": 149,
    "preview": "[Hello](./world(and)hello(world)).\n\n[Hello](<./world(and)hello(world)>).\n\n![Hello](./world(and)hello(world)).\n\n![Hello]("
  },
  {
    "path": "packages/rebber/__tests__/fixtures/links-url-new-line.text",
    "chars": 103,
    "preview": "[Hello](./wo\nrld.html).\n\n[Hello](<./wo\nrld.html>).\n\n![Hello](./wo\nrld.png).\n\n![Hello](<./wo\nrld.png>).\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/links-url-unclosed.text",
    "chars": 46,
    "preview": "[Hello](\n\n\n[World](<\n\n\n![Hello](\n\n\n![World](<\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/links-url-white-space.text",
    "chars": 103,
    "preview": "[Hello](./wo rld.html).\n\n[Hello](<./wo rld.html>).\n\n![Hello](./wo rld.png).\n\n![Hello](<./wo rld.png>).\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/links.output.noreference-links.text",
    "chars": 510,
    "preview": "Lorem ipsum dolor sit [amet](http://amet.com \"Amet\"), consectetur adipiscing elit. Praesent dictum purus ullamcorper lig"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/list-after-list.text",
    "chars": 97,
    "preview": "- item\n- item\n- item\n\n1. item\n1. item\n1. item\n\n---\n\n- item\n- item\n- item\n1. item\n1. item\n1. item\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/list-and-code.text",
    "chars": 43,
    "preview": "*   This is a list item\n\n\n    This is code\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/list-continuation.text",
    "chars": 76,
    "preview": "1. foo\n---\n\n\n1. foo\n```js\ncode();\n```\n\n\n1. [foo][]\n[foo]: http://google.com\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/list-indentation.nooutput.text",
    "chars": 284,
    "preview": "- Hello 1a\n\n World 1a.\n\n- Hello 1b\n\n  World 1b.\n\n-  Hello 2a\n\n  World 2a.\n\n-  Hello 2b\n\n   World 2b.\n\n-   Hello 3a\n\n   W"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/list-item-empty-with-white-space.text",
    "chars": 3,
    "preview": "- \n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/list-item-empty.text",
    "chars": 43,
    "preview": "-   foo\n-\n-   bar\n\n  -   foo\n  -\n  -   bar\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/list-item-indent.list-item-indent=1.output.text",
    "chars": 282,
    "preview": "1. foo bar baz.\n\n<!--  -->\n\n99. foo bar baz.\n\n<!--  -->\n\n999. foo bar baz.\n\n<!--  -->\n\n1. foo bar baz.\n   foo bar baz.\n\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/list-item-indent.list-item-indent=mixed.output.text",
    "chars": 294,
    "preview": "1. foo bar baz.\n\n<!--  -->\n\n99. foo bar baz.\n\n<!--  -->\n\n999. foo bar baz.\n\n<!--  -->\n\n1.  foo bar baz.\n    foo bar baz."
  },
  {
    "path": "packages/rebber/__tests__/fixtures/list-item-indent.list-item-indent=tab.output.text",
    "chars": 300,
    "preview": "1.  foo bar baz.\n\n<!--  -->\n\n99. foo bar baz.\n\n<!--  -->\n\n999.    foo bar baz.\n\n<!--  -->\n\n1.  foo bar baz.\n    foo bar "
  },
  {
    "path": "packages/rebber/__tests__/fixtures/list-item-newline.nooutput.text",
    "chars": 18,
    "preview": "-   Foo\n-\n    Bar\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/list-item-text.text",
    "chars": 31,
    "preview": "  * item1\n\n    * item2\n\n  text\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/list-ordered.increment-list-marker.output.text",
    "chars": 27,
    "preview": "2.  foo;\n3.  bar;\n4.  baz.\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/list-ordered.noincrement-list-marker.output.text",
    "chars": 27,
    "preview": "2.  foo;\n2.  bar;\n2.  baz.\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/list.output.bullet=+.text",
    "chars": 111,
    "preview": "# List bullets\n\n+   One:\n    +   Nested one;\n    +   Nested two:\n        +   Nested three.\n+   Two;\n+   Three.\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/list.output.bullet=-.text",
    "chars": 111,
    "preview": "# List bullets\n\n-   One:\n    -   Nested one;\n    -   Nested two:\n        -   Nested three.\n-   Two;\n-   Three.\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/list.output.bullet=-asterisk-.text",
    "chars": 111,
    "preview": "# List bullets\n\n*   One:\n    *   Nested one;\n    *   Nested two:\n        *   Nested three.\n*   Two;\n*   Three.\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/lists-with-code-and-rules.text",
    "chars": 554,
    "preview": "## foo\n\n1. bar:\n\n    > - one\n        - two\n            - three\n            - four\n            - five\n\n1. foo:\n\n    ```\n "
  },
  {
    "path": "packages/rebber/__tests__/fixtures/loose-lists.text",
    "chars": 259,
    "preview": "* hello\n  world\n\n  how\n  are\n* you\n\n\n\nbetter behavior:\n\n* hello\n  * world\n    how\n\n    are\n    you\n\n  * today\n* hi\n\n\n\n* "
  },
  {
    "path": "packages/rebber/__tests__/fixtures/main.text",
    "chars": 1098,
    "preview": "[test]: http://google.com/ \"Google\"\n\n# A heading\n\nJust a note, I've found that I can't test my markdown parser vs others"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/markdown-documentation-basics.text",
    "chars": 8064,
    "preview": "Markdown: Basics\n================\n\n<ul id=\"ProjectSubmenu\">\n    <li><a href=\"/projects/markdown/\" title=\"Markdown Projec"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/markdown-documentation-syntax.text",
    "chars": 27425,
    "preview": "Markdown: Syntax\n================\n\n<ul id=\"ProjectSubmenu\">\n    <li><a href=\"/projects/markdown/\" title=\"Markdown Projec"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/mixed-indentation.text",
    "chars": 126,
    "preview": "# Mixed spaces and tabs\n\n- Very long\n\t\tparagraph\n\n1. Very long\n\t\tparagraph\n\n-\tVery long\n\t\tparagraph\n\n1.\tVery long\n\t\tpara"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/nested-blockquotes.text",
    "chars": 24,
    "preview": "> foo\n>\n> > bar\n>\n> foo\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/nested-code.text",
    "chars": 47,
    "preview": "````` hi ther `` ok ``` `````\n\n`` `hi ther` ``\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/nested-em.nooutput.text",
    "chars": 43,
    "preview": "*test **test** test*\n\n_test __test__ test_\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/nested-references.text",
    "chars": 105,
    "preview": "This nested image should work:\n\n[![Foo][bar]][baz]\n\nThis nested link should not work:\n\n[[Foo][bar]][baz]\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/nested-square-link.text",
    "chars": 120,
    "preview": "[the `]` character](/url)\n\n[the `` [ `` character](/url)\n\n[the `` [ ``` character](/url)\n\n[the `` ` `` character](/url)\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/no-positionals.nooutput.text",
    "chars": 277,
    "preview": "This document tests for the working of `position: false` as a parse\noption.\n\n>   Block-quotes\n>\n>   *   With list items."
  },
  {
    "path": "packages/rebber/__tests__/fixtures/not-a-link.text",
    "chars": 20,
    "preview": "\\[test](not a link)\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/ordered-and-unordered-lists.text",
    "chars": 903,
    "preview": "## Unordered\n\nAsterisks tight:\n\n*\tasterisk 1\n*\tasterisk 2\n*\tasterisk 3\n\n\nAsterisks loose:\n\n*\tasterisk 1\n\n*\tasterisk 2\n\n*"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/ordered-different-types.text",
    "chars": 21,
    "preview": "1. foo\n2. bar\n3) baz\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/ordered-with-parentheses.text",
    "chars": 316,
    "preview": "## Ordered\n\nTight:\n\n1)\tFirst\n2)\tSecond\n3)\tThird\n\nand:\n\n1) One\n2) Two\n3) Three\n\nLoose using tabs:\n\n1)\tFirst\n\n2)\tSecond\n\n3"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/paragraphs-and-indentation.text",
    "chars": 460,
    "preview": "# Without lines.\n\nThis is a paragraph\n    and this is further text\n\nThis is a paragraph\n   and this is further text\n\nThi"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/paragraphs-empty.text",
    "chars": 33,
    "preview": "  \n\naaa\n  \n\n# aaa\n\n  \n\nbbb\n  \nccc"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/ref-paren.text",
    "chars": 25,
    "preview": "[hi]\n\n[hi]: /url (there)\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/reference-image-empty-alt.text",
    "chars": 22,
    "preview": "![][1]\n\n[1]: /xyz.png\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/reference-link-escape.nooutput.text",
    "chars": 101,
    "preview": "[b\\*r*][b\\-r], [b\\*r*][], [b\\*r*].\n\n![foo][b\\*r*], ![b\\*r*][], ![b\\*r*].\n\n[b\\*r*]: http://google.com\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/reference-link-not-closed.text",
    "chars": 25,
    "preview": "[bar][bar\n\n[bar][\n\n[bar]\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/reference-link-with-angle-brackets.text",
    "chars": 34,
    "preview": "[foo]\n\n[foo]: <./url with spaces>\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/reference-link-with-multiple-definitions.text",
    "chars": 34,
    "preview": "[foo]\n\n[foo]: first\n[foo]: second\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/same-bullet.text",
    "chars": 21,
    "preview": "* test\n+ test\n- test\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/stringify-escape.output.commonmark.text",
    "chars": 1401,
    "preview": "Characters that should be escaped in general:\n\n\\\\ \\` \\* \\[\n\nCharacters that shouldn't:\n\n{}]()#+-.!>\"$%',/:;=?@^~\n\nUnders"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/stringify-escape.output.nogfm.commonmark.text",
    "chars": 1403,
    "preview": "Characters that should be escaped in general:\n\n\\\\ \\` \\* \\[\n\nCharacters that shouldn't:\n\n{}]()#+-.!>\"$%',/:;=?@^~\n\nUnders"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/stringify-escape.output.nogfm.text",
    "chars": 1418,
    "preview": "Characters that should be escaped in general:\n\n\\\\ \\` \\* \\[\n\nCharacters that shouldn't:\n\n{}]()#+-.!>\"$%',/:;=?@^~\n\nUnders"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/stringify-escape.output.noposition.pedantic.text",
    "chars": 1447,
    "preview": "Characters that should be escaped in general:\n\n\\\\ \\` \\* \\[ \\_\n\nCharacters that shouldn't:\n\n{}]()#+-.!>\"$%',/:;=?@^~\n\nUnd"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/stringify-escape.output.pedantic.text",
    "chars": 1447,
    "preview": "Characters that should be escaped in general:\n\n\\\\ \\` \\* \\[ \\_\n\nCharacters that shouldn't:\n\n{}]()#+-.!>\"$%',/:;=?@^~\n\nUnd"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/stringify-escape.output.text",
    "chars": 1428,
    "preview": "Characters that should be escaped in general:\n\n\\\\ \\` \\* \\[\n\nCharacters that shouldn't:\n\n{}]()#+-.!>\"$%',/:;=?@^~\n\nUnders"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/stringify-escape.text",
    "chars": 1645,
    "preview": "Characters that should be escaped in general:\n\n\\\\ \\` \\* \\[\n\nCharacters that shouldn't:\n\n{}]()#+-.!>\"$%',/:;=?@^~\n\nUnders"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/strong-and-em-together-one.text",
    "chars": 107,
    "preview": "***This is strong and em.***\n\nSo is ***this*** word.\n\n___This is strong and em.___\n\nSo is ___this___ word.\n"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/strong-and-em-together-two.nooutput.text",
    "chars": 129,
    "preview": "perform_complicated_task\n\ndo_this_and_do_that_and_another_thing\n\nperform*complicated*task\n\ndo*this*and*do*that*and*anoth"
  },
  {
    "path": "packages/rebber/__tests__/fixtures/strong-emphasis.text",
    "chars": 42,
    "preview": "Foo **bar** __baz__.\n\nFoo __bar__ **baz**."
  },
  {
    "path": "packages/rebber/__tests__/fixtures/strong-initial-white-space.text",
    "chars": 23,
    "preview": "** bar **.\n\n\n__ bar __."
  }
]

// ... and 494 more files (download for full content)

About this extraction

This page contains the full source code of the zestedesavoir/zmarkdown GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 694 files (1.9 MB), approximately 587.1k tokens, and a symbol index with 385 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.

Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.

Copied to clipboard!