aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js')
-rw-r--r--server/sonar-web/src/main/js/apps/web-api/components/Domain.js6
-rw-r--r--server/sonar-web/src/main/js/apps/web-api/components/Menu.js8
2 files changed, 10 insertions, 4 deletions
diff --git a/server/sonar-web/src/main/js/apps/web-api/components/Domain.js b/server/sonar-web/src/main/js/apps/web-api/components/Domain.js
index 45513d9f9e7..0c79d15d6b8 100644
--- a/server/sonar-web/src/main/js/apps/web-api/components/Domain.js
+++ b/server/sonar-web/src/main/js/apps/web-api/components/Domain.js
@@ -57,7 +57,11 @@ export default class Domain extends React.PureComponent {
</span>}
</header>
- {domain.description && <p className="web-api-domain-description">{domain.description}</p>}
+ {domain.description &&
+ <div
+ className="web-api-domain-description markdown"
+ dangerouslySetInnerHTML={{ __html: domain.description }}
+ />}
<div className="web-api-domain-actions">
{filteredActions.map(action => (
diff --git a/server/sonar-web/src/main/js/apps/web-api/components/Menu.js b/server/sonar-web/src/main/js/apps/web-api/components/Menu.js
index 566533c79c7..815cb1d4077 100644
--- a/server/sonar-web/src/main/js/apps/web-api/components/Menu.js
+++ b/server/sonar-web/src/main/js/apps/web-api/components/Menu.js
@@ -65,9 +65,11 @@ export default class Menu extends React.PureComponent {
{domain.deprecated && <DeprecatedBadge />}
{domain.internal && <InternalBadge />}
</h3>
- <p className="list-group-item-text">
- {domain.description}
- </p>
+ {domain.description &&
+ <div
+ className="list-group-item-text markdown"
+ dangerouslySetInnerHTML={{ __html: domain.description }}
+ />}
</Link>
))}
</div>