pdit 0.4.0__py3-none-any.whl → 0.5.0__py3-none-any.whl

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.
pdit/ipython_executor.py CHANGED
@@ -197,7 +197,7 @@ del _register_pdit_runtime_hooks
197
197
  """Process MIME bundle data into output dicts.
198
198
 
199
199
  Passes through MIME types directly instead of translating to custom types.
200
- Uses priority order: image > html > json > plain text.
200
+ Uses priority order: image > html > markdown > json > plain text.
201
201
  """
202
202
  output: list[dict] = []
203
203
 
@@ -210,6 +210,8 @@ del _register_pdit_runtime_hooks
210
210
  output.append({"type": mime_type, "content": data[mime_type]})
211
211
  elif 'text/html' in data:
212
212
  output.append({"type": "text/html", "content": data['text/html']})
213
+ elif 'text/markdown' in data:
214
+ output.append({"type": "text/markdown", "content": data['text/markdown']})
213
215
  elif 'application/json' in data:
214
216
  json_data = data['application/json']
215
217
  output.append({"type": "application/json", "content": json.dumps(json_data)})
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pdit
3
- Version: 0.4.0
3
+ Version: 0.5.0
4
4
  Summary: Interactive Python code editor with inline execution results
5
5
  Author: Harry Vangberg
6
6
  License: MIT
@@ -3,15 +3,15 @@ pdit/_demo.py,sha256=SMOGoiHBdMDq8pXRVK-uuTRFCFbRd47diUyRR8Y3wZY,2026
3
3
  pdit/cli.py,sha256=3YkWz2Sg3-OszRssWkXbPEu3dDQAXMS8Z0c07bZ7gx8,9634
4
4
  pdit/exporter.py,sha256=i2emLqRQNPW92vFBTamLZyOhUTDU45_0QnOWG7PcIu8,2811
5
5
  pdit/file_watcher.py,sha256=1WlqKWjLCdgMZLdN836MEeWTisGCtZmvgRdOFN-jns8,5200
6
- pdit/ipython_executor.py,sha256=kNsnRiDAFYYVuhZt9O0YRlOIMMAk9QvqeNX2cC6bqdw,15081
6
+ pdit/ipython_executor.py,sha256=Q4G1DwTPKLDanpg_JcNgR_qvQdyJwhRGSQfv87DV2jg,15217
7
7
  pdit/server.py,sha256=URabdsLxiLUipkl8PTc5jgDjMlQV0v8QJTMnNNy0XKs,13941
8
8
  pdit/_static/export.html,sha256=d64NrMEU0n1lOtD4Q6zQ49brBUVh9ajdka42mhsGlLY,332214
9
9
  pdit/_static/index.html,sha256=EyErNmqlcJRNvrVf2hXVOzXvLb-_v4evhjkFEKN20ak,450
10
10
  pdit/_static/assets/index-1w8kifoA.js,sha256=Xh4d_rBVjqKbduAthj54nK4pnpqUoVUd7E4Owih6454,814777
11
11
  pdit/_static/assets/index-rS96z8hq.css,sha256=0EMq2r0to1VxGznyp18tWCd97_sSZhGVC3YF7QdBXEU,22855
12
- pdit-0.4.0.dist-info/licenses/LICENSE,sha256=Y9tvBURRu-1aHUHY-tnbsDpPBTRYKWpIInVmaoOUkME,1071
13
- pdit-0.4.0.dist-info/METADATA,sha256=zMxTz1crDPr_xWF0JcCmWVfQ_KkH975rV3mrjxHvibQ,1859
14
- pdit-0.4.0.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
15
- pdit-0.4.0.dist-info/entry_points.txt,sha256=n9I4wGD7M0NQrPWJcTWOsJAzeS6bQJbTnUP8C3Sl-iY,39
16
- pdit-0.4.0.dist-info/top_level.txt,sha256=wk6vel1ecJS4EZZ3U6Xue9OwDq-Tw8Pbvq_TRQz9eIQ,5
17
- pdit-0.4.0.dist-info/RECORD,,
12
+ pdit-0.5.0.dist-info/licenses/LICENSE,sha256=Y9tvBURRu-1aHUHY-tnbsDpPBTRYKWpIInVmaoOUkME,1071
13
+ pdit-0.5.0.dist-info/METADATA,sha256=i17RGViPldKpQB6GrhgG4Ucx2tQfMhuUG7LCs7IEGSw,1859
14
+ pdit-0.5.0.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
15
+ pdit-0.5.0.dist-info/entry_points.txt,sha256=n9I4wGD7M0NQrPWJcTWOsJAzeS6bQJbTnUP8C3Sl-iY,39
16
+ pdit-0.5.0.dist-info/top_level.txt,sha256=wk6vel1ecJS4EZZ3U6Xue9OwDq-Tw8Pbvq_TRQz9eIQ,5
17
+ pdit-0.5.0.dist-info/RECORD,,
File without changes