karnov / htmltoword

Ruby html to word gem
MIT License
177 stars 70 forks source link

Inline elements support #42

Closed anitsirc closed 8 years ago

anitsirc commented 8 years ago

After grouping inline elements on mixed content, transformations were generating invalid wordml when inline elements not specified were used.

This PR adds a cleanup template that removes unsupported elements, and simplifies the similar inline elements. The new template is applied before grouping elements.

Add support for strikethrough text, subscripts and superscripts.

Removed replace_values method since its not related to the word file generation and was depending on some partials not included and not related to this project.