Remove some of the link rewriting to hopefully fix broken docs links.
This commit is contained in:
parent
e1f4643215
commit
308cb31bf9
1 changed files with 2 additions and 3 deletions
|
@ -14,10 +14,9 @@ module.exports = function(eleventyConfig) {
|
||||||
breaks: false,
|
breaks: false,
|
||||||
linkify: true,
|
linkify: true,
|
||||||
// Replace links to .md files with links to directories. This allows unparsed Markdown links
|
// Replace links to .md files with links to directories. This allows unparsed Markdown links
|
||||||
// to work on GitHub, while rendered links elsewhere also work. Also replaced dotted
|
// to work on GitHub, while rendered links elsewhere also work.
|
||||||
// relative links for the same reason.
|
|
||||||
replaceLink: function (link, env) {
|
replaceLink: function (link, env) {
|
||||||
return link.replace(/\.md$/, '/').replace('../..', '../../..');
|
return link.replace(/\.md$/, '/');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
let markdownItAnchorOptions = {
|
let markdownItAnchorOptions = {
|
||||||
|
|
Loading…
Reference in a new issue