Filter-extensions: how to remove an entry of the format-links
-element for an HTML-page?
#10375
Unanswered
Gewerd-Strauss
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Note that |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
Hello,
I am currently working on a small extension that does the following:
suppress-formats
.quarto render file --to <format>
, its body will be stripped.This will then leave a document consisting only of its frontmatter and whatever that generates, but lacking its document body itself:
HTML:

PDF:

DOCX:

The current code, as well as testing-documents can be found at https://github.com/Gewerd-Strauss/suppress-format-render
Take the following input doc:
This all works.
For HTML-output, I now want to remove the
other formats
-entry for any format which was stripped this way.However, I cannot figure out how to do so. I can't seem to access the data via
doc.meta.format_links
/doc.meta["format-links"]
, or really at all, seemingly.I have not yet decided how to handle the scenario where
format-links
is not a booleanT
/F
, but a list of linked-to formats such as:But as I mostly need the use-case of
format-links: true
in my current scenario, I am not considering this yet.Is there any way I can modify this element of the HTML-output?
Thank you.
Sincerely,
~Gw
Beta Was this translation helpful? Give feedback.
All reactions