~javiljoen/ebk-find

d6f34ff4e0a59566a8c7c4b4aaec80888e5d6fdf — JA Viljoen 7 months ago e3189dd
docs: fix: remove www/ prefix in link to gif
1 files changed, 2 insertions(+), 1 deletions(-)

M scripts/md2html.py
M scripts/md2html.py => scripts/md2html.py +2 -1
@@ 95,7 95,8 @@ class HTML:
        print("finished writing", out, file=sys.stderr)

    def fix_refs(self):
        return HTML(re.sub(r'href="(\w+)\.md', r'href="\1.html', self.s))
        s = self.s.replace('src="www/', 'src="')
        return HTML(re.sub(r'href="(\w+)\.md', r'href="\1.html', s))

    def inject(self, **kwargs):
        return HTML(self.s.format(**kwargs))