annotator.ui.markdown package


Render an annotation to HTML, converting annotation text from Markdown if Showdown is available in the page.

Returns:Rendered HTML.
Return type:String

An extension for the Viewer. Allows the viewer to interpret annotation text as Markdown and uses the Showdown library if present in the page to render annotations with Markdown text as HTML.


app.include(annotator.ui.main, {
    viewerExtensions: [annotator.ui.markdown.viewerExtension]