mirror of
https://github.com/kou029w/hasura-rest-hands-on.git
synced 2025-01-18 16:08:14 +00:00
21 lines
464 B
JavaScript
21 lines
464 B
JavaScript
/**
|
|
* @license
|
|
* highlight.js
|
|
* License: BSD-3-Clause
|
|
* Copyright (c) 2006 Ivan Sagalaev
|
|
*/
|
|
import hljs from "highlight.js";
|
|
import vue from "highlight.js/lib/languages/xml";
|
|
|
|
/**
|
|
* @license
|
|
* highlightjs-graphql
|
|
* License: MIT
|
|
* Copyright (c) 2019 David Peek
|
|
*/
|
|
import { definer as graphql } from "highlightjs-graphql";
|
|
|
|
Object.entries({ vue, graphql }).forEach((language) => {
|
|
hljs.registerLanguage(...language);
|
|
});
|
|
Object.assign(window, { hljs });
|