Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zwbetz-gh/cupper-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzwbetz-gh <zwbetz@gmail.com>2021-07-29 04:52:05 +0300
committerzwbetz-gh <zwbetz@gmail.com>2021-07-29 04:52:05 +0300
commitc2914816e1611e252986cae02da700b95a2ae652 (patch)
tree556801de601d9f1dcedc5ea1105ca42205c177a2
parent2b50ce922a1815416a34b347c4e4d63acdf8cb26 (diff)
how to support more languages with prism
-rw-r--r--README.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/README.md b/README.md
index 5bf9733..3365563 100644
--- a/README.md
+++ b/README.md
@@ -74,6 +74,11 @@ See the [full list of supported shortcodes](https://cupper-hugo-theme.netlify.co
Syntax highlighting is provided by [Prism](https://prismjs.com/). See this [markdown code fences example](https://cupper-hugo-theme.netlify.com/cupper-shortcodes/#syntax-highlighting).
+By default, only a few languages are supported. If you want to add more, follow these steps:
+
+1. Select the languages you want from <https://prismjs.com/download.html>
+1. Download the JS file, then copy it to `static/js/prism.js`
+1. Download the CSS file, then copy it to `static/css/prism.css`
## Disable toc for a blog post