Skip to content

Commit eb99aab

Browse files
authored
Merge pull request linode#69 from alioso/CT-900
CT-900 Add missing markup support for query parameters
2 parents 8349953 + 2af896d commit eb99aab

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/components/2_molecules/paramDisplay.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import React from "react";
2+
import Markdown from "react-markdown/with-html";
23

34
export const ParamDisplay = props => {
45
const { param } = props;
@@ -38,7 +39,15 @@ export const ParamDisplay = props => {
3839
<span className="tag tag-light">{param.schema.default}</span>
3940
</div>
4041
)}
41-
{param.description && <div>{param.description}</div>}
42+
{param.description && (
43+
<div>
44+
<Markdown
45+
source={param.description}
46+
escapeHtml={false}
47+
className="api-desc"
48+
/>
49+
</div>
50+
)}
4251
</div>
4352
</div>
4453
</div>

0 commit comments

Comments
 (0)