Skip to content

Commit c532264

Browse files
committed
npm run format
1 parent a6412a1 commit c532264

File tree

2 files changed

+11
-16
lines changed

2 files changed

+11
-16
lines changed

docs/script.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
import { parse } from "https://unpkg.com/@progfay/scrapbox-parser";
21
import hljs from "https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.1/es/highlight.min.js";
2+
import { parse } from "https://unpkg.com/@progfay/scrapbox-parser";
33

44
document.getElementById("parse-button").addEventListener("click", () => {
5-
const parsedJson = JSON.stringify(
6-
parse(document.getElementById("plain-text").value),
7-
null,
8-
2
9-
).trim();
10-
const a = hljs.highlight(parsedJson, { language: "json" }).value;
11-
console.log(a);
12-
document.querySelector("#parsed-json>.json").innerHTML = a;
5+
const parsedJson = JSON.stringify(
6+
parse(document.getElementById("plain-text").value),
7+
null,
8+
2,
9+
).trim();
10+
const a = hljs.highlight(parsedJson, { language: "json" }).value;
11+
console.log(a);
12+
document.querySelector("#parsed-json>.json").innerHTML = a;
1313
});

package.json

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
"version": "10.0.0",
44
"type": "module",
55
"description": "parse Scrapbox notation to JavaScript Object",
6-
"files": [
7-
"dist"
8-
],
6+
"files": ["dist"],
97
"types": "./dist/index.d.ts",
108
"exports": {
119
".": "./dist/index.js",
@@ -33,10 +31,7 @@
3331
"type": "git",
3432
"url": "git+https://github.com/progfay/scrapbox-parser.git"
3533
},
36-
"keywords": [
37-
"scrapbox",
38-
"parser"
39-
],
34+
"keywords": ["scrapbox", "parser"],
4035
"author": "progfay",
4136
"license": "MIT",
4237
"bugs": {

0 commit comments

Comments
 (0)