{"id":20659286,"url":"https://github.com/iphands/meltdown","last_synced_at":"2025-07-25T17:39:51.548Z","repository":{"id":6957214,"uuid":"8209407","full_name":"iphands/Meltdown","owner":"iphands","description":"Meltdown (Markdown Extra Live Toolbox): A JQuery plugin that adds Markdown Extra live previews, and a toolbar for common markdown actions.","archived":false,"fork":false,"pushed_at":"2017-05-12T20:04:50.000Z","size":834,"stargazers_count":140,"open_issues_count":4,"forks_count":22,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-16T01:51:12.367Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iphands.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-02-14T22:52:24.000Z","updated_at":"2025-01-25T00:34:14.000Z","dependencies_parsed_at":"2022-07-29T02:08:57.224Z","dependency_job_id":null,"html_url":"https://github.com/iphands/Meltdown","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iphands%2FMeltdown","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iphands%2FMeltdown/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iphands%2FMeltdown/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iphands%2FMeltdown/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iphands","download_url":"https://codeload.github.com/iphands/Meltdown/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249709550,"owners_count":21313949,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-16T18:33:48.850Z","updated_at":"2025-04-19T14:13:11.121Z","avatar_url":"https://github.com/iphands.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Meltdown (Markdown Extra Live Toolbox)\n======================================\n\nA JQuery plugin that adds Markdown Extra live previews, and a toolbar for common markdown editions. **Check out the [project page](http://iphands.github.com/Meltdown/) for a live demo.**\n\nIt also features a fullscreen and a side-by-side mode (vertically split screen). The editor and the preview can be resized with your mouse (in browsers supporting the CSS `resize` property).\n\n\n## Usage\n\n### Simple, standard, awesome\n\n~~~\njQuery('texterea').meltdown();\n~~~\n\n### Advanced, fullscreen with preview on the side, still awesome\n\n~~~\njQuery('#my_textarea').meltdown({\n  fullscreen: true,\n  openPreview: true,\n  sidebyside: true\n});\n~~~\n\n\n## Options\n\nOption  |  Default  |  Description\n------  |  -------  |  -----------\n`fullscreen`  | `false`   | Set to `true` to go in fullscreen mode.\n`openPreview`  | `false`   | Set to `true` to open the preview area.\n`previewHeight`  | `\"editorHeight\"`   | With `\"editorHeight\"` the preview will have the same height as the textarea. With `\"auto\"` its height will adapt to its content. Also accepts any CSS height value (like `\"300px\"`).\n`previewCollapses`  | `true`   | If set to `false`, the editor will expand over the preview when the preview is toggled.\n`sidebyside`  | `false`   | Set to `true` to go in side-by-side editing mode.\n`autoScrollPreview`  | `true`   | Keeps the preview area scrolled at the bottom when you are typing text. Set to `false` to disable.\n`parser`  | `window.Markdown`   | `window.Markdown` is the parser function from [js-markdown-extra](https://github.com/tanakahisateru/js-markdown-extra \"Github link to js-markdown-extra\"). `false` will directly parse the text as HTML. A parser function takes a text string as input and returns an HTML formatted string. _(More infos in the Parser section below.)_\n\nNote: the default options can be changed in: `jQuery.meltdown.defaults`\n\n\n## API\n\nCalling a method:\n\n~~~\n$(\"#my_textarea\").meltdown(\"methodName\", arg1, arg2);\n~~~\n\nNote: methods are chainnable.\n\n\n### Methods\n\n### `update([force])`\n\nUpdate the preview with the content of the editor. Set `force` to `true` to force the the update even if the content of the editor is the same as the last update.\n\n### `updateWith(text, [force])`\n\nUpdate the preview with the given `text`. The `text`will be parsed before being rendered. Set `force` to `true` to force the the update even if the `text` is the same as the last update.\n\n#### `isPreviewOpen()`\n\nReturns `true` if the preview is open. Otherwise `false`.\n\n#### `togglePreview([open])`\n\nIf `open` is `true`, open the preview, if `false` close it. If `undefined` or not given, toggle preview.\n\n#### `isFullscreen()`\n\nReturns `true` if meltdown is in fullscreen. Otherwise `false`.\n\n#### `toggleFullscreen([full])`\n\nIf `full` is `true`, go fullscreen, if `false` leave fullscreen. If `undefined` or not given, toggle fullscreen.\n\n#### `isSidebyside()`\n\nReturns `true` if meltdown is in side-by-side. Otherwise `false`.\n\n#### `toggleSidebyside([sidebyside])`\n\nIf `sidebyside` is `true`, go side-by-side, if `false` leave side-by-side. If `undefined` or not given, toggle side-by-side.\n\n\n## Parser\n\nBy default, uses the [js-markdown-extra](https://github.com/tanakahisateru/js-markdown-extra \"Github link to js-markdown-extra\") parser. You can change it to any parser you want (even a non Markdown parser).\n\n\n## Requirements\n\n* A modern browser: any recent version of Firefox, Chrome, IE 9+, Safari or Opera. _Note: works in IE 8 but with some disabled features._\n* jQuery 1.9.1+ _Note: works with jQuery 1.7.2+, but with some disabled features._\n\n## Changelog\n\n* **v0.2** (??-APR-2014)\n  \n  * Fullscreen mode\n  * Side-by-side mode\n  * Editor and preview can be resized with the mouse\n  * Customizable parser\n  * Debounced preview updates (while typing)\n  * Renamed and added init options\n  * Added API to control meltdown from JavaScript (Now the parser must be loaded before jquery.meltdown.js)\n  * Dropped IE 6-7 support\n  * Removed jQuery-ui dependency\n\n* **v0.1**\n\n\n## Libraries used\n\n* [js-markdown-extra](https://github.com/tanakahisateru/js-markdown-extra \"Github link to js-markdown-extra\"): provides the markdown extra parser.\n* [Rangyinputs](http://code.google.com/p/rangyinputs/ \"Google code link to rangyinputs\"): manipulation of text selections.\n* [element_resize_detection](http://www.backalleycoder.com/2013/03/18/cross-browser-event-based-element-resize-detection/): detects `resize` events on any DOM element.\n\n\n## License\n\nCopyright (c) 2013 Ian Page Hands and Mark Caron. Licensed under the GPLv3 license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiphands%2Fmeltdown","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiphands%2Fmeltdown","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiphands%2Fmeltdown/lists"}