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

Internal anchor link references are forced external #13

Closed
kwesterfeld2 opened this issue Aug 25, 2023 · 7 comments
Closed

Internal anchor link references are forced external #13

kwesterfeld2 opened this issue Aug 25, 2023 · 7 comments
Labels
question Further information is requested

Comments

@kwesterfeld2
Copy link

I'm not sure exactly how to describe what is happening other than, every anchor link in my vitepress site, when rendered to HTML, refers to the origin passed to the export configuration, rather than an internal document link.

Is this configurable, perhaps through a puppeteer option?

@condorheroblog
Copy link
Owner

Hi! Is it the effect of the GIF demonstration below. You can also see that the internal anchor links in the PDF I generated are clickable.

2023-08-26 09-35-16 2023-08-26 09_40_54

The HTML code for this effect is as follows:

image

http://localhost:5173/guide/theme-team-page.html#vpteammembers

I hope it can help you.

@kwesterfeld2
Copy link
Author

kwesterfeld2 commented Aug 26, 2023 via email

@condorheroblog
Copy link
Owner

The rules for generating anchor points in the MD file of VitePress are as follows:

`<VPTeamMembers>`](#vpteammembers)

If the href is a full link, then it is a link first and an anchor second.

@condorheroblog condorheroblog added the question Further information is requested label Aug 26, 2023
@kwesterfeld2
Copy link
Author

kwesterfeld2 commented Aug 26, 2023 via email

@condorheroblog
Copy link
Owner

To handle this requirement, you need to write your own library for merging PDFs.

@kwesterfeld2
Copy link
Author

kwesterfeld2 commented Aug 26, 2023 via email

@condorheroblog
Copy link
Owner

You can research it. If it works, accept PR🥳

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants