Coder Social home page Coder Social logo

marked4j's Introduction

Marked4J

Build Status Apache 2.0 Maven Central Javadocs

marked for Java

Usage

String md = "- foo\n- bar\n- baz";
Marked marked = new MarkedBuilder().gfm(true).build();
String expected = "<ul>\n<li>foo</li>\n<li>bar</li>\n<li>baz</li>\n</ul>\n";
assertThat(marked.marked(md), is(expected));

Use with Maven

you will get this artifact from Maven Central Repository

<dependencies>
  <dependency>
    <groupId>am.ik.marked4j</groupId>
    <artifactId>marked4j</artifactId>
    <version>0.11.0</version>
  </dependency>
</dependencies>

Change Log

  • 0.11.0 (2019-06-06)
    • Use j2v8 instead of Nashorn
  • 0.10.3 (2018-03-08)
    • updated marked version to 0.3.17.
  • 0.10.2 (2017-06-04)
    • fix nested list in TOC
  • 0.10.1 (2017-06-04)
    • supported autoToc
  • 0.10.0 (2017-06-04)
    • supported TOC πŸ‘ (gh-2)
    • updated marked version to 0.3.6.
  • 0.9.2 (2016-01-13)
    • updated marked version to 0.3.5. (gh-11)
  • 0.9.1 (2014-04-06)
    • updated marked version to 0.3.1
    • supported langPrefix option
  • 0.9.0 (2014-03-09)
    • first release

Prerequisites

  • JDK 8+

License

Licensed under the Apache License, Version 2.0.

marked4j's People

Contributors

making avatar emag avatar makits avatar

Stargazers

κΉ€ν—Œμ§ avatar sima.tetteke avatar  avatar Jason Kilic avatar Kengo Asamizu avatar  avatar eiryu avatar horimislime avatar

Watchers

 avatar James Cloos avatar  avatar argius avatar  avatar

Forkers

emag jason-kilic

marked4j's Issues

toc cound not handle Chinese

this.slugify = function (text) {
     return text.toLowerCase().replace(/[^\w]+/g, '-');
}

The code above works fine with English, but it's not compatible with non-English post.

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.