https://github.com/making/marked4j
marked(https://github.com/chjj/marked) for Java which is a markdown parser and compiler
https://github.com/making/marked4j
Last synced: 12 months ago
JSON representation
marked(https://github.com/chjj/marked) for Java which is a markdown parser and compiler
- Host: GitHub
- URL: https://github.com/making/marked4j
- Owner: making
- License: apache-2.0
- Created: 2013-12-07T02:16:38.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2020-10-12T23:57:47.000Z (over 5 years ago)
- Last Synced: 2025-04-06T07:37:33.943Z (about 1 year ago)
- Language: JavaScript
- Size: 75.2 KB
- Stars: 10
- Watchers: 5
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.markdown
- License: LICENSE
Awesome Lists containing this project
README
# Marked4J
[](https://travis-ci.org/making/marked4j)
[](https://www.apache.org/licenses/LICENSE-2.0)
[](https://maven-badges.herokuapp.com/maven-central/am.ik.marked4j/marked4j)
[](https://www.javadoc.io/doc/am.ik.marked4j/marked4j)
[marked](https://github.com/chjj/marked) for Java
## Usage
``` java
String md = "- foo\n- bar\n- baz";
Marked marked = new MarkedBuilder().gfm(true).build();
String expected = "
- \n
- foo \n
- bar \n
- baz \n
assertThat(marked.marked(md), is(expected));
```
## Use with Maven
you will get this artifact from Maven Central Repository
``` xml
am.ik.marked4j
marked4j
0.11.0
```
## 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](https://github.com/making/marked4j/issues/2))
* updated marked version to 0.3.6.
* 0.9.2 (2016-01-13)
* updated marked version to 0.3.5. ([gh-11](https://github.com/making/marked4j/issues/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.