mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-24 15:44:59 +08:00
Add 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.
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 62 KiB |
@@ -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).
|
||||
Reference in New Issue
Block a user