Closed FabienTregan closed 6 years ago
Could you raise an issue on Prism for this pls: https://github.com/PrismJS/prism/issues
Are you sure this is prism related and not our markdown renderer?
I made a quick test with latest version of prism. The output is less wrong than what we get, but still incorrect.
I am opening an issue on prism, but before it is corrected, some mentors may send comments with unreadable code without noticing (we do not enforece pressing preview before sending the comment, but even then people tend to press prview without atually reading the preview :) ) So this is still an issue on our side.
This piece os code is displayed correctly by prism :
<pre><code class="language-java">
private Function<String[], List<String>> x = x -> x;
</code></pre>
(you have to html escape the <
s)
when you click the "preview" tab, exercism.io/parse
is called with parameter markdown:private+Function<String[],+List<String>>+x+=+x+->+x;+
, the response body is :
private Function<string list>> x = x -> x;
</string>
The problems seems to be on the server side. I'm still not able to run the server on my (windows) computer to digg this.
Closing. Imported to the https://github.com/exercism/exercism.io repository.
When inserting some java with generic code, selecting the code then pressing the "code" button, things go fine avec the code syntex highlighted.
But then when you go on the preview tabpane, it get all messed up :
becomes
(coma is lost,
String
is lowercased)and
becomes
The preview (worst) version is the one that gets in the comment. (Happened to me here)