functionaliy to ignore content in <pre> and <code>

As discussed. I rebased to make things neater, hence the new pull request. #13 is now redundant