Toc: Pass errors if no atx headers are processed.

Fixes issue #102
Merge pull request #103 from fmoralesc/patch-1

Toc: Pass errors if no atx headers are processed.
Add unit tests and travis support.
Merge pull request #128 from cirosantilli/unit-test

Add unit tests and travis support.
Add LateX $ and $$ math support.