@@ -347,8 +347,20 @@ builtin_standards.sile = {
347
347
-- https://pandoc.org/lua-filters.html#global-variables
348
348
builtin_standards .pandoc = {
349
349
globals = {
350
+ -- Global modules
350
351
" pandoc" , " lpeg" , " re" ,
351
- " PANDOC_READER_OPTIONS" , " PANDOC_WRITER_OPTIONS" , " PANDOC_VERSION" , " PANDOC_API_VERSION" , " PANDOC_SCRIPT_FILE" , " PANDOC_STATE" ,
352
+ -- Global variables passed to filters
353
+ " FORMAT" , " PANDOC_READER_OPTIONS" , " PANDOC_WRITER_OPTIONS" , " PANDOC_VERSION" , " PANDOC_API_VERSION" ,
354
+ " PANDOC_SCRIPT_FILE" , " PANDOC_STATE" ,
355
+ -- Globals that can be used to create filter elements
356
+ -- - top level
357
+ " Inlines" , " Inline" , " Blocks" , " Block" , " Meta" , " Pandoc" ,
358
+ -- - inline
359
+ " Cite" , " Code" , " Emph" , " Image" , " LineBreak" , " Link" , " Math" , " Note" , " Quoted" , " RawInline" , " SmallCaps" ,
360
+ " SoftBreak" , " Space" , " Span" , " Str" , " Strikeout" , " Strong" , " Subscript" , " Superscript" , " Underline" ,
361
+ -- - block
362
+ " BlockQuote" , " BulletList" , " CodeBlock" , " DefinitionList" , " Div" , " Figure" , " Header" , " HorizontalRule" ,
363
+ " LineBlock" , " OrderedList" , " Para" , " Plain" , " RawBlock" , " Table" ,
352
364
}
353
365
}
354
366
0 commit comments