From bbea659ae5d7d998ae23d412e087bfb6db23e7b3 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Thu, 16 Jul 2009 19:24:06 +0200 Subject: Add intro to using Markdown. --- markdown.html | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 markdown.html diff --git a/markdown.html b/markdown.html new file mode 100644 index 0000000..ac71a21 --- /dev/null +++ b/markdown.html @@ -0,0 +1,47 @@ +% Basic Markdown routines +% Jonas Smedegaard +% Thursday July 16 2009 + +# Create local Git + +Enter some directory and declare is a Git workingspace: + + mkdir demo + cd demo + git init + +(an existing directory filled with content can be used too) + +# Create initial content + + + + (edit something) + (save edited text as "index.mdwn") + +# Add initial content to Git + + git add index.mdwn + git commit -m "Add first Markdown file." + +# additional editing + + (edit and save "index.mdwn") + git add index.mdwn + git commit -m "Made a few changes..." + +or combined (works only when updating files, not initially adding them): + + git commit -m "Made a few changes..." index.mdwn + +# Create HTML output + + pandoc -s index.mdwn > index.html + +# Create PDF output + + markdown2pdf index.mdwn + +# Create S5 presentation output + + pandoc -t s5 -s index.mdwn > index.html -- cgit v1.2.3