diff --git a/src/formatitko/html_generator.py b/src/formatitko/html_generator.py
index d7dbc03..d564044 100644
--- a/src/formatitko/html_generator.py
+++ b/src/formatitko/html_generator.py
@@ -247,7 +247,7 @@ class HTMLGenerator(OutputGenerator):
if (e.format == "InlineMath"):
self.write(rawhtml)
else:
- self.writeraw()
+ self.writeraw(rawhtml)
def generate_RawInline(self, e: RawInline):
if e.format == "html":