gomuks
gomuks copied to clipboard
New line characters ignored in some code blocks
In Haskell syntax highlighted code blocks, new lines are sometimes not working. For example,
public export
data Binary : Endianness -> Nat -> Type where
Nil : Binary endian 0
(::) : Digit -> Binary endian n -> Binary endian (S n)
in gomuks is rendered as
public export
data Binary : Endianness -> Nat -> Type where Nil : Binary endian 0 (::) : Digit -> Binary endian n -> Binary endian (S n)
Upon further inspection it seems to be that in ui/messages/html/parser.go, "\n" characters are not replaced with <br/>, therefore causing this bug.