Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Escaping HTTP links nested into http macros #781

Merged
merged 1 commit into from
Jun 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions author/ref/asciidoc-tips.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,23 @@ multiple-character combinations, try interpolating `+‌+` between the char
as em-dashes. Character `U+200c` (the zero width non-joiner) is invisible, and its function
is to prevent ligatures combining the characters either side of it.

=== Escaping HTTP links within `http` macros

In cases where an HTTP link is nested into an `http` macro, like for example:

[source%unnumbered]
----
http://example.com[http://example.com/]
----

it is necessary to escape the inner `http` string with a backslash in order to not be
recognized as another `http` macro, like so:

[source%unnumbered]
----
http://example.com[\http://example.com/]
----

== Document attributes

Metanorma AsciiDoc body content is interpolated and processed, such as:
Expand Down
Loading