svivian / q2a-markdown-editor

Markdown editor plugin for Question2Answer
55 stars 24 forks source link

Escaped Characters not saving #1

Closed zachmccormick closed 12 years ago

zachmccormick commented 12 years ago

If you make a post with escaped characters like \, it previews and posts correctly the first time. If you go back to edit a post that has escaped characters, however, it loses the escaping backslash. This means that if I type my\\windows\\path\\ it will save correctly as my\windows\path, however if I go and edit it, it will appear in the edit box as my\windows\path and then subsequently save as mywindowspath.

Awesome plugin by the way :-)

svivian commented 12 years ago

I don't see this issue. If I submit my\windows\path it shows as exactly that, both in the preview panel and on the page itself.

If I submit my\\windows\\path it does show up as "my\windows\path" in the preview panel and on-page*. But when I go to edit, the textarea still shows as my\\windows\\path as it should.

Can you post more details about your server set up, PHP version etc? Do you have "magic quotes" turned on, or another option that would be escaping the backslashes? Are you using the latest version of the plugin from here?

That is by design as the backslash is used to escape various characters like `and>` that are special to Markdown.

zachmccormick commented 12 years ago

Ahh you're right I have magic quotes on. Let me disable that then download the new plugin and I'll make sure that fixed both issues! Thanks!

zachmccormick commented 12 years ago

Also fixed! It was magic quotes. Thanks again!!!