add markdown clarifications
This commit is contained in:
parent
21518c8696
commit
672b456193
2 changed files with 7 additions and 1 deletions
|
@ -120,6 +120,11 @@
|
||||||
p.emptyDesc {
|
p.emptyDesc {
|
||||||
color: rgba(66, 66, 66, 0.6);
|
color: rgba(66, 66, 66, 0.6);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a.mdSupport {
|
||||||
|
color: #4fb5c0;
|
||||||
|
font-size: 11px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.CardOnGraph.hasAttachment .scroll {
|
.CardOnGraph.hasAttachment .scroll {
|
||||||
height: auto;
|
height: auto;
|
||||||
|
|
|
@ -26,7 +26,7 @@ class MdTextArea extends RIETextArea {
|
||||||
class Desc extends Component {
|
class Desc extends Component {
|
||||||
render = () => {
|
render = () => {
|
||||||
const descHTML = (!this.props.desc && this.props.authorizedToEdit)
|
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)
|
: Util.mdToHTML(this.props.desc)
|
||||||
|
|
||||||
if (this.props.authorizedToEdit) {
|
if (this.props.authorizedToEdit) {
|
||||||
|
@ -51,6 +51,7 @@ class Desc extends Component {
|
||||||
dangerouslySetInnerHTML: { __html: descHTML }
|
dangerouslySetInnerHTML: { __html: descHTML }
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
<a className="mdSupport" href="http://commonmark.org/help/" target="_blank">learn markdown</a>
|
||||||
<div className="clearfloat"></div>
|
<div className="clearfloat"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Reference in a new issue