Open nekochan0122 opened 1 year ago
@NekoChanTaiwan it is possible to change the way links render in markdown using rehype/remark plugins. I think rehype-external-links would work for your use case. It would also give you a way to safely add the rel
attribute, which is good to pay attention to for safety.
@NekoChanTaiwan it is possible to change the way links render in markdown using rehype/remark plugins. I think rehype-external-links would work for your use case. It would also give you a way to safely add the
rel
attribute, which is good to pay attention to for safety.
Idk why this plugin is not working 🥲
Hmm. If you have this configured correctly, I'd have to go look at the code. It is possible that rehype is not processing comment metadata and that is being done manually in Codehike.
Yes, the rehype plugin won't work for this.
Before adding this feature we need a good syntax to pass options to annotations. Maybe something like this:
// link[7:14] https://codehike.org target=_blank title="lorem ipsum"
but I want to make sure it scales with more annotations and options before implementing it.