aboutsummaryrefslogtreecommitdiff
path: root/pandoc-lua-engine/test
diff options
context:
space:
mode:
authorAlbert Krewinkel <[email protected]>2025-08-11 19:54:23 +0200
committerJohn MacFarlane <[email protected]>2025-09-02 17:50:47 +0200
commite0acb24528cbf409ae5723e537acb0c2ed4e2d91 (patch)
tree77bf1d4ac09a2ec049da651d32bd97a04656dd4d /pandoc-lua-engine/test
parent64757254ab6e1d005cf8f4ee6c491d97aed7b16f (diff)
Refactor highlighting options [API Change]
A new command line option `--syntax-highlighting` is provided; it takes the values `none`, `default`, `idiomatic`, a style name, or a path to a theme file. It replaces the `--no-highlighting`, `--highlighting-style`, and `--listings` options. The `writerListings` and `writerHighlightStyle` fields of the `WriterOptions` type are replaced with `writerHighlightStyle`. Closes: #10525
Diffstat (limited to 'pandoc-lua-engine/test')
-rw-r--r--pandoc-lua-engine/test/lua/module/globals.lua7
1 files changed, 2 insertions, 5 deletions
diff --git a/pandoc-lua-engine/test/lua/module/globals.lua b/pandoc-lua-engine/test/lua/module/globals.lua
index 11b003981..1e5882c47 100644
--- a/pandoc-lua-engine/test/lua/module/globals.lua
+++ b/pandoc-lua-engine/test/lua/module/globals.lua
@@ -41,8 +41,8 @@ return {
assert.are_equal(type(v), 'string')
end
end),
- test('highlight_style', function ()
- assert.are_equal(type(PANDOC_WRITER_OPTIONS.highlight_style), 'table')
+ test('highlight_method', function ()
+ assert.are_equal(type(PANDOC_WRITER_OPTIONS.highlight_method), 'string')
end),
test('html_math_method', function ()
assert.are_equal(type(PANDOC_WRITER_OPTIONS.html_math_method), 'string')
@@ -56,9 +56,6 @@ return {
test('incremental', function ()
assert.are_equal(type(PANDOC_WRITER_OPTIONS.incremental), 'boolean')
end),
- test('listings', function ()
- assert.are_equal(type(PANDOC_WRITER_OPTIONS.listings), 'boolean')
- end),
test('number_offset', function ()
assert.are_equal(type(PANDOC_WRITER_OPTIONS.number_offset), 'table')
for _, v in ipairs(PANDOC_WRITER_OPTIONS.number_offset) do