Skip to content

pre instead of code #1

@zadam

Description

@zadam

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions