madflow / flow-netbeans-markdown

Markdown file support for the NetBeans IDE
MIT License
279 stars 40 forks source link

Task Lists Support #54

Open wate opened 10 years ago

wate commented 10 years ago

Writing on GitHub https://help.github.com/articles/writing-on-github#task-lists

junichi11 commented 10 years ago

What's the feature that you expect ? (e.g. highlighting

Thanks.

wate commented 10 years ago

「Task lists」の機能に対応してもらえるとありがたいです

junichi11 commented 10 years ago

すみません、まだ期待されていることがわかっていません。。。 具体的にはどういうことでしょうか? Previewでの表示でしょうか? 改行時のリストの自動追加(- [ ])でしょうか?

wate commented 10 years ago

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出力時にチェックボックスに変換してくれるだけでも、 人に見せやすくなるんで助かるかなーって感じで思ってます。

junichi11 commented 10 years ago

何度もお手数をおかけしましたm( )m 理解いたしました。Task lists の機能は知っていたのですが、その機能のことではなく、プラグイン側が対応する具体的な内容(エディタでの入力時やハイライトのサポートだったり、HTMLへの変換後の表示だったり)を知りたかったのです。

変換部分は他の人が実装していますので、このまま聞いてみますね。

junichi11 commented 10 years ago

@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?

madflow commented 10 years ago

@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).

junichi11 commented 10 years ago

@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:

madflow commented 10 years ago

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 ?

wate commented 9 years ago

@madflow http://rubygems.org/gems/github-markdown

Chris2011 commented 7 years ago

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.

Chris2011 commented 7 years ago

Benchmarks can be find on the flexmark page. Would be great to have a better, faster implementation here.