├── .babelrc ├── .eslintignore ├── .eslintrc.json ├── .github └── workflows │ └── ci.yml ├── .gitignore ├── .gitlab └── gitlab-ci.yml ├── .prettierrc.json ├── CHANGELOG.md ├── CONTRIBUTING.md ├── Dockerfile ├── LICENSE.md ├── PURPOSE.md ├── README.md ├── adslot.svg ├── bin └── hercule ├── codecov.yml ├── examples ├── advanced │ ├── foo.md │ └── main.md ├── api-blueprint │ ├── README.md │ ├── blueprint │ │ ├── gist.json │ │ ├── gist.md │ │ └── gists.md │ └── gist-fox.apib ├── basic │ ├── foo.md │ └── main.md ├── default │ ├── foo.md │ ├── main-override.md │ └── main.md ├── gulp │ ├── api.apib │ ├── gulpfile.js │ └── package.json └── technical-document │ ├── README.md │ ├── src │ └── abstract.md │ └── transclusions-in-markdown.md ├── grammars ├── link.js └── link.pegjs ├── hercule.svg ├── package.json ├── promises.js ├── src ├── config.js ├── hercule.js ├── indent.js ├── main.js ├── parse.js ├── promises.js ├── resolver.js ├── sourcemap.js ├── transclude.js └── trim.js └── test ├── .eslintrc.json ├── bats ├── benchmark.js ├── fixtures ├── advanced │ ├── _expect.md │ ├── _expect.md.map │ ├── activity.md │ ├── disinterest.md │ └── index.md ├── circular-references │ ├── _expect.json │ ├── _expect.md │ ├── fox.md │ └── index.md ├── escaped-quotes │ ├── _expect.md │ ├── _expect.md.map │ ├── foo.json │ └── index.md ├── fallback-link │ ├── _expect.md │ ├── _expect.md.map │ ├── fox.md │ └── index.md ├── http-deep-nesting │ ├── _expect.md │ └── index.md ├── http-link │ ├── _expect.md │ └── index.md ├── identical-links │ ├── _expect.md │ ├── _expect.md.map │ ├── fox.md │ └── index.md ├── indentation │ ├── _expect.md │ ├── _expect.md.map │ ├── index.md │ ├── line1.md │ ├── line2.md │ ├── line2b.md │ ├── line3.md │ ├── line4.md │ ├── verse.md │ └── verse1.md ├── index.js ├── invalid-link-fallback │ ├── _expect.md │ ├── _expect.md.map │ └── index.md ├── local-deep-nesting │ ├── _expect.md │ ├── _expect.md.map │ ├── a.md │ ├── b.md │ ├── c.md │ ├── d.md │ ├── e.md │ ├── f.md │ ├── g.md │ └── index.md ├── local-folder-nesting │ ├── _expect.md │ ├── _expect.md.map │ ├── common │ │ ├── jackdaws.md │ │ ├── quartz.md │ │ └── size.md │ └── index.md ├── local-link-ENOENT │ ├── _expect.json │ ├── _expect.md │ └── index.md ├── local-link │ ├── _expect.md │ ├── _expect.md.map │ ├── index.md │ └── size.md ├── long-input │ ├── _expect.md │ └── index.md ├── no-link │ ├── _expect.md │ ├── _expect.md.map │ └── index.md ├── reference-collision │ ├── _expect.md │ ├── _expect.md.map │ ├── activity.md │ ├── canine.md │ ├── color.md │ ├── disinterest.md │ ├── fox.md │ ├── index.md │ ├── jump.md │ └── vulpis.md ├── references │ ├── _expect.md │ ├── _expect.md.map │ ├── index.md │ ├── post.md │ └── venues.md ├── reset-references │ ├── _expect.md │ ├── _expect.md.map │ ├── index.md │ └── required.md ├── sourcemap │ ├── _expect.md │ ├── _expect.md.map │ ├── included.apib │ ├── included2.apib │ └── index.md ├── special-characters │ ├── _expect.md │ ├── _expect.md.map │ ├── bar.md │ ├── foo.md │ └── index.md ├── syntax-aglio │ ├── _expect.json │ ├── _expect.md │ ├── index.md │ ├── object.md │ └── size.md ├── syntax-error │ ├── _expect.json │ ├── _expect.md │ └── index.md ├── syntax-marked │ ├── _expect.json │ ├── _expect.md │ ├── index.md │ ├── object.md │ └── size.md └── syntax-multimarkdown │ ├── _expect.json │ ├── _expect.md │ ├── index.md │ ├── object.md │ └── size.md ├── integration ├── _mock.js ├── transcludeFile.js ├── transcludeStream.js └── transcludeString.js └── units ├── grammar.js ├── indent.js ├── resolver.js ├── sourcemap.js ├── transclude.js ├── transcludeFile.js ├── transcludeFilePromises.js ├── transcludeStream.js ├── transcludeString.js ├── transcludeStringPromises.js └── trim.js /.babelrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/.babelrc -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/.eslintignore -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/.gitignore -------------------------------------------------------------------------------- /.gitlab/gitlab-ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/.gitlab/gitlab-ci.yml -------------------------------------------------------------------------------- /.prettierrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/.prettierrc.json -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/LICENSE.md -------------------------------------------------------------------------------- /PURPOSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/PURPOSE.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/README.md -------------------------------------------------------------------------------- /adslot.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/adslot.svg -------------------------------------------------------------------------------- /bin/hercule: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | "use strict"; 4 | 5 | require('../lib/main.js'); 6 | -------------------------------------------------------------------------------- /codecov.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/codecov.yml -------------------------------------------------------------------------------- /examples/advanced/foo.md: -------------------------------------------------------------------------------- 1 | is an :[example placeholder](bar) 2 | -------------------------------------------------------------------------------- /examples/advanced/main.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/examples/advanced/main.md -------------------------------------------------------------------------------- /examples/api-blueprint/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/examples/api-blueprint/README.md -------------------------------------------------------------------------------- /examples/api-blueprint/blueprint/gist.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/examples/api-blueprint/blueprint/gist.json -------------------------------------------------------------------------------- /examples/api-blueprint/blueprint/gist.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/examples/api-blueprint/blueprint/gist.md -------------------------------------------------------------------------------- /examples/api-blueprint/blueprint/gists.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/examples/api-blueprint/blueprint/gists.md -------------------------------------------------------------------------------- /examples/api-blueprint/gist-fox.apib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/examples/api-blueprint/gist-fox.apib -------------------------------------------------------------------------------- /examples/basic/foo.md: -------------------------------------------------------------------------------- 1 | example transclusion 2 | -------------------------------------------------------------------------------- /examples/basic/main.md: -------------------------------------------------------------------------------- 1 | This is an :[example link](foo.md). 2 | -------------------------------------------------------------------------------- /examples/default/foo.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/examples/default/foo.md -------------------------------------------------------------------------------- /examples/default/main-override.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/examples/default/main-override.md -------------------------------------------------------------------------------- /examples/default/main.md: -------------------------------------------------------------------------------- 1 | :[cucumber](foo.md) 2 | -------------------------------------------------------------------------------- /examples/gulp/api.apib: -------------------------------------------------------------------------------- 1 | The quick brown :[animal](weasel.md || "fox") jumps over the lazy dog. 2 | -------------------------------------------------------------------------------- /examples/gulp/gulpfile.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/examples/gulp/gulpfile.js -------------------------------------------------------------------------------- /examples/gulp/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/examples/gulp/package.json -------------------------------------------------------------------------------- /examples/technical-document/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/examples/technical-document/README.md -------------------------------------------------------------------------------- /examples/technical-document/src/abstract.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/examples/technical-document/src/abstract.md -------------------------------------------------------------------------------- /examples/technical-document/transclusions-in-markdown.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /grammars/link.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/grammars/link.js -------------------------------------------------------------------------------- /grammars/link.pegjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/grammars/link.pegjs -------------------------------------------------------------------------------- /hercule.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/hercule.svg -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/package.json -------------------------------------------------------------------------------- /promises.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/promises.js -------------------------------------------------------------------------------- /src/config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/src/config.js -------------------------------------------------------------------------------- /src/hercule.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/src/hercule.js -------------------------------------------------------------------------------- /src/indent.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/src/indent.js -------------------------------------------------------------------------------- /src/main.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/src/main.js -------------------------------------------------------------------------------- /src/parse.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/src/parse.js -------------------------------------------------------------------------------- /src/promises.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/src/promises.js -------------------------------------------------------------------------------- /src/resolver.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/src/resolver.js -------------------------------------------------------------------------------- /src/sourcemap.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/src/sourcemap.js -------------------------------------------------------------------------------- /src/transclude.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/src/transclude.js -------------------------------------------------------------------------------- /src/trim.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/src/trim.js -------------------------------------------------------------------------------- /test/.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/.eslintrc.json -------------------------------------------------------------------------------- /test/bats: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/bats -------------------------------------------------------------------------------- /test/benchmark.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/benchmark.js -------------------------------------------------------------------------------- /test/fixtures/advanced/_expect.md: -------------------------------------------------------------------------------- 1 | The quick brown fox jumps over the lazy dog. 2 | -------------------------------------------------------------------------------- /test/fixtures/advanced/_expect.md.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/fixtures/advanced/_expect.md.map -------------------------------------------------------------------------------- /test/fixtures/advanced/activity.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/fixtures/advanced/activity.md -------------------------------------------------------------------------------- /test/fixtures/advanced/disinterest.md: -------------------------------------------------------------------------------- 1 | lazy 2 | -------------------------------------------------------------------------------- /test/fixtures/advanced/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/fixtures/advanced/index.md -------------------------------------------------------------------------------- /test/fixtures/circular-references/_expect.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/fixtures/circular-references/_expect.json -------------------------------------------------------------------------------- /test/fixtures/circular-references/_expect.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/fixtures/circular-references/_expect.md -------------------------------------------------------------------------------- /test/fixtures/circular-references/fox.md: -------------------------------------------------------------------------------- 1 | :[fox](fox.md) 2 | -------------------------------------------------------------------------------- /test/fixtures/circular-references/index.md: -------------------------------------------------------------------------------- 1 | The quick brown :[animal](fox.md) jumps over the lazy dog. 2 | -------------------------------------------------------------------------------- /test/fixtures/escaped-quotes/_expect.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/fixtures/escaped-quotes/_expect.md -------------------------------------------------------------------------------- /test/fixtures/escaped-quotes/_expect.md.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/fixtures/escaped-quotes/_expect.md.map -------------------------------------------------------------------------------- /test/fixtures/escaped-quotes/foo.json: -------------------------------------------------------------------------------- 1 | { 2 | "bar": :[test](barValue || "null") 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/escaped-quotes/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/fixtures/escaped-quotes/index.md -------------------------------------------------------------------------------- /test/fixtures/fallback-link/_expect.md: -------------------------------------------------------------------------------- 1 | The quick brown fox jumps over the lazy dog. 2 | -------------------------------------------------------------------------------- /test/fixtures/fallback-link/_expect.md.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/fixtures/fallback-link/_expect.md.map -------------------------------------------------------------------------------- /test/fixtures/fallback-link/fox.md: -------------------------------------------------------------------------------- 1 | The quick brown fox jumps over the lazy dog. 2 | -------------------------------------------------------------------------------- /test/fixtures/fallback-link/index.md: -------------------------------------------------------------------------------- 1 | :[example](story || fox.md) 2 | -------------------------------------------------------------------------------- /test/fixtures/http-deep-nesting/_expect.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/fixtures/http-deep-nesting/_expect.md -------------------------------------------------------------------------------- /test/fixtures/http-deep-nesting/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/fixtures/http-deep-nesting/index.md -------------------------------------------------------------------------------- /test/fixtures/http-link/_expect.md: -------------------------------------------------------------------------------- 1 | Jackdaws love my big sphinx of quartz. 2 | -------------------------------------------------------------------------------- /test/fixtures/http-link/index.md: -------------------------------------------------------------------------------- 1 | Jackdaws love my :[size](http://github.com/size.md) sphinx of quartz. 2 | -------------------------------------------------------------------------------- /test/fixtures/identical-links/_expect.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/fixtures/identical-links/_expect.md -------------------------------------------------------------------------------- /test/fixtures/identical-links/_expect.md.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/fixtures/identical-links/_expect.md.map -------------------------------------------------------------------------------- /test/fixtures/identical-links/fox.md: -------------------------------------------------------------------------------- 1 | The quick brown fox jumps over the lazy dog. 2 | -------------------------------------------------------------------------------- /test/fixtures/identical-links/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/fixtures/identical-links/index.md -------------------------------------------------------------------------------- /test/fixtures/indentation/_expect.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/fixtures/indentation/_expect.md -------------------------------------------------------------------------------- /test/fixtures/indentation/_expect.md.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/fixtures/indentation/_expect.md.map -------------------------------------------------------------------------------- /test/fixtures/indentation/index.md: -------------------------------------------------------------------------------- 1 | Jabberwocky 2 | BY LEWIS CARROLL 3 | 4 | :[v](verse.md) 5 | -------------------------------------------------------------------------------- /test/fixtures/indentation/line1.md: -------------------------------------------------------------------------------- 1 | ’Twas brillig, and the slithy toves 2 | -------------------------------------------------------------------------------- /test/fixtures/indentation/line2.md: -------------------------------------------------------------------------------- 1 | Did gyre and gimble :[](line2b.md) 2 | -------------------------------------------------------------------------------- /test/fixtures/indentation/line2b.md: -------------------------------------------------------------------------------- 1 | in the wabe: 2 | -------------------------------------------------------------------------------- /test/fixtures/indentation/line3.md: -------------------------------------------------------------------------------- 1 | All mimsy were the borogoves, 2 | -------------------------------------------------------------------------------- /test/fixtures/indentation/line4.md: -------------------------------------------------------------------------------- 1 | And the mome raths outgrabe. 2 | -------------------------------------------------------------------------------- /test/fixtures/indentation/verse.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/fixtures/indentation/verse.md -------------------------------------------------------------------------------- /test/fixtures/indentation/verse1.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/fixtures/indentation/verse1.md -------------------------------------------------------------------------------- /test/fixtures/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/fixtures/index.js -------------------------------------------------------------------------------- /test/fixtures/invalid-link-fallback/_expect.md: -------------------------------------------------------------------------------- 1 | Jackdaws love my imagined sphinx of quartz. 2 | -------------------------------------------------------------------------------- /test/fixtures/invalid-link-fallback/_expect.md.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/fixtures/invalid-link-fallback/_expect.md.map -------------------------------------------------------------------------------- /test/fixtures/invalid-link-fallback/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/fixtures/invalid-link-fallback/index.md -------------------------------------------------------------------------------- /test/fixtures/local-deep-nesting/_expect.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/fixtures/local-deep-nesting/_expect.md -------------------------------------------------------------------------------- /test/fixtures/local-deep-nesting/_expect.md.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/fixtures/local-deep-nesting/_expect.md.map -------------------------------------------------------------------------------- /test/fixtures/local-deep-nesting/a.md: -------------------------------------------------------------------------------- 1 | :[](b.md) 2 | -------------------------------------------------------------------------------- /test/fixtures/local-deep-nesting/b.md: -------------------------------------------------------------------------------- 1 | :[](c.md) 2 | -------------------------------------------------------------------------------- /test/fixtures/local-deep-nesting/c.md: -------------------------------------------------------------------------------- 1 | :[](d.md) 2 | -------------------------------------------------------------------------------- /test/fixtures/local-deep-nesting/d.md: -------------------------------------------------------------------------------- 1 | :[](e.md) 2 | -------------------------------------------------------------------------------- /test/fixtures/local-deep-nesting/e.md: -------------------------------------------------------------------------------- 1 | :[](f.md) 2 | -------------------------------------------------------------------------------- /test/fixtures/local-deep-nesting/f.md: -------------------------------------------------------------------------------- 1 | :[](g.md) 2 | -------------------------------------------------------------------------------- /test/fixtures/local-deep-nesting/g.md: -------------------------------------------------------------------------------- 1 | done. 2 | -------------------------------------------------------------------------------- /test/fixtures/local-deep-nesting/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/fixtures/local-deep-nesting/index.md -------------------------------------------------------------------------------- /test/fixtures/local-folder-nesting/_expect.md: -------------------------------------------------------------------------------- 1 | Jackdaws love my big sphinx of quartz. 2 | -------------------------------------------------------------------------------- /test/fixtures/local-folder-nesting/_expect.md.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/fixtures/local-folder-nesting/_expect.md.map -------------------------------------------------------------------------------- /test/fixtures/local-folder-nesting/common/jackdaws.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/fixtures/local-folder-nesting/common/jackdaws.md -------------------------------------------------------------------------------- /test/fixtures/local-folder-nesting/common/quartz.md: -------------------------------------------------------------------------------- 1 | quartz 2 | -------------------------------------------------------------------------------- /test/fixtures/local-folder-nesting/common/size.md: -------------------------------------------------------------------------------- 1 | big 2 | -------------------------------------------------------------------------------- /test/fixtures/local-folder-nesting/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/fixtures/local-folder-nesting/index.md -------------------------------------------------------------------------------- /test/fixtures/local-link-ENOENT/_expect.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/fixtures/local-link-ENOENT/_expect.json -------------------------------------------------------------------------------- /test/fixtures/local-link-ENOENT/_expect.md: -------------------------------------------------------------------------------- 1 | Jackdaws love my sphinx of -------------------------------------------------------------------------------- /test/fixtures/local-link-ENOENT/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/fixtures/local-link-ENOENT/index.md -------------------------------------------------------------------------------- /test/fixtures/local-link/_expect.md: -------------------------------------------------------------------------------- 1 | Jackdaws love my big sphinx of quartz. 2 | -------------------------------------------------------------------------------- /test/fixtures/local-link/_expect.md.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/fixtures/local-link/_expect.md.map -------------------------------------------------------------------------------- /test/fixtures/local-link/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/fixtures/local-link/index.md -------------------------------------------------------------------------------- /test/fixtures/local-link/size.md: -------------------------------------------------------------------------------- 1 | big 2 | -------------------------------------------------------------------------------- /test/fixtures/long-input/_expect.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/fixtures/long-input/_expect.md -------------------------------------------------------------------------------- /test/fixtures/long-input/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/fixtures/long-input/index.md -------------------------------------------------------------------------------- /test/fixtures/no-link/_expect.md: -------------------------------------------------------------------------------- 1 | The quick brown fox jumps over the lazy dog. 2 | -------------------------------------------------------------------------------- /test/fixtures/no-link/_expect.md.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/fixtures/no-link/_expect.md.map -------------------------------------------------------------------------------- /test/fixtures/no-link/index.md: -------------------------------------------------------------------------------- 1 | The quick brown fox jumps over the lazy dog. 2 | -------------------------------------------------------------------------------- /test/fixtures/reference-collision/_expect.md: -------------------------------------------------------------------------------- 1 | The quick brown fox jumps over the lazy dog. 2 | -------------------------------------------------------------------------------- /test/fixtures/reference-collision/_expect.md.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/fixtures/reference-collision/_expect.md.map -------------------------------------------------------------------------------- /test/fixtures/reference-collision/activity.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/fixtures/reference-collision/activity.md -------------------------------------------------------------------------------- /test/fixtures/reference-collision/canine.md: -------------------------------------------------------------------------------- 1 | dog 2 | -------------------------------------------------------------------------------- /test/fixtures/reference-collision/color.md: -------------------------------------------------------------------------------- 1 | brown 2 | -------------------------------------------------------------------------------- /test/fixtures/reference-collision/disinterest.md: -------------------------------------------------------------------------------- 1 | lazy 2 | -------------------------------------------------------------------------------- /test/fixtures/reference-collision/fox.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/fixtures/reference-collision/fox.md -------------------------------------------------------------------------------- /test/fixtures/reference-collision/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/fixtures/reference-collision/index.md -------------------------------------------------------------------------------- /test/fixtures/reference-collision/jump.md: -------------------------------------------------------------------------------- 1 | jumps 2 | -------------------------------------------------------------------------------- /test/fixtures/reference-collision/vulpis.md: -------------------------------------------------------------------------------- 1 | quick :[colouration](fox) fox 2 | -------------------------------------------------------------------------------- /test/fixtures/references/_expect.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/fixtures/references/_expect.md -------------------------------------------------------------------------------- /test/fixtures/references/_expect.md.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/fixtures/references/_expect.md.map -------------------------------------------------------------------------------- /test/fixtures/references/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/fixtures/references/index.md -------------------------------------------------------------------------------- /test/fixtures/references/post.md: -------------------------------------------------------------------------------- 1 | :[](resource) 2 | -------------------------------------------------------------------------------- /test/fixtures/references/venues.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/fixtures/references/venues.md -------------------------------------------------------------------------------- /test/fixtures/reset-references/_expect.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/fixtures/reset-references/_expect.md -------------------------------------------------------------------------------- /test/fixtures/reset-references/_expect.md.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/fixtures/reset-references/_expect.md.map -------------------------------------------------------------------------------- /test/fixtures/reset-references/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/fixtures/reset-references/index.md -------------------------------------------------------------------------------- /test/fixtures/reset-references/required.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/fixtures/reset-references/required.md -------------------------------------------------------------------------------- /test/fixtures/sourcemap/_expect.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/fixtures/sourcemap/_expect.md -------------------------------------------------------------------------------- /test/fixtures/sourcemap/_expect.md.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/fixtures/sourcemap/_expect.md.map -------------------------------------------------------------------------------- /test/fixtures/sourcemap/included.apib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/fixtures/sourcemap/included.apib -------------------------------------------------------------------------------- /test/fixtures/sourcemap/included2.apib: -------------------------------------------------------------------------------- 1 | ## DELETE 2 | -------------------------------------------------------------------------------- /test/fixtures/sourcemap/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/fixtures/sourcemap/index.md -------------------------------------------------------------------------------- /test/fixtures/special-characters/_expect.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/fixtures/special-characters/_expect.md -------------------------------------------------------------------------------- /test/fixtures/special-characters/_expect.md.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/fixtures/special-characters/_expect.md.map -------------------------------------------------------------------------------- /test/fixtures/special-characters/bar.md: -------------------------------------------------------------------------------- 1 | Markdown quoted ('$') vs escaped (`$`) 2 | -------------------------------------------------------------------------------- /test/fixtures/special-characters/foo.md: -------------------------------------------------------------------------------- 1 | Example: `^pattern$` 2 | -------------------------------------------------------------------------------- /test/fixtures/special-characters/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/fixtures/special-characters/index.md -------------------------------------------------------------------------------- /test/fixtures/syntax-aglio/_expect.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/fixtures/syntax-aglio/_expect.json -------------------------------------------------------------------------------- /test/fixtures/syntax-aglio/_expect.md: -------------------------------------------------------------------------------- 1 | Jackdaws love my 2 | 3 | big 4 | 5 | sphinx 6 | 7 | of quartz. 8 | -------------------------------------------------------------------------------- /test/fixtures/syntax-aglio/index.md: -------------------------------------------------------------------------------- 1 | Jackdaws love my 2 | 3 | 4 | 5 | of quartz. 6 | -------------------------------------------------------------------------------- /test/fixtures/syntax-aglio/object.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | sphinx 4 | -------------------------------------------------------------------------------- /test/fixtures/syntax-aglio/size.md: -------------------------------------------------------------------------------- 1 | big 2 | -------------------------------------------------------------------------------- /test/fixtures/syntax-error/_expect.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/fixtures/syntax-error/_expect.json -------------------------------------------------------------------------------- /test/fixtures/syntax-error/_expect.md: -------------------------------------------------------------------------------- 1 | The quick brown :[](animal.md foo:bar:"exception!") -------------------------------------------------------------------------------- /test/fixtures/syntax-error/index.md: -------------------------------------------------------------------------------- 1 | The quick brown :[](animal.md foo:bar:"exception!") jumps over the lazy dog. 2 | -------------------------------------------------------------------------------- /test/fixtures/syntax-marked/_expect.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/fixtures/syntax-marked/_expect.json -------------------------------------------------------------------------------- /test/fixtures/syntax-marked/_expect.md: -------------------------------------------------------------------------------- 1 | Jackdaws love my 2 | 3 | big 4 | 5 | sphinx 6 | 7 | of quartz. 8 | -------------------------------------------------------------------------------- /test/fixtures/syntax-marked/index.md: -------------------------------------------------------------------------------- 1 | Jackdaws love my 2 | 3 | <<[object.md] 4 | 5 | of quartz. 6 | -------------------------------------------------------------------------------- /test/fixtures/syntax-marked/object.md: -------------------------------------------------------------------------------- 1 | <<[size.md] 2 | 3 | sphinx 4 | -------------------------------------------------------------------------------- /test/fixtures/syntax-marked/size.md: -------------------------------------------------------------------------------- 1 | big 2 | -------------------------------------------------------------------------------- /test/fixtures/syntax-multimarkdown/_expect.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/fixtures/syntax-multimarkdown/_expect.json -------------------------------------------------------------------------------- /test/fixtures/syntax-multimarkdown/_expect.md: -------------------------------------------------------------------------------- 1 | Jackdaws love my 2 | 3 | big 4 | 5 | sphinx 6 | 7 | of quartz. 8 | -------------------------------------------------------------------------------- /test/fixtures/syntax-multimarkdown/index.md: -------------------------------------------------------------------------------- 1 | Jackdaws love my 2 | 3 | {{object.md}} 4 | 5 | of quartz. 6 | -------------------------------------------------------------------------------- /test/fixtures/syntax-multimarkdown/object.md: -------------------------------------------------------------------------------- 1 | {{size.md}} 2 | 3 | sphinx 4 | -------------------------------------------------------------------------------- /test/fixtures/syntax-multimarkdown/size.md: -------------------------------------------------------------------------------- 1 | big 2 | -------------------------------------------------------------------------------- /test/integration/_mock.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/integration/_mock.js -------------------------------------------------------------------------------- /test/integration/transcludeFile.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/integration/transcludeFile.js -------------------------------------------------------------------------------- /test/integration/transcludeStream.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/integration/transcludeStream.js -------------------------------------------------------------------------------- /test/integration/transcludeString.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/integration/transcludeString.js -------------------------------------------------------------------------------- /test/units/grammar.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/units/grammar.js -------------------------------------------------------------------------------- /test/units/indent.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/units/indent.js -------------------------------------------------------------------------------- /test/units/resolver.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/units/resolver.js -------------------------------------------------------------------------------- /test/units/sourcemap.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/units/sourcemap.js -------------------------------------------------------------------------------- /test/units/transclude.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/units/transclude.js -------------------------------------------------------------------------------- /test/units/transcludeFile.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/units/transcludeFile.js -------------------------------------------------------------------------------- /test/units/transcludeFilePromises.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/units/transcludeFilePromises.js -------------------------------------------------------------------------------- /test/units/transcludeStream.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/units/transcludeStream.js -------------------------------------------------------------------------------- /test/units/transcludeString.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/units/transcludeString.js -------------------------------------------------------------------------------- /test/units/transcludeStringPromises.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/units/transcludeStringPromises.js -------------------------------------------------------------------------------- /test/units/trim.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jamesramsay/hercule/HEAD/test/units/trim.js --------------------------------------------------------------------------------