Keep Markup and zero-length tags
Open
Nobody has claimed this yet.
bug
help wanted
plugins
- Dominant language
- JavaScript
- Stars
- 13k
- Forks
- 1.4k
- Avg merge
- 15h 36m
- Merged PRs (30d)
- 3
Description
The current implementation of the Keep Markup plugin does not handle zero-length tags (tags with textContent.length == 0) correctly.
It will move any nested zero-length tag at the end of its parent outside and after its parent, effectively flattening the markup structure.
Examples:
<x><y></y></x>-><x></x><y></y><x>a<y></y></x>-><x>a</x><y></y><x>a<y></y><z></z></x>-><x>a</x><y></y><z></z><x>a<y><z></z></y></x>-><x>a</x><y></y><z></z>
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Keep Markup plugin and reproduce the four zero-length-tag examples from the issue. Trace how nested tags at the end of a parent are handled; done means each example preserves its original nesting instead of moving the empty tags outside their parents.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100