Skip to content

Commit eda0794

Browse files
authored
Merge branch 'main' into main
2 parents cf5b6e8 + 2ba5858 commit eda0794

File tree

3 files changed

+31
-8
lines changed

3 files changed

+31
-8
lines changed

CHANGELOG.md

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,29 @@
22

33
<!-- <START NEW CHANGELOG ENTRY> -->
44

5+
## 7.16.6
6+
7+
([Full Changelog](https://github.com/jupyter/nbconvert/compare/v7.16.5...01c6ab25ec81277ab4d8585747f904c89a8c02b0))
8+
9+
### Bugs fixed
10+
11+
- Prevent leading whitespace in markdown code blocks from being stripped [#2203](https://github.com/jupyter/nbconvert/pull/2203) ([@peytondmurray](https://github.com/peytondmurray))
12+
- Fix bullet list parsing in markdown [#2177](https://github.com/jupyter/nbconvert/pull/2177) ([@douglas-raillard-arm](https://github.com/douglas-raillard-arm))
13+
- Fix crash when running with optimization [#2160](https://github.com/jupyter/nbconvert/pull/2160) ([@QuLogic](https://github.com/QuLogic))
14+
15+
### Maintenance and upkeep improvements
16+
17+
- remove any twitter mention [#2206](https://github.com/jupyter/nbconvert/pull/2206) ([@Carreau](https://github.com/Carreau))
18+
- Update base.tex.j2 for macro compatibility with newer versions of Pandoc [#2196](https://github.com/jupyter/nbconvert/pull/2196) ([@PetalAdrift](https://github.com/PetalAdrift))
19+
20+
### Contributors to this release
21+
22+
([GitHub contributors page for this release](https://github.com/jupyter/nbconvert/graphs/contributors?from=2025-01-02&to=2025-01-28&type=c))
23+
24+
[@Carreau](https://github.com/search?q=repo%3Ajupyter%2Fnbconvert+involves%3ACarreau+updated%3A2025-01-02..2025-01-28&type=Issues) | [@douglas-raillard-arm](https://github.com/search?q=repo%3Ajupyter%2Fnbconvert+involves%3Adouglas-raillard-arm+updated%3A2025-01-02..2025-01-28&type=Issues) | [@gabemorris12](https://github.com/search?q=repo%3Ajupyter%2Fnbconvert+involves%3Agabemorris12+updated%3A2025-01-02..2025-01-28&type=Issues) | [@krassowski](https://github.com/search?q=repo%3Ajupyter%2Fnbconvert+involves%3Akrassowski+updated%3A2025-01-02..2025-01-28&type=Issues) | [@PetalAdrift](https://github.com/search?q=repo%3Ajupyter%2Fnbconvert+involves%3APetalAdrift+updated%3A2025-01-02..2025-01-28&type=Issues) | [@peytondmurray](https://github.com/search?q=repo%3Ajupyter%2Fnbconvert+involves%3Apeytondmurray+updated%3A2025-01-02..2025-01-28&type=Issues) | [@QuLogic](https://github.com/search?q=repo%3Ajupyter%2Fnbconvert+involves%3AQuLogic+updated%3A2025-01-02..2025-01-28&type=Issues)
25+
26+
<!-- <END NEW CHANGELOG ENTRY> -->
27+
528
## 7.16.5
629

730
([Full Changelog](https://github.com/jupyter/nbconvert/compare/v7.16.4...18e10f6484afdfee39105248c28abe5ef0835b22))
@@ -29,8 +52,6 @@
2952

3053
[@bollwyvl](https://github.com/search?q=repo%3Ajupyter%2Fnbconvert+involves%3Abollwyvl+updated%3A2024-04-29..2025-01-02&type=Issues) | [@fcollonval](https://github.com/search?q=repo%3Ajupyter%2Fnbconvert+involves%3Afcollonval+updated%3A2024-04-29..2025-01-02&type=Issues) | [@krassowski](https://github.com/search?q=repo%3Ajupyter%2Fnbconvert+involves%3Akrassowski+updated%3A2024-04-29..2025-01-02&type=Issues) | [@pre-commit-ci](https://github.com/search?q=repo%3Ajupyter%2Fnbconvert+involves%3Apre-commit-ci+updated%3A2024-04-29..2025-01-02&type=Issues) | [@stuaxo](https://github.com/search?q=repo%3Ajupyter%2Fnbconvert+involves%3Astuaxo+updated%3A2024-04-29..2025-01-02&type=Issues) | [@t-makaro](https://github.com/search?q=repo%3Ajupyter%2Fnbconvert+involves%3At-makaro+updated%3A2024-04-29..2025-01-02&type=Issues) | [@takluyver](https://github.com/search?q=repo%3Ajupyter%2Fnbconvert+involves%3Atakluyver+updated%3A2024-04-29..2025-01-02&type=Issues) | [@thomasjm](https://github.com/search?q=repo%3Ajupyter%2Fnbconvert+involves%3Athomasjm+updated%3A2024-04-29..2025-01-02&type=Issues) | [@timkpaine](https://github.com/search?q=repo%3Ajupyter%2Fnbconvert+involves%3Atimkpaine+updated%3A2024-04-29..2025-01-02&type=Issues) | [@xiacunshun](https://github.com/search?q=repo%3Ajupyter%2Fnbconvert+involves%3Axiacunshun+updated%3A2024-04-29..2025-01-02&type=Issues)
3154

32-
<!-- <END NEW CHANGELOG ENTRY> -->
33-
3455
## 7.16.4
3556

3657
([Full Changelog](https://github.com/jupyter/nbconvert/compare/v7.16.3...71fde294f623083f364bf68e14f07459dee952e6))
@@ -1613,7 +1634,6 @@ raw template
16131634
{%- endblock in_prompt -%}
16141635
"""
16151636

1616-
16171637
exporter_attr = AttrExporter()
16181638
output_attr, _ = exporter_attr.from_notebook_node(nb)
16191639
assert "raw template" in output_attr

nbconvert/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from typing import List
55

66
# Version string must appear intact for versioning
7-
__version__ = "7.16.5"
7+
__version__ = "7.16.6"
88

99
# Build up version_info tuple for backwards compatibility
1010
pattern = r"(?P<major>\d+).(?P<minor>\d+).(?P<patch>\d+)(?P<rest>.*)"

nbconvert/filters/markdown.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ def markdown2html_mistune(source: str) -> str:
3636
]
3737

3838

39-
def markdown2latex(source, markup="markdown", extra_args=None):
39+
_MARKDOWN_FMT = "markdown+lists_without_preceding_blankline"
40+
41+
42+
def markdown2latex(source, markup=_MARKDOWN_FMT, extra_args=None):
4043
"""
4144
Convert a markdown string to LaTeX via pandoc.
4245
@@ -65,7 +68,7 @@ def markdown2html_pandoc(source, extra_args=None):
6568
Convert a markdown string to HTML via pandoc.
6669
"""
6770
extra_args = extra_args or ["--mathjax"]
68-
return convert_pandoc(source, "markdown", "html", extra_args=extra_args)
71+
return convert_pandoc(source, _MARKDOWN_FMT, "html", extra_args=extra_args)
6972

7073

7174
def markdown2asciidoc(source, extra_args=None):
@@ -80,7 +83,7 @@ def markdown2asciidoc(source, extra_args=None):
8083
atx_args = ["--markdown-headings=atx"]
8184

8285
extra_args = extra_args or atx_args
83-
asciidoc = convert_pandoc(source, "markdown", "asciidoc", extra_args=extra_args)
86+
asciidoc = convert_pandoc(source, _MARKDOWN_FMT, "asciidoc", extra_args=extra_args)
8487
# workaround for https://github.com/jgm/pandoc/issues/3068
8588
if "__" in asciidoc:
8689
asciidoc = re.sub(r"\b__([\w \n-]+)__([:,.\n\)])", r"_\1_\2", asciidoc)
@@ -111,4 +114,4 @@ def markdown2rst(source, extra_args=None):
111114
out : string
112115
Output as returned by pandoc.
113116
"""
114-
return convert_pandoc(source, "markdown", "rst", extra_args=extra_args)
117+
return convert_pandoc(source, _MARKDOWN_FMT, "rst", extra_args=extra_args)

0 commit comments

Comments
 (0)