-
Notifications
You must be signed in to change notification settings - Fork 57
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
[BUGFIX] utilise un nouveau composant pour afficher le markdown (pix-12552) #8947
Conversation
Une fois les applications déployées, elles seront accessibles via les liens suivants :
Les variables d'environnement seront accessibles via les liens suivants : |
3070d43
to
547702b
Compare
|
||
// then | ||
assert.ok(screen.getByRole('link', { name: 'monpix' })); | ||
assert.ok(screen.getByText(/toto/)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ici on valide que la balise est transformé en texte (idem pour script)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<toto\/>
pour valider que c'est sanitize ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
edit : le get by text suffit.
39a218a
to
f4f18b8
Compare
Test fonc(Lionel) ok ! Plus possible d'injecter du JS dans les champs incriminés ✅ |
f4f18b8
to
6a85f4a
Compare
orga/package.json
Outdated
@@ -133,5 +132,9 @@ | |||
"striptags": "^3.2.0", | |||
"stylelint": "^16.0.0", | |||
"webpack": "^5.90.3" | |||
}, | |||
"dependencies": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
en dev ? 🤔
6a85f4a
to
1841907
Compare
1841907
to
ad88b5f
Compare
ad88b5f
to
4e207f1
Compare
🦄 Problème
On souhaite améliorer la gestion des règles de transformation du html du composant MarkdownToHtml, or celui ci est difficilement paramétrable
🤖 Proposition
On implémente un nouveau composant pour avoir la main sur la transformation html
🌈 Remarques
On a dupliqué le composant dans admin (mais sous la forme classique (fichiers hbs + js)
💯 Pour tester
sur orga
sur admin