diff options
author | John MacFarlane <jgm@berkeley.edu> | 2019-04-05 10:04:28 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2019-04-05 10:04:28 -0700 |
commit | 4f572ddf6941b8fb0ad7a5835216c708998444f0 (patch) | |
tree | a0c0301e199b27fce20a001895c75f0b3be5854d /test/man-reader.man | |
parent | ba7898bb3dae98c14ae824eab3129f22a70e6bd3 (diff) | |
download | pandoc-4f572ddf6941b8fb0ad7a5835216c708998444f0.tar.gz |
Vimwiki reader: improve handling of internal links.
1) Don't append `.html`
2) Add `wikilink` title
This mirrors behavior of other wiki readers. Generally the
`.html` extension is not wanted. It may be important for
output to HTML in certain circumstances, but it can always
be added using a filter that matches on links with title
`wikilink`.
Note that if you have a workflow that uses pandoc to convert
vimwiki to readable HTML pages, you may need to add such a
filter to reproduce current behavior.
Here is a filter that does the job:
```lua
function Link(el)
if el.title == 'wikilink' then
el.target = el.target .. ".html"
end
return el
end
```
Save this as `fixlinks.lua` and use with `--lua-filter fixlinks.lua`.
Closes #5414.
Diffstat (limited to 'test/man-reader.man')
0 files changed, 0 insertions, 0 deletions