Skip to content

Commit

Permalink
fix: PDF text highlight should work with line breaks (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcanouil authored Nov 18, 2024
1 parent 31a013b commit eb9c6ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion _extensions/highlight-text/_extension.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
title: Highlight Text
author: Mickaël Canouil
version: 1.0.0
version: 1.0.1
quarto-required: ">=1.4.550"
contributes:
filters:
Expand Down
4 changes: 2 additions & 2 deletions _extensions/highlight-text/highlight-text.lua
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ local function highlight_latex(span, colour, bg_colour)
bg_colour_open = ''
bg_colour_close = ''
else
bg_colour_open = '\\colorbox[HTML]{' .. bg_colour:gsub("^#", "") .. '}{'
bg_colour_close = '}'
bg_colour_open = '\\colorbox[HTML]{' .. bg_colour:gsub("^#", "") .. '}{\\parbox{\\linewidth}{'
bg_colour_close = '}}'
end

table.insert(
Expand Down

0 comments on commit eb9c6ad

Please sign in to comment.