tests for <hr>
added link reference support

fixes #2