flattenToPrefix

fun flattenToPrefix(relativePath: String): String

Flattens an already-built relative path string. Same convention as flattenedDiagramName: / → --. Used by the markdown / html pipelines when they only have a path string in hand.