diff --git a/lib/filters.js b/lib/filters.js
index <HASH>..<HASH> 100644
--- a/lib/filters.js
+++ b/lib/filters.js
@@ -68,6 +68,9 @@ exports.contextfunctions = {
       if (/\/index.html$/.test(url)) {
         return url.slice(0, -10);
       }
+      if (/\/index$/.test(url)) {
+        return url.replace(/index$/, '');
+      }
       return url;
     };
   },
diff --git a/lib/sdk/markdown.js b/lib/sdk/markdown.js
index <HASH>..<HASH> 100644
--- a/lib/sdk/markdown.js
+++ b/lib/sdk/markdown.js
@@ -77,7 +77,7 @@ exports.render = function(text) {
   iframeCount = 0;
   text = text.replace(/^````(\w+)/gm, '````$1+');
   text = text.replace(/^`````(\w+)/gm, '`````$1-');
-  return hlRenderer.render(text);
+  return hlMarkdown.render(text);
 };
little fix of markdown sdk, and filters