Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Markdown in the editor #14

Open
oyeanuj opened this issue Jan 4, 2016 · 12 comments
Open

Markdown in the editor #14

oyeanuj opened this issue Jan 4, 2016 · 12 comments

Comments

@oyeanuj
Copy link

oyeanuj commented Jan 4, 2016

Hi @IonicaBizau!

Thanks for this extension. If I understand it correctly, this allows the output of the Medium editor to be Markdown output. Is there any ability to have the Medium Editor understand Markdown when a user enters Markdown and translate that to Html?

@IonicaBizau
Copy link
Owner

@oyeanuj I will take a closer look, but in short it should be something like:

  1. Convert the markdown in HTML.
  2. Set the new HTML in the editor. Not sure what's the best way to do this.

❇️

@adriaandotcom
Copy link

This extension looks good, but it would be better to have support for Markdown as in input to the editor instead of the output. I'm using it as a Jekyll editor so the files are written in Markdown.

With the way this extension now work I have to

  1. Convert Markdown to HTML
  2. Change content with editor
  3. Save Markdown out of this extension

It would be nice if the first step is not needed.

@IonicaBizau
Copy link
Owner

@harianus Thanks for the suggestion! Indeed, that would be a nice feature. Contributions are welcome! ❇️

@apobbati
Copy link

What did you end up doing as a workaround? Any ideas?

@edelgado
Copy link

I'm just realizing that the editor outputs Markdown, but it can't read it 😞 I want to persist the Markdown into a DB, and then read it again. I was assuming that the editor could read Markdown and allow you to make further edits.

@apobbati
Copy link

I'll take a crack at solving this. Seems like a useful feature to have.

@apobbati
Copy link

apobbati commented Aug 12, 2016

I was using Marked to convert the markdown to HTML but the results aren't perfect. My use-case is for having bi-directional editors (Rich Text vs. Markdown) and being able to switch seamlessly between "source" (Ace editor) and "rich text" (medium editor).

@IonicaBizau
Copy link
Owner

That would be cool!

Sent from my iPhone

On 12 Aug 2016, at 16:52, Abhinav Pobbati notifications@github.com wrote:

I was using Marked to convert the HTML to markdown but the results aren't perfect. My use-case is for having bi-directional editors (Rich Text vs. Markdown) and being able to switch seamlessly between "source" (Ace editor) and "rich text" (medium editor).


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

@nickspiel
Copy link

Also looking for this. Anyone got a work-around?

@tunnckoCore
Copy link

tunnckoCore commented Oct 14, 2016

Yea it would be cool, but I don't think it is his job. My usage is sending the markdown to the server, pass it to megamark to do some more customizations easily and save both html (from megamark) and markdown to the disk. When wanna edit the article I just load it on div where editor reads.

If i'm not using the megamark i can easily get value (which is html) of the div where editor is. Just inspect the leftside panel on the demo to got what i'm talking - it is realtime converting to html.

@jackmcdade
Copy link

Is there anyone I could pay to add this feature?

@robsonsobral
Copy link

Hi, @IonicaBizau . Is it possible to have the editor on the markdown view and only that? Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants