commonmark-extensions-0.2.6: Pure Haskell commonmark parser.
Safe HaskellNone
LanguageHaskell2010

Commonmark.Extensions.Wikilinks

Synopsis

Documentation

wikilinksSpec :: forall (m :: Type -> Type) il bl. (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.

class HasWikilinks il where Source #

Methods

wikilink :: Text -> il -> il Source #

Instances