Browse Source

Remove some of the link rewriting to hopefully fix broken docs links.

tags/1.3.6
Dan Helfman 1 year ago
parent
commit
308cb31bf9
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      .eleventy.js

+ 2
- 3
.eleventy.js View File

@@ -14,10 +14,9 @@ module.exports = function(eleventyConfig) {
breaks: false,
linkify: true,
// 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
// relative links for the same reason.
// to work on GitHub, while rendered links elsewhere also work.
replaceLink: function (link, env) {
return link.replace(/\.md$/, '/').replace('../..', '../../..');
return link.replace(/\.md$/, '/');
}
};
let markdownItAnchorOptions = {


Loading…
Cancel
Save