diff --git a/md2gemini/__init__.py b/md2gemini/__init__.py
index f998277..b633a7e 100644
--- a/md2gemini/__init__.py
+++ b/md2gemini/__init__.py
@@ -72,6 +72,9 @@ def md2gemini(
     table_tag: "The default alt text for table blocks."
     """
 
+    if len(markdown) == 0:
+        return ""
+
     # Pre processing
     # Remove frontmatter
     frontmatterExists = False
diff --git a/tests/test_plain.py b/tests/test_plain.py
index 98ea76a..5c226ab 100644
--- a/tests/test_plain.py
+++ b/tests/test_plain.py
@@ -6,6 +6,12 @@ def f(md):
     return normalize(md2gemini(md, plain=True))
 
 
+def test_empty_input():
+    md = ""
+    gem = ""
+    assert f(md) == gem
+
+
 def test_remove_bold():
     md = "Sentence with **bold** in it."
     gem = "Sentence with bold in it."