plugins/line-numbers/prism-line-numbers.js


Log

Author Commit Date CI Message
Michael Schmidt cf7b0fd5 2021-05-01T14:40:00 ESLint: Added JSDoc plugin (#2869)
Michael Schmidt 80d475e4 2021-04-18T16:14:33 ESLint: Added no-use-before-define rule (#2866)
Michael Schmidt 96335642 2021-03-21T17:22:54 Plugins: Consistent Prism check (#2788)
Michael Schmidt 7cdfe556 2020-10-24T17:54:14 Line numbers: Fixed null reference (#2605)
Michael Schmidt b96ed225 2020-06-28T15:40:01 Line Numbers: Improved resize performance (#2125)
Michael Schmidt a36e96ab 2020-06-27T00:01:47 Added general de/activation mechanism for plugins (#2434) Keep Markup, Line numbers, and Normalize whitespace now share the same per-element class-based de/activation logic.
Lynette 4b61661d 2020-04-29T18:04:08 Line numbers: Fixed TypeError when lineNumberWrapper is null (#2337) If a code block doesn't contain code, line numbers will not be added but the resize event still expected them to be there resulting in a TypeError.
Michael Schmidt 893f2a79 2020-04-07T17:27:26 Line numbers: Exposed `_resizeElement` function (#2288)
Michael Schmidt 14be7489 2019-03-10T18:56:59 Line numbers: Added inheritance for the `line-numbers` class (#1799) This adds inheritance for the `line-numbers` class for the Line numbers plugin similar to the inheritance of `language-xxxx` classes.
Michael Schmidt c9762c6f 2019-03-06T13:47:25 Better class name detection for plugins (#1772) This improves the class name regex of a few plugins to avoid false positives.
Vitaliy Ribachenko e63058f9 2017-12-05T22:16:35 Fixes to compatibility of line number and line higlight plugins (#1194) * Fix line breaks issues in line numbers plugin used with soft wraps option * Fix line highlight plugin compatibility issues with line number plugin * Revert rename data attribute for line numbers plugin * Fix compatibility issues with line highlight and line numbers
Golmote 3fb7cf81 2017-09-09T12:21:10 Merge branch 'gh-pages' of https://github.com/dfitiskin/prism into dfitiskin-gh-pages # Conflicts: # plugins/line-numbers/prism-line-numbers.js
Golmote 849f1d63 2017-09-09T11:07:02 Merge branch 'gh-pages' of https://github.com/VitaliyR/prism into VitaliyR-gh-pages # Conflicts: # plugins/line-numbers/index.html # plugins/line-numbers/prism-line-numbers.js
Dima Fitiskin 8ddcc964 2016-08-11T12:42:28 Fix removing line-numbers class form code. It removes space between other classes in code.
Golmote e5587a76 2016-07-10T14:14:50 Added aria-hidden attributes on elements created by the Line Highlight and Line Numbers plugins. Fixes #574.
Golmote 0356c58c 2015-09-03T19:09:48 Apply changes from #754 to all plugins so that none of them throw errors in node. Autolinker, Show invisibles and WPD can now be used with node. Removed unused minified CSS file. Also added missing space between attributes during wrapping.
Golmote 02b220e0 2015-08-26T19:46:48 Fix computation of line numbers for single-line code blocks. Fix #721
Golmote 14f3f80d 2015-08-17T08:28:57 Correct calculation for number of lines (manual merge, fix #385)
Golmote ee463e8e 2015-08-15T17:25:47 Line-numbers: Abort if element is empty. Fixex #669
Fernando San Julián c89bbdb1 2015-08-09T03:56:20 no line numbers if already exists
Fernando San Julián 3f4d9182 2015-08-09T00:07:08 run line numbers plugin in complete hook
Vitaliy Ribachenko ffae34cf 2015-06-11T19:56:17 Removed class name for soft wrap, made to determinate it automatically by white-space css attribute on the pre tag
Vitalii Rybachenko de289924 2015-05-26T13:22:58 Replaced innerText with textContent for supporting ff
Vitalii Rybachenko 8ebc48c5 2015-05-26T13:16:28 Moved lineHeight conditional inside forEach block
Vitaliy Ribachenko 8e0ebd5c 2015-05-25T15:32:11 Removed obsolette function
Vitaliy Ribachenko e05043f3 2015-05-25T15:26:10 Added support of soft wrap lines for line numbers plugin
Golmote 33bebfe7 2015-05-06T07:38:23 Line-numbers : accept CSS class on both <pre> and <code>. Fixes #568
Golmote c7992253 2015-03-31T07:47:32 Fixed implicitly declared variable
Jakub Korál 3d486c7a 2013-05-20T12:45:48 Line Numbers plugin Add Line Numbers plugin to components Usage, works when `line-numbers` class is present Optional: `data-start` for shifting the line-number counter