profile
viewpoint

Ask questionsImprovement: for Antora, intellisense for anchors of included pages.

I use include::'s to break up a large page into smaller onces, and use leveloffset=+1 so that the H1 of the included pages becomes an H2 (with implicit anchor) in the parent page that includes them.

so given:

  • parent.adoc
  • parent/child-1.adoc
  • parent/child-2.adoc

in parent.adoc I have:

include::parent/child-1.adoc[leveloffset=+1]
include::parent/child-2.adoc[leveloffset=+1]

Where in child-1.adoc it is:

= Child-1

yada yada

I'd like Intellisense to be able to find the implicit "child-1" anchor.

In other words, when I type:

xref:parent.adoc#

and hit ctrl-enter, then I'd like "child-1", "child-2" to be offered as anchors.

asciidoctor/asciidoctor-intellij-plugin

Answer questions ahus1

Pre-release 0.30.38 is available. Please give it a try and let me know if this works for you.

The new pre-release of the plugin is available from GitHub releases and the IntelliJ AsciiDoc EAP repository.

useful!

Related questions

Add live template for config section hot 1
Integrate Computer Aid for writing Prose hot 1
Integrate Computer Aid for writing Prose hot 1
Browser preview for files outside current project / Asciidoc 0.28.22 hot 1
Generate a PDF "inside" the Asciidoctor IntelliJ plugin hot 1
Support for charts in Asciidoc plug-in. hot 1
Add support for environment variable GRAPHVIZ_DOT. hot 1
Asciidoc preview won't show up / Regression 0.25.9 hot 1
Are source highlighters other than coderay supported for live preview? hot 1
100% CPU hot 1
Edit Fragment for source blocks broken in 0.28.2 hot 1
Add plugin icon hot 1
Add quickfix to create include file if it doesn't exist already hot 1
Github User Rank List