X-Git-Url: https://ruin.nu/git/?p=yawbih.git;a=blobdiff_plain;f=Main.hs;fp=Main.hs;h=260e9788febb9169fb01f3323725b0a888cbb1e5;hp=b1b4f5736db06aa1a13c2935873ccda28360d129;hb=1f195ec53bd48d4471e92d60f1e83808679a79ce;hpb=a7ff060c616ef83fcd3fac49ba1ef874c44ab8b1
diff --git a/Main.hs b/Main.hs
index b1b4f57..260e978 100644
--- a/Main.hs
+++ b/Main.hs
@@ -130,6 +130,9 @@ ex ((Heading n d):xs) = do
ex ((Url l):xs) = do
hlink (URL {unURL = (l)}) (text l)
ex xs
+ex ((Pre s):xs) = do
+ pre $ text s
+ ex xs
heading 1 = h1
heading 2 = h2
@@ -148,6 +151,7 @@ ex2 ((Underline d):xs) = ""++ex2 d++""++ex2 xs
ex2 ((Strike d):xs) = ""++ex2 d++""++ex2 xs
ex2 ((Heading n d):xs) = "\n"++ex2 d++"\n"++ex2 xs
ex2 ((Url l):xs) = ""++ex2 xs
+ex2 ((Pre s):xs) = ""++s++"
"++ex2 xs
test s = case parse wikiParser "" s of