question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug(plugin): command-line data-filter-out not working

See original GitHub issue

I’m trying to get this to work:

<pre class="command-line language-bash" data-filter-output="(out)" data-user="user" data-host="remotehost">
  <code>
  pwd
  (out)/usr/home/user/bin
  ls -la
  (out)total 2
  (out)drwxr-xr-x   2 user  group     11 Jan 10 16:48 .
  (out)drwxr--r-x  45 user  group     92 Feb 14 11:10 ..
  (out)-rwxr-xr-x   1 user  group    444 Aug 25  2013 backup
  (out)-rwxr-xr-x   1 user  group    642 Jan 17 14:42 deploy
  </code>
</pre>

I’m loading the core and plugins like this:

import 'prismjs/prism.js';
import 'prismjs/plugins/unescaped-markup/prism-unescaped-markup.min.js';
import 'prismjs/plugins/normalize-whitespace/prism-normalize-whitespace.min.js';
import 'prismjs/plugins/autolinker/prism-autolinker.min.js';
import 'prismjs/plugins/command-line/prism-command-line.min.js'; // BUG: output not rendered correctly
import 'prismjs/plugins/line-numbers/prism-line-numbers.min.js';

and prism is rendering it to this:

bildschirmfoto 2019-01-14 um 10 56 42 bildschirmfoto 2019-01-14 um 10 56 16

I have tried disabling all plugins but still not the result I expected.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
RunDevelopmentcommented, Jan 15, 2019

It should work even without the grammar being imported, so I still think that this needs fixing.

The first version of my fix can be found here. I will make a PR for this.

0reactions
muuvmuuvcommented, Jan 15, 2019

I have found the issue, I had not imported the required languages… 😆 sorry, so obvious

Read more comments on GitHub >

github_iconTop Results From Across the Web

Plugin error from demux: sample not present ... - QIIME 2 Forum
I have a dataset of 64 samples sequenced and I am trying to run qiime demux filter-samples, after having imported my fastq and...
Read more >
Running SpotBugs — spotbugs 4.7.3 documentation
Restrict analysis to find bugs to given comma-separated list of classes and packages. Unlike filtering, this option avoids running analysis on classes and ......
Read more >
When filtering, how can I use default filter file when specified ...
For this problem I suggest to have all the default data in base properties if possible. Share. Share a link to this answer....
Read more >
Logcat command-line tool - Android Developers
adb logcat supports additional filters that can reduce the amount of logs shown from logd . See the section about filtering log output...
Read more >
Nessuscli (Nessus) - Docs Tenable
You can administer some Nessus functions through a command-line interface ... if you are running nessusd on a gateway and if you do...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found