X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=blobdiff_plain;f=Rakka%2FWiki.hs;fp=Rakka%2FWiki.hs;h=0bf23987b5ffed8c5368fd13d85695183a3b89c8;hb=f832f12703d807f5fc3350dc71d8624ffc5b97a5;hp=0cf9a135fbdba2658a1da22a79f315908057e15b;hpb=2ad43b49ecc25bdf87dd19037fd63c12428992ae;p=Rakka.git diff --git a/Rakka/Wiki.hs b/Rakka/Wiki.hs index 0cf9a13..0bf2398 100644 --- a/Rakka/Wiki.hs +++ b/Rakka/Wiki.hs @@ -11,6 +11,7 @@ module Rakka.Wiki , CommandType(..) , Attribute + , BlockCommand(..) , InlineCommand(..) ) where @@ -31,6 +32,8 @@ data BlockElement | DefinitionList ![Definition] | Preformatted ![InlineElement] | Paragraph ![InlineElement] + | Div ![Attribute] ![BlockElement] + | BlockCmd !BlockCommand deriving (Eq, Show) @@ -44,6 +47,7 @@ data InlineElement , linkText :: !(Maybe String) } | LineBreak ![Attribute] + | Span ![Attribute] ![InlineElement] | InlineCmd !InlineCommand deriving (Eq, Show) @@ -81,6 +85,15 @@ data CommandType type Attribute = (String, String) +data BlockCommand + = BlockCommand { + bCmdName :: !String + , bCmdAttributes :: ![Attribute] + , bCmdContents :: ![BlockElement] + } + deriving (Eq, Show) + + data InlineCommand = InlineCommand { iCmdName :: !String