footnotes fail in block verse quotes

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

footnotes fail in block verse quotes

programandala.net

Hi,

I'm migrating a PHP website of mine to AsciiDoctor (0.1.4 on Debian
GNU/Linux).  Some web pages have poems with footnotes, but footnotes are
not rendered inside block verse quotes. I've created a simple test file:

---8<-------------------------------------------

= footnotes test file

// this works:
normal textfootnote:[in normal text]

// this works:
____
quote textfootnote:[in delimited block quote without role]
____

// this works:
[quote]
____
quote textfootnote:[in delimited block quote with quote role]
____

// this fails:
[verse]
____
verse1
verse2footnote:[in delimited block quote with verse role]
verse3
____

---8<-------------------------------------------

Is it a bug or am I missing something?

I've tried the same test file with the original AsciiDoc engine in
Python, and all footnotes work (but of course with Javascript; the
reason I have never seriously considered the AsciiDoc format until I
recently discovered AsciiDoctor is I don't want Javascript, but pure
HTML).

Thank you.

--
Marcos Cruz
http://programandala.net
Reply | Threaded
Open this post in threaded view
|

Re: footnotes fail in block verse quotes

mojavelinux
Administrator
As of Asciidoctor 1.5.0, footnotes should now work in a verse block. This was resolved by the following issue: https://github.com/asciidoctor/asciidoctor/issues/949

Verse was being parsed like a listing block. Now it's parsed like a normal block. The difference is how it's displayed.

TIP: You can always control which subs are applied using the subs attribute on the block.

Cheers,

-Dan

On Thu, Jan 23, 2014 at 8:56 AM, programandala.net [via Asciidoctor :: Discussion] <[hidden email]> wrote:

Hi,

I'm migrating a PHP website of mine to AsciiDoctor (0.1.4 on Debian
GNU/Linux).  Some web pages have poems with footnotes, but footnotes are
not rendered inside block verse quotes. I've created a simple test file:

---8<-------------------------------------------

= footnotes test file

// this works:
normal textfootnote:[in normal text]

// this works:
____
quote textfootnote:[in delimited block quote without role]
____

// this works:
[quote]
____
quote textfootnote:[in delimited block quote with quote role]
____

// this fails:
[verse]
____
verse1
verse2footnote:[in delimited block quote with verse role]
verse3
____

---8<-------------------------------------------

Is it a bug or am I missing something?

I've tried the same test file with the original AsciiDoc engine in
Python, and all footnotes work (but of course with Javascript; the
reason I have never seriously considered the AsciiDoc format until I
recently discovered AsciiDoctor is I don't want Javascript, but pure
HTML).

Thank you.

--
Marcos Cruz
http://programandala.net



If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/footnotes-fail-in-block-verse-quotes-tp1303.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--