I wanted to enable the Ext_autolink_bare_uris pandoc extension for Hakyll posts. I followed the instructions given here, and everything seems to be working... except that extension! The bare URI's in posts are not transformed into a link. Everything else seems to function as normal. Here's the code in site.hs
:
import qualified Data.Set as S
import Text.Pandoc.Options
...
customPandocCompiler :: Compiler (Item String)
customPandocCompiler =
let customExtensions = [Ext_autolink_bare_uris]
defaultExtensions = writerExtensions defaultHakyllWriterOptions
newExtensions = foldr S.insert defaultExtensions customExtensions
writerOptions = defaultHakyllWriterOptions {
writerExtensions = newExtensions
}
in pandocCompilerWith defaultHakyllReaderOptions writerOptions
The customPandocCompiler
is used in all the relevant places. The code compiles normally, but does not yield the desired effect. Can anyone help me discover why?
Thank you in advance.