Ionaru / Ionaru/easy-markdown-editor

Markdown to HTML for blog page.

Open
#245 9 comments 4 reactions 0 assignees View on GitHub
Improvement
Dominant language
JavaScript
Stars
3.1k
Forks
363
PR merge metrics
No merged PRs in 30d

Description

I get the editor has a preview feature but what I'm after is if it offers a function to just output the markdown to HTML.Much like editing a blog post saving the markdown to the database then rendering the markdown as HTML on the client.

The function is like marked.js do ,I find it is hard to render same html page like that easyMDE render preview when try to include marked.js ,the differrence is feature code and poetry.Furthermore Blockquotes of easyMDE don't have solid border-left like simplemde markdown editor.

My Demo
```




Example / Preview



Demo


Click me
# Hello world


var easyMDE = new EasyMDE({
element: document.getElementById("demo1"),
spellChecker: false,

});

function myFunction() {
var str = easyMDE.value();
//var str = document.getElementById("demo1").innerHTML;
document.getElementById('content').innerHTML = marked(str);
}

```

Seems like something that should be included...

Reply appreciated.

Contributor guide

Open the contributing guide

Research direction

The request centers on EasyMDE’s editor value and the marked(str) call shown in the demo. Start by locating the public editor API and current preview/rendering path; done means Markdown can be rendered as HTML for a saved blog post, with the expected blockquote and code formatting. No repository file or test is named in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, markdown
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.