Skip to content

Commit

Permalink
Upgrade pandoc to a version that supports cell ids
Browse files Browse the repository at this point in the history
  • Loading branch information
mwouts committed Oct 30, 2022
1 parent 1cef18c commit b7a343c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ dependencies:
- pip
- setuptools
- twine
- pandoc==2.16.2
- pandoc>=2.17 # Support for cell ids
# make html in docs folder
- sphinx
- tox-conda
Expand Down
6 changes: 3 additions & 3 deletions tests/test_pre_commit_5_reformat_markdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def test_pre_commit_hook_sync_reformat_code_and_markdown(
code and markdown cells.
Note: the new cell ids introduced in nbformat 5.1.0 are not yet supported by all the programs that treat
ipynb files. Consequently we pin the version of nbformat to 5.0.8 in all the environments below (and you
ipynb files. Consequently, we pin the version of nbformat to 5.0.8 in all the environments below (and you
will have to do the same on the environment in which you edit the notebooks).
"""
pre_commit_config_yaml = f"""
Expand All @@ -38,12 +38,12 @@ def test_pre_commit_hook_sync_reformat_code_and_markdown(
- id: jupytext
args: [--sync, --pipe-fmt, ipynb, --pipe, 'pandoc --from ipynb --to ipynb --markdown-headings=atx', --show-changes]
additional_dependencies:
- nbformat==5.0.8 # because pandoc 2.11.4 does not preserve yet the new cell ids
- nbformat==5.7.0
- id: jupytext
args: [--sync, --pipe, black, --show-changes]
additional_dependencies:
- black==22.3.0 # Matches black hook below
- nbformat==5.0.8 # for compatibility with the pandoc hook above
- nbformat==5.7.0
- repo: https://github.com/psf/black
rev: 22.3.0
Expand Down

0 comments on commit b7a343c

Please sign in to comment.