stephenharris / WP-MarkDown

WP-MarkDown plug-in. Allows Markdown to be enabled in posts, comments and bbPress forums.
http://wordpress.org/extend/plugins/wp-markdown/
112 stars 19 forks source link

tripple quotes disappear #79

Open janwilmans opened 6 years ago

janwilmans commented 6 years ago

int main()
{
int i = 0;
return i;
}

transforms into:

    int main()   
    {   
      int i = 0;  
      return i;  
    }  

So its get indented, and the triple quotes disappear. This makes editing code harder.

Also

```cpp
int main()   
{   
  int i = 0;  
  return i;  
}

comes out of the round-trip like:
int main()   
{   
  int i = 0;  
  return i;  
}


Which is correct HTML but does not get transformed back to markdown.