Add newline to output text
Reference images using absolute link.
Convert algorithm links to internal sphinx references.
Fix link replacement.