1.0.7 • Published 2 years ago

remark-automatic-glossary-markup v1.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Remark Automatic Glossary Markup

remark-automatic-glossary-markup

This is a simple and straightforward remark plugin that, when given a list of glossary terms, will wrap the first occurance of that term within a paragraph of the markdown file within a link. That link will be to #glossary-${urlEncodedGlossaryTerm} which you can then use to drive your glossary behavior.

You must provide the terms that you would like to be marked up to this plugin like this:

import remark from "remark";
import remarkAutomaticGlossaryMarkup from "remark-automatic-glossary-markup";

remark().use(remarkAutomaticGlossaryMarkup, {
  terms: [{ term: "API" }, { term: "JSON" }],
});
1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago