Skip to content

rewrite-relative-urls and internal anchors #254

@mondeja

Description

@mondeja

Discussed in #253

Originally posted by @Jan-1500-100-900 January 24, 2025
Hi.
I've been using this plugin to place the same file in multiple places in the TOC.

I made duplicate files that are empty except for the relative include line to the original file. So like this:

{%
include-markdown "../../filename.md"
%}

However, internal anchors (#chapter) in the included document don't work.
More specifically:
If I set rewrite-relative-urls=true then external relative links work but internal anchors don't.
If I set rewrite-relative-urls=false then internal anchors work, but external relative links don't.

How do I make it that both anchors and external links work?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions