diff --git a/packages/code-du-travail-frontend/src/information/Components/BlockGraphic.tsx b/packages/code-du-travail-frontend/src/information/Components/BlockGraphic.tsx index 71868fd663..f06e9fe2df 100644 --- a/packages/code-du-travail-frontend/src/information/Components/BlockGraphic.tsx +++ b/packages/code-du-travail-frontend/src/information/Components/BlockGraphic.tsx @@ -1,4 +1,4 @@ -import { toUrl, xssWrapper } from "../../lib"; +import { toUrl } from "../../lib"; import ImageWrapper from "../../common/ImageWrapper"; import { @@ -9,6 +9,7 @@ import { Wrapper, } from "@socialgouv/cdtn-ui"; import styled from "styled-components"; +import DisplayContentContribution from "../../contributions/DisplayContentContribution"; export const BlockGraphic = ({ block }) => { const { imgUrl, altText, fileUrl, html: htmlGraphic, size } = block; @@ -29,10 +30,9 @@ export const BlockGraphic = ({ block }) => { - + + + ); diff --git a/packages/code-du-travail-frontend/src/information/Components/BlockList.tsx b/packages/code-du-travail-frontend/src/information/Components/BlockList.tsx index 55dbc79d61..7b1cd7fa18 100644 --- a/packages/code-du-travail-frontend/src/information/Components/BlockList.tsx +++ b/packages/code-du-travail-frontend/src/information/Components/BlockList.tsx @@ -7,6 +7,7 @@ import styled from "styled-components"; import { BlockGraphic } from "./BlockGraphic"; import { ContentList } from "../../content"; import Html from "../../common/Html"; +import DisplayContentContribution from "../../contributions/DisplayContentContribution"; export const BlockList = ({ blocks, @@ -30,7 +31,12 @@ export const BlockList = ({ ); break; case EditorialContentType.markdown: - comp = {block.html}; + comp = ( + + ); break; } return (