Skip to main content

🦎πŸ”₯πŸ”Œ

Glow plugin for Lume!

Tip

πŸ”₯ Lume:-

  • Lume (pronounced /lume/) is the Galician word for fire but also a static site generator for Deno.

  • Inspired by other static site generators, such as Jekyll, Hugo or Eleventy, but easier to use and configure and much more flexible.

🌟 Glow Syntax Highlighter:-

  • Glow is different: Instead of attempting to understand language internals, Glow focuses solely on aesthetics β€” and how your code looks.

  • Glow is simple: Glow makes all languages work with your brand colors by adjusting just a handful of CSS variables.

  • Glow is microscale: Glow is orders of magnitude smaller than the mainstream alternatives. We’re talking 5K instead of 5M. It’s by far the smallest implementation available

Hero


πŸ™† Add glow to your lume site!

1. Import plugin

import lume_glow from "https://deno.land/x/lume_glow/plugin.ts";

2. Configure Plugin to your lume site

const site = lume(); // creating lume site

site.use(lume_glow()); // adding glow plugin

3. Customize your code!

…Read More Here…


βš™ Plugin Options…

/**
 * Plugin Options
 */
export interface Options {
  /**
   * tells glow the language of the code. This is optional. When not provided, glow attempts to guess the language.
   */
  language?: string;
  /**
   * is a boolean flag indicating whether line numbers should be rendered
   */
  numbered?: boolean;
  /**
   * configure package size for glow styles
   */
  size?: "nano" | "default";
}

🌟 Give A Star! 🌟