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?
For example: I came across the packages remark-slug
and rehype-slug
, and they appear to do basically the same thing—what is the difference between the two?