X-Git-Url: http://git.cielonegro.org/gitweb.cgi?a=blobdiff_plain;f=Rakka%2FWiki.hs;h=0fcf38a6bca33b31550bb2ddbc8d5d49f37a19e7;hb=3c5211253dc61c31196a47486c538b64c32d8c5e;hp=96231a46c72174bc33c7df3733e8c9457e230b09;hpb=bd2b1344f5ed3d4de91297bfe08658e52d682b82;p=Rakka.git diff --git a/Rakka/Wiki.hs b/Rakka/Wiki.hs index 96231a4..0fcf38a 100644 --- a/Rakka/Wiki.hs +++ b/Rakka/Wiki.hs @@ -17,6 +17,7 @@ module Rakka.Wiki where import Data.Generics +import Network.URI import Rakka.Page @@ -34,6 +35,7 @@ data BlockElement | Preformatted ![InlineElement] | Paragraph ![InlineElement] | Div ![Attribute] ![BlockElement] + | EmptyBlock | BlockCmd !BlockCommand deriving (Eq, Show, Typeable, Data) @@ -47,10 +49,15 @@ data InlineElement , linkFragment :: !(Maybe String) , linkText :: !(Maybe String) } + | ExternalLink { + extLinkURI :: !URI + , extLinkText :: !(Maybe String) + } | LineBreak ![Attribute] | Span ![Attribute] ![InlineElement] | Image ![Attribute] | Anchor ![Attribute] ![InlineElement] + | EmptyInline | InlineCmd !InlineCommand deriving (Eq, Show, Typeable, Data)