Skip to content
This repository was archived by the owner on Mar 24, 2023. It is now read-only.

Grayson/render markdown links#1106

Merged
GraysonNull merged 2 commits intomasterfrom
grayson/render-markdown-links
Mar 6, 2020
Merged

Grayson/render markdown links#1106
GraysonNull merged 2 commits intomasterfrom
grayson/render-markdown-links

Conversation

@GraysonNull
Copy link
Contributor

What I Did

Added markdown styling to config item help texts.

How I Did it

Wrapped help_text of various config items in a <Markdown> component so that links and other styles will be rendered.

How to verify it

Create a config item that contains a link in the help_text. That should be rendered as a clickable link when viewing the rendered version of the config.

Description for the Changelog

Fix some config items types not rendering help text as markdown making links not clickable.

Picture of a Ship (not required but encouraged)

diamond-princess

null}
</label>
{this.props.help_text !== "" ? <p className="field-section-help-text u-marginTop--small u-lineHeight--normal u-marginLeft--small">{this.props.help_text}</p> : null}
{this.props.help_text !== "" ?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar blocks of code found in 4 locations. Consider refactoring.

@GraysonNull GraysonNull merged commit 56d5dae into master Mar 6, 2020
@GraysonNull GraysonNull deleted the grayson/render-markdown-links branch March 6, 2020 19:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants