Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Parser for Collaborizm Flavoured Markdown, i.e, Markdown flavour used on Collaborizm.com
npm install cfm-parser
import { cfmToHtml } from 'cfm-parser'
// Add Prism nom-default language
// No need for markup, css, clike, javascript
// Refer http://prismjs.com/#languages-list
import 'prismjs/components/prism-markdown.js';
// Import default CSS stylesheet if not using custom
import 'cfm-parser/css/style.css'
// Import styles for CSS highlighting
// Refer http://prismjs.com/ for theme names
import 'prismjs/themes/prism-okaidia.css';
const md = '## *Markdown*'
const html = cfmToHtml(md)
cfmToHtml(markdown, linkify, uiClass, domainName, sourceLineNumber)
Converts Collaborizm Flavoured Markdown to HTML.
markdown
Collaborizm Flavoured Markdown
linkify
Converts URLs to HTML hyperlinks
Default: true
uiClass
CSS class names for HTML output
Default: object
{
atProfile: 'md-at-person',
atProject: 'md-at-project',
adHocTag: 'md-hashtag-adhoc',
hashTag: 'md-hashtag',
img: 'md-img',
youtube: 'md-yt',
table: 'md-table',
blockquote: 'md-blockquote'
}
domainName
Domain name parameter for YouTube embed.
Default: ''
sourceLineNumber
Add a data-input-line
attribute to each topmost HTML element that corresponds to the line number of the source markdown
Default: true
FAQs
Parser for Collaborizm Flavoured Markdown, i.e, Markdown flavour used on Collaborizm.com
The npm package cfm-parser receives a total of 2 weekly downloads. As such, cfm-parser popularity was classified as not popular.
We found that cfm-parser demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.