asciidoctor / docbookrx

(An early version of) a DocBook to AsciiDoc converter written in Ruby.
MIT License
22 stars 49 forks source link

handle equal signs in link element's text #72

Closed shlomif closed 11 months ago

mojavelinux commented 2 years ago

The correct solution here is to enclose the linked text in double quotes. In other words:

https://example.org["foo=bar"]
shlomif commented 2 years ago

The correct solution here is to enclose the linked text in double quotes. In other words:

https://example.org["foo=bar"]

what if it already contains them?

mojavelinux commented 2 years ago

Then they would have to be escaped using a backslash.

https://example.com["foo=\"bar\""]
shlomif commented 2 years ago

On Mon, 11 Apr 2022 01:10:06 -0700 Dan Allen @.***> wrote:

Then they would have to be escaped using a backslash.

https://example.com["foo=\"bar\""]

thanks!

is there a list of characters whose presence necessitates wrapping the link's text? I hate markup soup sometimes…

--

Shlomi Fish https://www.shlomifish.org/ https://ccmixter.org/files/destinazione_altrove/49997 - “Paint The Sky”

When Chuck Norris drops a cat, it falls on its back so it won’t lose eye contact with Chuck. — https://www.shlomifish.org/humour/bits/facts/Chuck-Norris/

Please reply to list if it's a mailing list post - https://shlom.in/reply .

mojavelinux commented 2 years ago

The attribute list parsing is described in detail on the following page in the docs: https://docs.asciidoctor.org/asciidoc/latest/macros/link-macro-attribute-parsing/

mojavelinux commented 11 months ago

Thanks!

shlomif commented 11 months ago

@mojavelinux : thanks - and - yw