blank containing phrases not correctly rendered as superscripts

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

blank containing phrases not correctly rendered as superscripts

jvdh
it seems that superscripts (and subscripts) right now are only working for words but not for (blank containing) phrases? could this be?

    text^1,2^

works fine but

   text^1, 2^

(containing a blank after the comma) renders just verbatim (showing the
carets as part of the formatted output).

I am sure missing something obvious??

seen with Asciidoctor 1.5.6 [http://asciidoctor.org]
Runtime Environment (ruby 2.0.0p648 (2015-12-16 revision 53162)
[universal.x86_64-darwin15]) (lc:UTF-8 fs:UTF-8 in:- ex:UTF-8)


thank you

joerg
Reply | Threaded
Open this post in threaded view
|

Re: blank containing phrases not correctly rendered as superscripts

mojavelinux
Administrator
Yes, that's true. Superscript and subscript are intentionally restrictive to avoid unintended replacements.

If you want to include a space in a superscript or subscript text, you need to use the space attribute as follows:

text^1,{sp}2^

That convinces the processor that the phrase is contiguous.

Cheers,

-Dan

On Fri, Jul 28, 2017 at 5:24 AM jvdh [via Asciidoctor :: Discussion] <[hidden email]> wrote:
it seems that superscripts (and subscripts) right now are only working for words but not for (blank containing) phrases? could this be?

    text^1,2^

works fine but

   text^1, 2^

(containing a blank after the comma) renders just verbatim (showing the
carets as part of the formatted output).

I am sure missing something obvious??

seen with Asciidoctor 1.5.6 [http://asciidoctor.org]
Runtime Environment (ruby 2.0.0p648 (2015-12-16 revision 53162)
[universal.x86_64-darwin15]) (lc:UTF-8 fs:UTF-8 in:- ex:UTF-8)


thank you

joerg


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/blank-containing-phrases-not-correctly-rendered-as-superscripts-tp5763.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML


--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux