rendering tables with kramdown

razzi's Avatar

razzi

27 Sep, 2013 02:38 PM

On my local Jekyll I use kramdown and this table

|---
| Default aligned | Left aligned | Center aligned | Right aligned
|-|:-|:-:|-:
| First body part | Second cell | Third cell | fourth cell
| Second line |foo | **strong** | baz
| Third line |quux | baz | bar
|---
| Second body
| 2 line
|===
| Footer row

from http://kramdown.rubyforge.org/syntax.html#tables

works fine

when I select in custom processor the same Kramdown, it doesn't get rendered correctly

  1. Support Staff 1 Posted by Brett on 27 Sep, 2013 03:50 PM

    Brett's Avatar

    Works fine here, see if other settings might be causing issues: http://ckyp.us/M5QQ

    -Brett

  2. 2 Posted by razzi on 27 Sep, 2013 05:11 PM

    razzi's Avatar

    You're right - it works fine when I only have the code for the table. But I've included a file where it goes wrong. Remark, this is a 'work-in-progress' setup for my Jekyll site ;-)

  3. 3 Posted by razzi on 27 Sep, 2013 05:17 PM

    razzi's Avatar

    from what I've found so far it has something to do with the

    <cite>(That’s a citation)</cite>

  4. 4 Posted by razzi on 27 Sep, 2013 05:22 PM

    razzi's Avatar

    ok - small example now

    <cite>(That’s a citation)</cite>

    |---
    | Default aligned | Left aligned | Center aligned | Right aligned
    |-|:-|:-:|-:
    | First body part | Second cell | Third cell | fourth cell
    | Second line |foo | **strong** | baz
    | Third line |quux | baz | bar
    |---
    | Second body
    | 2 line
    |===
    | Footer row

    doesn't work, if you delete the <cite> it works fine

    I hope this helps

  5. 5 Posted by razzi on 27 Sep, 2013 05:37 PM

    razzi's Avatar

    it's the quote, Brett, the damned quote ;-)

    It's some sort of a smart quote, not a regular one - pfew

    hope this helps

  6. Support Staff 6 Posted by Brett on 27 Sep, 2013 08:20 PM

    Brett's Avatar

    I still can't get it to fail. Kramdown 1.0.2, your full blog post renders as http://ckyp.us/mOLp

    I tried a whole slew of different config options, but nothing broke it.

    -Brett

  7. 7 Posted by razzi on 27 Sep, 2013 09:16 PM

    razzi's Avatar

    Weird, kramdown 1.2.0 here - but don't worry, I replaced the 'smart' quote with a 'dumb' one, and it works fine now.

    If something more serious pops-up I let you know

  8. Support Staff 8 Posted by Brett on 27 Sep, 2013 09:44 PM

    Brett's Avatar

    I have had endless problems with UTF-8 and extended characters with kramdown (and Jekyll/Liquid in general). It's touchy.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac