mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-26 10:33:44 +03:00
parent
8fb9cd6bac
commit
2ecc8bc58e
|
@ -89,13 +89,13 @@ export class SectionItem extends React.Component<ContentItemProps> {
|
|||
{name}
|
||||
</H1>
|
||||
{components ? (
|
||||
<Markdown source={description || ''} />
|
||||
) : (
|
||||
<StoreConsumer>
|
||||
{store => (
|
||||
<Markdown source={description || ''} allowedComponents={components} store={store} />
|
||||
)}
|
||||
</StoreConsumer>
|
||||
) : (
|
||||
<Markdown source={description || ''} />
|
||||
)}
|
||||
</MiddlePanel>
|
||||
</Row>
|
||||
|
|
|
@ -76,11 +76,11 @@ export class OpenAPIParser {
|
|||
const description = spec.info.description || '';
|
||||
const legacySecurityRegexp = new RegExp(
|
||||
COMPONENT_REGEXP.replace('{component}', '<security-definitions>'),
|
||||
'gmi',
|
||||
'mi',
|
||||
);
|
||||
const securityRegexp = new RegExp(
|
||||
MDX_COMPONENT_REGEXP.replace('{component}', 'security-definitions'),
|
||||
'gmi',
|
||||
'mi',
|
||||
);
|
||||
if (!legacySecurityRegexp.test(description) && !securityRegexp.test(description)) {
|
||||
const comment = buildComponentComment('security-definitions');
|
||||
|
|
Loading…
Reference in New Issue
Block a user