MDOC: markdown document converting/management tool ======================================================== Requirement ---------------- - Ruby 1.9.x - pandoc in path for docx/rtf conversion - xelatex in path for pdf conversion Command line options ------------------------- Convert a markdown file (`readme.md`) to docx (`readme.docx`): mdoc -t docx readme.md Use `mdoc --help` for more options. Online Preview ----------------- Put a markdown document to an temporary url for revew: mdoc --preview readme.md This will open your browser to show a converted document (use documentup). Meta information in header ----------------------------- Three different formats are supported: 1. pandoc like three line header: % title % author % date 2. multi-header (separate by first blank line) Title: some key Author: some key 3. separator: if `% ---` is the first no-blank line, the contents between until the next `% ---` will be treated as header.