add markdown clarifications

This commit is contained in:
Connor Turland 2017-09-12 21:37:49 -04:00
parent 21518c8696
commit 672b456193
2 changed files with 7 additions and 1 deletions

View file

@ -120,6 +120,11 @@
p.emptyDesc {
color: rgba(66, 66, 66, 0.6);
}
a.mdSupport {
color: #4fb5c0;
font-size: 11px;
}
}
.CardOnGraph.hasAttachment .scroll {
height: auto;

View file

@ -26,7 +26,7 @@ class MdTextArea extends RIETextArea {
class Desc extends Component {
render = () => {
const descHTML = (!this.props.desc && this.props.authorizedToEdit)
? '<p class="emptyDesc">Edit the description...</p>'
? '<p class="emptyDesc">Edit the description... (supports markdown)</p>'
: Util.mdToHTML(this.props.desc)
if (this.props.authorizedToEdit) {
@ -51,6 +51,7 @@ class Desc extends Component {
dangerouslySetInnerHTML: { __html: descHTML }
}}
/>
<a className="mdSupport" href="http://commonmark.org/help/" target="_blank">learn markdown</a>
<div className="clearfloat"></div>
</div>
</div>