asciidoctor-pdf: HTML entities like   inside block causing 'Failed to parse formatted text'

Hello and thank you very much for your great work!

I got a problem I’m unable to understand: The snippet below used to work with asciidoctor-pdf but now breaks with the following error:

Failed to parse formatted text: My name<br> my street 123<br> town<br> &nbsp;<br> reference number 1234345
Failed to parse formatted text: My name<br> my street 123<br> town<br> &nbsp;<br> reference number 1234345

Furthermore it now renders in the PDF document as My name<br> my street 123<br> town<br> &nbsp;<br> reference number 1234345 while it still renders the line breaks correctly in asciidoctor.

I’m not sure if this is a duplication of #485 which seems to be to old to be my issue.

Problematic Source

[frame="none",cols=">"]
|======================
| My name +
my street 123 +
town +
&nbsp; +
reference number 	1234345
|======================

Environment

$ asciidoctor --version
Asciidoctor 1.5.8 [https://asciidoctor.org]
Runtime Environment (ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux-gnu]) (lc:UTF-8 fs:UTF-8 in:UTF-8 ex:UTF-8)
$ asciidoctor-pdf --version
Asciidoctor PDF 1.5.0.alpha.16 using Asciidoctor 1.5.8 [https://asciidoctor.org]
Runtime Environment (ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux-gnu]) (lc:UTF-8 fs:UTF-8 in:UTF-8 ex:UTF-8)

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 19 (11 by maintainers)

Most upvoted comments

+1 from user perspective I would love to use μ (& mu;) for Microsecond and some other Greek letters.

I come from Org-Mode and wrote notes with it during the lecture. Since I like some things better at Assciidoc, I would like to switch. But during lecture I don’t have time to lookup numeric references.

I’m a bit confused. According to the Asciidoctor User Manual, Asciidoctor supports HTML entities. Here are examples from the manual:

  • &dagger; displays as †
  • &euro; displays as €
  • &loz; displays as ◊

I’m looking for a convenient way to enter symbols such as ≠ without pasting the Unicode character into the Asciidoctor document. I was very happy with &ne; until I found that Asciidoctor-PDF doesn’t support them.