diff --git a/src/main/java/com/github/rjeschke/txtmark/Line.java b/src/main/java/com/github/rjeschke/txtmark/Line.java
index <HASH>..<HASH> 100644
--- a/src/main/java/com/github/rjeschke/txtmark/Line.java
+++ b/src/main/java/com/github/rjeschke/txtmark/Line.java
@@ -536,7 +536,7 @@ class Line
             {
                 return false;
             }
-            if (tag.equals("hr"))
+            if (tag.equals("hr") || element.endsWith("/>"))
             {
                 this.xmlEndLine = this;
                 return true;
@@ -565,7 +565,7 @@ class Line
                         temp.setLength(0);
                         Utils.getXMLTag(temp, element);
                         tag = temp.toString().toLowerCase();
-                        if (HTML.isHtmlBlockElement(tag) && !tag.equals("hr"))
+                        if (HTML.isHtmlBlockElement(tag) && !tag.equals("hr") && !element.endsWith("/>"))
                         {
                             if (element.charAt(1) == '/')
                             {
Added recognition of <tag /> elements to Line#checkHTML