| 1 | // Feel free to add more! |
| 2 | // See gui/node_modules/highlight.js/lib/languages for the full available list |
| 3 | import clojure from "highlight.js/lib/languages/clojure"; |
| 4 | import elixir from "highlight.js/lib/languages/elixir"; |
| 5 | import julia from "highlight.js/lib/languages/julia"; |
| 6 | import lisp from "highlight.js/lib/languages/lisp"; |
| 7 | import matlab from "highlight.js/lib/languages/matlab"; |
| 8 | import ocaml from "highlight.js/lib/languages/ocaml"; |
| 9 | import powershell from "highlight.js/lib/languages/powershell"; |
| 10 | import protobuf from "highlight.js/lib/languages/protobuf"; |
| 11 | import verilog from "highlight.js/lib/languages/verilog"; |
| 12 | import { common } from "lowlight"; |
| 13 | import rehypeHighlight, { Options } from "rehype-highlight"; |
| 14 | |
| 15 | export function rehypeHighlightPlugin() { |
| 16 | return [ |
| 17 | rehypeHighlight, |
| 18 | { |
| 19 | languages: { |
| 20 | ...common, |
| 21 | clojure, |
| 22 | elixir, |
| 23 | julia, |
| 24 | protobuf, |
| 25 | verilog, |
| 26 | powershell, |
| 27 | ocaml, |
| 28 | matlab, |
| 29 | lisp, |
| 30 | }, |
| 31 | } as Options, |
| 32 | ]; |
| 33 | } |