Parse outline substitutions in multiline strings