Skip to content

Commit ec6631f

Browse files
committed
feat: Extend pandoc builtins with globals used to create filters
1 parent e6ae154 commit ec6631f

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/luacheck/builtin_standards/init.lua

+13-1
Original file line numberDiff line numberDiff line change
@@ -347,8 +347,20 @@ builtin_standards.sile = {
347347
-- https://pandoc.org/lua-filters.html#global-variables
348348
builtin_standards.pandoc = {
349349
globals = {
350+
-- Global modules
350351
"pandoc", "lpeg", "re",
351-
"PANDOC_READER_OPTIONS", "PANDOC_WRITER_OPTIONS", "PANDOC_VERSION", "PANDOC_API_VERSION", "PANDOC_SCRIPT_FILE", "PANDOC_STATE",
352+
-- Global variables
353+
"PANDOC_READER_OPTIONS", "PANDOC_WRITER_OPTIONS", "PANDOC_VERSION", "PANDOC_API_VERSION", "PANDOC_SCRIPT_FILE",
354+
"PANDOC_STATE",
355+
-- Globals that can be used to create filter elements
356+
-- - top level
357+
"Inlines", "Blocks", "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",
352364
}
353365
}
354366

0 commit comments

Comments
 (0)