I'm a bit confused. I think remark is a markdown processor, rehype is an html processor. So remark takes some markdown, transforms it, and gives me back some markdown. Rehype takes some html, transforms it, and gives me back some html - is this correct?
I came across the packages remark-slug and rehype-slug and they both do basically the same thing. I do not really understand why one would use one over the other though? Are there advantages or disadvantages (like security risks, access to certain variables) I am not aware of? Or is there a general consensus on when to use what?
Links: remark slug rehype slug