-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TASK] Update Prism to version 1.19.0
- Loading branch information
1 parent
37a275d
commit 1ba8849
Showing
92 changed files
with
434 additions
and
922 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
diff --git a/node_modules/prismjs/plugins/autoloader/prism-autoloader.js b/node_modules/prismjs/plugins/autoloader/prism-autoloader.js | ||
index 964e767..5043efc 100644 | ||
--- a/node_modules/prismjs/plugins/autoloader/prism-autoloader.js | ||
+++ b/node_modules/prismjs/plugins/autoloader/prism-autoloader.js | ||
@@ -192,21 +192,7 @@ | ||
|
||
var script = Prism.util.currentScript(); | ||
if (script) { | ||
- var autoloaderFile = /\bplugins\/autoloader\/prism-autoloader\.(?:min\.)js$/i; | ||
- var prismFile = /[\w-]+\.(?:min\.)js$/i; | ||
- if (script.hasAttribute('data-autoloader-path')) { | ||
- // data-autoloader-path is set, so just use it | ||
- languages_path = script.getAttribute('data-autoloader-path').trim().replace(/\/?$/, '/'); | ||
- } else { | ||
- var src = script.src; | ||
- if (autoloaderFile.test(src)) { | ||
- // the script is the original autoloader script in the usual Prism project structure | ||
- languages_path = src.replace(autoloaderFile, 'components/'); | ||
- } else if (prismFile.test(src)) { | ||
- // the script is part of a bundle like a custom prism.js from the download page | ||
- languages_path = src.replace(prismFile, 'components/'); | ||
- } | ||
- } | ||
+ var languages_path = '/typo3conf/ext/codehighlight/Resources/Public/Prism/components/'; | ||
} | ||
|
||
var config = Prism.plugins.autoloader = { |
Oops, something went wrong.