Skip to content

piccuss/Marker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Marker

Codacy Badge Build Status MIT Licence Maven Central

Build markdown by java.The following tags are supported.

  • Header
  • Quote
  • Image
  • UnorderedList
  • Table
  • Link

Usage

intergration

maven

    <dependency>
    <groupId>com.github.piccuss</groupId>
    <artifactId>marker</artifactId>
    </dependency>

Example

    MarkdownBuilder markdownBuilder = new MarkdownBuilder().addHeader("Total Header")
            .addHeader("Sub Header", 2)
            .addText("First paragraph")
            .addImage("me", "https://assets.yande.re/data/preview/db/c5/dbc571a28fd3e2f9df99037a131e5a52.jpg")
            .addQuote("this is a test\nwelcome\n\rhello,world")
            .addList(Arrays.asList("bird", "dog", "cat", 45));
    Table table = new Table().setAlignments(Table.ALIGN_LEFT, Table.ALIGN_CENTER, Table.ALIGN_RIGHT)
            .addRow("Title", "date", "name")
            .addRow("hello", "20180502", "piccus")
            .addRow("back to", "20180503", "tella");
    markdownBuilder.addTable(table).addLink("Google", "http://www.google.com.jp");

About

Markdown生成器java版

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages