Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const CustomCard = ({
onClick={(e) => e.stopPropagation()}
>
<YFMWrapper
className={b('card-body-link-code')}
contentClassName={b('card-body-link-code')}
content={`<code>${content}</code>`}
/>
</Link>
Expand All @@ -91,8 +91,9 @@ export const CustomCard = ({
<CardBase.Content>
{description && (
<YFMWrapper
className={b('card-body-description')}
contentClassName={b('card-body-description')}
content={yfmTransform(description)}
tagName="div"
/>
)}
</CardBase.Content>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const customDecorator: BlockDecorator = ({type, children}) => {
<YFMWrapper content={yfmTransform(CUSTOM_DECORATOR_DESCRIPTION)} />
<Link href="https://github.com/gravity-ui/page-constructor/blob/main/src/containers/PageConstructor/__stories__/components/CustomBlocksTemplate.tsx">
<YFMWrapper
className={b('code')}
contentClassName={b('code')}
content={`<code>${CUSTOM_DECORATOR_CODE}</code>`}
/>
</Link>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const CustomHeader = ({url, description, ...props}: CustomHeaderProps) =>
>
<Wrapper className={b('code')} href={url ?? ''}>
<YFMWrapper
className={b('code-yfm')}
contentClassName={b('code-yfm')}
content={`<code>${CUSTOM_HEADER_CODE}</code>`}
/>
</Wrapper>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ export const CustomNavigationItem = ({url, title, description}: CustomNavigation
<div className={b('popover-content')}>
{description && (
<YFMWrapper
className={b('popover-content-description')}
contentClassName={b('popover-content-description')}
content={yfmTransform(description)}
tagName="div"
/>
)}
<Wrapper className={b('popover-content-code')} href={url ?? ''}>
Expand Down