Parse YAML-style Options from Shinylive Code Blocks
Source:R/quarto-cell-parser.R
parse_yaml_options.RdParses YAML-style configuration options from Shinylive code block headers.
These options appear as lines prefixed with '#|' and follow a simplified
YAML-like syntax for key-value pairs.
Value
A named list of parsed options where:
Array values (e.g.,
'[1, 2, 3]') are converted to character vectorsBoolean values ('true'/'false') are converted to logical values
Numeric values are converted to numeric type
Other values remain as character strings