diff options
author | Alberto Bertogli <albertito@blitiri.com.ar> | 2018-03-04 21:53:35 +0100 |
---|---|---|
committer | Alberto Bertogli <albertito@blitiri.com.ar> | 2018-03-04 21:53:35 +0100 |
commit | 722d765973ab368a313455d2179d7b3d67ec25cb (patch) | |
tree | bbde1e82d6bcd9c873f04fc7dde0e32a71df4c91 /git.py | |
parent | 5e75a1e7a10a0485f5aa339abf055bad94a0a353 (diff) | |
download | git-arr-fork-722d765973ab368a313455d2179d7b3d67ec25cb.zip |
markdown: Handle local links
By default, the markdown generator creates links for local files
transparently. For example, "[text](link.md)" will generate
"<a href=link.md>text</a>".
This works fine for absolute and external links, but breaks for links
relative to the repository itself, as git-arr links are of the form
"dir/f=file.ext.html".
So this patch adds a markdown extension to rewrite the links. It uses a
heuristic to detect them, which should work for the vast majority of
common cases.
Diffstat (limited to 'git.py')
0 files changed, 0 insertions, 0 deletions