What’s New in SnippetsLab 2.1

Jun 21, 2022

Major Update

  • Markdown Diagrams: Add Mermaid diagrams to Markdown snippets. All diagram types are supported, including flowchart, pie chart, sequence diagram, state diagram, class diagram, and more.

  • Automatic Language Detection: Automatically detect language when pasting code, covering 50 of the most popular languages.

  • Syntax Highlighting: Syntax highlighting for over 50 new languages, with improvements to more than 100 existing languages.

Improvements

  • Added the ability to pin snippets to the top.

  • Improved scroll synchronization in Markdown preview.

  • Substantially improved syntax highlighting performance.

  • Markdown preview now correctly nests code blocks under other block-level elements.

  • Newlines in Markdown are now rendered as line breaks, akin to GitHub-flavored Markdown.

  • Added new import formats including JSON and Quiver library, notebook, and notes.

  • JSON and XML exports now contains all library data, including UUID and folder hierarchy.

  • Added an option to hide snippets in subfolders from the snippets list.

Resolved Issues

  • Corrected column count to accurately account for emojis.

  • PHP highlighting in Markdown no longer requires an opening tag (<?php or <?).

  • Fixed performance issues when rendering preview for large Markdown snippets.

  • Fixed inconsistent vertical spacing in Markdown preview (theme reload required for the fix to take effect).

  • Fixed an issue where refetching gists might not show the latest results due to caching.

  • Fixed an issue that may cause the current-line highlight to draw incorrectly with discontiguous selections.

  • Resolved UI distortions in the editor if the window layout changes during scrolling.

  • Other miscellaneous bug fixes.