Avoid accidental Fern component tags inside generated Rust signatures.
(value: str)
| 100 | |
| 101 | |
| 102 | def _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 | |
| 110 | def _inline_code(value: str) -> str: |
no outgoing calls
no test coverage detected