Skip to content

Antora nested attributes not rendered in preview #1866

@carlcsaposs-canonical

Description

@carlcsaposs-canonical

Observed vs. expected behavior

Observed behavior

Attributes defined in antora.yml that reference other attributes do not resolve those attributes when rendered in the preview

# antora.yml
name: ROOT
asciidoc:
  attributes:
    attr1: 'foo'
    attr2: 'bar{attr1}'
Image

Expected behavior

Attributes defined in antora.yml that reference other attributes resolve those attributes when rendered in the preview

Example expected preview:

barfoo

Steps to reproduce

  1. Create antora.yaml with contents:
    name: ROOT
    asciidoc:
      attributes:
        attr1: 'foo'
        attr2: 'bar{attr1}'
  2. Create modules/ROOT/pages/foo.adoc with contents:
    {attr2}
    
  3. Open IDE preview for foo.adoc

Environment

Plugin Version: 0.44.7

IntelliJ Details:
PyCharm 2025.1.3.1
Build #PY-251.26927.90, built on July 10, 2025
Source revision: 32bba9696423d
Licensed to Canonical, Ltd / Carl Csaposs
Subscription is active until November 28, 2025.
Runtime version: 21.0.7+9-b895.130 amd64 (JCEF 122.1.9)
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Toolkit: sun.awt.X11.XToolkit
Linux 6.8.0-60-generic
Ubuntu 22.04.5 LTS; glibc: 2.35
GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation
Memory: 4096M
Cores: 8
Registry:
debugger.new.tool.window.layout=true
ide.experimental.ui=true
Non-Bundled Plugins:
com.4lex4.precious-themes-intellij-platform (241.0)
org.asciidoctor.intellij.asciidoc (0.44.7)
com.dmarcotte.handlebars (251.23774.318)
Current Desktop: ubuntu:GNOME

Additional information

Nested attributes work if they are defined in the document instead of antora.yml

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions