-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
handling same-page relative links, such as footnotes #45
Comments
The workaround is in #46; it expand I think a way to achieve the “real” footnotes (i.e. jumping between the links in the org buffer without relying on a browser) would be to disable the bandage solution if #46 were to get merged, that is, don't expand the internal |
i had a go at another kind of relative/internal link, of the format here's my function
but it doesn't work. the any regexperts know how to carry bracket groupings over through meanwhile incrementing and formatting a number in the org footnote doesn't work, as we need to re-start the count when we reach the targets at the bottom of the page ( it works interactively using from there it would just be a matter of collecting a few common relative footnote forms into a function to run after pandoc. |
ah, let-binding the group expression match works:
and for the footnotes formatted as per my first post:
(the first expression grouping, en|fn, is because anchors in the body are labelled #en while those in the footnote list are labelled #fn). perhaps there are some other common formats that could be written into a single function, but i have little experience with this sort of thing. |
Another thing worth investigating is the use of custom lua filter for Pandoc. Although, I've never written a filter for pandoc so I'm not familiar with it. |
just fyi, i cooked up some functions to have a bit more of a go at this. i like converting my webpages to latex for printing, and need them footnotes to work for them to print. https://codeberg.org/martianh/org-web-tools-fn (WIP) |
hi ap, & as the others have said, thx for this great package.
i was impressed when i converted an academic essay with
-read-url-as-org
and it rendered all the footnote anchors as org-links, but it turns out they are relative links to nowhere, not to the notes at bottom of page/document. ditto the footnote links back up to the body of the text. i guess it is just a pandoc issue? is there any way they could be further processed somehow?for me they appear as
[[#en41][41]]
. while the footnote return links appear as[[#fn1][↩]
, having been rendered from something like<a id="fn41" class="endnote-link" href="#en41" rel="footnote">41</a>
.my example text:
https://monthlyreview.org/2014/07/01/surveillance-capitalism/
i'm not sure if its something that should be supported, but thought i'd mention it in case there is a workaround or if others have the same issue.
thx again.
The text was updated successfully, but these errors were encountered: