File: rebase_relative_paths.md

package info (click to toggle)
haskell-commonmark-extensions 0.2.5.5-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 368 kB
  • sloc: haskell: 2,574; makefile: 9
file content (13 lines) | stat: -rw-r--r-- 525 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
## Rebase relative paths

This extension causes relative paths in images and links to be
rebased to the (relative) directory of the containing file.
For example, if the source file is `foo/test.md` and contains
an image `![image](img.jpg)`, the image path will be rewritten
to `foo/img.jpg`.  Absolute paths, absolute URLs, empty paths,
and paths that are purely fragments (i.e., start with `#`) are
left unchanged.

This feature facilitates converting documents that are split
into multiple files in different directories.