#Post-Processing ?
11 messages · Page 1 of 1 (latest)
It looks like no-one has responded to your question yet. People might not be available right now or don’t know how to answer your question. Want an answer while you wait? Try asking our experimental bot in #1095492539085230272.
Still unanswered
What do you want to add or do after post processing mby its possible another way?
Do you want to do it at runtime or build time? If it's build time, write an integration and use node apis like path and fs. If it's at runtime, I think you can leverage middlewares, I made some experiments here https://github.com/florian-lefebvre/astro-capo/blob/main/packages/astro-capo/src/middleware.ts
At build time. So I guess I'll look into integrations.
While I don't currently need the runtime part, I'll still look into your project for future usage.
Automatic figure numbering and references generation. Basically I need to search in the html when a class named "reftag" is used, then at the end I need to generate the list of references in the order they appear
Then you can go for something like https://github.com/capricorn86/happy-dom
You mean creating an integration that makes use of this ?
Is that what you meant ?
while post-processing is a viable option, it could have been possible depending on your use case to identify the references way earlier. If you're the one who generated the html content out of the data, there might be a way to extract references from the data, maybe ? For that we might need to look into more details on how your example looks like.