Skip to content

How can I get the target URI of a standalone ref:foo reference? #12792

Closed Answered by lelit
lelit asked this question in Q&A

You must be logged in to vote

Yay, I think I got it!

Basically

  • in the reading phase, I collect those links, parse them and add resulting nodes to the d2node produced by the directive.
  • later, when rendering the diagram, I first replace all those links with subnodes refuri/refid

Thanks a lot!

Replies: 2 comments 10 replies

You must be logged in to vote
9 replies
@lelit

@AA-Turner

@lelit

Answer selected by AA-Turner
@lelit

@lelit

@lelit

@AA-Turner

You must be logged in to vote
1 reply
@lelit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants