Michael Schmidt
11c54624ee
Use terser ( #3407 )
2022-03-22 22:32:52 +01:00
Michael Schmidt
d63d6c0e78
Added minified CSS ( #3073 )
...
Co-authored-by: ashwinjayan <ashwinjayanam@gmail.com>
2021-10-04 14:06:12 +02:00
Michael Schmidt
e2630d890e
ESLint: Added `regexp/sort-alternatives` rule ( #3093 )
2021-09-26 11:52:18 +02:00
Wei Ting
c7b6a7f6a5
Previewers: Ensure popup is visible across themes ( #3080 )
2021-09-15 19:40:17 +02:00
Michael Schmidt
74edb4e5f6
ESLint: Added indent rule ( #2881 )
2021-05-14 12:40:12 +02:00
Michael Schmidt
de79636a8a
Website: Moved remaining vendor files into `vendor` folder ( #2829 )
2021-05-01 14:57:39 +02:00
Michael Schmidt
fd20dbe4a3
ESLint: Added spacing rules ( #2862 )
2021-05-01 14:53:38 +02:00
Michael Schmidt
cf7b0fd503
ESLint: Added JSDoc plugin ( #2869 )
2021-05-01 14:40:00 +02:00
Michael Schmidt
fbceba1f1a
ESLint: Re-enable no-cond-assign rule ( #2870 )
2021-05-01 14:34:07 +02:00
Michael Schmidt
9633564289
Plugins: Consistent Prism check ( #2788 )
2021-03-21 17:22:54 +01:00
Michael Schmidt
d298d46e13
Previewers: Use `classList` instead of `className` ( #2787 )
2021-03-17 11:13:07 +01:00
Michael Schmidt
e644178b8b
Added test for polynomial backtracking ( #2597 )
2020-12-28 18:19:11 +01:00
Michael Schmidt
8bba488020
Previewers: Fixed XSS ( #2506 )
2020-08-06 12:12: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
8403e4537b
Added Inline color plugin ( #2007 )
...
This adds a new plugin to display an inline preview of CSS colors as most IDEs do.
2019-09-03 19:06:15 +02:00
Michael Schmidt
66b44e3bfc
Travis: Fail when changed files are detected ( #1819 )
...
This adds a new check to the Travis CI config which will cause the build to fail if any files change (This usually indicates that the committer forgot to rebuild Prism.). To implement this, we also add the `package-lock.json` file.
2019-03-24 23:03:10 +01:00
Michael Schmidt
11d0f75eed
Applied Array.isArray ( #1804 )
...
This replaces all occurrences of `Prism.util.type(variable) {!==, ===} 'Array'` with an equivalent `Array.isArray` expression.
2019-03-14 13:17:45 +01: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
Michael Schmidt
3e00bb9c41
Rebuilt Prism ( #1794 )
...
This is a rebuilt of Prism to update minified files.
2019-03-07 15:22:30 +01:00
Michael Schmidt
b0d1823cfe
Clean up Previewers' page ( #1630 )
...
This PR makes some changes to the [Previewers plugin's page](https://prismjs.com/plugins/previewers/ ).
1. Format the code examples to look nicer.
2. Fix the example of the 'Disabling a previewer' section.
3. Highlight API snippets as JavaScript.
2018-12-01 15:24:31 -05:00
Michael Schmidt
4b56f3c1c8
Fixed Previewers bug #1496 ( #1497 )
...
The problem was a bug unique to Firefox which causes offsetTop of span.token
to always be 0 under certain conditions. It only occurred together with of the
line-number plugin because setting position: relative for the pre > code elements
triggers that FF bug.
The offset is now calculated using bounding boxes.
Tested in Chrome, Edge, IE, FF, and Opera.
Fixes #1496 .
2018-08-19 10:33:54 -04: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
Golmote
28e4b4c660
Previewers: New plugin combining previous plugins Previewer: Base, Previewer: Angle, Previewer: Color, Previewer: Easing, Previewer: Gradient and Previewer: Time. Fix #913 ( #1244 )
2018-01-16 08:48:08 +01:00