Skip to content

How to avoid IconLink.internal removing the index.html file? #492

Closed Answered by jenshalm
hmf asked this question in Q&A
Discussion options

You must be logged in to vote

The PrettyURLs bundle is different, it changes foo.html into foo/index.html so that no link has any .html extension.

For the base case where targets which are already named index.html have the URLs trimmed there is no configuration option to toggle this behaviour (and unfortunately it's a bit too complicated to justify a new option for this & you are also the first to ever ask for this). Which means the remaining option is to customize the renderer for SpanLink as described in https://typelevel.org/Laika/latest/04-customizing-laika/06-overriding-renderers.html

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@hmf
Comment options

Answer selected by hmf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants