Zentaurus Zentaurus - 3 months ago 6x
Ruby Question

Make Jekyll remove <p> from {{ content }}

I have a Jekyll site that in the

{{ content }}
has tables in HTML, but just
. I'm using Datatables since these tables have lots of rows. Since this jQuery plugin asks to have a very clear table, I think the
Jekyll puts in the middle of the table breaks it. So I would like it to be removed before it's generated.
Is there any way to do it? I'm guessing a jQuery answer could work, but I'd prefer it to be before the DOM is loaded.


I've had this same issue with my site design. I found that when I include code I do not want to be in a paragraph tag, all I have to do is put that content into <div>s.

Problem solved. Maybe it will work for you?