File tree Expand file tree Collapse file tree 2 files changed +23
-1
lines changed
src/resources/filters/quarto-pre Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change 1+ -- input-traits.lua
2+ -- Copyright (C) 2020 by RStudio, PBC
3+
4+
5+ function addInputTrait (key , value )
6+ preState .results .inputTraits [key ] = value
7+ end
8+
9+ local kPositionedRefs = ' positioned-refs'
10+ function inputTraits ()
11+ return {
12+ Div = function (el )
13+ local hasPositionedRefs = el .attr .identifier == ' refs'
14+ if (hasPositionedRefs ) then
15+ addInputTrait (kPositionedRefs , true )
16+ end
17+ end
18+ }
19+ end
Original file line number Diff line number Diff line change @@ -11,7 +11,8 @@ text = require 'text'
1111preState = {
1212 usingTikz = false ,
1313 results = {
14- resourceFiles = pandoc .List ({})
14+ resourceFiles = pandoc .List ({}),
15+ inputTraits = {}
1516 },
1617 file = nil ,
1718 appendix = false ,
@@ -74,6 +75,7 @@ import("content-hidden.lua")
7475import (" line-numbers.lua" )
7576import (" output-location.lua" )
7677import (" include-paths.lua" )
78+ import (" input-traits.lua" )
7779-- [/import]
7880
7981initParams ()
@@ -109,6 +111,7 @@ return {
109111 panelTabset (),
110112 panelLayout (),
111113 panelSidebar (),
114+ inputTraits ()
112115 }),
113116 combineFilters ({
114117 fileMetadata (),
You can’t perform that action at this time.
0 commit comments