js-formatter-chatgpt-telegram
v1.0.0
Published
A package for converting ChatGPT Markdown to HTML for Telegram
Downloads
12
Maintainers
Readme
js-formatter-chatgpt-telegram
Converted Node.js package of formatter-chatgpt-telegram
Installation
To install the package, use npm:
npm install js-formatter-chatgpt-telegram
Usage
After installing, you can use the package in your Node.js application:
const { telegramFormat } = require('js-formatter-chatgpt-telegram');
const markdownText = `
# Heading
This is **bold** text and this is _italic_ text.
\`\`\`python
print('Hello, world!')
\`\`\`
[Link](http://example.com)
`;
const htmlText = telegramFormat(markdownText);
console.log(htmlText);