|
@@ -3,7 +3,7 @@
|
|
|
<!-- 作者:PJ568 -->
|
|
<!-- 作者:PJ568 -->
|
|
|
<!-- 项目地址:https://github.com/PJ-568/markdown.html/ -->
|
|
<!-- 项目地址:https://github.com/PJ-568/markdown.html/ -->
|
|
|
<!-- 本项目遵循 CC BY-SA 4.0 International 许可协议 -->
|
|
<!-- 本项目遵循 CC BY-SA 4.0 International 许可协议 -->
|
|
|
-<!-- v 0.6.2 -->
|
|
|
|
|
|
|
+<!-- v 0.6.3 -->
|
|
|
|
|
|
|
|
<head>
|
|
<head>
|
|
|
<meta charset="utf-8">
|
|
<meta charset="utf-8">
|
|
@@ -283,6 +283,9 @@
|
|
|
if (path) {
|
|
if (path) {
|
|
|
path = new URL(path, 'http://example.com').pathname;
|
|
path = new URL(path, 'http://example.com').pathname;
|
|
|
if (!path.endsWith('.md')) {
|
|
if (!path.endsWith('.md')) {
|
|
|
|
|
+ if (!path.endsWith('/')) {
|
|
|
|
|
+ path += '/';
|
|
|
|
|
+ }
|
|
|
path += 'index.md';
|
|
path += 'index.md';
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|