Make less than sign work with inline format (fixes #496, #527)

Due to the inline formatting of text, using `<` did not work.

This pull request (includes specs and updated API documentation) makes using `<` without escaping work. This is done by using a more complex regex string that takes the recognized HTML-esque tags into account.