-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix hljs highlighting for safari browser #11772
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
Conversation
A tried to change regexes to be |
3c77e25
to
2b1a69a
Compare
@@ -36,7 +36,7 @@ function highlightDotty(hljs) { | |||
function titleFor(name) { | |||
return { | |||
className: 'title', | |||
begin: `(?<=${name} )${id.source}` | |||
begin: `((?:${name} )(${id.source})` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing parenthesis?
I'm afraid this simple fix won't work. I have a test file in this repo that you can use.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There should be a better way of avoiding the look-behinds. I'll try some workarounds 🙂
Related discussion in hljs repo
Would you like to overtake that issue? |
I'll be glad to do it! I'll assign myself if that's ok with you |
No problem, thank you for your support :D I think we can close that PR since it's on my fork and it would be hard to cooperate, and when you are ready, you'll open a fresh new one. |
No description provided.