Skip to content

Commit

Permalink
Try to back out PHP for now
Browse files Browse the repository at this point in the history
  • Loading branch information
72636c committed Oct 9, 2024
1 parent 2e6e089 commit 8b67420
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .changeset/funny-ears-protect.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
'scoobie': patch
---

CodeBlock: Enable `java` and `php` syntax highlighting
CodeBlock: Enable `java` syntax highlighting
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"clsx": "^2.0.0",
"jsonc-parser": "^3.0.0",
"polished": "^4.1.3",
"prismjs": "^1.29.0",
"prism-react-renderer": "2.4.0",
"react-keyed-flatten-children": "^3.0.0",
"refractor": "^3.4.0",
Expand Down
6 changes: 2 additions & 4 deletions src/private/Prism.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Prism from 'prismjs';
import Prism from 'prism-react-renderer';
// @ts-expect-error
import bashLang from 'refractor/lang/bash';
// @ts-expect-error
Expand All @@ -14,8 +14,6 @@ import jsonLang from 'refractor/lang/json';
// @ts-expect-error
import splunkSplLang from 'refractor/lang/splunk-spl';

import 'prismjs/components/prism-php';

bashLang(Prism);
csharpLang(Prism);
diffLang(Prism);
Expand All @@ -24,7 +22,7 @@ javaLang(Prism);
jsonLang(Prism);
splunkSplLang(Prism);

export { Prism };
export { Prism } from 'prism-react-renderer';
export { themes } from 'prism-react-renderer';

const DEFAULT_LANGUAGE = 'text';
Expand Down
5 changes: 0 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9210,11 +9210,6 @@ [email protected]:
"@types/prismjs" "^1.26.0"
clsx "^2.0.0"

prismjs@^1.29.0:
version "1.29.0"
resolved "https://registry.yarnpkg.com/prismjs/-/prismjs-1.29.0.tgz#f113555a8fa9b57c35e637bba27509dcf802dd12"
integrity sha512-Kx/1w86q/epKcmte75LNrEoT+lX8pBpavuAbvJWRXar7Hz8jrtF+e3vY751p0R8H9HdArwaCTNDDzHg/ScJK1Q==

prismjs@~1.27.0:
version "1.27.0"
resolved "https://registry.yarnpkg.com/prismjs/-/prismjs-1.27.0.tgz#bb6ee3138a0b438a3653dd4d6ce0cc6510a45057"
Expand Down

0 comments on commit 8b67420

Please sign in to comment.