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

On 7 May 2013 at 13:50 Elmer van Chastelet commented:

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).


On 7 May 2013 at 14:07 Eelco Visser commented:

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}}}])


On 11 May 2013 at 13:51 Elmer van Chastelet commented:

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.


On 11 May 2013 at 15:25 Elmer van Chastelet commented:

–relates to–> WebDSL issue #707: Update to faster markdown processor


On 6 March 2014 at 13:00 Elmer van Chastelet closed this issue.

Log in to post comments