
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@ebot7/marked
Advanced tools
The package includes a custom renderer for the most popular JavaScript Markdown library marked.js, so that it outputs Edem components like `<ed-paragraph>` rather than standard HTML tags like ``.
The package includes a custom renderer for the most popular JavaScript Markdown library marked.js, so that it outputs Edem components like <ed-paragraph>
rather than standard HTML tags like <p>
.
As the first step, you will want to install Marked.js and Edem’s Markdown package. To do so, run the following commands in your terminal:
npm install marked
npm install @ebot7/marked
import marked from "marked";
import { createEdemMarkedRenderer } from "@ebot7/marked";
const renderer = createEdemMarkedRenderer();
marked.use({ renderer });
console.log(marked("# Welcome to Edem!"));
Optionally, you can supply an object which includes renderer methods like code
, image
, paragraph
. Visit Marked.js to get more information.
If you have followed along with the above, then the following input:
# Hello world
This is a paragraph containing [a link](https://e-bot7.com/).
## Sub-heading
* Here
* Is
* A
* List
1. Here
1. Is
1. An
1. Ordered
1. List
Should result in the following output:
<ed-text variant="h700" component="h1">Hello world</ed-text>
<ed-paragraph>
This is a paragraph containing
<a href="https://e-bot7.com/">a link</a>.
</ed-paragraph>
<ed-text variant="h600" component="h2">Sub-heading</ed-text>
<ul>
<li><ed-text>Here</ed-text></li>
<li><ed-text>Is</ed-text></li>
<li><ed-text>A</ed-text></li>
<li><ed-text>List</ed-text></li>
</ul>
<ol>
<li><ed-text>Here</ed-text></li>
<li><ed-text>Is</ed-text></li>
<li><ed-text>An</ed-text></li>
<li><ed-text>Ordered</ed-text></li>
<li><ed-text>List</ed-text></li>
</ol>
FAQs
The package includes a custom renderer for the most popular JavaScript Markdown library marked.js, so that it outputs Edem components like `<ed-paragraph>` rather than standard HTML tags like ``.
We found that @ebot7/marked demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 open source maintainers 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
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.