]> ruin.nu Git - yawbih.git/blobdiff - Main.hs
pre
[yawbih.git] / Main.hs
diff --git a/Main.hs b/Main.hs
index b1b4f5736db06aa1a13c2935873ccda28360d129..260e9788febb9169fb01f3323725b0a888cbb1e5 100644 (file)
--- 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) = "<u>"++ex2 d++"</u>"++ex2 xs
 ex2 ((Strike d):xs) = "<strike>"++ex2 d++"</strike>"++ex2 xs
 ex2 ((Heading n d):xs) = "\n<h"++show n++">"++ex2 d++"</h"++show n++">\n"++ex2 xs
 ex2 ((Url l):xs) = "<link: "++l++">"++ex2 xs
+ex2 ((Pre s):xs) = "<pre>"++s++"</pre>"++ex2 xs
 
 
 test s = case parse wikiParser "" s of