Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
in Q2A Core by
While testing out the syntax highlighting for markdown, I noticed that the first link of the content can't be indented; qa_post_text() function runs trim() on the content, removing the indent from that line of text.

Maybe a solution would be to check for newlines and only trim if the $_POST entry doesn't contain newlines?
Q2A version: 1.5
Yes, I noticed this with the Markdown parser.

1 Answer

+1 vote
selected by
Best answer

I wouldn't want to change the behavior of qa_post_text(...) at this point, but if this is an issue with the Markdown editor, its read_post(...) method should simply skip qa_post_text(...) and retrieve the $_POST element directly.

Ah, thanks, I'm just editing the existing plugin, didn't even notice we're processing them ourselves.  That was an easy fix.