diff options
| author | John MacFarlane <[email protected]> | 2021-05-24 10:17:37 -0700 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2021-05-26 09:53:00 -0700 |
| commit | 26b060dd48eee8cc4dfda2b34cf0f68feba3f7b4 (patch) | |
| tree | 8237616df6322c87550dd898f8a5ed5d74e597d6 /test/command/chap1/text.md | |
| parent | e0a1f7d2cfa1b18210ea13e0aa03747e6c76e5c5 (diff) | |
Add `rebase_relative_paths` extension.rebase-relative-paths-extension
- Add manual entry for (non-default) extension
`rebase_relative_paths`.
- Add constructor `Ext_rebase_relative_paths` to `Extensions`
in Text.Pandoc.Extensions [API change]. When enabled, this
extension rewrites relative image and link paths by prepending
the (relative) directory of the containing file.
- Make Markdown reader sensitive to the new extension.
- Add tests for #3752.
Closes #3752.
NB. currently the extension applies to markdown and associated
readers but not commonmark/gfm.
Diffstat (limited to 'test/command/chap1/text.md')
| -rw-r--r-- | test/command/chap1/text.md | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/command/chap1/text.md b/test/command/chap1/text.md new file mode 100644 index 000000000..88b30313d --- /dev/null +++ b/test/command/chap1/text.md @@ -0,0 +1,11 @@ +# Chapter one + +A spider:  + +The moon:  + +Link to [spider picture](spider.png). + +URL left alone: [manual](https://pandoc.org/MANUAL.html). + +Absolute path left alone: [absolute](/foo/bar/baz.png). |
