Add a `util.decode` function
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 13k
- Forks
- 1.4k
- Avg merge
- 15h 36m
- Merged PRs (30d)
- 3
Description
Motivation
Sometimes we need to reverse the output string of Prism.util.encode, so I would be great to have a function for this.
Problems
Right now, encode can take more than just strings, so decode isn't a true inverse function as the name suggests. Therefore we should wait until after #1844 to add this feature.
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
Read components/prism-core.js around Prism.util.encode and review the context of issue #1844 first. Define the intended behavior for decoding all values encode may accept, then consider the feature complete when a consistent util.decode API and coverage for its supported inputs are established.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100