update <pre> style and links to prev/next