microsoft / microsoft/vscode-livepreview

Live preview script injected into comment

Open
#711 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
596
Forks
119
Avg merge
1d 4m
Merged PRs (30d)
5

Description

The preview script will be injected into a comment instead of a head tag, if the comment contains data that resembles a <head> tag.

For example with the following comment in the document preamble: <!-- <head></head> -->

The outcome would be: <!-- <head><script type="text/javascript" src="/___vscode_livepreview_injected_script"></script></head> -->

Contributor guide

Open the contributing guide

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

Locate the live-preview logic that injects the preview script into the document head and trace how it handles comment text resembling a head tag. Reproduce the provided preamble example, then add coverage showing that the script is inserted into the actual head rather than inside the comment.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
web-dev
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.