Skip to content

Commit 3b851ed

Browse files
committed
npm run format
1 parent 3d26b75 commit 3b851ed

25 files changed

+65
-86
lines changed

src/block/Line.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { convertToNodes } from "./node/index.ts";
2-
3-
import type { Row } from "./Row.ts";
42
import type { Node } from "./node/type.ts";
3+
import type { Row } from "./Row.ts";
54

65
export interface LinePack {
76
type: "line";

src/block/Table.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { convertToNodes } from "./node/index.ts";
2-
3-
import type { Row } from "./Row.ts";
42
import type { Node } from "./node/type.ts";
3+
import type { Row } from "./Row.ts";
54

65
export interface TablePack {
76
type: "table";

src/block/index.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
import { convertToCodeBlock } from "./CodeBlock.ts";
2-
import { convertToLine } from "./Line.ts";
3-
import { convertToTable } from "./Table.ts";
4-
import { convertToTitle } from "./Title.ts";
5-
61
import type { CodeBlock } from "./CodeBlock.ts";
2+
import { convertToCodeBlock } from "./CodeBlock.ts";
73
import type { Line } from "./Line.ts";
4+
import { convertToLine } from "./Line.ts";
85
import type { Pack } from "./Pack.ts";
96
import type { Table } from "./Table.ts";
7+
import { convertToTable } from "./Table.ts";
108
import type { Title } from "./Title.ts";
9+
import { convertToTitle } from "./Title.ts";
1110

1211
/**
1312
* Scrapbox block type

src/block/node/BlankNode.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
import { createPlainNode } from "./PlainNode.ts";
2-
import { createNodeParser } from "./creator.ts";
3-
41
import type { NodeCreator } from "./creator.ts";
2+
import { createNodeParser } from "./creator.ts";
53
import type { NodeParser } from "./index.ts";
4+
import { createPlainNode } from "./PlainNode.ts";
65
import type { BlankNode, PlainNode } from "./type.ts";
76

87
const blankRegExp = /\[\s+\]/;

src/block/node/CodeNode.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
import { createPlainNode } from "./PlainNode.ts";
2-
import { createNodeParser } from "./creator.ts";
3-
41
import type { NodeCreator } from "./creator.ts";
2+
import { createNodeParser } from "./creator.ts";
53
import type { NodeParser } from "./index.ts";
4+
import { createPlainNode } from "./PlainNode.ts";
65
import type { CodeNode, PlainNode } from "./type.ts";
76

87
const codeRegExp = /`.*?`/;

src/block/node/CommandLineNode.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
import { createPlainNode } from "./PlainNode.ts";
2-
import { createNodeParser } from "./creator.ts";
3-
41
import type { NodeCreator } from "./creator.ts";
2+
import { createNodeParser } from "./creator.ts";
53
import type { NodeParser } from "./index.ts";
4+
import { createPlainNode } from "./PlainNode.ts";
65
import type { CommandLineNode, PlainNode } from "./type.ts";
76

87
const commandLineRegExp = /^[$%] .+$/;

src/block/node/DecorationNode.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
import { createPlainNode } from "./PlainNode.ts";
2-
import { createNodeParser } from "./creator.ts";
3-
import { convertToNodes } from "./index.ts";
4-
51
import type { NodeCreator } from "./creator.ts";
2+
import { createNodeParser } from "./creator.ts";
63
import type { NodeParser } from "./index.ts";
4+
import { convertToNodes } from "./index.ts";
5+
import { createPlainNode } from "./PlainNode.ts";
76
import type { DecorationNode, PlainNode } from "./type.ts";
87

98
const decorationRegExp = /\[[!"#%&'()*+,\-./{|}<>_~]+ (?:\[[^[\]]+\]|[^\]])+\]/;

src/block/node/ExternalLinkNode.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
import { createPlainNode } from "./PlainNode.ts";
2-
import { createNodeParser } from "./creator.ts";
3-
41
import type { NodeCreator } from "./creator.ts";
2+
import { createNodeParser } from "./creator.ts";
53
import type { NodeParser } from "./index.ts";
4+
import { createPlainNode } from "./PlainNode.ts";
65
import type { LinkNode, PlainNode } from "./type.ts";
76

87
const hrefFirstUrlRegExp = /\[https?:\/\/[^\s\]]+\s+[^\]]*[^\s]\]/;

src/block/node/FormulaNode.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
import { createPlainNode } from "./PlainNode.ts";
2-
import { createNodeParser } from "./creator.ts";
3-
41
import type { NodeCreator } from "./creator.ts";
2+
import { createNodeParser } from "./creator.ts";
53
import type { NodeParser } from "./index.ts";
4+
import { createPlainNode } from "./PlainNode.ts";
65
import type { FormulaNode, PlainNode } from "./type.ts";
76

87
const formulaWithTailHalfSpaceRegExp = /\[\$ .+? \]/;

src/block/node/GoogleMapNode.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
import { createPlainNode } from "./PlainNode.ts";
2-
import { createNodeParser } from "./creator.ts";
3-
41
import type { NodeCreator } from "./creator.ts";
2+
import { createNodeParser } from "./creator.ts";
53
import type { NodeParser } from "./index.ts";
4+
import { createPlainNode } from "./PlainNode.ts";
65
import type { GoogleMapNode, PlainNode } from "./type.ts";
76

87
const placeFirstGoogleMapRegExp =

0 commit comments

Comments
 (0)