diff --git a/docs/README.md b/docs/README.md
index 95dacd51d2..be8d25e6ea 100644
--- a/docs/README.md
+++ b/docs/README.md
@@ -1,6 +1,6 @@
- About
- - Installation
+ - Installation
- Usage
- Supported Markdown specifications
- Security
@@ -11,7 +11,7 @@
Marked
-Marked is
+Marked is
1. built for speed.*
2. a low-level markdown compiler that allows frequent parsing of large chunks of markdown without caching or blocking for long periods of time.**
@@ -96,4 +96,3 @@ For list of credited authors and contributors, please see our [authors page](AUT
Copyright (c) 2011-2018, Christopher Jeffrey. (MIT License)
See [license](https://github.com/markedjs/marked/blob/master/LICENSE.md) for more details.
-
diff --git a/docs/index.html b/docs/index.html
index 5be5946857..c9b0fda49b 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -12,6 +12,7 @@
}
#container {
+ position: relative;
max-width: 800px;
margin: auto;
padding: 10px;
@@ -60,15 +61,28 @@
background-color: rgba(27,31,35,0.05);
border-radius: 3px;
}
+
+ .github-ribbon {
+ position: absolute;
+ top: 0;
+ right: 0;
+ border: 0;
+ }
-
+
+
+
Marked.js Documentation
-
+
+
+
+
+
@@ -78,14 +92,15 @@ Marked.js Documentation
var content = document.querySelector('#content');
var body = document.querySelector('html');
- content.addEventListener('click', function (e) {
- var a = e.target;
- if (a.tagName.toLowerCase() === 'a' && a.href.indexOf(location.origin) === 0) {
+ body.addEventListener('click', function (e) {
+ var a = e.target.closest('a');
+ if (a && a.href.indexOf(location.origin) === 0) {
var page = a.href.slice(location.origin.length + location.pathname.length);
if (page.slice(-3) === '.md') {
e.preventDefault();
fetchPage(page);
}
+ history.replaceState("", document.title, "/");
}
}, false);
@@ -100,8 +115,8 @@ Marked.js Documentation
+ '' + e.message + '
';
});
}
-
+
fetchPage('README.md');
-