svivian / q2a-markdown-editor

Markdown editor plugin for Question2Answer
55 stars 24 forks source link

code block not working if it is the first element #2

Closed zachmccormick closed 12 years ago

zachmccormick commented 12 years ago

I imagine that some kind of trim() is being called on the input to the edit box during the save step, because if you start input with 4 spaces, the preview pane looks fine, but when you go and post it, the code block is messed up because it loses the first 4 spaces. It may not be necessary/desired to trim the input like that - it seems like a bug from my point of view.

svivian commented 12 years ago

Thanks for reporting. I had this fixed at one point but somewhere along the line it appears to have regressed.

Anyway I have fixed it again, let me know if it works for you.

zachmccormick commented 12 years ago

Works!