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

Fenced code block not highlighted properly

In Jekyll, when I set the Markdown converter to kramdown and bundle exec jekyll serve, this fenced code block ```javascript function hey(name) { return 'Hey ' + name; } console.log(hey('Brienna')); ``` renders like this: This happens no…
brienna
  • 1,415
  • 1
  • 18
  • 45
4
votes
1 answer

Kramdown backticks not recognized in GFM mode

I'm trying to get some very simple pages to render properly with Jekyll using kramdown to process markdown and rouge for syntax highlighting. Kramdown appears to not interpret triple-backticks, however, even in GFM mode. I believe I've followed the…
Nicolas Rinaudo
  • 6,068
  • 28
  • 41
4
votes
3 answers

Github Markdown - rendering code blocks with XML & HTML - kramdown vs redcarpet

I'm running into some unusual errors in my git site. NOTE: I am using Kramdown + highlight.js to highlight code. Below is a lesson that I am working on. In this lesson, I need to render EML (similar to XML) in code blocks. I am using kramdown. I…
Leah Wasser
  • 717
  • 3
  • 8
  • 22
4
votes
2 answers

Three-level nested list in kramdown

I have been trying to create a nested list like the following (with kramdown, for use on GitHub pages), but the HTML output is not semantic; paragraphs are used instead of list elements for the 2nd-level list, and code blocks are used for the…
matatk
  • 761
  • 1
  • 6
  • 13
4
votes
1 answer

Missing Gem Dependencies

I am experiencing a problem with my build and missing a gem. However, I've installed the gem multiple times to no avail. I'm using NPM to manage packages as well. Since Jekyll is looking for kramdown, a gem, how can I let my build know it's…
master
  • 266
  • 1
  • 14
4
votes
2 answers

Is it possible to generate a table of contents using kramdown in a page other than a post? If so, how?

The index page on my Jekyll site is meant to be exactly like a post with only one extra bit of code for navigating the other posts. I'm not really using it to generate a blog per se, but a bunch of press pages. Now within each post I am using…
ChaBuku Bakke
  • 685
  • 1
  • 7
  • 24
4
votes
2 answers

Can I use markdown in Jekyll 1.5.1 layouts?

In Jekyll 1.5.1 my layouts are being parsed, but markdown is being ignored. Is there a way to work around this? Here is my post.md layout --- layout: default ---

{{ page.title }}

{{ content…
David Silva Smith
  • 11,498
  • 11
  • 67
  • 91
4
votes
1 answer

how to pass content to jekyll default converter after custom conversion?

I am trying to write a jekyll plugin which do something on markdown files first and passing the content back to the default converter For example, module Jekyll class RMarkdownConverter < Converter safe :false priority :high …
Randy Lai
  • 3,084
  • 2
  • 22
  • 23
3
votes
0 answers

Dependabot say Kramdown needs security update - but I dont have a gemfile in which the vunerability is supposed to be

I got a dependabot alert (CVE-2020-14001 Vulnerable versions: < 2.3.0 Patched version: 2.3.0) from github for one of my github pages (https://github.com/akademie-oeffentliches-gesundheitswesen/krisenmanagment). This alert is supposed to be in the…
3
votes
2 answers

Can I access a page's table of contents in a Jekyll layout?

I have a layout in my Jekyll site for regular Markdown page, in which I'd like to place an outline of the page's headings. Can I access these headings in Jekyll or have them rendered in some other way, and if so, how?
Vincent
  • 4,876
  • 3
  • 44
  • 55
3
votes
1 answer

How to remove anchor links from headers in Markdown?

In Github, when you create an h2 or smaller header (##, ###, ...) there is an anchor link thing that is automatically generated to the right of the header. When you click this anchor, it links you to the page with that header at the top of the page…
Geoff Huang
  • 107
  • 1
  • 6
3
votes
1 answer

How to persuade Pandoc to read definition lists in GitHub Flavored Markdown?

I am trying to automate conversion of a GitHub Pages site to LateX in order to produce a PDF. The Kramdown parser used by GHP understands the following definition list syntax: term1 : definition1 term2 : definition 2 so definition lists formatted…
Greg Wilson
  • 1,015
  • 10
  • 24
3
votes
1 answer

How to make markdown text align justify

I use this

Some plain texts will be aligned justify

It is really awesome when I just have plain text. However, if I would like to justify something like this, it does not work correctly. The url and list will disappear.…
Zhenye Na
  • 423
  • 1
  • 7
  • 12
3
votes
1 answer

Add class to table rows in Kramdown

In kramdown, it is generally easy to add a class to some bit of text. Here, for example, is a blockquote: > This is a blockquote. {:.example} HTML output:
This is a blockquote.
While this technique works in…
Scott Severance
  • 943
  • 10
  • 27
3
votes
1 answer

Code block with Kramdown, modified in Liquid

I want to move my posts from WordPress to Jekyll and i have a problem with code blocks. I wrote code for replacing original formatting tags with Kramdown tags, but the page does not recognize the formatting marks and treats it like text. Here is…
Jacek Rojek
  • 1,082
  • 8
  • 16
1 2
3
13 14