freeCodeCamp / publish

> Content backend platform for /news
https://publish.freecodecamp.org
BSD 3-Clause "New" or "Revised" License
10 stars 9 forks source link

Markdown blocks in editor #389

Open sidemt opened 7 months ago

sidemt commented 7 months ago

This is based on feedback from Abbey.

is there a way to insert a markdown block in the editor like how Ghost does? Again, lots of authors write in markdown and would want this. Allows for more specific manipulation like making multi-tiered lists, for example (like a numbered list with a bulleted list within it, if that makes sense).

In Ghost, we can insert a markdown block like this:

Image

It renders like this:

Image

Sembauke commented 5 months ago

Markdown blocks are the same as code blocks.

Sembauke commented 5 months ago

closed by #418

sidemt commented 5 months ago

Sorry, we still need this. It's different from code blocks.

Code blocks display the code as-is, but these markdown blocks should render the markdown into corresponding HTML.

Nirajn2311 commented 5 months ago

So this block would allow the authors to paste markdown which is then converted to HTML, right?

sidemt commented 5 months ago

So this block would allow the authors to paste markdown which is then converted to HTML, right?

Yes.

Sembauke commented 5 months ago

But the editor has all the functionality of markdown? The markdown always gets converted into HTML.

This is like adding another editor inside the editor.

Nirajn2311 commented 5 months ago

I tried out the markdown block feature in Ghost which just basically makes a part of the editor into a markdown editor and that's like what Sem said, another editor inside the editor. Instead of giving small blocks for writing markdown, why don't we show a toggle button that will let the author type in formatted text or raw Markdown for the whole post. This way we can even address the points in #386