Markdown generate tool for Java and Scala.
marked is used for conversion of a markdown file.
$ git clone git://github.com/keisuken/caffemarkdown.git
- Java 7 Runtime required
- Copy from JRE jfxrt.jar to $CAFFEMARKDOWN_HOME/lib
Windows:
caffemd [options] files...
Mac or Linux:
caffemd.sh [options] files...
ex: (Windows)
caffemd -style default example.md
Usage: caffemd [options] file...
Options:
-help Display this information
-version Display version information
-style <style_name> Set output style
-wkhtmltopdf <wkhtmltopdf_path>
Set wkhtmltopdf execution path
-pdf Output PDF file
Click for caffemdgui.bat or caffemdgui.sh .
1.Execution menu bar's "Settings" - "select wkhtmltopdf" 2.Select wkhtmltopdf(HTML to PDF converter) execution file
If otuput to PDF then check "output to PDF" menu item.
Execution menu bar' "File" - "Open and generate" menu item.
import jp.cappuccino.tools.markdown.Markdown
...
// Create markdown generator.
val markdown = new Markdown
// Generate HTML.
val source = "# Header\n\nHello, Markdown tool!"
val style = Style.load(".", Style.Default)
val title = "Hello, Markdown!"
val html = markdown.generate(source, style, title)
// Print HTML.
println(html)
import jp.cappuccino.tools.markdown.Markdown
...
// Generate Markdown file.
val home = new File(".")
val styleName = Style.Default
val inpFile = new File("example.md")
val html = Markdown.generate(home, styleName, inpFile)
// Print HTML.
println(hrml)
See Caffè Markdown .
Copyright (C) 2014, NISHIMOTO Keisuke. (MIT License)
See: