Matt Raible
Matt Raible

Reputation: 8634

Is it possible to surround a link with quotes in Asciidoctor?

I'm trying to surround a link with quotes when using Asciidoctor and I can't get it to work. It either includes the quotes in the link:

http://link.to.something["Title"]

Or it renders the raw text:

"http://link.to.something[Title]"

Does anyone know the syntax so it can render like the followin (HTML version)?

"<a href="http://link.to.something">Title</a>"

Upvotes: 0

Views: 236

Answers (2)

Dan Allen
Dan Allen

Reputation: 2478

If you put smart quotes around the link, then the link: macro prefix is not needed.

"`link:http://link.to.something[Title]`"

Upvotes: 2

Dan Allen
Dan Allen

Reputation: 2478

This is a case where the link: macro prefix is needed.

"link:http://link.to.something[Title]"

You can think of the link: macro prefix as a way to force a link. It's kind of like an unconstrained link. It has stronger precedence than the http: prefix.

Upvotes: 3

Related Questions