FIX: auto-quote should not trigger when the first " is preceded by bbcode-like garbage.
FIX: rewrite replaceBlock logic to better handle mismatched nested quotes.