Plugin command-line examples don't work
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 13k
- Forks
- 1.4k
- Avg merge
- 15h 36m
- Merged PRs (30d)
- 3
Description
Information:
- Prism version: 1.29.0
- Plugins: ["command-line","toolbar","copy-to-clipboard" ]
- Environment: [firefox]
Description
The examples for using the command line plugin here show that you only need to specify the class 'command-line', like so:
<pre class="command-line">
However prismjs doesn't pick this up. The additional language of the command-line must also be specified like so:
<pre class="command-line language-bash">
I solved this issue by looking that the source code of the examples.
Examples
It can be demonstrated on the examples website here by editing the source code and removing the language-* class from a <pre>.
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
Start with the command-line plugin documentation page and its linked examples, then compare the documented markup with the working example source. Update the examples or guidance so the shown command-line markup works as described, and verify the result in Firefox.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100