aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-10-11 14:06:50 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-10-11 14:06:54 +0200
commit1d8e2b373b5e347a89f05e36c73b04487e04bead (patch)
tree0fc27c9c2adafa3ee841d68ec1334e306babd7b1 /src/lib.rs
parent43edc8fc9d204da962c92b9f9fef45ac8b6b03da (diff)
downloadmarkdown-rs-1d8e2b373b5e347a89f05e36c73b04487e04bead.tar.gz
markdown-rs-1d8e2b373b5e347a89f05e36c73b04487e04bead.tar.bz2
markdown-rs-1d8e2b373b5e347a89f05e36c73b04487e04bead.zip
Refactor some hidden internals
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs34
1 files changed, 9 insertions, 25 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 38c024b..8ff4c93 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -36,12 +36,17 @@ use mdast::Node;
use parser::parse;
use to_html::compile as to_html;
use to_mdast::compile as to_mdast;
-use util::{
- identifier::{id_cont, id_start},
- sanitize_uri::sanitize,
-};
#[doc(hidden)]
+// Do not use: exported for quick prototyping, will be removed.
+pub use util::identifier::{id_cont, id_start};
+
+#[doc(hidden)]
+// Do not use: exported for quick prototyping, will be removed.
+pub use util::sanitize_uri::sanitize;
+
+#[doc(hidden)]
+// Do not use: exported for quick prototyping, will be removed.
pub use util::location::Location;
/// Type of line endings in markdown.
@@ -1514,24 +1519,3 @@ pub fn micromark_to_mdast(value: &str, options: &ParseOptions) -> Result<Node, S
let node = to_mdast(&events, parse_state.bytes)?;
Ok(node)
}
-
-/// Do not use: exported for quick prototyping, will be removed.
-#[must_use]
-#[doc(hidden)]
-pub fn sanitize_(value: &str) -> String {
- sanitize(value)
-}
-
-/// Do not use: exported for quick prototyping, will be removed.
-#[must_use]
-#[doc(hidden)]
-pub fn id_start_(char: char) -> bool {
- id_start(char)
-}
-
-/// Do not use: exported for quick prototyping, will be removed.
-#[must_use]
-#[doc(hidden)]
-pub fn id_cont_(char: char, jsx: bool) -> bool {
- id_cont(char, jsx)
-}