fix for newlines in code and pre blocks