fix bug in displaying markdown after post creation