Skip to content

Commit

Permalink
use require
Browse files Browse the repository at this point in the history
  • Loading branch information
zuisong committed Nov 30, 2023
1 parent 2d8c4f8 commit b0c2f7d
Show file tree
Hide file tree
Showing 13 changed files with 24 additions and 386 deletions.
2 changes: 2 additions & 0 deletions build-common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {
userscriptMetadataGenerator,
} from "esm.sh/[email protected]";
import packageJson from "./package.json" with { type: "json" };
import { requiredLibs } from "./src/userscript-meta.ts";
export function meta(): string {
const metadata: Metadata = {
name: "notion-kroki",
Expand All @@ -16,6 +17,7 @@ export function meta(): string {
license: "MIT",
match: ["*://www.notion.so/*", "*://*.notion.site/*", "*://*.super.site/*"],
supportURL: "https://github.com/zuisong/notion-kroki/issues",
require: requiredLibs,
"run-at": "document-idle",
author: "zuisong",
description: "Render notion code block as graph by kroki",
Expand Down
6 changes: 3 additions & 3 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
</div>
</div>
</div>
<div id="change"></span>
<div id="change"></div>

<script src="https://unpkg.com/[email protected]/umd/index.js"></script>
<script src="./notion-kroki.user.js"></script>
</body>

</html>
</html>
Loading

0 comments on commit b0c2f7d

Please sign in to comment.