plugins


Log

Author Commit Date CI Message
Chris Wells 094d5463 2018-03-26T02:14:54 Command Line: Allow specifying output prefix using data-filter-output attribute. (#856)
Golmote 5f9c078a 2018-03-25T13:46:42 Make ERB, Handlebars, PHP and Smarty highlight properly in NodeJS (#1367)
Golmote 3599e6a3 2018-03-11T12:11:51 Add support for PL/SQL (#1338) * Add support for PL/SQL (Fix #1149) * Merge gh-pages
Golmote e6213acb 2018-03-11T12:02:50 Add support for ERB. Fix #1318
Golmote c3ed5b52 2018-03-11T11:11:05 Website: Auto-generate example header with component title, list of aliases and dependencies. `overrideExampleHeader` can be used to generate only the component title.
Golmote 0bc98ac1 2018-03-07T21:31:40 Add support for ARFF (Fix #653) (#1327)
Golmote 109bd6f8 2018-03-04T13:42:41 Autolinker Plugin: Allow more chars in query string and hash to match more URLs. Fix #1142
Golmote c246c1a6 2018-03-04T12:32:19 Unescaped Markup Plugin: Use msMatchesSelector for IE11 and below. Fix #1302
James DiGioia fce583b2 2018-03-01T13:05:13 Merge pull request #1314 from mAAdhaTTah/feature/bump-clipboard-version Bump ClipboardJS to 2.0.0 and remove hack
Pavel Kutáč 929cc8c0 2018-03-01T16:50:57 Add also minified version
Pavel Kutáč ebe24b2e 2018-03-01T16:39:00 Fix rehighlighting
mAAdhaTTah e9f410ea 2018-03-01T10:15:27 Bump ClipboardJS to 2.0.0 and remove hack This is no longer needed, since it no longer conflicts w/ the built-in global.
Golmote 3dddac91 2018-03-01T08:51:45 Autoloader: Fix demo page
Pavel Kutáč 84eeb895 2018-02-23T00:12:17 Prevent scrolling toolbar with content If content is wider than screen, during scrolling toolbar is not moving anymore.
Golmote 7a9dbe05 2018-02-12T23:43:12 WebPlatform Docs plugin: Fix links. Fixes #1290
Golmote e84ab106 2018-02-05T08:39:29 Run gulp
Mattias fbe82b86 2018-02-05T08:36:19 added tsx support (#1280) * added tsx support * fixed order in components.js and added tsx example file * escape less than and capitalize tsx
Andreas Lind b08cae56 2018-01-31T22:38:01 Add support for highlighting CSP, HSTS, and HPKP (#1275) * Add CSP support. * Add HPKP support. * Add HSTS support. * Updates based on feedback. * Updates based on feedback. * Updates based on feedback. * Updates based on feedback. * Updates based on feedback. * Updates based on feedback. * Updates based on Feedback. * Fix parentheses. * List csp, hpkp, and hsts in components.js * Add missing base64 chars to 'nonce-...' and 'sha-...' source expressions * Add support for 'sha384-...' and 'sha512-...' source expressions * Add tests and examples for csp * Add tests and examples for hsts * Add tests and examples for hpkp * hpkp: Include the sha256 hash in the directive itself Prevent the numbers in the base64 string from being classified as "safe" or "unsafe". * Rebuild the minified csp and hpkp components * Rebuild the "Show Language" plugin as well * Fix copy/paste error in test description
Golmote 7bcdae72 2018-01-17T23:32:41 Unescaped markup plugin: Make it work with any language (#1265)
Golmote 28e4b4c6 2018-01-16T08:48:08 Previewers: New plugin combining previous plugins Previewer: Base, Previewer: Angle, Previewer: Color, Previewer: Easing, Previewer: Gradient and Previewer: Time. Fix #913 (#1244)
Golmote 39502622 2017-12-19T07:50:47 Run gulp
Kevin Zurawel 2ece18b4 2017-12-16T10:35:23 Add support for 6502 assembly (#1245) * Add support for 6502 assembly * Address PR feedback
Golmote 39360d6d 2017-12-07T19:58:28 Merge branch 'autoloader-path1' of https://github.com/bazooka07/prism into bazooka07-autoloader-path1 # Conflicts: # plugins/autoloader/prism-autoloader.min.js
bazooka07 e66de38b 2017-12-06T23:03:15 fix for autoloader plugin
Golmote 05cc391a 2017-12-06T20:35:51 Run gulp and reorder components alphabetically
Tuna Celik 0fffa9df 2017-12-06T20:27:49 Xeora Language implementation (#1239)
bazooka07 d74430ff 2017-11-25T16:31:01 upgrade autoloader
Golmote 924784a8 2017-12-05T21:38:43 Unescaped Markup: Fix ambiguity in documentation by improving examples. Fix #1197
Golmote a31f4906 2017-12-05T21:25:21 Revert "Line Highlight: Inherit white-space from pre" This reverts commit d6881da This is actually a bad idea since Line highlight does not fully support soft wrap on its own at the moment. It relies on Line numbers to work properly.
Golmote d6881dac 2017-12-05T21:19:48 Line Highlight: Inherit white-space from pre
Golmote 3842a914 2017-12-05T21:19:20 Line Highlight: Don't wait for the Line numbers plugin to load if the element does not have the line-numbers class
Golmote d8999891 2017-12-05T21:18:21 Run gulp
Vitaliy Ribachenko e63058f9 2017-12-05T22:16:35 Fixes to compatibility of line number and line higlight plugins (#1194) * Fix line breaks issues in line numbers plugin used with soft wraps option * Fix line highlight plugin compatibility issues with line number plugin * Revert rename data attribute for line numbers plugin * Fix compatibility issues with line highlight and line numbers
Golmote a1b85e31 2017-12-05T08:47:42 Copy to clipboard: Update to v1.7.1. Fix #1220
Golmote e7b5e823 2017-12-05T08:46:24 Copy to clipboard: Fix test for native Clipboard. Fix #1241
Golmote 4c530a13 2017-11-11T23:43:28 Run gulp
Golmote d27b70dc 2017-11-11T23:42:44 Add support for Flow Fix #1216
Erin Wild 2169c995 2017-10-21T04:06:35 Add Python builtin function highlighting (#1205) * Add Python builtin function highlighting * Add builtin functions from Python 3.6 * Python: Add 'nonlocal' and 'None' keywords * Update tests for Python * Python: Remove duplicated builtins that are already keywords * Run gulp
Erin Wild 317f6908 2017-10-20T12:29:15 Update function test for Python and run gulp
James DiGioia b41d571d 2017-10-19T14:20:24 Reset Clipboard to undefined if native code (#1206) Chrome now ships with a window.Clipboard built in, which breaks this check. This ensures we're not grabbing the built-in Clipboard and definitely have the correct package version. Fixes #1181.
Golmote ea2d63e7 2017-10-10T08:51:04 Run gulp
Golmote 6084f051 2017-10-10T08:50:42 Merge branch 'gh-pages' of https://github.com/jjcm/prism into jjcm-gh-pages # Conflicts: # plugins/autoloader/prism-autoloader.js # plugins/autoloader/prism-autoloader.min.js
Golmote 311aeda0 2017-10-10T07:42:26 Run gulp
James DiGioia ed8bdb55 2017-10-10T01:40:44 Check if tokens exists and return (#1195) If the language was autoloaded, the grammar may not exist yet. We need to check if it exists before we attempt to modify it.
Jake Miller 35ec61a3 2017-10-10T15:10:04 Minor spelling changes for style
Jake Miller f680ee70 2017-10-10T15:05:49 Updated all instances of jade to be named pug.
Golmote 5ac0afb4 2017-09-16T12:58:50 Merge branch 'opencl' of https://github.com/Milania1/prism into Milania1-opencl # Conflicts: # plugins/autoloader/prism-autoloader.js # plugins/autoloader/prism-autoloader.min.js # plugins/show-language/prism-show-language.js # plugins/show-language/prism-show-language.min.js
Golmote 2e43fcf1 2017-09-13T20:47:39 Autolinker: Silently catch any error thrown by decodeURIComponent. Fixes #1186
Golmote 78db01eb 2017-09-09T14:01:07 Run gulp
Golmote 76f4dc36 2017-09-09T14:00:52 Merge remote-tracking branch 'official/gh-pages' into gh-pages
Chunlei Wu abc007f6 2017-09-09T04:02:07 fixed an rendering issue for encoded urls (#1173) If a url contains some special characters, like space or "<", it needs to be encoded in order to be recognized as a valid url. Adding a decoding step allows these urls to render correctly.
Golmote eaa8ebb4 2017-09-09T12:40:24 Merge branch 'n4js' of https://github.com/bsmith-n4/prism into bsmith-n4-n4js # Conflicts: # plugins/show-language/prism-show-language.js # plugins/show-language/prism-show-language.min.js
Golmote 87780d26 2017-09-09T12:22:18 Run gulp
Golmote 3fb7cf81 2017-09-09T12:21:10 Merge branch 'gh-pages' of https://github.com/dfitiskin/prism into dfitiskin-gh-pages # Conflicts: # plugins/line-numbers/prism-line-numbers.js
Golmote 25788eb5 2017-09-09T12:05:55 Merge branch 'RemoveIE8' of https://github.com/zeitgeist87/prism into zeitgeist87-RemoveIE8 # Conflicts: # components/prism-core.js # components/prism-core.min.js # plugins/line-highlight/prism-line-highlight.js # plugins/line-highlight/prism-line-highlight.min.js # prism.js
Golmote 2760ab5f 2017-09-09T11:37:24 Run gulp
Golmote 44010886 2017-09-09T11:28:31 Run gulp
Golmote 7f664260 2017-09-09T11:11:35 Line numbers plugin: Don't use inline-block on code, it would break the Coy theme.
Golmote 849f1d63 2017-09-09T11:07:02 Merge branch 'gh-pages' of https://github.com/VitaliyR/prism into VitaliyR-gh-pages # Conflicts: # plugins/line-numbers/index.html # plugins/line-numbers/prism-line-numbers.js
Jan S. (Milania1) 1a628b8d 2017-08-17T22:12:51 Add OpenCL language support
Jimmy Miller 5400af9e 2017-07-20T15:31:14 Added a default for classMap. Fixes #1137. (#1157) When the classMap is accessed, it is undefined, causing this look up to fail. Defaulting it to an empty object provides the right logic. https://github.com/PrismJS/prism/blob/16ce4b336d625e13065bfc12ab6d13ac862d6f50/plugins/custom-class/prism-custom-class.js#L25
bsmith 98867cf0 2017-05-29T15:28:00 initial commit
Golmote 88300817 2017-05-08T13:26:16 VB.Net: Add example + tests + fix regexps
Golmote 6df2cebc 2017-05-08T11:45:31 Keep markup plugin: Store highlightedCode after reinserting markup. Fix #1127
Andreas Rohner 224fdb8a 2017-02-13T18:47:14 Avoid conflict between line-highlight and other plugins The line-highlight plugin should not overwrite env.code, because other plugins (e.g. normalize-whitespace) might have modified it.
Andreas Rohner 79b723dc 2017-02-13T17:37:43 Cleanup left-over line-highlight tags before other plugins run The tags used by the line-highlight plugin are appended to the <code> tag. This causes problems with the autoloader plugin, because the tags contain whitespace and therefore change the content of the <code> tag. This patch fixes the issue #1101, by removing any line-highlight tags with the `before-sanity-check` hook.
Andreas Rohner 6c7dae20 2017-02-11T01:09:09 Add Node.js support for the normalize-whitespace plugin
Andreas Rohner 867c11da 2017-02-10T14:01:10 Fix path to deleted example file
Golmote d6e068aa 2017-01-28T10:36:10 Run gulp
Diego Islas Ocampo f50027cc 2016-12-29T11:16:31 Update Ren'py language definition
Rob Wu 17e33bc0 2016-11-20T12:52:54 Reduce risk of XSS (#1051) * Skip non-own properties of env.attributes Use `Object.keys` instead of a for-in loop to find optional attributes. The former only grabs keys that are own properties, the latter also includes inherit properties from `Object.prototype`. This reduces the risk of XSS if an attacker somehow manages to manipulate the prototype chain of the Object prototype. * Fix root cause of XSS in autolinker plugin #1054 * command-line plugin: Safely encode attributes If an attacker has control over the values of the attributes "data-prompt", "data-user", or "data-host", then XSS was possible. This fixes the issue, by encoding quotes as the `&quot;` entity. * show-language plugin: innerHTML -> textContent There is no need for `innerHTML` here. At best nothing happens, at worst XSS is possible (though the odds are negligible since the attacker would have to control the detected language). * toolbar plugin: innerHTML -> textContent
Golmote 02514710 2016-11-19T12:18:05 Run gulp
Golmote 3cae6ce8 2016-11-19T12:16:31 Add support for Reason. Fix #1046
James DiGioia 07b81ac7 2016-11-08T20:08:49 Plugins: Toolbar & Copy to Clipboard (#891) * Add prism-toolbar plugin This plugin exposes a `registerButton` method, which other plugins can use to add buttons to the toolbar. Comes with styles. * Add demo file for toolbar plugin Registers a "Hello World!" tag with the toolbar. * Make `toolbar.registerButton` polymorphic This allows developers to provide either a callback or an object with a `text` string and an optional `onClick` function to create a new button. * Add Toolbar & Copy to Clipboard to components.js * Add Copy to Clipboard plugin * Switch `innerHTML` to `textContent` This ensures additional HTML can't be passed to the toolbar via the `text` property, ensuring a consistent display for the buttons. * Use `call` to bind `this` to the `onClick` method This provides access to the clicked element, which is what `this` is usually bound to on event listeners. * Add hover animation to toolbar * Add drop shadow to toolbar buttons * Add `clipboard` to `optionalDependencies` This will install Clipboard.js when installing from `npm`, but won't fail the build if the installation of Clipboard.js fails. * Load Clipboard.js from CDN if not present * Display plugin code using data-src * Recompile prism-toolbar * Update Show Languages to be a Toolbar button Show Languages now registers a callback with the toolbar plugin to return an element with the language in it. * Add basic HTML API & documentation The Toolbar will now be able to read a `data-label` attribute and add it to the code snippet. * Switch a -> button when only providing onClick Also adds a `url` property which creats an anchor tag and sets the href. Adds some styles to override the button defaults. * Add support for data-url to create anchor tag This allows the HTML API to create links in the Toolbar. * Update toolbar to allow order controlled via HTML Uses a data-attribute on the `body` tag to update the order, should the user choose to do so. * Allow template element to provide content to label This provides one of several options a user can implement in order to get a custom button. Also fixes some bugs in the documentation. * Fix bug when combined with the autoloader plugin The autoloader will rehighlight the element after the language arrives. This means the complete hook can run multiple times. Without a check, multiple toolbars can get added to an element.
thesave dfc19413 2016-11-09T01:57:46 Add support for the Jolie language (#1014) * Added component for the Jolie language * Added Jolie among the supported components * update for merge - revised jolie component - added tests - added code example - minified with `gulp` * fixes * fixes * fixed Jolie html file example and highlight for punctuation * fixed indentation in test html file and added comma as punctuation
Golmote a0bd686e 2016-09-30T19:53:42 Merge pull request #950 from dvkndn/gh-pages add plugin custom class name
Thien Do fa68f913 2016-09-28T15:07:19 Fix grammar in Readme
Masataka Kuwabara 22cb0187 2016-09-14T05:44:22 Fix typo `Fload` to `Float` in prism-ruby.js (#1023)
Golmote f89b0b96 2016-09-02T00:45:09 Autoloader plugin: don't try to load "none" component. Fix #1000
Golmote 86aa3d21 2016-09-01T23:43:11 Revert #998 + run normalize-whitespace and remove-initial-line-feed plugins in the before-sanity-check hook. Fix #1018 (see issue for discussion)
dvkndn cda106f9 2016-08-15T02:45:50 update min file and reverse core
dvkndn e9355cc4 2016-08-15T02:43:09 add prefix feature for custom class plugin
dvkndn 820c7b79 2016-08-14T22:53:33 Merge branch 'gh-pages' of https://github.com/PrismJS/prism into gh-pages
Dima Fitiskin 8ddcc964 2016-08-11T12:42:28 Fix removing line-numbers class form code. It removes space between other classes in code.
Dima Fitiskin 1cd81ff8 2016-08-11T12:39:49 Store data attributes in unescaped markup plugin. For example data-start for line-numbers plugin.
Valtteri Laitinen 5e568330 2016-07-19T18:20:18 Remove unneeded prefixed CSS (#989) This PR removes – prefixed `linear-gradient` – prefixed `box-shadow` – prefixed `border-radius` – prefixed `opacity` + legacy IE alternatives – `-moz-transition` (http://caniuse.com/css-transitions)
Golmote bdca61bf 2016-07-14T12:01:52 Merge pull request #996 from Golmote/data-uri-highlight Data-URI Highlight plugin Fix #485
Golmote 1b19ff08 2016-07-14T11:31:41 Fix WPD plugin's page
Golmote 26267281 2016-07-14T11:27:02 Fix WPD at-rule detection + don't process if language is not handled + fix plugin's page
Golmote b6ab75b6 2016-07-11T07:56:02 Comment are not candidates for data-uri highlight plugin
Golmote e5587a76 2016-07-10T14:14:50 Added aria-hidden attributes on elements created by the Line Highlight and Line Numbers plugins. Fixes #574.
Golmote 5f1b3826 2016-07-10T13:56:08 Data-URI Highlight plugin
Golmote 2b0cc8ab 2016-07-04T21:06:44 Xojo does not need to require Basic
Golmote 5e62f023 2016-07-04T20:13:26 Add support for Xojo. Fix #898
Golmote 5c815d35 2016-07-04T08:59:15 Add progress indicator on "Download all grammars" link on Autoloader plugin page
Golmote 0d0a0071 2016-07-04T08:46:47 Merge pull request #981 from Golmote/autoloader-download-all Download all grammars as a Zip directly from the Autoloader plugin page. Fix #960
Golmote 96719967 2016-07-03T23:43:37 Remove duplicated script on autoloader plugin page
Andreas Rohner 3780571b 2016-07-03T11:59:59 Remove IE8 plugin
Golmote 9c5ffb5e 2016-06-27T01:26:39 Merge remote-tracking branch 'official/gh-pages' into prism-livescript Conflicts: plugins/show-language/prism-show-language.js plugins/show-language/prism-show-language.min.js
Golmote be6219a8 2016-06-27T01:21:50 Merge pull request #980 from Golmote/prism-properties Add support for .properties files