diff options
author | silverwind <me@silverwind.io> | 2020-12-13 02:05:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-13 09:05:50 +0800 |
commit | 41e8b834afbd0c98a8ab4549a90a6bce0ec7096f (patch) | |
tree | 67e3a2de682b8884af5befeaa47b1924aa83fbd3 /modules/markup/sanitizer_test.go | |
parent | 287b594803105ba517680aa50be478648d434035 (diff) | |
download | gitea-41e8b834afbd0c98a8ab4549a90a6bce0ec7096f.tar.gz gitea-41e8b834afbd0c98a8ab4549a90a6bce0ec7096f.zip |
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>
Diffstat (limited to 'modules/markup/sanitizer_test.go')
-rw-r--r-- | modules/markup/sanitizer_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/markup/sanitizer_test.go b/modules/markup/sanitizer_test.go index 3e8dcecd50..63b70166d8 100644 --- a/modules/markup/sanitizer_test.go +++ b/modules/markup/sanitizer_test.go @@ -40,7 +40,7 @@ func Test_Sanitizer(t *testing.T) { `<kbd>Ctrl + C</kbd>`, `<kbd>Ctrl + C</kbd>`, `<i class="dropdown icon">NAUGHTY</i>`, `<i>NAUGHTY</i>`, `<i class="icon dropdown"></i>`, `<i class="icon dropdown"></i>`, - `<span class="ui checkbox"><input type="checkbox" readonly="readonly"/><label>unchecked</label></span>`, `<span class="ui checkbox"><input type="checkbox" readonly="readonly"/><label>unchecked</label></span>`, + `<input type="checkbox" disabled=""/>unchecked`, `<input type="checkbox" disabled=""/>unchecked`, `<span class="emoji dropdown">NAUGHTY</span>`, `<span>NAUGHTY</span>`, `<span class="emoji">contents</span>`, `<span class="emoji">contents</span>`, } |