Importing Markdown posts to WordPress

Michel Fortin michel.fortin at michelf.com
Thu Dec 27 22:25:37 EST 2007


Le 2007-12-27 à 21:29, Sam Angove a écrit :


> It's almost certainly [this][1], in WordPress's MT importer:

>

> $line = trim($line);

>

> If it's needed at all (for removing trailing newlines?), `rtrim` ought

> to do the job without destroying your codeblocks.

>

> [1]: http://trac.wordpress.org/browser/trunk/wp-admin/import/

> mt.php#L281



Indeed, I think this should do the trick... although personally I'd
remove the line above altogether since removing tailing whitespace
may still interfere with Markdown's hard line breaks, if there are any.


Michel Fortin
michel.fortin at michelf.com
http://michelf.com/




More information about the Markdown-Discuss mailing list