diff --git a/compile.js b/compile.js
index b9bfe3b..d360b9a 100644
--- a/compile.js
+++ b/compile.js
@@ -69,6 +69,9 @@ function format(data, name) {
.replace( /* multitag suffix fix for special characters. */
/(<\/(?:a|code)>)\n\t*([.)\];:,])/g,
"$1$2"
+ ).replace( /* fix tag attached to word and not whitespace */
+ /(\w+)(<[a-zA-Z]\w*>)/g,
+ "$1 $2"
);
}
// probably should bring in a better templating engine but whatever
@@ -78,7 +81,8 @@ function format(data, name) {