Reduce spaces on code block highlight

14 views
Skip to first unread message

Luis Vasquez

unread,
Dec 27, 2014, 11:09:56 PM12/27/14
to kramdow...@googlegroups.com
Thanks for this awesome library only I have a little issue, when I write some code block on highlight, this generate too much spaces or breaking spaces between tabs or some kind of css padding, I usually use notepad++ and I have this code:

{% highlight csharp %}
public class Hello1
{
   public static void Main()
   {
      System.Console.WriteLine("Hello, World!");
   }
}
{% endhighlight %}

so the line "public static void Main()" generates me a lot space after the last line, there is something to change this because when I try with redcarpet this one reduces me that space. 

Thanks of the help, I am new with this.

Thomas Leitner

unread,
Dec 28, 2014, 5:51:26 PM12/28/14
to kramdow...@googlegroups.com, Luis Vasquez
The syntax you describe is not part of kramdown, therefore I can't really help you.

If you want to use native kramdown code blocks, use fenced code blocks in this case:

~~~ csharp
Some code here
~~~

Best regards,
Thomas
--
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.
Reply all
Reply to author
Forward
0 new messages