Skip to content

Conversation

cscheid
Copy link
Collaborator

@cscheid cscheid commented Jul 21, 2025

  • Missing documentation on quarto-web

Minimal self-test:

format-identifier.qmd

---
format: html+test
filters:
  - format-identifier.lua
---

format-identifier.lua

function Pandoc(doc)
  local identifier = quarto.format.format_identifier()
  assert(identifier["target-format"] == "html+test")
  assert(identifier["base-format"] == "html")
  assert(identifier["display-name"] == "HTML")
  return doc
end

.format_identifier()
@posit-snyk-bot
Copy link
Collaborator

posit-snyk-bot commented Jul 21, 2025

🎉 Snyk checks have passed. No issues have been found so far.

security/snyk check is complete. No issues have been found. (View Details)

license/snyk check is complete. No issues have been found. (View Details)

@cderv
Copy link
Collaborator

cderv commented Jul 22, 2025

So if we expose this directly to LUA, I would vote for exposing exactly the same to engine
Which was exactly your idea in #2216

So we could do both for 1.8: Expose FormatIdentifier to engines and Lua process.

@cscheid cscheid added this to the v1.8 milestone Aug 19, 2025
@cscheid cscheid merged commit 5eba3a1 into main Aug 20, 2025
8 of 10 checks passed
@cscheid cscheid deleted the feature/lua-format-id branch August 20, 2025 14:50
@cscheid
Copy link
Collaborator Author

cscheid commented Aug 20, 2025

(the docs will come from quarto-web/feature/lua-api-autogen in prerelease.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants