15 Commits

Author SHA1 Message Date
Timothée Mazzucotelli ba0c35e89e fix: Don't leak future annotations in user code
Issue-47: https://github.com/pawamoy/markdown-exec/issues/47
2024-05-22 13:34:30 +02:00
Timothée Mazzucotelli db25ee703d fix: Give __name__ to executed Python "modules", and populate sys.modules too
Issue-47: https://github.com/pawamoy/markdown-exec/issues/47
2024-05-20 20:15:10 +02:00
Timothée Mazzucotelli fb5a23d8d1 fix: Remove pycon output lines when rendering source as console 2023-04-17 16:03:01 +02:00
Timothée Mazzucotelli 87ac5f352c fix: Improve handling of errors within sessions 2023-04-16 20:25:30 +02:00
Timothée Mazzucotelli d7506bdb08 chore: Template upgrade 2023-04-10 22:06:41 +02:00
Timothée Mazzucotelli 7e14e42e95 chore: Template upgrade 2023-03-16 20:55:06 +01:00
Timothée Mazzucotelli a8fef5e90b feat: Sessions: persist and reuse state for Python and Pycon code blocks
Issue #16: https://github.com/pawamoy/markdown-exec/issues/16
2023-03-15 21:42:48 +01:00
Timothée Mazzucotelli 620ec66182 feat: Allow expecting specific exit codes
Issue #10: https://github.com/pawamoy/markdown-exec/issues/10
2023-01-27 12:34:39 +01:00
Timothée Mazzucotelli ceaa482d16 fix: Allow printing non-string objects
Issue #7: https://github.com/pawamoy/markdown-exec/issues/7
2022-08-28 17:08:51 +02:00
Timothée Mazzucotelli aa044f2dd9 tests: Add tests 2022-05-21 15:55:52 +02:00
Timothée Mazzucotelli 4374852706 fix: Actually prevent HTML re-rendering 2022-05-07 21:36:27 +02:00
Timothée Mazzucotelli 7c124fd416 feat: Allow using print in code blocks
Markdown vs. HTML is specified
using the `html` option.

Also, removed useless "isolation".
2022-05-01 19:58:24 +02:00
Timothée Mazzucotelli 91a95ae4c6 feat: Add ability to render using tabs 2022-04-18 20:11:45 +02:00
Timothée Mazzucotelli 9e36587216 tests: Fix tests 2022-02-19 20:04:27 +01:00
Timothée Mazzucotelli 41c8d81992 feat: Implement execution of code blocks 2022-02-11 23:52:41 +01:00