We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6128b33 commit a77170eCopy full SHA for a77170e
src/lib.rs
@@ -133,7 +133,15 @@ pub fn run(
133
has_input_filename = true;
134
}
135
if let Some(options) = options {
136
- sile_input.set("options", options)?;
+ // TODO: when mlua v0.10 merges, adapt this like the uses parsing to avoid chunking
137
+ for option in options.iter() {
138
+ let option = lua.create_string(option)?;
139
+ lua.load(chunk! {
140
+ local parameter = SILE.parserBits.parameters:match($option);
141
+ SILE.input.options = pl.tablex.merge(SILE.input.options, parameter, true)
142
+ })
143
+ .eval::<()>()?;
144
+ }
145
146
if let Some(modules) = uses {
147
// let parser_bits: LuaTable = sile.get("parserBits")?;
0 commit comments