Fixed extra spacing when parsing template
Fixed not correctly setting page's marked_as when editing it