fixing #14 and #11; tags pop correctly and nested anchors work
Merge pull request #15 from toddself/tag-stack-popping

fixing #14 and #11; tags pop correctly and nested anchors work