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

Fix page.excerpt highlight issue #45

Merged
merged 1 commit into from Aug 8, 2018

Conversation

Snowgan
Copy link
Contributor

@Snowgan Snowgan commented Aug 6, 2018

Hexo filter type 'after_post_render' have registered 'excerpt.js' filter by default which will generate page.excerpt and page.more variables.
As default highlight is disabled, these two variables cannot be highlighted correctly.
So set PrismPlugin priority to make sure it executed first, and then execute the 'excerpt.js' filter.

Hexo filter type 'after_post_render' have registered 'excerpt.js' filter by default which will generate page.excerpt and page.more variables.
As default highlight is disabled, these two variables cannot be highlighted correctly.
So set PrismPlugin priority to make sure it executed first, and then execute the 'excerpt.js' filter.
@ele828
Copy link
Owner

ele828 commented Aug 8, 2018

It's a good improvement and this pr looks good to me, thanks for your contribution! 👍

@ele828 ele828 merged commit 1f133ff into ele828:master Aug 8, 2018
@Snowgan
Copy link
Contributor Author

Snowgan commented Aug 9, 2018

Thanks for acceptance! This tool is very helpful.

@Snowgan Snowgan deleted the hotfix/excerpt-highlight branch August 9, 2018 01:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants