diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2026-03-11 12:44:45 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2026-03-11 12:44:45 +0100 |
| commit | 2675f12a21a81af3e2558b19ec1296b27ad44936 (patch) | |
| tree | 2cdd5520a7cf746ebb43d6298201f062d5baeaa5 /pandoc/filters | |
| parent | ca9e4a2f918ff18c842bc70025e18d3aafe88249 (diff) | |
| download | unterricht-2675f12a21a81af3e2558b19ec1296b27ad44936.tar.gz unterricht-2675f12a21a81af3e2558b19ec1296b27ad44936.zip | |
pandoc: do not prepend global logos with relative include path
Diffstat (limited to 'pandoc/filters')
| -rw-r--r-- | pandoc/filters/include-files.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pandoc/filters/include-files.lua b/pandoc/filters/include-files.lua index f9f208e9..06cfd4e6 100644 --- a/pandoc/filters/include-files.lua +++ b/pandoc/filters/include-files.lua @@ -36,7 +36,7 @@ local function update_contents(blocks, shift_by, include_path) end, -- If image paths are relative then prepend include file path Image = function (image) - if path.is_relative(image.src) then + if path.is_relative(image.src) and image.src:sub(1,5) ~= "logos" then image.src = path.normalize(path.join({include_path, image.src})) end return image @@ -77,7 +77,7 @@ function transclude (cb) end end - --- keep track of level before recusion + --- keep track of level before recursion local buffer_last_heading_level = last_heading_level local blocks = List:new() |
