Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ Add CreateNodeFromContentOptions to insertContent #1678

Merged

Conversation

castroCrea
Copy link
Contributor

insertContent for HTML with table on it, doesn't work well due to preserveWhitespace: 'full', when false it work well.

what I have done

  • Add the possibility to make it false.
  • Update the doc

image
compare to
image
for this HTML

<table style="width:100%">
  <tr>
    <th>Firstname</th>
    <th>Lastname</th> 
    <th>Age</th>
  </tr>
  <tr>
    <td>Jill</td>
    <td>Smith</td>
    <td>50</td>
  </tr>
  <tr>
    <td>Eve</td>
    <td>Jackson</td>
    <td>94</td>
  </tr>
  <tr>
    <td>John</td>
    <td>Doe</td>
    <td>80</td>
  </tr>
</table>

@philippkuehn philippkuehn merged commit aabdfd6 into ueberdosis:main Aug 9, 2021
@philippkuehn
Copy link
Contributor

thanks!

@castroCrea castroCrea deleted the paolo/insert-content-html-options branch August 9, 2021 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants