update prism webdep (#1238)

* update prism to 1.30.0
* split out prism plugins
* deps: list all prism langs
This commit is contained in:
George Rawlinson
2026-01-25 06:16:20 +13:00
committed by GitHub
parent d750f3f0d2
commit 59e2d77df9
2 changed files with 259 additions and 2 deletions

View File

@@ -7,7 +7,7 @@ ENV ver_asmcrypto=c72492f4a66e17a0e5dd8ad7874de354f3ccdaa5 \
ver_mde=2.18.0 \
ver_codemirror=5.65.18 \
ver_fontawesome=5.13.0 \
ver_prism=1.29.0 \
ver_prism=1.30.0 \
ver_zopfli=1.0.3
# versioncheck:

View File

@@ -1,63 +1,320 @@
#!/bin/bash
set -e
plugins=(
line-highlight
line-numbers
autolinker
)
langs=(
markup
css
clike
javascript
# abap
# abnf
# actionscript
# ada
# agda
# al
# antlr4
# apacheconf
# apex
# apl
# applescript
# aql
# arduino
# arff
# armasm
# arturo
# asciidoc
# aspnet
# asm6502
# asmatmel
autohotkey
# autoit
# avisynth
# avro-idl
# awk
bash
basic
batch
# bbcode
# bbj
# bicep
# birb
# bison
# bnf
# bqn
# brainfuck
# brightscript
# bro
# bsl
c
csharp
cpp
# cfscript
# chaiscript
# cil
# cilkc
# cilkcpp
# clojure
cmake
# cobol
# coffeescript
# concurnas
# csp
# cooklang
# coq
# crystal
# css-extras
# csv
# cue
# cypher
# d
# dart
# dataweave
# dax
# dhall
diff
# django
# dns-zone-file
docker
# dot
# ebnf
# editorconfig
# eiffel
# ejs
elixir
# elm
# etlua
# erb
# erlang
# excel-formula
# fsharp
# factor
# false
# firestore-security-rules
# flow
# fortran
# ftl
# gml
# gap
# gcode
# gdscript
# gedcom
# gettext
# gherkin
# git
glsl
# gn
# linker-script
go
# go-module
# gradle
# graphql
# groovy
# haml
# handlebars
# haskell
# haxe
# hcl
# hlsl
# hoon
# http
# hpkp
# hsts
# ichigojam
# icon
# icu-message-format
# idris
# ignore
# inform7
ini
# io
# j
java
# javadoc
# javadoclike
# javastacktrace
# jexl
# jolie
# jq
# jsdoc
# js-extras
json
# json5
# jsonp
# jsstacktrace
# js-templates
# julia
# keepalived
# keyman
kotlin
# kumir
# kusto
latex
# latte
less
# lilypond
# liquid
lisp
# livescript
# llvm
# log
# lolcode
lua
# magma
makefile
# markdown
# markup-templating
# mata
matlab
# maxscript
# mel
# mermaid
# metafont
# mizar
# mongodb
# monkey
moonscript
# n1ql
# n4js
# nand2tetris-hdl
# naniscript
# nasm
# neon
# nevod
# nginx
nim
# nix
# nsis
objectivec
# ocaml
# odin
# opencl
# openqasm
# oz
# parigp
# parser
# pascal
# pascaligo
# psl
# pcaxis
# peoplecode
perl
# php
# phpdoc
# php-extras
# plant-uml
# plsql
# powerquery
powershell
# processing
# prolog
# promql
# properties
# protobuf
# pug
# puppet
# pure
# purebasic
# purescript
python
# qsharp
# q
# qml
# qore
r
# racket
# cshtml
jsx
# tsx
# reason
# regex
# rego
# renpy
# rescript
# rest
# rip
# roboconf
# robotframework
ruby
rust
# sas
sass
scss
# scala
# scheme
# shell-session
# smali
# smalltalk
# smarty
# sml
# solidity
# solution-file
# soy
# sparql
# splunk-spl
# sqf
sql
# squirrel
# stan
# stata
# iecst
# stylus
# supercollider
swift
systemd
# t4-templating
# t4-cs
# t4-vb
# tap
# tcl
# tt2
# textile
toml
# tremor
# turtle
# twig
typescript
# typoscript
# unrealscript
# uorazor
# uri
# v
# vala
vbnet
# velocity
verilog
vhdl
# vim
# visual-basic
# warpscript
# wasm
# web-idl
# wgsl
# wiki
# wolfram
# wren
# xeora
# xml-doc
# xojo
# xquery
yaml
# yang
zig
)
slangs="${langs[*]}"
slangs="${slangs// /+}"
splugins="${plugins[*]}"
splugins="${splugins// /+}"
for theme in prism-funky prism ; do
u="https://prismjs.com/download.html#themes=$theme&languages=$slangs&plugins=line-highlight+line-numbers+autolinker"
u="https://prismjs.com/download.html#themes=$theme&languages=$slangs&plugins=$splugins"
echo "$u"
./genprism.py --dir prism-$1 --js-out prism.js --css-out $theme.css "$u"
done