Added the ability to add things to the LaTeX preamble from markdown.
Fixed abstract extraction when first paragraph starts with a link etc.