Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Helper to encode data for Quarto processing inside HTML table #178

Open
cderv opened this issue May 6, 2024 · 0 comments
Open

Helper to encode data for Quarto processing inside HTML table #178

cderv opened this issue May 6, 2024 · 0 comments
Milestone

Comments

@cderv
Copy link
Collaborator

cderv commented May 6, 2024

See explanation at

related to

Docs for Quarto feature is at: https://quarto.org/docs/authoring/tables.html#html-tables

Example:

as_quarto_markdown <- function(content) {
  sprintf('<span data-qmd="%s">%s</span>', content, content)
}

this could be used in table to make HTML with special attributes for Quarto to process and replace

  • Should handle span and div. as_quarto_markdown(..., block = TRUE) ?
  • Should handle complex content by base64 encoding (using xfun::base64_encode() and data-qmd-base64
  • Should probably have a markdown with special class to mark as it as content to not escape (using I() like for new R quarto inline ?)
@cderv cderv added this to the next version milestone May 6, 2024
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

No branches or pull requests

1 participant