-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(parser) Deprecate useBR
#2559
Comments
+1 |
This is not encouraged. I've changed this issue to "deprecate" and am closing it with 980832e. Removal is tracked in the v11 todolist. |
58/5000 |
From isagalaev in #2529:
Very early on we were perhaps a bit too open and allowed some things to slip into core that perhaps should not have - and today they are also things that could easily be handled with our new plugin API.
useBR
is a messy one for me, so I'm picking on it first. I think it's obvious the "best/blessed" path for using HLJS is with pre/code tags... that gives you the best chance of preserving your code in markup without doing ugly things like inserting HTML line breaks in it in the first place. Those who really need to use a different element and need to do<BR>
>\n
translate can simply use a plugin to accomplish the same thing in the future.useBR
useBR
Consider: You probably don't want a plugin at all and should consider just using CSS
white-space: pre
if you really need your code in tags other than<pre>
.Plugin:
The text was updated successfully, but these errors were encountered: