From bfe2f86e99b5528c636cc4002ce10e9af06de0c0 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Tue, 25 Oct 2022 19:01:34 +0200 Subject: Fix dead links in docs --- src/configuration.rs | 4 ++-- src/util/mdx.rs | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'src') 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). /// -- cgit