Skip to content

Commit d5a6680

Browse files
authored
Merge pull request linode#70 from linode/development
Add latest to release branch
2 parents bca52ca + eb99aab commit d5a6680

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

getDependencies.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,6 @@ rm static/api/docs/v4/openapi.yaml.bak
3535
echo
3636
printf "${BLUE}Converting YAML to JSON${NC}\n"
3737
node_modules/yamljs/bin/yaml2json static/api/docs/v4/openapi.yaml > static/api/docs/v4/spec.json
38+
# some data manipulation to fix the result of the conversion above
39+
sed -i.bak 's@\\\\[[:space:]]@\\\\\\n @g' static/api/docs/v4/spec.json
40+
rm static/api/docs/v4/spec.json.bak

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)