-
Notifications
You must be signed in to change notification settings - Fork 0
Lexical generator #97
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
base: dev
Are you sure you want to change the base?
Conversation
* missing : tables, nested list styles, checklists
| return html | ||
| .replaceAll('class=""', '') | ||
| .replaceAll(/(?<=<[^>]+)(?<!\w|")\s+(?=[^>]*>)|(?<=<[^>]*(?:\w|"))\s+(?=>)/g, ''); |
Check failure
Code scanning / CodeQL
Incomplete multi-character sanitization High
<script
This string may still contain
<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.
Ça tombe bien, c'est pas ce que je veux faire 😋
Et l'input est trusted puisque c'est ce que je génère avec lexical... (qui sanitize déjà le contenu utilisateur)
0314dc0 to
f99ae4d
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## dev #97 +/- ##
==========================================
- Coverage 83.19% 79.65% -3.54%
==========================================
Files 140 118 -22
Lines 2398 2335 -63
Branches 470 387 -83
==========================================
- Hits 1995 1860 -135
+ Misses 398 397 -1
- Partials 5 78 +73 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Generates HTML (for email embedding cf. daymail) from lexical rich-content.
This should support all nodes implemented and render the html as displayed in the frontend rich text editor.
Of course, emails have a lack of features and the rendered result won't be exactly the same as original web presentation (eg. the font won't be the same as we cannot safely import a font, etc)
This branch is based on
feat/asso/editFonctionnalités manquantes :
::beforecss)marker)Outils manquants :
lexical/headless)