annotator.ui.markdown package¶
-
annotator.ui.markdown.
render
(annotation)¶ Render an annotation to HTML, converting annotation text from Markdown if Showdown is available in the page.
Returns: Rendered HTML. Return type: String
-
annotator.ui.markdown.
viewerExtension
(viewer)¶ 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.Usage:
app.include(annotator.ui.main, { viewerExtensions: [annotator.ui.markdown.viewerExtension] });