RunestoneInteractive / rs

A New Monorepo structure for Runestone
Other
43 stars 69 forks source link

handle long parsons lines without wrap #548

Closed ascholerChemeketa closed 1 month ago

ascholerChemeketa commented 1 month ago

Currently, long code lines in Parsons get broken at whitespace. That is quite confusing where code is involved.

This prevents wrapping code in Parsons. Instead, if necessary, the text inside the block can be scrolled side to side to see the tail end of really long lines.

ascholerChemeketa commented 1 month ago

@bnmnetp I could see someone wanting line wrap for natural language. But for doing any kind of code, or even pseudocode, wrap feels really bad.

I could write the CSS to try to only affect known languages (preteprint lang-XXX applied), but that would miss pseudocode.

I think the lesser of two evils is to force people to manually manage linebreaks when authoring.

ascholerChemeketa commented 1 month ago

@ascholerChemeketa will check against math in sample book

ascholerChemeketa commented 1 month ago

Closing this ...

Found a deeper issue and am fixing that instead: https://github.com/RunestoneInteractive/rs/pull/551