Needle0
Forum Replies Created
-
In the process of experimenting even more, I accidentally blew away all my database tables and had to spend some time recovering from a backup. I took the opportunity to recreate the database in UTF-8 this time, and somehow the capitalization problem seems to have gone away. It could’ve been the encoding, or perhaps just cruft that accumulated in my years-old WP database… but I’m not complaining ??
I experimented some more. Experiencing some truly bizarre stuff.
A)
On my main blog, I kept disabling plugins one by one, until MoSI was the only plugin left enabled. I pasted, previewed and re-saved the post with the markdown source every time, and the post rendered incorrectly every time.B)
I installed a new WordPress instance on my local Mac and tried the same markdown source with MoSI. The brackets rendered correctly!
I then kept adding plugins to the installation to match my main blog’s plugin setup. I again pasted, previewed and re-saved the post every time, and the post rendered correctly every time.About the only other thing I can think of is that the MySQL database encoding for my main blog is set to EUC-JP instead of UTF-8. (I can’t immediately experiment with this one since my webhost only allows one database.)
I use plain WordPress, not multisite. I made a test page:
https://www.heistak.com/mosi-test/What I originally typed into as Markdown looked like this:
https://pastebin.com/WQu9z2gyThe rendered HTML looks like this:
https://pastebin.com/tXmbXVf6Finally, when I go back to the post editor, the Markdown source has changed into this:
https://pastebin.com/i8qeyQy8FYI, I also tried pasting the same Markdown source into a WordPress.com hosted blog. This one behaves slightly differently, removing the angled-brackets section entirely.
https://needle0.wordpress.com/2014/01/28/test-post/This is even true with the Markdown functionality in Jetpack.
Same thing happens with the “4 spaces or 1 tab at beginning of line” syntax.
Sorry, forgot to mention an important detail. I use the three tilde syntax (~~~) to open and close the code blocks. Thanks.