-
-
Notifications
You must be signed in to change notification settings - Fork 632
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(shiki): highlight excerpt #1802
Conversation
β Deploy Preview for nuxt-content ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site settings. |
@@ -1,4 +1,5 @@ | |||
import { visit } from 'unist-util-visit' | |||
import { MarkdownRoot } from '../../types' |
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.
import { MarkdownRoot } from '../../types' | |
import type { MarkdownRoot } from '../../types' |
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.
Done
|
||
await Promise.all(codeBlocks.map(highlightBlock)) | ||
await Promise.all(inlineCodes.map(highlightInline)) | ||
// TODO copy highlighted body to excerpt if it is the same |
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.
// TODO copy highlighted body to excerpt if it is the same |
Based on your other PR, #1801 (comment). I think we can simply remove this line
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.
Done
5f5aeca
to
7329679
Compare
7329679
to
4cf6d81
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.
Thanks
π Linked issue
β Type of change
π Description
Highlight the excerpt.
Because the excerpt contains a code too.
π Checklist