PageDown-Bootstrap

An extension of Pagedown to neatly integrate into Twitter Bootstrap for a WYSIWYG Markdown editor. This project is a fork of the work of Sam Willis.

This project is hosted on GitHub where issues can be reported. It is released under the MIT License.

Fork on GitHub


Requirements


Basic usage


Options

Name Type Default Options/Description
sanatize boolean true true or false, enables or disables sanatization of HTML
help function null A function to be called when the help button it clicked. Null precludes the rendering of the help button.
hooks array [] An array of objects that define hooks for the converter. Each object should define a string, 'event', and a function, 'callback'. A full list of events can be found here.

Styling

All of the created elements are wrapped in nice helpful HTML tags as defined:

div.wmd-panel
A wrapper around all of the elements of the textarea, button bar, and preview
div.wmd-button-bar
A wrapper that contains the editor's button bar.
textarea.wmd-input
The textarea that has been transformed into an editor
div.wmd-preview
A wrapper for the preview generated by the editor

Demo

1. This is the basic editor

Code:


2. This is a custom editor

Code: