Skip to content

excerpt and more cam differ from content #2538

@sy1vain

Description

@sy1vain

The contents of the excerpt and more can differ from content on render.

This is caused by the excerpt filter being run too early.

Easiest reproducible example:

  • create new hexo project
  • hero serve and open served project
  • all external links open in new tab
  • add <!--more--> tag to hello-world.md
  • refresh served project
  • all external links do not open in new tab

external_link filter (and possible others) are run after the except filter and only change the content and not the excerpt and more. So the content gets modified after the split.

hexo: 3.3.1
hexo-cli: 1.0.2
node: 6.10.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions