Hashify Editor turns any textarea into a capable Markdown editor. It's
similar to John Fraser's wmd, but more modular and much lighter weight.
Turns a textarea into a Markdown editor.
Hashify.editor(id [, preview [, callback]])The id of a textarea, or a textarea node.
Boolean which determines whether the "preview" link is included. Defaults to
true.
Function to be invoked every time Hashify Editor handles an event. Within the
function, this refers to the textarea. Hashify, for example, uses a
callback to update the URL with each keystroke.
Hashify.editor(editor, false, function () {
setLocation(Hashify.encode(this.value));
});Returns the Base64-encoded representation of a binary input string.
Hashify.encode(text)Returns the binary representation of a Base64-encoded input string.
Hashify.decode(text)Automated testing of behaviour which depends on keyboard events is problematic for several reasons. As a result, testing Hashify Editor is currently a manual process, albeit a rather pleasant one:
Run the following commands to open the above document:
make setup # install dev dependencies
make test # start the development server
open http://localhost:3456

