-
Notifications
You must be signed in to change notification settings - Fork 9
Refactor: migrate to Commonmarker v1.0+ API #29
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
base: master
Are you sure you want to change the base?
Conversation
|
僕も最近commonmarkerでこけていることに気付いて https://github.com/Nyoho/tdiary-style-gfm/tree/conform-new-commonmarker で修正しながら実験していました。 これまでのオプションを反映するために これで unsafe が使えるのかと思ったら、これでもなお (ここまで調べたところで止まっています) |
|
Just a small correction — |
|
Thanks! I will migrate Travis to GitHub Actions at next week. Could you wait until that migration? |
|
@Nyoho コメントありがとうございます。 |
|
@hsbt yes, I can wait. |
|
(((Plus, just a super small correction — "an usage" should be "a usage"))) |
|
本当ですね! デフォルト値のリンク、ありがとうございます。
|
|
それから現バージョンだと、なぜかエラーで止まるのではなくてGFMを使っている.td2ファイルだけがごっそり消えるという怪現象が起こります。 |
|
@Nyoho 無学なので教えていただきたいのですが、 .td2ファイルとは何でしょうか? |
|
@satoryu tDiaryで日記を書いたときに保存される、拡張子td2で作られるファイルです。月ごとに1つずつ作られます。 まだ、どの組み合わせで再現するのか特定できていないのですが、僕の本番環境でGFMの.td2ファイルがごっそり消えて、昔のWiki形式のファイルだけが残っていました。(しばらくbundle updateしていなかったところで最近bundle updateして、rubyも3.4にしたら起こりました。) |
|
@satoryu I've done to migrate to GitHub Actions. I found commonmarker 2.0 break |
Yes, this PR addresses that break (see here). Also, the migration to GitHub Actions helped uncover another issue: a dependency problem when running tests on Ruby 2.7. We might consider dropping support for Ruby 2.7 and stop running tests on Ruby 2.7 in GitHub Actions. |
|
It seems only requirement version issue of RubyGems. Could you try with |
the latest version 3.6.9 of rubygems requires ruby 3.1 or later.
commonmarkerhas changed its API since v1.0.0 —render_htmlis now deprecated and the newto_htmlmethod is recommended.Changes in this PR
CommonMarker#render_htmlwithCommonmarker#to_html