diff --git a/index.html b/index.html index c10107f..8f044b0 100644 --- a/index.html +++ b/index.html @@ -1,327 +1,291 @@ - + + - -Hi — a tiny, symbolic, AI‑first language - - - - - - + + + Hi: A Symbolic Programming Language + + + + + + + + + + + + + + + + + + + + + - -
+ -
+
+ +
- - - - - - +`; - - - - + document.addEventListener('DOMContentLoaded', () => { + // Initialize Markdown-it + const md = window.markdownit({ + html: true, // Allow HTML tags in markdown + linkify: true, + typographer: true, + highlight: function (str, lang) { + if (lang && hljs.getLanguage(lang)) { + try { + return '
' +
+                                   hljs.highlight(str, { language: lang, ignoreIllegals: true }).value +
+                                   '
'; + } catch (__) {} + } + // Use escapeHtml for plain text + return '
' + md.utils.escapeHtml(str) + '
'; + } + }); + + // Render Markdown + const contentDiv = document.getElementById('content'); + contentDiv.innerHTML = md.render(markdownContent); + + // Activate Lucide Icons + lucide.createIcons(); + }); +