Strip HTML-only author meta from product-test reports.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
9
filters/html-no-extra-meta.lua
Normal file
9
filters/html-no-extra-meta.lua
Normal file
@@ -0,0 +1,9 @@
|
||||
-- Keep YAML author for Typst/PDF (sidebar + document metadata),
|
||||
-- but strip it from HTML so the page does not show more than the PDF body.
|
||||
function Meta(meta)
|
||||
if quarto.doc.is_format("html") then
|
||||
meta.author = nil
|
||||
meta["by-author"] = nil
|
||||
end
|
||||
return meta
|
||||
end
|
||||
Reference in New Issue
Block a user