:footnotes extension won't work in Redcarpet Ruby gem

女生的网名这么多〃 提交于 2019-12-06 13:38:54

I have had this problem as well. It looks like the Rubygem needs to be updated past version 3.0.0 in order for footnotes to work. There are changes in the master branch which aren't available on Rubygems.

To fix your issue for the time being, source the gem from the Redcarpet Github repo:

gem 'redcarpet', github: 'vmg/redcarpet', branch: 'master'

Then run bundle install. Footnotes should now work.

I've opened an issue on the Redcarpet repo to try to get someone to update the Rubygem with the latest changes. I'll post back here if/when that's done.

Actually, the :footnotes extension is only on master ; we haven't yet released a version which ships with this feature. This will be in 3.1.0 (since we are using semantic versioning) that we are about to release (we have still some adjustments to do). You can safely depend on the master branch of the repository ; we are always ensuring that our test suite is green on Travis!

Thank you, have a nice day!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!