aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorflu0r1ne <flu0r1ne@flu0r1ne.net>2023-08-28 21:33:44 -0500
committerflu0r1ne <flu0r1ne@flu0r1ne.net>2023-08-28 21:33:44 -0500
commitf0c03a9b8e15387c4defd0a0e3e0298324406fae (patch)
tree564011d0265666953b17258954ff68614ff6566a /plugins
parent2f0439621cff059e414d67f6ce43a7a6c4de13bc (diff)
downloadhomepage-f0c03a9b8e15387c4defd0a0e3e0298324406fae.tar.xz
homepage-f0c03a9b8e15387c4defd0a0e3e0298324406fae.zip
Add wg2nd
Diffstat (limited to 'plugins')
-rw-r--r--plugins/withMarkdownLoader.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/plugins/withMarkdownLoader.js b/plugins/withMarkdownLoader.js
index c1e0ac6..f56af0e 100644
--- a/plugins/withMarkdownLoader.js
+++ b/plugins/withMarkdownLoader.js
@@ -1,8 +1,11 @@
const pluginFactory = require('./pluginFactory');
const markedOptions = require('../utils/markedOptions');
-
+const path = require('path');
const withMarkdownLoader = pluginFactory((config, _options) => {
+
+ const loaderPath = path.join(__dirname, '..', 'loaders', 'marked.js');
+
config.module.rules.push({
test: /\.md$/,
use: [
@@ -13,11 +16,11 @@ const withMarkdownLoader = pluginFactory((config, _options) => {
}
},
{
- loader: 'markdown-loader',
+ loader: path.resolve(loaderPath),
options: markedOptions
}
]
});
});
-module.exports = withMarkdownLoader; \ No newline at end of file
+module.exports = withMarkdownLoader;