plugins/line-highlight/prism-line-highlight.js


Log

Author Commit Date CI Message
Manuel Tercero Soria 9f4c0e74 2021-09-23T13:43:00 Highlight Lines: Expose `highlightLines` function as `Prism.plugins.highlightLines` (#3086)
Ben Kucera e289ec60 2021-08-03T11:49:00 Line Highlight: Extend highlight to full line width inside scroll container (#3011)
Michael Schmidt 18a00828 2021-06-13T19:53:03 ESLint: Added regexp plugin (#2924)
Michael Schmidt 74edb4e5 2021-05-14T12:40:12 ESLint: Added indent rule (#2881)
Michael Schmidt 80d475e4 2021-04-18T16:14:33 ESLint: Added no-use-before-define rule (#2866)
Michael Schmidt 158011e4 2021-04-18T15:55:05 ESLint: Added wrap-iife rule (#2867)
Michael Schmidt b03e7eb0 2021-04-17T22:30:39 ESLint: Added semi rule (#2836)
Michael Schmidt 96335642 2021-03-21T17:22:54 Plugins: Consistent Prism check (#2788)
Michael Schmidt ccc73ab7 2021-02-07T14:52:25 Line Highlight: Fixed linkable line numbers not being initialized (#2732)
Michael Schmidt b40f8f4b 2020-12-23T14:54:50 Line highlight: Fixed top offset in combination with Line numbers (#2237)
Michael Schmidt eb82e804 2020-05-07T21:35:08 Line Highlight: Added linkable line numbers (#2328) This makes individual line numbers clickable creating a link to that specific line for that specific code block.
Matt Chaffe 632ce00c 2019-05-07T23:21:49 Line highlight: Batching DOM read/writes to avoid reflows (#1865) This batches DOM read and write operation to avoid reflows resulting for better performance.
Golmote 3842a914 2017-12-05T21:19:20 Line Highlight: Don't wait for the Line numbers plugin to load if the element does not have the line-numbers class
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 25788eb5 2017-09-09T12:05:55 Merge branch 'RemoveIE8' of https://github.com/zeitgeist87/prism into zeitgeist87-RemoveIE8 # Conflicts: # components/prism-core.js # components/prism-core.min.js # plugins/line-highlight/prism-line-highlight.js # plugins/line-highlight/prism-line-highlight.min.js # prism.js
Andreas Rohner 224fdb8a 2017-02-13T18:47:14 Avoid conflict between line-highlight and other plugins The line-highlight plugin should not overwrite env.code, because other plugins (e.g. normalize-whitespace) might have modified it.
Andreas Rohner 79b723dc 2017-02-13T17:37:43 Cleanup left-over line-highlight tags before other plugins run The tags used by the line-highlight plugin are appended to the <code> tag. This causes problems with the autoloader plugin, because the tags contain whitespace and therefore change the content of the <code> tag. This patch fixes the issue #1101, by removing any line-highlight tags with the `before-sanity-check` hook.
Golmote e5587a76 2016-07-10T14:14:50 Added aria-hidden attributes on elements created by the Line Highlight and Line Numbers plugins. Fixes #574.
Andreas Rohner 3780571b 2016-07-03T11:59:59 Remove IE8 plugin
Golmote 9652d752 2015-10-13T21:39:58 Add some missing checks to prevent errors in IE8. Fix #9
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 8ed7ce3a 2015-08-18T19:57:17 Test for rounded line-height to fix positions in Line Highlight plugin
Ryan Zec cba03451 2015-08-15T05:03:55 changed parseFloat to parseInt to prevent some inconsistency issue with different font sizes
Fernando San Julián f237e67b 2015-08-09T03:21:30 run line highlight plugin in complete hook
Logan Franken e22af8b4 2015-06-20T18:44:16 Removed '\r' from line highlight new line spacing logic
ryanzec d75310c8 2013-09-18T10:47:31 Update prism-line-highlight.js Making updates that allow this plugin to work with the line-numbers plugin
Lea Verou 10477deb 2012-07-30T18:08:18 Updated line highlight plugin
Lea Verou f15a012b 2012-07-16T19:19:22 Line highlight plugin: Fixed bug where linking to code snippets without existing line highlights resulted in visual mess
Lea Verou ab8b7756 2012-07-16T19:06:58 Line highlight plugin: Fixed bug where linking to multiple ranges scrolled to the last one
Lea Verou 92f446fa 2012-07-16T18:56:40 Line linking
Lea Verou 21b6ea19 2012-07-16T14:47:45 Prevent line highlight plugin from interferring with text selection
Lea Verou f2339ea1 2012-07-15T22:36:05 Added line highlight plugin