Markdown for source code shows strange hashed string


(Lê Trần Đạt) #1

Using markdown

#include <iostream>
using namespace std;

void recursion(int i)   {

    if(i == 10)
        return;
    cout << i << " ";

    recursion(i+1);

    cout << i << " ";
}

int main()  {

    recursion(1);
    return 0;
}

Using Control K shows corrected code

#include <iostream>
using namespace std;

void recursion(int i)   {

    if(i == 10)
        return;
    cout << i << " ";

    recursion(i+1);

    cout << i << " ";
}

int main()  {

    recursion(1);
    return 0;
}

(Sam Saffron) #2

@zogstrip hoisting bug…


(Régis Hanol) #3

Thanks for reporting that issue. I just pushed a fix :penguin:

https://github.com/discourse/discourse/commit/9061c26e52e178448a15e9939c83aa8db043b1c7


(Régis Hanol) #4