1 module Rakka.Wiki.Interpreter.Base
7 import Rakka.Wiki.Interpreter
8 import Rakka.Wiki.Interpreter.Base.Image
11 baseInterpreters :: [Interpreter]
12 baseInterpreters = [ lineBreakInterp
20 lineBreakInterp :: Interpreter
21 lineBreakInterp = pureInlineInterp "br" interpret
23 interpret (InlineCommand _ attrs _) _ = LineBreak attrs
26 spanInterp :: Interpreter
27 spanInterp = pureInlineInterp "span" interpret
29 interpret (InlineCommand _ attrs contents) _ = Span attrs contents
32 divInterp :: Interpreter
33 divInterp = pureBlockInterp "div" interpret
35 interpret (BlockCommand _ attrs contents) _ = Div attrs contents