choojs / choojs/hyperx

Feature: allow custom optional closed tags

Open
#47 5 comments 2 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1k
Forks
45
PR merge metrics
No merged PRs in 30d

Description

In react a custom component can be notated like this: ``, in hyperx you have to notate is like this ``.

I would like to notate optionally closable, non-html tags that could or could not be closed at the end.

So I would register with hyperx these in opts, under `optionallySelfClosing: []`. If they are closed (i.e. ending with `/>`) then they are treated as closed tags. If they are not (i.e. ending in `>`) then they have children and are not yet closed.

Another way would be to have a `loose` setting in `opts`. Where any tag, html or otherwise could be optional open or closed. However, this seems like more work to implement.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.