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
Previous124Next

1.12.0

Diff

Changelog

Source

1.12.0 (2018-03-07)

New components

Updated components

  • Bash:
  • C#:
  • C-like:
    • Change order of comment patterns and make multi-line one greedy. Fix #1337 [b98e5b9]
  • NSIS:
  • PHP:
    • Add support for string interpolation inside double-quoted strings. Fix #1146 [9f1f8d6]
    • Add support for Heredoc and Nowdoc strings [5d7223c]
    • Fix shell-comment failure now that strings are greedy [ad25d22]
  • PowerShell:
    • Add support for two levels of nested brackets inside namespace pattern. Fixes #1317 [3bc3e9c]
  • Ruby:
    • Add keywords "protected", "private" and "public" [4593837]
  • Rust:
    • Add support for lifetime-annotation and => operator. Fix #1339 [926f6f8]
  • Scheme:
    • Don't highlight first number of a list as a function. Fix #1331 [51bff80]
  • SQL:
    • Add missing keywords and functions, fix numbers [de29d4a]

Updated plugins

  • Autolinker:
    • Allow more chars in query string and hash to match more URLs. Fix #1142 [109bd6f]
  • Copy to Clipboard:
  • Toolbar:
  • Unescaped Markup:
    • Use msMatchesSelector for IE11 and below. Fix #1302 [c246c1a]
  • WebPlatform Docs:

Other changes

  • Fix Autoloader's demo page [3dddac9]
  • Download page: Use hash instead of query-string for redownload URL. Fix #1263 [b03c02a]
  • Core: Don't thow an error if lookbehing is used without anything matching. [e0cd47f]
  • Docs: Fix link to the <code> element specification in HTML5 [a84263f]
  • Docs: Mention support for lang-xxxx class. Close #1312 [a9e76db]
  • Docs: Add note on async parameter to clarify the requirement of using a single bundled file. Closes #1249 [eba0235]
leaverou
published 1.11.0 •

Changelog

Source

1.11.0 (2018-02-05)

New components

Updated components

  • C++:
  • TypeScript:

