ASKBOT / askbot-devel

Askbot is a Django/Python Q&A forum. **Contributors README**: https://github.com/ASKBOT/askbot-devel#how-to-contribute. Commercial hosting of Askbot and support are available at https://askbot.com
Other
1.56k stars 627 forks source link

After clicking on "more" to see a long question or answers, syntax highlighting of code blocks becomes disabled #854

Open cosmicog opened 4 years ago

cosmicog commented 4 years ago

This is an issue that I see for a long time. I'm surprised that I couldn't find any related issues(maybe there is).

Basically, after clicking more to see the whole long question, syntax highlighting is being disabled like this:

try 
{
    std::vector<int> vec{3, 4, 3, 1};
    int i{vec.at(4)};
}
catch (std::out_of_range &e) 
{
    std::cerr << "Accessing a non-existent element: " << e.what() << '\n';
}

becomes this:

try 
{
    std::vector<int> vec{3, 4, 3, 1};
    int i{vec.at(4)};
}
catch (std::out_of_range &e) 
{
    std::cerr << "Accessing a non-existent element: " << e.what() << '\n';
}

For example: Gazebo controller spawner warning - ROS Answers