Skip to content

w0rp/markdown-present

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

markdown-present

This repository hosts a script for building HTML presentations from GitHub-flavoured Markdown files.

This script will only work in decent Linux distributions. Sorry Mac users.

Installation

You need marked to convert your Markdown to HTML. Install it globally in your prefix:

npm install -g marked

If python3 is not installed on your system, install it. You need any decent version of Python 3.

You need inotify-tools for watching for changes to the Markdown files with inotifywait. Install inotify-tools in your Linux distribution of choice. For Debian/Ubuntu, this means:

sudo apt install inotify-tools

Usage

Create a Markdown file in the same directory as the script named whatever.md.

Run the script in the directory of the script with the filename you want to watch:

./markdown-present.sh whatever.md

The HTML file should should be saved as whatever.html, and will be opened in your default browser automatically.

The server runs with port 8001 on localhost only. I'm too lazy to add options for this yet.

The page should automatically refresh itself when you save changes. It might not work now and then for some reason.

About

A script and some styles for hot-reloading Markdown to HTML presentations

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors