forked from forgejo/forgejo
Markdown task list improvements (#13952)
* Markdown task list improvements - Remove `.ui` class and wrappers to prevent fomantic from messing with it. - Change rendered HTML to match GitHub. - Add custom styling for the checkboxes. * fix unittest Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
parent
287b594803
commit
41e8b834af
5 changed files with 60 additions and 16 deletions
|
@ -142,9 +142,9 @@ func testAnswers(baseURLContent, baseURLImages string) []string {
|
|||
<p>(from <a href="https://www.markdownguide.org/extended-syntax/" rel="nofollow">https://www.markdownguide.org/extended-syntax/</a>)</p>
|
||||
<h3 id="user-content-checkboxes">Checkboxes</h3>
|
||||
<ul>
|
||||
<li class="task-list-item"><span class="ui checkbox"><input type="checkbox" readonly="readonly"/><label>unchecked</label></span></li>
|
||||
<li class="task-list-item"><span class="ui checked checkbox"><input type="checkbox" checked="" readonly="readonly"/><label>checked</label></span></li>
|
||||
<li class="task-list-item"><span class="ui checkbox"><input type="checkbox" readonly="readonly"/><label>still unchecked</label></span></li>
|
||||
<li class="task-list-item"><input type="checkbox" disabled=""/>unchecked</li>
|
||||
<li class="task-list-item"><input type="checkbox" disabled="" checked=""/>checked</li>
|
||||
<li class="task-list-item"><input type="checkbox" disabled=""/>still unchecked</li>
|
||||
</ul>
|
||||
<h3 id="user-content-definition-list">Definition list</h3>
|
||||
<dl>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue