Skip to content

AlexPl292/mark-down-to-slack

Repository files navigation

mark-down-to-slack

Markdown to Slack-markdown converter for java.

Adding as a dependency

Gradle:

allprojects {
    repositories {
        ...
        maven { url 'https://jitpack.io' }
    }
}

dependencies {
    implementation 'com.github.AlexPl292:mark-down-to-slack:1.1.2'
}

Or visit jitpack to find out other ways.

Usage

import dev.feedforward.markdownto.DownParser;

public static void main() {
  String markdown = "# Header";
  String slackMarkdown = new DownParser(input).toSlack().toString();
  System.out.println(slackMarkdown);
}