PrismJS / PrismJS/prism

CSS Highlighting Error within a custom element

Open
#426 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement language-definitions
Dominant language
JavaScript
Stars
13k
Forks
1.4k
Avg merge
15h 36m
Merged PRs (30d)
3

Description

.some-class {
   width:  {{shareSize}}px;
   height: {{shareSize}}px;
}

{{shareSize}} is an attribute for my custom element (polymer) which is used as follow:
<my-custom-element shareSize=32></my-custom-element>

so... yes... the hightlighting breaks at the first {{shareSize}}px;

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

No source file, test, or entry point is named. Reproduce the CSS snippet with the Polymer-style {{shareSize}} placeholder and inspect Prism's CSS highlighting behavior; done means the placeholder does not cause highlighting to break at {{shareSize}}px.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.