-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
URL 自動リンク #13
Comments
GFM として処理させるようにした #24 ので解決したはず。 |
kramdown の GFM に設定しても autolink が有効にならない様子。 https://jekyllrb.com/docs/configuration/markdown/ Jekyll デフォルトの redcarpet では autolink を有効にすれば良いが、GitHub Pages で採用する kramdown の設定にはない。 https://kramdown.gettalong.org/options.html GitHub の Autolink では出来ると書いてあるが kramdown の issues では出来ないと書いている状況 https://help.github.com/articles/autolinked-references-and-urls/
https://help.github.com/articles/updating-your-markdown-processor-to-kramdown/ 2016 年には kramdown だけサポートすると宣言して現在のドキュメントでもそう書かれてるけど変わったのか、GFM 再現したければ html-pipilen の Rinku での処理と組み合わせろということのどちらかということかな。。。と探していたら 2017 年に SFM の仕様を固めたアナウンスをしていて実装もあった。 https://githubengineering.com/a-formal-spec-for-github-markdown/ cmark-gfm がリファレンス実装と考えれば良さそうだが、これを jekyll でどう使うかというのが問題。 |
少しローカルで試行錯誤したのだけど、Gemfile 更新して gem "github-pages", group: :jekyll_plugins だけを書くようにしてあげると最新の github-pages が読み込まれ、そこから最新の jekyll-commonmark-ghpages が読み込まれるようになり、めでたく autolink オプションが有効になった。 |
github 上で md ファイルを参照するときには自動リンクが付くが jekyll のビルドによる github pages では付かない。そのままでも良いけど自動リンクあった方が便利かも知れない。
取りあえず出来ないことを明確にするために issue を残します。
The text was updated successfully, but these errors were encountered: