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

Ruby Kramdown breaks code block and table in a markdown

It looks that Kramdown changes the delimiter of a code block from ``` to ` when I use to_kramdown. The minimum code is below. require 'kramdown' code = <
masaino
  • 71
  • 4
0
votes
0 answers

When I try to restart Jekyll, I have to reinstall gems first

I am running a Jekyll instance for testing purposes locally. When the server is running for some time (say >24h), and I need to restart it for some reason. I get the following error when starting the server back again. Traceback (most recent call…
A5kar
  • 1
0
votes
1 answer

How to stop Kramdown from removing indents in code blocks?

When rendering Python codeblocks on my Jekyll site, Kramdown removes all of the indents. The code: from sort.AbstractSort import AbstractSort class BubbleSort(AbstractSort): @staticmethod def swap(arr, i, j): arr[i], arr[j] =…
matwasilewski
  • 384
  • 2
  • 11
0
votes
1 answer

Jekyll Kramdown # (H1) not formatting as heading

I am new to Jekyll and kramdown, so I might need help asking my question. I am having trouble with the H1 heading: so the following in a post (markdown file download here): # H1 looks like this ## H2 looks like this ### H3 looks like this #### H4…
Toke Faurby
  • 5,788
  • 9
  • 41
  • 62
0
votes
1 answer

How to generate correct Fragment identifier in Jekyll/Kramdown?

I'am using Jekyll with the Minimal Mistakes template and facing a problem with the fragment header generation. Here is an example.. If you put a header into your *.md page like: ## Fuß- und Radentscheid? you get this in you final html:
row
  • 131
  • 2
  • 11
0
votes
1 answer

Does GitHub flavored markdown, as rendered by kramdown have a maximum number of nested lists?

I am trying to render a markdown document with kramdown. The document has 4 levels of nested lists but the third and fourth levels are rendering as one list. Is there a limit to the number of nested lists in GitHub flavored markdown? 1. item 1 …
natke
  • 743
  • 1
  • 9
  • 21
0
votes
1 answer

How to size an image to a table cell in Kramdown?

I'm building a Jekyll site and I believe it uses kramdown. My problem is that I'm having issues sizing an image in a table cell. In the markdown file I'm trying to include an image, either a check mark or an X in the 3rd column. I can get the image…
Ender
  • 1,652
  • 2
  • 25
  • 50
0
votes
0 answers

Why is jekyll-spaceship's table processor adding so many break tags/ ?

I'm working on a Jekyll website and am using the jekyll-spaceship plugin specifically for it's table processor. Issue: I have a 3 column table with 2 rows. The last cell in the row is a multi-line cell, while the first 2 only have 1 line. When the…
jtomeck
  • 169
  • 1
  • 12
0
votes
0 answers

Jekyll Serve argument error "Option name hard_wrap is already used"

When I try and run bundle exec jekyll serve, I get the error: Conversion error: Jekyll::Converters::Markdown encountered an error while converting. Option name hard_wrap is already…
adamwstl
  • 338
  • 3
  • 12
0
votes
1 answer

How to produce \\ at end of line with kramdown?

I have a Jekyll site hosted on github pages. I have successfully loaded MathJax in my _layouts/default.html and now want to author my document. I have tried to set all cofiguration to default to not complicate matters. The problem is that in some…
LudvigH
  • 3,662
  • 5
  • 31
  • 49
0
votes
1 answer

How do I customize how markdown links are rendered in Jekyll?

Jekyll's markdown can cause a link to be opened in a new tab like so: [External link](https://rubygems.org/gems/jekyll-target-blank){:target="_blank"} This however creates an opening for reverse tabnabbing, which could be prevented by adding…
Alex V
  • 3,416
  • 2
  • 33
  • 52
0
votes
2 answers

Run Node.JS server in Ruby - Kramdown math engine

Problem Hi, I am using Jekyll and Kramdown to render posts in written in markdown to HTML. My posts contains a lot of math. I am using KaTeX gem. This is in my _config.yml file: kramdown: math_engine: katex It works but its that this is slow as…
Jan Černý
  • 1,268
  • 2
  • 17
  • 31
0
votes
1 answer

Jekyll kramdown math render settings

I recently updated to Jekyll 4.0.1 I have made plugin which detects and render latex expressions to html using katex. But now Jekyll's kramdown renders latex expressions differently. In old jekyll would render $$ 1 + 1 = 2$$ like this:
Jan Černý
  • 1,268
  • 2
  • 17
  • 31
0
votes
1 answer

Use MathJax with kramdown, without protecting in div's (as advertised!)

I'm trying to set up jekyll to display math properly. The problem is nothing renders if I do not nest equations inside div tags to protect them from the markdown parser :( --- layout: default math: true --- # Using Mathjax along markdown…
shevket
  • 163
  • 11
0
votes
1 answer

Add CSS class to definition list in kramdown

How can I add a CSS class to a definition list generated by kramdown? Like the HTML sample below. For background, the reason I want to do this is to style it with bootstrap's dl-horizontal class.
Term