By default Refinery adds <p>
tags in the template.
And by default, using the WYSIWYG editor also adds <p>
tags. So I manually removed the <p>
tags from the template.
For reference, this was the default code generated by refinery when I create the controller
<section>
<h1>Product Summary</h1>
<p>
<%=raw @product.product %>
</p>
</section>
Now my code is
<div>
<h3>Product Summary</h3>
<%=raw @product.product %>
</div>
Here is a screenshot of the code now generated as live in page.