Escape pipe characters for Markdown table cells.
(s: str)
| 88 | return f'`{type_str}`' |
| 89 | |
| 90 | def _esc(s: str) -> str: |
| 91 | """Escape pipe characters for Markdown table cells.""" |
| 92 | return s.replace('|', '\\|') |
| 93 | |
| 94 | def _brief_or_empty(obj: dict) -> str: |
| 95 | return _esc(_clean_brief(obj.get('brief', '') or '')) |
no outgoing calls
no test coverage detected