jungvonmatt / wekit

A Jamstack kit for Contentful, Hugo and Netlify.
https://www.wekit.dev
MIT License
14 stars 4 forks source link

Feature: add table to rich text blocks #44

Closed dlemm closed 2 years ago

dlemm commented 2 years ago

This PR adds table blocks to the rich text utils.

Context: Contentful now offers the possibility to add tables to the rich text field. If added in Contentful the app crashes since it is searching for the the table.html (and the other files).

sonarcloud[bot] commented 2 years ago

SonarCloud Quality Gate failed.    Quality Gate failed

Bug C 2 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

peterschewe commented 2 years ago

@bezoerb @dlemm Sorry, just tested it now. Looks fine to me too. Still 2 questions: 1) Is it possible to render the <th> inside a <thead>? And the following regular <td> then in <tbody>? 2) Do we want to add in the rich text of the m-text the table in the migration?