Only linkify and create index when HTML.