private function escapeFirstCharacters($line)
{
$escapable = array('>', '- ', '+ ', '--', '~~~', '---', '- - -');
foreach ($escapable as $i) {
if (strpos(ltrim($line), $i) === 0) {
// Found a character that must be escaped, adding a backslash before
return '\\' . ltrim($line);
}
}
return $line;
}