Closed muuvmuuv closed 5 years ago
The leading spaces are the problem (I think). Because of them, you don't have any lines with the prefix (out)
but a few with the prefix [ ][ ](out)
([ ]
for one space).
Also, please don't indent your code. For pre
elements, every (leading) space counts. They will not be removed as in other tags.
Hey @RunDevelopment, I have tried this with no success:
<tr>
<td>
<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>
</td>
<td>
renders to:
<code class=" language-bash"><span class="command-line-prompt"><span data-user="user" data-host="remotehost"></span><span data-user="user" data-host="remotehost"></span><span></span><span data-user="user" data-host="remotehost"></span><span></span><span></span><span></span><span></span><span></span><span data-user="user" data-host="remotehost"></span></span>
pwd
ls -la
</code>
I have also tried to just activate the core and command-line again.
I have created a fiddle: https://jsfiddle.net/muuvmuuv/tckqsa1j/
I have found the issue, I had not imported the required languages... 😆 sorry, so obvious
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.
I'm trying to get this to work:
I'm loading the core and plugins like this:
and prism is rendering it to this:
I have tried disabling all plugins but still not the result I expected.