Skip to content

Commit

Permalink
Fix a bug in run_filters_pyio on invoking actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhaopudark committed Jan 24, 2024
1 parent b915082 commit fb90a68
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Pandoc-Filter 0.2.3
## Release 0.2.3
Fix a bug in `run_filters_pyio` on invoking actions.

# Pandoc-Filter 0.2.2
## Release 0.2.2
Add `**kwargs` to all filter functions for better compatibility.
Expand Down
2 changes: 1 addition & 1 deletion src/pandoc_filter/scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def run_filters_pyio(input_path:pathlib.Path,
if prepare:
prepare(doc=doc,**kwargs)
for action in actions:
action = action(doc=doc,**kwargs)
doc = action(doc=doc,**kwargs)
if finalize:
finalize(doc=doc,**kwargs)
with open(output_path, "w", encoding="utf-8") as f:
Expand Down
2 changes: 1 addition & 1 deletion src/pandoc_filter/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
from .utils import check_pandoc_version

check_pandoc_version(required_version='3.1.0')
__version__ = '0.2.2'
__version__ = '0.2.3'

0 comments on commit fb90a68

Please sign in to comment.