quill icon indicating copy to clipboard operation
quill copied to clipboard

Using <div><pre><code> for code blocks?

Open ile opened this issue 1 year ago • 1 comments

Would it be possible to change the outer wrapper to <code> element?

image

It would create better HTML, I think. It would make a difference when parsing HTML into some other formats (Markdown for example).

I will see what kind of code this creates:

Code

It creates this:

image

Could Quill do the same kind of code with code blocks?

ile avatar Mar 09 '24 10:03 ile

Also I think the data-language could be in the outer wrapper, not in individual lines. At least in the UI you can set it in the whole block (outer wrapper), not individual lines.

image

ile avatar Mar 11 '24 05:03 ile