Fix images not displaying (#108)

This commit is contained in:
Hendrik Kleinwaechter
2023-06-01 16:02:09 +02:00
committed by GitHub
parent 037ae6d7fd
commit 916b610a53
2 changed files with 12 additions and 13 deletions

View File

@@ -1,9 +1,8 @@
local filter = require "make4ht-filter"
local changePath = function(s) return s:gsub("%./images//","images/") end
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(changePath(s)))) end
local removeFixedSettings = function(s) return removeMaxWidth(removeWidth(removeHeight(s))) end
local process = filter{removeFixedSettings}
Make:htlatex()
Make:match("html$",process)