diff --git a/src/helper.js b/src/helper.js
index fdab904..351dd7c 100644
--- a/src/helper.js
+++ b/src/helper.js
@@ -97,6 +97,11 @@ function generateSite(file, lang, stylesheet = ''){
${text}
`;
}
+ else if (line === '---'){
+ body += `
+
+ `;
+ }
else if (line != "")
{
//convert markdown link to href
diff --git a/test/test-folder/markdown.md b/test/test-folder/markdown.md
index 69843b2..42b7607 100644
--- a/test/test-folder/markdown.md
+++ b/test/test-folder/markdown.md
@@ -19,3 +19,7 @@ This line is to test bold in different forms such as : **asterisk bold** and __u
This line is to test bold and italics combined : ***asterisk bold and italic*** and ___underscore bold and italic___.
This line is to test the code block: `this is a piece of code`
+
+The following line is to test the horizontal rule parsing
+---
+This line is to ensure the horizontal rule was generated correctly in html.
\ No newline at end of file