Link Destinations and Titles #
The link destination and link title grammar of CommonMark §6.3. Shared by inline links and link reference definitions.
def Lean.Markdown.parseLinkDestination? {s : String.Slice} (cur : InlineCursor s) :
Option (LinkDestination s × InlineCursor s)
Parses a link destination at cur. Returns the destination and the cursor after it.
- A bracketed destination is
<, then characters other than an unescaped<or>or a line ending, then>. - An unbracketed destination is a sequence of characters other than ASCII whitespace and control
characters in which parentheses balance and nest at most 32 deep, and it ends before a
)that has no matching(. An unbracketed destination may be empty.
Equations
- One or more equations did not get rendered due to their size.
Instances For
def Lean.Markdown.parseLinkTitle? {s : String.Slice} (cur : InlineCursor s) :
Option (LinkTitle s × InlineCursor s)
Parses a link title at cur, which must point at its opener: ", ', or (. The content extends
to the first unescaped closer that matches the opener: ", ', or ). An unescaped ( inside a
parenthesized title fails. Returns the title and the cursor after its closer.
Equations
- One or more equations did not get rendered due to their size.