-
Notifications
You must be signed in to change notification settings - Fork 534
Markdown Plugin
Aron Carroll edited this page Mar 9, 2011
·
2 revisions
The Markdown plugin allows you to use Markdown in your annotation comments. It will then render them in the Viewer.
This plugin requires that the Showdown Markdown library be loaded in the page before the plugin is added to the annotator. To do this simply download the showdown.js and include it on your page before the annotator.
<script src="javascript/jquery.js"></script>
<script src="javascript/showdown.js"></script>
<script src="javascript/annotator.min.js"></script>
<script src="javascript/annotator.markdown.min.js"></script>
Adding the Markdown plugin to the annotator is very simple. Simply add the
annotator to the page using the .annotator()
jQuery plugin and retrieve
the annotator object using .data('annotator')
. Then add the Markdown
plugin.
var content = $('#content').annotator();
content.annotator('addPlugin', 'Markdown');
There are no options available for this plugin