diff options
author | Titus Wormer <tituswormer@gmail.com> | 2022-10-25 19:01:34 +0200 |
---|---|---|
committer | Titus Wormer <tituswormer@gmail.com> | 2022-10-25 19:01:34 +0200 |
commit | bfe2f86e99b5528c636cc4002ce10e9af06de0c0 (patch) | |
tree | 2b9f7b13d8cc9d693423b0fa225be853cd5a125e | |
parent | 8b41cfabde848b24fdae65d09ad961c2412e023b (diff) | |
download | markdown-rs-bfe2f86e99b5528c636cc4002ce10e9af06de0c0.tar.gz markdown-rs-bfe2f86e99b5528c636cc4002ce10e9af06de0c0.tar.bz2 markdown-rs-bfe2f86e99b5528c636cc4002ce10e9af06de0c0.zip |
Fix dead links in docs
-rw-r--r-- | src/configuration.rs | 4 | ||||
-rw-r--r-- | src/util/mdx.rs | 6 |
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). /// |