File tree Expand file tree Collapse file tree 2 files changed +22
-1
lines changed
src/resources/filters/quarto-post Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change 1+ -- fig-cleanup.lua
2+ -- Copyright (C) 2021 by RStudio, PBC
3+
4+
5+ local function stripFigAnonymous (el )
6+ if isAnonymousFigId (el .attr .identifier ) then
7+ el .attr .identifier = " "
8+ return el
9+ end
10+ end
11+
12+ function figCleanup ()
13+ return {
14+ Div = stripFigAnonymous ,
15+ Image = stripFigAnonymous
16+ }
17+ end
18+
19+
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ import("responsive.lua")
1919import (" latexdiv.lua" )
2020import (" foldcode.lua" )
2121import (" book-cleanup.lua" )
22+ import (" fig-cleanup.lua" )
2223import (" ipynb.lua" )
2324import (" ojs.lua" )
2425import (" reveal.lua" )
@@ -48,7 +49,8 @@ return {
4849 ipynb (),
4950 reveal (),
5051 tikz (),
51- delink ()
52+ delink (),
53+ figCleanup ()
5254 }),
5355 ojs (),
5456 quartoPostMetaInject (),
You can’t perform that action at this time.
0 commit comments