Replies: 1 comment 1 reply
-
Just from a quick glance: for k,v in pairs(originalClasses) do table.insert(newClasses, v) end
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Finishing and trying to add an option to a Lua filter, I stumbled upon a problem that I reduced to some sort of MWE. Maybe it’s me doing wrong things (I’m not an expert at all) but this seems quite strange to me.
Consider this markdown file (note the foo class):
And then this filter:
Then, when I invoke:
I get the expected output in the console:
But the generated AST contains also a foo class in the Para block:
Since the console output is correct and Blocks are evaluated last to first (so the one with the wanted foo class is the last evaluated), I can’t figure what I’m doing wrong…
Beta Was this translation helpful? Give feedback.
All reactions