daaain / daaain/Handlebars

Using command + / on an HTML comment results in it being surrounded by a Handlebars comment

Open
#11 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement question
Dominant language
JavaScript
Stars
303
Forks
48
PR merge metrics
No merged PRs in 30d

Description

Steps:

  1. Create a template, template.hbs
  2. Open it in Sublime
  3. Add a comment with HTML in it:
<!-- <a href="http://moo.cow.com/">Link</a> -->
  1. 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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.