diff options
Diffstat (limited to 'bin')
-rw-r--r-- | bin/dune | 2 | ||||
-rw-r--r-- | bin/leda.ml | 12 |
2 files changed, 7 insertions, 7 deletions
@@ -1,4 +1,4 @@ (executable (public_name leda) - (name main) + (name leda) (libraries base gemini)) diff --git a/bin/leda.ml b/bin/leda.ml index 139f5fe..07fe43c 100644 --- a/bin/leda.ml +++ b/bin/leda.ml @@ -1,10 +1,10 @@ -module M = Gemini.MimeTextGemini +module M = Gemini.MimeTextGemini.MimeTextGemini -let test_gemini = "\ - => /blah mylink\r\n\ +let test_gemini = "=> /blah mylink\r\n\ => /blah\r\n\ ```\r\n\ - preformatted\r\n\ + preformatted 1\r\n\ + preformatted 2\r\n\ ``` ending preformatted text\r\n\ some text\r\n\ more text\r\n\ @@ -15,6 +15,6 @@ let _ = print_endline test_gemini let _ = print_endline "\n\n...gets parsed as...\n\n" -let test_parse s = s (* M.gemini_to_str (M.str_to_gemini s) *) +let test_parse s = M.gemini_to_canon_str (M.str_to_gemini s) -let _ = print_endline (test_parse test_gemini) +let main = print_endline (test_parse test_gemini) |