Skip to content

Different way to close tags — use / instead of > #26

@komputist

Description

@komputist

Note: This idea pressupose a few things:

A) plugin must also knows which element are void (
, )
B) the syntax MUST NOT be used for non-void elements.

THE IDEA: Tags should be closed when the editor inserts the / character.

EXPLANATION OF THE IDAD:

  • If one types <img/ then it gets closed to .
  • If one types <p/ then it gets closed to

Thus, the author can always type /, without thinking about whether the element is going to folloow syntax or syntax.

By contrast, today, for void elements, one must type />.

DRAWBACKS: Are there any drawbacks to this idea? Well, you need to make
it works even if one types <foo src="/

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions