-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
excerpt and more cam differ from content #2538
Comments
I have verified and reproduced this issue. I think simply swap the order of |
I have created a PR to fix this #2539 |
The fix will merge into next build. Thanks for submitting the issue. 😄 |
But if you add a custom filter (say, in a theme) what is the order it is processed? Is it then still the last step? Shouldn't the default be to have it execute last. In that case we can give it a priority if |
If you add a custom filter, the process order is hexo filters then custom filters. As the external_link is handled by hexo filters, so it should be fine if add custom filters. |
Thanks for clearing that up! |
The contents of the
excerpt
andmore
can differ fromcontent
on render.This is caused by the
excerpt
filter being run too early.Easiest reproducible example:
hero serve
and open served project<!--more-->
tag to hello-world.mdexternal_link
filter (and possible others) are run after theexcept
filter and only change thecontent
and not theexcerpt
andmore
. So the content gets modified after the split.hexo: 3.3.1
hexo-cli: 1.0.2
node: 6.10.0
The text was updated successfully, but these errors were encountered: