Refactor ending tag into a macro

There is now a macro called parse! which will make sure only the correct
children are parsed and the tag ends.