mirror of
https://github.com/hendricius/the-sourdough-framework
synced 2025-12-01 15:23:59 -06:00
9 lines
443 B
Plaintext
9 lines
443 B
Plaintext
local filter = require "make4ht-filter"
|
|
local removeHeight = function(s) return s:gsub('height="%d+"', '') end
|
|
local removeWidth = function(s) return s:gsub('width="%d+"', '') end
|
|
local removeMaxWidth = function(s) return s:gsub(' max-width: %d+px;', '') end
|
|
local removeFixedSettings = function(s) return removeMaxWidth(removeWidth(removeHeight(s))) end
|
|
local process = filter{removeFixedSettings}
|
|
Make:htlatex()
|
|
Make:match("html$",process)
|