RittmanMead / md_to_conf

Markdown to Confluence import
MIT License
231 stars 84 forks source link

Mangles characters in code block #1

Open rmoff opened 10 years ago

rmoff commented 10 years ago

< because &lt; etc

PMudra commented 6 years ago

This README.md will produce an error:

Markdown input

# Hello world

```html
<img src="hello.world.png" />
### Error

Updating page... Traceback (most recent call last): File "md2conf.py", line 456, in main() File "md2conf.py", line 451, in main createPage(title, html, ancestors) File "md2conf.py", line 285, in createPage updatePage(pageId, title, body, version, ancestors, attachments) File "md2conf.py", line 315, in updatePage body = addImages(pageId, body) File "md2conf.py", line 219, in addImages altText = re.search('alt="(.*?)"', tag).group(1) AttributeError: 'NoneType' object has no attribute 'group'