nea / MarkdownViewerPlusPlus

A Notepad++ Plugin to view a Markdown file rendered on-the-fly
MIT License
1.16k stars 143 forks source link

[Feature Request] Support for Task List Items #80

Open Clicketyclick opened 6 years ago

Clicketyclick commented 6 years ago

Issue description

Support for Github task lists (aka check lists) as described at:

https://github.github.com/gfm/#task-list-items-extension-

Markdown to reproduce

- [x] foo
  - [ ] bar
  - [x] baz
- [ ] bim

Screenshot

<ul>
<li><input checked="" disabled="" type="checkbox"> foo
<ul>
<li><input disabled="" type="checkbox"> bar</li>
<li><input checked="" disabled="" type="checkbox"> baz</li>
</ul>
</li>
<li><input disabled="" type="checkbox"> bim</li>
</ul>

Environment

tasmin commented 5 years ago

This feature would be really helpful in instructional documents like setup instructions.

jnstllng commented 5 years ago

+1 from my side. This would make this plugin complete for me...

bblankrot commented 5 years ago

This should be easy, since markdig already supports this: just using Markdig.Extensions.TaskLists and maybe an update to the newest version.

nea commented 5 years ago

Hi @bblankrot

The problem is not Markdig but the HTMLRenderer, which does not support the format and rendering and is not actively developed anymore. The Markdig extension is actually enabled.

Sorry

ckuhlmann commented 5 years ago

It would be great if markdig would use a different class for checked list items. That way this issue could be mitigated by using some css that would e.g. strike through the list item or display a background that "shows" the checkbox. The current viewer result does not represent the intent of the markup.

asherber commented 5 years ago

What about https://github.com/LayoutFarm/HtmlRenderer ?

nea commented 5 years ago

Hey @asherber

Thanks for pointing that repo out. Didn't now that fork.

Will have a look.

Thanks

fdrobidoux commented 5 years ago

Any news on this?

neil-lobo commented 2 weeks ago

bump