Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on The easy way to make a website with Markdown. Parent comment
example:
<html> <head><title>hello</title></head> <body> <main id=root ></main> <script src=./marked.min.js async defer ></script> <script> async function load() { let element = document.querySelector("main#root"); await fetch("./index.md") .then(resp => resp.text()) .then(text => marked(text, { ... })) .then(html => { element.innerHTML = html; }); } window.onload = load; </script> </body> </html>
> edit: formatting
example:
since it directly injects the resulting html, you may set "unsafe HTML" option in marked (or markdown.js) and include <title> tags within your markdown document. this will _also_ rewrite the browser title(s)> edit: formatting