dgautier / markdown-to-asciidoc

Java Library to convert Markdown to AsciiDoc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Markdown to AsciiDoc converter

Build Status Publish Status

Join%20Chat badge maven

A small, lightweight converter for Markdown to AsciiDoc written in Java, and based on Pegdown.

Uses Cucumber tests as a reusable set to test conversion between Markdown and AsciiDoc.

Features

Currently, the following are supported by the Markdown to AsciiDoc converter:

  • Code blocks

  • Definition lists

  • Headings

  • Lines

  • Links

  • Lists (ordered, unordered, nested, mixed)

  • Basic markup (bold, italic, monospaced, etc)

  • Tables (including alignments)

Also, currently known not supported items are:

  • Table cell spanning

Usage

Add the following dependency to your project:

nl.jworks.markdown_to_asciidoc:markdown_to_asciidoc:2.0.0

To use the library, call the following:

assertEquals("= Title", Converter.convertMarkdownToAsciiDoc("# Title"));

The Converter converts all Markdown input to AsciiDoc.

Uses

Currently, the conversion library is used in the IntelliJ AsciiDoc Plugin to seamlessly convert Markdown to AsciiDoc.

If you know of any projects using the library, please let me know on Twitter: @epragt.

Bugs

If you find a bug or a missing feature, please report it the Github Issue Tracker.

About

Java Library to convert Markdown to AsciiDoc

License:Other


Languages

Language:Java 53.4%Language:Gherkin 46.4%Language:Shell 0.2%