summaryrefslogtreecommitdiff
path: root/markdown.html
blob: ac71a2174753609ba2070dc50f25a895e4d5da0a (plain)
  1. % Basic Markdown routines
  2. % Jonas Smedegaard <dr@jones.dk>
  3. % Thursday July 16 2009
  4. # Create local Git
  5. Enter some directory and declare is a Git workingspace:
  6. mkdir demo
  7. cd demo
  8. git init
  9. (an existing directory filled with content can be used too)
  10. # Create initial content
  11. (edit something)
  12. (save edited text as "index.mdwn")
  13. # Add initial content to Git
  14. git add index.mdwn
  15. git commit -m "Add first Markdown file."
  16. # additional editing
  17. (edit and save "index.mdwn")
  18. git add index.mdwn
  19. git commit -m "Made a few changes..."
  20. or combined (works only when updating files, not initially adding them):
  21. git commit -m "Made a few changes..." index.mdwn
  22. # Create HTML output
  23. pandoc -s index.mdwn > index.html
  24. # Create PDF output
  25. markdown2pdf index.mdwn
  26. # Create S5 presentation output
  27. pandoc -t s5 -s index.mdwn > index.html