Task Lists Support
Writing on GitHub https://help.github.com/articles/writing-on-github#task-lists
What's the feature that you expect ? (e.g. highlighting
Thanks.
「Task lists」の機能に対応してもらえるとありがたいです
すみません、まだ期待されていることがわかっていません。。。 具体的にはどういうことでしょうか? Previewでの表示でしょうか? 改行時のリストの自動追加(- [ ])でしょうか?
GFMには[ ]と[x]でチェックボックスおよび、
チェックボックスのチェックされてるかどうかの状態を表現できるんですが、
その機能のことを指してます。
最初のリンクに項目に「Task lists」って表記だったんで、それにあわせたんですけど、
余計にわかりにくかったですかね・・
もしかしたら、こっちのほうがわかりやすいかもかも知れないんで 別のリンクページをのURLを記載しておきます。
Task Lists in GFM: Issues/Pulls, Comments https://github.com/blog/1375-task-lists-in-gfm-issues-pulls-comments
さすがに相互に反映ってのは無理があると思うんですが、 HTML出力時にチェックボックスに変換してくれるだけでも、 人に見せやすくなるんで助かるかなーって感じで思ってます。
何度もお手数をおかけしましたm(_ _)m 理解いたしました。Task lists の機能は知っていたのですが、その機能のことではなく、プラグイン側が対応する具体的な内容(エディタでの入力時やハイライトのサポートだったり、HTMLへの変換後の表示だったり)を知りたかったのです。
変換部分は他の人が実装していますので、このまま聞いてみますね。
@madflow @stengerh If we use task lists in GFM (- [ ], - [x]), convert them to checkboxes when generate Html from markdown text. What do you think about this feature? Could you implement it?
@junichi11 We use pegdown for these tasks. Pegdown does not support this Github dialect feature (yet). But since it supports plugins (https://github.com/sirthias/pegdown#plugins) I reckon this feauture could be implemented without hacking directly on the core library.
It should be toggled under Options like all the other extensions in the NetBeans Markdown Plugin.
Since Github is a big driver for writing documentation in markdown I do not mind implementing their feautures. I hope they do not come up with a <blink> Tag markdown feature though :D (jkjk).
@madflow Thanks for your reply :)
It should be toggled under Options like all the other extensions in the NetBeans Markdown Plugin.
I think so :+1:
I have problem finding the specs for this feature. There is a Blog post:
https://github.com/blog/1825-task-lists-in-all-markdown-documents
@wate do you know if there there is an open source version of actual implementation + tests ?
@madflow http://rubygems.org/gems/github-markdown
As I see it here: https://github.com/sirthias/pegdown:
>>> DEPRECATION NOTE <<<:
Although still one of the most popular Markdown parsing libraries for the JVM, pegdown has reached its end of life.
The project is essentially unmaintained with tickets piling up and crucial bugs not being fixed.
pegdown's parsing performance isn't great. In some cases of pathological input runtime can even become exponential, which means that the parser either appears to "hang" completely or abort processing after a time-out.
time to change the parser to e.g.: https://github.com/vsch/flexmark-java or https://github.com/atlassian/commonmark-java
Faster and more active.
Benchmarks can be find on the flexmark page. Would be great to have a better, faster implementation here.