Fixed link parsing

Reference style links without references ended in stack overflow. This
is fixed now
Added support for mark tag