Ignore hash-based comments inside code blocks

Added simple filter for hash-based comments inside code blocks, plus test to verify correct functionality.