[PR #5699] feat(docs): Support cross language "auto links" #4595

Closed
opened 2026-02-20 17:50:26 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langchain-ai/langgraph/pull/5699

State: closed
Merged: Yes


Introduces a syntax for cross-reference links that work across language and change behavior depending on which scope they appear in.

@[interrupt]

:::python
@[StateGraph]
:::

:::js
@[create_react_agent]
:::

Can be compiled to


# a link that changes based on global context or compile target
<div> ... </div>  -> `interrupt` in global context

:::python
[StateGraph](link to python cross reference)
:::

:::js
[create_react_agent](link to js cross reference)
:::

TODO:

  • fix broken unit test
  • no f strings in logger (it's a sin)
  • remove cross-refs.txt (we'll instead start updating the cross link map)
**Original Pull Request:** https://github.com/langchain-ai/langgraph/pull/5699 **State:** closed **Merged:** Yes --- Introduces a syntax for cross-reference links that work across language and change behavior depending on which scope they appear in. ```markdown @[interrupt] :::python @[StateGraph] ::: :::js @[create_react_agent] ::: ``` Can be compiled to ```markdown # a link that changes based on global context or compile target <div> ... </div> -> `interrupt` in global context :::python [StateGraph](link to python cross reference) ::: :::js [create_react_agent](link to js cross reference) ::: ``` TODO: - [x] fix broken unit test - [x] no f strings in logger (it's a sin) - [x] remove cross-refs.txt (we'll instead start updating the cross link map)
yindo added the pull-request label 2026-02-20 17:50:26 -05:00
yindo closed this issue 2026-02-20 17:50:26 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraph#4595