put bracketEnd and bracketStart into templaterState
global refactoring to shift the responsibility to templaterState
moved templaterState specific logic
replaced all Bracket by Tag
global refactor, changed name of calcA and calcB to findInnerTagsContent and findOuterTagsContent
changed A to innerTagsContent and B to outerTagsContent