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
3
votes
1 answer

Defining footnote location with Kramdown/Jekyll

I have a Jekyll blog that runs on kramdown 1.10, and I have tried to change the location of my footnote list to no avail. This is intended to go on a github-pages site, but doesn't work locally either. According to this issue, there is a way to add…
avyfain
  • 834
  • 10
  • 18
3
votes
3 answers

With Jekyll 3, can I transform a post's Markdown before actual Markdown parsing?

I would like to use the Jekyll Responsive Image plugin to generate appropriate responsive images with srcset/sizes attributes for my posts' images. But I would also like to be able to edit my posts in a software providing a live preview like…
3
votes
3 answers

Jekyll Syntax Highlighting Not Working - Classes Are Not Being Added

I cannot get syntax highlighting to work on my Jekyll-powered blog. The development files can be found here: https://github.com/StevenXL/stevenxl.github.io. As you can see, in my _config.yml file, I have the following: markdown:…
Steven L.
  • 2,045
  • 3
  • 18
  • 23
3
votes
1 answer

Jekyll: Cannot render YAML front matter field as markdown correctly

I am building the pages in my site with a list of nodes in the YAML front matter, like so: --- title: My page layout: default nodes: - header: Node header text_block: > This is supposed to be markdown. [This…
mrzapp
  • 100
  • 8
3
votes
2 answers

How to highlight Markdown code in Jekyll?

I want to highlight markdown code in jekyll but I can't find a way how to do it. I looked at Pygement's lexers but I did not found one for markdown or kramdown. I can highlight other codes but not markdown and kramdawn.
mehdix
  • 4,984
  • 1
  • 28
  • 36
3
votes
2 answers

Php code highlight in Jekyll kramdown don't work

I'm using Jekyll with kramdown and pygments, it work fine for javascript or python code but When I create php like: {% highlight php %} header('Content-Type: application/json'); echo json_encode(array( 'jsonrpc' => "2.0", 'result' =>…
jcubic
  • 61,973
  • 54
  • 229
  • 402
3
votes
1 answer

writing posts in markdown inside html-div (with zurb foundation 5 and jekyll)

i am trying to create a blog with jekyll and zurb foundation 5. therefore id like to use some of the html structure of the foundation framework inside the posts, the post content indeed is written in markdown.
Vin Banton
  • 365
  • 1
  • 3
  • 16
3
votes
2 answers

Render span-level string using Kramdown

I know that I can parse and render an HTML document with Kramdown in ruby using something like require 'kramdown' s = 'This is a _document_' Kramdown::Document.new(s).to_html # '

This is a document

' In this case, the string s may…
Juan A. Navarro
  • 10,595
  • 6
  • 48
  • 52
3
votes
0 answers

Error when trying to inherit from ActionView::Template::Handler in Rails 3.2.13

I tried upgrading from Rails 3.0.23 to 3.2.13 and now I have an error stopping the server from starting that looks like this: /Users/hamiltonchapman/Projects/project-static/lib/markdown_handler.rb:3:in `': uninitialized constant…
hamchapman
  • 2,901
  • 4
  • 22
  • 37
2
votes
1 answer

How to use footnotes in markdown inside html?

I am trying to use footnotes in Markdown, but when I put it inside HTML (
) the footnotes won't parse. Here is the minimal example of the code: a[^1]
b[^2]
[^1]: I am a footnote [^2]: I want to be a footnote too. And it's parsed…
grg
  • 85
  • 7
2
votes
0 answers

Rouge syntax highlighter options on Kramdown fenced code-blocks

When setting options for Rouge on fenced code blocks, the option gets ignored and has no effect, the HTML doesn't change: ``` html?line_numbers=true ``` I am using Jekyll, Kramdown and Rouge on GitHub Pages. Is this supported - should…
2
votes
1 answer

Middleman Kramdown Converter for html tags

I'm trying to convert every kramdown link within a middlemanapp. So far I've tried to prepend the Kramdown::Converter::Html module and override the convert_a method. module Kramdown module Converter module UrlConverter def convert_a(el,…
jcal
  • 871
  • 5
  • 14
2
votes
0 answers

No luck in making footnotes render in Jekyll and kramdown

I try with no success to make my footnote markup work as described in kramdown documentation: Lore Ipsum [^1] lore ipsum and below the page [^1]: my footnote here Instead I don't have the markup rendered. In Jekyll config file I have: markdown:…
2
votes
2 answers

How to remove the end slash from the img tag?

Kramdown is now the default markdown renderer for Jekyll 4.0. I would like to know if there is a way to remove the end slash from the img tag. For example: ![Flowers](flowers.jpg) Flowers One way until a few months…
2
votes
2 answers

Cant access custom Front Matter variables

Am creating my first Jekyll (using version 4.0.0) powered site. Problem is the variables in Front Matter are not recognized. HTML in _includes (writing-post-featured-image.html)
01e5Dk
  • 390
  • 1
  • 2
  • 14