From 75ac32b336e967269536e8cb811a5c661ca99e5c Mon Sep 17 00:00:00 2001 From: Zhaopudark Date: Thu, 14 Mar 2024 19:25:51 +0800 Subject: [PATCH] Add `md2html_increase_header_level_filter`, which will increase the header level by 1. --- resources/outputs/test_md2html_header_anchor_and_link.html | 2 +- scripts/etc/environment.yml | 2 +- src/pandoc_filter/version.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/outputs/test_md2html_header_anchor_and_link.html b/resources/outputs/test_md2html_header_anchor_and_link.html index 376ad62..578054f 100644 --- a/resources/outputs/test_md2html_header_anchor_and_link.html +++ b/resources/outputs/test_md2html_header_anchor_and_link.html @@ -179,7 +179,7 @@ } @media print { pre > code.sourceCode { white-space: pre-wrap; } - pre > code.sourceCode > span { text-indent: -5em; padding-left: 5em; } + pre > code.sourceCode > span { display: inline-block; text-indent: -5em; padding-left: 5em; } } pre.numberSource code { counter-reset: source-line 0; } diff --git a/scripts/etc/environment.yml b/scripts/etc/environment.yml index cfe5423..33cc1c9 100644 --- a/scripts/etc/environment.yml +++ b/scripts/etc/environment.yml @@ -2,7 +2,7 @@ channels: - conda-forge - defaults dependencies: - - pandoc>=3.1.12.1 -c conda-forge + - pandoc>=3.1.12.2 -c conda-forge - pip: - setuptools - build diff --git a/src/pandoc_filter/version.py b/src/pandoc_filter/version.py index 54ac80a..3cb0bf5 100644 --- a/src/pandoc_filter/version.py +++ b/src/pandoc_filter/version.py @@ -3,5 +3,5 @@ """ from .utils import check_pandoc_version -check_pandoc_version(required_version='3.1.12') +check_pandoc_version(required_version='3.1.12.2') __version__ = '0.2.13' \ No newline at end of file