Login  Register

Re: How to escape square brackets in asciidoctor video file name?

Posted by programandala.net on May 16, 2020; 8:46am
URL: https://discuss.asciidoctor.org/How-to-escape-square-brackets-in-asciidoctor-video-file-name-tp8005p8007.html

2020-05-16 01:13: documentationchronicles [via Asciidoctor ::
Discussion] escribió/skribis/wrote/scrit:

> This doesn't work:
> video::testvideo[a].mkv[start=03:55,end=04:05,height=400]
>
> With passthrough,still doesn't work:
> video::++testvideo[a].mkv++[start=03:55,end=04:05,height=400]

The only such usage of `++` I see in the documentation is for escaping a
URL used as a link parameter. Not sure whether this is the same case.

Though the brackets are not punctuation, you con try a backslash to
escape them:

  video::testvideo\[a].mkv[start=03:55,end=04:05,height=400]

As the target format is HTML, you can try also encoding the brackets
with the usual URL hex notation:
 
  video::testvideo%5Ba%5D.mkv[start=03:55,end=04:05,height=400]

Hope this helps. I didn't tested.

--
Marcos Cruz
http://programandala.net