• 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

    (@michaelwilliamson)

    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.