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've been using the Line Numbers plugin attached to my <body> as suggested in the documentation so I don't need to place this class into every single code block on my website, but recently I've needed to use the Command Line plugin and this is the output I have:
An option to disable the line-number plugin on a specific element would be nice.
Thanks
The text was updated successfully, but these errors were encountered:
Update: I'm currently using .hide-line-numbers .line-numbers-rows { display: none; } as a workaround, if someone is having this issue. Just place hide-line-numbers in your <pre> element.
We actually added a solution for this issue just a week ago with #2434.
You can disable Line numbers for any code element by adding a no-line-numbers class that is closer than the closest line-numbers class.
The line-numbers or no-line-numbers class will enable or disable the plugin for the whole subtree.
I'll quickly make a PR that updates the documentation.
Note: This feature is currently only available from the download page. If you're getting Prism from npm or any CDN, you'll have to wait until the next version.
I've been using the Line Numbers plugin attached to my
<body>
as suggested in the documentation so I don't need to place this class into every single code block on my website, but recently I've needed to use the Command Line plugin and this is the output I have:An option to disable the line-number plugin on a specific element would be nice.
Thanks
The text was updated successfully, but these errors were encountered: