From 94e2e66e3bb57c39e95eb05857ad11d62bc5256b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20B=C3=B8ving?= Date: Fri, 14 Jan 2022 13:02:02 +0100 Subject: [PATCH] Add BASE_PATH to Prism autoloader languages_path This change prefixes the Prism grammar folder (`assets/prism-grammars/`) with the base path, used when autoloading grammers. --- src/assets/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/assets/app.js b/src/assets/app.js index 3d5bac3..4351ffc 100644 --- a/src/assets/app.js +++ b/src/assets/app.js @@ -177,7 +177,7 @@ for (let element of mathElements) { } // Setup Prism -Prism.plugins.autoloader.languages_path = '/assets/prism-grammars/'; +Prism.plugins.autoloader.languages_path = BASE_PATH + 'assets/prism-grammars/'; // Load search index