Skip to content

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

@cderv

Description

@cderv

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 ?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions