Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- wikilinksSpec :: (Monad m, IsInline il, HasWikilinks il) => TitlePosition -> SyntaxSpec m il bl
- data TitlePosition
- class HasWikilinks il where
Documentation
wikilinksSpec :: (Monad m, IsInline il, HasWikilinks il) => TitlePosition -> SyntaxSpec m il bl Source #
data TitlePosition Source #
Determines whether [[foo|bar]]
is a link to page bar
with title (description) foo
(TitleBeforePipe
), as in
GitHub wikis, or a link to page foo
with title bar
(TitleAfterPipe
), as in Obsidian and Foam.
Instances
Show TitlePosition Source # | |
Defined in Commonmark.Extensions.Wikilinks showsPrec :: Int -> TitlePosition -> ShowS # show :: TitlePosition -> String # showList :: [TitlePosition] -> ShowS # | |
Eq TitlePosition Source # | |
Defined in Commonmark.Extensions.Wikilinks (==) :: TitlePosition -> TitlePosition -> Bool # (/=) :: TitlePosition -> TitlePosition -> Bool # |
class HasWikilinks il where Source #
Instances
Rangeable (Html a) => HasWikilinks (Html a) Source # | |
(HasWikilinks il, Semigroup il, Monoid il) => HasWikilinks (WithSourceMap il) Source # | |
Defined in Commonmark.Extensions.Wikilinks wikilink :: Text -> WithSourceMap il -> WithSourceMap il Source # |