Fixes #3078 - Added breaks: true to Remarkable so newlines are rendered as line breaks. Remove margin-top from <p> tags within .model elements to fix the alignment in the model's description text.

This commit is contained in:
Owen Conti
2017-07-08 10:48:52 -06:00
parent 42efd8a60e
commit 5d9ab6a0a2
2 changed files with 5 additions and 1 deletions

View File

@@ -19,7 +19,7 @@ function Markdown({ source }) {
} }
return <Remarkable return <Remarkable
options={{html: true, typographer: true, linkify: true, linkTarget: "_blank"}} options={{html: true, typographer: true, linkify: true, breaks: true, linkTarget: "_blank"}}
source={sanitized} source={sanitized}
></Remarkable> ></Remarkable>
} }

View File

@@ -79,6 +79,10 @@
border-radius: 4px; border-radius: 4px;
background: rgba(#000,.7); background: rgba(#000,.7);
} }
p {
margin: 0 0 1em 0;
}
} }