Skip to content

update how linebreaks are saved so they render properly in perseus#5904

Merged
rtibbles merged 1 commit into
learningequality:hotfixesfrom
marcellamaki:fix-linebreaks
May 27, 2026
Merged

update how linebreaks are saved so they render properly in perseus#5904
rtibbles merged 1 commit into
learningequality:hotfixesfrom
marcellamaki:fix-linebreaks

Conversation

@marcellamaki
Copy link
Copy Markdown
Member

Summary

Addresses the second part of: #5894

(This was not a regression, thus we will put in our first patch release)

References

Fixes #5894

Screenshot 2026-05-13 at 11 22 37 AM

Reviewer guidance

  1. Confirm line breaks save and display properly on Studio -- in initial create and on save/edit
  2. export to kolibri
  3. confirm line breaks appear properly in ANSWER rendering

AI usage

I used claude to both identify the cause of the issue and implement the solution here

Copy link
Copy Markdown
Member

@rtibbles rtibbles left a comment

Choose a reason for hiding this comment

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

Just one question about the mocking in the tests.

}),
};
});
// Mock the whole module to avoid pulling in the ESM `marked` library in Jest.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I am a little confused here - what exactly are we testing if our markdown util is entirely mocked in this test?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

agreed -- this is not necessary and is LLM generated that I didn't evaluate properly. I've reverted to what it was before, and tests still pass

@rtibbles rtibbles merged commit 350fcf1 into learningequality:hotfixes May 27, 2026
13 checks passed
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.

2 participants