Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yes, we were able to handle pasting from Word. We basically gathered a ton of examples of the HTML which Word generates and then developed mappings from that HTML to the actions we supported. TDD and unit testing made it fairly efficient.

Keep in mind that we purposefully did not support the full scope of HTML which Word would output. Authors couldn't make their headlines 50pt Comic Sans in red, for example.

I'd love to share the code, but unfortunately it's from an old employer and I no longer have access (or the right to share the code).



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: