MaxMelcher / AzureDevOps.WikiPDFExport

Export Azure DevOps Wiki to PDF
MIT License
187 stars 62 forks source link

Links with Anchors #26

Closed mcalsada closed 3 years ago

mcalsada commented 3 years ago

Links that contain anchors to headings is not supported in an export. Documentation of this support can be found in the Azure Devops Markdown Guidance

Example Link [Complexity](/Skills/Complexity#lvl-1)

Snippet of Complexity.md

# Delivery & Complexity

Getting stuff done. The level of complexity of tasks that you can undertake and the scale of code that you can write to a production-standard.

## LVL 1
MaxMelcher commented 3 years ago

Let me check how much effort that would be - of course, would appreciate a PR.

MaxMelcher commented 3 years ago

Its a little bit tricky...

Because we render everything in one page, all anchor links are "global". Deep linking, as you showed with the example link [Complexity](/Skills/Complexity#lvl-1) would require that we rewrite all anchors that are added by markdig so they contain the entire hierarchy, e.g the target link would need to be #Complexity-skills-complexity-lvl-1. Duplicates would be a challenge, too.

My calendar is pretty full right now - not going to implement it in the near future, sorry. PR welcome.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.