X-Git-Url: http://git.cielonegro.org/gitweb.cgi?p=Rakka.git;a=blobdiff_plain;f=Rakka%2FWiki.hs;h=0cf9a135fbdba2658a1da22a79f315908057e15b;hp=b8be3a3fabf8bc5d3a56ef77cdd9207da6c81baf;hb=2ad43b49ecc25bdf87dd19037fd63c12428992ae;hpb=c2cc1241c50c8ff3843002526011574e77f669aa diff --git a/Rakka/Wiki.hs b/Rakka/Wiki.hs index b8be3a3..0cf9a13 100644 --- a/Rakka/Wiki.hs +++ b/Rakka/Wiki.hs @@ -8,6 +8,10 @@ module Rakka.Wiki , ListItem , Definition(..) + + , CommandType(..) + , Attribute + , InlineCommand(..) ) where @@ -39,6 +43,8 @@ data InlineElement , linkFragment :: !(Maybe String) , linkText :: !(Maybe String) } + | LineBreak ![Attribute] + | InlineCmd !InlineCommand deriving (Eq, Show) @@ -64,4 +70,21 @@ data Definition defTerm :: ![InlineElement] , defDesc :: ![InlineElement] } - deriving (Eq, Show) \ No newline at end of file + deriving (Eq, Show) + + +data CommandType + = InlineCommandType + | BlockCommandType + + +type Attribute = (String, String) + + +data InlineCommand + = InlineCommand { + iCmdName :: !String + , iCmdAttributes :: ![Attribute] + , iCmdContents :: ![InlineElement] + } + deriving (Eq, Show)