This repository was archived by the owner on Nov 1, 2017. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +7
-17
lines changed
Expand file tree Collapse file tree 4 files changed +7
-17
lines changed Original file line number Diff line number Diff line change 1515# <div class="js-task-list-container">
1616# <ul class="task-list">
1717# <li class="task-list-item">
18- # <label>
19- # <input type="checkbox" class="js-task-list-item-checkbox" disabled />
20- # text
21- # </label>
18+ # <input type="checkbox" class="js-task-list-item-checkbox" disabled />
19+ # text
2220# </li>
2321# </ul>
2422# <form>
3331# TaskList Items SHOULD be an a list (`UL`/`OL`) element.
3432#
3533# Task list items MUST match `(input).task-list-item-checkbox` and MUST be
36- # `disabled` by default. The Item's contents SHOULD be wrapped in a `LABEL`.
34+ # `disabled` by default.
3735#
3836# TaskLists MUST have a `(textarea).js-task-list-field` form element whose
3937# `value` attribute is the source (Markdown) to be udpated. The source MUST
Original file line number Diff line number Diff line change 1010.task-list-item label {
1111 font-weight : normal ;
1212}
13- .task-list-item.enabled label {
14- cursor : pointer ;
15- }
1613.task-list-item + .task-list-item {
1714 margin-top : 3px ;
1815}
Original file line number Diff line number Diff line change @@ -92,11 +92,8 @@ def render_item_checkbox(item)
9292 #
9393 # Returns the marked up task list item Nokogiri::XML::NodeSet object.
9494 def render_task_list_item ( item )
95- Nokogiri ::HTML . fragment <<-html , 'utf-8'
96- < label > #{
97- item . source . sub ( ItemPattern , render_item_checkbox ( item ) )
98- } </ label>
99- html
95+ Nokogiri ::HTML . fragment \
96+ item . source . sub ( ItemPattern , render_item_checkbox ( item ) ) , 'utf-8'
10097 end
10198
10299 # Public: Select all task lists from the `doc`.
Original file line number Diff line number Diff line change 7171 < div class ="markdown ">
7272 < ul class ="task-list ">
7373 < li class ="task-list-item ">
74- < label >
75- < input type ="checkbox " class ="task-list-item-checkbox " disabled />
76- I'm a task list item
77- </ label >
74+ < input type ="checkbox " class ="task-list-item-checkbox " disabled />
75+ I'm a task list item
7876 </ li >
7977 </ ul >
8078 </ div >
You can’t perform that action at this time.
0 commit comments