Merge pull request #2 from ipetropolsky/russian-titles

Add support for titles in russian
Changes regular expression matching headings to allow white space before end of line
Merge pull request #3 from woodp/heading-trailing-whitespace

Changes regular expression matching headings to allow white space before...
Headers must start with `#` symbols