All Downloads are FREE. Search and download functionalities are using the official Maven repository.

javax0.jamal.asciidoc.converters.MarkdownConverter Maven / Gradle / Ivy

There is a newer version: 2.8.2
Show newest version
package javax0.jamal.asciidoc.converters;

import java.util.Arrays;
import java.util.List;

import static nl.jworks.markdown_to_asciidoc.Converter.convertMarkdownToAsciiDoc;

public class MarkdownConverter extends AbstractConverter {
    private static final List ex = List.of("md", "markdown");

    @Override
    List extensions() {
        return ex;
    }

    @Override
    public List convert(final List original) {
        return Arrays.asList(convertMarkdownToAsciiDoc(String.join("\n", original)).split("\n"));
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy