
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.
@fabrix/generics-render
Advanced tools
Generic Render Service with Markdown-It. Converts markdown document with YAML to object with HTML and Metadata.
Looking for Generics?
$ npm install --save @fabrix/generics-render
// config/generics.js
export const generics = {
// make the key render, alternatively make the key render_service to be the default render service
render_service: {
adapter: require('@fabrix/generic-render').RenderGeneric,
config: {
// Must always be set to true
html: true,
plugins: [
// Example Plugin (markdown-it-meta is required and already installed)
// {
// plugin: require('markdown-it-meta'),
// options: {}
// }
]
}
}
}
Create a markdown document
document.md
---
title: Hello World!
keywords: render service
runs: 0
score: 0.0
demographics:
- {name: 'unknown'}
---
# Hello world!
const document = fs.readFileSync('document.md', 'utf8')
RenderGenericService.render(document)
.then(doc => {
// do something with doc
})
.catch(err => {
// do something with error
})
FAQs
Generic: Render markdown with YAML as HTML and Metadata
We found that @fabrix/generics-render 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
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.