Pre-formatted text in mardown/WikiText is garbled
Text on WebLab using markdown/WikiText is garbled when using pre-formatted code with indentation like this:
collect({a: "<x>"}, [{b: {a: 1, c: 2}, d: 3}, {f: 4, g: {h: {a: 5, c: 6}}}])
When wrapping this code in
pre
tags there is no problem.http://department.st.ewi.tudelft.nl/weblab/assignment/873
Perhaps a problem in the WebDSL version used? Did something change in the markdown engine?
Submitted by Eelco Visser on 7 May 2013 at 13:40
Issue Log
Can you add a screenshot?
Do you mean in the Solution tab? I don’t see any strange things atm (but I’m not allowed to input the solution tab, probably because I’m not enrolled).
I fixed it by replacing the indented text with pre tags. I have reproduced it by putting the following at the bottom of the assignment text:
Test
This is just to test the problem with formatting; not part of the assignment:
collect({a: "<x>"}, [{b: {a: 1, c: 2}, d: 3}, {f: 4, g: {h: {a: 5, c: 6}}}])
I just observed another sympton caused by this very issue. If wikitext contains indented code fragments, the page will load very slowly!
This is currently causing pages like webdsl.org, codefinder.org (fixed by now using pre tags instead), Spoofax issue 672 to take seconds to render.
Gtmetrix report (click history tab) for codefinder shows an incredible drop in page load time when I removed the code-indented reposearch logo from the homepage.
–relates to–> WebDSL issue #707: Update to faster markdown processor
Log in to post comments