File: _utils.py

package info (click to toggle)
python-docstring-to-markdown 0.15-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 228 kB
  • sloc: python: 1,761; makefile: 2
file content (5 lines) | stat: -rw-r--r-- 107 bytes parent folder | download
1
2
3
4
5
from re import sub


def escape_markdown(text: str) -> str:
    return sub(r'([\\#*_[\]])', r'\\\1', text)