You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i would like to report bug related to Line Number plugin. i am not sure it is right place so feel free to close if it is not proper.
i can find the plugin author but i cannot find the right project about the plugin. and now the prism.js with the plugin can be downloaded at Prism Download page, therefore, i create a bug here.
download prism.js with line highlight and line number plugins; download prism.css
open example html say file:///path/to/xxx.html
bug 1: although we have linkable-line-numbers for the pre element, but we cannot click any line number to highlight the line and update the location hash (no event registered at init, need to manually change hash to e.g. #play.2 to trigger event registration).
open example html like file:///path/to/xxx.html#play.3
bug 2: the 3rd line is not highlighted at init
how to fix in minimized version: add /*bugfix*/var z=/#(\w+)\.([\d-,]+)/.exec(location.hash)||[];if(n.id===z[1]&&y(n, "line-numbers"))setTimeout(function(){l(n,z[2]||"1","temporary ")();u();});/*end*/ in Prism.hooks.add("complete", ...); it will fix bug 1 and bug 2.
Information:
Description
i would like to report bug related to Line Number plugin. i am not sure it is right place so feel free to close if it is not proper.
i can find the plugin author but i cannot find the right project about the plugin. and now the prism.js with the plugin can be downloaded at Prism Download page, therefore, i create a bug here.
prism.js
withline highlight
andline number
plugins; downloadprism.css
file:///path/to/xxx.html
linkable-line-numbers
for thepre
element, but we cannot click any line number to highlight the line and update the location hash (no event registered at init, need to manually change hash to e.g.#play.2
to trigger event registration).file:///path/to/xxx.html#play.3
Example
The text was updated successfully, but these errors were encountered: