This adds handlers for the ImageReference and LinkReference nodes to resolve them down to Slack-compatible links. It doesn't seem possible to look up Definition nodes from the handler arguments, so we crawl the AST beforehand to manually build up our own record, then remove the nodes so that they do not clog up the output with awkward newlines.
This adds handlers for the ImageReference and LinkReference nodes to resolve them down to Slack-compatible links. It doesn't seem possible to look up Definition nodes from the handler arguments, so we crawl the AST beforehand to manually build up our own record, then remove the nodes so that they do not clog up the output with awkward newlines.
Relevant nodes:
This is currently built on top of #20, but I can rebase this on master if you don't want to go ahead with that change.