Zentaurus Zentaurus - 1 year ago 83
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.

Answer Source

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?

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download