diff --git a/package.json b/package.json
index 58ef4f9..807f976 100644
--- a/package.json
+++ b/package.json
@@ -14,7 +14,7 @@
},
"dependencies": {
"hono": "^4.10.4",
- "kleur": "^4.1.5",
- "prettier": "^3.7.3"
+ "hype": "^0.0.3",
+ "kleur": "^4.1.5"
}
}
\ No newline at end of file
diff --git a/src/html-formatter.js b/src/html-formatter.js
new file mode 100644
index 0000000..0c4cfb8
--- /dev/null
+++ b/src/html-formatter.js
@@ -0,0 +1,141 @@
+// HTML Formatter
+// https://github.com/uznam8x/html-formatter
+// MIT License
+
+const single = [
+ 'br', 'hr', 'img', 'input', 'meta', 'link',
+ 'col', 'base', 'param', 'track', 'source', 'wbr',
+ 'command', 'keygen', 'area', 'embed', 'menuitem'
+];
+
+const closing = function(el) {
+ el = el.replace(/<([a-zA-Z\-0-9]+)[^>]*>/g, function(match, capture) {
+ if (single.indexOf(capture) > -1) {
+ return (match.substring(0, match.length - 1) + ' />').replace(/\/\s\//g, '/');
+ }
+ return match.replace(/[\s]?\/>/g, '>' + capture + '>');
+ });
+ return el;
+};
+
+const entity = function(el) {
+ el = el.replace(/(');
+ el = el.replace(/