When using include within the navigation, the leveloffset attribute is not applied to included xrefs. Only manually adding additional * to each line works.

This does have similarities to #423 (closed)

nav-offset-test.tgz

The issue, is that when using an include tag within a component, that refers to a nav.adoc within the partials of another component, the leveloffset attribute is not applied. The comments on Issue 423 seem to suggest this is possible. I asked this in the antora/users chat and was asked to provide a MWE.

I have attached a MWE. You can edit the megaProject/antora.yml and uncomment the line to switch between the nav.adoc (actual) and nav-fixed.adoc (expected). In the expected example I manually add a * to each xref in the nav.adoc files.

Expected Output (nav-fixed.adoc)

expected

Actual Output (nav.adoc)

actual

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information