publish: Fix relative links and ignore html content