message: . squash this pr
diff: -import hljs, { HighlightOptions } from "../deps/highlight.ts";
  +import hljs, { HighlightOptions, LanguageFn } from "../deps/highlight.ts";
  import { merge } from "../core/utils.ts";
  -export { hljs };
  -
  import type { Page, Site } from "../core.ts";
  export interface Options {
  /** The list of extensions this plugin applies to */
  extensions: string[];
  + /** Register languages on the Highlight.js context. */
  + languages?: Record<string, LanguageFn>;
  +
  /** Options passed to highlight.js */
  options: Partial<HighlightOptions>;
  }
  @@ -32,6 +33,12 @@ export default function (userOptions?: Partial<Options>) {
  // @ts-ignore: Property 'configure' does not exist on type '{}'
  hljs.configure(options.options);
  + if (userOptions && userOptions.languages) {
  + for (const [name, fn] of Object.entries(userOptions.languages)) {
  + hljs.registerLangauge(name, fn);
  + }
  + }
  +
  return (site: Site) => {
  site.process(options.extensions, codeHighlight);
  