Markdown for source code shows strange hashed string

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;
}
2 Likes

@zogstrip hoisting bug…

1 Like

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

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

3 Likes