Skip to content

atstp/annotater

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

annotater

a minimal, versatile annotating tool

annotater takes a target string (or regex) and hunts down every instance, chops it out of it's text node, wraps it in a tag, and adds a tooltip.

this makes it perfect for annotating rendered markdown.

demos

cursory use

include the library, annotater.js, and use it

annotater({
    name: 'stackoverflow.com',
    tooltip: 'you will likely stumble upon it during every bug hunt'
});

annotater({
    name: /foo|bar|baz/,
    tooltip: 'this is a placeholder variable that means "you can use anything here"'
});

it's also availablie via bower install annotater


that's the gist, but it does more than tooltips: tooltip interpolation, function templating, live models, match replacement, jekyll friendliness, and more.

About

an annotation tool to complement rendered markdown

Resources

License

Stars

Watchers

Forks

Packages

No packages published