Skip to content

Changelog¤

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

1.9.3 - 2024-06-24¤

Compare with 1.9.2

Bug Fixes¤

  • Fix patching lines in tracebacks on Python 3.13 (917af4c by Timothée Mazzucotelli). Issue-58

1.9.2 - 2024-06-20¤

Compare with 1.9.1

Bug Fixes¤

  • Render source even if output is empty (d3f1e6b by Timothée Mazzucotelli). Issue-57

1.9.1 - 2024-06-14¤

Compare with 1.9.0

Build¤

  • Re-include tests folder in source distributions (ae549db by Timothée Mazzucotelli). Issue-55

1.9.0 - 2024-06-13¤

Compare with 1.8.3

Features¤

  • Abort with error when the plugin is configured to require the ANSI extra but it is not installed (25bcbbe by Timothée Mazzucotelli).
  • Allow excluding assets when rendering Pyodide fence (5412353 by Timothée Mazzucotelli).
  • Detect when SuperFences is not enabled and error out early (5d771d2 by Timothée Mazzucotelli). Issue-39
  • Allow changing the console width for the execution of code blocks (76d603c by Timothée Mazzucotelli). Issue-34
  • Allow automatic execution of code blocks thanks to the MARKDOWN_EXEC_AUTO environment variable (0db27b2 by Timothée Mazzucotelli). Issue-24
  • Allow changing working directory for code blocks execution (ee3fae9 by Timothée Mazzucotelli). Issue-20

Bug Fixes¤

  • Reuse existing loggers tp prevent wrong dispatch (8967270 by Timothée Mazzucotelli).
  • Don't render anything when code block output is empty (4337d13 by Timothée Mazzucotelli). Issue-17
  • Increase minimum height of Pyodide output code blocks (93598b2 by Timothée Mazzucotelli). Issue-40
  • Fix removal of temporary div for headings forwarding (c012c1d by Timothée Mazzucotelli). Issue-50

Code Refactoring¤

  • Wrap placeholders in <div> to avoid them being wrapped in <p> (500ed1b by Timothée Mazzucotelli).

1.8.3 - 2024-05-22¤

Compare with 1.8.2

Bug Fixes¤

  • Don't leak future annotations in user code (ba0c35e by Timothée Mazzucotelli). Issue-47

1.8.2 - 2024-05-20¤

Compare with 1.8.1

Bug Fixes¤

  • Give __name__ to executed Python "modules", and populate sys.modules too (db25ee7 by Timothée Mazzucotelli). Issue-47

1.8.1 - 2024-04-15¤

Compare with 1.8.0

Bug Fixes¤

  • Add missing CSS classes to the ANSI stylesheet (51493f2 by Timothée Mazzucotelli). Issue-43

1.8.0 - 2024-01-05¤

Compare with 1.7.0

Features¤

  • Add pyodide fence (3a2fab0 by Timothée Mazzucotelli).
  • Add ansi option to mark ANSI extra as required or not (27743c2 by Timothée Mazzucotelli). Issue #28, Issue #29

Code Refactoring¤

  • Modernize MkDocs plugin (4864608 by Timothée Mazzucotelli).

1.7.0 - 2023-10-17¤

Compare with 1.6.0

Features¤

  • Set MKDOCS_CONFIG_DIR environment variable to build file path relative to it (a2cbea5 by Timothée Mazzucotelli).

1.6.0 - 2023-04-18¤

Compare with 1.5.3

Features¤

  • Add idprefix option allowing to change/remove HTML id/href prefixes (4d91463 by Timothée Mazzucotelli).

1.5.3 - 2023-04-18¤

Compare with 1.5.2

Code Refactoring¤

  • Reuse Markdown configuration as declared in mkdocs.yml (afe091c by Timothée Mazzucotelli).

1.5.2 - 2023-04-18¤

Compare with 1.5.1

Code Refactoring¤

  • Reset counter in post build event (3bf80de by Timothée Mazzucotelli).

1.5.1 - 2023-04-17¤

Compare with 1.5.0

Bug Fixes¤

  • Remove pycon output lines when rendering source as console (fb5a23d by Timothée Mazzucotelli).
  • Fix nested rendering (a110d44 by Timothée Mazzucotelli).

1.5.0 - 2023-04-17¤

Compare with 1.4.1

Features¤

  • Update ToC with generated headings (5ea2263 by Timothée Mazzucotelli).

1.4.1 - 2023-04-16¤

Compare with 1.4.0

Bug Fixes¤

  • Improve handling of errors within sessions (87ac5f3 by Timothée Mazzucotelli).
  • Swallow non-extra parameters in run functions (f5d4fef by Timothée Mazzucotelli).

Code Refactoring¤

  • Simplify tree formatter signature (09d5427 by Timothée Mazzucotelli).

1.4.0 - 2023-03-15¤

Compare with 1.3.0

Features¤

  • Sessions: persist and reuse state for Python and Pycon code blocks (a8fef5e by Timothée Mazzucotelli). Issue #16

1.3.0 - 2023-02-18¤

Compare with 1.2.0

Features¤

  • Support wrapping result with console source (268c82e by Timothée Mazzucotelli). Issue #13

Code Refactoring¤

  • Remove margin hack from Material source (beec237 by Timothée Mazzucotelli).
  • Better support pycon syntax (22b51c6 by Timothée Mazzucotelli).

1.2.0 - 2023-02-01¤

Compare with 1.1.0

Features¤

1.1.0 - 2023-01-27¤

Compare with 1.0.0

Features¤

  • Log details to help debugging errors (4c0228d by Timothée Mazzucotelli). Issue #12
  • Allow expecting specific exit codes (620ec66 by Timothée Mazzucotelli). Issue #10

Code Refactoring¤

  • Formatters now only accept keyword arguments (0940ca9 by Timothée Mazzucotelli).

1.0.0 - 2022-11-24¤

Compare with 0.7.4

Features¤

  • Allow defining IDs on code blocks (for warnings) (0091167 by Timothée Mazzucotelli).

Code Refactoring¤

  • Use base format everywhere (more flexible) (cefba70 by Timothée Mazzucotelli).

0.7.4 - 2022-11-13¤

Compare with 0.7.3

Bug Fixes¤

  • Render source for non-HTML output (regression) (3028dcd by Timothée Mazzucotelli).

0.7.3 - 2022-11-13¤

Compare with 0.7.2

Bug Fixes¤

  • Don't wrap HTML in p tag (420d79d by Timothée Mazzucotelli).

0.7.2 - 2022-09-01¤

Compare with 0.7.1

Bug Fixes¤

  • Make tree formatter forward extra options (54996a9 by Timothée Mazzucotelli).
  • Fix race condition issue (37d7f86 by Timothée Mazzucotelli).

0.7.1 - 2022-08-28¤

Compare with 0.7.0

Bug Fixes¤

  • Allow printing non-string objects (ceaa482 by Timothée Mazzucotelli). Issue #7

0.7.0 - 2022-05-28¤

Compare with 0.6.0

Features¤

  • Add ability to hide source lines (3cb1934 by Timothée Mazzucotelli).

0.6.0 - 2022-05-21¤

Compare with 0.5.0

Features¤

  • Add tree formatter (8096990 by Timothée Mazzucotelli).
  • Handle code blocks execution errors and log warnings (34e16db by Timothée Mazzucotelli).

Bug Fixes¤

  • Fix Python execution to support nested scopes (74b9a95 by Timothée Mazzucotelli).

0.5.0 - 2022-05-09¤

Compare with 0.4.0

Features¤

  • Allow wrapping result in code block (37201e4 by Timothée Mazzucotelli).
  • Add support for shell code blocks (f2b4b67 by Timothée Mazzucotelli).

Code Refactoring¤

  • Fetch plugin languages from dict (de8309e by Timothée Mazzucotelli).
  • Add reusable base formatter (c265bee by Timothée Mazzucotelli).

0.4.0 - 2022-05-09¤

Compare with 0.3.1

Features¤

  • Add literate Markdown support (8d3ed7e by Timothée Mazzucotelli).
  • Add material-block style to show source (ff10ee1 by Timothée Mazzucotelli).
  • Support up to 8 levels of exec code block nesting (bfde808 by Timothée Mazzucotelli).

0.3.1 - 2022-05-07¤

Compare with 0.3.0

Bug Fixes¤

  • Actually prevent HTML re-rendering (4374852 by Timothée Mazzucotelli).

0.3.0 - 2022-05-01¤

Compare with 0.2.0

Features¤

  • Support pycon code blocks (2c86394 by Timothée Mazzucotelli).
  • Add console source integration option (62dfd74 by Timothée Mazzucotelli).
  • Provide a MkDocs plugin for easier setup (5fce814 by Timothée Mazzucotelli).
  • Support changing tabs titles (d150596 by Timothée Mazzucotelli).
  • Allow using print in code blocks (7c124fd by Timothée Mazzucotelli).
  • Allow passing extra opts like title to source code blocks (bb3252a by Timothée Mazzucotelli).

Code Refactoring¤

  • Split Python formatter to allow reuse (fc56702 by Timothée Mazzucotelli).
  • Setup a more robust Markdown converter (395f4c4 by Timothée Mazzucotelli).

0.2.0 - 2022-04-18¤

Compare with 0.1.0

Features¤

  • Add ability to render using tabs (91a95ae by Timothée Mazzucotelli).

0.1.0 - 2022-02-19¤

Compare with first commit

Features¤

  • Implement execution of code blocks (41c8d81 by Timothée Mazzucotelli).