Prism plugins

Download

Prism is a lightweight, extensible syntax highlighter, built with modern web standards in mind. It’s used in millions of websites, including some of those you visit daily.

Theme:

Remove Initial Line Feed

Removes the initial line feed in code blocks.

How to use (DEPRECATED)

This plugin will be removed in the future. Please use the general purpose Normalize Whitespace plugin instead.

Obviously, this is supposed to work only for code blocks (<pre><code>) and not for inline code.

With this plugin included, any initial line feed will be removed by default.

To bypass this behavior, you may add the class keep-initial-line-feed to your desired <pre>.

Examples

Without adding the class


<div></div>

With the class added


<div></div>