parseMarkdownCodeWithLanguage static method

String parseMarkdownCodeWithLanguage(
  1. String text,
  2. String language
)

Implementation

static String parseMarkdownCodeWithLanguage(String text, String language) {
  return """
```${language}
${text}
```"""
      .trim();
}