Hello, I applaud you for this effort! I have a suggestion to use pre instead of code for code blocks. The reason is that code element is meant fori inline pieces of code while pre is for blocks of code.
In fact CKEditor 5 already uses code element for inline code - see https://ckeditor.com/docs/ckeditor5/latest/api/module_basic-styles_code-Code.html
Restyling this element to appear as block actually breaks some existing documents saved with CKEditor (originally they appeared inline but now appear as block).
Hello, I applaud you for this effort! I have a suggestion to use
preinstead ofcodefor code blocks. The reason is thatcodeelement is meant fori inline pieces of code whilepreis for blocks of code.In fact CKEditor 5 already uses
codeelement for inline code - see https://ckeditor.com/docs/ckeditor5/latest/api/module_basic-styles_code-Code.htmlRestyling this element to appear as block actually breaks some existing documents saved with CKEditor (originally they appeared inline but now appear as block).