Skip to content

use new pipeline and htlengine for full jsdom support #954

@tripodsan

Description

@tripodsan

The improved pipeline now only uses JSDOM. The DOM supporting htlengine can directly use the prepared document thus avoiding to/from HTML serialization roundtrips.

Note the breaking changes:

BREAKING CHANGES:

  • remove htast from context.content schema
  • remove hast from context.response schema
  • add document from to context.response schema
  • context.htast and context.response.hast is no longer generated
  • mdast to jsdom transformation handlers can only return hast (not string, not vdom)
  • html postprocessing pipeline step was renamed from hast to post
  • mixing inline html and markdown no longer works (eg: <em>This is **strong**</em>)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions