Table not render when use Redcarpet in Jekyll GitHub Pages?

Od silnika maruku (domyślnie), zapisywanie tabeli jak

surround text, etc.

| Tables        | Are           | Cool  |
| ------------- |:-------------:| -----:|
| col 3 is      | right-aligned | $1600 |
| col 2 is      | centered      |   $12 |
| zebra stripes | are neat      |    $1 |

surround text...

Renderuje poprawnie.

Ale kiedy przełączę się na redcarpet (dodaj markdown: redcarpet do _config.yml), Tabela nie będzie już renderowana, zarówno na localhost, jak i na stronach GitHub.

Czy zrobiłem coś nie tak?
Author: neizod, 2013-04-19

3 answers

Dodanie tylko markdown: redcarpet do _config.yml nie wystarczy, potrzebna jest również część extensions, np.

markdown: redcarpet
redcarpet:
  extensions: ["no_intra_emphasis", "fenced_code_blocks", "autolink", "tables", "with_toc_data"]
 64
Author: neizod,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2013-04-21 00:46:15

Dla tego pytania, wydaje się, że ważnym rozszerzeniem jest tutaj "tables".

Jednak jeśli chcesz więcej Markdown o Smaku Github, jest kilka więcej wymienionych na http://sholsinger.com/2014/03/jekyll-github-flavored-markdown .

Połączenie z odpowiedzią neizoda skończyło się użyciem.

markdown: redcarpet
redcarpet:
  extensions: ["no_intra_emphasis", "fenced_code_blocks", "autolink", "tables", "strikethrough", "superscript", "with_toc_data"]
 6
Author: Ben Holland,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2015-01-23 16:44:39

Silnik' redcarpet ' markdown nie jest już obsługiwany przez strony GitHub i może przestać działać w dowolnym momencie. możesz uzyskać informacje z github help , może znajdziesz rozwiązanie w tym numerze .

 0
Author: LTChen,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/doraprojects.net/template/agent.layouts/content.php on line 54
2017-10-15 08:32:57