Add script support
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- javascript
Research direction
No files, tests, or entry points are named in the issue. Start by turning the preview and domain allow-list requirements into an implementation plan; done means Markdown renders as an HTML page, inline document scripts are allowed, and later script loads are blocked unless their domains are explicitly allowed.
Written by the indexing model from the issue text.
Description
we don't want to load scripts in the editor itself, so we need a preview mechanism that "fully loads" the markdown by rendering it to HTML and then loading it as an HTML page. Note that this will also require domain allow-list because lol the web.
- by default that list is empty
- scripts that are in the document itself should always be allowed
- subsequent script loads are subject to the allow-list: if they're not explicitly cleared by domain, the network request shouldn't even happen.
- Dominant language
- JavaScript
- Stars
- 1
- Forks
- 1
- Avg merge
- 9h 8m
- Merged PRs (30d)
- 16
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
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.
More from Pomax/markdown-editor
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Pomax/markdown-editor#193 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Pomax/markdown-editor#187 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Pomax/markdown-editor#173 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 1/5 Under an hour Newbie friendliness 68/100
Pomax/markdown-editor#149 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 55/100
Pomax/markdown-editor#192 ·
Maintainers usually reply within 1 day
All issues in Pomax/markdown-editor
Similar issues
-
enhancement good first issue shields parity
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
seuthootDev/terminal-shields#125 ·
Maintainers usually reply within 2 days
-
[ui] 自創球員 (投手): pick 球種 at creation (直球 fixed + up to 2 more), trade-off line, shown on the cardOpenarea:ui P1 status:doing
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
sunososobro-hub/cloudball#1153 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
NuSkooler/enigma-bbs#1241 ·
Maintainers usually reply within 1 day
-
harness seguranca target:staging
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
corosolto/client#1507 · 1 comment ·
Maintainers usually reply within 1 day