Skip to content
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

[ENG-4080]Downgrade syntax highlighter to fix wrapLongLines issue #4368

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ElijahAhianyo
Copy link
Collaborator

ReactSyntaxHighligter v15.16.1 breaks the functionality of the wrap_long_line prop. Downgrading to 15.16.0 works.

Related upstream PR: react-syntax-highlighter/react-syntax-highlighter#487

@ElijahAhianyo ElijahAhianyo changed the title Downgrade syntax highlighter to fix wrapLongLines issue [ENG-4080]Downgrade syntax highlighter to fix wrapLongLines issue Nov 12, 2024
Copy link

linear bot commented Nov 12, 2024

@ElijahAhianyo ElijahAhianyo linked an issue Nov 12, 2024 that may be closed by this pull request
@adhami3310
Copy link
Member

How does ReactSyntaxHighligter v15.16.1 break it? i looked at the PR and it doesn't seem doing anything bad?

@ElijahAhianyo
Copy link
Collaborator Author

How does ReactSyntaxHighligter v15.16.1 break it? i looked at the PR and it doesn't seem doing anything bad?

That's what's not obvious to me. We don't, by default, set any css props, which should work the way it is. The referenced PR only swaps the order of args, so maybe a chain of reaction somewhere? I haven't dug into the reactsyntaxhighlighter codebase to to see what other parts may have been affected. Either way, Im not sure if this will require a fix from us than them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Code_block "wrap_long_lines" not working anymore
2 participants