Skip to content

skillstream/pagedown-bootstrap

 
 

Repository files navigation

PageDown-Bootstrap (with prototype support)

This is a fork of pagedown-bootstrap modified for use within an application that includes the prototype javascript library.

No demo is available for this implementation at present. From a user perspective the demo provided by Sam Willis gives a good overview of what to expect.

Example

<head>
  <script src="//ajax.googleapis.com/ajax/libs/prototype/1.7.1/prototype.js"></script>
  <script>window.jQuery || document.write('<script src="@{'/public/js/lib/jquery-1.7.1.min.js'}"><\/script>')</script>
  <script>
    jQuery.noConflict();
  </script>

  <script src="js/bootstrap/bootstrap-transition.js"></script>
  <script src="js/bootstrap/bootstrap-tooltip.js"></script>

  <script src="js/Markdown.Converter.js"></script>
  <script src="js/Markdown.Sanitizer.js"></script>
  <script src="js/Markdown.Editor.js"></script>
</head>

...

<div class="wmd-panel">
  <div id="wmd-button-bar"></div>
    <textarea id="wmd-input"></textarea>
  </div>
  <div class="markdown-preview" id="wmd-preview"></div>
</div>

...

<script>
  (function () {
    var converter = Markdown.getSanitizingConverter();
    var editor = new Markdown.Editor(converter);
    editor.run();
  })();

  jQuery(document).ready(function($){
    $('.btn-toolbar').tooltip()
  });
</script>

About

Markdown to HTML converter and editor for Twitter Bootstrap based on http://code.google.com/p/pagedown/

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 99.1%
  • Other 0.9%