Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "module",
"description": "Markdown-it plugin to include math in your document",
"main": "index.js",
"types": "types/index.js",
"types": "types/index.d.ts",
"exports": {
".": {
"types": "./types/index.d.ts",
Expand Down
2 changes: 2 additions & 0 deletions src/options.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
/**
* @typedef {string | [string, string]} Delimiter
* @typedef {string | [tag: string, attrs?: Record<string, string>]} CustomElementOption
* @typedef {import("markdown-it/dist/index.cjs.js")} MarkdownIt
* @typedef {import("markdown-it/lib/token.mjs").default} Token
* @callback Renderer
* @param {string} src - The source content
* @param {Token} token - The parsed markdown-it token
Expand Down
2 changes: 1 addition & 1 deletion src/plugin.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @typedef {import("mathup").Options} MathupOptions
* @typedef {import("markdown-it").default} MarkdownIt
* @typedef {import("markdown-it/dist/index.cjs.js")} MarkdownIt
* @typedef {import("markdown-it/lib/token.mjs").default} Token
*
* @typedef {import("./options.js").CustomElementOption} CustomElementOption
Expand Down
2 changes: 1 addition & 1 deletion src/renderers.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @typedef {import("mathup").Options} MathupOptions
* @typedef {import("markdown-it").default} MarkdownIt
* @typedef {import("markdown-it/dist/index.cjs.js")} MarkdownIt
* @typedef {import("./options.js").CustomElementOption} CustomElementOption
*/

Expand Down