Skip to content

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

Answered by lelit
lelit asked this question in Q&A
Discussion options

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

Comment options

You must be logged in to vote
9 replies
@lelit
Comment options

@AA-Turner
Comment options

@lelit
Comment options

Answer selected by AA-Turner
@lelit
Comment options

@lelit
Comment options

@lelit
Comment options

@AA-Turner
Comment options

Comment options

You must be logged in to vote
1 reply
@lelit
Comment options

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