Bug with [code]anything[/code] on a single line by itself

Discourse supports the BBcode but You need a line break after [code] block for it to work.
eg:

[code]
hatiden@ubuntu:~$ gedit ~/.bashrc

hatiden@ubuntu:~$ gedit ~/.bashrc
hatiden@ubuntu:~$ cd /home/hatiden/garfield/

hatiden@ubuntu:~/garfield$ ls