Skip to content

Commit

Permalink
feat: Add corner radius (and padding) (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcanouil authored Jul 15, 2024
1 parent 30d9409 commit 5e2eb54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _extensions/highlight-text/highlight-text.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ local function highlight_html(span, colour, bg_colour)
if bg_colour ~= nil then
span.attributes['bg-colour'] = nil
span.attributes['bg-color'] = nil
span.attributes['style'] = span.attributes['style'] .. 'background-color: ' .. bg_colour .. ';'
span.attributes['style'] = span.attributes['style'] .. 'border-radius: 0.2rem; padding: 0 0.2rem 0 0.2rem;' .. 'background-color: ' .. bg_colour .. ';'
end

return span
Expand Down

0 comments on commit 5e2eb54

Please sign in to comment.