in integrations/github/src/main/kotlin/io/klibs/integration/github/GitHubIntegrationKohsukeLibrary.kt [191:199]
override fun markdownToHtml(markdownText: String, contextRepositoryId: Long?): String? {
markdownRequestCounter.increment()
return if (contextRepositoryId == null) {
githubApi.renderMarkdown(markdownText).readText()
} else {
getRepositoryById(contextRepositoryId)?.markdownRender(markdownText, MarkdownMode.GFM)
}
}