markdown-exec 1.10.2__tar.gz → 1.10.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (120) hide show
  1. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/CHANGELOG.md +13 -0
  2. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/PKG-INFO +1 -1
  3. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/pyproject.toml +1 -1
  4. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/src/markdown_exec/assets/pyodide.js +3 -1
  5. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/CODE_OF_CONDUCT.md +0 -0
  6. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/CONTRIBUTING.md +0 -0
  7. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/LICENSE +0 -0
  8. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/README.md +0 -0
  9. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/config/coverage.ini +0 -0
  10. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/config/git-changelog.toml +0 -0
  11. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/config/mypy.ini +0 -0
  12. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/config/pytest.ini +0 -0
  13. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/config/ruff.toml +0 -0
  14. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/config/vscode/launch.json +0 -0
  15. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/config/vscode/settings.json +0 -0
  16. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/config/vscode/tasks.json +0 -0
  17. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/docs/.overrides/main.html +0 -0
  18. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/docs/.overrides/partials/comments.html +0 -0
  19. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/docs/.overrides/partials/path-item.html +0 -0
  20. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/docs/changelog.md +0 -0
  21. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/docs/code_of_conduct.md +0 -0
  22. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/docs/contributing.md +0 -0
  23. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/docs/credits.md +0 -0
  24. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/docs/css/insiders.css +0 -0
  25. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/docs/css/material.css +0 -0
  26. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/docs/css/mkdocstrings.css +0 -0
  27. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/docs/gallery.md +0 -0
  28. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/docs/index.md +0 -0
  29. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/docs/insiders/changelog.md +0 -0
  30. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/docs/insiders/goals.yml +0 -0
  31. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/docs/insiders/index.md +0 -0
  32. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/docs/insiders/installation.md +0 -0
  33. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/docs/js/feedback.js +0 -0
  34. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/docs/js/insiders.js +0 -0
  35. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/docs/license.md +0 -0
  36. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/docs/reference/api.md +0 -0
  37. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/docs/schema.json +0 -0
  38. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/docs/snippets/gallery/ansi.sh +0 -0
  39. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/docs/snippets/gallery/argparse.py +0 -0
  40. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/docs/snippets/gallery/argparse_format.py +0 -0
  41. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/docs/snippets/gallery/chalk.py +0 -0
  42. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/docs/snippets/gallery/d2.py +0 -0
  43. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/docs/snippets/gallery/diagrams.py +0 -0
  44. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/docs/snippets/gallery/drawsvg.py +0 -0
  45. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/docs/snippets/gallery/expandable_filetree.py +0 -0
  46. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/docs/snippets/gallery/hyperbolic.py +0 -0
  47. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/docs/snippets/gallery/matplotlib.py +0 -0
  48. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/docs/snippets/gallery/plotly.py +0 -0
  49. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/docs/snippets/gallery/pydeps.py +0 -0
  50. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/docs/snippets/gallery/qrcode.py +0 -0
  51. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/docs/snippets/gallery/rich.py +0 -0
  52. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/docs/snippets/gallery/rich_terminal.py +0 -0
  53. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/docs/snippets/gallery/runpy.py +0 -0
  54. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/docs/snippets/gallery/textual.py +0 -0
  55. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/docs/snippets/usage/boolean_matrix.py +0 -0
  56. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/docs/snippets/usage/hide.py +0 -0
  57. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/docs/snippets/usage/multiple.pycon +0 -0
  58. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/docs/snippets/usage/platform_html.py +0 -0
  59. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/docs/snippets/usage/platform_md.py +0 -0
  60. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/docs/snippets/usage/source.py +0 -0
  61. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/docs/snippets/usage/source.pycon +0 -0
  62. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/docs/usage/index.md +0 -0
  63. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/docs/usage/pyodide.md +0 -0
  64. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/docs/usage/python.md +0 -0
  65. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/docs/usage/shell.md +0 -0
  66. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/docs/usage/tree.md +0 -0
  67. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/duties.py +0 -0
  68. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/mkdocs.yml +0 -0
  69. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/scripts/gen_credits.py +0 -0
  70. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/scripts/get_version.py +0 -0
  71. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/scripts/insiders.py +0 -0
  72. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/scripts/make +0 -0
  73. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/scripts/make.py +0 -0
  74. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/src/markdown_exec/__init__.py +0 -0
  75. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/src/markdown_exec/_internal/__init__.py +0 -0
  76. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/src/markdown_exec/_internal/debug.py +0 -0
  77. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/src/markdown_exec/_internal/formatters/__init__.py +0 -0
  78. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/src/markdown_exec/_internal/formatters/_exec_python.py +0 -0
  79. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/src/markdown_exec/_internal/formatters/base.py +0 -0
  80. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/src/markdown_exec/_internal/formatters/bash.py +0 -0
  81. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/src/markdown_exec/_internal/formatters/console.py +0 -0
  82. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/src/markdown_exec/_internal/formatters/markdown.py +0 -0
  83. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/src/markdown_exec/_internal/formatters/pycon.py +0 -0
  84. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/src/markdown_exec/_internal/formatters/pyodide.py +0 -0
  85. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/src/markdown_exec/_internal/formatters/python.py +0 -0
  86. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/src/markdown_exec/_internal/formatters/sh.py +0 -0
  87. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/src/markdown_exec/_internal/formatters/tree.py +0 -0
  88. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/src/markdown_exec/_internal/logger.py +0 -0
  89. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/src/markdown_exec/_internal/main.py +0 -0
  90. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/src/markdown_exec/_internal/mkdocs_plugin.py +0 -0
  91. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/src/markdown_exec/_internal/processors.py +0 -0
  92. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/src/markdown_exec/_internal/rendering.py +0 -0
  93. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/src/markdown_exec/assets/ansi.css +0 -0
  94. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/src/markdown_exec/assets/pyodide.css +0 -0
  95. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/src/markdown_exec/formatters/__init__.py +0 -0
  96. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/src/markdown_exec/formatters/base.py +0 -0
  97. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/src/markdown_exec/formatters/bash.py +0 -0
  98. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/src/markdown_exec/formatters/console.py +0 -0
  99. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/src/markdown_exec/formatters/markdown.py +0 -0
  100. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/src/markdown_exec/formatters/pycon.py +0 -0
  101. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/src/markdown_exec/formatters/pyodide.py +0 -0
  102. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/src/markdown_exec/formatters/python.py +0 -0
  103. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/src/markdown_exec/formatters/sh.py +0 -0
  104. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/src/markdown_exec/formatters/tree.py +0 -0
  105. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/src/markdown_exec/logger.py +0 -0
  106. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/src/markdown_exec/mkdocs_plugin.py +0 -0
  107. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/src/markdown_exec/processors.py +0 -0
  108. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/src/markdown_exec/py.typed +0 -0
  109. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/src/markdown_exec/rendering.py +0 -0
  110. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/tests/__init__.py +0 -0
  111. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/tests/conftest.py +0 -0
  112. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/tests/test_api.py +0 -0
  113. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/tests/test_base_formatter.py +0 -0
  114. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/tests/test_converter.py +0 -0
  115. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/tests/test_headings.py +0 -0
  116. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/tests/test_python.py +0 -0
  117. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/tests/test_shell.py +0 -0
  118. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/tests/test_toc.py +0 -0
  119. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/tests/test_tree.py +0 -0
  120. {markdown_exec-1.10.2 → markdown_exec-1.10.3}/tests/test_validator.py +0 -0
