MarkdownViewerPlusPlus icon indicating copy to clipboard operation
MarkdownViewerPlusPlus copied to clipboard

[Feature Request] Support for Task List Items

Open Clicketyclick opened this issue 6 years ago • 8 comments

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

  • Notepad++ X.Y.Z (x86/x64)
  • MarkdownViewer++ X.Y.Z
  • Windows 7/8/10 (x86/x64)

Clicketyclick avatar May 28 '18 09:05 Clicketyclick

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

tasmin avatar Jul 19 '18 19:07 tasmin

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

jnstllng avatar Sep 22 '18 11:09 jnstllng

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

bblankrot avatar Sep 26 '18 08:09 bblankrot

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

nea avatar Sep 26 '18 08:09 nea

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.

ckuhlmann avatar Oct 19 '18 10:10 ckuhlmann

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

asherber avatar Dec 02 '18 15:12 asherber

Hey @asherber

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

Will have a look.

Thanks

nea avatar Dec 03 '18 06:12 nea

Any news on this?

fdrobidoux avatar Jan 16 '19 17:01 fdrobidoux