(command, cwd=None)
| 328 | text = re.sub(r"~~~[^\n]*\n(.*?)~~~", lambda m: "\n" + m.group(1).strip() + "\n", text, flags=re.DOTALL) |
| 329 | text = re.sub(r"<!--.*?-->", "", text, flags=re.DOTALL) |
| 330 | text = re.sub(r"<style.*?>.*?</style>", "", text, flags=re.DOTALL | re.IGNORECASE) |
| 331 | text = re.sub(r"<script.*?>.*?</script>", "", text, flags=re.DOTALL | re.IGNORECASE) |
| 332 | text = re.sub(r"!\[[^\]]*\]\([^)]*\)", "", text) |
| 333 | text = re.sub(r"\[([^\]]+)\]\([^)]*\)", r"\1", text) |
| 334 | if "<" in text and ">" in text: |
| 335 | text = html_to_text(text) |
| 336 | text = re.sub(r"`([^`]+)`", r"\1", text) |
| 337 | text = re.sub(r"\*\*([^*]+)\*\*", r"\1", text) |
| 338 | text = re.sub(r"__([^_]+)__", r"\1", text) |
| 339 | text = re.sub(r"~~([^~]+)~~", r"\1", text) |
| 340 | |
| 341 | cleaned_lines = [] |
no test coverage detected