mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 10:48:32 +00:00
Fix links in docs (#6265)
<!-- Thank you for contributing to Ruff! To help us out with reviewing, please consider the following: - Does this pull request include a summary of the change? (See below.) - Does this pull request include a descriptive title? - Does this pull request include references to any relevant issues? --> ## Summary <!-- What's the purpose of the change? What does it do, and why? --> Before: <img width="1031" alt="Screen Shot 2023-08-02 at 15 57 10" src="171a21d5
-01a5-4aa5-8079-4e7f8a59ade8"> After: <img width="1031" alt="Screen Shot 2023-08-02 at 15 58 03" src="afd1b9b7
-89e0-4e38-a4a6-e3255b62f021"> ## Test Plan <!-- How was it tested? --> Manual inspection
This commit is contained in:
parent
7842c82a0a
commit
b4f224ecea
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ fn process_documentation(documentation: &str, out: &mut String) {
|
|||
// a non-CommonMark-compliant Markdown parser, which doesn't support code
|
||||
// tags in link definitions
|
||||
// (see https://github.com/Python-Markdown/markdown/issues/280).
|
||||
let documentation = Regex::new(r"\[`(.*?)`]($|[^\[])").unwrap().replace_all(
|
||||
let documentation = Regex::new(r"\[`([^`]*?)`]($|[^\[])").unwrap().replace_all(
|
||||
documentation,
|
||||
|caps: &Captures| {
|
||||
format!(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue