To add multiline support you can compile the regexp with:

```python
BOLDCODE_RE = re.compile(r'(\*\*)(.*?)(\*\*)', re.MULTILINE)
```