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

fix: Syntax highlighting with long lines and untar content with emojis #5098

Merged
merged 3 commits into from
Nov 15, 2022

Conversation

BrunoQuaresma
Copy link
Collaborator

Before:
Screen Shot 2022-11-15 at 16 27 03

Now:
Screen Shot 2022-11-15 at 16 26 38

Unfortunately there is a bug with "wrapping long lines" with the react-syntax-highlither. react-syntax-highlighter/react-syntax-highlighter#483

@BrunoQuaresma BrunoQuaresma requested a review from a team as a code owner November 15, 2022 19:28
@BrunoQuaresma BrunoQuaresma self-assigned this Nov 15, 2022
@BrunoQuaresma BrunoQuaresma requested review from presleyp and removed request for a team November 15, 2022 19:28
@@ -38,10 +36,9 @@ const setup = async () => {
describe("TemplateVersionPage", () => {
beforeEach(setup)

it("shows the tf and md files only", () => {
it("shows files", () => {
expect(screen.queryByText(TERRAFORM_FILENAME)).toBeInTheDocument()
expect(screen.queryByText(README_FILENAME)).toBeInTheDocument()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did we end up changing this test?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because now, the filtering happens inside of the "parsing" function. I made it to not have to parse 100 files to only get 2 of them after.

@BrunoQuaresma BrunoQuaresma enabled auto-merge (squash) November 15, 2022 20:05
@BrunoQuaresma BrunoQuaresma merged commit 2a46702 into main Nov 15, 2022
@BrunoQuaresma BrunoQuaresma deleted the bq/fix-syntax-highlight branch November 15, 2022 20:09
@github-actions github-actions bot locked and limited conversation to collaborators Nov 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants