Skip to content

1.4 Changelog Updates: Lua Filters Β #8301

@cwickham

Description

@cwickham

Moving from #7906

Leaving up to @cscheid if and where these are documented:

Lua filters

  • Add support for relative paths in require() calls.
  • Add support quarto.doc.add_resource and quarto.doc.add_supporting. add_resource will add a resource file to the current render, copying that file to the same relative location in the output directory. add_supporting will add a supporting file to the current render, moving that file file to the same relative location in the output directory.
  • (#5242): Add line numbers to error messages.
  • (#5461): ensure return type of stripTrailingSpace is always pandoc.List.
  • (#5466): Provide global environment _G to user filters.
  • (#6211): Improve error message when a JSON filter (or a potentially misspelled Lua filter from an extension) is not found.
  • (#6215): Add quarto.utils.string_to_inlines and quarto.utils.string_to_blocks to Lua API to convert a string to a list of inlines or blocks taking into account quarto's AST structure.
  • (#6289): allow markdownToInlines to take empty string.
  • (#6935): Add isGithubMarkdownOutput() to quarto.format API.
  • (#6935): render callouts to gfm using GitHub's syntax.
  • (#7083): Separate custom node handlers for Span and Div nodes, enabling conditional content spans (author: @knuesel)

Metadata

Metadata

Assignees

Labels

documentationDoc improvements & quarto-web

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions