Skip to content

Commit f35f62b

Browse files
authored
Merge pull request #12492 from quarto-dev/improve/create-shortcode
shortcode extension template - use new params and link to docs
2 parents 4e5fec8 + ba2eee5 commit f35f62b

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

news/changelog-1.7.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,3 +176,4 @@ All changes included in 1.7:
176176
- ([#12338](https://github.com/quarto-dev/quarto-cli/issues/12338)): Add an additional workaround for the SCSS parser used in color variable extraction.
177177
- ([#12369](https://github.com/quarto-dev/quarto-cli/pull/12369)): `quarto preview` correctly throws a YAML validation error when a `format` key does not conform.
178178
- ([#12459](https://github.com/quarto-dev/quarto-cli/pull/12459)): Add `.page-inset-*` classes to completions.
179+
- ([#12492](https://github.com/quarto-dev/quarto-cli/pull/12492)): Improve shortcode extension template with new parameters and a link to docs.
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
return {
2-
['<%= filesafename %>'] = function(args, kwargs, meta)
2+
['<%= filesafename %>'] = function(args, kwargs, meta, raw_args, context)
3+
-- see https://quarto.org/docs/extensions/shortcodes.html
4+
-- for documentation on shortcode development
35
return pandoc.Str("Hello from ${title}!")
46
end
57
}

0 commit comments

Comments
 (0)