PrismJS v1.7.0 Release Notes

Release Date: 2017-09-09 // over 6 years ago
  • ๐Ÿ†• 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:
      • Add dockerfile alias for docker language (#1164) [601c47f]
      • Update the list of keywords for dockerfiles (#1180) [f0d73e0]
    • 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:
      • Support HTML entities in attribute values (#1143) [1d5047d]
    • NSIS:
    • PHP:
      • Fix the PHP language (#1100) [1453fa7]
      • Check for possible pre-existing marker strings in PHP [36bc560]
    • ๐Ÿ’Ž Ruby:
      • Fix slash regex performance. Fix #1083 [a708730]
      • Add support for =begin =end comments. Manual merge of #1121. [62cdaf8]
    • Smarty:
      • Check for possible pre-existing marker strings in Smarty [5df26e2]
    • TypeScript:
    • YAML:

    โšก๏ธ Updated plugins

    • Autolinker:
      • Fixed an rendering issue for encoded urls (#1173) [abc007f]
    • 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]