Support » Plugin: Mammoth .docx converter » Word Heading Getting Extra Tags

  • Resolved Lab41

    (@lab41)


    I’m using default Word headings and when I import it’s adding extra code I want removed.
    <h2>5 Tools To Check Website Speed</h2>

    Any idea how to disable this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Michael Williamson

    (@michaelwilliamson)

    I might have misunderstood, but it sounds like the importer is working as intended i.e. headings in Word are getting converted to headings in the HTML. If you don’t them to be headings, you could:

    * edit the original document to not use headings
    * edit the page after import
    * use a style mapping to explicitly map whatever style you’re using to paragraph tags (or whatever HTML you want)

    Thread Starter Lab41

    (@lab41)

    Sorry. It seems that the support stripped out the query!
    1) It’s add a class ID to H2 & H3 headings.
    <h3 id="sdasasas">Heading<h3>

    I don’t want the id’s added at all.

    Plugin Author Michael Williamson

    (@michaelwilliamson)

    I might be misremembering, but I don’t think Mammoth adds IDs to text as you’ve described. Do you have any other plugins installed? Do you get the same issue if you disable any other plugins and use the default theme?

    If you’re still getting the issue with no plugins and the default theme, do you have an example document?

    Thread Starter Lab41

    (@lab41)

    It’s fixed. Seems it was only on 1 very long 25K word article.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Word Heading Getting Extra Tags’ is closed to new replies.