Markdown formatting change: disable hard wraps for course content
Hardwraps or not, it was a recurring discussion where course staff prefers to have markdown content rendered according to the commonmark specification.
The biggest difference between commonmark and markdown rendering in WebLab was the use of hard wraps where every single line break within a paragraph gets rendered as new line (<br>
).This update changes markdown rendering for course content only to have hardwraps disabled:
Submitted by Elmer van Chastelet on 30 November 2021 at 08:02
- Markdown input for submissions and discussions is unchanged. Students are used to this, and, especially non-CS students, may prefer the WYSIWYG-approach.
- Course content include: Assignment/Question Texts, Multiple Choice alternatives, Check List items, Lecture Notes, Course description.
- Older course content from before 30 Nov 2021 is updated (when needed) to render equally with hard wraps disabled:
- If both markdown text renders equally with hard wraps enabled/disabled, don’t update the text. Else:
- Try adding 2 whitespaces at the end of almost each line (done conditionally). If it then renders equally, update the text. Else:
- Add
<!--ENABLE_HARDWRAPS-->\n\n
to enable individual texts to render with hard wraps enabled.