Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

176 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MD2odt

Build Status codecov

WORK IN PROGRESS

MD2odt is a easy to use library for converting Markdown to OpenDocument (.odt).

Features

  • Supports templates

  • Supports various Markdown extensions

    • Autolinks
    • Emoji
    • Strikethrough
    • Subscript
    • Superscript
    • Tables
    • Table of contents
  • Syntax highlighting

Example

Maven

<repositories>
    <repository>
        <id>jitpack.io</id>
        <url>https://jitpack.io</url>
    </repository>
</repositories>

Dependency:

<dependency>
    <groupId>com.github.abcBHM</groupId>
    <artifactId>MD2odt</artifactId>
    <version>master-SNAPSHOT</version>
</dependency>

Source code

import cz.zcu.kiv.md2odt.MD2odt;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.nio.file.Paths;

public class Example {

    public static void main(String... args) throws IOException {
        MD2odt.converter()
                .setInput(Paths.get("example.md"), StandardCharsets.UTF_8)
                .setTemplate(Paths.get("template.odt"))
                .setOutput(Paths.get("result.odt"))
                .enableAllExtensions()
                .convert();
    }
}

License

This project is licensed under the MIT License - see the LICENSE.txt file for details.

About

Library for converting Markdown to OpenDocument (.odt)

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages