feat: Custom highlight.js

This commit is contained in:
ThatOneCalculator 2022-03-25 15:19:17 -07:00
parent 113287e5dc
commit fb81db3add
6 changed files with 1748 additions and 11 deletions

View File

@ -8,7 +8,7 @@ head
meta(name='keywords' content='zerobin, zer0bin, paste, paste bin, pastebin, pastebin alternative, foss pastebin, open source pastebin, free pastebin, ghostbin, hastebin, pastebin.com, free pastebin online, paste online, github paste, github gist, github gist paste')
meta(name='darkreader' content='NO-DARKREADER-PLUGIN')
link(href='style/style.scss' rel='stylesheet')
link(href='style/rosepine.min.css' rel='stylesheet')
link(href='min/rosepine.min.css' rel='stylesheet')
meta(name='title' content='zer0bin')
meta(name='description' content='🖊 Just a place to paste')
meta(property='og:type' content='website')

1746
frontend/min/highlight.min.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -23,7 +23,6 @@
"@ant-design/icons-svg": "^4.2.1",
"@parcel/core": "^2.4.0",
"@parcel/transformer-pug": "^2.4.0",
"highlight.js": "^11.5.0",
"js-confetti": "^0.10.2",
"marked": "^4.0.12",
"no-darkreader": "^1.0.1",

View File

@ -1,11 +1,11 @@
import "no-darkreader"
import hljs from "highlight.js/lib/common"
import { marked } from "marked"
import JSConfetti from "js-confetti"
import Scrollbar from "smooth-scrollbar"
import "./icons"
import hljs from "../min/highlight.min"
import config from "../config.json"
import { toggleHiddenIcon } from "./icons"

View File

@ -1791,13 +1791,6 @@ __metadata:
languageName: node
linkType: hard
"highlight.js@npm:^11.5.0":
version: 11.5.0
resolution: "highlight.js@npm:11.5.0"
checksum: a4339278d5be464fa29047fd00bc91f3d3966f5acbbb861ec51a09f3eea7c79ca63c2e0a2ba0c7b3d3663ee56b11c6470ab2759c7278e0d11af5cb0efa26e6eb
languageName: node
linkType: hard
"htmlnano@npm:^2.0.0":
version: 2.0.0
resolution: "htmlnano@npm:2.0.0"
@ -3291,7 +3284,6 @@ __metadata:
"@parcel/transformer-sass": ^2.4.0
"@types/core-js": ^2.5.5
"@types/node": ^17.0.21
highlight.js: ^11.5.0
js-confetti: ^0.10.2
marked: ^4.0.12
no-darkreader: ^1.0.1