-
Notifications
You must be signed in to change notification settings - Fork 38
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
feat(showcase): use marked and prismjs to highlight the code #2436
base: main
Are you sure you want to change the base?
Conversation
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 4bc6de7. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution
✅ Successfully ran 1 targetSent with 💌 from NxCloud. |
84f226e
to
c055f7e
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. Additional details and impacted files☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
219c074
to
7b7eb1d
Compare
apps/showcase/e2e-playwright/sanity/screenshots/visual-sanity.e2e.ts/chromium/localization.png
Outdated
Show resolved
Hide resolved
...showcase/e2e-playwright/sanity/screenshots/visual-sanity.e2e.ts/chromium/dynamic-content.png
Outdated
Show resolved
Hide resolved
7b7eb1d
to
2968f35
Compare
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.
Aligned the theme would be nice, they do not have css var that we can map to?
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.
there are lots of themes we can choose from
I picked this theme to match the one we use in the training (as much as possible, prismjs uses regexes not actual grammar)
acc9d88
to
cf19c15
Compare
}, | ||
markedExtensions: [markedAlert()], | ||
/* Templates are only internal, no need to sanitize */ | ||
sanitize: SecurityContext.NONE |
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.
I guess you can't use HTML because you might have some logic for the clipboard?
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.
I had to add an html attribute on the marked extension to match the CSS of the DF
HTML attributes are sanitized by default
cf19c15
to
4bc6de7
Compare
Proposed change
Following #2414
Replace all usage of
highlight.js
toprismjs
Related issues
- No issue associated -