Skip to content

refactor: use rehype plugin to hoist Raw component content #319

Description

@shellscape

Refactor the render function to use a new rehype plugin named rawPlugin which is returned from a new function getRawPlugin that follows the same patterns from getMovePlugin in move-style.ts.

Follow these rules:

  • Do not under any circumstances modify a package.json file
  • Do not create regular expressions unless absolutely necessary and all other options have been exhausted
  • Do not create new string manipulations unless absolutely necessary and all other options have been exhausted
  • Do not over-engineer
  • Do not modify existing snapshots
  • Do not modify HTML comments, even if they look incorrect at a glance
  • Do choose the MINIMAL path instead of the elaborate path-
  • Do keep things simple
  • Do run tests to make sure your changes do not break existing tests or snapshots

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions