python-openxml / python-docx

Create and modify Word documents with Python
MIT License
4.6k stars 1.13k forks source link

Support for Tinymce #501

Open ironsilk opened 6 years ago

ironsilk commented 6 years ago

Hi, i would like to ask you if there is any support for directly converting the output generated by TinyMCE editor into a python-docx Document object. Here is a bit of info on what the format looks like (it's html).

ironsilk commented 6 years ago

I've found that i can use Pandoc and PyPandoc to get html translated into any of this formats asciidoc, beamer, commonmark, context, docbook, docbook4, docbook5, docx, dokuwiki, dzslides, epub, epub2, epub3, fb2, gfm, haddock, html, html4, html5, icml, jats, json, latex, man, markdown, markdown_github, markdown_mmd, markdown_phpextra, markdown_strict, mediawiki, ms, muse, native, odt, opendocument, opml, org, plain, pptx, revealjs, rst, rtf, s5, slideous, slidy, tei, texinfo, textile, zimwiki, but i still can't figure out if there is a way to include any of these in a python-docx paragraph without having to parse myself through the text.