From e1ec23e64d2823dbf3fc96b031d2991ae97ba141 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9e=20Kooi?= Date: Thu, 16 Aug 2018 11:36:39 +0200 Subject: [PATCH] website: Load all prism languages (#1004) This is server side so we don't need to worry about bundle size anyway. It'll be best if every language is available to use, so we can't forget about adding one. --- website/scripts/highlight.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/scripts/highlight.js b/website/scripts/highlight.js index 5ba8abbf2..ea065c9a5 100644 --- a/website/scripts/highlight.js +++ b/website/scripts/highlight.js @@ -9,8 +9,8 @@ const path = require('path') // I think this is the way to add Prism components that it doesn't include // in the default build? global.Prism = Prism -require('prismjs/components/prism-markup-templating') -require('prismjs/components/prism-php') +// the / is needed to force it to resolve to the directory +require('prismjs/components/')() delete global.Prism const unhighlightedCodeRx = /
([\s\S]*?)<\/code><\/pre>/igm