% 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