hedgedoc / react-client

The frontend of the upcoming version 2.0

Home Page:https://hedgedoc.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Remove "native renderer" replacers

mrdrogdrog opened this issue · comments

Which part of the project should be enhanced?
Component replacers

Is your enhancement request related to a problem? Please describe.
Some of the replacers aren't replacing anything at all. They just modify the node and execute "nativeRenderer".

Describe the solution you'd like
Use the html node preprocess (preprocessNodes option of convertHtmlToReact) to modify this nodes before they go into the replacement process.
This would make a clean cut between the preprocessor and the replacement.