Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Mermaid | 57,882 | 505 | 317 | 2 days ago | 140 | September 13, 2022 | 863 | mit | JavaScript | |
Generation of diagrams like flowcharts or sequence diagrams from text in a similar manner as markdown | ||||||||||
Marktext | 39,687 | 20 days ago | 1 | January 17, 2022 | 1,033 | mit | JavaScript | |||
📝A simple and elegant markdown editor, available for Linux, macOS and Windows. | ||||||||||
Stackedit | 20,361 | 2 | 1 | 12 hours ago | 67 | March 29, 2021 | 667 | apache-2.0 | JavaScript | |
In-browser Markdown editor | ||||||||||
Affine | 16,396 | 11 hours ago | 221 | mpl-2.0 | TypeScript | |||||
There can be more than Notion and Miro. AFFiNE is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use. | ||||||||||
Tui.editor | 15,971 | 266 | 147 | 4 days ago | 38 | December 12, 2019 | 485 | mit | TypeScript | |
🍞📝 Markdown WYSIWYG Editor. GFM Standard + Chart & UML Extensible. | ||||||||||
Editor.md | 12,952 | 35 | 8 | 12 days ago | 1 | June 27, 2015 | 555 | mit | JavaScript | |
The open source embeddable online markdown editor (component). | ||||||||||
Leanote | 11,169 | 3 months ago | 516 | other | JavaScript | |||||
Not Just A Notepad! (golang + mongodb) http://leanote.org | ||||||||||
Vnote | 10,226 | 20 days ago | 568 | lgpl-3.0 | C++ | |||||
A pleasant note-taking platform. | ||||||||||
Tinacms | 8,816 | 5 | 61 | a day ago | 105 | September 21, 2022 | 82 | other | TypeScript | |
The Markdown CMS | ||||||||||
Simplemde Markdown Editor | 8,728 | 1,516 | 201 | 2 years ago | 13 | June 14, 2016 | 278 | mit | JavaScript | |
A simple, beautiful, and embeddable JavaScript Markdown editor. Delightful editing for beginners and experts alike. Features built-in autosaving and spell checking. |
Editure is a richtext markdown editor built on top of Slate, with out-of-the-box support for markdown shortcuts, hotkeys, serialization. It aims to provide editing experience on par with Typora or Yuque.
Warning: Editure is currently experimental. DO NOT USE IT IN PRODUCTION!
Ctrl+B
or Cmd+B
Marks: bold, italic, underline, strikethrough and link.
Blocks: paragraphs, headings, blockquotes, code blocks, note blocks, bulleted lists, numbered lists, images, and horizontal lines.
npm install editure editure-react
# or if you prefer yarn:
yarn add editure editure-react
A quick demo:
import Editure from 'editure-react';
class MyComponent extends React.Component {
constructor(props) {
super(props);
this.state = { value: [] };
}
handleChange = (value) => {
this.setState({ value });
};
render() {
return <Editure value={this.state.value} onChange={this.handleChange} />;
}
}
Or, if you prefer Hooks:
import Editure from 'editure-react';
function MyComponent() {
const [value, setValue] = useState([]);
return <Editure value={value} onChange={setValue} />;
}
As in Slate, the value
prop is a plain JavaScript object. You can perform serialization with JSON
global object:
// serialize to JSON
const serialized = JSON.stringify(value);
// parse from JSON
const value = JSON.stringify(serialized);
Moreover, Editure provides serialization support for HTML and Markdown, for example:
import { toHtml, toMarkdown, parseHtml, parseMarkdown } from 'editure';
// serialize to HTML
const htmlString = toHtml(value);
// parse from HTML
const value = parseHtml(htmlString);
// serialize to Markdown
const markdownString = toMarkdown(value);
// parse from Markdown
const value = parseMarkdown(markdownString);
editure
The editure
package provides low-level utilities to work with Slate.
editure-react
Here is a full list of props from Editure
component:
value
: the current value of the editoronChange
: handler called after the content changedplaceholder
: placeholder string for the editorreadOnly
: if true
, the editor won't allow changing its contents.MIT.