Closed matklad closed 1 year ago
Pandoc handles this by adding a uri
class to "autolinks" (<..>). We could do something similar.
My gut feeling is probably do just
{
"tag": "autolink",
"destination": "http://example.com"
}
It seems best to add "desugaring" of the destination into children to the rendered -- it might want to, for example, strip the protocol so that it is rendered as example.com
.
Yes, that probably makes more sense.
The problem here is that the two cases are indistinguishable on the AST layer, but it might be usful. In particular, they might want different
word-break
css.