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

Make print page (print.html) links link to anchors on the print page #1738

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Nov 25, 2024

  1. Add Songlin as a contributor

    Signed-off-by: Hollow Man <[email protected]>
    HollowMan6 committed Nov 25, 2024
    Configuration menu
    Copy the full SHA
    52dfe3b View commit details
    Browse the repository at this point in the history
  2. Make print page (print.html) links link to anchors on the print page

    Let all the anchors id on the print page to have a path id prefix to
    help locate.
    
    e.g. bar/foo.md#abc -> #bar-foo-abc
    
    Also append a dummy div to the start of the original page to make sure
    that original page links without an anchor can also be located.
    
    Fix to remove all the `./` in the normalized path id so that for
    "./foo/bar.html#abc" we still get "#foo-bar-abc"
    
    Add support for redirect link anchors in print page so that anchors can
    also be redirected, also handle URL redirect links on print page
    
    Handle all the elements id to add a path prefix, also make path id to
    all be the lower case
    
    Fix for print page footnote links by adding the path id prefix
    
    Signed-off-by: Hollow Man <[email protected]>
    HollowMan6 committed Nov 25, 2024
    Configuration menu
    Copy the full SHA
    040fa9a View commit details
    Browse the repository at this point in the history