Hi.
I want to use the Kotlin Playground on my site. But I have a problem with Kotlin code in <> because it gets stripped out.
For example the file with content:
gets translated into:
object HandshakeCalculator {
fun calculateHandshake(number: Int): List {
val binaryToSignal = Signal.values().asList()
val binaryString = number.toString(2)
var result = mutableListOf()
binaryString.reversed().forEachIndexed { index, item ->
if (item == '1') {
if (index < binaryToSignal.size) {
result.add(binaryToSignal[index])
}
}
}
return if (binaryString.reversed().getOrNull(4) == '1') result.reversed() else result
}
}
-> The <Signal> String is removed. How can I teach Grav that it handles the code as it is and does NOT filter anything in it?