Skip to content
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

Anchor links in feeds are not absolute #3286

Open
3 tasks done
dperelman opened this issue Feb 21, 2024 · 0 comments
Open
3 tasks done

Anchor links in feeds are not absolute #3286

dperelman opened this issue Feb 21, 2024 · 0 comments

Comments

@dperelman
Copy link

  • I have searched the issues (including closed ones) and believe that this is not a duplicate.
  • I have searched the documentation and believe that my question is not covered.
  • I am willing to lend a hand to help implement this feature.

Feature Request

I recently enabled the Markdown toc extension option to add permalinks to headers, but as it doesn't include the absolute URL in the link, it doesn't really do quite the right thing on pages other than the article page. I tried just hiding those links on the other pages with my theme, but that doesn't work for feeds as there's no CSS there. My RSS reader interpreted those links as going to http://myblog.example.com/#foo.

My workaround was to write this plugin which just rewrites all links in articles to #foo to the full absolute URL, which feels like a hack, but might be the right solution. Maybe it would be more proper to do this rewrite only when writing out a feed? But I didn't see a hook for a plugin to attach to that would affect only feeds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant