0.0.1 • Published 6 months ago

eleventy-plugin-abbr v0.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
6 months ago

Overview

Plugin for eleventy using markdown-it-abbr to create <abbr></abbr> tags around defined terms.

Define your definitions in a JSON object, the use the definition shortcode in your markdown content.

Usage

in your eleventy config (.eleventy.js):

import {AbbrPlugin} from "eleventy-plugin-abbr";

export default function(eleventyConfig){
    // Define your definition map
    const definitions = { 
        "11ty":"Eleventy, a static site generator",
        "HTML":"Hyper-text Markup Language"
    }

    // Hook up the plugin
    eleventyConfig.addPlugin(AbbrPlugin, { definitions: definitions });
}

In your Markdown content:

{% definitions %}

# Overview

11ty quickly turns your content and templates into HTML!
0.0.1

6 months ago