Git Product home page Git Product logo

caffemarkdown's Introduction

Japanese(MD) Japanese(HTML)

Caffè Markdown

Markdown generate tool for Java and Scala.

marked is used for conversion of a markdown file.

Caffe Markdown: GUI

Install

$ git clone git://github.com/keisuken/caffemarkdown.git
  • Java 7 Runtime required
  • Copy from JRE jfxrt.jar to $CAFFEMARKDOWN_HOME/lib

Usage

Command line

Windows:

caffemd [options] files...

Mac or Linux:

caffemd.sh [options] files...

ex: (Windows)

caffemd -style default example.md

Usage

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

GUI(Java FX)

Click for caffemdgui.bat or caffemdgui.sh .

Settings

Select wkhtmltopdf

1.Execution menu bar's "Settings" - "select wkhtmltopdf" 2.Select wkhtmltopdf(HTML to PDF converter) execution file

output to PDF

If otuput to PDF then check "output to PDF" menu item.

Open and generatet Markdown file

Execution menu bar' "File" - "Open and generate" menu item.

Scala

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)

API Reference

See Caffè Markdown .

License

Copyright (C) 2014, NISHIMOTO Keisuke. (MIT License)

See:

caffemarkdown's People

Contributors

keisuken avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

ygree kai2002

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.