praekeltfoundation / molo

Molo is a set of tools for publishing low end mobi sites with a community focus.
http://molo.rtfd.org
BSD 2-Clause "Simplified" License
27 stars 5 forks source link

Handle html in markdown content blocks #713

Closed KaitCrawford closed 4 years ago

KaitCrawford commented 4 years ago

Markdown blocks are used in the body of ArticlePages. They accept html and markdown content as their value. However we only want to use one formatting type when sendin the content via th API.

Therefore, this PR removes the validation that prevents html from being added to the content. It also overwrites the api representation of the block to convert any html content to purely markdown before sending it via the API.