Skip to content

feat(quarto): add quarto-lua skill for Lua shortcodes and filters#39

Draft
mcanouil wants to merge 5 commits intoposit-dev:mainfrom
mcanouil:feat/quarto-lua
Draft

feat(quarto): add quarto-lua skill for Lua shortcodes and filters#39
mcanouil wants to merge 5 commits intoposit-dev:mainfrom
mcanouil:feat/quarto-lua

Conversation

@mcanouil
Copy link
Contributor

@mcanouil mcanouil commented Mar 9, 2026

Add a new quarto-lua skill for writing Lua shortcodes and filters in Quarto.

The skill provides inline patterns for shortcode handlers and AST filters, Lua coding conventions (naming, indentation, scoping, error handling), Quarto-specific APIs (is_format, add_html_dependency, include_text, quarto.log.output), and a decision tree that delegates to Quarto's .llms.md pages for detailed API reference.

A references/custom-ast-nodes.md file documents Quarto's custom AST node types (Callout, ConditionalBlock, Tabset, FloatRefTarget, etc.), constructor signatures, and filter timing phases.

Evaluation

File Lines ~Tokens
SKILL.md 181 1,536
references/custom-ast-nodes.md 84 708
Total 265 2,244
Description - 42

mcanouil added 2 commits March 9, 2026 21:24
Add a new skill for writing Lua shortcodes and filters in Quarto.
Covers handler patterns, Lua style conventions, Quarto-specific APIs,
and delegates to Quarto's .llms.md pages for detailed API reference.
@mcanouil

This comment was marked as resolved.

@mcanouil mcanouil marked this pull request as draft March 9, 2026 22:13
Include details on custom AST nodes and filter timing in the documentation. This enhances the understanding of Quarto's capabilities for users working with Lua shortcodes and filters.
@mcanouil mcanouil marked this pull request as ready for review March 9, 2026 22:19
@mcanouil mcanouil marked this pull request as draft March 9, 2026 22:40
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.

1 participant