plugins


Log

Author Commit Date CI Message
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
Golmote 9cfc8cb2 2016-06-18T19:39:36 Add support for LiveScript
Golmote 4a3cdfee 2016-06-18T15:45:25 Add a way to download all grammars as a Zip directly from the Autoloader plugin page
Golmote b4f34239 2016-06-18T15:01:08 Add a couple more details on how to use the Autoloader plugin
Golmote 2607dcd9 2016-06-18T14:46:44 Add support for .properties files
Golmote bfb559bf 2016-06-11T01:17:24 Add support for GraphQL
Andreas Rohner 9385c54f 2016-06-05T07:14:20 Add class that disables the normalize whitespace plugin
Scott McKee e6c34988 2016-05-12T14:13:30 Fixed monospace typo The original value was "monoscpace," and I changed it to "monospace."
thien 863f5f18 2016-05-06T21:17:47 add plugin custom class name
Andreas Rohner 21dd0d14 2016-02-15T23:08:24 Use a HTML-comment to escape code
Andreas Rohner 9cbf9d77 2016-04-30T12:04:06 Update auto-generated values in the autoloader plugin The auotloader plugin contains a variable that is auto-generated by gulp. This variable was updated by the addition of the new language protobuf.
Andreas Rohner f081b905 2016-04-29T16:39:46 Rename proto language into protobuf and add it to components.js
Dave Wasmer cd234dcd 2016-03-08T19:26:52 update linear-gradient syntax from `left` to `to right`
Andreas Rohner 8cf72b33 2016-02-26T10:20:41 Remove the force-to-the-top hack for normalize-whitespace
Andreas Rohner 54400fba 2016-02-17T15:26:01 Add property 'aliasTitles' to components.js This is necessary, because a language that has a lot of aliases like markup (HTML, SVG, XML, MathML), is only added to the languageMap once as "Markup". So any plugin that depends on the languageMap is limited by that. This patch allows the definition of additional titles for languages, depending on the alias that is used.
Lea Verou e29cbe1c 2016-02-15T15:47:48 [unescaped markup] Fix small issues @zeitgeist87 pointed out
Lea Verou ad30c323 2016-02-14T21:25:57 [unescaped markup] Fixed bug with escaped </script>
Lea Verou 07d77e53 2016-02-14T21:08:34 Added unescaped markup plugin (hidden)
Andreas Rohner 99c30e4e 2016-02-12T11:03:08 Add missing prism.js to the documentation of normalize-whitespace
Andreas Rohner f1c71994 2016-02-12T10:53:38 Cleanup normalize-whitespace and improve keep-markup integration This patch removes the misleading references to the parse-settings plugin from the normalize-whitespace documentation and adds a description for all supported operations. The keep-markup plugin sets the property Prism.plugins.KeepMarkup to allow the normalize-whitespace plugin to optimize its operation. Furthermore, the normalize-whitespace plugin makes sure, that it is the first plugin to run on a particular code block.
Andreas Rohner 6880b3c1 2016-02-10T11:08:44 Preserve Markup in Normalize-Whitespace plugin Since the Normalize-Whitespace plugin is only concerned with whitespace, it is easy to preserve the markup for other plugins like keep-markup.
Andreas Rohner eb68eb83 2016-02-07T18:53:04 Update CHANGELOG and run gulp
Lea Verou 8f79f3b3 2016-02-06T16:36:30 Merge pull request #880 from montogeek/gh-pages Fix Keep Markup plugin incorrect highlighting
Fernando Montoya 24841ef3 2016-02-06T16:21:04 Removed firstWhiteSpaces code
Lea Verou ef533229 2016-02-06T15:06:29 Merge pull request #847 from zeitgeist87/WhitespaceNormalizer Whitespace normalizer plugin
Andreas Rohner 38b7b3b6 2016-02-06T15:49:01 Add support for automatic line breaks This patch adds support for automatic line breaks after a specific number of characters. The default is 80 characters, but it can be set to any number.
Fernando Montoya 704ba4f9 2016-02-06T00:02:15 Fix Keep Markup plugin incorrect highlighting
Andreas Rohner 05442d3e 2016-02-01T14:16:13 Add support for the space character for the show-invisibles plugin This patch adds a bit of position magic, so that the invisibles are displayed on top of the original character. This allows for the inclusion of the space character.
mAAdhaTTah c3cfb1fb 2016-01-30T14:46:38 Ensure show-invisibles compat with autoloader When using the autoloader, the language isn't loaded at the time the show-invisibles plugin attaches its extra tokens. This defers attaching the extra tokens to just before highlighting, so we ensure we're able to attach to the language grammar.
Lea Verou b184c269 2016-01-22T17:38:38 Merge pull request #830 from malcomio/sasslink link scss to webplatform wiki - fixes #829
Andreas Rohner e86ec01f 2016-01-07T10:39:37 Add whitespace-normalizer plugin This plugin normalizes whitespace in code blocks. It can perform various operations. The user can configure them through the plugin object located at Prism.plugins.NormalizeWhitespace. Prism.plugins.NormalizeWhitespace.setDefaults({ 'remove-trailing': true, 'remove-indent': true, 'left-trim': true, 'right-trim': true, /*'indent': 2, 'remove-initial-line-feed': false, 'tabs-to-spaces': 4, 'spaces-to-tabs': 4*/ }); The plugin can be disabled for certain code blocks, by adding the class "no-whitespace-normalization" to it. There is also a HTML-interface using the parse-settings plugin.
Lea Verou dfa52631 2016-01-02T14:33:53 Merge pull request #845 from chriswells0/command-line Remove the need for an "output" class.
Andreas Rohner 3656a085 2015-12-30T13:28:00 Remove unnecessary check for the existence of the addEventListener method All target browsers for Prism support this method now. The check is therefore obsolete.
Chris Wells 298dca59 2015-12-29T19:36:08 Remove the need for an "output" class.
Andreas Rohner a912063c 2015-12-30T00:56:38 Update auto-generated files and minified versions
Andreas Rohner bfd6b99e 2015-12-30T00:30:37 Merge pull request #831 from chriswells0/prism-shell Add support for Command Line highlighting
Andreas Rohner 9d6343a3 2015-12-30T00:16:24 Merge pull request #844 from chriswells0/file-highlight Defer File Highlight until the full DOM has loaded.
Chris Wells 6f995ef2 2015-12-29T17:44:06 Defer File Highlight until the full DOM has loaded.