Editor.js: Markdown support?

Created on 9 Apr 2019  ยท  15Comments  ยท  Source: codex-team/editor.js

this editor.js supports Markdown editing or even converting option?

epic feature

Most helpful comment

Hi @NiNJAD3vel0per !

We will work on some converting options in the next releases

All 15 comments

Hi @NiNJAD3vel0per !

We will work on some converting options in the next releases

Hi @NiNJAD3vel0per !

We will work on some converting options in the next releases

Can't Wait!

want to support markdown

Markdown, please. :)

Would you like support markdown?

Yes, markdown, please! :-)

Is someone developing this feature ?

any updates on this?

I tied to make my implementation with mdast but this is really hard to maintain "CLEAN data that easy to sanitize, extend and integrate with your logic" with markdown.
Example of clean data:

On this page you can see it in action โ€” try to edit this text.

will be

{
  "type": "parahraph",
  "data": {
    "text": " On <b>this page</b> you can see it in action โ€” try to edit this text."
  }
}

Which means you literally should re-implement ALL built-in inline tools to support markdown because we have HTML tags inside "CLEAN data" at this point. And idk how to do it without forking and changing core code

Need output to markdown and a markdown to input converters for this.
How can we make it work if we don't have the plugins installed like the image plugin?

Actively watching this. Markdown input -> blocks -> output Markdown would be a godsent feature for editor.js

I tied to make my implementation with mdast but this is really hard to maintain "CLEAN data that easy to sanitize, extend and integrate with your logic" with markdown.
Example of clean data:

On this page you can see it in action โ€” try to edit this text.

will be

{
  "type": "parahraph",
  "data": {
    "text": " On <b>this page</b> you can see it in action โ€” try to edit this text."
  }
}

Which means you literally should re-implement ALL built-in inline tools to support markdown because we have HTML tags inside "CLEAN data" at this point. And idk how to do it without forking and changing core code

@Zulcom I was wondering how they are doing bold and italics and looks like the HTML tags are indeed mixed with the data as seen in the online demo. They say about inline elements in the docs and maybe markdown elements are meant to be inline ๐Ÿค” :

Capture

I guess they would be following the same approach for markdown as well.

This would be a killer feature ๐Ÿ™๐Ÿ”ฅ๐ŸŒช!

MarkdownBlock: add Markdown Block support: #1500

editorjs-markdown-parser in awesome-editorjs is not suitable for me, so I created another one: markdown-block

demo:
image

https://user-images.githubusercontent.com/1308706/104009770-7dcf5600-51e6-11eb-9a4b-61d760aa6623.mp4

youtube

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vincentdesmares picture vincentdesmares  ยท  3Comments

natterstefan picture natterstefan  ยท  5Comments

neSpecc picture neSpecc  ยท  4Comments

hata6502 picture hata6502  ยท  3Comments

ghost picture ghost  ยท  4Comments