refactor: normalize Markdown linkification behavior, elaborate in documentation (#7248)

* refactor: normalize Markdown linkification behavior, elaborate in documentation

* fix broken links

* allow links to be relative to site root

* fix test

* minor doc update

* Update website/docs/guides/markdown-features/markdown-features-links.md

Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>

Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
This commit is contained in:
Joshua Chen 2022-04-29 11:36:39 +08:00 committed by GitHub
parent a30daa1530
commit d2562a4434
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 132 additions and 50 deletions

View file

@ -9,4 +9,4 @@
- [doc1](doc1.md)
- [doc2](./doc2.md)
- [doc-localized](./doc-localized.md)
- [doc-localized](/doc-localized.md)

View file

@ -75,7 +75,7 @@ const sourceToPermalink: SourceToPermalink = {
'@site/i18n/fr/docusaurus-plugin-content-docs/current/doc-localized.md':
'/fr/doc-localized',
'@site/docs/doc-localized': '/doc-localized',
'@site/docs/doc-localized.md': '/doc-localized',
};
function createMarkdownOptions(