diff --git a/src/formatitko/html_generator.py b/src/formatitko/html_generator.py
index 2aabe85..e2bc787 100644
--- a/src/formatitko/html_generator.py
+++ b/src/formatitko/html_generator.py
@@ -194,6 +194,8 @@ class HTMLGenerator(OutputGenerator):
attributes["width"] = e.attributes["width"]
if "height" in e.attributes:
attributes["height"] = e.attributes["height"]
+ if "title" in e.attributes:
+ attributes["title"] = e.attributes["title"]
if e.title:
attributes["alt"] = e.title
diff --git a/src/formatitko/output_generator.py b/src/formatitko/output_generator.py
index 8e854a3..716e52a 100644
--- a/src/formatitko/output_generator.py
+++ b/src/formatitko/output_generator.py
@@ -272,9 +272,9 @@ class OutputGenerator:
self.write(self.end_tag(tag))
def generate_raw_block_tag(self, tag: str, text: str, attributes: dict[str,str]={}):
- self.writeln(self.start_tag(tag, attributes))
+ self.writeraw(self.start_tag(tag, attributes))
self.writeraw(text)
- self.writeln(self.end_tag(tag))
+ self.writeraw(self.end_tag(tag))
def generate_empty_block_tag(self, tag: str, attributes: dict[str,str]={}):
self.writeln(self.single_tag(tag, attributes))