Title: HTML code issues
Last modified: May 21, 2017

---

# HTML code issues

 *  [bg17aw](https://wordpress.org/support/users/bg17aw/)
 * (@bg17aw)
 * [9 years ago](https://wordpress.org/support/topic/html-code-issues/)
 * Hi,
    great plugin, however, I wonder if you could do something about the code
   generator: – for a paragraph, the code generated is
 *     ```
       <p>
       text
       </p>
       ```
   
 * Why not `<p>text</p>`?
 * – all centered text is left aligned in my tests
 * – tables are lost, i tried another plugin called “Docxpresso” that keeps the 
   tables perfectly but doesn’t allow raw html code editing. Maybe you guys can 
   get inspiration from that to make a killer product?
 * It would be great if you could fix these small issues.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Michael Williamson](https://wordpress.org/support/users/michaelwilliamson/)
 * (@michaelwilliamson)
 * [9 years ago](https://wordpress.org/support/topic/html-code-issues/#post-9153351)
 * The choice of how to layout the raw HTML is subjective. There’s no layout that’s
   going to keep everyone happy, so I chose one that seems readable to me.
 * Mammoth intentionally ignores formatting details such as the alignment of the
   text, and instead only relies on the styles applied to the text. If you use your
   own custom styles, you can use style maps to map those Word styles to the appropriate
   CSS styles.
 * When you say the tables are lost, do you mean that the entire table is missing
   or that it isn’t formatted as you’d expect? If the table is missing, then a minimal
   example document would be useful to investigate the issue.

Viewing 1 replies (of 1 total)

The topic ‘HTML code issues’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/mammoth-docx-converter.svg)
 * [Mammoth .docx converter](https://wordpress.org/plugins/mammoth-docx-converter/)
 * [Support Threads](https://wordpress.org/support/plugin/mammoth-docx-converter/)
 * [Active Topics](https://wordpress.org/support/plugin/mammoth-docx-converter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mammoth-docx-converter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mammoth-docx-converter/reviews/)

## Tags

 * [docx](https://wordpress.org/support/topic-tag/docx/)

 * 1 reply
 * 2 participants
 * Last reply from: [Michael Williamson](https://wordpress.org/support/users/michaelwilliamson/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/html-code-issues/#post-9153351)
 * Status: not resolved