Problem: truncates example code at first '@' character

Solution: correctly end only on @discuss or @end tags.
Merge pull request #57 from hintjens/master

Problem: truncates example code at first '@' character