mirror of
https://github.com/yuin/goldmark
synced 2025-03-04 23:04:52 +00:00
According to the GFM spec (and per other implementations), a space should be inserted after the checkbox input element. This gives visual separation between the checkbox and its element. Update code and tests to match. Signed-off-by: Alexander Scheel <alexander.m.scheel@gmail.com>
30 lines
624 B
Text
30 lines
624 B
Text
1
|
|
//- - - - - - - - -//
|
|
- [ ] foo
|
|
- [x] bar
|
|
//- - - - - - - - -//
|
|
<ul>
|
|
<li><input disabled="" type="checkbox"> foo</li>
|
|
<li><input checked="" disabled="" type="checkbox"> bar</li>
|
|
</ul>
|
|
//= = = = = = = = = = = = = = = = = = = = = = = =//
|
|
|
|
|
|
|
|
2
|
|
//- - - - - - - - -//
|
|
- [x] foo
|
|
- [ ] bar
|
|
- [x] baz
|
|
- [ ] bim
|
|
//- - - - - - - - -//
|
|
<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>
|
|
//= = = = = = = = = = = = = = = = = = = = = = = =//
|