diff --git a/index.html b/index.html index adcafef..0ca214e 100644 --- a/index.html +++ b/index.html @@ -19,44 +19,17 @@ -
- -
-
-
-
- Hi - v0.1 -
- - - -
-
-
-
-

Loading documentation...

-
-
-
- +

Hi is in early development. The syntax and features are subject to change.

+`, + 'json': ` +# Building a better JSON + +[placeholder topic] +` + }, + renderContent() { + const contentEl = this.$root.querySelector('.markdown-body'); + const mdContent = this.pages[this.activePage]; + const init = () => { + if (!window.markdownit || !window.hljs) { setTimeout(init, 50); return } + const md = window.markdownit({ + html: !0, linkify: !0, typographer: !0, + highlight: (s, l) => { + if (l && hljs.getLanguage(l)) try { return hljs.highlight(s, { language: l, ignoreIllegals: !0 }).value } catch (_) { } + return md.utils.escapeHtml(s) + } + }); + contentEl.innerHTML = md.render(mdContent); + window.lucide?.createIcons(); + }; + init(); + } + }" x-init="$watch('activePage', renderContent); renderContent()" class="w-full h-full bg-gray-50 text-gray-900 selection:bg-cyan-400/20 flex"> + + + + + +
+
+ +
+
+
+ +
+
+ Hi + v0.1 +
+
+ + + +
+
+
+
+
+

Loading documentation...

+
+
+
+