Expand description
Structure similar to [link](<to> "stuff") with configurable prefix.
There are two structures in CommonMark that match this syntax:
- links -
[text](<href> "title") - images -

You can add custom rules like ~[foo](<bar> "baz"). Let us know if
you come up with fun use case to add as an example!
Add a custom structure by using add_prefix function, which takes following arguments:
PREFIX- marker character before label (!in case of images)ENABLE_NESTED- allow nested links insidemd- parser instancef- function that should return your custom Node given href and title
Structs§
Functions§
- add
- adds custom rule with no prefix
- add_
prefix - adds custom rule with given
PREFIXcharacter - parse_
link_ destination - Helper function used to parse
<href>part of the links with optional brackets. - parse_
link_ title - Helper function used to parse
"title"part of the links (with'title'or(title)alternative syntax).