在Jekyll GitHub Pages中使用Redcarpet时,表格无法渲染? [英] Table not render when use Redcarpet in Jekyll GitHub Pages?
本文介绍了在Jekyll GitHub Pages中使用Redcarpet时,表格无法渲染?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
从maruku
引擎开始(默认),像这样写表
As of maruku
engine (the default), writing table like
surround text, etc.
| Tables | Are | Cool |
| ------------- |:-------------:| -----:|
| col 3 is | right-aligned | $1600 |
| col 2 is | centered | $12 |
| zebra stripes | are neat | $1 |
surround text...
将正确渲染.
但是当我切换到redcarpet
时(将markdown: redcarpet
添加到_config.yml
中),该表不再呈现,无论是在localhost还是在GitHub Pages上.
But when I switch to redcarpet
(add markdown: redcarpet
into _config.yml
), the table no longer rendered, both localhost and on GitHub Pages.
我做错了吗?
推荐答案
仅在_config.yml
中添加markdown: redcarpet
是不够的,例如,还需要extensions
部分.
Adding only markdown: redcarpet
into _config.yml
is not enough, It's also need the extensions
part, e.g.
markdown: redcarpet
redcarpet:
extensions: ["no_intra_emphasis", "fenced_code_blocks", "autolink", "tables", "with_toc_data"]
这篇关于在Jekyll GitHub Pages中使用Redcarpet时,表格无法渲染?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文