Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[VO-710] feat: Add Markdown component #2693

Merged
merged 3 commits into from
Sep 5, 2024
Merged

[VO-710] feat: Add Markdown component #2693

merged 3 commits into from
Sep 5, 2024

Conversation

cballevre
Copy link
Member

@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
Member 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