We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
eslint
Learn more about funding links in repositories.
Report abuse
1 parent 863aa78 commit 5f6a765Copy full SHA for 5f6a765
Makefile.js
@@ -745,7 +745,7 @@ target.gensite = function(prereleaseVersion) {
745
].join("\n");
746
747
// 6. Remove .md extension for relative links and change README to empty string
748
- text = text.replace(/\((?!https?:\/\/)([^)]*?)\.md.*?\)/g, "($1)").replace("README.html", "");
+ text = text.replace(/\((?!https?:\/\/)([^)]*?)\.md(.*?)\)/g, "($1$2)").replace("README.html", "");
749
750
// 7. Check if there's a trailing white line at the end of the file, if there isn't one, add it
751
if (!/\n$/.test(text)) {
0 commit comments