Other changes

  • Fix passing of non-enumerable Error properties from the child test runner (#1276) [38df653]
leaverou
published 1.10.0 •

Changelog

Source

1.10.0 (2018-01-17)

New components

Updated components

Updated plugins

  • Autoloader:
  • Previewers:
    • New plugin combining previous plugins Previewer: Base, Previewer: Angle, Previewer: Color, Previewer: Easing, Previewer: Gradient and Previewer: Time. (#1244) [28e4b4c]
  • Unescaped Markup:

Other changes

leaverou
published 1.9.0 •

Changelog

Source

1.9.0 (2017-12-06)

New components

Updated components

Updated plugins

  • Copy to clipboard:
  • Line highlight:
  • Unescaped Markup:
    • Fix ambiguity in documentation by improving examples. Fix #1197 [924784a]

Other changes

  • Allow any element being root instead of document. (#1230) [69f2e2c, 6e50d44]
  • Coy Theme: The 'height' element makes code blocks the height of the browser canvas. (#1224) [ac219d7]
  • Download page: Fix implicitly declared variable [f986551]
  • Download page: Add version number at the beginning of the generated files. Fix #788 [928790d]
leaverou
published 1.8.4 •

Changelog

Source

1.8.4 (2017-11-05)

Updated components

  • ABAP:
  • ActionScript:
  • Ada:
  • Apacheconf:
  • APL:
  • AppleScript:
  • Arduino:
    • Don't use captures if not needed [16b338f]
  • ASP.NET:
  • AutoHotkey:
    • Regexp simplification + don't use captures if not needed [5edfd2f]
  • Bash:
    • Regexp optimisation and simplification [75b9b29]
  • Bro:
    • Regexp simplification + don't use captures if not needed [d4b9003]
  • C:
    • Regexp optimisation + don't use captures if not needed [f61d487]
  • C++:
    • Fix operator regexp + regexp simplification + don't use captures if not needed [ffeb26e]
  • C#:
    • Remove duplicates in keywords + regexp optimisation + don't use captures if not needed [d28d178]
  • C-like:
    • Regexp simplification + don't use captures if not needed [918e0ff]
  • CoffeeScript:
    • Regexp optimisation + don't use captures if not needed [5895978]
  • Crystal:
  • CSS:
    • Regexp simplification + don't use captures if not needed + handle multi-line style attributes [43d9f36]
  • CSS Extras:
  • D:
  • Dart:
  • Django:
  • Docker:
  • Eiffel:
  • Elixir:
    • Regexp optimisation + uniform behavior between ~r and ~s [5d12e80]
  • Erlang:
  • F#:
    • Regexp optimisation + don't use captures if not needed [7753fc4]
  • Gherkin:
    • Regexp optimisation + don't use captures if not needed + added explanation comment on table-body regexp [f26197a]
  • Git:
  • GLSL:
  • Go:
    • Regexp optimisation + don't use captures if not needed [88caabb]
  • GraphQL:
    • Regexp optimisation and simplification [2474f06]
  • Groovy:
    • Regexp optimisation + don't use captures if not needed [e74e00c]
  • Haml:
    • Regexp optimisation + don't use captures if not needed + fix typo in comment [23e3b43]
  • Handlebars:
    • Regexp optimisation + don't use captures if not needed [09dbfce]
  • Haskell:
    • Regexp simplification + don't use captures if not needed [f11390a]
  • HTTP:
    • Regexp simplification + don't use captures if not needed [37ef24e]
  • Icon:
  • J:
  • Java:
    • Don't use captures if not needed [96b35c8]
  • JavaScript:
    • Regexp optimisation + don't use captures if not needed [93d4002]
  • Jolie:
    • Regexp optimisation + don't use captures if not needed + remove duplicates in keywords [a491f9e]
  • JSON:
    • Make strings greedy, remove negative look-ahead for ":". Fix #1204 [98acd2d]
    • Regexp optimisation + don't use captures if not needed [8fc1b03]
  • JSX:
    • Regexp optimisation + handle spread operator as a whole [28de4e2]
  • Julia:
    • Regexp optimisation and simplification [12684c0]
  • Keyman:
    • Regexp optimisation + don't use captures if not needed [9726087]
  • Kotlin:
  • LaTeX:
    • Regexp optimisation and simplification [aa426b0]
  • LiveScript:
    • Make interpolated strings greedy + fix variable and identifier regexps [c581049]
  • LOLCODE:
    • Don't use captures if not needed [52903af]
  • Makefile:
  • Markdown:
    • Don't use captures if not needed [f489a1e]
  • Markup:
    • Regexp optimisation + fix punctuation inside attr-value [ea380c6]
  • MATLAB:
    • Make strings greedy + handle line feeds better [4cd4f01]
  • Monkey:
    • Don't use captures if not needed [7f47140]
  • N4JS:
    • Don't use captures if not needed [2d3f9df]
  • NASM:
    • Regexp optimisation and simplification + don't use captures if not needed [9937428]
  • nginx:
    • Remove trailing comma + remove duplicates in keywords [c6e7195]
  • NSIS:
    • Regexp optimisation + don't use captures if not needed [beeb107]
  • Objective-C:
    • Don't use captures if not needed [9be0f88]
  • OCaml:
  • OpenCL:
    • Don't use captures if not needed [5e70f1d]
  • Oz:
  • PARI/GP:
  • Parser:
  • Perl:
    • Regexp optimisation and simplification + don't use captures if not needed [0fe4cf6]
  • PHP:
    • Don't use captures if not needed Golmote [5235f18]
  • PHP Extras:
    • Add word boundary after global keywords + don't use captures if not needed [9049a2a]
  • PowerShell:
    • Regexp optimisation + don't use captures if not needed [0d05957]
  • Processing:
  • .properties:
  • Protocol Buffers:
    • Don't use captures if not needed [3e256d8]
  • Pug:
    • Don't use captures if not needed [76dc925]
  • Pure:
  • Python:
    • Add Python builtin function highlighting (#1205) [2169c99]
    • Python: Add highlighting to functions with space between name and parentheses (#1207) [3badd8a]
    • Make triple-quoted strings greedy + regexp optimisation and simplification [f09f9f5]
  • Qore:
  • R:
  • Reason:
    • Regexp optimisation + don't use capture if not needed [19d79b4]
  • Ren'py:
    • Make strings greedy + don't use captures if not needed [91d84d9]
  • reST:
    • Regexp simplification + don't use captures if not needed [1a8b3e9]
  • Rip:
  • Ruby:
    • Regexp optimisation and simplification + don't use captures if not needed [4902ed4]
  • Rust:
    • Regexp optimisation and simplification + don't use captures if not needed [cc9d874]
  • Sass:
    • Regexp simplification Golmote [165d957]
  • Scala:
    • Regexp optimisation Golmote [5f50c12]
  • Scheme:
  • SCSS:
  • Smalltalk:
  • Smarty:
    • Regexp optimisation and simplification [e169be9]
  • SQL:
  • Stylus:
  • Swift:
    • Don't use captures if not needed [a2d737a]
  • Tcl:
    • Regexp simplification + don't use captures if not needed [f0b8a33]
  • Textile:
    • Regexp optimisation + don't use captures if not needed [08139ad]
  • Twig:
    • Regexp optimisation and simplification + don't use captures if not needed [0b10fd0]
  • TypeScript:
    • Don't use captures if not needed [e296caf]
  • Verilog:
  • VHDL:
    • Regexp optimisation and simplification [7af36df]
  • vim:
    • Remove duplicates in keywords [700505e]
  • Wiki markup:
  • YAML:
    • Regexp optimisation + don't use captures if not needed [1fd690d]

Other changes

  • Remove comments spellcheck for AMP validation (#1106) [de996d7]
  • Prevent error from throwing when element does not have a parentNode in highlightElement. [c33be19]
  • Provide a way to load Prism from inside a Worker without listening to messages. (#1188) [d09982d]
leaverou
published 1.8.3 •

Changelog

Source

1.8.3 (2017-10-19)

Other changes

  • Fix inclusion tests for Pug [955c2ab]
leaverou
published 1.8.1 •

Changelog

Source

1.8.1 (2017-09-16)

Other changes

  • Add Arduino to components.js [290a3c6]
leaverou
published 1.8.0 •

Changelog

Source

1.8.0 (2017-09-16)

New components

Updated plugins

  • Autolinker:
    • Silently catch any error thrown by decodeURIComponent. Fixes #1186 [2e43fcf]
leaverou
published 1.7.0 •

Changelog

Source

1.7.0 (2017-09-09)

New components

Updated components

  • APL:
  • C:
  • C#:
    • Fix wrong highlighting when three slashes appear inside string. Fix #1091 [dfb6f17]
  • C-like:
    • Add support for unclosed block comments. Close #828 [3426ed1]
  • Crystal:
  • CSS Extras:
  • Docker:
  • Eiffel:
    • Add class-name highlighting for Eiffel (#471) [cd03587]
  • Handlebars:
    • Check for possible pre-existing marker strings in Handlebars [7a1a404]
  • JavaScript:
    • Properly match every operator as a whole token. Fix #1133 [9f649fb]
    • Allows uppercase prefixes in JS number literals (#1151) [d4ee904]
    • Reduced backtracking in regex pattern. Fix #1159 [ac09e97]
  • JSON:
    • Fix property and string patterns performance. Fix #1080 [0ca1353]
  • JSX:
    • JSX spread operator break. Fixes #1061 (#1094) [561bceb]
    • Fix highlighting of attributes containing spaces [867ea42]
    • Improved performance for tags (when not matching) Fix #1152 [b0fe103]
  • LOLCODE:
    • Make strings greedy Golmote [1a5e7a4]
  • Markup:
  • NSIS:
  • PHP:
    • Fix the PHP language (#1100) [1453fa7]
    • Check for possible pre-existing marker strings in PHP [36bc560]
  • Ruby:
  • Smarty:
    • Check for possible pre-existing marker strings in Smarty [5df26e2]
  • TypeScript:
  • YAML:

Updated plugins

  • Autolinker:
  • Custom Class:
    • Add missing noCSS property for the Custom Class plugin [ba64f8d]
    • Added a default for classMap. Fixes #1137. (#1157) [5400af9]
  • Keep Markup:
    • Store highlightedCode after reinserting markup. Fix #1127 [6df2ceb]
  • Line Highlight:
    • Cleanup left-over line-highlight tags before other plugins run [79b723d]
    • Avoid conflict between line-highlight and other plugins [224fdb8]
  • Line Numbers:
    • Support soft wrap for line numbers plugin (#584) [849f1d6]
    • Plugins fixes (unescaped-markup, line-numbers) (#1012) [3fb7cf8]
  • Normalize Whitespace:
    • Add Node.js support for the normalize-whitespace plugin [6c7dae2]
  • Unescaped Markup:
    • Plugins fixes (unescaped-markup, line-numbers) (#1012) [3fb7cf8]

Updated themes

  • Coy:

Other changes

  • Initial implementation of manual highlighting (#1087) [bafc4cb]
  • Remove dead link in Third-party tutorials section. Fixes #1028 [dffadc6]
  • Most languages now use the greedy flag for better highlighting [7549ecc]
  • .npmignore: Unignore components.js (#1108) [1f699e7]
  • Run before-highlight and after-highlight hooks even when no grammar is found. Fix #1134 [70cb472]
  • Replace [\w\W] with [\s\S] and [0-9] with \d in regexes (#1107) [8aa2cc4]
  • Fix corner cases for the greedy flag (#1095) [6530709]
  • Add Third Party Tutorial (#1156) [c34e57b]
  • Add Composer support (#648) [2989633]
  • Remove IE8 plugin (#992) [25788eb]
  • Website: remove width and height on logo.svg, so it becomes scalable. Close #1005 [0621ff7]
  • Remove yarn.lock (#1098) [11eed25]
leaverou
published 1.6.0 •

Changelog

Source

1.6.0 (2016-12-03)

New components

Updated components

  • APL:
  • AsciiDoc:
    • Optimized block regexps to prevent struggling on large files. Fixes #1001. [1a86d34]
  • Bash:
  • CSS:
  • CSS Extras:
    • Match attribute inside selectors [13fed76]
  • Groovy:
  • Ini:
  • JavaScript:
  • JSON:
    • JSON: Fixed issues with properties and strings + added tests. Fix #1025 [25a541d]
  • Markup:
    • Allow for dots in Markup tag names, but not in HTML tags included in Textile. Fixes #888. [31ea66b]
    • Make doctype case-insensitive (#1009) [3dd7219]
  • NSIS:
  • PHP:
  • PowerShell:
  • Puppet:
  • Ruby:
  • SCSS:
    • Alias statement as keyword. Fix #246 [fd09391]
    • Highlight variables inside selectors and properties. [d6b5c2f]
    • Highlight parent selector [8f5f1fa]
  • TypeScript:
    • Add missing from keyword to typescript & set ts as alias. (#1042) [cba78f3]

New plugins

Updated plugins

  • Autoloader:
    • Updated documentation for Autoloader plugin [b4f3423]
    • Download all grammars as a zip from Autoloader plugin page (#981) [0d0a007, 5c815d3]
    • Removed duplicated script on Autoloader plugin page [9671996]
    • Don't try to load "none" component. Fix #1000 [f89b0b9]
  • WPD:
    • Fix at-rule detection + don't process if language is not handled [2626728]

Other changes

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