Pandoc Jupyter filter to allow/prevent code blocks #9511
Replies: 1 comment
-
Ah, here's the solution:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm (mostly successfully) converting Jupyter to LaTex. I can allow/prevent Jupyter code blocks from appearing in the LaTex by using this Lua filter:
function Div(el)
if el.classes:includes("code") then
if el.content[1].t == "CodeBlock" then
el.content:remove(1)
end
end
return el
end
Now looking for a Lua filter or other solution to prevent only those Jupyter code blocks that are set to not display. Can you help me?
Alternatively, how about a filter to prevent only Jupyter code blocks that contain specific text?
Many thanks.
Beta Was this translation helpful? Give feedback.
All reactions