Skip to content

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

Open
marcellamaki wants to merge 1 commit into
learningequality:hotfixesfrom
marcellamaki:fix-linebreaks
Open

update how linebreaks are saved so they render properly in perseus#5904
marcellamaki wants to merge 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?

@marcellamaki marcellamaki added this to the Studio: Patch Releases milestone May 26, 2026
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