Skip to content

Commit

Permalink
Update reference generation
Browse files Browse the repository at this point in the history
  • Loading branch information
alllex committed Jan 15, 2024
1 parent f77b36f commit 77a0951
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions buildSrc/src/main/kotlin/GenerateQuickReferenceMarkdown.kt
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ abstract class GenerateQuickReferenceMarkdown : DefaultTask() {
for (entry in entries) {
append("| ")
append(entry.description)
append("<br/>")
append("<br/>")
append("&#13;")
append("&#13;")
append("Parses: ")
append(entry.testCases.joinToString(", ") { "`$it`" })
append(" | ")
append("Procedural:<br/>")
append("Procedural:&#13;")
append(entry.proceduralGrammar.toMultilineMarkdownCodeBlock())
append("Combinator:<br/>")
append("Combinator:&#13;")
append(entry.combinatorGrammar.toMultilineMarkdownCodeBlock())
appendLine(" |")
}
Expand All @@ -42,7 +42,7 @@ abstract class GenerateQuickReferenceMarkdown : DefaultTask() {

private fun List<String>.toMultilineMarkdownCodeBlock(): String {
// TODO: syntax highlight
return joinToString("<br/>", prefix = "<pre>", postfix = "</pre>")
return joinToString("&#13;", prefix = "<pre lang=\"kotlin\">", postfix = "</pre>")
}

private data class QuickRefEntry(
Expand Down

0 comments on commit 77a0951

Please sign in to comment.