File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
src/components/2_molecules Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -35,3 +35,6 @@ rm static/api/docs/v4/openapi.yaml.bak
35
35
echo
36
36
printf " ${BLUE} Converting YAML to JSON${NC} \n"
37
37
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
Original file line number Diff line number Diff line change 1
1
import React from "react" ;
2
+ import Markdown from "react-markdown/with-html" ;
2
3
3
4
export const ParamDisplay = props => {
4
5
const { param } = props ;
@@ -38,7 +39,15 @@ export const ParamDisplay = props => {
38
39
< span className = "tag tag-light" > { param . schema . default } </ span >
39
40
</ div >
40
41
) }
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
+ ) }
42
51
</ div >
43
52
</ div >
44
53
</ div >
You can’t perform that action at this time.
0 commit comments