BabylonJS /
Babylon.js
Babylon.js is a powerful, beautiful, simple, and open game and rendering engine packed into a friendly JavaScript framework.
Loading repository data…
sparksuite / repository
A simple, beautiful, and embeddable JavaScript Markdown editor. Delightful editing for beginners and experts alike. Features built-in autosaving and spell checking.
A drop-in JavaScript textarea replacement for writing beautiful and understandable Markdown. The WYSIWYG-esque editor allows users who may be less experienced with Markdown to use familiar toolbar buttons and shortcuts. In addition, the syntax is rendered while editing to clearly show the expected result. Headings are larger, emphasized words are italicized, links are underlined, etc. SimpleMDE is one of the first editors to feature both built-in autosaving and spell checking.
WYSIWYG editors that produce HTML are often complex and buggy. Markdown solves this problem in many ways, plus Markdown can be rendered natively on more platforms than HTML. However, Markdown is not a syntax that an average user will be familiar with, nor is it visually clear while editing. In otherwords, for an unfamiliar user, the syntax they write will make little sense until they click the preview button. SimpleMDE has been designed to bridge this gap for non-technical users who are less familiar with or just learning Markdown syntax.
Via npm.
npm install simplemde --save
Via bower.
bower install simplemde --save
Via jsDelivr. Please note, jsDelivr may take a few days to update to the latest release.
<link rel="stylesheet" href="https://cdn.jsdelivr.net/simplemde/latest/simplemde.min.css">
<script src="https://cdn.jsdelivr.net/simplemde/latest/simplemde.min.js"></script>
After installing, load SimpleMDE on the first textarea on a page
<script>
var simplemde = new SimpleMDE();
</script>
Pure JavaScript method
<script>
var simplemde = new SimpleMDE({ element: document.getElementById("MyID") });
</script>
jQuery method
<script>
var simplemde = new SimpleMDE({ element: $("#MyID")[0] });
</script>
simplemde.value();
simplemde.value("This text will appear in the editor");
true, force downloads Font Awesome (used for icons). If set to false, prevents downloading. Defaults to undefined, which will intelligently check whether Font Awesome has already been included, then download accordingly.true, autofocuses the editor. Defaults to false.true, autosave the text. Defaults to false.10000 (10s).** or __. Defaults to **.``` or ~~~. Defaults to ```.* or _. Defaults to *.true, force text changes made in SimpleMDE to be immediately stored in original textarea. Defaults to false.false, indent using spaces instead of tabs. Defaults to true.["[", "](http://)"].
// Most options demonstrate the non-default behavior
var simplemde = new SimpleMDE({
autofocus: true,
autosave: {
enabled: true,
uniqueId: "MyUniqueID",
delay: 1000,
},
blockStyles: {
bold: "__",
italic: "_"
},
element: document.getElementById("MyID"),
forceSync: true,
hideIcons: ["guide", "heading"],
indentWithTabs: false,
initialValue: "Hello world!",
insertTexts: {
horizontalRule: ["", "\n\n-----\n\n"],
image: [""],
link: ["[", "](http://)"],
table: ["", "\n\n| Column 1 | Column 2 | Column 3 |\n| -------- | -------- | -------- |\n| Text | Text | Text |\n\n"],
},
lineWrapping: false,
parsingConfig: {
allowAtxHeaderWithoutSpace: true,
strikethrough: false,
underscoresBreakWords: true,
},
placeholder: "Type here...",
previewRender: function(plainText) {
return customMarkdownParser(plainText); // Returns HTML from a custom parser
},
previewRender: function(plainText, preview) { // Async method
setTimeout(function(){
preview.innerHTML = customMarkdownParser(plainText);
}, 250);
return "Loading...";
},
promptURLs: true,
renderingConfig: {
singleLineBreaks: false,
codeSyntaxHighlighting: true,
},
shortcuts: {
drawTable: "Cmd-Alt-T"
},
showIcons: ["code", "table"],
spellChecker: false,
status: false,
status: ["autosave", "lines", "words", "cursor"], // Optional usage
status: ["autosave", "lines", "words", "cursor", {
className: "keystrokes",
defaultValue: function(el) {
this.keystrokes = 0;
el.innerHTML = "0 Keystrokes";
},
onUpdate: function(el) {
el.innerHTML = ++this.keystrokes + " Keystrokes";
}
}], // Another optional usage, with a custom status bar item that counts keystrokes
styleSelectedText: false,
tabSize: 4,
toolbar: false,
toolbarTips: false,
});
Below are the built-in toolbar icons (only some of which are enabled by default), which can be reorganized however you like. "Name" is the name of the icon, referenced in the JS. "Action" is either a function or a URL to open. "Class" is the class given to the icon. "Tooltip" is the small tooltip that appears via the title="" attribute. Note that shortcut hints are added automatically and reflect the specified action if it has a keybind assigned to it (i.e. with the value of action set to bold and that of tooltip set to Bold, the final text the user will see would be "Bold (Ctrl-B)").
Additionally, you can add a separator between any icons by adding "|" to the toolbar array.
| Name | Action | TooltipClass |
|---|---|---|
| bold | toggleBold | Boldfa fa-bold |
| italic | toggleItalic | Italicfa fa-italic |
| strikethrough | toggleStrikethrough | Strikethroughfa fa-strikethrough |
| heading | toggleHeadingSmaller | Headingfa fa-header |
| heading-smaller | toggleHeadingSmaller | Smaller Headingfa fa-header |
| heading-bigger | toggleHeadingBigger | Bigger Headingfa fa-lg fa-header |
| heading-1 | toggleHeading1 | Big Headingfa fa-header fa-header-x fa-header-1 |
| heading-2 | toggleHeading2 | Medium Headingfa fa-header fa-header-x fa-header-2 |
| heading-3 | toggleHeading3 | Small Headingfa fa-header fa-header-x fa-header-3 |
| code | toggleCodeBlock | Codefa fa-code |
| quote | toggleBlockquote | Quotefa fa-quote-left |
| unordered-list | toggleUnorderedList | Generic Listfa fa-list-ul |
| ordered-list | toggleOrderedList | Numbered Listfa fa-list-ol |
| clean-block | cleanBlock | Clean blockfa fa-eraser fa-clean-block |
| link | drawLink | Create Linkfa fa-link |
| image | drawImage | Insert Imagefa fa-picture-o |
Customize the toolbar using the toolbar option like:
// Customize only the order of existing buttons
var simplemde = new SimpleMDE({
toolbar: ["bold", "italic", "heading", "|", "quote"],
});
// Customize all information and/or add your own icons
var simplemde = new SimpleMDE({
toolbar: [{
name: "bold",
action: SimpleMDE.toggleBold,
className: "fa fa-bold",
title: "Bold",
},
{
name: "custom",
action: function customFunction(editor){
// Add your own code
},
className: "fa fa-star",
title: "Custom Button",
},
"|", // Separator
...
],
});
SimpleMDE comes with an array of predefined keyboard shortcuts, but they can be altered with a configuration option. The list of default ones is as follows:
| Shortcut | Action |
|---|---|
| Cmd-' | "toggleBlockquote" |
| Cmd-B | "toggleBold" |
| Cmd-E | "cleanBlock" |
| Cmd-H | "toggleHeadingSmaller" |
| Cmd-I | "toggleItalic" |
| Cmd-K | "drawLink" |
| Cmd-L | "toggleUnorderedList" |
| Cmd-P | "togglePreview" |
| Cmd-Alt-C | "toggleCodeBlock" |
| Cmd-Alt-I | "drawImage" |
| Cmd-Alt-L | " |
Selected from shared topics, language and repository description—not editorial ratings.
BabylonJS /
Babylon.js is a powerful, beautiful, simple, and open game and rendering engine packed into a friendly JavaScript framework.
Ionaru /
EasyMDE: A simple, beautiful, and embeddable JavaScript Markdown editor. Delightful editing for beginners and experts alike. Features built-in autosaving and spell checking.
false, disable line wrapping. Defaults to true.true, will render headers without a space after the #. Defaults to false.false, will not process GFM strikethrough syntax. Defaults to true.true, let underscores be a delimiter for separating words. Defaults to false.true, a JS alert window appears asking for the link or image URL. Defaults to false.false, disable parsing GFM single line breaks. Defaults to true.true, will highlight using highlight.js. Defaults to false. To use this feature you must include highlight.js on your page. For example, include the script and the CSS files like:<script src="https://cdn.jsdelivr.net/highlight.js/latest/highlight.min.js"></script><link rel="stylesheet" href="https://cdn.jsdelivr.net/highlight.js/latest/styles/github.min.css">false, disable the spell checker. Defaults to true.false, hide the status bar. Defaults to the array of built-in status bar items.
false, remove the CodeMirror-selectedtext class from selected lines. Defaults to true.2.false, hide the toolbar. Defaults to the array of icons.false, disable toolbar button tips. Defaults to true.| table |
| drawTable |
| Insert Tablefa fa-table |
| horizontal-rule | drawHorizontalRule | Insert Horizontal Linefa fa-minus |
| preview | togglePreview | Toggle Previewfa fa-eye no-disable |
| side-by-side | toggleSideBySide | Toggle Side by Sidefa fa-columns no-disable no-mobile |
| fullscreen | toggleFullScreen | Toggle Fullscreenfa fa-arrows-alt no-disable no-mobile |
| guide | This link | Markdown Guidefa fa-question-circle |
Matterwiki /
A simple and beautiful wiki for teams
opensupports /
OpenSupports is a simple and beautiful open source ticket system
z------------- /
(UNMAINTAINED) A simple, beautiful podcast app for Windows, macOS, and Linux.
umutxyp /
It is a quality portfolio site with a beautiful and simple design that you can personalize for yourself.