Catalog npm
PACKAGE EXPLORERView in registry

11ty-plugin-giallo

npm

Eleventy plugin to support TextMate-style syntax highlighting via the Giallo Rust crate.

eleventyeleventy-plugin
Versions collected7
Direct dependencies3From release 0.1.0
Last observed20 Oct, 18:06 UTC

README

Current package documentation

11ty-plugin-giallo

Eleventy plugin to support TextMate-style syntax highlighting via the Giallo Rust crate.

Usage

// eleventy.config.js

import syntaxHighlight from "11ty-plugin-giallo";

export default function (eleventyConfig) {
  eleventyConfig.addPlugin(syntaxHighlight, {
    themeLight: "github-light",
    themeDark: "github-dark",
  });
}

Themes

Themes included with Giallo

Block Diagram

block diagram of plugin architecture

Development Quickstart

Mise-en-place manages dev dependencies and scripts.

# Installs dev tools (Rust, Node) and automatically downloads WASI-SDK for the
# host architecture.
mise install

# Installs Node dependencies.
npm install

# Compiles Rust code into a Wasm component and generates Javascript bindings.
mise run build

# Runs unit tests.
mise run test

Limitations

  • Support is currently limited to markdown code blocks. The official Eleventy syntax highlighting plugin also provides Liquid and Nunjucks tags as well as a global Javascript function.
  • Line highlights and numbers are not yet supported.
  • Giallo does not support Prism-style diff format.

Licensing

11ty-plugin-giallo is distributed under the European Union Public License v. 1.2, to match the licensing of the Giallo crate. The EUPL is generally compatible with other OSI-approved copyleft licenses; for more information refer to the compatibility matrix.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 7

Collected releases
VersionPublishedDirect dependenciesOpen version
0.1.0Registry latest26 Jan 20263
0.1.0-beta.226 Jan 20263
0.1.0-beta.126 Jan 20263
0.1.0-beta.023 Jan 20263
0.1.0-alpha.223 Jan 20262
0.1.0-alpha.123 Jan 20262
0.1.0-alpha.023 Jan 20262

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 18:06 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:8f068052587e99feadb68699e924935721279e969fae09258c511b3be3dbe025