Disable HTML rendering in React-Markdown
This commit is contained in:
@@ -53,7 +53,7 @@ export default class ApiKeyAuth extends React.Component {
|
|||||||
<h4>Api key authorization<JumpToPath path={[ "securityDefinitions", name ]} /></h4>
|
<h4>Api key authorization<JumpToPath path={[ "securityDefinitions", name ]} /></h4>
|
||||||
{ value && <h6>Authorized</h6>}
|
{ value && <h6>Authorized</h6>}
|
||||||
<Row>
|
<Row>
|
||||||
<Markdown options={{html: true, typographer: true, linkify: true, linkTarget: "_blank"}}
|
<Markdown options={{typographer: true, linkify: true, linkTarget: "_blank"}}
|
||||||
source={ schema.get("description") } />
|
source={ schema.get("description") } />
|
||||||
</Row>
|
</Row>
|
||||||
<Row>
|
<Row>
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ export default class BasicAuth extends React.Component {
|
|||||||
<h4>Basic authorization<JumpToPath path={[ "securityDefinitions", name ]} /></h4>
|
<h4>Basic authorization<JumpToPath path={[ "securityDefinitions", name ]} /></h4>
|
||||||
{ username && <h6>Authorized</h6> }
|
{ username && <h6>Authorized</h6> }
|
||||||
<Row>
|
<Row>
|
||||||
<Markdown options={{html: true, typographer: true, linkify: true, linkTarget: "_blank"}}
|
<Markdown options={{typographer: true, linkify: true, linkTarget: "_blank"}}
|
||||||
source={ schema.get("description") } />
|
source={ schema.get("description") } />
|
||||||
</Row>
|
</Row>
|
||||||
<Row>
|
<Row>
|
||||||
|
|||||||
@@ -102,7 +102,7 @@ export default class Oauth2 extends React.Component {
|
|||||||
<div>
|
<div>
|
||||||
<h4>OAuth2.0 <JumpToPath path={[ "securityDefinitions", name ]} /></h4>
|
<h4>OAuth2.0 <JumpToPath path={[ "securityDefinitions", name ]} /></h4>
|
||||||
{ !this.state.appName ? null : <h5>Application: { this.state.appName } </h5> }
|
{ !this.state.appName ? null : <h5>Application: { this.state.appName } </h5> }
|
||||||
<Markdown options={{html: true, typographer: true, linkify: true, linkTarget: "_blank"}}
|
<Markdown options={{typographer: true, linkify: true, linkTarget: "_blank"}}
|
||||||
source={ schema.get("description") } />
|
source={ schema.get("description") } />
|
||||||
|
|
||||||
{ isAuthorized && <h6>Authorized</h6> }
|
{ isAuthorized && <h6>Authorized</h6> }
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ export default class Info extends React.Component {
|
|||||||
</hgroup>
|
</hgroup>
|
||||||
|
|
||||||
<div className="description">
|
<div className="description">
|
||||||
<Markdown options={{html: true, typographer: true, linkify: true, linkTarget: "_blank"}} source={ description } />
|
<Markdown options={{typographer: true, linkify: true, linkTarget: "_blank"}} source={ description } />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -173,7 +173,7 @@ export default class Operation extends React.Component {
|
|||||||
{ description &&
|
{ description &&
|
||||||
<div className="opblock-description-wrapper">
|
<div className="opblock-description-wrapper">
|
||||||
<div className="opblock-description">
|
<div className="opblock-description">
|
||||||
<Markdown options={{html: true, typographer: true, linkify: true, linkTarget: "_blank"}} source={ description } />
|
<Markdown options={{typographer: true, linkify: true, linkTarget: "_blank"}} source={ description } />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ export default class ParameterRow extends Component {
|
|||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td className="col parameters-col_description">
|
<td className="col parameters-col_description">
|
||||||
<Markdown options={{html: true, typographer: true, linkify: true, linkTarget: "_blank"}}
|
<Markdown options={{typographer: true, linkify: true, linkTarget: "_blank"}}
|
||||||
source={ param.get("description") }/>
|
source={ param.get("description") }/>
|
||||||
{(isFormData && !isFormDataSupported) && <div>Error: your browser does not support FormData</div>}
|
{(isFormData && !isFormDataSupported) && <div>Error: your browser does not support FormData</div>}
|
||||||
|
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ export default class Response extends React.Component {
|
|||||||
<td className="col response-col_description">
|
<td className="col response-col_description">
|
||||||
|
|
||||||
<div className="response-col_description__inner">
|
<div className="response-col_description__inner">
|
||||||
<Markdown options={{html: true, typographer: true, linkify: true, linkTarget: "_blank"}} source={ response.get( "description" ) } />
|
<Markdown options={{typographer: true, linkify: true, linkTarget: "_blank"}} source={ response.get( "description" ) } />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{ example ? (
|
{ example ? (
|
||||||
|
|||||||
Reference in New Issue
Block a user