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

com.litongjava.tio.utils.markdown.MdUtils Maven / Gradle / Ivy

There is a newer version: 3.7.3.v202400213-RELEASE
Show newest version
package com.litongjava.tio.utils.markdown;

public class MdUtils {

  public static String code(String languageName, String string) {
    StringBuffer stringBuffer = new StringBuffer();
    stringBuffer.append("\n");
    stringBuffer.append("```").append(languageName).append("\n");
    stringBuffer.append(string).append("\n");
    stringBuffer.append("```").append("\n");
    return stringBuffer.toString();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy