return (
<div className="js-rule-description">
- {defaultSection && (
- <CodeSyntaxHighlighter
- className="coding-rules-detail-description markdown"
- key={defaultSection.key}
- htmlAsString={sanitizeString(defaultSection.content)}
- language={ruleDetails.lang}
- />
- )}
-
{hasDescriptionSection && !defaultSection && (
<>
{introductionSection && (
language={ruleDetails.lang}
/>
)}
-
- <RuleTabViewer ruleDetails={ruleDetails} />
</>
)}
+ <RuleTabViewer ruleDetails={ruleDetails} />
+
{ruleDetails.isExternal && (
<div className="coding-rules-detail-description rule-desc markdown">
{translateWithParameters('issue.external_issue_description', ruleDetails.name)}