Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
komputist opened this issue Apr 27, 2013 · 0 comments
Open

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

komputist opened this issue Apr 27, 2013 · 0 comments
Labels

Comments

@komputist
Copy link

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="/

@sukima sukima added the Feature label Jan 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants