@recogito/text-annotator-plugin-inline-markers
v0.1.6
Published
A plugin to the text annotator that places inline markers on text highlights
Readme
Text Annotator Inline Markers
An extension to the Recogito Text- and TEI-Annotators that renders inline markers when multiple annotations start at the same place, in order to provide better visibility.

Usage
import { createTextAnnotator } from '@recogito/text-annotator';
import { InlineMarkersExtension } from '@recogito/text-annotator-plugin-inline-markers';
import '@recogito/text-annotator/text-annotator.css';
const ext = InlineMarkersExtension();
const r = createTextAnnotator(contentContainer, {
// Replace default renderer with this extension
renderer: ext.Renderer
});
// Toggle marker visibility:
// ext.setShowMarkers(false);