Skip to content

Conversation

cballevre
Copy link
Contributor

@cballevre cballevre commented Sep 4, 2024

This component is responsible to render Markdown with Cozy design. At Cozy, we use component to style whereas React-markdown transform markdown with html tag only so the style is not correct. In some apps (cozy-settings, cozy-store, harvest, cozy-ui) we already use this library but each time make a new version of the wrapper. This PR allows you to share the component and its styles between apps.

You can found a demo on my github : https://cballevre.github.io/cozy-ui/react/#!/Core/Markdown

Capture d’écran 2024-09-04 à 15 39 19

@cballevre cballevre marked this pull request as ready for review September 5, 2024 07:04
)
}

export { Markdown }
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

je sais qu'il y a débat, mais par souci de cohérence, peut-on faire une export par défaut stp ? 90% des composants de cozy-ui sont en default.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep je te fais ça

@cballevre cballevre merged commit 15142cc into master Sep 5, 2024
5 checks passed
@cballevre cballevre deleted the feat/add-markdown branch September 5, 2024 08:46
@cozy-bot
Copy link

cozy-bot commented Sep 5, 2024

🎉 This PR is included in version 111.9.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants