https://github.com/zirafa/simple-markdown-template
Sometimes all you need is to parse markdown in the browser (minimalist website template using marked.js)
https://github.com/zirafa/simple-markdown-template
Last synced: 3 months ago
JSON representation
Sometimes all you need is to parse markdown in the browser (minimalist website template using marked.js)
- Host: GitHub
- URL: https://github.com/zirafa/simple-markdown-template
- Owner: zirafa
- License: mit
- Created: 2023-05-16T06:06:57.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-16T07:50:12.000Z (about 3 years ago)
- Last Synced: 2025-01-24T07:45:13.574Z (over 1 year ago)
- Language: HTML
- Homepage:
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# simple-markdown-template
Sometimes all you need is to parse markdown in the browser
[Marked.js](https://github.com/markedjs/marked) is a super fast markdown parser and compiler. It's usually used for server side rendering, but it can also run very fast in the browser. With just a couple of CDN dependencies and a little bit of CSS styling you can use it to make a simple minimalist website written in markdown.
## Check out index.html
All it does is set Roboto as the font and includes Material Icons, and adds a bit of CSS for margins. Anything written inside of a div element with ```class="marked"``` is parsed as markdown in the browser. Just modify the index.html to suit your needs and upload it to a server (or you can even publish it using Github Pages).
## Why make this?
Over the years, I've made personal websites with so many different content management systems, static site generators, and frameworks, but they all felt like overkill and eventually suffered bitrot or became a headache to update. I love writing in markdown and also love the minimalism of a static HTML file, and this is the simplest way I could think of to combine those two things.