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

updated rewite numbered links to work with nested links #3

Merged
merged 1 commit into from
Jan 18, 2024

Conversation

schaeferka
Copy link
Contributor

@schaeferka schaeferka commented Jan 18, 2024

Updated from:

      // rewrite relative .md link paths to compensate Hugo-gen'd pretty path
      RUN.srcmd.content = RUN.srcmd.content.replaceAll('](./', '](../')

to:

      // rewrite relative .md link paths to compensate Hugo-gen'd pretty path
      RUN.srcmd.content = RUN.srcmd.content.replaceAll('](../', '](../../').replaceAll('](./', '](../')

This allows for double nested links to work.

@btlghrants btlghrants merged commit f943fbb into main Jan 18, 2024
1 of 2 checks passed
@btlghrants btlghrants deleted the 2-rewrite-numbered-file-md-links branch January 18, 2024 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update pepr-docs build script to rewrite numbered-file md links to work in post-build, Hugo site
2 participants