Hello,
Could you add the support for direct access to a specified page of a .pdf document ?
Given a pdf page number is specified into the link : [[document.pdf#page=1]],
When mkdocs generate the site
Then the generated link should be ``http://site/document.pdf#page=1`
With the current version, the plugin remove the = from the html link : http://site/document.pdf#page1.
Note:
This seems to be due to the following code : RoamLinkReplacer.gfm_anchor
Proposal:
def gfm_anchor(self, title):
"""Convert to gfw title / anchor
see: https://gist.github.com/asabaylus/3071099#gistcomment-1593627"""
if title:
title = title.strip().lower()
title = re.sub(r'[^\w\u4e00-\u9fff\-\= ]', "", title)
title = re.sub(r' +', "-", title)
return title
else:
return ""
```
Best regards
Hello,
Could you add the support for direct access to a specified page of a
.pdfdocument ?Given a pdf page number is specified into the link :
[[document.pdf#page=1]],When mkdocs generate the
siteThen the generated link should be ``http://site/document.pdf#page=1`
With the current version, the plugin remove the
=from the html link :http://site/document.pdf#page1.Note:
This seems to be due to the following code : RoamLinkReplacer.gfm_anchor
Proposal: