aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/configuration.rs4
-rw-r--r--src/util/mdx.rs6
2 files changed, 6 insertions, 4 deletions
diff --git a/src/configuration.rs b/src/configuration.rs
index 3e8823d..d6297e3 100644
--- a/src/configuration.rs
+++ b/src/configuration.rs
@@ -1087,7 +1087,7 @@ pub struct ParseOptions {
/// languages within expressions.
///
/// It only makes sense to pass this when compiling to a syntax tree
- /// with [`to_mdast()`][].
+ /// with [`to_mdast()`][crate::to_mdast()].
///
/// For an example that adds support for JavaScript with SWC, see
/// `tests/test_utils/mod.rs`.
@@ -1103,7 +1103,7 @@ pub struct ParseOptions {
/// > MDX that is aware of, say, Rust, or other programming languages.
///
/// It only makes sense to pass this when compiling to a syntax tree
- /// with [`to_mdast()`][].
+ /// with [`to_mdast()`][crate::to_mdast()].
///
/// For an example that adds support for JavaScript with SWC, see
/// `tests/test_utils/mod.rs`.
diff --git a/src/util/mdx.rs b/src/util/mdx.rs
index 712b2c7..882f3f5 100644
--- a/src/util/mdx.rs
+++ b/src/util/mdx.rs
@@ -44,7 +44,8 @@ pub enum Signal {
/// Signature of a function that parses MDX ESM.
///
-/// Can be passed as `mdx_esm_parse` in [`ParseOptions`][] to support
+/// Can be passed as `mdx_esm_parse` in
+/// [`ParseOptions`][crate::configuration::ParseOptions] to support
/// ESM according to a certain grammar (typically, a programming language).
pub type EsmParse = dyn Fn(&str) -> Signal;
@@ -79,7 +80,8 @@ pub enum ExpressionKind {
/// Signature of a function that parses MDX expressions.
///
-/// Can be passed as `mdx_expression_parse` in [`ParseOptions`][] to support
+/// Can be passed as `mdx_expression_parse` in
+/// [`ParseOptions`][crate::configuration::ParseOptions] to support
/// expressions according to a certain grammar (typically, a programming
/// language).
///