A simple tool for creating presentations from markdown files.
md2p is licensed under BSD3 license. This refers to src/Main.hs
and output/js/present.js
files.
Note: any other content is not a part of md2p and is not licensed by it.
-
Create a Markdown file and seperate slides with
---
(html's<hr>
tag) -
Use md2p tool (haskell compiler and cabal needed to compile md2p) to create an HTML file from your Markdown and place it in the output folder
You can also use any other md2html converter. just add the following to the html:
<link rel="stylesheet" type="text/css" href="css/style.css">
<link rel="stylesheet" type="text/css" href="css/github.css">
<link rel="stylesheet" type="text/css" href="highlight/styles/solarized_light.css"> <!-- Or your preferable syntax highlight theme -->
<script src="js/jquery-1.11.0.min.js"></script>
<script src="highlight/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
<script src="js/present.js"></script>
Actually, you can omit everything except:
<script src="js/jquery-1.11.0.min.js"></script>
<script src="js/present.js"></script>
but then styling is up to you.
use cabal to download dependencies and install md2p
cabal update && cabal install
- markdown - for markdown to html conversion
- highlight.js - for syntax highlight
- a slighty modified github.css - for styling