Skip to content

Commit

Permalink
T.P.App: Move "transforms" after filters.
Browse files Browse the repository at this point in the history
This will mean that `--shift-heading-level-by` affects a
heading added by `reference-section-title`. See #9664.
  • Loading branch information
jgm committed Apr 18, 2024
1 parent 57dfab5 commit 3d90234
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Text/Pandoc/App.hs
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,8 @@ convertWithOpts' scriptingEngine istty datadir opts = do
>>= ( return . adjustMetadata (metadataFromFile <>)
>=> return . adjustMetadata (<> optMetadata opts)
>=> return . adjustMetadata (<> cslMetadata)
>=> applyTransforms transforms
>=> applyFilters scriptingEngine filterEnv filters [T.unpack format]
>=> applyTransforms transforms
>=> (if not (optSandbox opts) &&
(isJust (optExtractMedia opts)
|| format == "docx") -- for fallback pngs
Expand Down

0 comments on commit 3d90234

Please sign in to comment.