@@ -5,10 +5,23 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5
5
  and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
6
6
 
7
7
  <!-- insertion marker -->
8
+ ## [1.10.3](https://github.com/pawamoy/markdown-exec/releases/tag/1.10.3) - 2025-03-24
9
+
10
+ <small>[Compare with 1.10.2](https://github.com/pawamoy/markdown-exec/compare/1.10.2...1.10.3)</small>
11
+
12
+ ### Bug Fixes
13
+
14
+ - Also escape strings printed directly to the output ([a668aeb](https://github.com/pawamoy/markdown-exec/commit/a668aeb9106ed3861553acd50fd38e716eaacd75) by Timothée Mazzucotelli). [Issue-87](https://github.com/pawamoy/markdown-exec/issues/87)
15
+ - Don't forget to clear "Initializing" in Pyodide output ([e0b52b4](https://github.com/pawamoy/markdown-exec/commit/e0b52b44e0355d8f524cbd4c47d32e8a9d51e4c5) by Timothée Mazzucotelli).
16
+
8
17
  ## [1.10.2](https://github.com/pawamoy/markdown-exec/releases/tag/1.10.2) - 2025-03-18
9
18
 
10
19
  <small>[Compare with 1.10.1](https://github.com/pawamoy/markdown-exec/compare/1.10.1...1.10.2)</small>
11
20
 
21
+ ### Deprecations
22
+
23
+ Expose public API under top-level module `markdown_exec`. Importing from submodules is now deprecated.
24
+
12
25
  ### Bug Fixes
13
26
 
14
27
  - Escape Pyodide output, improve error handling ([ec83f48](https://github.com/pawamoy/markdown-exec/commit/ec83f48db29708b03e8d2487ccb0d5ee0889a464) by Timothée Mazzucotelli). [Issue-87](https://github.com/pawamoy/markdown-exec/issues/87)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: markdown-exec
3
- Version: 1.10.2
3
+ Version: 1.10.3
4
4
  Summary: Utilities to execute code blocks in Markdown files.
5
5
  Keywords: markdown,python,exec,shell,bash,mkdocs
6
6
  Author-Email: =?utf-8?q?Timoth=C3=A9e_Mazzucotelli?= <dev@pawamoy.fr>
@@ -45,7 +45,7 @@ classifiers = [
45
45
  dependencies = [
46
46
  "pymdown-extensions>=9",
47
47
  ]
48
- version = "1.10.2"
48
+ version = "1.10.3"
49
49
 
50
50
  [project.optional-dependencies]
51
51
  ansi = [
@@ -16,7 +16,7 @@ function clearOutput(element) {
16
16
  }
17
17
 
18
18
  async function evaluatePython(pyodide, editor, output, session) {
19
- pyodide.setStdout({ batched: (string) => { writeOutput(output, string); } });
19
+ pyodide.setStdout({ batched: (string) => { writeOutput(output, new Option(string).innerHTML); } });
20
20
  let result, code = editor.getValue();
21
21
  clearOutput(output);
22
22
  try {
@@ -101,6 +101,8 @@ async function setupPyodide(idPrefix, install = null, themeLight = 'tomorrow', t
101
101
  writeOutput(output, `Could not install one or more packages: ${install.join(", ")}\n`);
102
102
  writeOutput(output, new Option(error.toString()).innerHTML);
103
103
  }
104
+ } else {
105
+ clearOutput(output);
104
106
  }
105
107
  run.onclick = () => evaluatePython(pyodide, editor, output, session);
106
108
  clear.onclick = () => clearOutput(output);
File without changes
File without changes
File without changes