diff --git a/app/assets/stylesheets/common/foundation/base.scss b/app/assets/stylesheets/common/foundation/base.scss
index 44ecdde9fea..2ddcaab8987 100644
--- a/app/assets/stylesheets/common/foundation/base.scss
+++ b/app/assets/stylesheets/common/foundation/base.scss
@@ -109,6 +109,9 @@ pre code {
   overflow: auto;
   -moz-tab-size: 4;
   tab-size: 4;
+  &.lang-markdown {
+    white-space: pre-wrap;
+  }
 }
 
 // TODO figure out a clean place to put stuff like this