PrismJS / PrismJS/prism

command-line plugin not showing data-user and data-host

Open
#1,456 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Hi all,
first of all thank you for this great product!
I'm happily using prismjs since version 1.10.0, but with 1.15.0 i'm facing some glitches on command-line plugin.
After some digging i found that command line plugin 1.13.0 is working as expected but 1.14.0 not (probably my mistake).

<pre class="command-line" data-title="command line" data-user="matteo" data-host="portable" data-output="2-99">
  <code class="language-bash">
  du -sh * | sort -h | tail
  6.0M	upload
  8.5M	contratti
  11M	accettazione
  12M	report
  14M	copia.tar.gz
  18M	fatturazione
  21M	admin
  22M	amministrazione
  23M	reparti
  198M	codifica
  </code>
</pre>

In

that with 1.13.0 command-line plugin:
image

with 1.14.0:
image

As you can see i exaggerate the output line value (99) to simply add lines without to worry to increment the value.
If you want to check the initialization, the syntax, etc. you can use http://matteo.contri.net/rifattorizzazione-software-php as reference (sorry is in Italian).

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

Start with the supplied

 reproducer and compare command-line plugin 1.13.0 with 1.14.0, focusing on data-user and data-host rendering. Check the linked reference page and verify the result against both screenshots; done when those attributes appear in 1.14.0 without changing the example.

Written by the indexing model from the issue text.

Assessment

Tech stack
bash, javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.