Socket
Socket
Sign inDemoInstall

prismjs

Package Overview
Dependencies
0
Maintainers
8
Versions
37
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
Previous123

1.5.1

Diff

Changelog

Source

1.5.1 (2016-06-05)

Updated components

Other changes

leaverou
published 1.5.0 •

Changelog

Source

1.5.0 (2016-05-01)

New components

Updated components

  • Keep Markup:
    • Fix Keep Markup plugin incorrect highlighting (#880) [24841ef]
  • Groovy Language:
    • Fix double HTML-encoding bug in Groovy language [24a0936]
  • Java Language:
  • SAS Language:
    • Add missing keywords for SAS (#922)
  • YAML Language:
    • fix hilighting of YAML keys on first line of code block (#943) [f19db81]
  • C# Language:
    • Support for generic methods in csharp [6f75735]

New plugins

Other changes

  • Add JSPM support [ad048ab]
  • update linear-gradient syntax from left to to right [cd234dc]
  • Add after-property to allow ordering of plugins [224b7a1]
  • Partial solution for the "Comment-like substrings"-problem [2705c50]
  • Add property 'aliasTitles' to components.js [54400fb]
  • Add before-highlightall hook [70a8602]
  • Fix catastrophic backtracking regex issues in JavaScript [ab65be2]
leaverou
published 1.4.1 •

Changelog

Source

1.4.1 (2016-02-03)

Other changes

  • Fix DFS bug in Prism core [b86c727]
leaverou
published 1.3.0 •

Changelog

Source

1.3.0 (2015-10-26)

New components

Updated components

  • C:
    • Highlight directives in preprocessor lines (#801) [ad316a3]
  • C#:
  • F#:
    • Highlight directives in preprocessor lines (#801) [ad316a3]
  • JavaScript:
  • Python:
    • Highlight triple-quoted strings before comments. Fix #815 [90fbf0b]

New plugins

Other changes

  • Increase mocha's timeout [f1c41db]
  • Prevent most errors in IE8. Fix #9 [9652d75]
  • Add U.S. Web Design Standards on homepage. Fix #785 [e10d48b, 79ebbf8, 2f7088d]
  • Added gulp task to autolink PRs and commits in changelog [5ec4e4d]
  • Use child processes to run each set of tests, in order to deal with the memory leak in vm.runInNewContext() [9a4b6fa]
leaverou
published 1.2.0 •

Changelog

Source

1.2.0 (2015-10-07)

New components

Updated components

  • ASP.NET:
    • Simplified pattern for <script> [29643f4]
  • Bash:
  • CSS:
    • Simplified pattern for <style> [29643f4]
  • JavaScript:
    • Simplified pattern for <script> [29643f4]

New plugins

Updated plugins

  • Previewer: Color

    • Add support for Sass variables [3a1fb04]
  • Previewer: Easing

    • Add support for Sass variables [7c7ab4e]

Other changes

  • Test runner: Allow to run tests for only some languages [5ade8a5]
  • Download page: Fixed wrong components order raising error in generated file (#797) [7a6aed8]
leaverou
published 1.1.0 •

Changelog

Source

1.1.0 (2015-10-04)

New components

Updated components

  • Bash:
  • C:
  • C-like:
    • Add word boundary before class-name prefixes [aa757f6]
    • Improved operator regex + add != and !== [135ee9d]
    • Optimized string regexp [792e35c]
  • F#:
    • Fixed keywords containing exclamation mark [09f2005]
    • Improved string pattern [0101c89]
    • Insert preprocessor before keyword + don't allow line feeds before # [fdc9477]
    • Fixed numbers [0aa0791]
  • Gherkin:
    • Don't allow spaces in tags [48ff8b7]
    • Handle \r\n and \r + allow feature alone + don't match blank td/th [ce1ec3b]
  • Git:
  • Go:
    • Improved operator regexp + removed punctuation from it [776ab90]
  • Haml:
    • Combine both multiline-comment regexps + handle \r\n and \r [f77b40b]
    • Handle \r\n and \r in filter regex [bbe68ac]
  • Handlebars:
    • Fix empty strings, add plus sign in exponential notation, improve block pattern and variable pattern [c477f9a]
    • Properly escape special replacement patterns ($) in Handlebars, PHP and Smarty. Fix #772 [895bf46]
  • Haskell:
    • Removed useless backslashes and parentheses + handle \r\n and \r + simplify number regexp + fix operator regexp [1cc8d8e]
  • HTTP:
    • Fix indentation + Add multiline flag for more flexibility + Fix response status + Handle \r\n and \r [aaa90f1]
  • Ini:
    • Fix some regexps + remove unused flags [53d5839]
  • Jade:
    • Add todo list + remove single-line comment pattern + simplified most patterns with m flag + handle \r\n and \r [a79e838]
  • Java:
    • Fix number regexp + simplified number regexp and optimized operator regexp [21e20b9]
  • JavaScript:
    • JavaScript: Allow for all non-ASCII characters in function names. Fix #400 [29e26dc]
  • JSX:
    • Allow for one level of nesting in scripts (Fix #717) [90c75d5]
  • Julia:
    • Simplify comment regexp + improved number regexp + improved operator regexp [bcac7d4]
  • Keyman:
    • Move header statements above keywords [23a444c]
  • LaTeX:
  • Less:
    • Remove useless part in property regexp [80d8260]
  • LOLCODE:
    • Removed useless parentheses [8147c9b]
  • Makefile:
    • Add known failures in example [e0f8984]
    • Handle \r\n in comments and strings + fix "-include" keyword
  • Markup:
    • Simplify patterns + handle \r\n and \r [4c551e8]
    • Don't allow = to appear in tag name [85d8a55]
    • Don't allow dot inside tag name [283691e]
  • MATLAB:
    • Simplify string pattern to remove lookbehind [a3cbecc]
  • NASM:
    • Converted indents to tabs, removed uneeded escapes, added lookbehinds [a92e4bd]
  • NSIS:
  • Objective-C:
    • Simplified regexps + fix strings + handle \r [1d33147]
    • Fix operator regexp [e9d382e]
  • Pascal:
  • Perl:
    • Simplified regexps + Made most string and regexp patterns multi-line + Added support for regexp's n flag + Added missing operators [71b00cc]
  • PHP:
    • Simplified patterns [f9d9452]
    • Properly escape special replacement patterns ($) in Handlebars, PHP and Smarty. Fix #772 [895bf46]
  • PHP Extras:
    • Fix $this regexp + improve global regexp [781fdad]
  • PowerShell:
    • Update definitions for command/alias/operators [14da55c]
  • Python:
    • Added async/await and @ operator (#656) [7f1ae75]
    • Added 'self' keyword and support for class names (#677) [d9d4ab2]
    • Simplified regexps + don't capture where unneeded + fixed operators [530f5f0]
  • R:
    • Fixed and simplified patterns [c20c3ec]
  • reST:
    • Simplified some patterns, fixed others, prevented blank comments to match, moved list-bullet down to prevent breaking quotes [e6c6b85]
  • Rip:
    • Fixed some regexp + moved down numbers [1093f7d]
  • Ruby:
    • Code cleaning, handle \r\n and \r, fix some regexps [dd4989f]
    • Add % notations for strings and regexps. Fix #590 [2d37800]
  • Rust:
    • Simplified patterns and fixed operators [6c8494f]
  • SAS:
    • Simplified datalines and optimized operator patterns [6ebb96f]
  • Sass:
    • Add missing require in components [35b8c50]
    • Fix comments, operators and selectors and simplified patterns [28759d0]
    • Highlight "-" as operator only if surrounded by spaces, in order to not break hyphenated values (e.g. "ease-in-out") [b2763e7]
  • Scala:
  • Scheme:
    • Add missing lookbehind on number pattern. Fix #702 [3120ff7]
    • Fixes and simplifications [068704a]
    • Don't match content of symbols starting with a parenthesis [fa7df08]
  • Scss:
    • Simplified patterns + fixed operators + don't match empty selectors [672c167]
  • Smalltalk:
  • Smarty:
    • Optimized regexps + fixed punctuation and operators [1446700]
    • Properly escape special replacement patterns ($) in Handlebars, PHP and Smarty. Fix #772 [895bf46]
  • SQL:
    • Simplified regexp + fixed keywords and operators + add CHARSET keyword [d49fec0]
  • Stylus:
    • Rewrote the component entirely [7729728]
  • Swift:
    • Optimized keywords lists and removed duplicates [936e429]
    • Add support for string interpolation. Fix #448 [89cd5d0]
  • Twig:
    • Prevent "other" pattern from matching blank strings [cae2cef]
    • Optimized regexps + fixed operators + added missing operators/keywords [2d8271f]
  • VHDL:
    • Move operator overloading before strings, don't capture if not needed, handle \r\n and \r, fix numbers [4533f17]
  • Wiki markup:
    • Fixed emphasis + merged some url patterns + added TODOs [8cf9e6a]
  • YAML:
    • Handled \r\n and \r, simplified some patterns, fixed "---" [9e33e0a]

New plugins

Updated plugins

  • Autolinker:
    • Don't process all grammars on load, process each one in before-highlight. Should fix #760 [a572495]
  • Line Highlight:
  • Line Numbers:
    • Run in complete hook [3f4d918]
    • Don't run if already exists [c89bbdb]
    • Don't run if block is empty. Fix #669 [ee463e8]
    • Correct calculation for number of lines (fix #385) [14f3f80]
    • Fix computation of line numbers for single-line code blocks. Fix #721 [02b220e]
    • Fixing word wrap on long code lines [56b3d29]
    • Fixing coy theme + line numbers plugin overflowing on long blocks of text (#762) [a0127eb]
  • Show Language:
    • Add gulp task to build languages map in Show language plugin (Fix #671) [39bd827]
    • Add reset styles to prevent bug in Coy theme (#703) [08dd500]

Other changes

  • Fixed link to David Peach article (#647) [3f679f8]
  • Added complete hook, which runs even when no grammar is found [e58b6c0, fd54995]
  • Added test suite runner (#588) [956cd85]
  • Added tests for every components
  • Added .gitattributes to prevent line ending changes in test files [45ca8c8]
  • Split plugins into 3 columns on Download page [a88936a]
  • Removed comment in components.js to make it easier to parse as JSON (#679) [2cb1326]
  • Updated README.md [1388256]
  • Updated documentation since the example was not relevant any more [80aedb2]
  • Fixed inline style for Coy theme [52829b3]
  • Prevent errors in nodeJS (#754) [9f5c93c, 0356c58]
  • Explicitly make the Worker close itself after highlighting, so that users have control on this behaviour when directly using Prism inside a Worker. Fix #492 [e42a228]
  • Added some language aliases: js for javascript, xml, html, mathml and svg for markup [2f9fe1e]
  • Download page: Add a "Select all" checkbox (#561) [9a9020b]
  • Download page: Don't add semicolon unless needed in generated code. Fix #273 [5a5eec5]
  • Add language counter on homepage [889cda5]
  • Improve performance by doing more work in the worker [1316abc]
  • Replace Typeplate with SitePoint on homepage. Fix #774 [0c54308]
  • Added basic .editorconfig [c48f55d]

charleshansen
published 0.0.1 •

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc