aboutsummaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-10-13 10:40:01 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-10-13 10:40:01 +0200
commitec2d1bfb4232178fb3a6cba36f138bc6efbbf34a (patch)
tree2da4be3be22c2324c48cb17133b3f4b26b9139d2 /src/util
parent861af95c119721e814460fa7dc32bd3d74b38484 (diff)
downloadmarkdown-rs-ec2d1bfb4232178fb3a6cba36f138bc6efbbf34a.tar.gz
markdown-rs-ec2d1bfb4232178fb3a6cba36f138bc6efbbf34a.tar.bz2
markdown-rs-ec2d1bfb4232178fb3a6cba36f138bc6efbbf34a.zip
Rename crate to `markdown`
Diffstat (limited to 'src/util')
-rw-r--r--src/util/character_reference.rs6
-rw-r--r--src/util/encode.rs2
-rw-r--r--src/util/gfm_tagfilter.rs2
-rw-r--r--src/util/normalize_identifier.rs2
-rw-r--r--src/util/sanitize_uri.rs6
-rw-r--r--src/util/slice.rs2
6 files changed, 10 insertions, 10 deletions
diff --git a/src/util/character_reference.rs b/src/util/character_reference.rs
index 330293c..f28c135 100644
--- a/src/util/character_reference.rs
+++ b/src/util/character_reference.rs
@@ -25,7 +25,7 @@ use core::str;
/// ## Examples
///
/// ```rust ignore
-/// use micromark::util::decode_character_reference::decode_named;
+/// use markdown::util::decode_character_reference::decode_named;
///
/// assert_eq!(decode_named("amp", true), "&");
/// assert_eq!(decode_named("AElig", true), "Æ");
@@ -60,7 +60,7 @@ pub fn decode_named(value: &str, html5: bool) -> Option<String> {
/// ## Examples
///
/// ```rust ignore
-/// use micromark::util::decode_character_reference::decode_numeric;
+/// use markdown::util::decode_character_reference::decode_numeric;
///
/// assert_eq!(decode_numeric("123", 10), "{");
/// assert_eq!(decode_numeric("9", 16), "\t");
@@ -73,7 +73,7 @@ pub fn decode_named(value: &str, html5: bool) -> Option<String> {
/// is given.
/// It is expected that figuring out whether a number is allowed is handled in
/// the parser.
-/// When `micromark` is used, this function never panics.
+/// When `markdown-rs` is used, this function never panics.
///
/// ## References
///
diff --git a/src/util/encode.rs b/src/util/encode.rs
index 98b3bcb..a26d954 100644
--- a/src/util/encode.rs
+++ b/src/util/encode.rs
@@ -15,7 +15,7 @@ use alloc::string::String;
/// ## Examples
///
/// ```rust ignore
-/// use micromark::util::encode;
+/// use markdown::util::encode;
///
/// assert_eq!(encode("I <3 🦀"), "I &lt;3 🦀");
/// ```
diff --git a/src/util/gfm_tagfilter.rs b/src/util/gfm_tagfilter.rs
index 8023c66..7ac55f4 100644
--- a/src/util/gfm_tagfilter.rs
+++ b/src/util/gfm_tagfilter.rs
@@ -13,7 +13,7 @@ use core::str;
/// ## Examples
///
/// ```rust ignore
-/// use micromark::util::gfm_tagfilter::gfm_tagfilter;
+/// use markdown::util::gfm_tagfilter::gfm_tagfilter;
///
/// assert_eq!(gfm_tagfilter("<iframe>"), "&lt;iframe>");
/// ```
diff --git a/src/util/normalize_identifier.rs b/src/util/normalize_identifier.rs
index 2f73bfa..7171c40 100644
--- a/src/util/normalize_identifier.rs
+++ b/src/util/normalize_identifier.rs
@@ -26,7 +26,7 @@ use alloc::string::String;
/// ## Examples
///
/// ```rust ignore
-/// micromark::util::normalize_identifier::normalize_identifier;
+/// markdown::util::normalize_identifier::normalize_identifier;
///
/// assert_eq!(normalize_identifier(" a "), "a");
/// assert_eq!(normalize_identifier("a\t\r\nb"), "a b");
diff --git a/src/util/sanitize_uri.rs b/src/util/sanitize_uri.rs
index cd0600d..96bf33a 100644
--- a/src/util/sanitize_uri.rs
+++ b/src/util/sanitize_uri.rs
@@ -13,7 +13,7 @@ use alloc::{format, string::String, vec::Vec};
/// ## Examples
///
/// ```rust ignore
-/// use micromark::util::sanitize_uri::sanitize;
+/// use markdown::util::sanitize_uri::sanitize;
///
/// assert_eq!(sanitize("javascript:alert(1)"), "javascript:alert(1)");
/// assert_eq!(sanitize("https://a👍b.c/%20/%"), "https://a%F0%9F%91%8Db.c/%20/%25");
@@ -41,7 +41,7 @@ pub fn sanitize(value: &str) -> String {
/// ## Examples
///
/// ```rust ignore
-/// use micromark::util::sanitize_uri::sanitize_with_protocols;
+/// use markdown::util::sanitize_uri::sanitize_with_protocols;
///
/// assert_eq!(sanitize_with_protocols("javascript:alert(1)", &["http", "https"]), "");
/// assert_eq!(sanitize_with_protocols("https://example.com", &["http", "https"]), "https://example.com");
@@ -87,7 +87,7 @@ pub fn sanitize_with_protocols(value: &str, protocols: &[&str]) -> String {
/// ## Examples
///
/// ```rust ignore
-/// use micromark::util::sanitize_uri::normalize;
+/// use markdown::util::sanitize_uri::normalize;
///
/// assert_eq!(sanitize_uri("https://example.com"), "https://example.com");
/// assert_eq!(sanitize_uri("https://a👍b.c/%20/%"), "https://a%F0%9F%91%8Db.c/%20/%25");
diff --git a/src/util/slice.rs b/src/util/slice.rs
index 0734d78..13a22dd 100644
--- a/src/util/slice.rs
+++ b/src/util/slice.rs
@@ -23,7 +23,7 @@ impl<'a> Position<'a> {
/// ## Panics
///
/// This function panics if an enter event is given.
- /// When `micromark` is used, this function never panics.
+ /// When `markdown-rs` is used, this function never panics.
pub fn from_exit_event(events: &'a [Event], index: usize) -> Position<'a> {
let exit = &events[index];
debug_assert_eq!(