Skip to content

Missing support for <details> & <summary> #492

@bert-github

Description

@bert-github

Squire supports a lot of HTML, but it doesn't support <details> elements. Any <details> and <summary> tags are removed when an HTML file is loaded into the editor.

It seems easy enough to allow them: Just add DETAILS and SUMMARY to the allowedBlock regular expression in Clean.ts

const allowedBlock =

(How to easily create and edit a <details> element is another question. It probably needs a dedicated function in the API, similar to makeOrderedList().)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions