
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
Just simple markdown utils!
[!NOTE] This project is under development and i am colleting more utils across my projects to here.
Install package:
# npm
npm install omark
# yarn
yarn add omark
# pnpm
pnpm install omark
# bun
bun install omark
Import:
// ESM
import { md } from "omark";
// CommonJS
const { md } = require("omark");
blockquote(text)Render a markdown blockquote text with > in front of a paragraph
Example:
md.blockquote('Hello, World!');
// => "> Hello, World!"
bold(text)Render a markdown bold text.
Example:
md.bold('Hello, World!');
// => "**Hello, World!**"
boldAndItalic(text)Render a markdown bold and italic text.
Example:
md.bold('Hello, World!');
// => "***Hello, World!***"
codeBlock(code, lang, opts)Format a string as a code block.
Example:
md.codeBlock('console.log("Hello, World!");', 'js');
// => "```js\nconsole.log("Hello, World!");\n```"
heading(text, level)Render a markdown heading.
Example:
md.heading(1, 'Hello, World!');
// => "\n# Hello, World!\n"
hr(length)Render a markdown horizontal rule.
Example:
md.hr();
// => "---"
image(url, text, opts)Render a markdown image.
Example:
md.image('https://cataas.com/cat', 'Cute Cat');
// => ""
italic(text)Render a markdown italic text.
Example:
md.bold('Hello, World!');
// => "_Hello, World!_"
link(url, text, opts)Render a markdown link.
Example:
md.link('Google', 'https://www.google.com');
// => "[Google](https://www.google.com)"
md.link('https://www.google.com', 'Google', { external: true });
// => "<a href="https://www.google.com" title="Google" target="_blank">Google</a>"
list(items, opts)Render a markdown ordered or unordered list.
Example:
md.list(['Item 1', 'Item 2', 'Item 3']);
// => "- Item 1\n- Item 2\n- Item 3"
strikethrough(text)Render a markdown strikethrough text.
Example:
md.strikethrough('Hello, World!');
// => "~~Hello, World!~~"
table(table)Render a markdown table.
Example:
md.table({
columns: ["Breed", "Origin", "Size", "Temperament"],
rows: [
["Abyssinian", "Egypt", "Medium", "Active"],
["Aegean", "Greece", "Medium", "Active"],
["American Bobtail", "United States", "Medium", "Active"],
["Applehead Siamese", "Thailand", "Medium", "Active"],
],
});
corepack enablepnpm installpnpm devMade with 💛
Published under MIT License.
FAQs
Just simple markdown utils!
We found that omark demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.