-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
73 changed files
with
855 additions
and
444 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,34 @@ | ||
{ | ||
"name": "@xieyuheng/x-markdown", | ||
"version": "0.2.0", | ||
"type": "module", | ||
"repository": "github:xieyuheng/x-markdown", | ||
"main": "lib/index.js", | ||
"files": [ | ||
"lib" | ||
"src", "lib" | ||
], | ||
"scripts": { | ||
"build": "rm -r lib && tsc", | ||
"build:watch": "rm -r lib && tsc --watch", | ||
"test:ts": "vitest --dir src --threads false --run", | ||
"test:watch": "vitest --dir src --threads false", | ||
"test:ts": "vitest --dir src --run", | ||
"test:watch": "vitest --dir src", | ||
"test": "npm run test:ts", | ||
"format": "prettier src --write" | ||
}, | ||
"dependencies": { | ||
"front-matter": "^4.0.2", | ||
"markdown-it": "^13.0.2", | ||
"markdown-it-footnote": "^3.0.3" | ||
"markdown-it": "^14.0.0", | ||
"markdown-it-footnote": "^4.0.0" | ||
}, | ||
"devDependencies": { | ||
"@types/markdown-it": "^13.0.2", | ||
"@types/markdown-it-footnote": "^3.0.1", | ||
"@types/node": "^20.8.6", | ||
"prettier": "^3.0.3", | ||
"prettier-plugin-organize-imports": "^3.2.3", | ||
"typescript": "^5.2.2", | ||
"vite": "^4.4.11", | ||
"vitest": "^0.34.6" | ||
"@types/markdown-it": "^13.0.7", | ||
"@types/markdown-it-footnote": "^3.0.3", | ||
"@types/node": "^20.10.7", | ||
"prettier": "^3.1.1", | ||
"prettier-plugin-organize-imports": "^3.2.4", | ||
"typescript": "^5.3.3", | ||
"vite": "^5.0.11", | ||
"vitest": "^1.1.3" | ||
}, | ||
"license": "GPL-3.0-or-later" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export * from "./Document" | ||
export * from "./documentChildren" | ||
export * from "./Document.js" | ||
export * from "./documentChildren.js" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export * from "./formatNode" | ||
export * from "./formatNode.js" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
export * from "./document" | ||
export * from "./format" | ||
export * from "./node" | ||
export * as Nodes from "./nodes" | ||
export * from "./parse" | ||
export * from "./traverse" | ||
export * from "./document/index.js" | ||
export * from "./format/index.js" | ||
export * from "./node/index.js" | ||
export * as Nodes from "./nodes/index.js" | ||
export * from "./parse/index.js" | ||
export * from "./traverse/index.js" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export * from "./Node" | ||
export * from "./nodeChildren" | ||
export * from "./Node.js" | ||
export * from "./nodeChildren.js" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
export * from "./container-blocks/BlockQuote" | ||
export * from "./container-blocks/Item" | ||
export * from "./container-blocks/List" | ||
export * from "./container-blocks/OrderedItem" | ||
export * from "./container-blocks/OrderedList" | ||
export * from "./inlines/Code" | ||
export * from "./inlines/Emphasis" | ||
export * from "./inlines/FootnoteRef" | ||
export * from "./inlines/HardLineBreak" | ||
export * from "./inlines/HtmlInline" | ||
export * from "./inlines/Image" | ||
export * from "./inlines/Link" | ||
export * from "./inlines/SoftLineBreak" | ||
export * from "./inlines/Strong" | ||
export * from "./inlines/Text" | ||
export * from "./leaf-blocks/CodeBlock" | ||
export * from "./leaf-blocks/Headline" | ||
export * from "./leaf-blocks/HtmlBlock" | ||
export * from "./leaf-blocks/Paragraph" | ||
export * from "./leaf-blocks/Table" | ||
export * from "./leaf-blocks/ThematicBreak" | ||
export * from "./container-blocks/BlockQuote.js" | ||
export * from "./container-blocks/Item.js" | ||
export * from "./container-blocks/List.js" | ||
export * from "./container-blocks/OrderedItem.js" | ||
export * from "./container-blocks/OrderedList.js" | ||
export * from "./inlines/Code.js" | ||
export * from "./inlines/Emphasis.js" | ||
export * from "./inlines/FootnoteRef.js" | ||
export * from "./inlines/HardLineBreak.js" | ||
export * from "./inlines/HtmlInline.js" | ||
export * from "./inlines/Image.js" | ||
export * from "./inlines/Link.js" | ||
export * from "./inlines/SoftLineBreak.js" | ||
export * from "./inlines/Strong.js" | ||
export * from "./inlines/Text.js" | ||
export * from "./leaf-blocks/CodeBlock.js" | ||
export * from "./leaf-blocks/Headline.js" | ||
export * from "./leaf-blocks/HtmlBlock.js" | ||
export * from "./leaf-blocks/Paragraph.js" | ||
export * from "./leaf-blocks/Table.js" | ||
export * from "./leaf-blocks/ThematicBreak.js" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { Node } from "../node" | ||
import { type Node } from "../node/index.js" | ||
|
||
export type Footnote = { | ||
id: number | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { Context } from "./Context" | ||
import { Token } from "./Token" | ||
import { type Context } from "./Context.js" | ||
import { type Token } from "./Token.js" | ||
|
||
export type TokenHandler = (ctx: Context, token: Token) => void |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.