substantially updated html transform. frontmatter currently disabled.