Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Reference = Reference {
- refHref :: Text
- refClasses :: [Text]
- loadMarkdown :: (Meta -> a) -> String -> FilePath -> Action (Post Pandoc a)
- htmlInl :: Text -> Inline
- patchInlines :: [Inline] -> [Inline]
- patchBlock :: MonadIO f => Block -> f Block
- patchInline :: Inline -> Action Inline
- mStr :: String -> MetaValue
- patchMeta :: String -> String -> Meta -> Meta
- parseFileIdents :: Text -> Action (Map Text Reference, Map Text Text)
- defaultWriterOptions :: WriterOptions
- renderPost :: (Text -> Action (Map Text Reference, Map Text Text)) -> WriterOptions -> Post Pandoc a -> Action (Post Text a)
- renderHTML5 :: [Tag Text] -> Text
- parseAgdaLink :: (Text -> Action (Map Text Reference, Map Text Text)) -> Tag Text -> Action (Tag Text)
- emplace :: Eq a => [(a, b)] -> [(a, b)] -> [(a, b)]
- addLinkType :: (Text -> Action (Map Text Reference, Map Text Text)) -> (() -> Action (Map Text Text)) -> Tag Text -> Action (Tag Text)
Documentation
Reference | |
|
loadMarkdown :: (Meta -> a) -> String -> FilePath -> Action (Post Pandoc a) Source #
The return type here is whether or not this markdown file is a BLOG POST. Even if it isn't, the file still gets generated.
patchInlines :: [Inline] -> [Inline] Source #
parseFileIdents :: Text -> Action (Map Text Reference, Map Text Text) Source #
Parse an Agda module (in the final build directory) to find a list of its definitions.
renderPost :: (Text -> Action (Map Text Reference, Map Text Text)) -> WriterOptions -> Post Pandoc a -> Action (Post Text a) Source #
parseAgdaLink :: (Text -> Action (Map Text Reference, Map Text Text)) -> Tag Text -> Action (Tag Text) Source #
Possibly interpret an href="agda://" link to be a honest-to-god link to the definition.