Giter VIP home page Giter VIP logo

Comments (9)

NicoHood avatar NicoHood commented on August 15, 2024 17

I try to enable tables for my github page. I tried the following:

markdown: redcarpet
redcarpet:
  extensions: ["no_intra_emphasis", "fenced_code_blocks", "autolink", "tables", "with_toc_data"]

However I got an email from github:

The page build completed successfully, but returned the following warning for the gh-pages branch:

You are currently using the 'redcarpet' Markdown engine, which is no longer supported by GitHub Pages and may cease working at any time. To ensure your site continues to build, remove the 'markdown' setting in your site's '_config.yml' file and confirm your site renders as expected. For more information, see https://help.github.com/articles/updating-your-markdown-processor-to-kramdown/.

For information on troubleshooting Jekyll see:

https://help.github.com/articles/troubleshooting-jekyll-builds

If you have any questions you can contact us by replying to this email.

So I read this post which stated kramdown enables tables by default. But it does not seem to work in my case. My table looks like this:

| Rating    | Security            | Explanation                             |
|-----------|---------------------|-----------------------------------------|
| Excellent | Very secure         | Criteria is met optimal                 |
| High      | Secure              | Criteria is met                         |
| Mid       | Insufficient secure | Criteria is met partly                  |
| Low       | Insecure            | Criteria is no met                      |
| N/A       | Not rated           | Criteria is not available or irrelevant |

Edit:

The solution is to have an extra line between the headline/text and the table. With normal github markdown and atom markdown this work, but for the page generation you have to add an extra newline.

from pages-gem.

loupipalien avatar loupipalien commented on August 15, 2024 2

remove the 'markdown' setting in site's '_config.yml' file, then add an extra blank line between the headline/text and the table which is working for me.@NicoHood 👍

from pages-gem.

parkr avatar parkr commented on August 15, 2024

Which markdown generator are you using? Kramdown has support for tables, but the other 4 supported Markdown generators may not.

from pages-gem.

doridori avatar doridori commented on August 15, 2024

ah, I am just using the default which i thought was kramdown. Will have a poke around. I just installed the pages gem and added my posts, watching with jekyll serve --watch. I thought this gem setup jekyll with exactly the same setup as github pages so didnt think i could specify the generator in use, unless thats part of the _config file. Will have a look. Sorry, new to all this :)

from pages-gem.

kleinfreund avatar kleinfreund commented on August 15, 2024

You can specify whatever markdown processor you want. And kramdown should be the default.

from pages-gem.

doridori avatar doridori commented on August 15, 2024

ah thanks - im using jekyll now which uses redcarpet by default - which needs (some extra setup)[http://stackoverflow.com/questions/16099153/table-not-render-when-use-redcarpet-in-jekyll-github-pages] for tables to work - will switch to kramdown

from pages-gem.

doridori avatar doridori commented on August 15, 2024

@kleinfreund you say anyone you want - am I right in thinking I can old use either

  • maruku
  • kramdown
  • rdiscount
  • redcarpet

as these are the dependencies of the gem?

from pages-gem.

kleinfreund avatar kleinfreund commented on August 15, 2024

Yeah, you're not limited to kramdown albeit being the current default. The present dependencies will work on GitHub Pages as well.

from pages-gem.

doridori avatar doridori commented on August 15, 2024

Great thx, kramdown is working for me

from pages-gem.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.