diff --git a/src/global/manifest/parser2.mjs b/src/global/manifest/parser2.mjs index 996ac712..4fb2f87a 100644 --- a/src/global/manifest/parser2.mjs +++ b/src/global/manifest/parser2.mjs @@ -459,7 +459,7 @@ parser.pushRequest = function(uri, owner) { request.then((response) => { // Удаляем из загрузок ресурс delete parser.sourceLoading[uri]; - if (response.headers?.['content-type'].match(/^.*\/markdown($|;.*$)/)) { + if (response.headers?.['content-type'].match(/^.*\/markdown($|;.*$)/) || uri.endsWith('.md')) { const parts = response.data.split('---'); if (parts.length === 1) success({}); else if (parts.length !== 3) reject(new Error('Incorrect metadata of markdown file')); diff --git a/vue.config.js b/vue.config.js index 5efd5066..1b62d131 100644 --- a/vue.config.js +++ b/vue.config.js @@ -78,6 +78,7 @@ let config = { 'Access-Control-Allow-Methods': 'GET, POST, PUT, DELETE, PATCH, OPTIONS', 'Access-Control-Allow-Headers': 'X-Requested-With, content-type, Authorization' }, + allowedHosts: 'all', /* allowedHosts: [ 'localhost' @@ -88,7 +89,7 @@ let config = { }, transpileDependencies: ['vueitfy'], chainWebpack: (config) => { - config.module.rules.delete("svg"); + config.module.rules.delete('svg'); }, configureWebpack: { cache: (process.env.VUE_APP_DOCHUB_BUILDING_CACHE || 'memory').toLowerCase() === 'filesystem'