Improve handling of document links; add video links