Skip to content

Commit bfe2f86

Browse files
committed
Fix dead links in docs
1 parent 8b41cfa commit bfe2f86

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/configuration.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1087,7 +1087,7 @@ pub struct ParseOptions {
10871087
/// languages within expressions.
10881088
///
10891089
/// It only makes sense to pass this when compiling to a syntax tree
1090-
/// with [`to_mdast()`][].
1090+
/// with [`to_mdast()`][crate::to_mdast()].
10911091
///
10921092
/// For an example that adds support for JavaScript with SWC, see
10931093
/// `tests/test_utils/mod.rs`.
@@ -1103,7 +1103,7 @@ pub struct ParseOptions {
11031103
/// > MDX that is aware of, say, Rust, or other programming languages.
11041104
///
11051105
/// It only makes sense to pass this when compiling to a syntax tree
1106-
/// with [`to_mdast()`][].
1106+
/// with [`to_mdast()`][crate::to_mdast()].
11071107
///
11081108
/// For an example that adds support for JavaScript with SWC, see
11091109
/// `tests/test_utils/mod.rs`.

src/util/mdx.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ pub enum Signal {
4444

4545
/// Signature of a function that parses MDX ESM.
4646
///
47-
/// Can be passed as `mdx_esm_parse` in [`ParseOptions`][] to support
47+
/// Can be passed as `mdx_esm_parse` in
48+
/// [`ParseOptions`][crate::configuration::ParseOptions] to support
4849
/// ESM according to a certain grammar (typically, a programming language).
4950
pub type EsmParse = dyn Fn(&str) -> Signal;
5051

@@ -79,7 +80,8 @@ pub enum ExpressionKind {
7980

8081
/// Signature of a function that parses MDX expressions.
8182
///
82-
/// Can be passed as `mdx_expression_parse` in [`ParseOptions`][] to support
83+
/// Can be passed as `mdx_expression_parse` in
84+
/// [`ParseOptions`][crate::configuration::ParseOptions] to support
8385
/// expressions according to a certain grammar (typically, a programming
8486
/// language).
8587
///

0 commit comments

Comments
 (0)