Skip to content

Commit

Permalink
Remove pagebreak metadata field from the document
Browse files Browse the repository at this point in the history
  • Loading branch information
tarleb committed Aug 16, 2024
1 parent b056496 commit b3e32d9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pagebreak.lua
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ function Pandoc (doc)
if break_on['plaintext-command'] then
paragraph_checks:insert(plaintext_check)
end
-- unset pagebreak options field in the metadata
doc.meta.pagebreak = nil
return doc:walk {
RawBlock = latex_pagebreak(raw_pagebreak),
-- Replace paragraphs that contain just a form feed char.
Expand Down

0 comments on commit b3e32d9

Please sign in to comment.