Commit Graph

11 Commits

Author SHA1 Message Date
Michael Schmidt de79636a8a
Website: Moved remaining vendor files into `vendor` folder (#2829) 2021-05-01 14:57:39 +02:00
Michael Schmidt 91fdd0b192
Website: New assets directory for all web-only files (#2180) 2020-06-28 01:58:55 +02:00
Michael Schmidt cdfa60acbd
Added plugin descriptions to plugin list (#2076)
This adds plugin descriptions to the plugin lists on the website.
2019-09-30 19:43:33 +02:00
Michael Schmidt 439ea1ee9a
Added scripts directory (#1781)
This adds a new `scripts` directory for all scripts used exclusively by the prismjs.com website.
2019-03-11 00:32:45 +01:00
Valtteri Laitinen d95f8fb48e Use rel="icon" instead of rel="shortcut icon" (#1398) 2018-04-22 14:55:38 +02:00
Valtteri Laitinen 95146c8fc4 Use HTTPS / canonical URLs (#1390)
Also, remove the broken link in `/index.html`.
2018-04-17 00:28:42 +02:00
Andreas Rohner 6c7dae20f9 Add Node.js support for the normalize-whitespace plugin 2017-02-11 01:16:04 +01:00
Andreas Rohner 9385c54f5f Add class that disables the normalize whitespace plugin 2016-06-05 07:14:20 +02:00
Andreas Rohner f1c719945d Cleanup normalize-whitespace and improve keep-markup integration
This patch removes the misleading references to the parse-settings
plugin from the normalize-whitespace documentation and adds a
description for all supported operations.

The keep-markup plugin sets the property Prism.plugins.KeepMarkup
to allow the normalize-whitespace plugin to optimize its
operation.

Furthermore, the normalize-whitespace plugin makes sure, that it
is the first plugin to run on a particular code block.
2016-02-12 10:53:38 +01:00
Andreas Rohner 6880b3c1c7 Preserve Markup in Normalize-Whitespace plugin
Since the Normalize-Whitespace plugin is only concerned with
whitespace, it is easy to preserve the markup for other plugins
like keep-markup.
2016-02-10 11:17:16 +01:00
Andreas Rohner e86ec01f89 Add whitespace-normalizer plugin
This plugin normalizes whitespace in code blocks. It can perform
various operations. The user can configure them through the plugin
object located at Prism.plugins.NormalizeWhitespace.

Prism.plugins.NormalizeWhitespace.setDefaults({
	'remove-trailing': true,
	'remove-indent': true,
	'left-trim': true,
	'right-trim': true,
	/*'indent': 2,
	'remove-initial-line-feed': false,
	'tabs-to-spaces': 4,
	'spaces-to-tabs': 4*/
});

The plugin can be disabled for certain code blocks, by adding the
class "no-whitespace-normalization" to it.

There is also a HTML-interface using the parse-settings plugin.
2016-01-07 10:39:37 +01:00