{"_id":"md-utils-ts","_rev":"7-acf29d00852b8a463278939080459e6c","name":"md-utils-ts","dist-tags":{"latest":"2.0.0"},"versions":{"0.0.1":{"name":"md-utils-ts","version":"0.0.1","description":"Tiny markdown utility functions for Typescript.","main":"./dist/index.js","exports":{".":{"require":"./dist/index.js","import":"./dist/index.mjs"}},"scripts":{"build":"node esbuild.config.mjs","test":"echo \"Error: no test specified\" && exit 1"},"keywords":["markdown","utils"],"author":{"name":"TomPenguin","email":"tom.penguin.zoo@gmail.com","url":"https://github.com/TomPenguin"},"license":"MIT","devDependencies":{"esbuild":"^0.19.2","prettier":"^3.0.2","prettier-plugin-organize-imports":"^3.2.3","typescript":"^5.2.2"},"dependencies":{"markdown-table":"^3.0.3"},"bugs":{"url":"https://github.com/TomPenguin/md-utils-ts/issues"},"homepage":"https://github.com/TomPenguin/md-utils-ts","gitHead":"95eda94cf9421b05a6fd0300af1ae959d63da8c8","_id":"md-utils-ts@0.0.1","_nodeVersion":"19.8.1","_npmVersion":"9.5.1","dist":{"integrity":"sha512-mrecPuh60wqKSPkdIGCpNKTJnfeBvxX2JArroc4bGuyvPEjBUfWT+thHsN0J0Pvefo7C2cK1JK85TR5JyMhGJA==","shasum":"1eed34beba5c88229dbc52483dcbea01c6900620","tarball":"https://registry.npmjs.org/md-utils-ts/-/md-utils-ts-0.0.1.tgz","fileCount":10,"unpackedSize":4859,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC94VDtniKV6U4zurS6mHrQ9G4QNFsn3osFrERs6QctyQIhANCMsV0rRKz6MVDvfRi8kKh6QjMBX3vVU9qYVhfPavjA"}]},"_npmUser":{"name":"tompenguin","email":"tomohiro.aota@gmail.com"},"directories":{},"maintainers":[{"name":"tompenguin","email":"tomohiro.aota@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/md-utils-ts_0.0.1_1693360085523_0.7760932242935097"},"_hasShrinkwrap":false},"0.0.2":{"name":"md-utils-ts","version":"0.0.2","description":"Tiny markdown utility functions for Typescript.","main":"./dist/index.js","exports":{".":{"require":"./dist/index.js","import":"./dist/index.mjs"}},"types":"./dist/index.d.ts","scripts":{"build":"pnpm run build:common && pnpm run build:type","build:common":"node esbuild.config.mjs","build:type":"tsc --emitDeclarationOnly --declaration","prepare":"pnpm run build","test":"echo \"Error: no test specified\" && exit 1"},"keywords":["markdown","utils"],"author":{"name":"TomPenguin","email":"tom.penguin.zoo@gmail.com","url":"https://github.com/TomPenguin"},"license":"MIT","devDependencies":{"prettier":"^3.0.2","prettier-plugin-organize-imports":"^3.2.3","typescript":"^5.2.2"},"dependencies":{"esbuild":"^0.19.2","markdown-table":"^3.0.3"},"bugs":{"url":"https://github.com/TomPenguin/md-utils-ts/issues"},"homepage":"https://github.com/TomPenguin/md-utils-ts","gitHead":"7d7a3abf48dde284130c3c7ed56133d512e18a76","_id":"md-utils-ts@0.0.2","_nodeVersion":"19.8.1","_npmVersion":"9.5.1","dist":{"integrity":"sha512-BgwmIq23rnqTG6nOmVs5UgASCkjIDl+8NlohZnWYYoPmqqifryppeU7Zpsra/PXNEV5dVGgXK+c4EGZ1taatMA==","shasum":"af2eef624f112b616838e45b6dc44042ecfedc51","tarball":"https://registry.npmjs.org/md-utils-ts/-/md-utils-ts-0.0.2.tgz","fileCount":8,"unpackedSize":11030,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFCuLiNoPRAyl0flItYmgHqjxE/I/Xe3VGDCEjrOJjg6AiEA+shAuYndriYL0BBNgJiufw7CmB+TgsoSAZlXafk1SO0="}]},"_npmUser":{"name":"tompenguin","email":"tomohiro.aota@gmail.com"},"directories":{},"maintainers":[{"name":"tompenguin","email":"tomohiro.aota@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/md-utils-ts_0.0.2_1693362285108_0.7272746041595293"},"_hasShrinkwrap":false},"1.0.0":{"name":"md-utils-ts","version":"1.0.0","description":"Tiny markdown utility functions for Typescript.","main":"./dist/index.js","exports":{".":{"require":"./dist/index.js","import":"./dist/index.mjs"}},"types":"./dist/index.d.ts","scripts":{"build":"pnpm run build:common && pnpm run build:type","build:common":"node esbuild.config.mjs","build:type":"tsc --emitDeclarationOnly --declaration","prepare":"pnpm run build","test":"echo \"Error: no test specified\" && exit 1"},"keywords":["markdown","utils"],"author":{"name":"TomPenguin","email":"tom.penguin.zoo@gmail.com","url":"https://github.com/TomPenguin"},"license":"MIT","devDependencies":{"prettier":"^3.0.2","prettier-plugin-organize-imports":"^3.2.3","typescript":"^5.2.2"},"dependencies":{"esbuild":"^0.19.2","markdown-table":"^3.0.3"},"bugs":{"url":"https://github.com/TomPenguin/md-utils-ts/issues"},"homepage":"https://github.com/TomPenguin/md-utils-ts","gitHead":"ea7b315c2b207963bff7bfa4cf793546bd7654ba","_id":"md-utils-ts@1.0.0","_nodeVersion":"19.8.1","_npmVersion":"9.5.1","dist":{"integrity":"sha512-WiD3GgIj9e3HfMDJSriDq42VAfcJ8h2KZwTjtvn5ln/wqCfQ0xhiMq9LrLG10nOzqM+0eU27OwZtvyLV7c9Vyw==","shasum":"43a415a00dac49cd6cba8ed87b8244d864beb285","tarball":"https://registry.npmjs.org/md-utils-ts/-/md-utils-ts-1.0.0.tgz","fileCount":8,"unpackedSize":29774,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCpXNN8Tlz+iBnug92tQMe1Se8t0RNG3aZFcgEYqzfnGQIhAIS1l3bMFdx/W18M0oxOdUmlU7xPaI799W2XmzojS5BF"}]},"_npmUser":{"name":"tompenguin","email":"tomohiro.aota@gmail.com"},"directories":{},"maintainers":[{"name":"tompenguin","email":"tomohiro.aota@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/md-utils-ts_1.0.0_1693377157544_0.6352684246735316"},"_hasShrinkwrap":false},"1.0.1":{"name":"md-utils-ts","version":"1.0.1","description":"Tiny markdown utility functions for Typescript.","main":"./dist/index.js","exports":{".":{"require":"./dist/index.js","import":"./dist/index.mjs"}},"types":"./dist/index.d.ts","scripts":{"build":"pnpm run build:common && pnpm run build:type","build:common":"node esbuild.config.mjs","build:type":"tsc --emitDeclarationOnly --declaration","prepare":"pnpm run build","test":"echo \"Error: no test specified\" && exit 1"},"keywords":["markdown","utils"],"author":{"name":"TomPenguin","email":"tom.penguin.zoo@gmail.com","url":"https://github.com/TomPenguin"},"license":"MIT","devDependencies":{"prettier":"^3.0.2","prettier-plugin-organize-imports":"^3.2.3","typescript":"^5.2.2"},"dependencies":{"esbuild":"^0.19.2","markdown-table":"^3.0.3"},"bugs":{"url":"https://github.com/TomPenguin/md-utils-ts/issues"},"homepage":"https://github.com/TomPenguin/md-utils-ts","gitHead":"b2384b7d7e3c957d93c3ba98d97466b4ddd41cbd","_id":"md-utils-ts@1.0.1","_nodeVersion":"19.8.1","_npmVersion":"9.5.1","dist":{"integrity":"sha512-BYVHBAPYmK11b9d2t0HUEuP/6PUqSTayc1G5HMwg9xrQ78pROIh0h0NmfJpl7S3c59UNu0xLgtJ6/39maqRKqQ==","shasum":"6175ffeeb0e9ab0100ae1cb02fe794060f3c9823","tarball":"https://registry.npmjs.org/md-utils-ts/-/md-utils-ts-1.0.1.tgz","fileCount":8,"unpackedSize":29914,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDAkRBfyIu4gQ5To7ZpYjb+Xjp/sRR2GyzfTGrCkiFoUQIgUdOdNlqQ83mCU7QE5vOLB8eK5hlI58qaZw3pTu/00Cs="}]},"_npmUser":{"name":"tompenguin","email":"tomohiro.aota@gmail.com"},"directories":{},"maintainers":[{"name":"tompenguin","email":"tomohiro.aota@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/md-utils-ts_1.0.1_1693377712231_0.4731578372645189"},"_hasShrinkwrap":false},"1.0.2":{"name":"md-utils-ts","version":"1.0.2","description":"Tiny markdown utility functions for Typescript.","type":"module","main":"./dist/cjs/index.js","module":"./dist/esm/index.mjs","exports":{".":{"require":"./dist/cjs/index.js","import":"./dist/esm/index.mjs"}},"types":"./dist/cjs/index.d.ts","typings":"./dist/esm/index.d.ts","scripts":{"build":"pnpm run build:common && pnpm run build:type:cjs && pnpm run build:type:esm","build:common":"node esbuild.config.mjs","build:type:cjs":"tsc --emitDeclarationOnly --declaration --project tsconfig.cjs.json","build:type:esm":"tsc --emitDeclarationOnly --declaration --project tsconfig.esm.json","prepare":"pnpm run build","test":"echo \"Error: no test specified\" && exit 1"},"keywords":["markdown","utils"],"author":{"name":"TomPenguin","email":"tom.penguin.zoo@gmail.com","url":"https://github.com/TomPenguin"},"license":"MIT","devDependencies":{"prettier":"^3.0.2","prettier-plugin-organize-imports":"^3.2.3","typescript":"^5.2.2"},"dependencies":{"esbuild":"^0.19.2","markdown-table":"^3.0.3"},"bugs":{"url":"https://github.com/TomPenguin/md-utils-ts/issues"},"homepage":"https://github.com/TomPenguin/md-utils-ts","gitHead":"3ef2ae8faa0871fabd0d634d0a3be8d50f557ab9","_id":"md-utils-ts@1.0.2","_nodeVersion":"19.8.1","_npmVersion":"9.5.1","dist":{"integrity":"sha512-I6tR/OYsepWhjmJwn33dNgQCxAihTWWCMvZ1dyBhYJ+VYfI8dU4dUSGW1qiuxiDde5XFtPetbS7r4v5xcUzntQ==","shasum":"4f75dcc2cb53160635399fccc79f2749545ef87d","tarball":"https://registry.npmjs.org/md-utils-ts/-/md-utils-ts-1.0.2.tgz","fileCount":10,"unpackedSize":37916,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCX0M5Rd5LDut9j38dZrDlwmBQmi5RwS3bVBIh4dOIHAgIhAL7+VDri+Vhe1sJccuIISgqOOGtOMF3Fl3SM/azfbEOT"}]},"_npmUser":{"name":"tompenguin","email":"tomohiro.aota@gmail.com"},"directories":{},"maintainers":[{"name":"tompenguin","email":"tomohiro.aota@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/md-utils-ts_1.0.2_1693380355545_0.9901511664104945"},"_hasShrinkwrap":false},"1.0.3":{"name":"md-utils-ts","version":"1.0.3","description":"Tiny markdown utility functions for Typescript.","type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"require":"./dist/index.cjs","import":"./dist/index.js","types":"./dist/index.d.ts"}},"scripts":{"build":"tsup src/index.ts --format cjs,esm --dts --clean --minify --sourcemap","prepublishOnly":"npm run build","test":"echo \"Error: no test specified\" && exit 1"},"keywords":["markdown","utils"],"author":{"name":"TomPenguin","email":"tom.penguin.zoo@gmail.com","url":"https://github.com/TomPenguin"},"license":"MIT","devDependencies":{"prettier":"^3.0.2","prettier-plugin-organize-imports":"^3.2.3","tsup":"^7.2.0","typescript":"^5.2.2"},"dependencies":{"markdown-table":"^3.0.3"},"bugs":{"url":"https://github.com/TomPenguin/md-utils-ts/issues"},"homepage":"https://github.com/TomPenguin/md-utils-ts","gitHead":"e114c113c32f416da227a164ca663e486bb9627d","_id":"md-utils-ts@1.0.3","_nodeVersion":"19.8.1","_npmVersion":"9.5.1","dist":{"integrity":"sha512-4oLcmgMwNlgPwUBOqxeCyq+vS4WtH09rNolS/cmcuZ2navq7HrHwqQrbS0DkKMaubRhsLvQpW7404DgMHinLSw==","shasum":"2256dd931b3fdee8c226795a682f2394d790fa5c","tarball":"https://registry.npmjs.org/md-utils-ts/-/md-utils-ts-1.0.3.tgz","fileCount":10,"unpackedSize":49167,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHtLz+Xyug3T5cod5IvwP3hPmwERu1Sk4aRHp50tNjtwAiEApuaN3HOiP4EPcqiGkW2kyv64OdLI/EfL8lt/cse6ymI="}]},"_npmUser":{"name":"tompenguin","email":"tomohiro.aota@gmail.com"},"directories":{},"maintainers":[{"name":"tompenguin","email":"tomohiro.aota@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/md-utils-ts_1.0.3_1693384018993_0.04625190589005235"},"_hasShrinkwrap":false},"1.0.4":{"name":"md-utils-ts","version":"1.0.4","description":"Tiny markdown utility functions for Typescript.","type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"require":"./dist/index.cjs","import":"./dist/index.js","types":"./dist/index.d.ts"}},"scripts":{"build":"tsup src/index.ts --format cjs,esm --dts --clean --minify --sourcemap","prepublishOnly":"npm run build","test":"echo \"Error: no test specified\" && exit 1"},"keywords":["markdown","utils"],"author":{"name":"TomPenguin","email":"tom.penguin.zoo@gmail.com","url":"https://github.com/TomPenguin"},"license":"MIT","devDependencies":{"prettier":"^3.0.2","prettier-plugin-organize-imports":"^3.2.3","tsup":"^7.2.0","typescript":"^5.2.2"},"dependencies":{"markdown-table":"^3.0.3"},"bugs":{"url":"https://github.com/TomPenguin/md-utils-ts/issues"},"homepage":"https://github.com/TomPenguin/md-utils-ts","gitHead":"3e2a39c80c8f09465bd33b0558c90f0645c47973","_id":"md-utils-ts@1.0.4","_nodeVersion":"19.8.1","_npmVersion":"9.5.1","dist":{"integrity":"sha512-RW09NtsRLCqJasXdbgTIG7BjWM8ET5PWip/19O5Ilw1Jph1WJn2IFh6Th0UzNq3Q+jtqx87hzWMy4SpsSxqfgA==","shasum":"92aa2d27b4e46d15d0c75ddc602275fccf666e28","tarball":"https://registry.npmjs.org/md-utils-ts/-/md-utils-ts-1.0.4.tgz","fileCount":10,"unpackedSize":49167,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEI4YhDDNEMG7YOfp+ln84d4rDkG5CJ5MrYhZHyqeeBCAiALowEG+UzpjWW1mLzQGttdghwIJskKzWubja7GU2y4UQ=="}]},"_npmUser":{"name":"tompenguin","email":"tomohiro.aota@gmail.com"},"directories":{},"maintainers":[{"name":"tompenguin","email":"tomohiro.aota@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/md-utils-ts_1.0.4_1693384495823_0.4193299519400826"},"_hasShrinkwrap":false},"2.0.0":{"name":"md-utils-ts","version":"2.0.0","description":"Tiny markdown utility functions for Typescript.","type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"require":"./dist/index.cjs","import":"./dist/index.js","types":"./dist/index.d.ts"}},"scripts":{"build":"tsup src/index.ts --format cjs,esm --dts --clean --minify --sourcemap","prepublishOnly":"npm run build","test":"echo \"Error: no test specified\" && exit 1"},"keywords":["markdown","utils"],"author":{"name":"TomPenguin","email":"tom.penguin.zoo@gmail.com","url":"https://github.com/TomPenguin"},"license":"MIT","devDependencies":{"prettier":"^3.0.2","prettier-plugin-organize-imports":"^3.2.3","tsup":"^7.2.0","typescript":"^5.2.2"},"bugs":{"url":"https://github.com/TomPenguin/md-utils-ts/issues"},"homepage":"https://github.com/TomPenguin/md-utils-ts","gitHead":"5da91bf66ec53942d974b62a36bfda0d72c679d7","_id":"md-utils-ts@2.0.0","_nodeVersion":"19.8.1","_npmVersion":"9.5.1","dist":{"integrity":"sha512-sMG6JtX0ebcRMHxYTcmgsh0/m6o8hGdQHFE2OgjvflRZlQM51CGGj/uuk056D+12BlCiW0aTpt/AdlDNtgQiew==","shasum":"c2fe69c18ede82c133e708a8ff093fd2cebaeb77","tarball":"https://registry.npmjs.org/md-utils-ts/-/md-utils-ts-2.0.0.tgz","fileCount":10,"unpackedSize":46333,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC5qrGKPT3CMoIwnbuCpByPIhbPpcUXsh3/tTehuakS4wIgZnS0cjjtaOe5Y3UFoIEIoVujleZjlZRolK6Hz7Bzufc="}]},"_npmUser":{"name":"tompenguin","email":"tomohiro.aota@gmail.com"},"directories":{},"maintainers":[{"name":"tompenguin","email":"tomohiro.aota@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/md-utils-ts_2.0.0_1693552362028_0.9863059788077739"},"_hasShrinkwrap":false}},"time":{"created":"2023-08-30T01:48:05.522Z","0.0.1":"2023-08-30T01:48:05.701Z","modified":"2023-09-01T07:12:42.407Z","0.0.2":"2023-08-30T02:24:45.300Z","1.0.0":"2023-08-30T06:32:37.728Z","1.0.1":"2023-08-30T06:41:52.386Z","1.0.2":"2023-08-30T07:25:55.737Z","1.0.3":"2023-08-30T08:26:59.235Z","1.0.4":"2023-08-30T08:34:55.993Z","2.0.0":"2023-09-01T07:12:42.221Z"},"maintainers":[{"name":"tompenguin","email":"tomohiro.aota@gmail.com"}],"description":"Tiny markdown utility functions for Typescript.","homepage":"https://github.com/TomPenguin/md-utils-ts","keywords":["markdown","utils"],"author":{"name":"TomPenguin","email":"tom.penguin.zoo@gmail.com","url":"https://github.com/TomPenguin"},"bugs":{"url":"https://github.com/TomPenguin/md-utils-ts/issues"},"license":"MIT","readme":"# md-utils-ts\n\nTiny markdown utility functions for Typescript.\n\n## Install\n\nInstall with npm:\n\n```bash\n$ npm install --save md-utils-ts\n```\n\n## Usage\n\nSee [Implementation](https://github.com/TomPenguin/md-utils-ts/blob/main/src/index.ts) for details.\n\n```ts\nimport md, { bold } from \"md-utils-ts\";\n\nconst boldText = bold(\"some text\");\nconsole.log(boldText); // \"**some text**\"\n\n// Use function from the imported 'md'\nconst italicText = md.italic(\"Hello, world!\");\nconsole.log(italicText); // \"_Hello, world!_\"\n```\n\n## API\n\n> Note: Table is not supported. You can use [markdown-table](https://github.com/wooorm/markdown-table) as well.\n\n## bold\n\nMake the text bold.\n\n### Parameters:\n\n- `text` (string): The input text.\n\n### Example:\n\n```ts\nconst result = bold(\"Hello, world!\");\n// Output: \"**Hello, world!**\"\n```\n\n## italic\n\nMake the text italic.\n\n### Parameters:\n\n- `text` (string): The input text.\n\n### Example:\n\n```ts\nconst result = italic(\"Hello, world!\");\n// Output: \"_Hello, world!_\"\n```\n\n## del\n\nAdd strike-through to the text.\n\n### Parameters:\n\n- `text` (string): The input text.\n\n### Example:\n\n```ts\nconst result = del(\"Hello, world!\");\n// Output: \"~~Hello, world!~~\"\n```\n\n## underline\n\nAdd underline to the text.\n\n### Parameters:\n\n- `text` (string): The input text.\n\n### Example:\n\n```ts\nconst result = underline(\"Hello, world!\");\n// Output: \"<u>Hello, world!</u>\"\n```\n\n## anchor\n\nCreate an anchor link.\n\n### Parameters:\n\n- `text` (string): The anchor text.\n- `href` (string): The URL to link to.\n\n### Example:\n\n```ts\nconst result = anchor(\"OpenAI\", \"https://www.openai.com\");\n// Output: \"[OpenAI](https://www.openai.com)\"\n```\n\n## code\n\nCreate a code block or inline code.\n\n### Parameters:\n\n- `inline` (boolean): Whether the code should be inline or in a block.\n- `language` (string): The code language for syntax highlighting.\n- `text` (string): The code content.\n\n### Example:\n\n````ts\nconst tsCodeBlock = code(false)(\"ts\");\nconst result = tsCodeBlock(\"console.log('Hello, world!');\");\n// Output:\n// \"```ts\n// console.log('Hello, world!');\n// ```\"\n````\n\n## inlineCode\n\nCreate inline code with optional syntax highlighting.\n\n### Parameters:\n\n- `text` (string): The code content.\n\n### Example:\n\n```ts\nconst code = inlineCode(\"console.log('Hello, world!');\");\n// Output:\n// \"`console.log('Hello, world!');`\"\n```\n\n## codeBlock\n\nCreate a code block with optional syntax highlighting.\n\n### Parameters:\n\n- `language` (string, optional): The code language for syntax highlighting.\n- `text` (string): The code content.\n\n### Example:\n\n````ts\nconst code = codeBlock(\"ts\")(\"console.log('Hello, world!');\");\n// Output:\n// \"```ts\n// console.log('Hello, world!');\n// ```\"\n````\n\n## equation\n\nCreate an equation block or inline equation.\n\n### Parameters:\n\n- `inline` (boolean): Whether the equation should be inline or in a block.\n- `text` (string): The equation content.\n\n### Example:\n\n```ts\nconst equationBlock = equation(false)(\"x^2 + y^2 = z^2\");\n// Output:\n// \"$$\n// x^2 + y^2 = z^2\n// $$\"\n\nconst inlineEquation = equation(true)(\"E = mc^2\");\n// Output: \"$E = mc^2$\"\n```\n\n## inlineEquation\n\nCreate inline code with optional syntax highlighting.\n\n### Parameters:\n\n- `text` (string): The equation content.\n\n### Example:\n\n```ts\nconst result = inlineEquation(\"E = mc^2\");\n// Output: \"$E = mc^2$\"\n```\n\n## equationBlock\n\nCreate an equation block or inline equation.\n\n### Parameters:\n\n- `text` (string): The equation content.\n\n### Example:\n\n```ts\nconst result = equationBlock(\"x^2 + y^2 = z^2\");\n// Output:\n// \"$$\n// x^2 + y^2 = z^2\n// $$\"\n```\n\n## h\n\nCreate a heading with the specified level.\n\n### Parameters:\n\n- `level` (number): The level of the heading (1 to 6).\n- `text` (string): The heading text.\n\n### Example:\n\n```ts\nconst heading = h(2)(\"Hello, world!\");\n// Output: \"## Hello, world!\"\n```\n\n## h1\n\nCreate a level 1 heading.\n\n### Parameters:\n\n- `text` (string): The heading text.\n\n### Example:\n\n```ts\nconst heading = h1(\"Title\");\n// Output:\n// # Title\n```\n\n## h2\n\nCreate a level 2 heading.\n\n### Parameters:\n\n- `text` (string): The heading text.\n\n### Example:\n\n```ts\nconst heading = h2(\"Subtitle\");\n// Output:\n// ## Subtitle\n```\n\n## h3\n\nCreate a level 3 heading.\n\n### Parameters:\n\n- `text` (string): The heading text.\n\n### Example:\n\n```ts\nconst heading = h3(\"Subsection\");\n// Output:\n// ### Subsection\n```\n\n## h4\n\nCreate a level 4 heading.\n\n### Parameters:\n\n- `text` (string): The heading text.\n\n### Example:\n\n```ts\nconst heading = h4(\"Subsubsection\");\n// Output:\n// #### Subsubsection\n```\n\n## h5\n\nCreate a level 5 heading.\n\n### Parameters:\n\n- `text` (string): The heading text.\n\n### Example:\n\n```ts\nconst heading = h5(\"Subsubsubsection\");\n// Output:\n// ##### Subsubsubsection\n```\n\n## h6\n\nCreate a level 6 heading.\n\n### Parameters:\n\n- `text` (string): The heading text.\n\n### Example:\n\n```ts\nconst heading = h6(\"Subsubsubsubsection\");\n// Output:\n// ###### Subsubsubsubsection\n```\n\n## quote\n\nConvert text to a blockquote.\n\n### Parameters:\n\n- `text` (string): The input text.\n\n### Example:\n\n```ts\nconst quotedText = quote(\"This is a quoted text.\");\n// Output:\n// > This is a quoted text.\n```\n\n## bullet\n\nCreate a bullet point list item.\n\n### Parameters:\n\n- `text` (string): The content of the bullet point.\n- `count` (number, optional): The optional index/count of the bullet point.\n\n### Example:\n\n```ts\nconst bulletPoint = bullet(\"List item\");\n// Output:\n// - List item\n\nconst numberedBulletPoint = bullet(\"List item\", 1);\n// Output:\n// 1. List item\n```\n\n## todo\n\nCreate a todo list item.\n\n### Parameters:\n\n- `text` (string): The content of the todo item.\n- `checked` (boolean): Whether the todo item is checked or not.\n\n### Example:\n\n```ts\nconst uncheckedTodo = todo(\"Task to be done\", false);\n// Output:\n// - [ ] Task to be done\n\nconst checkedTodo = todo(\"Completed task\", true);\n// Output:\n// - [x] Completed task\n```\n\n## image\n\nCreate an image element.\n\n### Parameters:\n\n- `alt` (string): The alt text for the image.\n- `href` (string): The URL of the image.\n\n### Example:\n\n```ts\nconst imageElement = image(\"Description\", \"https://example.com/image.jpg\");\n// Output:\n// ![Description](https://example.com/image.jpg)\n```\n\n## divider\n\nCreate a horizontal divider.\n\n### Example:\n\n```ts\nconst dividerElement = divider();\n// Output:\n// ---\n```\n\n## details\n\nCreate a collapsible details element.\n\n### Parameters:\n\n- `summary` (string): The summary text for the details element.\n- `details` (string): The details/content of the details element.\n\n### Example:\n\n```ts\nconst detailsElement = details(\"Click to expand\", \"Hidden content\");\n// Output:\n// <details>\n// <summary>Click to expand</summary>\n//\n// Hidden content\n// </details>\n```\n\n## sup\n\nCreate a superscript text.\n\n### Parameters:\n\n- `text` (string): The input text.\n\n### Example:\n\n```ts\nconst superscriptText = sup(\"2\");\n// Output:\n// <sup>2</sup>\n```\n\n## sub\n\nCreate a subscript text.\n\n### Parameters:\n\n- `text` (string): The input text.\n\n### Example:\n\n```ts\nconst subscriptText = sub(\"2\");\n// Output:\n// <sub>2</sub>\n```\n\n## indent\n\nIndent the text with a specified number of spaces.\n\n### Parameters:\n\n- `space` (number, default: 2): The number of spaces to indent with.\n- `text` (string): The input text.\n- `level` (number, default: 1): The level of indentation.\n\n### Example:\n\n```ts\nconst indentedText = indent(4)(\"Indented text\", 2);\n// Output:\n// \"    Indented text\"\n```\n","readmeFilename":"README.md"}