Questions tagged [kramdown]

kramdown (sic, not Kramdown or KramDown, just kramdown) is a free MIT-licensed Ruby library for parsing and converting a superset of Markdown. It is completely written in Ruby, supports standard Markdown (with some minor modifications) and various extensions that have been made popular by the PHP Markdown Extra package and Maruku.

kramdown (sic, not Kramdown or KramDown, just kramdown) is a free MIT-licensed Ruby library for parsing and converting a superset of Markdown. It is completely written in Ruby, supports standard Markdown (with some minor modifications) and various extensions that have been made popular by the PHP Markdown Extra package and Maruku.

More Details

202 questions
0
votes
1 answer

Jekyll: kramdown ignoring input in _config.yml

I am trying to make syntax highlighting on my jekyll site work with the syntax for syntax highlighting that is also supported by github. Currently, I use this syntax to highlight my code: {% highlight css %} /* code */ {% endhighlight %} Which does…
Nachtfunke
  • 329
  • 1
  • 14
0
votes
1 answer

kramdown does not format tables

Using kramdown version 1.10.0, I am trying to figure out how to get it to render a table. In any of the markdown formats. I've tried the following: foo | bar | foo | bar | |-----+-----| | foo | bar | |-----+-----| However, none of those seem to…
Arafangion
  • 11,517
  • 1
  • 40
  • 72
0
votes
1 answer

An Latex Equation Would Not Render in Jekyll (kramdown engine)

I am using Jekyll + kramdown to render my blog. But I find this particular equation not renderable, it either appeared in raw latex code, or just blank, depending on how many white spaces I put around the dollar signs. All other equations have been…
han jin
  • 75
  • 1
  • 5
0
votes
2 answers

Embed a code block in a list item with proper indentation in kramdown

I need to embed a code block in a list item in kramdown. The code block is highlighted by Pygments. The result looks like the following picture. I expect the code block to shift right to prove it's part of the list element. The kramdown docs use…
Cauchy Schwarz
  • 747
  • 3
  • 10
  • 27
0
votes
1 answer

Jekyll blog highligth code produce invalid html

Using Jekyll, I have this file: #_posts/2015-06-20-post.textile blablabla: {% highlight bash %} $ ruby example_blocks_1.rb [0, 2, 4, 6] hello world hello world hello world hello world hello world hello world {% endhighlight %} bla bla bla this…
user1066183
  • 2,444
  • 4
  • 28
  • 57
0
votes
1 answer

How to pass options via Rake to Yard to Kramdown to use GFM

I've a gem that I've produced with some docs written with Github Flavoured markdown (GFM) to take advantage of their syntax highlighting. Unfortunately, Github decided to use their own syntax for code block fencing (three backticks) so to get Yardoc…
ian
  • 12,003
  • 9
  • 51
  • 107
0
votes
1 answer

Latex \newcommand in kramdown

I understand that cramdown does not support \newcommand type macros. Is there a workaround that does not involve Pandoc, so that it could be used with Jekyll in a GitHub blog? This would be the input markdown: --- layout:…
JohnRos
  • 1,091
  • 2
  • 10
  • 20
0
votes
1 answer

how do I format a string to be processed into html by kramdown ruby gem?

I can't seem to get the list function to work when I pass in a string to kramdown: For example, this is my text: email_body = "Hi, Tim! Hopefully you get this. I just got your email address. \n\n My email is x@xcom. \n\n For example, you could…
Satchel
  • 16,414
  • 23
  • 106
  • 192
0
votes
1 answer

Cant figure out why I am getting this Kramdownn warning

Previously, I had this text being processed by Kramdown without any problems: * **[GIT]** Setup a git repo for your team Recently I started getting this error: kramdown warning: No link definition for link ID 'git' found on line 4 I can't see in…
pitosalas
  • 10,286
  • 12
  • 72
  • 120
0
votes
2 answers

Add data-scroll Attribute to Kramdown Footnote

Is there an easy way to add an attribute of data-scroll to a kramdown footnote. [Battlezone](www.github.com) [^1] My footnote above, renders like so: 1 Is it possible to add a that…
realph
  • 4,481
  • 13
  • 49
  • 104
0
votes
1 answer

Jekyll Kramdown Footnotes Not Parsing

I'm attempting to annotate a file with footnotes using Jekyll. My _config.yml file is set thusly: markdown: kramdown This is how I'm attempting to use the footnotes:

As trade-off talking rational economic people [^1], we are constantly making…

0
votes
1 answer

How do I get HTML rendered as markdown via GitHub Pages?

I have a rather nasty, huge HTML document that I converted to markdown. When I do the usual layout and view the .md file in GitHub via preview tab, it looks fine. However, when I serve it and view it on my actual site, it renders all the HTML…
0
votes
1 answer

Show syntax name for code snippets

I'm using Jekyll with Kramdown and Coderay. Is there a way to add the name of the syntax rules used to the output of the code highlighter, when using kramdown? I'd like it to look similar to what ajax-syntax-highlighter outputs. Thus showing the…
Michael Krupp
  • 2,042
  • 3
  • 19
  • 36
0
votes
1 answer

Jekyll produces different output than using kramdown directly

I want to use jekyll to create an HTML document that contains a numbered list of items; i.e.
    in HTML. There are items that contain a table. The list stops after the table, but only if I use jekyll, not using kramdown directly. I am running…
0
votes
0 answers

Can I parse raw style element in Kramdown?

i want to parse raw style element in markdown file. but Kramdown change spaces to   like below. from to
kymmt
  • 75
  • 2
  • 9
1 2 3
13
14