Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
80dae5f
Add color preview to markdown
yardenshoham Oct 17, 2022
df33f58
Lint
yardenshoham Oct 17, 2022
7fdc683
Simplify code
yardenshoham Oct 17, 2022
4fa76f7
Merge branch 'main' into color-preview
yardenshoham Oct 17, 2022
374d11c
Merge branch 'main' into color-preview
yardenshoham Oct 17, 2022
705f92b
Override renderCodeSpan
yardenshoham Oct 17, 2022
c43063f
continued
yardenshoham Oct 17, 2022
1dfc0bd
Style
yardenshoham Oct 17, 2022
488ff92
Credit
yardenshoham Oct 17, 2022
199e848
Merge branch 'main' into color-preview
yardenshoham Oct 18, 2022
14394ab
Merge branch 'main' into color-preview
yardenshoham Oct 18, 2022
46f3a29
Add tests
yardenshoham Oct 18, 2022
066b41a
Merge branch 'main' into color-preview
yardenshoham Oct 18, 2022
74ab9de
Simplify CSS color check
yardenshoham Oct 18, 2022
a73a774
Update web_src/less/_base.less
yardenshoham Oct 19, 2022
b9c4e62
Update modules/markup/markdown/goldmark.go
yardenshoham Oct 19, 2022
64b8a08
Use dib class
yardenshoham Oct 19, 2022
117f17e
Merge branch 'main' into color-preview
yardenshoham Oct 19, 2022
56bfbf5
Use dib in negative tests
yardenshoham Oct 19, 2022
e048024
Merge branch 'main' into color-preview
yardenshoham Oct 19, 2022
9b408e4
Merge branch 'main' into color-preview
yardenshoham Oct 19, 2022
4c50bb0
Merge branch 'main' into color-preview
yardenshoham Oct 19, 2022
d337934
Merge branch 'main' into color-preview
yardenshoham Oct 20, 2022
46384bb
Merge branch 'main' into color-preview
yardenshoham Oct 20, 2022
544574b
Merge branch 'main' into color-preview
yardenshoham Oct 20, 2022
ed0dde6
Merge branch 'main' into color-preview
lunny Oct 21, 2022
b71ba24
Update modules/markup/markdown/goldmark.go
yardenshoham Oct 21, 2022
001fc08
Move dib into color-preview
yardenshoham Oct 21, 2022
fd096fb
Merge branch 'main' into color-preview
lunny Oct 21, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update modules/markup/markdown/goldmark.go
Co-authored-by: silverwind <[email protected]>
  • Loading branch information
yardenshoham and silverwind authored Oct 21, 2022
commit b71ba247ebc5dd02c23f14039b131032db4efffd
2 changes: 1 addition & 1 deletion modules/markup/markdown/goldmark.go
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ func (r *HTMLRenderer) renderCodeSpan(w util.BufWriter, source []byte, n ast.Nod
r.Writer.RawWrite(w, value)
}
case *ColorPreview:
_, _ = w.WriteString(fmt.Sprintf(`<span class="color-preview dib" style="background-color: %v"></span>`, string(v.Color)))
_, _ = w.WriteString(fmt.Sprintf(`<span class="color-preview" style="background-color: %v"></span>`, string(v.Color)))
}
}
return ast.WalkSkipChildren, nil
Expand Down