Log

Author Commit Date CI Message
Lea Verou 9c1a9703 2016-02-26T14:49:06 Merge pull request #904 from zeitgeist87/order-components Add after-property to allow ordering of plugins
Andreas Rohner 224b7a15 2016-02-26T15:29:36 Add after-property to allow ordering of plugins Some plugins do not depend on each other and can be used independently, but if they are used at the same time, they have to be executed in a specific order. The "after"-property in components.js, allows the download page to concatenate the plugins in the right order, without enforcing a hard dependency.
Andreas Rohner 8cf72b33 2016-02-26T10:20:41 Remove the force-to-the-top hack for normalize-whitespace
Lea Verou 39e9e8d7 2016-02-25T23:55:16 Put Unescaped Markup above normalize whitespace in a futile attempt to get them to execute in the right order :/
Lea Verou 4b47a992 2016-02-25T23:51:01 Added Unescaped Markup to the list of components, since no bugs were found. We can always add features later.
Andreas Rohner 954c90a2 2016-02-20T21:01:45 Merge pull request #779 from zeitgeist87/gh-pages Partial solution for the "Comment-like substrings"-problem
Andreas Rohner 16f6f39f 2016-02-19T23:11:10 Remove direction-property from themes Remove direction-property from all themes, because it is incompatible with the EPUB-format. This was reported in issue #902.
Andreas Rohner c88036ca 2016-02-19T22:27:22 Add tests for new greedy-pattern feature and fix bug in Kotlin This patch adds tests for the new greedy-pattern feature and fixes a small bug in the Kotlin language, that resulted from that. It also cleans up some of the comments and refactors a few lines in the tokenloop.
Andreas Rohner 24a09361 2016-02-19T13:38:54 Fix double HTML-encoding bug in Groovy language
Andreas Rohner 90432f96 2016-02-18T01:22:40 Add comments to better document the greedy-pattern feature
Andreas Rohner 2705c509 2015-09-24T19:36:10 Partial solution for the "Comment-like substrings"-problem This patch introduces a new attribute called `greedy`. The attribute is a simple boolean flag. If there is no match for a greedy pattern it can concatenate the next two tokens into a single string and try to match on this string again. If a match is found on the second attempt, then the old tokens are deleted and replaced by the new match. This solves the "Comment-like substrings"-problem for exactly one comment at very little cost. With this patch the following code is highlighted correctly: "foo /* bar */ baz"; "foo // bar"; /lala"test"sdf/; This approach fails if there are more than one comments inside the string: "foo /* bar */ baz /* bar */ baz"; Signed-off-by: Andreas Rohner <andreas.rohner@gmx.net>
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)
Lea Verou af8da8ec 2016-02-14T21:08:14 Implemented @zeitgeist87’s suggestion in #890 re: env.elements
Lea Verou 49a3324b 2016-02-13T19:32:40 Merge pull request #890 from PrismJS/LeaVerou-patch-1 Add before-highlightall hook
Lea Verou eb2a8d86 2016-02-13T15:29:46 Changed weight in the header, as we’re now 2KB minified & gzipped. Also way overdue :)
Lea Verou fc3195b6 2016-02-13T15:26:22 Changed the text in the header. Way overdue, as Prism’s popularity has way surpassed that of Dabblet
Lea Verou 70a8602f 2016-02-13T15:21:28 Add before-highlightall hook Needed for unescaped markup plugin, as discussed in #887. Alternatively, we could reinstate @zeitgeist87’s PR about making the selector a config option. Thoughts?
Andreas Rohner c1e75bde 2016-02-12T23:23:25 Merge pull request #889 from zeitgeist87/FixRegexp Fix catastrophic backtracking regex issues
Andreas Rohner ab65be27 2016-02-12T21:32:19 Fix catastrophic backtracking regex issues
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.
Lea Verou e4c79228 2016-02-10T12:26:04 Merge pull request #884 from zeitgeist87/NormalizeWSKeepMarkupSupport Preserve Markup in Normalize-Whitespace plugin
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 97b0eb5a 2016-02-03T15:51:12 Hotfix Release 1.4.1
Andreas Rohner 6c4cf558 2016-02-03T15:45:54 Merge pull request #877 from zeitgeist87/DFS-fix Fix DFS bug
Andreas Rohner b86c727a 2016-02-03T15:25:26 Fix DFS bug The DFS function uses an object as a key into another object. This doesn't work, because the key gets stringified to "[object Object]" and is therefore useless.
Andreas Rohner 4562b18d 2016-02-03T14:06:01 Release 1.4.0
Andreas Rohner b9ded42e 2016-02-03T14:03:39 Fix Changelog
Andreas Rohner 1eee43a3 2016-02-03T13:59:17 Update Changelog
Andreas Rohner 9b596d38 2016-02-03T13:00:59 Merge pull request #876 from zeitgeist87/space-invisible Add support for the space character for the show-invisibles plugin
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.
Andreas Rohner 5b9bf72d 2016-02-01T14:06:51 Merge pull request #874 from mAAdhaTTah/autoloader-compat Ensure show-invisibles compat with autoloader
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 bcdd272b 2016-01-28T17:54:07 Merge pull request #872 from zeitgeist87/solarized Fix Solarized Light theme
Andreas Rohner a16c62a1 2016-01-28T15:05:13 Fix Solarized Light theme The official color palette is included as a CSS comment and every color used is named with a comment.
Andreas Rohner 0e87ff0a 2016-01-27T11:55:16 Add solarized light theme to the list of themes and update auto-generated files generated by gulp.
Andreas Rohner 661fa263 2016-01-27T11:51:53 Merge pull request #855 from hectormatos2011/gh-pages Solarized Light Theme for PrismJS
Andreas Rohner e6328289 2016-01-26T23:19:18 Merge pull request #870 from zeitgeist87/use-currentscript Use document.currentScript
Andreas Rohner 7fab7a2d 2016-01-26T23:16:06 Reverse merge of last PR and remove the 'data-selector' attribute.
Andreas Rohner fa987435 2016-01-26T23:10:45 Use document.currentScript instead of document.getElementsByTagName()
Lea Verou f78b703e 2016-01-26T18:33:05 Merge pull request #868 from zeitgeist87/element-selector Allow users to use their own element selector
Andreas Rohner 77c6ea17 2016-01-26T02:33:20 Allow users to use their own element selector Add the parameter 'data-selector' to the script tag, to allow users to set the selector used to query for code elements.
Lea Verou 6ba9183f 2016-01-24T15:57:48 Merge pull request #865 from zeitgeist87/fix-coy-theme Fix coy theme shadows
Andreas Rohner 3c7b92e6 2016-01-24T04:35:26 Merge pull request #864 from jordandanielewski/selection-prefix Add prefix for Firefox selection to Twilight theme
Andreas Rohner 58d2337d 2016-01-24T04:01:16 Fix coy theme shadows This patch removes max-height from the pre tag in the coy theme, because this height limitation is inconsistent with the other themes. The above change causes a bug in the shadows of the coy theme. Adding max-height: 13em to the ::before and ::after selector fixes the shadow bug.
Jordan Danielewski 6d547175 2016-01-24T02:46:45 Add prefix for Firefox selection and move prefixed rule first
Lea Verou 7501ceb8 2016-01-22T17:50:47 Merge pull request #863 from jordandanielewski/no-code-background No background for <code> in <pre>
Jordan Danielewski 36ddfb5a 2016-01-22T16:41:25 Don't add new rule
Lea Verou b184c269 2016-01-22T17:38:38 Merge pull request #830 from malcomio/sasslink link scss to webplatform wiki - fixes #829
Jordan Danielewski 8c310bcc 2016-01-22T15:00:59 No background for <code> in <pre>
Andreas Rohner fe318d83 2016-01-21T11:59:25 Add @media type for the max-height property in the coy theme, so that it is disabled for printouts.
Lea Verou 6a5c740e 2016-01-18T18:56:48 Merge pull request #857 from pra85/patch-1 Fixing to initial copyright year
Prayag Verma 69cbf7a2 2016-01-18T21:53:13 Fixing to initial copyright year According to http://www.copyright.gov/circs/circ01.pdf , listing the first year of publication in the copyright is enough
Andreas Rohner 1eb9a5fb 2016-01-17T13:56:32 Update auto-generated files
hectormatos2011 c70ee236 2016-01-16T20:53:04 Merge pull request #1 from hectormatos2011/hectormatos2011-solarizedlightcss New Theme for PrismJS - Solarized Light
hectormatos2011 35ac9921 2016-01-16T20:51:30 Highlight rules suck. I think these work. This is what happens when an iOS Dev tries his hand at CSS.
hectormatos2011 a5c8b676 2016-01-16T20:40:13 Add highlighting rule
hectormatos2011 70846ba9 2016-01-16T20:35:19 New Theme for PrismJS - Solarized Light I quite like the solarized themes - they are pretty accessible and a lot of work was done on created something that is easy on the eyes. I ported Solarized Light for PrismJS. It would be pretty cool if the solarized themes were included with PrismJS! However, after some research, I couldn't quite see any attribution rules so I provided a link to the original creator of the solarized formats in a comment at the top of the css file.
Andreas Rohner 3ebcb66e 2016-01-16T05:38:11 Merge pull request #854 from valtlait/patch-1 Simplify the “lang” regex
Valtteri Laitinen 417f54a1 2016-01-16T03:12:00 Simplify the “lang” regex Remove an useless (?!\*) part from the lang regex.
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.
Andreas Rohner cf7291e7 2016-01-05T19:09:28 Remove default option for JSON language
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 73b71357 2015-12-30T20:15:36 Merge pull request #846 from d10/fix-links Fix broken heading links.
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.
Benjamin Tan a7f9e620 2015-12-30T18:36:44 Fix broken heading links.
Lea Verou 106c8178 2015-12-30T10:32:08 Merge pull request #370 from CupOfTea696/gh-pages JSON Language
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.
CupOfTea696 ad2fcd01 2015-12-29T15:54:51 JSON Fixes
Lea Verou e0ce55d0 2015-12-29T10:57:33 Merge pull request #842 from vkbansal/vkbansal-patch-1 Better Nesting in JSX attributes
Vivek Kumar Bansal 971dda7f 2015-12-29T10:40:06 Better Nesting in JSX attributes Credit @jquense
Andreas Rohner d9b351f0 2015-12-27T11:03:43 Use the file-highlight plugin to load the example for the data-language attribute on the demo page of the show-language plugin. There is no need to include a whole copy of logo.svg on the example page.
Andreas Rohner 97d0f49a 2015-12-26T09:50:23 Update auto-generated files
Andreas Rohner 0808f111 2015-12-26T09:11:37 Merge pull request #837 from chriswells0/show-language Allow custom label without a language mapping.
Chris Wells 7e74aef4 2015-12-12T21:08:15 Allow custom label without a language mapping.
Lea Verou 292cebd2 2015-12-24T14:16:10 Merge pull request #841 from zeitgeist87/TestBranch Prevent infinite recursion in DFS
Lea Verou 9ca0c9b8 2015-12-24T14:13:28 Merge pull request #840 from nauzilus/show-language-cleanup Remove unnecessary data-language attribute from show-language
Andreas Rohner 02894e1e 2015-12-21T19:00:26 Prevent infinite recursion in DFS
Daniel Flint eb9a83c2 2015-12-17T21:02:26 The data-language attribute is no longer of any use, so remove it from the code. It was only applicable when using CSS pseudo elements to show the language name, which is no longer the case.
Lea Verou 2a21d565 2015-12-14T14:54:13 Merge pull request #836 from chriswells0/fix-title Fix incorrect page title.
Chris Wells 83789062 2015-11-29T20:27:14 Add Command Line plugin.
Chris Wells 544b56f0 2015-12-12T20:21:52 Fix incorrect page title.
Malcolm Young 08d979a0 2015-11-27T09:11:05 link scss to webplatform wiki - fixes #829
Golmote 05a2a15f 2015-10-28T22:51:49 Merge pull request #816 from darobin/inlines Revert white-space to normal when code is inline instead of in a pre
Robin Berjon 1a971b54 2015-10-28T10:21:41 revert white-space to normal when code is inline instead of in a pre
Golmote ad97b23b 2015-10-26T22:36:04 Release 1.3.0
Golmote 8784bf98 2015-10-26T22:34:58 Update changelog