Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Hi there. I am trying to escape square brackets in my asciidoctor video filename. I tried Passthrough(++) but browser still cannot find file.
This works: video::testvideo.mkv[start=03:55,end=04:05,height=400] 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] |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Administrator
|
You can either use the startsb attribute: video::testvideo{startsb}a].mkv[start=03:55,end=04:05,height=400] or URL encode the character: video::testvideo%5Ba].mkv[start=03:55,end=04:05,height=400] > With passthrough,still doesn't work: The passthrough declaration is not recognized in this context. Best Regards, -Dan On Sat, May 16, 2020 at 2:13 AM documentationchronicles [via Asciidoctor :: Discussion] <[hidden email]> wrote: Hi there. I am trying to escape square brackets in my asciidoctor video filename. I tried Passthrough(++) but browser still cannot find file. ... [show rest of quote] -- Dan Allen | @mojavelinux | https://twitter.com/mojavelinux |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
In reply to this post by documentationchronicles
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 |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Administrator
|
On Sat, May 16, 2020 at 2:46 AM programandala.net [via Asciidoctor :: Discussion] <[hidden email]> wrote:
That's because a link is an inline macro. You cannot use a passthrough in the target of a block macro.
Backslashes are not recognized in the target of a block macro.
This is the correct solution, as is using {startsb} (and if you want, {endsb}). Best Regards, -Dan -- Dan Allen | @mojavelinux | https://twitter.com/mojavelinux |
Free forum by Nabble | Edit this page |