Skip to content

Latest commit

 

History

History
45 lines (43 loc) · 734 Bytes

double-cell.md

File metadata and controls

45 lines (43 loc) · 734 Bytes

(plugin name)

Covert <cell/> elements that are direct children of <cell/> to <p/> if the <cell/> only contains text. If the inner <cell/> also has children, it will be added as a sibling before the outer <cell/> .

Example

Before transformation:

<table>
  <row>
    <cell>
      <cell>
        text1
      </cell>
    </cell>
  </row>
  <row>
    <cell>
      <cell>
        <p>text2</p>
      </cell>
      <p>text3</p>
    <cell>
  </row>
</table>

After transformation:

<table>
  <row>
    <cell>
      <p>
        text1
      </p>
    </cell>
  </row>
  <row>
    <cell>
      <p>text2</p>
    </cell>
    <cell>
      <p>text3</p>
    <cell>
  </row>
</table>