Re: How to escape square brackets in asciidoctor video file name?
Posted by
mojavelinux on
May 16, 2020; 8:49am
URL: https://discuss.asciidoctor.org/How-to-escape-square-brackets-in-asciidoctor-video-file-name-tp8005p8008.html
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.
That's because a link is an inline macro. You cannot use a passthrough in the target of a block macro.
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]
Backslashes are not recognized in the target of a block macro.
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]
This is the correct solution, as is using {startsb} (and if you want, {endsb}).
Best Regards,
-Dan
--