diff --git a/index.html b/index.html
index c07df444..fa63cb9f 100644
--- a/index.html
+++ b/index.html
@@ -220,6 +220,25 @@
alias: {
'/.*/_sidebar.md': '/_sidebar.md',
},
+ // Route handler for .pine files — fetch and wrap in markdown code fence
+ routes: {
+ '/(.+\\.pine)': function(route, matched, next) {
+ var pinePath = matched;
+ var absUrl = new URL(pinePath, document.baseURI).href;
+ fetch(absUrl).then(function(r) {
+ if (!r.ok) throw new Error(r.status);
+ return r.text();
+ }).then(function(text) {
+ if (text.trimStart().startsWith('