fix markup order (fixes issues after #5)

this fixes issues after PR #5