edwh-editorjs 2.1.0__py3-none-any.whl → 2.1.1__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.
editorjs/__about__.py CHANGED
@@ -1 +1 @@
1
- __version__ = "2.1.0"
1
+ __version__ = "2.1.1"
editorjs/blocks.py CHANGED
@@ -382,7 +382,7 @@ class ImageBlock(EditorJSBlock):
382
382
  def to_markdown(cls, data: EditorChildData) -> str:
383
383
  url = data.get("url", "") or data.get("file", {}).get("url", "")
384
384
  caption = data.get("caption", "")
385
- return f"""![{caption}]({url} "{caption}")\n"""
385
+ return f"""![{caption}]({url} "{caption}")\n\n"""
386
386
 
387
387
  @classmethod
388
388
  def to_json(cls, node: MDChildNode) -> list[dict]:
@@ -533,7 +533,7 @@ class LinkBlock(EditorJSBlock):
533
533
  title = meta.get("title", "")
534
534
  description = meta.get("description", "")
535
535
  image = meta.get("image", {}).get("url", "")
536
- return f"""<editorjs type="linkTool" href="{link}" title="{title}" image="{image}">{description}</editorjs>"""
536
+ return f"""<editorjs type="linkTool" href="{link}" title="{title}" image="{image}">{description}</editorjs>\n\n"""
537
537
 
538
538
  @classmethod
539
539
  def to_json(cls, node: MDChildNode) -> list[dict]:
@@ -582,7 +582,7 @@ class AttachmentBlock(EditorJSBlock):
582
582
  def to_markdown(cls, data: EditorChildData) -> str:
583
583
  file = data.get("file", {}).get("url", "")
584
584
  title = data.get("title", "")
585
- return f"""<editorjs type="attaches" file="{file}">{title}</editorjs>"""
585
+ return f"""<editorjs type="attaches" file="{file}">{title}</editorjs>\n\n"""
586
586
 
587
587
  @classmethod
588
588
  def to_json(cls, node: MDChildNode) -> list[dict]:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: edwh-editorjs
3
- Version: 2.1.0
3
+ Version: 2.1.1
4
4
  Summary: EditorJS.py
5
5
  Project-URL: Homepage, https://github.com/educationwarehouse/edwh-EditorJS
6
6
  Author-email: SKevo <skevo.cw@gmail.com>, Robin van der Noord <robin.vdn@educationwarehouse.nl>
@@ -1,10 +1,10 @@
1
- editorjs/__about__.py,sha256=Xybt2skBZamGMNlLuOX1IG-h4uIxqUDGAO8MIGWrJac,22
1
+ editorjs/__about__.py,sha256=zPJIgPGcoSNiD0qme18OnYJYE3A9VVytlhO-V5DaAW0,22
2
2
  editorjs/__init__.py,sha256=-OHUf7ZXfkbdFB1r85eIjpHRfql-GCNUCKuBEdEt2Rc,58
3
- editorjs/blocks.py,sha256=kQxmx8QDDVhb1YP6JTFOCKGTYHfcbGswtkryorp1Cn8,22285
3
+ editorjs/blocks.py,sha256=x6qWTsxT_NUciF3-mKIk7ylu_6ponb27iUnB91N1UMg,22295
4
4
  editorjs/core.py,sha256=T_7pOzLp7dBxxFSgfG0-ogZShVKaUBd5h_PEEuuSzdQ,3406
5
5
  editorjs/exceptions.py,sha256=TyfHvk2Z5RbKxTDK7lrjgwAgVgInXIuDW63eO5jzVFw,106
6
6
  editorjs/helpers.py,sha256=q861o5liNibMTp-Ozay17taF7CTNsRe901lYhhxdwHg,73
7
7
  editorjs/types.py,sha256=W7IZWMWgzJaQulybIt0Gx5N63rVj4mEy73VJWo4VAQA,1029
8
- edwh_editorjs-2.1.0.dist-info/METADATA,sha256=DmCP8FVdXpma3tupQeNLLTOKMSVpt6qYZTIAxaRo6qY,972
9
- edwh_editorjs-2.1.0.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
10
- edwh_editorjs-2.1.0.dist-info/RECORD,,
8
+ edwh_editorjs-2.1.1.dist-info/METADATA,sha256=0CpDziqphQngdwM3sy_6WCLRSAcA38NAlmajdGEiPJs,972
9
+ edwh_editorjs-2.1.1.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
10
+ edwh_editorjs-2.1.1.dist-info/RECORD,,