vericast / nbconflux

nbconflux converts Jupyter Notebooks to Atlassian Confluence pages
BSD 3-Clause "New" or "Revised" License
117 stars 33 forks source link

Sanitize HTML to avoid 400 errors when posting disallowed attrs/tags #1

Closed parente closed 6 years ago

parente commented 6 years ago

e.g., <img> is not a supported tag. Adding an image in a markdown cell causes a 400. e.g. pandas added a stylesheet and style attributes between 0.19 and 0.21. Causes a 400 e.g. --- in markdown becomes <hr> but the storage format wants <hr />

Requires hooking into the md/html sanitization routines in nbconvert.