(author_body_text, counts)
| 127 | |
| 128 | |
| 129 | def convert_body(author_body_text, counts): |
| 130 | out = [] |
| 131 | in_fence = False |
| 132 | for line in author_body_text.split("\n"): |
| 133 | if _FENCE_RE.match(line): |
| 134 | in_fence = not in_fence |
| 135 | out.append(line) |
| 136 | continue |
| 137 | if in_fence or re.match(r"^ {4,}\S", line): |
| 138 | out.append(line) |
| 139 | continue |
| 140 | out.append(_convert_line(line, counts)) |
| 141 | return "\n".join(out) |
| 142 | |
| 143 | |
| 144 | def post_author(front_matter): |
no test coverage detected