Hi

I would like to create an anchor for inline content that is not empty and 
has the content as default display value (xreflabel).

Note: I am using the IntelliJ Asciidoc Plugin for HTML output.

Approach 1:

I want
[[ref1,these three words]]these three words
to be the referenced inline content. See <<ref1>>.

This produces the HTML

<p>I want
<a id="ref1"></a>these three words
to be the referenced inline content. See <a href="#ref1">these three 
words</a>.</p>

Problem with this approach: I need "these three words" to be in the element 
with id="ref1", but element with id="ref1" has no content. (e.g. to 
highlight it with CSS selector ":target")

Approach 2:

I want [#ref2]#these three words# to be the referenced inline content. See 
<<ref2>>.

This produces the HTML

<p>I want <span id="ref2">these three words</span> to be the referenced 
inline content. See <a href="#ref2">[ref2]</a>.</p>

This solves the problem of approach 1, but now the display name is "[ref2]" 
instead of "these three words". This approach also produces error message 
«Anchor doesn't resolve» in the IntelliJ Asciidoc Plugin...

Is there a syntax that allows to control both the extend of the referenced 
inline element and the display text?

Thanks for help.

Matthias Toggweiler

-- 
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/asciidoc/4d14160e-b831-470d-8c11-e1ea273397den%40googlegroups.com.

Reply via email to