kuba-orlik
(Kuba Orlik)
10 באוגוסט, 2016, 10:47am
1
Why doesn’t this code:
var www_server = Sealious.ChipManager.get_chip("channel", "www_server");
www_server.route({
method: "GET",
path: "/users.csv",
handler: function(context, request){
// .. logic goes here
preserve newlines? Did the syntax change or is there something I am missing?
לייק 1
gkln
10 באוגוסט, 2016, 10:58am
2
You should encapsulate the code block with ``` instead of `.
var www_server = Sealious.ChipManager.get_chip("channel", "www_server");
www_server.route({
method: "GET",
path: "/users.csv",
handler: function(context, request){
// .. logic goes here
2 לייקים
kuba-orlik
(Kuba Orlik)
10 באוגוסט, 2016, 11:34am
3
Please take a look at the source of my message: I am using ```…
cpradio
(cpradio)
10 באוגוסט, 2016, 11:35am
4
It seems to be the extra space after the closing ```
3 לייקים
kuba-orlik
(Kuba Orlik)
10 באוגוסט, 2016, 1:00pm
5
I see, removing the redundant space does fix the issue.
But It’s not CommonMark compliant, right? When I pasted the code [here] it behaved as it should.
לייק 1
cpradio
(cpradio)
10 באוגוסט, 2016, 1:12pm
6
Discourse isn’t using CommonMark yet (to my knowledge) so if it works at http://spec.commonmark.org/dingus/ , when Discourse switches to CommonMark, it should resolve itself.
2 לייקים
eviltrout
(Robin Ward)
10 באוגוסט, 2016, 2:45pm
7
Yes I can confirm we’re note on CommonMark yet. In 1.6 I did a lot of work to convert our existing markdown to ES6 so that we could try plugging in a different engine and see how well it works.
5 לייקים
sam
(Sam Saffron)
26 ביוני, 2017, 2:04pm
8
Rebaked OP and all seems fine
trailing spaces
no
longer
break this
Per our migration plans , I just enabled markdown.it at Meta.
It is an excellent CommonMark compliant engine. I expect quite a few edges to be found during this period of testing.
Do not open bugs about the new Engine, just reply here.
I/we will be updating the top post here with the list of issues and striking out stuff as it is fixed.
Current known issues (to be fixed)
Onebox vanishes after you start typing and works not-super consistently
pendin…
3 לייקים