mm_statics 1.6.3 → 1.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -714,7 +714,7 @@ Static.prototype._handleCache = async function (url, ctx) {
|
|
|
714
714
|
* @returns {string|null} 编译后的内容
|
|
715
715
|
*/
|
|
716
716
|
Static.prototype._handleFileCompile = async function (path) {
|
|
717
|
-
if (this.config.compile_md &&
|
|
717
|
+
if (this.config.compile_md && path.extname() === '.md') {
|
|
718
718
|
return await this._runMarkdown(path);
|
|
719
719
|
} else if (!path.startsWith(this.config.path)) return null;
|
|
720
720
|
|