oreillymedia / asciidoctor-htmlbook

Templates for the htmlbook backend for Asciidoctor
45 stars 15 forks source link

Adjust co/colist handling to support multiple refs to the same callout #104

Closed sandersk closed 8 years ago

sandersk commented 8 years ago

Right now, HTMLBook backends don't support markup like the following, which contains a repeated callout ref:


---
print "Hello World" <1>
print "Hello World Again" <2>
print "Hello World" <1>

---

<1> Standard print statement
<2> Redundant

Adding support for the above is pretty easy if we drop support for link bidirectionality for callout markers (which doesn't work anyway if there's not a 1-to-1 correspondence between markers in listings and markers in callouts below) and just have the callout markers in the listing link to the callout entries below the listing.

christopappas commented 8 years ago

Hello,

This is actually resolved via #106 !

Closing.