diff options
author | Titus Wormer <tituswormer@gmail.com> | 2022-09-05 16:06:02 +0200 |
---|---|---|
committer | Titus Wormer <tituswormer@gmail.com> | 2022-09-05 16:06:02 +0200 |
commit | 1ba9f2c632fb6c9e57f8ad2213894d4f1235677d (patch) | |
tree | dcf50fb7277239cda442000db150d910bfe9964a /src/event.rs | |
parent | 57673d17336371ca5a98cd8d0ce2b01137b43431 (diff) | |
download | markdown-rs-1ba9f2c632fb6c9e57f8ad2213894d4f1235677d.tar.gz markdown-rs-1ba9f2c632fb6c9e57f8ad2213894d4f1235677d.tar.bz2 markdown-rs-1ba9f2c632fb6c9e57f8ad2213894d4f1235677d.zip |
Add support for `mailto:`, `xmpp:` protocols
Diffstat (limited to '')
-rw-r--r-- | src/event.rs | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/event.rs b/src/event.rs index 458bd19..fad2c64 100644 --- a/src/event.rs +++ b/src/event.rs @@ -986,6 +986,24 @@ pub enum Name { /// ^^^^^^^^^^^^^^^^^^^ /// ``` GfmAutolinkLiteralEmail, + /// GFM extension: email autolink w/ explicit `mailto`. + /// + /// ## Info + /// + /// * **Context**: + /// [text content][crate::construct::text] + /// * **Content model**: + /// void. + /// * **Construct**: + /// [`gfm_autolink_literal`][crate::construct::gfm_autolink_literal] + /// + /// ## Example + /// + /// ```markdown + /// > | mailto:context@example.com + /// ^^^^^^^^^^^^^^^^^^^^^^^^^^ + /// ``` + GfmAutolinkLiteralMailto, /// GFM extension: autolink w/ protocol. /// /// ## Info @@ -1022,6 +1040,24 @@ pub enum Name { /// ^^^^^^^^^^^^^^^ /// ``` GfmAutolinkLiteralWww, + /// GFM extension: email autolink w/ explicit `xmpp`. + /// + /// ## Info + /// + /// * **Context**: + /// [text content][crate::construct::text] + /// * **Content model**: + /// void. + /// * **Construct**: + /// [`gfm_autolink_literal`][crate::construct::gfm_autolink_literal] + /// + /// ## Example + /// + /// ```markdown + /// > | mailto:a@b.c/d + /// ^^^^^^^^^^^^^^ + /// ``` + GfmAutolinkLiteralXmpp, /// GFM extension: whole footnote call. /// /// ## Info |