Its a format converter. A format converter has to basically handle lots of cases. There is no way a converter can do that in ~200 lines of code for a format as complex as .doc
It probably just strips all but the simplest of markup.
I program for a hobby (though my job occasionally requires a lot of programming). I program primarily in C and python, though I've used over a dozen different languages over the years.