javax0.jamal.asciidoc.converters.MarkdownConverter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jamal-asciidoc Show documentation
Show all versions of jamal-asciidoc Show documentation
Asciidoc preprocessor extension
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