Using command + / on an HTML comment results in it being surrounded by a Handlebars comment
Open
Nobody has claimed this yet.
enhancement
question
- Dominant language
- JavaScript
- Stars
- 303
- Forks
- 48
- PR merge metrics
- No merged PRs in 30d
Description
Steps:
- Create a template,
template.hbs - Open it in Sublime
- Add a comment with HTML in it:
<!-- <a href="http://moo.cow.com/">Link</a> -->
- Select the comment (from < to >) and press command + /
Result:
Selection is wrapped in Handlebars comment:
{{! <!-- <a href="http://moo.cow.com/">Link</a> --> }}
Expected:
Selection is uncommented:
<a href="http://moo.cow.com/">Link</a>
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
Reproduce the issue in Sublime with template.hbs by selecting the HTML comment and pressing command + /. Trace the comment toggling behavior for Handlebars templates; done means the selection is unwrapped to the inner HTML instead of being surrounded by a Handlebars comment.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- handlebars, html, javascript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100