I’m trying to get a markdown plugin for WordPress working. While it works well for some things it doesn’t for others.
For example code, while highlighted in the editor preview pane, is not highlighted in the preview page:
#include <iostream>
int main()
{
std::cout << "Hello world\n";
}
Looks good in the preview pane in the editor, but not in the preview page, or in the published page. The code is highlighted on the main page though.
Update: Seems to be a problem with my browsers on my main work computer. Works fine for others, as well as on my other (Windows) work computer.
Update 2: Even weirder is that the highlighting works when I’m logged out, but not when I’m logged in.
Update 3: Seems that I solved the problem, the code should highlight properly when logged in now.