MCPcopy Create free account
hub / github.com/NVIDIA/NeMo-Relay / _mdx_safe_code

Function _mdx_safe_code

scripts/docs/generate_rust_library_reference.py:102–107  ·  view source on GitHub ↗

Avoid accidental Fern component tags inside generated Rust signatures.

(value: str)

Source from the content-addressed store, hash-verified

100
101
102def _mdx_safe_code(value: str) -> str:
103 """Avoid accidental Fern component tags inside generated Rust signatures."""
104 return FERN_COMPONENT_TAG_PATTERN.sub(
105 lambda match: f"< {'/' if match.group(1) else ''}{match.group(2)}",
106 value,
107 )
108
109
110def _inline_code(value: str) -> str:

Callers 2

_inline_codeFunction · 0.85
_rust_fenceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected