Improved url linkage and newline handling