@@ -33,25 +33,21 @@ local filter = {
3333}
3434
3535-- https://pandoc.org/custom-readers.html
36- local reader = {
37- globals = {
38- " Reader" , " Extensions" , " ByteStringReader"
39- },
40- }
41-
4236-- https://pandoc.org/custom-writers.html
43- local writer = {
37+ local custom = {
4438 globals = {
45- " PANDOC_DOCUMENT" , " Writer" , " Extensions" , " Doc" , " Template" ,
46- " Blocksep" , " ByteStringWriter" , " CaptionedImage" , " DisplayMath" , " DoubleQuoted" , " InlineMath" , " SingleQuoted" ,
39+ -- custom scope
40+ " PANDOC_DOCUMENT" ,
41+ " ByteStringReader" , " ByteStringWriter" , " Doc" , " Extensions" , " Reader" , " Template" , " Writer" ,
42+ -- extra types applicable to readers/writers
43+ " Blocksep" , " CaptionedImage" , " DisplayMath" , " DoubleQuoted" , " InlineMath" , " SingleQuoted" ,
4744 },
4845}
4946
5047local variants = {
51- pandoc = { globals = combine (common , filter , reader , writer ) },
48+ pandoc = { globals = combine (common , filter , custom ) },
5249 filter = { globals = combine (common , filter ) },
53- reader = { globals = combine (common , reader ) },
54- writer = { globals = combine (common , writer ) },
50+ custom = { globals = combine (common , custom ) },
5551}
5652
5753return variants
0 commit comments