Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 9 additions & 9 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions pandoc/pandoc-filter-copperflame-latex/src/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ processBlock (DefinitionList xs) = DefinitionList $ map (\(a, b) -> (map process
processBlock (Header i a xs) = Header i a $ map processInline xs
processBlock HorizontalRule = HorizontalRule
processBlock (Table a caption col thead tbody tfoot) = Table a (processCaption caption) col (processTableHead thead) (map processTableBody tbody) (processTableFoot tfoot)
--filterBibTeX (Figure a c xs) = Figure a (processCaption c) (map filterBibTeX xs)
processBlock (Figure a c xs) = Figure a (processCaption c) (map processBlock xs)
processBlock (Div (id, classes, attrs) blocks) | (pack "minipage") `elem` classes =
Div (id, (pack "merge") : classes, attrs)
$ ((RawBlock (Format $ pack "glue{tex}") $ pack $ "\\begin{minipage}{" ++ (unpack width) ++ "\\textwidth}"))
Expand All @@ -86,7 +86,6 @@ processBlock (Div (id, classes, attrs) blocks) | (pack "minipage") `elem` classe
Nothing -> (pack "0.5")

processBlock (Div attr blocks) | otherwise = Div attr $ processBlockList blocks
processBlock Null = Null


processBlockList :: [Block] -> [Block]
Expand Down
Loading