Editor removing extra div attributes

I am trying to use Raster, a CSS grid system to align content within my posts. I used the generator at the bottom of the page to use classes instead of custom elements (<r-grid>) since Write.as doesn’t seem to let me use custom elements. Then, I tried a very simple example:

<div class="r-grid" columns=8>
  <div class="r-cell" span=5..>Content starts on 5th cell</div>
</div>

But when I hit publish, the editor seems to be removing the extra attributes, making it something like:

<div class="r-grid">
  <div class="r-cell">Content starts on 5th cell</div>
</div>

Which makes me unable to use the library. Why are the extra attributes being removed?

1 Like