Closed shibumi closed 7 years ago
It seems the Pygments demo has been deleted. Can you re-upload it?
@zdroid I have updated the link. Should work now: http://pygments.org/demo/6256037/
I have also the same problem with C-Code. When I have empty lines in Code between two braces {} everything is getting weird.
This issue has been automatically marked as stale because it has not been commented on for at least two months.
The resources of the Jekyll team are limited, and so we are asking for your help.
If this is a bug and you can still reproduce this error on the 3.1-stable
or master
branch, please reply with all of the information you have about it in order to keep the issue open.
If this is a feature request, please consider building it first as a plugin. Jekyll 3 introduced hooks which provide convenient access points throughout the Jekyll build pipeline whereby most needs can be fulfilled. If this is something that cannot be built as a plugin, then please provide more information about why in order to keep this issue open.
This issue will automatically be closed in two months if no further activity occurs. Thank you for all your contributions.
push
What version of Jekyll and Pygments are you using?
I cannot reproduce this issue. Using Jekyll 3.3.1, pygments 1.1.1, Minima 2.1.0
In _config.yml
I added highlighter: pygments
.
Can you provide a sample Jekyll site that exhibits this issue, or maybe link to your source repo?
Hello, Here are my versions: jekyll 3.3.1 pygments 1.1.1 Minima 2.1.0
You can find my repo here: https://github.com/shibumi/en.nullday.de Have a look at the article: _posts/2015-09-05-dubrute.markdown
Here is the generated HTML:
<p><figure class="highlight"><pre><code class="language-text" data-lang="text"><span></span>rule dubrute : bruteforcer
{
meta:
author = "Christian Rebischke (@sh1bumi)"
date = "2015-09-05"
description = "Rules for DuBrute Bruteforcer"
in_the_wild = true
family = "Hackingtool/Bruteforcer"</p>
<pre><code>strings:
$a = &quot;WBrute&quot;
$b = &quot;error.txt&quot;
$c = &quot;good.txt&quot;
$d = &quot;source.txt&quot;
$e = &quot;bad.txt&quot;
$f = &quot;Generator IP@Login;Password&quot;
condition:
//check for MZ Signature at offset 0
uint16(0) == 0x5A4D
and
//check for dubrute specific strings
$a and $b and $c and $d and $e and $f
</code></pre>
<p>}</code></pre></figure></p>
Site appears to be using Rouge rather than Pygments, but both of them seem to exhibit the same issue.
Looks like the problem is with rdiscount. When I configure the site to use kramdown instead, everything looks as expected.
@pathawks So I should switch to kramdown? is the kramdown syntax equal to rdiscount?
Kramdown is what most people use, and it is what we use by default for new sites.
I can't promise that the syntax is 100% identical. If you switch, you'll probably want to look through the generated site and make sure that everything looks proper.
This issue has been automatically marked as stale because it has not been commented on for at least two months.
The resources of the Jekyll team are limited, and so we are asking for your help.
If this is a bug and you can still reproduce this error on the 3.3-stable
or master
branch, please reply with all of the information you have about it in order to keep the issue open.
If this is a feature request, please consider building it first as a plugin. Jekyll 3 introduced hooks which provide convenient access points throughout the Jekyll build pipeline whereby most needs can be fulfilled. If this is something that cannot be built as a plugin, then please provide more information about why in order to keep this issue open.
This issue will automatically be closed in two months if no further activity occurs. Thank you for all your contributions.
@pathawks Thanks, kralmdown fixed this issue for me..
github-pages
My Reproduction Steps
Hello, Seems like pygments breaks their own codeblocks in jekyll.
Here is an example:
This is a simple yara file with highlighting as text.
this compiles with jekyll to:
The Output I Wanted
The output should looks like the demo: http://pygments.org/demo/6256037/